@tryghost/portal 2.19.0 → 2.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/umd/portal.min.js +1 -1
- package/umd/portal.min.js.map +1 -1
package/umd/portal.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see portal.min.js.LICENSE.txt */
|
|
2
|
-
!function(){var e={912:function(e){e.exports=function(e,n){if(isNaN(e)||isNaN(n))return 0;var t=e?100-Math.floor(n/12*100/e):0;return t>=1&&t<100?t:0}},578:function(e,n,t){"use strict";function r(e){return e&&e.Math==Math?e:void 0}t.d(n,{R:function(){return o},Y:function(){return a}});var i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof t.g&&r(t.g)||function(){return this}()||{};function o(){return i}function a(e,n,t){var r=t||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=n())}},419:function(e,n,t){"use strict";function r(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,n){return e.require(n)}t.d(n,{l$:function(){return i},KV:function(){return r}}),e=t.hmd(e)},929:function(e,n,t){"use strict";t.d(n,{ph:function(){return c},yW:function(){return s}});var r=t(578),i=t(419);e=t.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(n){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=o.nowSeconds.bind(o),c=l.nowSeconds.bind(l);!function(){var e=(0,r.R)().performance;if(e&&e.now){var n=36e5,t=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-i):n,a=o<n,l=e.timing&&e.timing.navigationStart,s="number"===typeof l?Math.abs(l+t-i):n;return a||s<n?o<=s?("timeOrigin",e.timeOrigin):("navigationStart",l):("dateNow",i)}"none"}()},814:function(e,n,t){"use strict";var r=t(479),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!==typeof t){if(h){var i=f(t);i&&i!==h&&e(n,i,r)}var a=u(t);p&&(a=a.concat(p(t)));for(var l=s(n),g=s(t),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&(!r||!r[v])&&(!g||!g[v])&&(!l||!l[v])){var y=d(t,v);try{c(n,v,y)}catch(b){}}}}return n}},545:function(e){"use strict";var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,l,s=i(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))t.call(a,u)&&(s[u]=a[u]);if(n){l=n(a);for(var p=0;p<l.length;p++)r.call(a,l[p])&&(s[l[p]]=a[l[p]])}}return s}},610:function(e,n,t){"use strict";var r=t(969),i=t(545),o=t(19);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function c(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(s[e]=n,e=0;e<n.length;e++)l.add(n[e])}var p=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,h={},g={};function m(e,n,t,r,i,o,a){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];v[n]=new m(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,n,t,r){var i=v.hasOwnProperty(n)?v[n]:null;(null!==i?0===i.type:!r&&(2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])))||(function(e,n,t,r){if(null===n||"undefined"===typeof n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,i,r)&&(t=null),r||null===i?function(e){return!!f.call(g,e)||!f.call(h,e)&&(d.test(e)?g[e]=!0:(h[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):i.mustUseProperty?e[i.propertyName]=null===t?3!==i.type&&"":t:(n=i.attributeName,r=i.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(i=i.type)||4===i&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new m(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new m(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(y,b);v[n]=new m(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,k=60106,S=60107,E=60108,j=60114,C=60109,N=60110,P=60112,O=60113,T=60120,I=60115,D=60116,R=60121,L=60128,U=60129,z=60130,M=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),k=F("react.portal"),S=F("react.fragment"),E=F("react.strict_mode"),j=F("react.profiler"),C=F("react.provider"),N=F("react.context"),P=F("react.forward_ref"),O=F("react.suspense"),T=F("react.suspense_list"),I=F("react.memo"),D=F("react.lazy"),R=F("react.block"),F("react.scope"),L=F("react.opaque.id"),U=F("react.debug_trace_mode"),z=F("react.offscreen"),M=F("react.legacy_hidden")}var A,B="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function Y(e){if(void 0===A)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return"\n"+A+e}var $=!1;function G(e,n){if(!e||$)return"";$=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(s){var r=s}Reflect.construct(e,[],n)}else{try{n.call()}catch(s){r=s}e.call(n.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var i=s.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{$=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Y(e):""}function W(e){switch(e.tag){case 5:return Y(e.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case j:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case I:return q(e.type);case R:return q(e._render);case D:n=e._payload,e=e._init;try{return q(e(n))}catch(t){}}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function V(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function K(e){e._valueTracker||(e._valueTracker=function(e){var n=V(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&"undefined"!==typeof t&&"function"===typeof t.get&&"function"===typeof t.set){var i=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function J(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Z(e,n){var t=n.checked;return i({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function ee(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=Q(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ne(e,n){null!=(n=n.checked)&&x(e,"checked",n,!1)}function te(e,n){ne(e,n);var t=Q(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?ie(e,n.type,t):n.hasOwnProperty("defaultValue")&&ie(e,n.type,Q(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function re(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function ie(e,n,t){"number"===n&&X(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function oe(e,n){return e=i({children:void 0},n),(n=function(e){var n="";return r.Children.forEach(e,(function(e){null!=e&&(n+=e)})),n}(n.children))&&(e.children=n),e}function ae(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+Q(t),n=null,i=0;i<e.length;i++){if(e[i].value===t)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==n||e[i].disabled||(n=e[i])}null!==n&&(n.selected=!0)}}function le(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(a(91));return i({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(a(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(a(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:Q(t)}}function ce(e,n){var t=Q(n.value),r=Q(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function ue(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}var pe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var ge,me,ve=(me=function(e,n){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=n;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return me(e,n)}))}:me);function ye(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,n,t){return null==n||"boolean"===typeof n||""===n?"":t||"number"!==typeof n||0===n||be.hasOwnProperty(e)&&be[e]?(""+n).trim():n+"px"}function _e(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),i=we(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,i):e[t]=i}}Object.keys(be).forEach((function(e){xe.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),be[n]=be[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,n){if(n){if(ke[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!==typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!==typeof n.style)throw Error(a(62))}}function Ee(e,n){if(-1===e.indexOf("-"))return"string"===typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function je(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ne=null,Pe=null;function Oe(e){if(e=ri(e)){if("function"!==typeof Ce)throw Error(a(280));var n=e.stateNode;n&&(n=oi(n),Ce(e.stateNode,e.type,n))}}function Te(e){Ne?Pe?Pe.push(e):Pe=[e]:Ne=e}function Ie(){if(Ne){var e=Ne,n=Pe;if(Pe=Ne=null,Oe(e),n)for(e=0;e<n.length;e++)Oe(n[e])}}function De(e,n){return e(n)}function Re(e,n,t,r,i){return e(n,t,r,i)}function Le(){}var Ue=De,ze=!1,Me=!1;function Fe(){null===Ne&&null===Pe||(Le(),Ie())}function Ae(e,n){var t=e.stateNode;if(null===t)return null;var r=oi(t);if(null===r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(t&&"function"!==typeof t)throw Error(a(231,n,typeof t));return t}var Be=!1;if(p)try{var He={};Object.defineProperty(He,"passive",{get:function(){Be=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(me){Be=!1}function Ye(e,n,t,r,i,o,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{n.apply(t,c)}catch(u){this.onError(u)}}var $e=!1,Ge=null,We=!1,qe=null,Qe={onError:function(e){$e=!0,Ge=e}};function Ve(e,n,t,r,i,o,a,l,s){$e=!1,Ge=null,Ye.apply(Qe,arguments)}function Ke(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!==(1026&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function Je(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&(null!==(e=e.alternate)&&(n=e.memoizedState)),null!==n)return n.dehydrated}return null}function Xe(e){if(Ke(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var n=e.alternate;if(!n){if(null===(n=Ke(e)))throw Error(a(188));return n!==e?null:e}for(var t=e,r=n;;){var i=t.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){t=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===t)return Xe(i),e;if(o===r)return Xe(i),n;o=o.sibling}throw Error(a(188))}if(t.return!==r.return)t=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===t){l=!0,t=i,r=o;break}if(s===r){l=!0,r=i,t=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===t){l=!0,t=o,r=i;break}if(s===r){l=!0,r=o,t=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(t.alternate!==r)throw Error(a(190))}if(3!==t.tag)throw Error(a(188));return t.stateNode.current===t?e:n}(e),!e)return null;for(var n=e;;){if(5===n.tag||6===n.tag)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===e)break;for(;!n.sibling;){if(!n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}function en(e,n){for(var t=e.alternate;null!==n;){if(n===e||n===t)return!0;n=n.return}return!1}var nn,tn,rn,on,an=!1,ln=[],sn=null,cn=null,un=null,pn=new Map,dn=new Map,fn=[],hn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gn(e,n,t,r,i){return{blockedOn:e,domEventName:n,eventSystemFlags:16|t,nativeEvent:i,targetContainers:[r]}}function mn(e,n){switch(e){case"focusin":case"focusout":sn=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":un=null;break;case"pointerover":case"pointerout":pn.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":dn.delete(n.pointerId)}}function vn(e,n,t,r,i,o){return null===e||e.nativeEvent!==o?(e=gn(n,t,r,i,o),null!==n&&(null!==(n=ri(n))&&tn(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==i&&-1===n.indexOf(i)&&n.push(i),e)}function yn(e){var n=ti(e.target);if(null!==n){var t=Ke(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=Je(t)))return e.blockedOn=n,void on(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rn(t)}))}))}else if(3===n&&t.stateNode.hydrate)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function bn(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=et(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=ri(t))&&tn(n),e.blockedOn=t,!1;n.shift()}return!0}function xn(e,n,t){bn(e)&&t.delete(n)}function wn(){for(an=!1;0<ln.length;){var e=ln[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&nn(e);break}for(var n=e.targetContainers;0<n.length;){var t=et(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t){e.blockedOn=t;break}n.shift()}null===e.blockedOn&&ln.shift()}null!==sn&&bn(sn)&&(sn=null),null!==cn&&bn(cn)&&(cn=null),null!==un&&bn(un)&&(un=null),pn.forEach(xn),dn.forEach(xn)}function _n(e,n){e.blockedOn===n&&(e.blockedOn=null,an||(an=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wn)))}function kn(e){function n(n){return _n(n,e)}if(0<ln.length){_n(ln[0],e);for(var t=1;t<ln.length;t++){var r=ln[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==sn&&_n(sn,e),null!==cn&&_n(cn,e),null!==un&&_n(un,e),pn.forEach(n),dn.forEach(n),t=0;t<fn.length;t++)(r=fn[t]).blockedOn===e&&(r.blockedOn=null);for(;0<fn.length&&null===(t=fn[0]).blockedOn;)yn(t),null===t.blockedOn&&fn.shift()}function Sn(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var En={animationend:Sn("Animation","AnimationEnd"),animationiteration:Sn("Animation","AnimationIteration"),animationstart:Sn("Animation","AnimationStart"),transitionend:Sn("Transition","TransitionEnd")},jn={},Cn={};function Nn(e){if(jn[e])return jn[e];if(!En[e])return e;var n,t=En[e];for(n in t)if(t.hasOwnProperty(n)&&n in Cn)return jn[e]=t[n];return e}p&&(Cn=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);var Pn=Nn("animationend"),On=Nn("animationiteration"),Tn=Nn("animationstart"),In=Nn("transitionend"),Dn=new Map,Rn=new Map,Ln=["abort","abort",Pn,"animationEnd",On,"animationIteration",Tn,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",In,"transitionEnd","waiting","waiting"];function Un(e,n){for(var t=0;t<e.length;t+=2){var r=e[t],i=e[t+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rn.set(r,n),Dn.set(r,i),c(i,[r])}}(0,o.unstable_now)();var zn=8;function Mn(e){if(0!==(1&e))return zn=15,1;if(0!==(2&e))return zn=14,2;if(0!==(4&e))return zn=13,4;var n=24&e;return 0!==n?(zn=12,n):0!==(32&e)?(zn=11,32):0!==(n=192&e)?(zn=10,n):0!==(256&e)?(zn=9,256):0!==(n=3584&e)?(zn=8,n):0!==(4096&e)?(zn=7,4096):0!==(n=4186112&e)?(zn=6,n):0!==(n=62914560&e)?(zn=5,n):67108864&e?(zn=4,67108864):0!==(134217728&e)?(zn=3,134217728):0!==(n=805306368&e)?(zn=2,n):0!==(1073741824&e)?(zn=1,1073741824):(zn=8,e)}function Fn(e,n){var t=e.pendingLanes;if(0===t)return zn=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=zn=15;else if(0!==(o=134217727&t)){var s=o&~a;0!==s?(r=Mn(s),i=zn):0!==(l&=o)&&(r=Mn(l),i=zn)}else 0!==(o=t&~a)?(r=Mn(o),i=zn):0!==l&&(r=Mn(l),i=zn);if(0===r)return 0;if(r=t&((0>(r=31-Gn(r))?0:1<<r)<<1)-1,0!==n&&n!==r&&0===(n&a)){if(Mn(n),i<=zn)return n;zn=i}if(0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)i=1<<(t=31-Gn(n)),r|=e[t],n&=~i;return r}function An(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bn(e,n){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Hn(24&~n))?Bn(10,n):e;case 10:return 0===(e=Hn(192&~n))?Bn(8,n):e;case 8:return 0===(e=Hn(3584&~n))&&(0===(e=Hn(4186112&~n))&&(e=512)),e;case 2:return 0===(n=Hn(805306368&~n))&&(n=268435456),n}throw Error(a(358,e))}function Hn(e){return e&-e}function Yn(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function $n(e,n,t){e.pendingLanes|=n;var r=n-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[n=31-Gn(n)]=t}var Gn=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wn(e)/qn|0)|0},Wn=Math.log,qn=Math.LN2;var Qn=o.unstable_UserBlockingPriority,Vn=o.unstable_runWithPriority,Kn=!0;function Jn(e,n,t,r){ze||Le();var i=Zn,o=ze;ze=!0;try{Re(i,e,n,t,r)}finally{(ze=o)||Fe()}}function Xn(e,n,t,r){Vn(Qn,Zn.bind(null,e,n,t,r))}function Zn(e,n,t,r){var i;if(Kn)if((i=0===(4&n))&&0<ln.length&&-1<hn.indexOf(e))e=gn(null,e,n,t,r),ln.push(e);else{var o=et(e,n,t,r);if(null===o)i&&mn(e,r);else{if(i){if(-1<hn.indexOf(e))return e=gn(o,e,n,t,r),void ln.push(e);if(function(e,n,t,r,i){switch(n){case"focusin":return sn=vn(sn,e,n,t,r,i),!0;case"dragenter":return cn=vn(cn,e,n,t,r,i),!0;case"mouseover":return un=vn(un,e,n,t,r,i),!0;case"pointerover":var o=i.pointerId;return pn.set(o,vn(pn.get(o)||null,e,n,t,r,i)),!0;case"gotpointercapture":return o=i.pointerId,dn.set(o,vn(dn.get(o)||null,e,n,t,r,i)),!0}return!1}(o,e,n,t,r))return;mn(e,r)}Lr(e,n,r,null,t)}}}function et(e,n,t,r){var i=je(r);if(null!==(i=ti(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Je(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,n,r,i,t),null}var nt=null,tt=null,rt=null;function it(){if(rt)return rt;var e,n,t=tt,r=t.length,i="value"in nt?nt.value:nt.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return rt=i.slice(e,1<n?1-n:void 0)}function ot(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function at(){return!0}function lt(){return!1}function st(e){function n(n,t,r,i,o){for(var a in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?at:lt,this.isPropagationStopped=lt,this}return i(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=at)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=at)},persist:function(){},isPersistent:at}),n}var ct,ut,pt,dt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ft=st(dt),ht=i({},dt,{view:0,detail:0}),gt=st(ht),mt=i({},ht,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pt&&(pt&&"mousemove"===e.type?(ct=e.screenX-pt.screenX,ut=e.screenY-pt.screenY):ut=ct=0,pt=e),ct)},movementY:function(e){return"movementY"in e?e.movementY:ut}}),vt=st(mt),yt=st(i({},mt,{dataTransfer:0})),bt=st(i({},ht,{relatedTarget:0})),xt=st(i({},dt,{animationName:0,elapsedTime:0,pseudoElement:0})),wt=i({},dt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_t=st(wt),kt=st(i({},dt,{data:0})),St={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Et={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ct(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=jt[e])&&!!n[e]}function Nt(){return Ct}var Pt=i({},ht,{key:function(e){if(e.key){var n=St[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=ot(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Et[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nt,charCode:function(e){return"keypress"===e.type?ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ot=st(Pt),Tt=st(i({},mt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),It=st(i({},ht,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nt})),Dt=st(i({},dt,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rt=i({},mt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lt=st(Rt),Ut=[9,13,27,32],zt=p&&"CompositionEvent"in window,Mt=null;p&&"documentMode"in document&&(Mt=document.documentMode);var Ft=p&&"TextEvent"in window&&!Mt,At=p&&(!zt||Mt&&8<Mt&&11>=Mt),Bt=String.fromCharCode(32),Ht=!1;function Yt(e,n){switch(e){case"keyup":return-1!==Ut.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $t(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Gt=!1;var Wt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Wt[e.type]:"textarea"===n}function Qt(e,n,t,r){Te(r),0<(n=zr(n,"onChange")).length&&(t=new ft("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Vt=null,Kt=null;function Jt(e){Pr(e,0)}function Xt(e){if(J(ii(e)))return e}function Zt(e,n){if("change"===e)return n}var er=!1;if(p){var nr;if(p){var tr="oninput"in document;if(!tr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),tr="function"===typeof rr.oninput}nr=tr}else nr=!1;er=nr&&(!document.documentMode||9<document.documentMode)}function ir(){Vt&&(Vt.detachEvent("onpropertychange",or),Kt=Vt=null)}function or(e){if("value"===e.propertyName&&Xt(Kt)){var n=[];if(Qt(n,Kt,e,je(e)),e=Jt,ze)e(n);else{ze=!0;try{De(e,n)}finally{ze=!1,Fe()}}}}function ar(e,n,t){"focusin"===e?(ir(),Kt=t,(Vt=n).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xt(Kt)}function sr(e,n){if("click"===e)return Xt(n)}function cr(e,n){if("input"===e||"change"===e)return Xt(n)}var ur="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},pr=Object.prototype.hasOwnProperty;function dr(e,n){if(ur(e,n))return!0;if("object"!==typeof e||null===e||"object"!==typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++)if(!pr.call(n,t[r])||!ur(e[t[r]],n[t[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,n){var t,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function gr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?gr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function mr(){for(var e=window,n=X();n instanceof e.HTMLIFrameElement;){try{var t="string"===typeof n.contentWindow.location.href}catch(r){t=!1}if(!t)break;n=X((e=n.contentWindow).document)}return n}function vr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var yr=p&&"documentMode"in document&&11>=document.documentMode,br=null,xr=null,wr=null,_r=!1;function kr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;_r||null==br||br!==X(r)||("selectionStart"in(r=br)&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=zr(xr,"onSelect")).length&&(n=new ft("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=br)))}Un("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Un("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Un(Ln,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Sr.length;Er++)Rn.set(Sr[Er],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Nr(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,function(e,n,t,r,i,o,l,s,c){if(Ve.apply(this,arguments),$e){if(!$e)throw Error(a(198));var u=Ge;$e=!1,Ge=null,We||(We=!0,qe=u)}}(r,n,void 0,e),e.currentTarget=null}function Pr(e,n){n=0!==(4&n);for(var t=0;t<e.length;t++){var r=e[t],i=r.event;r=r.listeners;e:{var o=void 0;if(n)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Nr(i,l,c),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Nr(i,l,c),o=s}}}if(We)throw e=qe,We=!1,qe=null,e}function Or(e,n){var t=ai(n),r=e+"__bubble";t.has(r)||(Rr(n,e,2,!1),t.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Tr]||(e[Tr]=!0,l.forEach((function(n){Cr.has(n)||Dr(n,!1,e,null),Dr(n,!0,e,null)})))}function Dr(e,n,t,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=t;if("selectionchange"===e&&9!==t.nodeType&&(o=t.ownerDocument),null!==r&&!n&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),l=e+"__"+(n?"capture":"bubble");a.has(l)||(n&&(i|=4),Rr(o,e,i,n),a.add(l))}function Rr(e,n,t,r){var i=Rn.get(n);switch(void 0===i?2:i){case 0:i=Jn;break;case 1:i=Xn;break;default:i=Zn}t=i.bind(null,n,t,e),i=void 0,!Be||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(i=!0),r?void 0!==i?e.addEventListener(n,t,{capture:!0,passive:i}):e.addEventListener(n,t,!0):void 0!==i?e.addEventListener(n,t,{passive:i}):e.addEventListener(n,t,!1)}function Lr(e,n,t,r,i){var o=r;if(0===(1&n)&&0===(2&n)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=ti(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,n,t){if(Me)return e(n,t);Me=!0;try{Ue(e,n,t)}finally{Me=!1,Fe()}}((function(){var r=o,i=je(t),a=[];e:{var l=Dn.get(e);if(void 0!==l){var s=ft,c=e;switch(e){case"keypress":if(0===ot(t))break e;case"keydown":case"keyup":s=Ot;break;case"focusin":c="focus",s=bt;break;case"focusout":c="blur",s=bt;break;case"beforeblur":case"afterblur":s=bt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=It;break;case Pn:case On:case Tn:s=xt;break;case In:s=Dt;break;case"scroll":s=gt;break;case"wheel":s=Lt;break;case"copy":case"cut":case"paste":s=_t;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tt}var u=0!==(4&n),p=!u&&"scroll"===e,d=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var g=(f=h).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==d&&(null!=(g=Ae(h,d))&&u.push(Ur(h,g,f)))),p)break;h=h.return}0<u.length&&(l=new s(l,c,null,t,i),a.push({event:l,listeners:u}))}}if(0===(7&n)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&n)||!(c=t.relatedTarget||t.fromElement)||!ti(c)&&!c[ei])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=t.relatedTarget||t.toElement)?ti(c):null)&&(c!==(p=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=vt,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tt,g="onPointerLeave",d="onPointerEnter",h="pointer"),p=null==s?l:ii(s),f=null==c?l:ii(c),(l=new u(g,h+"leave",s,t,i)).target=p,l.relatedTarget=f,g=null,ti(i)===r&&((u=new u(d,h+"enter",c,t,i)).target=f,u.relatedTarget=p,g=u),p=g,s&&c)e:{for(d=c,h=0,f=u=s;f;f=Mr(f))h++;for(f=0,g=d;g;g=Mr(g))f++;for(;0<h-f;)u=Mr(u),h--;for(;0<f-h;)d=Mr(d),f--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=Mr(u),d=Mr(d)}u=null}else u=null;null!==s&&Fr(a,l,s,u,!1),null!==c&&null!==p&&Fr(a,p,c,u,!0)}if("select"===(s=(l=r?ii(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Zt;else if(qt(l))if(er)m=cr;else{m=lr;var v=ar}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=sr);switch(m&&(m=m(e,r))?Qt(a,m,t,i):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ie(l,"number",l.value)),v=r?ii(r):window,e){case"focusin":(qt(v)||"true"===v.contentEditable)&&(br=v,xr=r,wr=null);break;case"focusout":wr=xr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,kr(a,t,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":kr(a,t,i)}var y;if(zt)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Gt?Yt(e,t)&&(b="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(b="onCompositionStart");b&&(At&&"ko"!==t.locale&&(Gt||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gt&&(y=it()):(tt="value"in(nt=i)?nt.value:nt.textContent,Gt=!0)),0<(v=zr(r,b)).length&&(b=new kt(b,e,null,t,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$t(t))&&(b.data=y))),(y=Ft?function(e,n){switch(e){case"compositionend":return $t(n);case"keypress":return 32!==n.which?null:(Ht=!0,Bt);case"textInput":return(e=n.data)===Bt&&Ht?null:e;default:return null}}(e,t):function(e,n){if(Gt)return"compositionend"===e||!zt&&Yt(e,n)?(e=it(),rt=tt=nt=null,Gt=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return At&&"ko"!==n.locale?null:n.data}}(e,t))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new kt("onBeforeInput","beforeinput",null,t,i),a.push({event:i,listeners:r}),i.data=y))}Pr(a,n)}))}function Ur(e,n,t){return{instance:e,listener:n,currentTarget:t}}function zr(e,n){for(var t=n+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ae(e,t))&&r.unshift(Ur(e,o,i)),null!=(o=Ae(e,n))&&r.push(Ur(e,o,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,n,t,r,i){for(var o=n._reactName,a=[];null!==t&&t!==r;){var l=t,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,i?null!=(s=Ae(t,o))&&a.unshift(Ur(t,s,l)):i||null!=(s=Ae(t,o))&&a.push(Ur(t,s,l))),t=t.return}0!==a.length&&e.push({event:n,listeners:a})}function Ar(){}var Br=null,Hr=null;function Yr(e,n){switch(e){case"button":case"input":case"select":case"textarea":return!!n.autoFocus}return!1}function $r(e,n){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof n.children||"number"===typeof n.children||"object"===typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var Gr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Qr(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break}return e}function Vr(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}var Kr=0;var Jr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Jr,Zr="__reactProps$"+Jr,ei="__reactContainer$"+Jr,ni="__reactEvents$"+Jr;function ti(e){var n=e[Xr];if(n)return n;for(var t=e.parentNode;t;){if(n=t[ei]||t[Xr]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=Vr(e);null!==e;){if(t=e[Xr])return t;e=Vr(e)}return n}t=(e=t).parentNode}return null}function ri(e){return!(e=e[Xr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oi(e){return e[Zr]||null}function ai(e){var n=e[ni];return void 0===n&&(n=e[ni]=new Set),n}var li=[],si=-1;function ci(e){return{current:e}}function ui(e){0>si||(e.current=li[si],li[si]=null,si--)}function pi(e,n){si++,li[si]=e.current,e.current=n}var di={},fi=ci(di),hi=ci(!1),gi=di;function mi(e,n){var t=e.type.contextTypes;if(!t)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in t)o[i]=n[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ui(hi),ui(fi)}function bi(e,n,t){if(fi.current!==di)throw Error(a(168));pi(fi,n),pi(hi,t)}function xi(e,n,t){var r=e.stateNode;if(e=n.childContextTypes,"function"!==typeof r.getChildContext)return t;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,q(n)||"Unknown",o));return i({},t,r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,gi=fi.current,pi(fi,e),pi(hi,hi.current),!0}function _i(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=xi(e,n,gi),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(fi),pi(fi,e)):ui(hi),pi(hi,t)}var ki=null,Si=null,Ei=o.unstable_runWithPriority,ji=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Ni=o.unstable_shouldYield,Pi=o.unstable_requestPaint,Oi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ii=o.unstable_ImmediatePriority,Di=o.unstable_UserBlockingPriority,Ri=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ui=o.unstable_IdlePriority,zi={},Mi=void 0!==Pi?Pi:function(){},Fi=null,Ai=null,Bi=!1,Hi=Oi(),Yi=1e4>Hi?Oi:function(){return Oi()-Hi};function $i(){switch(Ti()){case Ii:return 99;case Di:return 98;case Ri:return 97;case Li:return 96;case Ui:return 95;default:throw Error(a(332))}}function Gi(e){switch(e){case 99:return Ii;case 98:return Di;case 97:return Ri;case 96:return Li;case 95:return Ui;default:throw Error(a(332))}}function Wi(e,n){return e=Gi(e),Ei(e,n)}function qi(e,n,t){return e=Gi(e),ji(e,n,t)}function Qi(){if(null!==Ai){var e=Ai;Ai=null,Ci(e)}Vi()}function Vi(){if(!Bi&&null!==Fi){Bi=!0;var e=0;try{var n=Fi;Wi(99,(function(){for(;e<n.length;e++){var t=n[e];do{t=t(!0)}while(null!==t)}})),Fi=null}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),ji(Ii,Qi),t}finally{Bi=!1}}}var Ki=w.ReactCurrentBatchConfig;function Ji(e,n){if(e&&e.defaultProps){for(var t in n=i({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}var Xi=ci(null),Zi=null,eo=null,no=null;function to(){no=eo=Zi=null}function ro(e){var n=Xi.current;ui(Xi),e.type._context._currentValue=n}function io(e,n){for(;null!==e;){var t=e.alternate;if((e.childLanes&n)===n){if(null===t||(t.childLanes&n)===n)break;t.childLanes|=n}else e.childLanes|=n,null!==t&&(t.childLanes|=n);e=e.return}}function oo(e,n){Zi=e,no=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&n)&&(za=!0),e.firstContext=null)}function ao(e,n){if(no!==e&&!1!==n&&0!==n)if("number"===typeof n&&1073741823!==n||(no=e,n=1073741823),n={context:e,observedBits:n,next:null},null===eo){if(null===Zi)throw Error(a(308));eo=n,Zi.dependencies={lanes:0,firstContext:n,responders:null}}else eo=eo.next=n;return e._currentValue}var lo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function po(e,n){if(null!==(e=e.updateQueue)){var t=(e=e.shared).pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}}function fo(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===o?i=o=a:o=o.next=a,t=t.next}while(null!==t);null===o?i=o=n:o=o.next=n}else i=o=n;return t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function ho(e,n,t,r){var o=e.updateQueue;lo=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var c=s,u=c.next;c.next=null,null===l?a=u:l.next=u,l=c;var p=e.alternate;if(null!==p){var d=(p=p.updateQueue).lastBaseUpdate;d!==l&&(null===d?p.firstBaseUpdate=u:d.next=u,p.lastBaseUpdate=c)}}if(null!==a){for(d=o.baseState,l=0,p=u=c=null;;){s=a.lane;var f=a.eventTime;if((r&s)===s){null!==p&&(p=p.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,g=a;switch(s=n,f=t,g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(f,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=g.payload)?h.call(f,d,s):h)||void 0===s)break e;d=i({},d,s);break e;case 2:lo=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else f={eventTime:f,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===p?(u=p=f,c=d):p=p.next=f,l|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===p&&(c=d),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=p,Bl|=l,e.lanes=l,e.memoizedState=d}}function go(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],i=r.callback;if(null!==i){if(r.callback=null,r=t,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function vo(e,n,t,r){t=null===(t=t(r,n=e.memoizedState))||void 0===t?n:i({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var yo={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=ds(),i=fs(e),o=uo(r,i);o.payload=n,void 0!==t&&null!==t&&(o.callback=t),po(e,o),hs(e,i,r)},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=ds(),i=fs(e),o=uo(r,i);o.tag=1,o.payload=n,void 0!==t&&null!==t&&(o.callback=t),po(e,o),hs(e,i,r)},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=ds(),r=fs(e),i=uo(t,r);i.tag=2,void 0!==n&&null!==n&&(i.callback=n),po(e,i),hs(e,r,t)}};function bo(e,n,t,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!n.prototype||!n.prototype.isPureReactComponent||(!dr(t,r)||!dr(i,o))}function xo(e,n,t){var r=!1,i=di,o=n.contextType;return"object"===typeof o&&null!==o?o=ao(o):(i=vi(n)?gi:fi.current,o=(r=null!==(r=n.contextTypes)&&void 0!==r)?mi(e,i):di),n=new n(t,o),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=yo,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),n}function wo(e,n,t,r){e=n.state,"function"===typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"===typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&yo.enqueueReplaceState(n,n.state,null)}function _o(e,n,t,r){var i=e.stateNode;i.props=t,i.state=e.memoizedState,i.refs=mo,so(e);var o=n.contextType;"object"===typeof o&&null!==o?i.context=ao(o):(o=vi(n)?gi:fi.current,i.context=mi(e,o)),ho(e,t,i,r),i.state=e.memoizedState,"function"===typeof(o=n.getDerivedStateFromProps)&&(vo(e,n,o,t),i.state=e.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(n=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),n!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,t,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function So(e,n,t){if(null!==(e=t.ref)&&"function"!==typeof e&&"object"!==typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(a(309));var r=t.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==n&&null!==n.ref&&"function"===typeof n.ref&&n.ref._stringRef===i?n.ref:(n=function(e){var n=r.refs;n===mo&&(n=r.refs={}),null===e?delete n[i]:n[i]=e},n._stringRef=i,n)}if("string"!==typeof e)throw Error(a(284));if(!t._owner)throw Error(a(290,e))}return e}function Eo(e,n){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(n)?"object with keys {"+Object.keys(n).join(", ")+"}":n))}function jo(e){function n(n,t){if(e){var r=n.lastEffect;null!==r?(r.nextEffect=t,n.lastEffect=t):n.firstEffect=n.lastEffect=t,t.nextEffect=null,t.flags=8}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function i(e,n){return(e=Ws(e,n)).index=0,e.sibling=null,e}function o(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags=2,t):r:(n.flags=2,t):t}function l(n){return e&&null===n.alternate&&(n.flags=2),n}function s(e,n,t,r){return null===n||6!==n.tag?((n=Ks(t,e.mode,r)).return=e,n):((n=i(n,t)).return=e,n)}function c(e,n,t,r){return null!==n&&n.elementType===t.type?((r=i(n,t.props)).ref=So(e,n,t),r.return=e,r):((r=qs(t.type,t.key,t.props,null,e.mode,r)).ref=So(e,n,t),r.return=e,r)}function u(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Js(t,e.mode,r)).return=e,n):((n=i(n,t.children||[])).return=e,n)}function p(e,n,t,r,o){return null===n||7!==n.tag?((n=Qs(t,e.mode,r,o)).return=e,n):((n=i(n,t)).return=e,n)}function d(e,n,t){if("string"===typeof n||"number"===typeof n)return(n=Ks(""+n,e.mode,t)).return=e,n;if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return(t=qs(n.type,n.key,n.props,null,e.mode,t)).ref=So(e,null,n),t.return=e,t;case k:return(n=Js(n,e.mode,t)).return=e,n}if(ko(n)||H(n))return(n=Qs(n,e.mode,t,null)).return=e,n;Eo(e,n)}return null}function f(e,n,t,r){var i=null!==n?n.key:null;if("string"===typeof t||"number"===typeof t)return null!==i?null:s(e,n,""+t,r);if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return t.key===i?t.type===S?p(e,n,t.props.children,r,i):c(e,n,t,r):null;case k:return t.key===i?u(e,n,t,r):null}if(ko(t)||H(t))return null!==i?null:p(e,n,t,r,null);Eo(e,t)}return null}function h(e,n,t,r,i){if("string"===typeof r||"number"===typeof r)return s(n,e=e.get(t)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?t:r.key)||null,r.type===S?p(n,e,r.props.children,i,r.key):c(n,e,r,i);case k:return u(n,e=e.get(null===r.key?t:r.key)||null,r,i)}if(ko(r)||H(r))return p(n,e=e.get(t)||null,r,i,null);Eo(n,r)}return null}function g(i,a,l,s){for(var c=null,u=null,p=a,g=a=0,m=null;null!==p&&g<l.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=f(i,p,l[g],s);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&n(i,p),a=o(v,a,g),null===u?c=v:u.sibling=v,u=v,p=m}if(g===l.length)return t(i,p),c;if(null===p){for(;g<l.length;g++)null!==(p=d(i,l[g],s))&&(a=o(p,a,g),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(i,p);g<l.length;g++)null!==(m=h(p,i,g,l[g],s))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&p.forEach((function(e){return n(i,e)})),c}function m(i,l,s,c){var u=H(s);if("function"!==typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var p=u=null,g=l,m=l=0,v=null,y=s.next();null!==g&&!y.done;m++,y=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(i,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&n(i,g),l=o(b,l,m),null===p?u=b:p.sibling=b,p=b,g=v}if(y.done)return t(i,g),u;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,c))&&(l=o(y,l,m),null===p?u=y:p.sibling=y,p=y);return u}for(g=r(i,g);!y.done;m++,y=s.next())null!==(y=h(g,i,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=o(y,l,m),null===p?u=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return n(i,e)})),u}return function(e,r,o,s){var c="object"===typeof o&&null!==o&&o.type===S&&null===o.key;c&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case _:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===S){t(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){t(e,c.sibling),(r=i(c,o.props)).ref=So(e,c,o),r.return=e,e=r;break e}t(e,c);break}n(e,c),c=c.sibling}o.type===S?((r=Qs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=qs(o.type,o.key,o.props,null,e.mode,s)).ref=So(e,r,o),s.return=e,e=s)}return l(e);case k:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){t(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=Js(o,e.mode,s)).return=e,e=r}return l(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(t(e,r.sibling),(r=i(r,o)).return=e,e=r):(t(e,r),(r=Ks(o,e.mode,s)).return=e,e=r),l(e);if(ko(o))return g(e,r,o,s);if(H(o))return m(e,r,o,s);if(u&&Eo(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return t(e,r)}}var Co=jo(!0),No=jo(!1),Po={},Oo=ci(Po),To=ci(Po),Io=ci(Po);function Do(e){if(e===Po)throw Error(a(174));return e}function Ro(e,n){switch(pi(Io,n),pi(To,e),pi(Oo,Po),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:he(null,"");break;default:n=he(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}ui(Oo),pi(Oo,n)}function Lo(){ui(Oo),ui(To),ui(Io)}function Uo(e){Do(Io.current);var n=Do(Oo.current),t=he(n,e.type);n!==t&&(pi(To,e),pi(Oo,t))}function zo(e){To.current===e&&(ui(Oo),ui(To))}var Mo=ci(0);function Fo(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!==(64&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ao=null,Bo=null,Ho=!1;function Yo(e,n){var t=$s(5,null,null,0);t.elementType="DELETED",t.type="DELETED",t.stateNode=n,t.return=e,t.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t}function $o(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,!0);default:return!1}}function Go(e){if(Ho){var n=Bo;if(n){var t=n;if(!$o(e,n)){if(!(n=Qr(t.nextSibling))||!$o(e,n))return e.flags=-1025&e.flags|2,Ho=!1,void(Ao=e);Yo(Ao,t)}Ao=e,Bo=Qr(n.firstChild)}else e.flags=-1025&e.flags|2,Ho=!1,Ao=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ao=e}function qo(e){if(e!==Ao)return!1;if(!Ho)return Wo(e),Ho=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!$r(n,e.memoizedProps))for(n=Bo;n;)Yo(e,n),n=Qr(n.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t){if(0===n){Bo=Qr(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}Bo=null}}else Bo=Ao?Qr(e.stateNode.nextSibling):null;return!0}function Qo(){Bo=Ao=null,Ho=!1}var Vo=[];function Ko(){for(var e=0;e<Vo.length;e++)Vo[e]._workInProgressVersionPrimary=null;Vo.length=0}var Jo=w.ReactCurrentDispatcher,Xo=w.ReactCurrentBatchConfig,Zo=0,ea=null,na=null,ta=null,ra=!1,ia=!1;function oa(){throw Error(a(321))}function aa(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!ur(e[t],n[t]))return!1;return!0}function la(e,n,t,r,i,o){if(Zo=o,ea=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Jo.current=null===e||null===e.memoizedState?Da:Ra,e=t(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(a(301));o+=1,ta=na=null,n.updateQueue=null,Jo.current=La,e=t(r,i)}while(ia)}if(Jo.current=Ia,n=null!==na&&null!==na.next,Zo=0,ta=na=ea=null,ra=!1,n)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?ea.memoizedState=ta=e:ta=ta.next=e,ta}function ca(){if(null===na){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=na.next;var n=null===ta?ea.memoizedState:ta.next;if(null!==n)ta=n,na=e;else{if(null===e)throw Error(a(310));e={memoizedState:(na=e).memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},null===ta?ea.memoizedState=ta=e:ta=ta.next=e}return ta}function ua(e,n){return"function"===typeof n?n(e):n}function pa(e){var n=ca(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=na,i=r.baseQueue,o=t.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,t.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=o=null,c=i;do{var u=c.lane;if((Zo&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var p={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=p,o=r):s=s.next=p,ea.lanes|=u,Bl|=u}c=c.next}while(null!==c&&c!==i);null===s?o=r:s.next=l,ur(r,n.memoizedState)||(za=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=s,t.lastRenderedState=r}return[n.memoizedState,t.dispatch]}function da(e){var n=ca(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,o=n.memoizedState;if(null!==i){t.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ur(o,n.memoizedState)||(za=!0),n.memoizedState=o,null===n.baseQueue&&(n.baseState=o),t.lastRenderedState=o}return[o,r]}function fa(e,n,t){var r=n._getVersion;r=r(n._source);var i=n._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Zo&e)===e)&&(n._workInProgressVersionPrimary=r,Vo.push(n))),e)return t(n._source);throw Vo.push(n),Error(a(350))}function ha(e,n,t,r){var i=Dl;if(null===i)throw Error(a(349));var o=n._getVersion,l=o(n._source),s=Jo.current,c=s.useState((function(){return fa(i,n,t)})),u=c[1],p=c[0];c=ta;var d=e.memoizedState,f=d.refs,h=f.getSnapshot,g=d.source;d=d.subscribe;var m=ea;return e.memoizedState={refs:f,source:n,subscribe:r},s.useEffect((function(){f.getSnapshot=t,f.setSnapshot=u;var e=o(n._source);if(!ur(l,e)){e=t(n._source),ur(p,e)||(u(e),e=fs(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Gn(a),c=1<<s;r[s]|=e,a&=~c}}}),[t,n,r]),s.useEffect((function(){return r(n._source,(function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=fs(m);i.mutableReadLanes|=r&i.pendingLanes}catch(o){t((function(){throw o}))}}))}),[n,r]),ur(h,t)&&ur(g,n)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:p}).dispatch=u=Ta.bind(null,ea,e),c.queue=e,c.baseQueue=null,p=fa(i,n,t),c.memoizedState=c.baseState=p),p}function ga(e,n,t){return ha(ca(),e,n,t)}function ma(e){var n=sa();return"function"===typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ta.bind(null,ea,e),[n.memoizedState,e]}function va(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=ea.updateQueue)?(n={lastEffect:null},ea.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function ya(e){return e={current:e},sa().memoizedState=e}function ba(){return ca().memoizedState}function xa(e,n,t,r){var i=sa();ea.flags|=e,i.memoizedState=va(1|n,t,void 0,void 0===r?null:r)}function wa(e,n,t,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==na){var a=na.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void va(n,t,o,r)}ea.flags|=e,i.memoizedState=va(1|n,t,o,r)}function _a(e,n){return xa(516,4,e,n)}function ka(e,n){return wa(516,4,e,n)}function Sa(e,n){return wa(4,2,e,n)}function Ea(e,n){return"function"===typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function ja(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,wa(4,2,Ea.bind(null,n,e),t)}function Ca(){}function Na(e,n){var t=ca();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&aa(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Pa(e,n){var t=ca();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&aa(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Oa(e,n){var t=$i();Wi(98>t?98:t,(function(){e(!0)})),Wi(97<t?97:t,(function(){var t=Xo.transition;Xo.transition=1;try{e(!1),n()}finally{Xo.transition=t}}))}function Ta(e,n,t){var r=ds(),i=fs(e),o={lane:i,action:t,eagerReducer:null,eagerState:null,next:null},a=n.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),n.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var l=n.lastRenderedState,s=a(l,t);if(o.eagerReducer=a,o.eagerState=s,ur(s,l))return}catch(c){}hs(e,i,r)}}var Ia={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Da={readContext:ao,useCallback:function(e,n){return sa().memoizedState=[e,void 0===n?null:n],e},useContext:ao,useEffect:_a,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,xa(4,2,Ea.bind(null,n,e),t)},useLayoutEffect:function(e,n){return xa(4,2,e,n)},useMemo:function(e,n){var t=sa();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=sa();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=Ta.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:ma,useDebugValue:Ca,useDeferredValue:function(e){var n=ma(e),t=n[0],r=n[1];return _a((function(){var n=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=n}}),[e]),t},useTransition:function(){var e=ma(!1),n=e[0];return ya(e=Oa.bind(null,e[1])),[e,n]},useMutableSource:function(e,n,t){var r=sa();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},ha(r,e,n,t)},useOpaqueIdentifier:function(){if(Ho){var e=!1,n=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,t("r:"+(Kr++).toString(36))),Error(a(355))})),t=ma(n)[1];return 0===(2&ea.mode)&&(ea.flags|=516,va(5,(function(){t("r:"+(Kr++).toString(36))}),void 0,null)),n}return ma(n="r:"+(Kr++).toString(36)),n},unstable_isNewReconciler:!1},Ra={readContext:ao,useCallback:Na,useContext:ao,useEffect:ka,useImperativeHandle:ja,useLayoutEffect:Sa,useMemo:Pa,useReducer:pa,useRef:ba,useState:function(){return pa(ua)},useDebugValue:Ca,useDeferredValue:function(e){var n=pa(ua),t=n[0],r=n[1];return ka((function(){var n=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=n}}),[e]),t},useTransition:function(){var e=pa(ua)[0];return[ba().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},La={readContext:ao,useCallback:Na,useContext:ao,useEffect:ka,useImperativeHandle:ja,useLayoutEffect:Sa,useMemo:Pa,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Ca,useDeferredValue:function(e){var n=da(ua),t=n[0],r=n[1];return ka((function(){var n=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=n}}),[e]),t},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Ua=w.ReactCurrentOwner,za=!1;function Ma(e,n,t,r){n.child=null===e?No(n,null,t,r):Co(n,e.child,t,r)}function Fa(e,n,t,r,i){t=t.render;var o=n.ref;return oo(n,i),r=la(e,n,t,r,o,i),null===e||za?(n.flags|=1,Ma(e,n,r,i),n.child):(n.updateQueue=e.updateQueue,n.flags&=-517,e.lanes&=~i,ol(e,n,i))}function Aa(e,n,t,r,i,o){if(null===e){var a=t.type;return"function"!==typeof a||Gs(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=qs(t.type,null,r,n,n.mode,o)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Ba(e,n,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(t=null!==(t=t.compare)?t:dr)(i,r)&&e.ref===n.ref)?ol(e,n,o):(n.flags|=1,(e=Ws(a,r)).ref=n.ref,e.return=n,n.child=e)}function Ba(e,n,t,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===n.ref){if(za=!1,0===(o&i))return n.lanes=e.lanes,ol(e,n,o);0!==(16384&e.flags)&&(za=!0)}return $a(e,n,t,r,o)}function Ha(e,n,t){var r=n.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&n.mode))n.memoizedState={baseLanes:0},_s(n,t);else{if(0===(1073741824&t))return e=null!==o?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e},_s(n,e),null;n.memoizedState={baseLanes:0},_s(n,null!==o?o.baseLanes:t)}else null!==o?(r=o.baseLanes|t,n.memoizedState=null):r=t,_s(n,r);return Ma(e,n,i,t),n.child}function Ya(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=128)}function $a(e,n,t,r,i){var o=vi(t)?gi:fi.current;return o=mi(n,o),oo(n,i),t=la(e,n,t,r,o,i),null===e||za?(n.flags|=1,Ma(e,n,t,i),n.child):(n.updateQueue=e.updateQueue,n.flags&=-517,e.lanes&=~i,ol(e,n,i))}function Ga(e,n,t,r,i){if(vi(t)){var o=!0;wi(n)}else o=!1;if(oo(n,i),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),xo(n,t,r),_o(n,t,r,i),r=!0;else if(null===e){var a=n.stateNode,l=n.memoizedProps;a.props=l;var s=a.context,c=t.contextType;"object"===typeof c&&null!==c?c=ao(c):c=mi(n,c=vi(t)?gi:fi.current);var u=t.getDerivedStateFromProps,p="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==c)&&wo(n,a,r,c),lo=!1;var d=n.memoizedState;a.state=d,ho(n,r,a,i),s=n.memoizedState,l!==r||d!==s||hi.current||lo?("function"===typeof u&&(vo(n,t,u,r),s=n.memoizedState),(l=lo||bo(n,t,l,r,d,s,c))?(p||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(n.flags|=4)):("function"===typeof a.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"===typeof a.componentDidMount&&(n.flags|=4),r=!1)}else{a=n.stateNode,co(e,n),l=n.memoizedProps,c=n.type===n.elementType?l:Ji(n.type,l),a.props=c,p=n.pendingProps,d=a.context,"object"===typeof(s=t.contextType)&&null!==s?s=ao(s):s=mi(n,s=vi(t)?gi:fi.current);var f=t.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==p||d!==s)&&wo(n,a,r,s),lo=!1,d=n.memoizedState,a.state=d,ho(n,r,a,i);var h=n.memoizedState;l!==p||d!==h||hi.current||lo?("function"===typeof f&&(vo(n,t,f,r),h=n.memoizedState),(c=lo||bo(n,t,c,r,d,h,s))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(n.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(n.flags|=256)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=256),n.memoizedProps=r,n.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=256),r=!1)}return Wa(e,n,t,r,o,i)}function Wa(e,n,t,r,i,o){Ya(e,n);var a=0!==(64&n.flags);if(!r&&!a)return i&&_i(n,t,!1),ol(e,n,o);r=n.stateNode,Ua.current=n;var l=a&&"function"!==typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&a?(n.child=Co(n,e.child,null,o),n.child=Co(n,null,l,o)):Ma(e,n,l,o),n.memoizedState=r.state,i&&_i(n,t,!0),n.child}function qa(e){var n=e.stateNode;n.pendingContext?bi(0,n.pendingContext,n.pendingContext!==n.context):n.context&&bi(0,n.context,!1),Ro(e,n.containerInfo)}var Qa,Va,Ka,Ja={dehydrated:null,retryLane:0};function Xa(e,n,t){var r,i=n.pendingProps,o=Mo.current,a=!1;return(r=0!==(64&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,n.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),pi(Mo,1&o),null===e?(void 0!==i.fallback&&Go(n),e=i.children,o=i.fallback,a?(e=Za(n,e,o,t),n.child.memoizedState={baseLanes:t},n.memoizedState=Ja,e):"number"===typeof i.unstable_expectedLoadTime?(e=Za(n,e,o,t),n.child.memoizedState={baseLanes:t},n.memoizedState=Ja,n.lanes=33554432,e):((t=Vs({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,a?(i=nl(e,n,i.children,i.fallback,t),a=n.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:t}:{baseLanes:o.baseLanes|t},a.childLanes=e.childLanes&~t,n.memoizedState=Ja,i):(t=el(e,n,i.children,t),n.memoizedState=null,t))}function Za(e,n,t,r){var i=e.mode,o=e.child;return n={mode:"hidden",children:n},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=n):o=Vs(n,i,0,null),t=Qs(t,i,r,null),o.return=e,t.return=e,o.sibling=t,e.child=o,t}function el(e,n,t,r){var i=e.child;return e=i.sibling,t=Ws(i,{mode:"visible",children:t}),0===(2&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,n.firstEffect=n.lastEffect=e),n.child=t}function nl(e,n,t,r,i){var o=n.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:t};return 0===(2&o)&&n.child!==a?((t=n.child).childLanes=0,t.pendingProps=l,null!==(a=t.lastEffect)?(n.firstEffect=t.firstEffect,n.lastEffect=a,a.nextEffect=null):n.firstEffect=n.lastEffect=null):t=Ws(a,l),null!==e?r=Ws(e,r):(r=Qs(r,o,i,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function tl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),io(e.return,n)}function rl(e,n,t,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i,lastEffect:o}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=i,a.lastEffect=o)}function il(e,n,t){var r=n.pendingProps,i=r.revealOrder,o=r.tail;if(Ma(e,n,r.children,t),0!==(2&(r=Mo.current)))r=1&r|2,n.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,t);else if(19===e.tag)tl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pi(Mo,r),0===(2&n.mode))n.memoizedState=null;else switch(i){case"forwards":for(t=n.child,i=null;null!==t;)null!==(e=t.alternate)&&null===Fo(e)&&(i=t),t=t.sibling;null===(t=i)?(i=n.child,n.child=null):(i=t.sibling,t.sibling=null),rl(n,!1,i,t,o,n.lastEffect);break;case"backwards":for(t=null,i=n.child,n.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){n.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}rl(n,!0,t,null,o,n.lastEffect);break;case"together":rl(n,!1,null,null,void 0,n.lastEffect);break;default:n.memoizedState=null}return n.child}function ol(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Bl|=n.lanes,0!==(t&n.childLanes)){if(null!==e&&n.child!==e.child)throw Error(a(153));if(null!==n.child){for(t=Ws(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Ws(e,e.pendingProps)).return=n;t.sibling=null}return n.child}return null}function al(e,n){if(!Ho)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ll(e,n,t){var r=n.pendingProps;switch(n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vi(n.type)&&yi(),null;case 3:return Lo(),ui(hi),ui(fi),Ko(),(r=n.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(n)?n.flags|=4:r.hydrate||(n.flags|=256)),null;case 5:zo(n);var o=Do(Io.current);if(t=n.type,null!==e&&null!=n.stateNode)Va(e,n,t,r),e.ref!==n.ref&&(n.flags|=128);else{if(!r){if(null===n.stateNode)throw Error(a(166));return null}if(e=Do(Oo.current),qo(n)){r=n.stateNode,t=n.type;var l=n.memoizedProps;switch(r[Xr]=n,r[Zr]=l,t){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<jr.length;e++)Or(jr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,l),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Or("invalid",r);break;case"textarea":se(r,l),Or("invalid",r)}for(var c in Se(t,l),e=null,l)l.hasOwnProperty(c)&&(o=l[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Or("scroll",r));switch(t){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=Ar)}r=e,n.updateQueue=r,null!==r&&(n.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===pe&&(e=fe(t)),e===pe?"script"===t?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(t,{is:r.is}):(e=c.createElement(t),"select"===t&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,t),e[Xr]=n,e[Zr]=r,Qa(e,n),n.stateNode=e,c=Ee(t,r),t){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Or(jr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Or("invalid",e);break;case"textarea":se(e,r),o=le(e,r),Or("invalid",e);break;default:o=r}Se(t,o);var u=o;for(l in u)if(u.hasOwnProperty(l)){var p=u[l];"style"===l?_e(e,p):"dangerouslySetInnerHTML"===l?null!=(p=p?p.__html:void 0)&&ve(e,p):"children"===l?"string"===typeof p?("textarea"!==t||""!==p)&&ye(e,p):"number"===typeof p&&ye(e,""+p):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=p&&"onScroll"===l&&Or("scroll",e):null!=p&&x(e,l,p,c))}switch(t){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Ar)}Yr(t,r)&&(n.flags|=4)}null!==n.ref&&(n.flags|=128)}return null;case 6:if(e&&null!=n.stateNode)Ka(0,n,e.memoizedProps,r);else{if("string"!==typeof r&&null===n.stateNode)throw Error(a(166));t=Do(Io.current),Do(Oo.current),qo(n)?(r=n.stateNode,t=n.memoizedProps,r[Xr]=n,r.nodeValue!==t&&(n.flags|=4)):((r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[Xr]=n,n.stateNode=r)}return null;case 13:return ui(Mo),r=n.memoizedState,0!==(64&n.flags)?(n.lanes=t,n):(r=null!==r,t=!1,null===e?void 0!==n.memoizedProps.fallback&&qo(n):t=null!==e.memoizedState,r&&!t&&0!==(2&n.mode)&&(null===e&&!0!==n.memoizedProps.unstable_avoidThisFallback||0!==(1&Mo.current)?0===Ml&&(Ml=3):(0!==Ml&&3!==Ml||(Ml=4),null===Dl||0===(134217727&Bl)&&0===(134217727&Hl)||ys(Dl,Ll))),(r||t)&&(n.flags|=4),null);case 4:return Lo(),null===e&&Ir(n.stateNode.containerInfo),null;case 10:return ro(n),null;case 19:if(ui(Mo),null===(r=n.memoizedState))return null;if(l=0!==(64&n.flags),null===(c=r.rendering))if(l)al(r,!1);else{if(0!==Ml||null!==e&&0!==(64&e.flags))for(e=n.child;null!==e;){if(null!==(c=Fo(e))){for(n.flags|=64,al(r,!1),null!==(l=c.updateQueue)&&(n.updateQueue=l,n.flags|=4),null===r.lastEffect&&(n.firstEffect=null),n.lastEffect=r.lastEffect,r=t,t=n.child;null!==t;)e=r,(l=t).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,e=c.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return pi(Mo,1&Mo.current|2),n.child}e=e.sibling}null!==r.tail&&Yi()>Wl&&(n.flags|=64,l=!0,al(r,!1),n.lanes=33554432)}else{if(!l)if(null!==(e=Fo(c))){if(n.flags|=64,l=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),al(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ho)return null!==(n=n.lastEffect=r.lastEffect)&&(n.nextEffect=null),null}else 2*Yi()-r.renderingStartTime>Wl&&1073741824!==t&&(n.flags|=64,l=!0,al(r,!1),n.lanes=33554432);r.isBackwards?(c.sibling=n.child,n.child=c):(null!==(t=r.last)?t.sibling=c:n.child=c,r.last=c)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.lastEffect=n.lastEffect,r.renderingStartTime=Yi(),t.sibling=null,n=Mo.current,pi(Mo,l?1&n|2:1&n),t):null;case 23:case 24:return ks(),null!==e&&null!==e.memoizedState!==(null!==n.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(n.flags|=4),null}throw Error(a(156,n.tag))}function sl(e){switch(e.tag){case 1:vi(e.type)&&yi();var n=e.flags;return 4096&n?(e.flags=-4097&n|64,e):null;case 3:if(Lo(),ui(hi),ui(fi),Ko(),0!==(64&(n=e.flags)))throw Error(a(285));return e.flags=-4097&n|64,e;case 5:return zo(e),null;case 13:return ui(Mo),4096&(n=e.flags)?(e.flags=-4097&n|64,e):null;case 19:return ui(Mo),null;case 4:return Lo(),null;case 10:return ro(e),null;case 23:case 24:return ks(),null;default:return null}}function cl(e,n){try{var t="",r=n;do{t+=W(r),r=r.return}while(r);var i=t}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:n,stack:i}}function ul(e,n){try{console.error(n.value)}catch(t){setTimeout((function(){throw t}))}}Qa=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Va=function(e,n,t,r){var o=e.memoizedProps;if(o!==r){e=n.stateNode,Do(Oo.current);var a,l=null;switch(t){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Ar)}for(p in Se(t,r),t=null,o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&null!=o[p])if("style"===p){var c=o[p];for(a in c)c.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(s.hasOwnProperty(p)?l||(l=[]):(l=l||[]).push(p,null));for(p in r){var u=r[p];if(c=null!=o?o[p]:void 0,r.hasOwnProperty(p)&&u!==c&&(null!=u||null!=c))if("style"===p)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(t||(t={}),t[a]=u[a])}else t||(l||(l=[]),l.push(p,t)),t=u;else"dangerouslySetInnerHTML"===p?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(l=l||[]).push(p,u)):"children"===p?"string"!==typeof u&&"number"!==typeof u||(l=l||[]).push(p,""+u):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(s.hasOwnProperty(p)?(null!=u&&"onScroll"===p&&Or("scroll",e),l||c===u||(l=[])):"object"===typeof u&&null!==u&&u.$$typeof===L?u.toString():(l=l||[]).push(p,u))}t&&(l=l||[]).push("style",t);var p=l;(n.updateQueue=p)&&(n.flags|=4)}},Ka=function(e,n,t,r){t!==r&&(n.flags|=4)};var pl="function"===typeof WeakMap?WeakMap:Map;function dl(e,n,t){(t=uo(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Kl||(Kl=!0,Jl=r),ul(0,n)},t}function fl(e,n,t){(t=uo(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=n.value;t.payload=function(){return ul(0,n),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(t.callback=function(){"function"!==typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this),ul(0,n));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}var hl="function"===typeof WeakSet?WeakSet:Set;function gl(e){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(t){As(e,t)}else n.current=null}function ml(e,n){switch(n.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&n.flags&&null!==e){var t=e.memoizedProps,r=e.memoizedState;n=(e=n.stateNode).getSnapshotBeforeUpdate(n.elementType===n.type?t:Ji(n.type,t),r),e.__reactInternalSnapshotBeforeUpdate=n}return;case 3:return void(256&n.flags&&qr(n.stateNode.containerInfo))}throw Error(a(163))}function vl(e,n,t){switch(t.tag){case 0:case 11:case 15:case 22:if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==n)}if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(zs(t,e),Us(t,e)),e=r}while(e!==n)}return;case 1:return e=t.stateNode,4&t.flags&&(null===n?e.componentDidMount():(r=t.elementType===t.type?n.memoizedProps:Ji(t.type,n.memoizedProps),e.componentDidUpdate(r,n.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(n=t.updateQueue)&&go(t,n,e));case 3:if(null!==(n=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 5:case 1:e=t.child.stateNode}go(t,n,e)}return;case 5:return e=t.stateNode,void(null===n&&4&t.flags&&Yr(t.type,t.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===t.memoizedState&&(t=t.alternate,null!==t&&(t=t.memoizedState,null!==t&&(t=t.dehydrated,null!==t&&kn(t)))))}throw Error(a(163))}function yl(e,n){for(var t=e;;){if(5===t.tag){var r=t.stateNode;if(n)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=t.stateNode;var i=t.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===t.tag)t.stateNode.nodeValue=n?"":t.memoizedProps;else if((23!==t.tag&&24!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function bl(e,n){if(Si&&"function"===typeof Si.onCommitFiberUnmount)try{Si.onCommitFiberUnmount(ki,n)}catch(o){}switch(n.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var t=e=e.next;do{var r=t,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))zs(n,t);else{r=n;try{i()}catch(o){As(r,o)}}t=t.next}while(t!==e)}break;case 1:if(gl(n),"function"===typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(o){As(n,o)}break;case 5:gl(n);break;case 4:El(e,n)}}function xl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wl(e){return 5===e.tag||3===e.tag||4===e.tag}function _l(e){e:{for(var n=e.return;null!==n;){if(wl(n))break e;n=n.return}throw Error(a(160))}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error(a(161))}16&t.flags&&(ye(n,""),t.flags&=-17);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||wl(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?kl(e,t,n):Sl(e,t,n)}function kl(e,n,t){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!==(t=t._reactRootContainer)&&void 0!==t||null!==n.onclick||(n.onclick=Ar));else if(4!==r&&null!==(e=e.child))for(kl(e,n,t),e=e.sibling;null!==e;)kl(e,n,t),e=e.sibling}function Sl(e,n,t){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Sl(e,n,t),e=e.sibling;null!==e;)Sl(e,n,t),e=e.sibling}function El(e,n){for(var t,r,i=n,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(t=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:t=t.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,c=s;;)if(bl(l,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===s)break e;for(;null===c.sibling;){if(null===c.return||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(l=t,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):t.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){t=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===n)break;for(;null===i.sibling;){if(null===i.return||i.return===n)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function jl(e,n){switch(n.tag){case 0:case 11:case 14:case 15:case 22:var t=n.updateQueue;if(null!==(t=null!==t?t.lastEffect:null)){var r=t=t.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==t)}return;case 1:case 12:case 17:return;case 5:if(null!=(t=n.stateNode)){r=n.memoizedProps;var i=null!==e?e.memoizedProps:r;e=n.type;var o=n.updateQueue;if(n.updateQueue=null,null!==o){for(t[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(t,r),Ee(e,i),n=Ee(e,r),i=0;i<o.length;i+=2){var l=o[i],s=o[i+1];"style"===l?_e(t,s):"dangerouslySetInnerHTML"===l?ve(t,s):"children"===l?ye(t,s):x(t,l,s,n)}switch(e){case"input":te(t,r);break;case"textarea":ce(t,r);break;case"select":e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(t,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(t,!!r.multiple,r.defaultValue,!0):ae(t,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===n.stateNode)throw Error(a(162));return void(n.stateNode.nodeValue=n.memoizedProps);case 3:return void((t=n.stateNode).hydrate&&(t.hydrate=!1,kn(t.containerInfo)));case 13:return null!==n.memoizedState&&(Gl=Yi(),yl(n.child,!0)),void Cl(n);case 19:return void Cl(n);case 23:case 24:return void yl(n,null!==n.memoizedState)}throw Error(a(163))}function Cl(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new hl),n.forEach((function(n){var r=Hs.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Nl(e,n){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(n=n.memoizedState)&&null===n.dehydrated)}var Pl=Math.ceil,Ol=w.ReactCurrentDispatcher,Tl=w.ReactCurrentOwner,Il=0,Dl=null,Rl=null,Ll=0,Ul=0,zl=ci(0),Ml=0,Fl=null,Al=0,Bl=0,Hl=0,Yl=0,$l=null,Gl=0,Wl=1/0;function ql(){Wl=Yi()+500}var Ql,Vl=null,Kl=!1,Jl=null,Xl=null,Zl=!1,es=null,ns=90,ts=[],rs=[],is=null,os=0,as=null,ls=-1,ss=0,cs=0,us=null,ps=!1;function ds(){return 0!==(48&Il)?Yi():-1!==ls?ls:ls=Yi()}function fs(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===$i()?1:2;if(0===ss&&(ss=Al),0!==Ki.transition){0!==cs&&(cs=null!==$l?$l.pendingLanes:0),e=ss;var n=4186112&~cs;return 0===(n&=-n)&&(0===(n=(e=4186112&~e)&-e)&&(n=8192)),n}return e=$i(),0!==(4&Il)&&98===e?e=Bn(12,ss):e=Bn(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,n,t){if(50<os)throw os=0,as=null,Error(a(185));if(null===(e=gs(e,n)))return null;$n(e,n,t),e===Dl&&(Hl|=n,4===Ml&&ys(e,Ll));var r=$i();1===n?0!==(8&Il)&&0===(48&Il)?bs(e):(ms(e,t),0===Il&&(ql(),Qi())):(0===(4&Il)||98!==r&&99!==r||(null===is?is=new Set([e]):is.add(e)),ms(e,t)),$l=e}function gs(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}function ms(e,n){for(var t=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Gn(l),c=1<<s,u=o[s];if(-1===u){if(0===(c&r)||0!==(c&i)){u=n,Mn(c);var p=zn;o[s]=10<=p?u+250:6<=p?u+5e3:-1}}else u<=n&&(e.expiredLanes|=c);l&=~c}if(r=Fn(e,e===Dl?Ll:0),n=zn,0===r)null!==t&&(t!==zi&&Ci(t),e.callbackNode=null,e.callbackPriority=0);else{if(null!==t){if(e.callbackPriority===n)return;t!==zi&&Ci(t)}15===n?(t=bs.bind(null,e),null===Fi?(Fi=[t],Ai=ji(Ii,Vi)):Fi.push(t),t=zi):14===n?t=qi(99,bs.bind(null,e)):(t=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(n),t=qi(t,vs.bind(null,e))),e.callbackPriority=n,e.callbackNode=t}}function vs(e){if(ls=-1,cs=ss=0,0!==(48&Il))throw Error(a(327));var n=e.callbackNode;if(Ls()&&e.callbackNode!==n)return null;var t=Fn(e,e===Dl?Ll:0);if(0===t)return null;var r=t,i=Il;Il|=16;var o=js();for(Dl===e&&Ll===r||(ql(),Ss(e,r));;)try{Ps();break}catch(s){Es(e,s)}if(to(),Ol.current=o,Il=i,null!==Rl?r=0:(Dl=null,Ll=0,r=Ml),0!==(Al&Hl))Ss(e,0);else if(0!==r){if(2===r&&(Il|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=An(e))&&(r=Cs(e,t))),1===r)throw n=Fl,Ss(e,0),ys(e,t),ms(e,Yi()),n;switch(e.finishedWork=e.current.alternate,e.finishedLanes=t,r){case 0:case 1:throw Error(a(345));case 2:case 5:Is(e);break;case 3:if(ys(e,t),(62914560&t)===t&&10<(r=Gl+500-Yi())){if(0!==Fn(e,0))break;if(((i=e.suspendedLanes)&t)!==t){ds(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(Is.bind(null,e),r);break}Is(e);break;case 4:if(ys(e,t),(4186112&t)===t)break;for(r=e.eventTimes,i=-1;0<t;){var l=31-Gn(t);o=1<<l,(l=r[l])>i&&(i=l),t&=~o}if(t=i,10<(t=(120>(t=Yi()-t)?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*Pl(t/1960))-t)){e.timeoutHandle=Gr(Is.bind(null,e),t);break}Is(e);break;default:throw Error(a(329))}}return ms(e,Yi()),e.callbackNode===n?vs.bind(null,e):null}function ys(e,n){for(n&=~Yl,n&=~Hl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-Gn(n),r=1<<t;e[t]=-1,n&=~r}}function bs(e){if(0!==(48&Il))throw Error(a(327));if(Ls(),e===Dl&&0!==(e.expiredLanes&Ll)){var n=Ll,t=Cs(e,n);0!==(Al&Hl)&&(t=Cs(e,n=Fn(e,n)))}else t=Cs(e,n=Fn(e,0));if(0!==e.tag&&2===t&&(Il|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=An(e))&&(t=Cs(e,n))),1===t)throw t=Fl,Ss(e,0),ys(e,n),ms(e,Yi()),t;return e.finishedWork=e.current.alternate,e.finishedLanes=n,Is(e),ms(e,Yi()),null}function xs(e,n){var t=Il;Il|=1;try{return e(n)}finally{0===(Il=t)&&(ql(),Qi())}}function ws(e,n){var t=Il;Il&=-2,Il|=8;try{return e(n)}finally{0===(Il=t)&&(ql(),Qi())}}function _s(e,n){pi(zl,Ul),Ul|=n,Al|=n}function ks(){Ul=zl.current,ui(zl)}function Ss(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,Wr(t)),null!==Rl)for(t=Rl.return;null!==t;){var r=t;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Lo(),ui(hi),ui(fi),Ko();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:ui(Mo);break;case 10:ro(r);break;case 23:case 24:ks()}t=t.return}Dl=e,Rl=Ws(e.current,null),Ll=Ul=Al=n,Ml=0,Fl=null,Yl=Hl=Bl=0}function Es(e,n){for(;;){var t=Rl;try{if(to(),Jo.current=Ia,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Zo=0,ta=na=ea=null,ia=!1,Tl.current=null,null===t||null===t.return){Ml=1,Fl=n,Rl=null;break}e:{var o=e,a=t.return,l=t,s=n;if(n=Ll,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s;if(0===(2&l.mode)){var u=l.alternate;u?(l.updateQueue=u.updateQueue,l.memoizedState=u.memoizedState,l.lanes=u.lanes):(l.updateQueue=null,l.memoizedState=null)}var p=0!==(1&Mo.current),d=a;do{var f;if(f=13===d.tag){var h=d.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var g=d.memoizedProps;f=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!p)}}if(f){var m=d.updateQueue;if(null===m){var v=new Set;v.add(c),d.updateQueue=v}else m.add(c);if(0===(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=uo(-1,1);y.tag=2,po(l,y)}l.lanes|=1;break e}s=void 0,l=n;var b=o.pingCache;if(null===b?(b=o.pingCache=new pl,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(l)){s.add(l);var x=Bs.bind(null,o,c,l);c.then(x,x)}d.flags|=4096,d.lanes=n;break e}d=d.return}while(null!==d);s=Error((q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ml&&(Ml=2),s=cl(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,n&=-n,d.lanes|=n,fo(d,dl(0,o,n));break e;case 1:o=s;var w=d.type,_=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Xl||!Xl.has(_)))){d.flags|=4096,n&=-n,d.lanes|=n,fo(d,fl(d,o,n));break e}}d=d.return}while(null!==d)}Ts(t)}catch(k){n=k,Rl===t&&null!==t&&(Rl=t=t.return);continue}break}}function js(){var e=Ol.current;return Ol.current=Ia,null===e?Ia:e}function Cs(e,n){var t=Il;Il|=16;var r=js();for(Dl===e&&Ll===n||Ss(e,n);;)try{Ns();break}catch(i){Es(e,i)}if(to(),Il=t,Ol.current=r,null!==Rl)throw Error(a(261));return Dl=null,Ll=0,Ml}function Ns(){for(;null!==Rl;)Os(Rl)}function Ps(){for(;null!==Rl&&!Ni();)Os(Rl)}function Os(e){var n=Ql(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,null===n?Ts(e):Rl=n,Tl.current=null}function Ts(e){var n=e;do{var t=n.alternate;if(e=n.return,0===(2048&n.flags)){if(null!==(t=ll(t,n,Ul)))return void(Rl=t);if(24!==(t=n).tag&&23!==t.tag||null===t.memoizedState||0!==(1073741824&Ul)||0===(4&t.mode)){for(var r=0,i=t.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;t.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=n.firstEffect),null!==n.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=n.firstEffect),e.lastEffect=n.lastEffect),1<n.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=n:e.firstEffect=n,e.lastEffect=n))}else{if(null!==(t=sl(n)))return t.flags&=2047,void(Rl=t);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(n=n.sibling))return void(Rl=n);Rl=n=e}while(null!==n);0===Ml&&(Ml=5)}function Is(e){var n=$i();return Wi(99,Ds.bind(null,e,n)),null}function Ds(e,n){do{Ls()}while(null!==es);if(0!==(48&Il))throw Error(a(327));var t=e.finishedWork;if(null===t)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(a(177));e.callbackNode=null;var r=t.lanes|t.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var c=31-Gn(o),u=1<<c;i[c]=0,l[c]=-1,s[c]=-1,o&=~u}if(null!==is&&0===(24&r)&&is.has(e)&&is.delete(e),e===Dl&&(Rl=Dl=null,Ll=0),1<t.flags?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,null!==r){if(i=Il,Il|=32,Tl.current=null,Br=Kn,vr(l=mr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&0!==u.rangeCount){s=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{s.nodeType,c.nodeType}catch(j){s=null;break e}var p=0,d=-1,f=-1,h=0,g=0,m=l,v=null;n:for(;;){for(var y;m!==s||0!==o&&3!==m.nodeType||(d=p+o),m!==c||0!==u&&3!==m.nodeType||(f=p+u),3===m.nodeType&&(p+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===l)break n;if(v===s&&++h===o&&(d=p),v===c&&++g===u&&(f=p),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}s=-1===d||-1===f?null:{start:d,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;Hr={focusedElem:l,selectionRange:s},Kn=!1,us=null,ps=!1,Vl=r;do{try{Rs()}catch(j){if(null===Vl)throw Error(a(330));As(Vl,j),Vl=Vl.nextEffect}}while(null!==Vl);us=null,Vl=r;do{try{for(l=e;null!==Vl;){var b=Vl.flags;if(16&b&&ye(Vl.stateNode,""),128&b){var x=Vl.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:_l(Vl),Vl.flags&=-3;break;case 6:_l(Vl),Vl.flags&=-3,jl(Vl.alternate,Vl);break;case 1024:Vl.flags&=-1025;break;case 1028:Vl.flags&=-1025,jl(Vl.alternate,Vl);break;case 4:jl(Vl.alternate,Vl);break;case 8:El(l,s=Vl);var _=s.alternate;xl(s),null!==_&&xl(_)}Vl=Vl.nextEffect}}catch(j){if(null===Vl)throw Error(a(330));As(Vl,j),Vl=Vl.nextEffect}}while(null!==Vl);if(w=Hr,x=mr(),b=w.focusedElem,l=w.selectionRange,x!==b&&b&&b.ownerDocument&&gr(b.ownerDocument.documentElement,b)){null!==l&&vr(b)&&(x=l.start,void 0===(w=l.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,_=Math.min(l.start,s),l=void 0===l.end?_:Math.min(l.end,s),!w.extend&&_>l&&(s=l,l=_,_=s),s=hr(b,_),o=hr(b,l),s&&o&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((x=x.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),_>l?(w.addRange(x),w.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Kn=!!Br,Hr=Br=null,e.current=t,Vl=r;do{try{for(b=e;null!==Vl;){var k=Vl.flags;if(36&k&&vl(b,Vl.alternate,Vl),128&k){x=void 0;var S=Vl.ref;if(null!==S){var E=Vl.stateNode;Vl.tag,x=E,"function"===typeof S?S(x):S.current=x}}Vl=Vl.nextEffect}}catch(j){if(null===Vl)throw Error(a(330));As(Vl,j),Vl=Vl.nextEffect}}while(null!==Vl);Vl=null,Mi(),Il=i}else e.current=t;if(Zl)Zl=!1,es=e,ns=n;else for(Vl=r;null!==Vl;)n=Vl.nextEffect,Vl.nextEffect=null,8&Vl.flags&&((k=Vl).sibling=null,k.stateNode=null),Vl=n;if(0===(r=e.pendingLanes)&&(Xl=null),1===r?e===as?os++:(os=0,as=e):os=0,t=t.stateNode,Si&&"function"===typeof Si.onCommitFiberRoot)try{Si.onCommitFiberRoot(ki,t,void 0,64===(64&t.current.flags))}catch(j){}if(ms(e,Yi()),Kl)throw Kl=!1,e=Jl,Jl=null,e;return 0!==(8&Il)||Qi(),null}function Rs(){for(;null!==Vl;){var e=Vl.alternate;ps||null===us||(0!==(8&Vl.flags)?en(Vl,us)&&(ps=!0):13===Vl.tag&&Nl(e,Vl)&&en(Vl,us)&&(ps=!0));var n=Vl.flags;0!==(256&n)&&ml(e,Vl),0===(512&n)||Zl||(Zl=!0,qi(97,(function(){return Ls(),null}))),Vl=Vl.nextEffect}}function Ls(){if(90!==ns){var e=97<ns?97:ns;return ns=90,Wi(e,Ms)}return!1}function Us(e,n){ts.push(n,e),Zl||(Zl=!0,qi(97,(function(){return Ls(),null})))}function zs(e,n){rs.push(n,e),Zl||(Zl=!0,qi(97,(function(){return Ls(),null})))}function Ms(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Il))throw Error(a(331));var n=Il;Il|=32;var t=rs;rs=[];for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1],l=i.destroy;if(i.destroy=void 0,"function"===typeof l)try{l()}catch(c){if(null===o)throw Error(a(330));As(o,c)}}for(t=ts,ts=[],r=0;r<t.length;r+=2){i=t[r],o=t[r+1];try{var s=i.create;i.destroy=s()}catch(c){if(null===o)throw Error(a(330));As(o,c)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Il=n,Qi(),!0}function Fs(e,n,t){po(e,n=dl(0,n=cl(t,n),1)),n=ds(),null!==(e=gs(e,1))&&($n(e,1,n),ms(e,n))}function As(e,n){if(3===e.tag)Fs(e,e,n);else for(var t=e.return;null!==t;){if(3===t.tag){Fs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){var i=fl(t,e=cl(n,e),1);if(po(t,i),i=ds(),null!==(t=gs(t,1)))$n(t,1,i),ms(t,i);else if("function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r)))try{r.componentDidCatch(n,e)}catch(o){}break}}t=t.return}}function Bs(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=ds(),e.pingedLanes|=e.suspendedLanes&t,Dl===e&&(Ll&t)===t&&(4===Ml||3===Ml&&(62914560&Ll)===Ll&&500>Yi()-Gl?Ss(e,0):Yl|=t),ms(e,n)}function Hs(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0===(2&(n=e.mode))?n=1:0===(4&n)?n=99===$i()?1:2:(0===ss&&(ss=Al),0===(n=Hn(62914560&~ss))&&(n=4194304))),t=ds(),null!==(e=gs(e,n))&&($n(e,n,t),ms(e,t))}function Ys(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function $s(e,n,t,r){return new Ys(e,n,t,r)}function Gs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ws(e,n){var t=e.alternate;return null===t?((t=$s(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function qs(e,n,t,r,i,o){var l=2;if(r=e,"function"===typeof e)Gs(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return Qs(t.children,i,o,n);case U:l=8,i|=16;break;case E:l=8,i|=1;break;case j:return(e=$s(12,t,n,8|i)).elementType=j,e.type=j,e.lanes=o,e;case O:return(e=$s(13,t,n,i)).type=O,e.elementType=O,e.lanes=o,e;case T:return(e=$s(19,t,n,i)).elementType=T,e.lanes=o,e;case z:return Vs(t,i,o,n);case M:return(e=$s(24,t,n,i)).elementType=M,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case N:l=9;break e;case P:l=11;break e;case I:l=14;break e;case D:l=16,r=null;break e;case R:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(n=$s(l,t,n,i)).elementType=e,n.type=r,n.lanes=o,n}function Qs(e,n,t,r){return(e=$s(7,e,r,n)).lanes=t,e}function Vs(e,n,t,r){return(e=$s(23,e,r,n)).elementType=z,e.lanes=t,e}function Ks(e,n,t){return(e=$s(6,e,null,n)).lanes=t,e}function Js(e,n,t){return(n=$s(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Xs(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Yn(0),this.expirationTimes=Yn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yn(0),this.mutableSourceEagerHydrationData=null}function Zs(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}function ec(e,n,t,r){var i=n.current,o=ds(),l=fs(i);e:if(t){n:{if(Ke(t=t._reactInternals)!==t||1!==t.tag)throw Error(a(170));var s=t;do{switch(s.tag){case 3:s=s.stateNode.context;break n;case 1:if(vi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break n}}s=s.return}while(null!==s);throw Error(a(171))}if(1===t.tag){var c=t.type;if(vi(c)){t=xi(t,c,s);break e}}t=s}else t=di;return null===n.context?n.context=t:n.pendingContext=t,(n=uo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),po(i,n),hs(i,l,o),l}function nc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function rc(e,n){tc(e,n),(e=e.alternate)&&tc(e,n)}function ic(e,n,t){var r=null!=t&&null!=t.hydrationOptions&&t.hydrationOptions.mutableSources||null;if(t=new Xs(e,n,null!=t&&!0===t.hydrate),n=$s(3,null,null,2===n?7:1===n?3:0),t.current=n,n.stateNode=t,so(n),e[ei]=t.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(n=r[e])._getVersion;i=i(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i)}this._internalRoot=t}function oc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,n,t,r,i){var o=t._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var l=i;i=function(){var e=nc(a);l.call(e)}}ec(n,a,e,i)}else{if(o=t._reactRootContainer=function(e,n){if(n||(n=!(!(n=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==n.nodeType||!n.hasAttribute("data-reactroot"))),!n)for(var t;t=e.lastChild;)e.removeChild(t);return new ic(e,0,n?{hydrate:!0}:void 0)}(t,r),a=o._internalRoot,"function"===typeof i){var s=i;i=function(){var e=nc(a);s.call(e)}}ws((function(){ec(n,a,e,i)}))}return nc(a)}function lc(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!oc(n))throw Error(a(200));return Zs(e,n,null,t)}Ql=function(e,n,t){var r=n.lanes;if(null!==e)if(e.memoizedProps!==n.pendingProps||hi.current)za=!0;else{if(0===(t&r)){switch(za=!1,n.tag){case 3:qa(n),Qo();break;case 5:Uo(n);break;case 1:vi(n.type)&&wi(n);break;case 4:Ro(n,n.stateNode.containerInfo);break;case 10:r=n.memoizedProps.value;var i=n.type._context;pi(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==n.memoizedState)return 0!==(t&n.child.childLanes)?Xa(e,n,t):(pi(Mo,1&Mo.current),null!==(n=ol(e,n,t))?n.sibling:null);pi(Mo,1&Mo.current);break;case 19:if(r=0!==(t&n.childLanes),0!==(64&e.flags)){if(r)return il(e,n,t);n.flags|=64}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),pi(Mo,Mo.current),r)break;return null;case 23:case 24:return n.lanes=0,Ha(e,n,t)}return ol(e,n,t)}za=0!==(16384&e.flags)}else za=!1;switch(n.lanes=0,n.tag){case 2:if(r=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,i=mi(n,fi.current),oo(n,t),i=la(null,n,r,e,i,t),n.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,vi(r)){var o=!0;wi(n)}else o=!1;n.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(n);var l=r.getDerivedStateFromProps;"function"===typeof l&&vo(n,r,l,e),i.updater=yo,n.stateNode=i,i._reactInternals=n,_o(n,r,e,t),n=Wa(null,n,r,!0,o,t)}else n.tag=0,Ma(null,n,i,t),n=n.child;return n;case 16:i=n.elementType;e:{switch(null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,i=(o=i._init)(i._payload),n.type=i,o=n.tag=function(e){if("function"===typeof e)return Gs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(i),e=Ji(i,e),o){case 0:n=$a(null,n,i,e,t);break e;case 1:n=Ga(null,n,i,e,t);break e;case 11:n=Fa(null,n,i,e,t);break e;case 14:n=Aa(null,n,i,Ji(i.type,e),r,t);break e}throw Error(a(306,i,""))}return n;case 0:return r=n.type,i=n.pendingProps,$a(e,n,r,i=n.elementType===r?i:Ji(r,i),t);case 1:return r=n.type,i=n.pendingProps,Ga(e,n,r,i=n.elementType===r?i:Ji(r,i),t);case 3:if(qa(n),r=n.updateQueue,null===e||null===r)throw Error(a(282));if(r=n.pendingProps,i=null!==(i=n.memoizedState)?i.element:null,co(e,n),ho(n,r,null,t),(r=n.memoizedState.element)===i)Qo(),n=ol(e,n,t);else{if((o=(i=n.stateNode).hydrate)&&(Bo=Qr(n.stateNode.containerInfo.firstChild),Ao=n,o=Ho=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Vo.push(o);for(t=No(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|1024,t=t.sibling}else Ma(e,n,r,t),Qo();n=n.child}return n;case 5:return Uo(n),null===e&&Go(n),r=n.type,i=n.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,$r(r,i)?l=null:null!==o&&$r(r,o)&&(n.flags|=16),Ya(e,n),Ma(e,n,l,t),n.child;case 6:return null===e&&Go(n),null;case 13:return Xa(e,n,t);case 4:return Ro(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=Co(n,null,r,t):Ma(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,Fa(e,n,r,i=n.elementType===r?i:Ji(r,i),t);case 7:return Ma(e,n,n.pendingProps,t),n.child;case 8:case 12:return Ma(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context,i=n.pendingProps,l=n.memoizedProps,o=i.value;var s=n.type._context;if(pi(Xi,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=ur(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===i.children&&!hi.current){n=ol(e,n,t);break e}}else for(null!==(s=n.child)&&(s.return=n);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===s.tag&&((u=uo(-1,t&-t)).tag=2,po(s,u)),s.lanes|=t,null!==(u=s.alternate)&&(u.lanes|=t),io(s.return,t),c.lanes|=t;break}u=u.next}}else l=10===s.tag&&s.type===n.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===n){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ma(e,n,i.children,t),n=n.child}return n;case 9:return i=n.type,r=(o=n.pendingProps).children,oo(n,t),r=r(i=ao(i,o.unstable_observedBits)),n.flags|=1,Ma(e,n,r,t),n.child;case 14:return o=Ji(i=n.type,n.pendingProps),Aa(e,n,i,o=Ji(i.type,o),r,t);case 15:return Ba(e,n,n.type,n.pendingProps,r,t);case 17:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:Ji(r,i),null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),n.tag=1,vi(r)?(e=!0,wi(n)):e=!1,oo(n,t),xo(n,r,i),_o(n,r,i,t),Wa(null,n,r,!0,e,t);case 19:return il(e,n,t);case 23:case 24:return Ha(e,n,t)}throw Error(a(156,n.tag))},ic.prototype.render=function(e){ec(e,this._internalRoot,null,null)},ic.prototype.unmount=function(){var e=this._internalRoot,n=e.containerInfo;ec(null,e,null,(function(){n[ei]=null}))},nn=function(e){13===e.tag&&(hs(e,4,ds()),rc(e,4))},tn=function(e){13===e.tag&&(hs(e,67108864,ds()),rc(e,67108864))},rn=function(e){if(13===e.tag){var n=ds(),t=fs(e);hs(e,t,n),rc(e,t)}},on=function(e,n){return n()},Ce=function(e,n,t){switch(n){case"input":if(te(e,t),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var i=oi(r);if(!i)throw Error(a(90));J(r),te(r,i)}}}break;case"textarea":ce(e,t);break;case"select":null!=(n=t.value)&&ae(e,!!t.multiple,n,!1)}},De=xs,Re=function(e,n,t,r,i){var o=Il;Il|=4;try{return Wi(98,e.bind(null,n,t,r,i))}finally{0===(Il=o)&&(ql(),Qi())}},Le=function(){0===(49&Il)&&(function(){if(null!==is){var e=is;is=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ms(e,Yi())}))}Qi()}(),Ls())},Ue=function(e,n){var t=Il;Il|=2;try{return e(n)}finally{0===(Il=t)&&(ql(),Qi())}};var sc={Events:[ri,ii,oi,Te,Ie,Ls,{current:!1}]},cc={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var pc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pc.isDisabled&&pc.supportsFiber)try{ki=pc.inject(uc),Si=pc}catch(me){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,n.createPortal=lc,n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(n))?null:e.stateNode},n.flushSync=function(e,n){var t=Il;if(0!==(48&t))return e(n);Il|=1;try{if(e)return Wi(99,e.bind(null,n))}finally{Il=t,Qi()}},n.hydrate=function(e,n,t){if(!oc(n))throw Error(a(200));return ac(null,e,n,!0,t)},n.render=function(e,n,t){if(!oc(n))throw Error(a(200));return ac(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!oc(e))throw Error(a(40));return!!e._reactRootContainer&&(ws((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[ei]=null}))})),!0)},n.unstable_batchedUpdates=xs,n.unstable_createPortal=function(e,n){return lc(e,n,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!oc(t))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,n,t,!1,r)},n.version="17.0.2"},749:function(e,n,t){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}(),e.exports=t(610)},443:function(e,n){"use strict";var t="function"===typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case u:case p:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case g:case s:return e;default:return n}}case i:return n}}}function _(e){return w(e)===p}n.AsyncMode=u,n.ConcurrentMode=p,n.ContextConsumer=c,n.ContextProvider=s,n.Element=r,n.ForwardRef=d,n.Fragment=o,n.Lazy=m,n.Memo=g,n.Portal=i,n.Profiler=l,n.StrictMode=a,n.Suspense=f,n.isAsyncMode=function(e){return _(e)||w(e)===u},n.isConcurrentMode=_,n.isContextConsumer=function(e){return w(e)===c},n.isContextProvider=function(e){return w(e)===s},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return w(e)===d},n.isFragment=function(e){return w(e)===o},n.isLazy=function(e){return w(e)===m},n.isMemo=function(e){return w(e)===g},n.isPortal=function(e){return w(e)===i},n.isProfiler=function(e){return w(e)===l},n.isStrictMode=function(e){return w(e)===a},n.isSuspense=function(e){return w(e)===f},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===p||e===l||e===a||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},n.typeOf=w},479:function(e,n,t){"use strict";e.exports=t(443)},446:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r="undefined"!==typeof n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,i,o){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||("undefined"!==typeof o&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),n.push(u))}},n}},581:function(e){"use strict";e.exports=function(e){var n=e[1],t=e[3];if(!t)return n;if("function"===typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}},999:function(e,n,t){"use strict";t(545);var r=t(969),i=60103;if(n.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),n.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,t){var r,o={},c=null,u=null;for(r in void 0!==t&&(c=""+t),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)l.call(n,r)&&!s.hasOwnProperty(r)&&(o[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===o[r]&&(o[r]=n[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}n.jsx=c,n.jsxs=c},949:function(e,n,t){"use strict";var r=t(545),i=60103,o=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var a=60109,l=60110,s=60112;n.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var p=Symbol.for;i=p("react.element"),o=p("react.portal"),n.Fragment=p("react.fragment"),n.StrictMode=p("react.strict_mode"),n.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),s=p("react.forward_ref"),n.Suspense=p("react.suspense"),c=p("react.memo"),u=p("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||h}function v(){}function y(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,n){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,n,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,n,t){var r,o={},a=null,l=null;if(null!=n)for(r in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,r)&&!_.hasOwnProperty(r)&&(o[r]=n[r]);var s=arguments.length-2;if(1===s)o.children=t;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:x.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function j(e,n){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return n[e]}))}(""+e.key):n.toString(36)}function C(e,n,t,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+j(s,0):r,Array.isArray(a)?(t="",null!=e&&(t=e.replace(E,"$&/")+"/"),C(a,n,t,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,n){return{$$typeof:i,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,t+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),n.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+j(l=e[c],c);s+=C(l,n,t,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=C(l=l.value,n,t,u=r+j(l,c++),a);else if("object"===l)throw n=""+e,Error(f(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return s}function N(e,n,t){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return n.call(t,e,i++)})),r}function P(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then((function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)}),(function(n){0===e._status&&(e._status=2,e._result=n)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function T(){var e=O.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};n.Children={map:N,forEach:function(e,n,t){N(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return N(e,(function(){n++})),n},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(f(143));return e}},n.Component=m,n.PureComponent=y,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,n.cloneElement=function(e,n,t){if(null===e||void 0===e)throw Error(f(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=n){if(void 0!==n.ref&&(l=n.ref,s=x.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in n)w.call(n,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==c?c[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=t;else if(1<u){c=Array(u);for(var p=0;p<u;p++)c[p]=arguments[p+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:l,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},n.createElement=k,n.createFactory=function(e){var n=k.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:s,render:e}},n.isValidElement=S,n.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},n.memo=function(e,n){return{$$typeof:c,type:e,compare:void 0===n?null:n}},n.useCallback=function(e,n){return T().useCallback(e,n)},n.useContext=function(e,n){return T().useContext(e,n)},n.useDebugValue=function(){},n.useEffect=function(e,n){return T().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return T().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return T().useLayoutEffect(e,n)},n.useMemo=function(e,n){return T().useMemo(e,n)},n.useReducer=function(e,n,t){return T().useReducer(e,n,t)},n.useRef=function(e){return T().useRef(e)},n.useState=function(e){return T().useState(e)},n.version="17.0.2"},969:function(e,n,t){"use strict";e.exports=t(949)},574:function(e,n,t){"use strict";e.exports=t(999)},384:function(e,n){"use strict";var t,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();n.unstable_now=function(){return l.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,p=function e(){if(null!==c)try{var t=n.unstable_now();c(!0,t),c=null}catch(r){throw setTimeout(e,0),r}};t=function(e){null!==c?setTimeout(t,0,e):(c=e,setTimeout(p,0))},r=function(e,n){u=setTimeout(e,n)},i=function(){clearTimeout(u)},n.unstable_shouldYield=function(){return!1},o=n.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;n.unstable_shouldYield=function(){return n.unstable_now()>=b},o=function(){},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==m){var e=n.unstable_now();b=e+y;try{m(!0,e)?w.postMessage(null):(g=!1,m=null)}catch(t){throw w.postMessage(null),t}}else g=!1},t=function(e){m=e,g||(g=!0,w.postMessage(null))},r=function(e,t){v=d((function(){e(n.unstable_now())}),t)},i=function(){f(v),v=-1}}function _(e,n){var t=e.length;e.push(n);e:for(;;){var r=t-1>>>1,i=e[r];if(!(void 0!==i&&0<E(i,n)))break e;e[r]=n,e[t]=i,t=r}}function k(e){return void 0===(e=e[0])?null:e}function S(e){var n=e[0];if(void 0!==n){var t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,s=e[l];if(void 0!==a&&0>E(a,t))void 0!==s&&0>E(s,a)?(e[r]=s,e[l]=t,r=l):(e[r]=a,e[o]=t,r=o);else{if(!(void 0!==s&&0>E(s,t)))break e;e[r]=s,e[l]=t,r=l}}}return n}return null}function E(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var j=[],C=[],N=1,P=null,O=3,T=!1,I=!1,D=!1;function R(e){for(var n=k(C);null!==n;){if(null===n.callback)S(C);else{if(!(n.startTime<=e))break;S(C),n.sortIndex=n.expirationTime,_(j,n)}n=k(C)}}function L(e){if(D=!1,R(e),!I)if(null!==k(j))I=!0,t(U);else{var n=k(C);null!==n&&r(L,n.startTime-e)}}function U(e,t){I=!1,D&&(D=!1,i()),T=!0;var o=O;try{for(R(t),P=k(j);null!==P&&(!(P.expirationTime>t)||e&&!n.unstable_shouldYield());){var a=P.callback;if("function"===typeof a){P.callback=null,O=P.priorityLevel;var l=a(P.expirationTime<=t);t=n.unstable_now(),"function"===typeof l?P.callback=l:P===k(j)&&S(j),R(t)}else S(j);P=k(j)}if(null!==P)var s=!0;else{var c=k(C);null!==c&&r(L,c.startTime-t),s=!1}return s}finally{P=null,O=o,T=!1}}var z=o;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){I||T||(I=!0,t(U))},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_getFirstCallbackNode=function(){return k(j)},n.unstable_next=function(e){switch(O){case 1:case 2:case 3:var n=3;break;default:n=O}var t=O;O=n;try{return e()}finally{O=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=z,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=O;O=e;try{return n()}finally{O=t}},n.unstable_scheduleCallback=function(e,o,a){var l=n.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:N++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,_(C,e),null===k(j)&&e===k(C)&&(D?i():D=!0,r(L,a-l))):(e.sortIndex=s,_(j,e),I||T||(I=!0,t(U))),e},n.unstable_wrapCallback=function(e){var n=O;return function(){var t=O;O=n;try{return e.apply(this,arguments)}finally{O=t}}}},19:function(e,n,t){"use strict";e.exports=t(384)},92:function(e,n,t){"use strict";var r=t(581),i=t.n(r),o=t(446),a=t.n(o)()(i());a.push([e.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),a.locals={},n.Z=a},558:function(e,n,t){"use strict";var r=t(581),i=t.n(r),o=t(446),a=t.n(o)()(i());a.push([e.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),a.locals={},n.Z=a},743:function(e,n,t){"use strict";var r=function(){var e;return function(){return"undefined"===typeof e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),i=function(){var e={};return function(n){if("undefined"===typeof e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(r){t=null}e[n]=t}return e[n]}}(),o=[];function a(e){for(var n=-1,t=0;t<o.length;t++)if(o[t].identifier===e){n=t;break}return n}function l(e,n){for(var t={},r=[],i=0;i<e.length;i++){var l=e[i],s=n.base?l[0]+n.base:l[0],c=t[s]||0,u="".concat(s," ").concat(c);t[s]=c+1;var p=a(u),d={css:l[1],media:l[2],sourceMap:l[3]};-1!==p?(o[p].references++,o[p].updater(d)):o.push({identifier:u,updater:h(d,n),references:1}),r.push(u)}return r}function s(e){var n=document.createElement("style"),r=e.attributes||{};if("undefined"===typeof r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"===typeof e.insert)e.insert(n);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var c=function(){var e=[];return function(n,t){return e[n]=t,e.filter(Boolean).join("\n")}}();function u(e,n,t,r){var i=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(n,i);else{var o=document.createTextNode(i),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(o,a[n]):e.appendChild(o)}}function p(e,n,t){var r=t.css,i=t.media,o=t.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!==typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var d=null,f=0;function h(e,n){var t,r,i;if(n.singleton){var o=f++;t=d||(d=s(n)),r=u.bind(null,t,o,!1),i=u.bind(null,t,o,!0)}else t=s(n),r=p.bind(null,t,n),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else i()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"===typeof n.singleton||(n.singleton=r());var t=l(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var i=a(t[r]);o[i].references--}for(var s=l(e,n),c=0;c<t.length;c++){var u=a(t[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}t=s}}}}},n={};function t(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,t),o.loaded=!0,o.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t.nc=void 0,function(){"use strict";var e=t(969),n=t(749),r=t(743),i=t.n(r),o=t(558),a={insert:"head",singleton:!1};i()(o.Z,a),o.Z.locals;function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){if(e){if("string"===typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):void 0}}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(s){l=!0,i=s}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||s(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function p(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return d="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},d(e)}function f(){f=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{l({},"")}catch(N){l=function(e,n,t){return e[n]=t}}function s(e,n,t,r){var i=n&&n.prototype instanceof p?n:p,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,n,t){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(t.method=i,t.arg=o;;){var a=t.delegate;if(a){var l=_(a,t);if(l){if(l===u)continue;return l}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var s=c(e,n,t);if("normal"===s.type){if(r=t.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(r="completed",t.method="throw",t.arg=s.arg)}}}(e,t,a),o}function c(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(N){return{type:"throw",arg:N}}}e.wrap=s;var u={};function p(){}function h(){}function g(){}var m={};l(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(j([])));y&&y!==n&&t.call(y,i)&&(m=y);var b=g.prototype=p.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(n){l(e,n,(function(e){return this._invoke(n,e)}))}))}function w(e,n){function r(i,o,a,l){var s=c(e[i],e,o);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==d(p)&&t.call(p,"__await")?n.resolve(p.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):n.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,l)}))}l(s.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}}function _(e,n){var t=e.iterator[n.method];if(void 0===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,_(e,n),"throw"===n.method))return u;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(t,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,u;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,u):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,u)}function k(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function S(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=g,l(b,"constructor",g),l(g,"constructor",h),h.displayName=l(g,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},x(w.prototype),l(w.prototype,o,(function(){return this})),e.AsyncIterator=w,e.async=function(n,t,r,i,o){void 0===o&&(o=Promise);var a=new w(s(n,t,r,i),o);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(b),l(b,a,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=[];for(var t in e)n.push(t);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=t.call(o,"catchLoc"),s=t.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&t.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),u},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),S(t),u}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;S(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:j(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},e}function h(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(c){return void t(c)}l.done?n(s):Promise.resolve(s).then(r,i)}function g(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){h(o,r,i,a,l,"next",e)}function l(e){h(o,r,i,a,l,"throw",e)}a(void 0)}))}}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,n,t){return n&&v(e.prototype,n),t&&v(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,n){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},b(e,n)}function x(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}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}}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,n){if(n&&("object"===d(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function E(e){var n=_();return function(){var t,r=w(e);if(n){var i=w(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return S(this,t)}}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=t(578),O=Object.prototype.toString;function T(e){switch(O.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return B(e,Error)}}function I(e,n){return O.call(e)==="[object ".concat(n,"]")}function D(e){return I(e,"ErrorEvent")}function R(e){return I(e,"DOMError")}function L(e){return I(e,"String")}function U(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function z(e){return I(e,"Object")}function M(e){return"undefined"!==typeof Event&&B(e,Event)}function F(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function A(e){return"number"===typeof e&&e!==e}function B(e,n){try{return e instanceof n}catch(t){return!1}}function H(e,n){try{for(var t,r=e,i=[],o=0,a=0,l=" > ".length;r&&o++<5&&!("html"===(t=Y(r,n))||o>1&&a+i.length*l+t.length>=80);)i.push(t),a+=t.length,r=r.parentNode;return i.reverse().join(" > ")}catch(s){return"<unknown>"}}function Y(e,n){var t,r,i,o,a,l=e,s=[];if(!l||!l.tagName)return"";s.push(l.tagName.toLowerCase());var c=n&&n.length?n.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(c&&c.length)c.forEach((function(e){s.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(l.id&&s.push("#".concat(l.id)),(t=l.className)&&L(t))for(r=t.split(/\s+/),a=0;a<r.length;a++)s.push(".".concat(r[a]));var u=["type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=l.getAttribute(i))&&s.push("[".concat(i,'="').concat(o,'"]'));return s.join("")}function $(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===n||e.length<=n?e:"".concat(e.substr(0,n),"...")}function G(e,n){if(!Array.isArray(e))return"";for(var t=[],r=0;r<e.length;r++){var i=e[r];try{t.push(String(i))}catch(o){t.push("[value cannot be serialized]")}}return t.join(n)}function W(e,n){return!!L(e)&&(I(n,"RegExp")?n.test(e):"string"===typeof n&&-1!==e.indexOf(n))}function q(e,n,t){if(n in e){var r=e[n],i=t(r);if("function"===typeof i)try{V(i,r)}catch(o){}e[n]=i}}function Q(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,configurable:!0})}function V(e,n){var t=n.prototype||{};e.prototype=n.prototype=t,Q(e,"__sentry_original__",n)}function K(e){return e.__sentry_original__}function J(e){if(T(e))return N({message:e.message,name:e.name,stack:e.stack},Z(e));if(M(e)){var n=N({type:e.type,target:X(e.target),currentTarget:X(e.currentTarget)},Z(e));return"undefined"!==typeof CustomEvent&&B(e,CustomEvent)&&(n.detail=e.detail),n}return e}function X(e){try{return n=e,"undefined"!==typeof Element&&B(n,Element)?H(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}var n}function Z(e){if("object"===typeof e&&null!==e){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}return{}}function ee(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,t=Object.keys(J(e));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=n)return $(t[0],n);for(var r=t.length;r>0;r--){var i=t.slice(0,r).join(", ");if(!(i.length>n))return r===t.length?i:$(i,n)}return""}function ne(e){return te(e,new Map)}function te(e,n){if(z(e)){if(void 0!==(a=n.get(e)))return a;var t={};n.set(e,t);for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];"undefined"!==typeof e[o]&&(t[o]=te(e[o],n))}return t}if(Array.isArray(e)){var a;if(void 0!==(a=n.get(e)))return a;t=[];return n.set(e,t),e.forEach((function(e){t.push(te(e,n))})),t}return e}function re(){var e=(0,P.R)(),n=e.crypto||e.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");var t=n&&n.getRandomValues?function(){return n.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^(15&t())>>e/4).toString(16)}))}function ie(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function oe(e){var n=e.message,t=e.event_id;if(n)return n;var r=ie(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||t||"<unknown>":t||"<unknown>"}function ae(e,n,t){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=n||""),o.type||(o.type=t||"Error")}function le(e,n){var t=ie(e);if(t){var r=t.mechanism;if(t.mechanism=N(N(N({},{type:"generic",handled:!0}),r),n),n&&"data"in n){var i=N(N({},r&&r.data),n.data);t.mechanism.data=i}}}function se(e){if(e&&e.__sentry_captured__)return!0;try{Q(e,"__sentry_captured__",!0)}catch(n){}return!1}function ce(e){return Array.isArray(e)?e:[e]}var ue,pe=t(929),de=(0,P.R)(),fe="Sentry Logger ",he=["debug","info","warn","error","log","assert","trace"];function ge(e){var n=(0,P.R)();if(!("console"in n))return e();var t=n.console,r={};he.forEach((function(e){var i=t[e]&&t[e].__sentry_original__;e in n.console&&i&&(r[e]=t[e],t[e]=i)}));try{return e()}finally{Object.keys(r).forEach((function(e){t[e]=r[e]}))}}function me(){var e=!1,n={enable:function(){e=!0},disable:function(){e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?he.forEach((function(t){n[t]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e&&ge((function(){var e;(e=de.console)[t].apply(e,["".concat(fe,"[").concat(t,"]:")].concat(r))}))}})):he.forEach((function(e){n[e]=function(){}})),n}ue="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,P.Y)("logger",me):me();var ve,ye=t(419);function be(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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.")}()}function xe(e){return new _e((function(n){n(e)}))}function we(e){return new _e((function(n,t){t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(ve||(ve={}));var _e=function(){function e(n){m(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this);try{n(this._resolve,this._reject)}catch(t){this._reject(t)}}return y(e,[{key:"__init",value:function(){this._state=ve.PENDING}},{key:"__init2",value:function(){this._handlers=[]}},{key:"then",value:function(n,t){var r=this;return new e((function(e,i){r._handlers.push([!1,function(t){if(n)try{e(n(t))}catch(r){i(r)}else e(t)},function(n){if(t)try{e(t(n))}catch(r){i(r)}else i(n)}]),r._executeHandlers()}))}},{key:"catch",value:function(e){return this.then((function(e){return e}),e)}},{key:"finally",value:function(n){var t=this;return new e((function(e,r){var i,o;return t.then((function(e){o=!1,i=e,n&&n()}),(function(e){o=!0,i=e,n&&n()})).then((function(){o?r(i):e(i)}))}))}},{key:"__init3",value:function(){var e=this;this._resolve=function(n){e._setResult(ve.RESOLVED,n)}}},{key:"__init4",value:function(){var e=this;this._reject=function(n){e._setResult(ve.REJECTED,n)}}},{key:"__init5",value:function(){var e=this;this._setResult=function(n,t){e._state===ve.PENDING&&(F(t)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))}}},{key:"__init6",value:function(){var e=this;this._executeHandlers=function(){if(e._state!==ve.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach((function(n){n[0]||(e._state===ve.RESOLVED&&n[1](e._value),e._state===ve.REJECTED&&n[2](e._value),n[0]=!0)}))}}}}]),e}();function ke(e){var n=(0,pe.ph)(),t={sid:re(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(e){return ne({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(t)}};return e&&Se(t,e),t}function Se(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.user&&(!e.ipAddress&&n.user.ip_address&&(e.ipAddress=n.user.ip_address),e.did||n.did||(e.did=n.user.id||n.user.email||n.user.username)),e.timestamp=n.timestamp||(0,pe.ph)(),n.ignoreDuration&&(e.ignoreDuration=n.ignoreDuration),n.sid&&(e.sid=32===n.sid.length?n.sid:re()),void 0!==n.init&&(e.init=n.init),!e.did&&n.did&&(e.did="".concat(n.did)),"number"===typeof n.started&&(e.started=n.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof n.duration)e.duration=n.duration;else{var t=e.timestamp-e.started;e.duration=t>=0?t:0}n.release&&(e.release=n.release),n.environment&&(e.environment=n.environment),!e.ipAddress&&n.ipAddress&&(e.ipAddress=n.ipAddress),!e.userAgent&&n.userAgent&&(e.userAgent=n.userAgent),"number"===typeof n.errors&&(e.errors=n.errors),n.status&&(e.status=n.status)}var Ee=function(){function e(){m(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return y(e,[{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{},this._session&&Se(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(e){return this._requestSession=e,this}},{key:"setTags",value:function(e){return this._tags=N(N({},this._tags),e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,n){return this._tags=N(N({},this._tags),{},j({},e,n)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=N(N({},this._extra),e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,n){return this._extra=N(N({},this._extra),{},j({},e,n)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,n){return null===n?delete this._contexts[e]:this._contexts=N(N({},this._contexts),{},j({},e,n)),this._notifyScopeListeners(),this}},{key:"setSpan",value:function(e){return this._span=e,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var e=this.getSpan();return e&&e.transaction}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(n){if(!n)return this;if("function"===typeof n){var t=n(this);return t instanceof e?t:this}return n instanceof e?(this._tags=N(N({},this._tags),n._tags),this._extra=N(N({},this._extra),n._extra),this._contexts=N(N({},this._contexts),n._contexts),n._user&&Object.keys(n._user).length&&(this._user=n._user),n._level&&(this._level=n._level),n._fingerprint&&(this._fingerprint=n._fingerprint),n._requestSession&&(this._requestSession=n._requestSession)):z(n)&&(this._tags=N(N({},this._tags),n.tags),this._extra=N(N({},this._extra),n.extra),this._contexts=N(N({},this._contexts),n.contexts),n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession)),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}},{key:"addBreadcrumb",value:function(e,n){var t="number"===typeof n?n:100;if(t<=0)return this;var r=N({timestamp:(0,pe.yW)()},e);return this._breadcrumbs=[].concat(be(this._breadcrumbs),[r]).slice(-t),this._notifyScopeListeners(),this}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"getAttachments",value:function(){return this._attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"applyToEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra=N(N({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=N(N({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=N(N({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=N(N({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=N({trace:this._span.getTraceContext()},e.contexts);var t=this._span.transaction&&this._span.transaction.name;t&&(e.tags=N({transaction:t},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=[].concat(be(e.breadcrumbs||[]),be(this._breadcrumbs)),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=N(N({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),this._notifyEventProcessors([].concat(be(je()),be(this._eventProcessors)),e,n)}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=N(N({},this._sdkProcessingMetadata),e),this}},{key:"_notifyEventProcessors",value:function(e,n,t){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new _e((function(o,a){var l=e[i];if(null===n||"function"!==typeof l)o(n);else{var s=l(N({},n),t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===s&&ue.log('Event processor "'.concat(l.id,'" dropped event')),F(s)?s.then((function(n){return r._notifyEventProcessors(e,n,t,i+1).then(o)})).then(null,a):r._notifyEventProcessors(e,s,t,i+1).then(o).then(null,a)}}))}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(n){n(e)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value:function(e){e.fingerprint=e.fingerprint?ce(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}],[{key:"clone",value:function(n){var t=new e;return n&&(t._breadcrumbs=be(n._breadcrumbs),t._tags=N({},n._tags),t._extra=N({},n._extra),t._contexts=N({},n._contexts),t._user=n._user,t._level=n._level,t._span=n._span,t._session=n._session,t._transactionName=n._transactionName,t._fingerprint=n._fingerprint,t._eventProcessors=be(n._eventProcessors),t._requestSession=n._requestSession,t._attachments=be(n._attachments)),t}}]),e}();function je(){return(0,P.Y)("globalEventProcessors",(function(){return[]}))}function Ce(e){je().push(e)}var Ne=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ee,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;m(this,e),this._version=r,e.prototype.__init.call(this),this.getStackTop().scope=t,n&&this.bindClient(n)}return y(e,[{key:"__init",value:function(){this._stack=[{}]}},{key:"isOlderThan",value:function(e){return this._version<e}},{key:"bindClient",value:function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}},{key:"pushScope",value:function(){var e=Ee.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}},{key:"popScope",value:function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}},{key:"withScope",value:function(e){var n=this.pushScope();try{e(n)}finally{this.popScope()}}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(e,n){var t=this._lastEventId=n&&n.event_id?n.event_id:re(),r=new Error("Sentry syntheticException");return this._withClient((function(i,o){i.captureException(e,N(N({originalException:e,syntheticException:r},n),{},{event_id:t}),o)})),t}},{key:"captureMessage",value:function(e,n,t){var r=this._lastEventId=t&&t.event_id?t.event_id:re(),i=new Error(e);return this._withClient((function(o,a){o.captureMessage(e,n,N(N({originalException:e,syntheticException:i},t),{},{event_id:r}),a)})),r}},{key:"captureEvent",value:function(e,n){var t=n&&n.event_id?n.event_id:re();return"transaction"!==e.type&&(this._lastEventId=t),this._withClient((function(r,i){r.captureEvent(e,N(N({},n),{},{event_id:t}),i)})),t}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(e,n){var t=this.getStackTop(),r=t.scope,i=t.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,l=void 0===a?null:a,s=o.maxBreadcrumbs,c=void 0===s?100:s;if(!(c<=0)){var u=N({timestamp:(0,pe.yW)()},e),p=l?ge((function(){return l(u,n)})):u;null!==p&&r.addBreadcrumb(p,c)}}}},{key:"setUser",value:function(e){var n=this.getScope();n&&n.setUser(e)}},{key:"setTags",value:function(e){var n=this.getScope();n&&n.setTags(e)}},{key:"setExtras",value:function(e){var n=this.getScope();n&&n.setExtras(e)}},{key:"setTag",value:function(e,n){var t=this.getScope();t&&t.setTag(e,n)}},{key:"setExtra",value:function(e,n){var t=this.getScope();t&&t.setExtra(e,n)}},{key:"setContext",value:function(e,n){var t=this.getScope();t&&t.setContext(e,n)}},{key:"configureScope",value:function(e){var n=this.getStackTop(),t=n.scope,r=n.client;t&&r&&e(t)}},{key:"run",value:function(e){var n=Oe(this);try{e(this)}finally{Oe(n)}}},{key:"getIntegration",value:function(e){var n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}},{key:"startTransaction",value:function(e,n){return this._callExtensionMethod("startTransaction",e,n)}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var e=this.getStackTop(),n=e&&e.scope,t=n&&n.getSession();t&&function(e,n){var t={};n?t={status:n}:"ok"===e.status&&(t={status:"exited"}),Se(e,t)}(t),this._sendSessionUpdate(),n&&n.setSession()}},{key:"startSession",value:function(e){var n=this.getStackTop(),t=n.scope,r=n.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,l=((0,P.R)().navigator||{}).userAgent,s=ke(N(N(N({release:o,environment:a},t&&{user:t.getUser()}),l&&{userAgent:l}),e));if(t){var c=t.getSession&&t.getSession();c&&"ok"===c.status&&Se(c,{status:"exited"}),this.endSession(),t.setSession(s)}return s}},{key:"shouldSendDefaultPii",value:function(){var e=this.getClient(),n=e&&e.getOptions();return Boolean(n&&n.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var e=this.getStackTop(),n=e.scope,t=e.client;if(n){var r=n.getSession();r&&t&&t.captureSession&&t.captureSession(r)}}},{key:"_withClient",value:function(e){var n=this.getStackTop(),t=n.scope,r=n.client;r&&e(r,t)}},{key:"_callExtensionMethod",value:function(e){var n=Pe(),t=n.__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.extensions[e].apply(this,i)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}]),e}();function Pe(){var e=(0,P.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Oe(e){var n=Pe(),t=De(n);return Re(n,e),t}function Te(){var e=Pe();return Ie(e)&&!De(e).isOlderThan(4)||Re(e,new Ne),(0,ye.KV)()?function(e){try{var n=Pe().__SENTRY__,t=n&&n.extensions&&n.extensions.domain&&n.extensions.domain.active;if(!t)return De(e);if(!Ie(t)||De(t).isOlderThan(4)){var r=De(e).getStackTop();Re(t,new Ne(r.client,Ee.clone(r.scope)))}return De(t)}catch(i){return De(e)}}(e):De(e)}function Ie(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function De(e){return(0,P.Y)("hub",(function(){return new Ne}),e)}function Re(e,n){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=n,!0)}function Le(e,n){return Te().captureException(e,{captureContext:n})}function Ue(e){Te().withScope(e)}var ze,Me=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Fe=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),this._options=n,e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(n,t){var r=function(n){var r=t();if(r){var i=r.getIntegration(e);if(i){var o=r.getClient(),a=o?o.getOptions():{},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat(be(e.allowUrls||[]),be(n.allowUrls||[])),denyUrls:[].concat(be(e.denyUrls||[]),be(n.denyUrls||[])),ignoreErrors:[].concat(be(e.ignoreErrors||[]),be(n.ignoreErrors||[]),Me),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(i._options,a);return function(e,n){if(n.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(n){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(oe(e))),!0;if(function(e,n){if(!n||!n.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{var n=e.exception.values&&e.exception.values[0]||{},t=n.type,r=void 0===t?"":t,i=n.value,o=void 0===i?"":i;return["".concat(o),"".concat(r,": ").concat(o)]}catch(a){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Cannot extract message for event ".concat(oe(e))),[]}return[]}(e).some((function(e){return n.some((function(n){return W(e,n)}))}))}(e,n.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(oe(e))),!0;if(function(e,n){if(!n||!n.length)return!1;var t=Ae(e);return!!t&&n.some((function(e){return W(t,e)}))}(e,n.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(oe(e),".\nUrl: ").concat(Ae(e))),!0;if(!function(e,n){if(!n||!n.length)return!0;var t=Ae(e);return!t||n.some((function(e){return W(t,e)}))}(e,n.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(oe(e),".\nUrl: ").concat(Ae(e))),!0;return!1}(n,l)?null:n}}return n};r.id=this.name,n(r)}}],[{key:"__initStatic",value:function(){this.id="InboundFilters"}}]),e}();function Ae(e){try{var n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(n):null}catch(r){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Cannot extract url for event ".concat(oe(e))),null}}Fe.__initStatic();var Be=function(){function e(){m(this,e),e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){ze=Function.prototype.toString,Function.prototype.toString=function(){for(var e=K(this)||this,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return ze.apply(e,t)}}}],[{key:"__initStatic",value:function(){this.id="FunctionToString"}}]),e}();Be.__initStatic();var He=[];function Ye(e){var n=e.defaultIntegrations||[],t=e.integrations;n.forEach((function(e){e.isDefaultInstance=!0}));var r=function(e){var n={};return e.forEach((function(e){var t=e.name,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)})),Object.values(n)}(Array.isArray(t)?[].concat(be(n),be(t)):"function"===typeof t?ce(t(n)):n),i=r.findIndex((function(e){return"Debug"===e.name}));if(-1!==i){var o=c(r.splice(i,1),1)[0];r.push(o)}return r}function $e(e,n){!0===n.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ue.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var t=Te(),r=t.getScope();r&&r.update(n.initialScope);var i=new e(n);t.bindClient(i)}function Ge(e,n,t){return Ge=_()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&b(i,t.prototype),i},Ge.apply(null,arguments)}function We(e){var n="function"===typeof Map?new Map:void 0;return We=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return Ge(e,arguments,w(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),b(r,e)},We(e)}var qe=function(e){x(t,e);var n=E(t);function t(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";return m(this,t),(r=n.call(this,e)).message=e,r.name=(this instanceof t?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf(k(r),(this instanceof t?this.constructor:void 0).prototype),r.logLevel=i,r}return y(t)}(We(Error)),Qe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ve(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId,l=e.protocol,s=e.publicKey;return"".concat(l,"://").concat(s).concat(n&&i?":".concat(i):"")+"@".concat(t).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function Ke(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Je(e){var n="string"===typeof e?function(e){var n=Qe.exec(e);if(!n)throw new qe("Invalid Sentry Dsn: ".concat(e));var t=c(n.slice(1),6),r=t[0],i=t[1],o=t[2],a=void 0===o?"":o,l=t[3],s=t[4],u=void 0===s?"":s,p="",d=t[5],f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){var h=d.match(/^\d+/);h&&(d=h[0])}return Ke({host:l,pass:a,path:p,projectId:d,port:u,protocol:r,publicKey:i})}(e):Ke(e);return function(e){if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var n=e.port,t=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(n){if(!e[n])throw new qe("Invalid Sentry Dsn: ".concat(n," missing"))})),!t.match(/^\d+$/))throw new qe("Invalid Sentry Dsn: Invalid projectId ".concat(t));if(!function(e){return"http"===e||"https"===e}(r))throw new qe("Invalid Sentry Dsn: Invalid protocol ".concat(r));if(n&&isNaN(parseInt(n,10)))throw new qe("Invalid Sentry Dsn: Invalid port ".concat(n))}}(n),n}function Xe(e){var n=e.protocol?"".concat(e.protocol,":"):"",t=e.port?":".concat(e.port):"";return"".concat(n,"//").concat(e.host).concat(t).concat(e.path?"/".concat(e.path):"","/api/")}function Ze(e){return"".concat(Xe(e)).concat(e.projectId,"/envelope/")}function en(e,n){return t=N({sentry_key:e.publicKey,sentry_version:"7"},n&&{sentry_client:"".concat(n.name,"/").concat(n.version)}),Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&");var t}function nn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="string"===typeof n?n:n.tunnel,r="string"!==typeof n&&n._metadata?n._metadata.sdk:void 0;return t||"".concat(Ze(e),"?").concat(en(e,r))}function tn(e,n){var t=Je(e),r="".concat(Xe(t),"embed/error-page/"),i="dsn=".concat(Ve(t));for(var o in n)if("dsn"!==o)if("user"===o){var a=n.user;if(!a)continue;a.name&&(i+="&name=".concat(encodeURIComponent(a.name))),a.email&&(i+="&email=".concat(encodeURIComponent(a.email)))}else i+="&".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(n[o]));return"".concat(r,"?").concat(i)}function rn(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=n.sort((function(e,n){return e[0]-n[0]})).map((function(e){return e[1]}));return function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],o=u(e.split("\n").slice(t));try{for(o.s();!(n=o.n()).done;){var a,l=n.value,s=l.replace(/\(error: (.*)\)/,"$1"),c=u(r);try{for(c.s();!(a=c.n()).done;){var p=a.value,d=p(s);if(d){i.push(d);break}}}catch(f){c.e(f)}finally{c.f()}}}catch(f){o.e(f)}finally{o.f()}return an(i)}}function on(e){return Array.isArray(e)?rn.apply(void 0,be(e)):e}function an(e){if(!e.length)return[];var n=e,t=n[0].function||"",r=n[n.length-1].function||"";return-1===t.indexOf("captureMessage")&&-1===t.indexOf("captureException")||(n=n.slice(1)),-1!==r.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,50).map((function(e){return N(N({},e),{},{filename:e.filename||n[0].filename,function:e.function||"?"})})).reverse()}var ln="<anonymous>";function sn(e){try{return e&&"function"===typeof e&&e.name||ln}catch(n){return ln}}function cn(){if(!("fetch"in(0,P.R)()))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function un(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var pn,dn=(0,P.R)(),fn={},hn={};function gn(e){if(!hn[e])switch(hn[e]=!0,e){case"console":!function(){if(!("console"in dn))return;he.forEach((function(e){e in dn.console&&q(dn.console,e,(function(n){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];vn("console",{args:r,level:e}),n&&n.apply(dn.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in dn))return;var e=vn.bind(null,"dom"),n=Sn(e,!0);dn.document.addEventListener("click",n,!1),dn.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((function(n){var t=dn[n]&&dn[n].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(q(t,"addEventListener",(function(n){return function(t,r,i){if("click"===t||"keypress"==t)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},l=a[t]=a[t]||{refCount:0};if(!l.handler){var s=Sn(e);l.handler=s,n.call(this,t,s,i)}l.refCount+=1}catch(c){}return n.call(this,t,r,i)}})),q(t,"removeEventListener",(function(e){return function(n,t,r){if("click"===n||"keypress"==n)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[n];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,n,a.handler,r),a.handler=void 0,delete o[n]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(l){}return e.call(this,n,t,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in dn))return;var e=XMLHttpRequest.prototype;q(e,"open",(function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i=this,o=t[1],a=i.__sentry_xhr__={method:L(t[0])?t[0].toUpperCase():t[0],url:t[1]};L(o)&&"POST"===a.method&&o.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var l=function(){if(4===i.readyState){try{a.status_code=i.status}catch(e){}vn("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"===typeof i.onreadystatechange?q(i,"onreadystatechange",(function(e){return function(){l();for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.apply(i,t)}})):i.addEventListener("readystatechange",l),e.apply(i,t)}})),q(e,"send",(function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),vn("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!cn())return!1;var e=(0,P.R)();if(un(e.fetch))return!0;var n=!1,t=e.document;if(t&&"function"===typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(n=un(r.contentWindow.fetch)),t.head.removeChild(r)}catch(i){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return n}())return;q(dn,"fetch",(function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i={args:t,fetchData:{method:yn(t),url:bn(t)},startTimestamp:Date.now()};return vn("fetch",N({},i)),e.apply(dn,t).then((function(e){return vn("fetch",N(N({},i),{},{endTimestamp:Date.now(),response:e})),e}),(function(e){throw vn("fetch",N(N({},i),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=(0,P.R)(),n=e.chrome,t=n&&n.app&&n.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!t&&r}())return;var e=dn.onpopstate;function n(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i=t.length>2?t[2]:void 0;if(i){var o=pn,a=String(i);pn=a,vn("history",{from:o,to:a})}return e.apply(this,t)}}dn.onpopstate=function(){var n=dn.location.href,t=pn;if(pn=n,vn("history",{from:t,to:n}),e)try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}catch(a){}},q(dn.history,"pushState",n),q(dn.history,"replaceState",n)}();break;case"error":En=dn.onerror,dn.onerror=function(e,n,t,r,i){return vn("error",{column:r,error:i,line:t,msg:e,url:n}),!!En&&En.apply(this,arguments)};break;case"unhandledrejection":jn=dn.onunhandledrejection,dn.onunhandledrejection=function(e){return vn("unhandledrejection",e),!jn||jn.apply(this,arguments)};break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("unknown instrumentation type:",e))}}function mn(e,n){fn[e]=fn[e]||[],fn[e].push(n),gn(e)}function vn(e,n){if(e&&fn[e]){var t,r=u(fn[e]||[]);try{for(r.s();!(t=r.n()).done;){var i=t.value;try{i(n)}catch(o){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(sn(i),"\nError:"),o)}}}catch(a){r.e(a)}finally{r.f()}}}function yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Request"in dn&&B(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"string"===typeof e[0]?e[0]:"Request"in dn&&B(e[0],Request)?e[0].url:String(e[0])}var xn,wn;function _n(e,n){if(!e)return!0;if(e.type!==n.type)return!0;try{if(e.target!==n.target)return!0}catch(t){}return!1}function kn(e){if("keypress"!==e.type)return!1;try{var n=e.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}function Sn(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){if(t&&wn!==t&&!kn(t)){var r="keypress"===t.type?"input":t.type;(void 0===xn||_n(wn,t))&&(e({event:t,name:r,global:n}),wn=t),clearTimeout(xn),xn=dn.setTimeout((function(){xn=void 0}),1e3)}}}var En=null;var jn=null;function Cn(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}function Nn(){return Nn="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var r=Cn(e,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?e:t):i.value}},Nn.apply(this,arguments)}var Pn="7.15.0";function On(){var e="function"===typeof WeakSet,n=e?new WeakSet:[];return[function(t){if(e)return!!n.has(t)||(n.add(t),!1);for(var r=0;r<n.length;r++){if(n[r]===t)return!0}return n.push(t),!1},function(t){if(e)n.delete(t);else for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}}]}function Tn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return Dn("",e,n,t)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function In(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,r=Tn(e,n);return Ln(r)>t?In(e,n-1,t):r}function Dn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:On(),o=c(i,2),a=o[0],l=o[1];if(null===n||["number","boolean","string"].includes(typeof n)&&!A(n))return n;var s=Rn(e,n);if(!s.startsWith("[object "))return s;if(n.__sentry_skip_normalization__)return n;if(0===t)return s.replace("object ","");if(a(n))return"[Circular ~]";var u=n;if(u&&"function"===typeof u.toJSON)try{var p=u.toJSON();return Dn("",p,t-1,r,i)}catch(v){}var d=Array.isArray(n)?[]:{},f=0,h=J(n);for(var g in h)if(Object.prototype.hasOwnProperty.call(h,g)){if(f>=r){d[g]="[MaxProperties ~]";break}var m=h[g];d[g]=Dn(g,m,t-1,r,i),f+=1}return l(n),d}function Rn(e,n){try{return"domain"===e&&n&&"object"===typeof n&&n._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof t.g&&n===t.g?"[Global]":"undefined"!==typeof window&&n===window?"[Window]":"undefined"!==typeof document&&n===document?"[Document]":z(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"===typeof n&&n!==n?"[NaN]":void 0===n?"[undefined]":"function"===typeof n?"[Function: ".concat(sn(n),"]"):"symbol"===typeof n?"[".concat(String(n),"]"):"bigint"===typeof n?"[BigInt: ".concat(String(n),"]"):"[object ".concat(Object.getPrototypeOf(n).constructor.name,"]")}catch(i){return"**non-serializable** (".concat(i,")")}var r}function Ln(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function Un(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,n]}function zn(e,n){var t=c(e,2),r=t[0],i=t[1];return[r,[].concat(be(i),[n])]}function Mn(e,n){e[1].forEach((function(e){var t=e[0].type;n(e,t)}))}function Fn(e,n){return(n||new TextEncoder).encode(e)}function An(e,n){var t=c(e,2),r=t[0],i=t[1],o=JSON.stringify(r);function a(e){"string"===typeof o?o="string"===typeof e?o+e:[Fn(o,n),e]:o.push("string"===typeof e?Fn(e,n):e)}var l,s=u(i);try{for(s.s();!(l=s.n()).done;){var p=c(l.value,2),d=p[0],f=p[1];if(a("\n".concat(JSON.stringify(d),"\n")),"string"===typeof f||f instanceof Uint8Array)a(f);else{var h=void 0;try{h=JSON.stringify(f)}catch(g){h=JSON.stringify(Tn(f))}a(h)}}}catch(m){s.e(m)}finally{s.f()}return"string"===typeof o?o:function(e){var n,t=e.reduce((function(e,n){return e+n.length}),0),r=new Uint8Array(t),i=0,o=u(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.set(a,i),i+=a.length}}catch(m){o.e(m)}finally{o.f()}return r}(o)}function Bn(e,n){var t="string"===typeof e.data?Fn(e.data,n):e.data;return[ne({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var Hn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Yn(e){return Hn[e]}function $n(e){if(e&&e.sdk){var n=e.sdk;return{name:n.name,version:n.version}}}function Gn(e,n,t,r){var i=$n(t),o=e.type||"event";!function(e,n){n&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||n.name,e.sdk.version=e.sdk.version||n.version,e.sdk.integrations=[].concat(be(e.sdk.integrations||[]),be(n.integrations||[])),e.sdk.packages=[].concat(be(e.sdk.packages||[]),be(n.packages||[])))}(e,t&&t.sdk);var a=function(e,n,t,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return N(N(N({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t&&{dsn:Ve(r)}),"transaction"===e.type&&i&&{trace:ne(N({},i))})}(e,i,r,n);return delete e.sdkProcessingMetadata,Un(a,[[{type:o},e]])}var Wn="Not capturing exception because it's already been captured.",qn=function(){function e(n){if(m(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._options=n,n.dsn){this._dsn=Je(n.dsn);var t=nn(this._dsn,n);this._transport=n.transport(N(N({recordDroppedEvent:this.recordDroppedEvent.bind(this)},n.transportOptions),{},{url:t}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("No DSN provided, client will not do anything.")}return y(e,[{key:"__init",value:function(){this._integrations={}}},{key:"__init2",value:function(){this._integrationsInitialized=!1}},{key:"__init3",value:function(){this._numProcessing=0}},{key:"__init4",value:function(){this._outcomes={}}},{key:"captureException",value:function(e,n,t){var r=this;if(!se(e)){var i=n&&n.event_id;return this._process(this.eventFromException(e,n).then((function(e){return r._captureEvent(e,n,t)})).then((function(e){i=e}))),i}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log(Wn)}},{key:"captureMessage",value:function(e,n,t,r){var i=this,o=t&&t.event_id,a=U(e)?this.eventFromMessage(String(e),n,t):this.eventFromException(e,t);return this._process(a.then((function(e){return i._captureEvent(e,t,r)})).then((function(e){o=e}))),o}},{key:"captureEvent",value:function(e,n,t){if(!(n&&n.originalException&&se(n.originalException))){var r=n&&n.event_id;return this._process(this._captureEvent(e,n,t).then((function(e){r=e}))),r}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log(Wn)}},{key:"captureSession",value:function(e){this._isEnabled()?"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Se(e,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("SDK not enabled, will not capture session.")}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var n=this._transport;return n?this._isClientDoneProcessing(e).then((function(t){return n.flush(e).then((function(e){return t&&e}))})):xe(!0)}},{key:"close",value:function(e){var n=this;return this.flush(e).then((function(e){return n.getOptions().enabled=!1,e}))}},{key:"setupIntegrations",value:function(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var n={};return e.forEach((function(e){n[e.name]=e,-1===He.indexOf(e.name)&&(e.setupOnce(Ce,Te),He.push(e.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("Integration installed: ".concat(e.name)))})),n}(this._options.integrations),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function(e){return this._integrations[e]}},{key:"getIntegration",value:function(e){try{return this._integrations[e.id]||null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}},{key:"sendEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){var t,r=Gn(e,this._dsn,this._options._metadata,this._options.tunnel),i=u(n.attachments||[]);try{for(i.s();!(t=i.n()).done;){var o=t.value;r=zn(r,Bn(o,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(a){i.e(a)}finally{i.f()}this._sendEnvelope(r)}}},{key:"sendSession",value:function(e){if(this._dsn){var n=function(e,n,t,r){var i=$n(t);return Un(N(N({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&{dsn:Ve(n)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}},{key:"recordDroppedEvent",value:function(e,n){if(this._options.sendClientReports){var t="".concat(e,":").concat(n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log('Adding outcome: "'.concat(t,'"')),this._outcomes[t]=this._outcomes[t]+1||1}}},{key:"_updateSessionFromEvent",value:function(e,n){var t=!1,r=!1,i=n.exception&&n.exception.values;if(i){r=!0;var o,a=u(i);try{for(a.s();!(o=a.n()).done;){var l=o.value.mechanism;if(l&&!1===l.handled){t=!0;break}}}catch(c){a.e(c)}finally{a.f()}}var s="ok"===e.status;(s&&0===e.errors||s&&t)&&(Se(e,N(N({},t&&{status:"crashed"}),{},{errors:e.errors||Number(r||t)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){var n=this;return new _e((function(t){var r=0,i=setInterval((function(){0==n._numProcessing?(clearInterval(i),t(!0)):(r+=1,e&&r>=e&&(clearInterval(i),t(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}},{key:"_prepareEvent",value:function(e,n,t){var r=this,i=this.getOptions(),o=i.normalizeDepth,a=void 0===o?3:o,l=i.normalizeMaxBreadth,s=void 0===l?1e3:l,c=N(N({},e),{},{event_id:e.event_id||n.event_id||re(),timestamp:e.timestamp||(0,pe.yW)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var u=t;n.captureContext&&(u=Ee.clone(u).update(n.captureContext));var p=xe(c);if(u){var d=[].concat(be(n.attachments||[]),be(u.getAttachments()));d.length&&(n.attachments=d),p=u.applyToEvent(c,n)}return p.then((function(e){return"number"===typeof a&&a>0?r._normalizeEvent(e,a,s):e}))}},{key:"_normalizeEvent",value:function(e,n,t){if(!e)return null;var r=N(N(N(N(N({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return N(N({},e),e.data&&{data:Tn(e.data,n,t)})}))}),e.user&&{user:Tn(e.user,n,t)}),e.contexts&&{contexts:Tn(e.contexts,n,t)}),e.extra&&{extra:Tn(e.extra,n,t)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Tn(e.contexts.trace.data,n,t))),e.spans&&(r.spans=e.spans.map((function(e){return e.data&&(e.data=Tn(e.data,n,t)),e}))),r}},{key:"_applyClientOptions",value:function(e){var n=this.getOptions(),t=n.environment,r=n.release,i=n.dist,o=n.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in n?t:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=$(e.message,a));var l=e.exception&&e.exception.values&&e.exception.values[0];l&&l.value&&(l.value=$(l.value,a));var s=e.request;s&&s.url&&(s.url=$(s.url,a))}},{key:"_applyIntegrationsMetadata",value:function(e){var n=Object.keys(this._integrations);n.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat(be(e.sdk.integrations||[]),n))}},{key:"_captureEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,n,t).then((function(e){return e.event_id}),(function(e){if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var n=e;"log"===n.logLevel?ue.log(n.message):ue.warn(n)}}))}},{key:"_processEvent",value:function(e,n,t){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return we(new qe("SDK not enabled, will not capture event.","log"));var l="transaction"===e.type;return!l&&"number"===typeof a&&Math.random()>a?(this.recordDroppedEvent("sample_rate","error"),we(new qe("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")"),"log"))):this._prepareEvent(e,n,t).then((function(t){if(null===t)throw r.recordDroppedEvent("event_processor",e.type||"error"),new qe("An event processor returned null, will not send event.","log");return n.data&&!0===n.data.__sentry__||l||!o?t:function(e){var n="`beforeSend` method has to return `null` or a valid event.";if(F(e))return e.then((function(e){if(!z(e)&&null!==e)throw new qe(n);return e}),(function(e){throw new qe("beforeSend rejected with ".concat(e))}));if(!z(e)&&null!==e)throw new qe(n);return e}(o(t,n))})).then((function(i){if(null===i)throw r.recordDroppedEvent("before_send",e.type||"error"),new qe("`beforeSend` returned `null`, will not send event.","log");var o=t&&t.getSession();!l&&o&&r._updateSessionFromEvent(o,i);var a=i.transaction_info;if(l&&a&&i.transaction!==e.transaction){var s="custom";i.transaction_info=N(N({},a),{},{source:s,changes:[].concat(be(a.changes),[{source:s,timestamp:i.timestamp,propagations:a.propagations}])})}return r.sendEvent(i,n),i})).then(null,(function(e){if(e instanceof qe)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new qe("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}},{key:"_process",value:function(e){var n=this;this._numProcessing+=1,e.then((function(e){return n._numProcessing-=1,e}),(function(e){return n._numProcessing-=1,e}))}},{key:"_sendEnvelope",value:function(e){this._transport&&this._dsn?this._transport.send(e).then(null,(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Error while sending event:",e)})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((function(n){var t=c(n.split(":"),2);return{reason:t[0],category:t[1],quantity:e[n]}}))}}]),e}();function Qn(e,n){var t=Kn(e,n),r={type:n&&n.name,value:Xn(n)};return t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Vn(e,n){return{exception:{values:[Qn(e,n)]}}}function Kn(e,n){var t=n.stacktrace||n.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(Jn.test(e.message))return 1}return 0}(n);try{return e(t,r)}catch(i){}return[]}var Jn=/Minified React error #\d+;/i;function Xn(e){var n=e&&e.message;return n?n.error&&"string"===typeof n.error.message?n.error.message:n:"No error message"}function Zn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=r&&r.syntheticException||void 0,a=nt(e,n,o,i);return a.level=t,r&&r.event_id&&(a.event_id=r.event_id),xe(a)}function et(e,n,t,r,i){var o;if(D(n)&&n.error)return Vn(e,n.error);if(R(n)||I(n,"DOMException")){var a=n;if("stack"in n)o=Vn(e,n);else{var l=a.name||(R(a)?"DOMError":"DOMException"),s=a.message?"".concat(l,": ").concat(a.message):l;ae(o=nt(e,s,t,r),s)}return"code"in a&&(o.tags=N(N({},o.tags),{},{"DOMException.code":"".concat(a.code)})),o}return T(n)?Vn(e,n):z(n)||M(n)?(o=function(e,n,t,r){var i=Te().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:M(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error ".concat(r?"promise rejection":"exception"," captured with keys: ").concat(ee(n))}]},extra:{__serialized__:In(n,o)}};if(t){var l=Kn(e,t);l.length&&(a.exception.values[0].stacktrace={frames:l})}return a}(e,n,t,i),le(o,{synthetic:!0}),o):(ae(o=nt(e,n,t,r),"".concat(n),void 0),le(o,{synthetic:!0}),o)}function nt(e,n,t,r){var i={message:n};if(r&&t){var o=Kn(e,t);o.length&&(i.exception={values:[{value:n,stacktrace:{frames:o}}]})}return i}var tt=["fatal","error","warning","log","info","debug"];function rt(e){return"warn"===e?"warning":tt.includes(e)?e:"log"}function it(e){if(!e)return{};var n=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var t=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+t+r}}var ot="Breadcrumbs",at=function(){function e(n){m(this,e),e.prototype.__init.call(this),this.options=N({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){this.options.console&&mn("console",lt),this.options.dom&&mn("dom",function(e){function n(n){var t,r="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof r&&(r=[r]);try{t=n.event.target?H(n.event.target,r):H(n.event,r)}catch(i){t="<unknown>"}0!==t.length&&Te().addBreadcrumb({category:"ui.".concat(n.name),message:t},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&mn("xhr",st),this.options.fetch&&mn("fetch",ct),this.options.history&&mn("history",ut)}}],[{key:"__initStatic",value:function(){this.id=ot}}]),e}();function lt(e){var n={category:"console",data:{arguments:e.args,logger:"console"},level:rt(e.level),message:G(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: ".concat(G(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}Te().addBreadcrumb(n,{input:e.args,level:e.level})}function st(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var n=e.xhr.__sentry_xhr__||{},t=n.method,r=n.url,i=n.status_code,o=n.body;Te().addBreadcrumb({category:"xhr",data:{method:t,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;}function ct(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Te().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Te().addBreadcrumb({category:"fetch",data:N(N({},e.fetchData),{},{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function ut(e){var n=(0,P.R)(),t=e.from,r=e.to,i=it(n.location.href),o=it(t),a=it(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(t=o.relative),Te().addBreadcrumb({category:"navigation",data:{from:t,to:r}})}at.__initStatic();var pt=(0,P.R)(),dt=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Pn}],version:Pn},r=n.call(this,e),e.sendClientReports&&pt.document&&pt.document.addEventListener("visibilitychange",(function(){"hidden"===pt.document.visibilityState&&r._flushOutcomes()})),r}return y(t,[{key:"eventFromException",value:function(e,n){return function(e,n,t,r){var i=et(e,n,t&&t.syntheticException||void 0,r);return le(i),i.level="error",t&&t.event_id&&(i.event_id=t.event_id),xe(i)}(this._options.stackParser,e,n,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",t=arguments.length>2?arguments[2]:void 0;return Zn(this._options.stackParser,e,n,t,this._options.attachStacktrace)}},{key:"sendEvent",value:function(e,n){var r=this.getIntegrationById(ot);r&&r.options&&r.options.sentry&&Te().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:oe(e)},{event:e}),Nn(w(t.prototype),"sendEvent",this).call(this,e,n)}},{key:"_prepareEvent",value:function(e,n,r){return e.platform=e.platform||"javascript",Nn(w(t.prototype),"_prepareEvent",this).call(this,e,n,r)}},{key:"_flushOutcomes",value:function(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("Sending outcomes:",e);var n,t,r,i=nn(this._dsn,this._options),o=(n=e,Un((t=this._options.tunnel&&Ve(this._dsn))?{dsn:t}:{},[[{type:"client_report"},{timestamp:r||(0,pe.yW)(),discarded_events:n}]]));try{var a=(0,P.R)();if("[object Navigator]"===Object.prototype.toString.call(a&&a.navigator)&&"function"===typeof a.navigator.sendBeacon&&!this._options.transportOptions)a.navigator.sendBeacon.bind(a.navigator)(i,An(o));else this._sendEnvelope(o)}catch(l){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error(l)}}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("No outcomes to send")}}]),t}(qn),ft="?";function ht(e,n,t,r){var i={filename:e,function:n,in_app:!0};return void 0!==t&&(i.lineno=t),void 0!==r&&(i.colno=r),i}var gt=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mt=/\((\S*)(?::(\d+))(?::(\d+))\)/,vt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xt=[[30,function(e){var n=gt.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){var t=mt.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}var r=c(_t(n[1]||ft,n[2]),2),i=r[0];return ht(r[1],i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,function(e){var n=vt.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var t=yt.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}var r=n[3],i=n[1]||ft,o=c(_t(i,r),2);return i=o[0],ht(r=o[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],[40,function(e){var n=bt.exec(e);return n?ht(n[2],n[1]||ft,+n[3],n[4]?+n[4]:void 0):void 0}]],wt=rn.apply(void 0,xt),_t=function(e,n){var t=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return t||r?[-1!==e.indexOf("@")?e.split("@")[0]:ft,t?"safari-extension:".concat(n):"safari-web-extension:".concat(n)]:[e,n]},kt=0;function St(){return kt>0}function Et(){kt+=1,setTimeout((function(){kt-=1}))}function jt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(K(e))return e}catch(l){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{t&&"function"===typeof t&&t.apply(this,arguments);var i=r.map((function(e){return jt(e,n)}));return e.apply(this,i)}catch(o){throw Et(),Ue((function(e){e.addEventProcessor((function(e){return n.mechanism&&(ae(e,void 0,void 0),le(e,n.mechanism)),e.extra=N(N({},e.extra),{},{arguments:r}),e})),Le(o)})),o}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(s){}V(i,e),Q(e,"__sentry_wrapped__",i);try{var a=Object.getOwnPropertyDescriptor(i,"name");a.configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(s){}return i}var Ct=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Nt=function(){function e(n){m(this,e),e.prototype.__init.call(this),this._options=N({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var e=(0,P.R)();this._options.setTimeout&&q(e,"setTimeout",Pt),this._options.setInterval&&q(e,"setInterval",Pt),this._options.requestAnimationFrame&&q(e,"requestAnimationFrame",Ot),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&q(XMLHttpRequest.prototype,"send",Tt);var n=this._options.eventTarget;n&&(Array.isArray(n)?n:Ct).forEach(It)}}],[{key:"__initStatic",value:function(){this.id="TryCatch"}}]),e}();function Pt(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i=t[0];return t[0]=jt(i,{mechanism:{data:{function:sn(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Ot(e){return function(n){return e.apply(this,[jt(n,{mechanism:{data:{function:"requestAnimationFrame",handler:sn(e)},handled:!0,type:"instrument"}})])}}function Tt(e){return function(){var n=this,t=["onload","onerror","onprogress","onreadystatechange"];t.forEach((function(e){e in n&&"function"===typeof n[e]&&q(n,e,(function(n){var t={mechanism:{data:{function:e,handler:sn(n)},handled:!0,type:"instrument"}},r=K(n);return r&&(t.mechanism.data.handler=sn(r)),jt(n,t)}))}));for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}}function It(e){var n=(0,P.R)(),t=n[e]&&n[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(q(t,"addEventListener",(function(n){return function(t,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=jt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:sn(r),target:e},handled:!0,type:"instrument"}}))}catch(o){}return n.apply(this,[t,jt(r,{mechanism:{data:{function:"addEventListener",handler:sn(r),target:e},handled:!0,type:"instrument"}}),i])}})),q(t,"removeEventListener",(function(e){return function(n,t,r){var i=t;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,n,o,r)}catch(a){}return e.call(this,n,i,r)}})))}Nt.__initStatic();var Dt=function(){function e(n){m(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),this._options=N({onerror:!0,onunhandledrejection:!0},n)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"__init2",value:function(){this._installFunc={onerror:Rt,onunhandledrejection:Lt}}},{key:"setupOnce",value:function(){Error.stackTraceLimit=50;var e,n=this._options;for(var t in n){var r=this._installFunc[t];r&&n[t]&&(e=t,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("Global Handler attached: ".concat(e)),r(),this._installFunc[t]=void 0)}}}],[{key:"__initStatic",value:function(){this.id="GlobalHandlers"}}]),e}();function Rt(){mn("error",(function(e){var n=c(Mt(),3),t=n[0],r=n[1],i=n[2];if(t.getIntegration(Dt)){var o=e.msg,a=e.url,l=e.line,s=e.column,u=e.error;if(!(St()||u&&u.__sentry_own_request__)){var p=void 0===u&&L(o)?function(e,n,t,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=D(e)?e.message:e,a="Error",l=o.match(i);l&&(a=l[1],o=l[2]);return Ut({exception:{values:[{type:a,value:o}]}},n,t,r)}(o,a,l,s):Ut(et(r,u||o,void 0,i,!1),a,l,s);p.level="error",zt(t,u,p,"onerror")}}}))}function Lt(){mn("unhandledrejection",(function(e){var n=c(Mt(),3),t=n[0],r=n[1],i=n[2];if(t.getIntegration(Dt)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(l){}if(St()||o&&o.__sentry_own_request__)return!0;var a=U(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(o))}]}}:et(r,o,void 0,i,!0);a.level="error",zt(t,o,a,"onunhandledrejection")}}))}function Ut(e,n,t,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},l=a.stacktrace=a.stacktrace||{},s=l.frames=l.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(t,10))?void 0:t,p=L(n)&&n.length>0?n:function(){var e=(0,P.R)();try{return e.document.location.href}catch(n){return""}}();return 0===s.length&&s.push({colno:c,filename:p,function:"?",in_app:!0,lineno:u}),e}function zt(e,n,t,r){le(t,{handled:!1,type:r}),e.captureEvent(t,{originalException:n})}function Mt(){var e=Te(),n=e.getClient(),t=n&&n.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[e,t.stackParser,t.attachStacktrace]}Dt.__initStatic();var Ft="cause",At=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),e.prototype.__init.call(this),this._key=n.key||Ft,this._limit=n.limit||5}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var n=Te().getClient();n&&Ce((function(t,r){var i=Te().getIntegration(e);return i?function(e,n,t,r,i){if(!r.exception||!r.exception.values||!i||!B(i.originalException,Error))return r;var o=Bt(e,t,i.originalException,n);return r.exception.values=[].concat(be(o),be(r.exception.values)),r}(n.getOptions().stackParser,i._key,i._limit,t,r):t}))}}],[{key:"__initStatic",value:function(){this.id="LinkedErrors"}}]),e}();function Bt(e,n,t,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!B(t[r],Error)||i.length+1>=n)return i;var o=Qn(e,t[r]);return Bt(e,n,t[r],r,[o].concat(be(i)))}At.__initStatic();var Ht=function(){function e(){m(this,e),e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(n,t){var r=function(n){var r=t().getIntegration(e);if(r){try{if(function(e,n){if(!n)return!1;if(function(e,n){var t=e.message,r=n.message;if(!t&&!r)return!1;if(t&&!r||!t&&r)return!1;if(t!==r)return!1;if(!$t(e,n))return!1;if(!Yt(e,n))return!1;return!0}(e,n))return!0;if(function(e,n){var t=Gt(n),r=Gt(e);if(!t||!r)return!1;if(t.type!==r.type||t.value!==r.value)return!1;if(!$t(e,n))return!1;if(!Yt(e,n))return!1;return!0}(e,n))return!0;return!1}(n,r._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return r._previousEvent=n}return r._previousEvent=n}return n};r.id=this.name,n(r)}}],[{key:"__initStatic",value:function(){this.id="Dedupe"}}]),e}();function Yt(e,n){var t=Wt(e),r=Wt(n);if(!t&&!r)return!0;if(t&&!r||!t&&r)return!1;if(r.length!==t.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=t[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function $t(e,n){var t=e.fingerprint,r=n.fingerprint;if(!t&&!r)return!0;if(t&&!r||!t&&r)return!1;try{return!(t.join("")!==r.join(""))}catch(i){return!1}}function Gt(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Wt(e){var n=e.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}}Ht.__initStatic();var qt=(0,P.R)(),Qt=function(){function e(){m(this,e),e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){Ce((function(n){if(Te().getIntegration(e)){if(!qt.navigator&&!qt.location&&!qt.document)return n;var t=n.request&&n.request.url||qt.location&&qt.location.href,r=(qt.document||{}).referrer,i=(qt.navigator||{}).userAgent,o=N(N(N({},n.request&&n.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),a=N(N({},t&&{url:t}),{},{headers:o});return N(N({},n),{},{request:a})}return n}))}}],[{key:"__initStatic",value:function(){this.id="HttpContext"}}]),e}();function Vt(e){var n=[];function t(e){return n.splice(n.indexOf(e),1)[0]}return{$:n,add:function(r){if(!(void 0===e||n.length<e))return we(new qe("Not adding Promise because buffer limit was reached."));var i=r();return-1===n.indexOf(i)&&n.push(i),i.then((function(){return t(i)})).then(null,(function(){return t(i).then(null,(function(){}))})),i},drain:function(e){return new _e((function(t,r){var i=n.length;if(!i)return t(!0);var o=setTimeout((function(){e&&e>0&&t(!1)}),e);n.forEach((function(e){xe(e).then((function(){--i||(clearTimeout(o),t(!0))}),r)}))}))}}}Qt.__initStatic();function Kt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),t=parseInt("".concat(e),10);if(!isNaN(t))return 1e3*t;var r=Date.parse("".concat(e));return isNaN(r)?6e4:r-n}function Jt(e,n){return e[n]||e.all||0}function Xt(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return Jt(e,n)>t}function Zt(e,n){var t=n.statusCode,r=n.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),o=N({},e),a=r&&r["x-sentry-rate-limits"],l=r&&r["retry-after"];if(a){var s,p=u(a.trim().split(","));try{for(p.s();!(s=p.n()).done;){var d=s.value,f=d.split(":",2),h=c(f,2),g=h[0],m=h[1],v=parseInt(g,10),y=1e3*(isNaN(v)?60:v);if(m){var b,x=u(m.split(";"));try{for(x.s();!(b=x.n()).done;){var w=b.value;o[w]=i+y}}catch(_){x.e(_)}finally{x.f()}}else o.all=i+y}}catch(_){p.e(_)}finally{p.f()}}else l?o.all=i+Kt(l,i):429===t&&(o.all=i+6e4);return o}function er(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt(e.bufferSize||30),r={},i=function(e){return t.drain(e)};function o(i){var o=[];if(Mn(i,(function(n,t){var i=Yn(t);Xt(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(n)})),0===o.length)return xe();var a=Un(i[0],o),l=function(n){Mn(a,(function(t,r){e.recordDroppedEvent(n,Yn(r))}))};return t.add((function(){return n({body:An(a,e.textEncoder)}).then((function(e){void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=Zt(r,e)}),(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Failed while sending event:",e),l("network_error")}))})).then((function(e){return e}),(function(e){if(e instanceof qe)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Skipped sending event because buffer is full."),l("queue_overflow"),xe();throw e}))}return{send:o,flush:i}}var nr,tr=(0,P.R)();function rr(){if(nr)return nr;if(un(tr.fetch))return nr=tr.fetch.bind(tr);var e=tr.document,n=tr.fetch;if(e&&"function"===typeof e.createElement)try{var t=e.createElement("iframe");t.hidden=!0,e.head.appendChild(t);var r=t.contentWindow;r&&r.fetch&&(n=r.fetch),e.head.removeChild(t)}catch(i){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return nr=n.bind(tr)}function ir(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr();function t(t){var r=N({body:t.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:t.body.length<=65536},e.fetchOptions);return n(e.url,r).then((function(e){return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}))}return er(e,t)}function or(e){return er(e,(function(n){return new _e((function(t,r){var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=function(){4===i.readyState&&t({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(n.body)}))}))}var ar=[new Fe,new Be,new Nt,new at,new Dt,new At,new Ht,new Qt];function lr(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function sr(){if("undefined"!==typeof(0,P.R)().document){var e=Te();e.captureSession&&(lr(e),mn("history",(function(e){var n=e.from,t=e.to;void 0!==n&&n!==t&&lr(Te())})))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}t(814);var cr={componentStack:null,error:null,eventId:null},ur=function(n){x(r,n);var t=E(r);function r(){var e;m(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),r.prototype.__init.call(k(e)),r.prototype.__init2.call(k(e)),e}return y(r,[{key:"__init",value:function(){this.state=cr}},{key:"componentDidCatch",value:function(n,t){var r=this,i=t.componentStack,o=this.props,a=o.beforeCapture,l=o.onError,s=o.showDialog,c=o.dialogOptions;Ue((function(t){if(function(e){var n=e.match(/^([^.]+)/);return null!==n&&parseInt(n[0])>=17}(e.version)){var o=new Error(n.message);o.name="React ErrorBoundary ".concat(o.name),o.stack=i,n.cause=o}a&&a(t,n,i);var u=Le(n,{contexts:{react:{componentStack:i}}});l&&l(n,i,u),s&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te(),t=(0,P.R)();if(t.document){var r=n.getStackTop(),i=r.client,o=r.scope,a=e.dsn||i&&i.getDsn();if(a){o&&(e.user=N(N({},o.getUser()),e.user)),e.eventId||(e.eventId=n.lastEventId());var l=t.document.createElement("script");l.async=!0,l.src=tn(a,e),e.onLoad&&(l.onload=e.onLoad);var s=t.document.head||t.document.body;s?s.appendChild(l):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Not injecting report dialog. No injection point found in HTML")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("DSN not configured for showReportDialog call")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Global document not defined in showReportDialog call")}(N(N({},c),{},{eventId:u})),r.setState({error:n,componentStack:i,eventId:u})}))}},{key:"componentDidMount",value:function(){var e=this.props.onMount;e&&e()}},{key:"componentWillUnmount",value:function(){var e=this.state,n=e.error,t=e.componentStack,r=e.eventId,i=this.props.onUnmount;i&&i(n,t,r)}},{key:"__init2",value:function(){var e=this;this.resetErrorBoundary=function(){var n=e.props.onReset,t=e.state,r=t.error,i=t.componentStack,o=t.eventId;n&&n(r,i,o),e.setState(cr)}}},{key:"render",value:function(){var n=this.props,t=n.fallback,r=n.children,i=this.state,o=i.error,a=i.componentStack,l=i.eventId;if(o){var s=void 0;return s="function"===typeof t?t({error:o,componentStack:a,resetError:this.resetErrorBoundary,eventId:l}):t,e.isValidElement(s)?s:(t&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("fallback did not produce a valid ReactElement"),null)}return"function"===typeof r?r():r}}]),r}(e.Component);function pr(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Pn}],version:Pn},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=ar),void 0===e.release){var n=(0,P.R)();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(e.release=n.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var t=N(N({},e),{},{stackParser:on(e.stackParser||wt),integrations:Ye(e),transport:e.transport||(cn()?ir:or)});$e(dt,t),e.autoSessionTracking&&sr()}(e)}var dr,fr,hr,gr,mr=t(574),vr=["children","head","title","style"],yr=function(e){x(r,e);var t=E(r);function r(){var e;m(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).handleLoad=function(){e.setupFrameBaseStyle()},e}return y(r,[{key:"componentDidMount",value:function(){this.node.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmout",value:function(){this.node.removeEventListener("load",this.handleLoad)}},{key:"setupFrameBaseStyle",value:function(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,i=t.head,o=t.title,a=void 0===o?"":o,l=t.style,s=void 0===l?{}:l,c=p(t,vr);return(0,mr.jsxs)("iframe",N(N({srcDoc:"<!DOCTYPE html>"},c),{},{ref:function(n){return e.node=n},title:a,style:s,frameBorder:"0",children:[this.iframeHead&&(0,n.createPortal)(i,this.iframeHead),this.iframeRoot&&(0,n.createPortal)(r,this.iframeRoot)]}))}}]),r}(e.Component),br=["title","titleId"];function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xr.apply(this,arguments)}function wr(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function _r(n,t){var r=n.title,i=n.titleId,o=wr(n,br);return e.createElement("svg",xr({id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,dr||(dr=e.createElement("defs",null,e.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.8px;}"))),fr||(fr=e.createElement("circle",{className:"cls-1",cx:12,cy:9.75,r:5.25})),hr||(hr=e.createElement("path",{className:"cls-1",d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0"})),gr||(gr=e.createElement("circle",{className:"cls-1",cx:12,cy:12,r:11.25})))}var kr=e.forwardRef(_r),Sr=(t.p,"\n .gh-portal-avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n margin: 0 0 8px 0;\n border-radius: 999px;\n }\n\n .gh-portal-avatar img {\n position: absolute;\n display: block;\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n opacity: 1;\n max-width: unset;\n }\n");var Er,jr=function(e){var n=e.gravatar,t=function(e){var n=e.style,t=void 0===n?{}:n;return{avatarContainer:N({},t.avatarContainer||{}),gravatar:N({},t.avatarContainer||{}),userIcon:N({width:"34px",height:"34px",color:"#fff"},t.userIcon||{})}}({style:e.style});return(0,mr.jsxs)("figure",{className:"gh-portal-avatar",style:t.avatarContainer,children:[(0,mr.jsx)(kr,{style:t.userIcon}),n?(0,mr.jsx)("img",{style:t.gravatar,src:n,alt:""}):null]})},Cr=t(969).createContext({site:{},member:{},action:"",lastPage:"",brandColor:"",pageData:{},onAction:function(e,n){return{action:e,data:n}}}),Nr=["title","titleId"];function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Pr.apply(this,arguments)}function Or(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Tr(n,t){var r=n.title,i=n.titleId,o=Or(n,Nr);return e.createElement("svg",Pr({width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Er||(Er=e.createElement("path",{d:"M10.533 11.267c2.835 0 5.134-2.299 5.134-5.134C15.667 3.298 13.368 1 10.533 1 7.698 1 5.4 3.298 5.4 6.133s2.298 5.134 5.133 5.134zM1 23c0-2.529 1.004-4.953 2.792-6.741 1.788-1.788 4.213-2.792 6.741-2.792 2.529 0 4.954 1.004 6.741 2.792 1.788 1.788 2.793 4.212 2.793 6.74",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}var Ir,Dr=e.forwardRef(Tr),Rr=(t.p,["title","titleId"]);function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Lr.apply(this,arguments)}function Ur(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function zr(n,t){var r=n.title,i=n.titleId,o=Ur(n,Rr);return e.createElement("svg",Lr({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ir||(Ir=e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{stroke:"#FFF",strokeWidth:1.5,strokeLinecap:"round",d:"M12.5 2v20M2 12.5h20"}))))}var Mr,Fr,Ar=e.forwardRef(zr),Br=(t.p,["title","titleId"]);function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Hr.apply(this,arguments)}function Yr(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function $r(n,t){var r=n.title,i=n.titleId,o=Yr(n,Br);return e.createElement("svg",Hr({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Mr||(Mr=e.createElement("path",{d:"M23.5 6v14.25c0 .597-.237 1.169-.659 1.591-.422.422-.994.659-1.591.659s-1.169-.237-1.591-.659c-.422-.422-.659-.994-.659-1.591V3c0-.398-.158-.78-.44-1.06-.28-.282-.662-.44-1.06-.44h-15c-.398 0-.78.158-1.06.44C1.157 2.22 1 2.601 1 3v17.25c0 .597.237 1.169.659 1.591.422.422.994.659 1.591.659h18M4.75 15h10.5M4.75 18h6",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fr||(Fr=e.createElement("path",{d:"M14.5 5.25h-9c-.414 0-.75.336-.75.75v4.5c0 .414.336.75.75.75h9c.414 0 .75-.336.75-.75V6c0-.414-.336-.75-.75-.75z",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}var Gr,Wr,qr=e.forwardRef($r),Qr=(t.p,["title","titleId"]);function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Vr.apply(this,arguments)}function Kr(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Jr(n,t){var r=n.title,i=n.titleId,o=Kr(n,Qr);return e.createElement("svg",Vr({width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Gr||(Gr=e.createElement("path",{d:"M21.75 1.5H2.25c-.828 0-1.5.672-1.5 1.5v12c0 .828.672 1.5 1.5 1.5h19.5c.828 0 1.5-.672 1.5-1.5V3c0-.828-.672-1.5-1.5-1.5zM15.687 6.975L19.5 10.5M8.313 6.975L4.5 10.5",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Wr||(Wr=e.createElement("path",{d:"M22.88 2.014l-9.513 6.56C12.965 8.851 12.488 9 12 9s-.965-.149-1.367-.426L1.12 2.014",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}var Xr,Zr,ei=e.forwardRef(Jr),ni=(t.p,["title","titleId"]);function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ti.apply(this,arguments)}function ri(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ii(n,t){var r=n.title,i=n.titleId,o=ri(n,ni);return e.createElement("svg",ti({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Xr||(Xr=e.createElement("path",{d:"M17.903 12.016c-.332-1.665-1.491-3.032-3.031-3.654M11.037 8.4C9.252 9.163 8 10.935 8 13c0 .432.055.85.158 1.25M10.44 17.296c.748.447 1.624.704 2.56.704 1.71 0 3.22-.858 4.12-2.167M15.171 21.22c3.643-.96 6.329-4.276 6.329-8.22 0-1.084-.203-2.121-.573-3.075M18.611 6.615C17.114 5.3 15.151 4.5 13 4.5c-2.149 0-4.112.797-5.608 2.113M5.112 9.826c-.395.98-.612 2.052-.612 3.174 0 4.015 2.783 7.38 6.526 8.27",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"})),Zr||(Zr=e.createElement("path",{d:"M8.924 24.29c1.273.46 2.645.71 4.076.71 5.52 0 10.17-3.727 11.57-8.803M6.712 2.777C3.285 4.89 1 8.678 1 13c0 3.545 1.537 6.731 3.982 8.928M24.849 11.089C23.933 5.369 18.977 1 13 1c-.69 0-1.367.058-2.025.17",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"})))}var oi=e.forwardRef(ii),ai=(t.p,'\n /* Colors\n /* ----------------------------------------------------- */\n :root {\n --black: #000;\n --grey0: #1d1d1d;\n --grey1: #333;\n --grey2: #3d3d3d;\n --grey3: #474747;\n --grey4: #515151;\n --grey5: #686868;\n --grey6: #7f7f7f;\n --grey7: #979797;\n --grey8: #aeaeae;\n --grey9: #c5c5c5;\n --grey10: #dcdcdc;\n --grey11: #e1e1e1;\n --grey12: #eaeaea;\n --grey13: #f9f9f9;\n --grey14: #fbfbfb;\n --white: #fff;\n --red: #f02525;\n --yellow: #FFDC15;\n --green: #7FC724;\n }\n\n /* Globals\n /* ----------------------------------------------------- */\n html {\n font-size: 62.5%;\n height: 100%;\n }\n\n body {\n margin: 0px;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.6rem;\n height: 100%;\n line-height: 1.6em;\n font-weight: 400;\n font-style: normal;\n color: var(--grey2);\n box-sizing: border-box;\n overflow: hidden;\n }\n\n button,\n button span {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n }\n\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n h1, h2, h3, h4, h5, h6, p {\n line-height: 1.15em;\n padding: 0;\n margin: 0;\n }\n\n h1 {\n font-size: 35px;\n font-weight: 700;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 32px;\n font-weight: 700;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -0.019em;\n }\n\n p {\n font-size: 15px;\n line-height: 1.5em;\n margin-bottom: 24px;\n }\n\n strong {\n font-weight: 600;\n }\n\n a,\n .gh-portal-link {\n cursor: pointer;\n }\n\n svg {\n box-sizing: content-box;\n }\n\n input,\n textarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.5rem;\n }\n\n textarea {\n padding: 10px;\n line-height: 1.5em;\n }\n\n @media (max-width: 1440px) {\n h1 {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 28px;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n }\n\n @media (max-width: 480px) {\n h1 {\n font-size: 30px;\n letter-spacing: -0.021em;\n }\n\n h2 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n\n h3 {\n font-size: 24px;\n letter-spacing: -0.019em;\n }\n }\n'),li=function(e){if(!e)return"";return new Date(e).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})};function si(){var e=c(window.location.hash.substr(1).split("?"),1)[0];e&&/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/.test(e)&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}function ci(e){var n=e.page,t=e.siteUrl||"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),r=function(e){var n=e.page,t={signin:"#/portal/signin",signup:"#/portal/signup"};return Object.keys(t).includes(n)?t[n]:t.default}({page:n});return"".concat(t).concat(r)}function ui(){return!(navigator&&navigator.cookieEnabled)}function pi(e){var n=e.member,t=void 0===n?{}:n;if(fi({member:t})){var r=(t.subscriptions||[]).find((function(e){return["active","trialing","unpaid","past_due"].includes(e.status)}));return null!==r&&void 0!==r&&r.price||null===r||void 0===r||!r.plan||(r.price=r.plan),r}return null}function di(e){var n=e.member,t=void 0===n?{}:n;if(!t)return!1;var r=pi({member:t});if(r){var i=r.price;return i&&0===i.amount}return!(r||!t.paid)}function fi(e){var n=e.member,t=void 0===n?{}:n;return t&&t.paid}function hi(e){var n,t,r,i=e.member;return void 0!==(null===i||void 0===i||null===(n=i.subscriptions)||void 0===n||null===(t=n[0])||void 0===t||null===(r=t.tier)||void 0===r?void 0:r.expiry_at)}function gi(e){var n,t,r,i=e.member;return null!==i&&void 0!==i&&null!==(n=i.subscriptions)&&void 0!==n&&null!==(t=n[0])&&void 0!==t&&null!==(r=t.tier)&&void 0!==r&&r.expiry_at?li(i.subscriptions[0].tier.expiry_at):""}function mi(e){var n,t,r=e.subscription;return r&&r.price?N(N({},r.price),{},{stripe_price_id:r.price.id,id:r.price.price_id,price:r.price.amount/100,name:r.price.nickname,tierId:null===(n=r.tier)||void 0===n?void 0:n.id,cadence:"month"===(null===(t=r.price)||void 0===t?void 0:t.interval)?"month":"year",currency:r.price.currency.toLowerCase(),currency_symbol:Vi(r.price.currency)}):null}function vi(e){return mi({subscription:pi({member:e.member})})}function yi(e){var n,t=pi({member:e.member});return(null===t||void 0===t||null===(n=t.tier)||void 0===n?void 0:n.name)||""}function bi(e){var n=e.plans,t=e.site;return!(n=n||$i({site:void 0===t?{}:t}))||0===n.length||1===n.length&&"free"===n[0].type}function xi(e){var n=e.site,t=void 0===n?{}:n,r=e.priceId,i=Hi({site:t});if("free"===r)return!i||0===i.length||i.find((function(e){return"free"===e.type}));if(i&&i.length>0&&"monthly"===r){var o=i.find((function(e){return"Monthly"===e.name})),a=i.find((function(e){return"month"===e.interval}));return o||a}if(i&&i.length>0&&"yearly"===r){var l=i.find((function(e){return"Yearly"===e.name})),s=i.find((function(e){return"year"===e.interval}));return l||s}return i&&i.length>0&&r?i.find((function(e){return e.id===r})):null}function wi(e){var n=e.site,t=void 0===n?{}:n,r=e.pageQuery;return 0===$i({site:t,pageQuery:void 0===r?"":r}).length||t&&"invite"===t.members_signup_access}function _i(e){return!!(e.site||{}).portal_products}function ki(e){var n=e.site;return(null===n||void 0===n?void 0:n.comments_enabled)&&"off"!==(null===n||void 0===n?void 0:n.comments_enabled)}function Si(e){var n,t,r,i=e.site;if(!i)return null;if(i.tiers&&(i.products=i.tiers),i.products=null===(n=i.products)||void 0===n?void 0:n.map((function(e){return N(N({},e),{},{monthlyPrice:e.monthly_price,yearlyPrice:e.yearly_price})})),i.is_stripe_configured=!!i.paid_members_enabled,i.members_signup_access="all",i.members_enabled||(i.members_signup_access="none"),i.members_invite_only&&(i.members_signup_access="invite"),i.allow_self_signup=!1,"all"!==i.members_signup_access&&(i.allow_self_signup=!1),i.paid_members_enabled&&(i.allow_self_signup=!0),i.portal_plans.includes("free")&&(i.allow_self_signup=!0),null!==(t=i.products)&&void 0!==t&&null!==(r=t[0])&&void 0!==r&&r.visibility){i.portal_products=i.products.filter((function(e){return"none"!==e.visibility&&"paid"===e.type})).map((function(e){return e.id}));var o,a,l=i.products.find((function(e){return"free"===e.type}));if(l)if(i.portal_plans=null===(o=i.portal_plans)||void 0===o?void 0:o.filter((function(e){return"free"!==e})),"public"===(null===l||void 0===l?void 0:l.visibility))null===(a=i.portal_plans)||void 0===a||a.push("free")}return i}function Ei(e){var n=e.site||{},t=n.portal_products,r=n.products,i=void 0===r?[]:r,o=n.portal_plans,a=void 0===o?[]:o;return a.includes("monthly")||a.includes("yearly")?i.filter((function(e){return!!e})).filter((function(e){return!(!e.monthlyPrice||!e.yearlyPrice)})).filter((function(e){return!!(Object.keys(e.monthlyPrice).length>0&&Object.keys(e.yearlyPrice).length>0)})).filter((function(e){return!(t&&i.length>1)||t.includes(e.id)})).sort((function(e,n){var t,r;return(null===e||void 0===e||null===(t=e.monthlyPrice)||void 0===t?void 0:t.amount)-(null===n||void 0===n||null===(r=n.monthlyPrice)||void 0===r?void 0:r.amount)})).map((function(e){return e.monthlyPrice=N(N({},e.monthlyPrice),{},{currency_symbol:Vi(e.monthlyPrice.currency)}),e.yearlyPrice=N(N({},e.yearlyPrice),{},{currency_symbol:Vi(e.yearlyPrice.currency)}),e})):[]}function ji(e){var n=(e.site||{}).products;return(void 0===n?[]:n).find((function(e){return"free"===e.type}))}function Ci(e){var n=e.site||{},t=n.products,r=void 0===t?[]:t,i=n.portal_plans,o=void 0===i?[]:i;return o.includes("monthly")||o.includes("yearly")?r.filter((function(e){return!!e})).filter((function(e){return!(!e.monthlyPrice||!e.yearlyPrice)})).filter((function(e){return!!(Object.keys(e.monthlyPrice).length>0&&Object.keys(e.yearlyPrice).length>0)})).sort((function(e,n){var t,r;return(null===e||void 0===e||null===(t=e.monthlyPrice)||void 0===t?void 0:t.amount)-(null===n||void 0===n||null===(r=n.monthlyPrice)||void 0===r?void 0:r.amount)})).map((function(e){return e.monthlyPrice=N(N({},e.monthlyPrice),{},{currency_symbol:Vi(e.monthlyPrice.currency)}),e.yearlyPrice=N(N({},e.yearlyPrice),{},{currency_symbol:Vi(e.yearlyPrice.currency)}),e})):[]}function Ni(e){var n=e.site,t=e.pageQuery,r=Ei({site:n});return"free"===t&&Ri({site:n})?[]:(Ri({site:n})&&r.unshift({id:"free"}),r)}function Pi(e){return Ni({site:e.site}).some((function(e){return!(null===e||void 0===e||!e.trial_days)}))}function Oi(e){var n=ji({site:e.site});return(null===n||void 0===n?void 0:n.benefits)||[]}function Ti(e){return zi({site:e.site})?"Free membership":"Free"}function Ii(e){var n=ji({site:e.site});return null===n||void 0===n?void 0:n.description}function Di(e){var n=e.site,t=e.productId;return Ci({site:n}).find((function(e){return e.id===t}))}function Ri(e){var n=e.site||{},t=n.allow_self_signup,r=n.portal_plans;return t&&r.includes("free")}function Li(e){var n=(e.site||{}).newsletters,t=void 0===n?[]:n;return null===t||void 0===t||t.sort((function(e,n){return e.sort_order-n.sort_order})),t}function Ui(e){var n=(e.site||{}).newsletters;return(null===n||void 0===n?void 0:n.length)>1}function zi(e){var n=e.site;return 1===Ni({site:n}).length&&Ri({site:n})}function Mi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.sub;return!(null===n||void 0===n||!n.trial_end_at||Fi(new Date(null===n||void 0===n?void 0:n.trial_end_at)))}function Fi(e){var n=new Date;return n.setHours(0,0,0,0),e<n}function Ai(e){var n=e.site,t=e.priceId;return"free"===t?ji({site:n}):Ci({site:n}).find((function(e){var n,r;return(null===e||void 0===e||null===(n=e.monthlyPrice)||void 0===n?void 0:n.id)===t||(null===e||void 0===e||null===(r=e.yearlyPrice)||void 0===r?void 0:r.id)===t}))}function Bi(e){var n,t=e.site,r=e.priceId;if("free"===r)return ji({site:t});var i=Ci({site:t}).find((function(e){var n,t;return(null===e||void 0===e||null===(n=e.monthlyPrice)||void 0===n?void 0:n.id)===r||(null===e||void 0===e||null===(t=e.yearlyPrice)||void 0===t?void 0:t.id)===r})),o="month";return(null===i||void 0===i||null===(n=i.yearlyPrice)||void 0===n?void 0:n.id)===r&&(o="year"),{tierId:null===i||void 0===i?void 0:i.id,cadence:o}}function Hi(e){var n=e.site,t=e.products,r=void 0===t?null:t,i=n||{},o=i.portal_plans,a=void 0===o?[]:o;if(!i.is_stripe_configured)return[];var l=function(e){var n=e.site,t=void 0===n?null:n,r=e.products,i=void 0===r?null:r;return t||i?(i||Ei({site:t})).reduce((function(e,n){return n.monthlyPrice&&n.yearlyPrice&&(e.push(n.monthlyPrice),e.push(n.yearlyPrice)),e}),[]):[]}({site:n,products:r});return l.filter((function(e){return!(!e||!e.id)})).map((function(e){return N(N({},e),{},{price_id:e.id,price:e.amount/100,name:e.nickname,currency_symbol:Vi(e.currency)})})).filter((function(e){return 0!==e.amount&&"recurring"===e.type})).filter((function(e){return"month"===e.interval?a.includes("monthly"):"year"===e.interval&&a.includes("yearly")})).sort((function(e,n){return e.amount-n.amount})).sort((function(e,n){return e.currency&&n.currency?e.currency.localeCompare(n.currency,void 0,{ignorePunctuation:!0}):0}))}function Yi(e){var n=Hi({site:e.site}),t={currency:"usd",currency_symbol:"$"};return(null===n||void 0===n?void 0:n.length)>0&&(t.currency=n[0].currency,t.currency_symbol=n[0].currency_symbol),t}function $i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.site,t=void 0===n?{}:n,r=e.pageQuery,i=void 0===r?"":r,o=t||{},a=o.allow_self_signup,l=o.portal_plans,s=[];if(a&&l.includes("free")){var c=Yi({site:t});s.push(N({id:"free",type:"free",price:0,amount:0,name:Ti({site:t})},c))}var u="free"===i&&Ri({site:t});if(!u){var p=Hi({site:t});p.forEach((function(e){s.push(e)}))}return s}var Gi=function(e){var n=e.member;return n?n.email:""},Wi=function(e){var n=e.member;return n?n.name:""},qi=function(e){var n,t=e.site,r=(t||{}).members_support_address;if((null===r||void 0===r?void 0:r.indexOf("@"))<0){var i=Qi({site:t}),o=(null===i||void 0===i?void 0:i.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return"".concat(r,"@").concat(o)}if((null===r||void 0===r||null===(n=r.split("@"))||void 0===n?void 0:n.length)>1){var a=c(r.split("@"),2),l=a[0],s=a[1],u=(null===s||void 0===s?void 0:s.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return"".concat(l,"@").concat(u)}return r||""},Qi=function(e){var n=e.site;try{return new URL(n.url).origin.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}catch(t){return n.url.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}},Vi=function(e){return Intl.NumberFormat("en",{currency:e,style:"currency"}).format(0).replace(/[\d\s.]/g,"")},Ki=function(e){return isNaN(e)?0:e/100},Ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Vi(e.currency),t=Ki(e.amount);return"".concat(n).concat(t,"/").concat(e.interval)},Xi=function(e){return void 0===e||null===e?"":e.toLocaleString()},Zi=function(e){var n=e.type,t=e.status,r=e.autoHide,i=e.duration,o=void 0===i?2600:i,a=e.closeable,l=e.state,s=e.message,c=e.meta,u=void 0===c?{}:c,p=0;return l&&l.popupNotification&&(p=(l.popupNotification.count||0)+1),{type:n,status:t,autoHide:r,closeable:a,duration:o,meta:u,message:s,count:p}};function eo(e,n){return(null===e||void 0===e?void 0:e.toLowerCase())===(null===n||void 0===n?void 0:n.toLowerCase())}function no(e){var n=e.site,t=e.pageQuery,r=/^(?:(\S+?))?\/monthly$/,i=/^(?:(\S+?))?\/yearly$/;if(r.test(t||"")){var o,a=Di({site:n,productId:c(t.match(r),2)[1]});return null===a||void 0===a||null===(o=a.monthlyPrice)||void 0===o?void 0:o.id}if(i.test(t||"")){var l,s=Di({site:n,productId:c(t.match(i),2)[1]});return null===s||void 0===s||null===(l=s.yearlyPrice)||void 0===l?void 0:l.id}return null}var to=function(e){var n=e.offer;return"active"===(null===n||void 0===n?void 0:n.status)};var ro=function(e){var n=e.tiers,t=0;return n.map((function(e){var n=function(e){var n=e.tier,t=e.priceId;return null!==n&&void 0!==n&&n.monthly_price?{id:"price-".concat(t),active:!0,type:"recurring",nickname:"Monthly",currency:n.currency,amount:n.monthly_price,interval:"month"}:null}({tier:e,priceId:t}),r=function(e){var n=e.tier,t=e.priceId;return null!==n&&void 0!==n&&n.yearly_price?{id:"price-".concat(t),active:!0,type:"recurring",nickname:"Yearly",currency:n.currency,amount:n.yearly_price,interval:"year"}:null}({tier:e,priceId:t+=1});t+=1;var i=function(e){var n,t=e.tier;return null===t||void 0===t||null===(n=t.benefits)||void 0===n?void 0:n.map((function(e){return{name:e}}))}({tier:e});return N(N({},e),{},{benefits:i,monthly_price:n,yearly_price:r})}))};function io(){try{var e=localStorage.getItem("ghost-history");if(e){var n=JSON.parse(e);if(Array.isArray(n))return n}}catch(t){console.warn("[Portal] Failed to load member URL history:",t)}}var oo=function(){return"/portal/preview"===c(window.location.hash.substr(1).split("?"),1)[0]},ao=function(){return"/portal/preview/offer"===c(window.location.hash.substr(1).split("?"),1)[0]},lo={preview:function(){return oo()||ao()},offerPreview:ao,dev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.customSiteUrl;return!1},test:function(){return!1}},so=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.some((function(e){var t=lo[e];return!(!t||!t(n))}))},co=t(969),uo={"icon-1":Dr,"icon-2":Ar,"icon-3":qr,"icon-4":ei,"icon-5":oi},po=function(e){e.brandColor;var n=N(N({},e.hasText?{}:{width:"105px"}),so(["preview"])?{opacity:1}:{});return{frame:N({zIndex:"3999998",position:"fixed",bottom:"0",right:"0",width:"500px",maxWidth:"500px",height:"98px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden"},n),userIcon:{width:"34px",height:"34px",color:"#fff"},buttonIcon:{width:"24px",height:"24px",color:"#fff"},closeIcon:{width:"20px",height:"20px",color:"#fff"}}},fo=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={},r.container=co.createRef(),r.height=null,r.width=null,r}return y(t,[{key:"updateHeight",value:function(e){this.props.updateHeight&&this.props.updateHeight(e)}},{key:"updateWidth",value:function(e){this.props.updateWidth&&this.props.updateWidth(e)}},{key:"componentDidMount",value:function(){this.container&&(this.height=this.container.current&&this.container.current.offsetHeight,this.width=this.container.current&&this.container.current.offsetWidth,this.updateHeight(this.height),this.updateWidth(this.width))}},{key:"componentDidUpdate",value:function(){if(this.container){var e=this.container.current&&this.container.current.offsetHeight,n=this.container.current&&this.container.current.offsetWidth;e!==this.height&&(this.height=e,this.updateHeight(this.height)),n!==this.width&&(this.width=n,this.updateWidth(this.width))}}},{key:"renderTriggerIcon",value:function(){var e=this.context.site||{},n=e.portal_button_icon,t=void 0===n?"":n,r=e.portal_button_style,i=void 0===r?"":r,o=po({brandColor:this.context.brandColor}),a=this.context.member&&this.context.member.avatar_image;if(!i.includes("icon")&&!this.context.member)return null;if(a)return(0,mr.jsx)(jr,{gravatar:a});if(this.context.member)return(0,mr.jsx)(kr,{style:o.userIcon});if(Object.keys(uo).includes(t)){var l=uo[t];return(0,mr.jsx)(l,{style:o.buttonIcon})}return t?(0,mr.jsx)("img",{style:{width:"26px",height:"26px"},src:t,alt:""}):(this.hasText()&&(o.userIcon.width="26px",o.userIcon.height="26px"),(0,mr.jsx)(kr,{style:o.userIcon}))}},{key:"hasText",value:function(){var e=this.context.site,n=e.portal_button_signup_text,t=e.portal_button_style;return["icon-and-text","text-only"].includes(t)&&!this.context.member&&n}},{key:"renderText",value:function(){var e=this.context.site.portal_button_signup_text;return this.hasText()?(0,mr.jsxs)("span",{className:"gh-portal-triggerbtn-label",children:[" ",e," "]}):null}},{key:"onToggle",value:function(){var e=this.context,n=e.showPopup,t=e.member,r=e.site;if(n)this.context.onAction("closePopup");else{var i=wi({site:r})?"signin":"signup",o=t?"accountHome":i;this.context.onAction("openPopup",{page:o})}}},{key:"render",value:function(){var e=this,n=this.hasText(),t=this.context.member?"halo":"";return n?(0,mr.jsx)("div",{className:"gh-portal-triggerbtn-wrapper",ref:this.container,children:(0,mr.jsxs)("div",{className:"gh-portal-triggerbtn-container with-label",onClick:function(n){return e.onToggle(n)},children:[this.renderTriggerIcon(),n?this.renderText():""]})}):(0,mr.jsx)("div",{className:"gh-portal-triggerbtn-wrapper",children:(0,mr.jsx)("div",{className:"gh-portal-triggerbtn-container "+t,onClick:function(n){return e.onToggle(n)},children:this.renderTriggerIcon()})})}}]),t}(co.Component);fo.contextType=Cr;var ho=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={width:null},r}return y(t,[{key:"onWidthChange",value:function(e){this.setState({width:e})}},{key:"hasText",value:function(){var e=this.context.site,n=e.portal_button_signup_text,t=e.portal_button_style;return["icon-and-text","text-only"].includes(t)&&!this.context.member&&n}},{key:"renderFrameStyles",value:function(){var e="\n :root {\n --brandcolor: ".concat(this.context.brandColor,"\n }\n ")+'\n /* Colors\n /* ----------------------------------------------------- */\n :root {\n --black: #000;\n --grey0: #1d1d1d;\n --grey1: #333;\n --grey2: #3d3d3d;\n --grey3: #474747;\n --grey4: #515151;\n --grey5: #686868;\n --grey6: #7f7f7f;\n --grey7: #979797;\n --grey8: #aeaeae;\n --grey9: #c5c5c5;\n --grey10: #dcdcdc;\n --grey11: #e1e1e1;\n --grey12: #eaeaea;\n --grey13: #f9f9f9;\n --grey14: #fbfbfb;\n --white: #fff;\n --red: #f02525;\n --yellow: #FFDC15;\n --green: #7FC724;\n }\n\n /* Globals\n /* ----------------------------------------------------- */\n html {\n font-size: 62.5%;\n height: 100%;\n }\n\n body {\n margin: 0px;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.6rem;\n height: 100%;\n line-height: 1.6em;\n font-weight: 400;\n font-style: normal;\n color: var(--grey2);\n box-sizing: border-box;\n overflow: hidden;\n }\n\n button,\n button span {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n }\n\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n h1, h2, h3, h4, h5, h6, p {\n line-height: 1.15em;\n padding: 0;\n margin: 0;\n }\n\n h1 {\n font-size: 35px;\n font-weight: 700;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 32px;\n font-weight: 700;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -0.019em;\n }\n\n p {\n font-size: 15px;\n line-height: 1.5em;\n margin-bottom: 24px;\n }\n\n strong {\n font-weight: 600;\n }\n\n a,\n .gh-portal-link {\n cursor: pointer;\n }\n\n svg {\n box-sizing: content-box;\n }\n\n input,\n textarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.5rem;\n }\n\n textarea {\n padding: 10px;\n line-height: 1.5em;\n }\n\n @media (max-width: 1440px) {\n h1 {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 28px;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n }\n\n @media (max-width: 480px) {\n h1 {\n font-size: 30px;\n letter-spacing: -0.021em;\n }\n\n h2 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n\n h3 {\n font-size: 24px;\n letter-spacing: -0.019em;\n }\n }\n\n .gh-portal-triggerbtn-wrapper {\n display: inline-flex;\n align-items: flex-start;\n justify-content: flex-end;\n height: 100%;\n opacity: 1;\n transition: transform 0.16s linear 0s; opacity 0.08s linear 0s;\n user-select: none;\n line-height: 1;\n padding: 10px 28px 0 17px;\n }\n \n .gh-portal-triggerbtn-wrapper span {\n margin-bottom: 1px;\n }\n \n .gh-portal-triggerbtn-container {\n position: relative;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--brandcolor);\n height: 60px;\n min-width: 60px;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 8px 16px -2px;\n border-radius: 999px;\n transition: opacity 0.3s ease;\n }\n\n .gh-portal-triggerbtn-container:before {\n position: absolute;\n content: "";\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 999px;\n background: rgba(255, 255, 255, 0);\n transition: background 0.3s ease;\n }\n\n .gh-portal-triggerbtn-container:hover:before {\n background: rgba(255, 255, 255, 0.08);\n }\n\n .gh-portal-triggerbtn-container.halo:before {\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n border: 4px solid rgba(255, 255, 255, 0.15);\n }\n\n .gh-portal-triggerbtn-container.with-label {\n padding: 0 12px 0 16px;\n }\n\n .gh-portal-triggerbtn-label {\n padding: 8px;\n color: rgb(255, 255, 255);\n display: block;\n white-space: nowrap;\n max-width: 380px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .gh-portal-avatar {\n margin-bottom: 0px !important;\n width: 60px;\n height: 60px;\n }\n\n .gh-portal-avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n margin: 0 0 8px 0;\n border-radius: 999px;\n }\n\n .gh-portal-avatar img {\n position: absolute;\n display: block;\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n opacity: 1;\n max-width: unset;\n }\n';return(0,mr.jsx)("style",{dangerouslySetInnerHTML:{__html:e}})}},{key:"render",value:function(){var e=this,n=this.context.site.portal_button,t=this.context.showPopup;if(!n||so(["offerPreview"]))return null;var r=this.hasText(),i=N({},po({brandColor:this.context.brandColor,hasText:r}).frame);if(this.state.width){var o=this.state.width+2;i.width="".concat(o,"px")}return(0,mr.jsx)(yr,{className:"gh-portal-triggerbtn-iframe",style:i,title:"portal-trigger",head:this.renderFrameStyles(),children:(0,mr.jsx)(fo,{isPopupOpen:t,updateWidth:function(n){return e.onWidthChange(n)}})})}}]),t}(co.Component);ho.contextType=Cr;var go,mo,vo=["title","titleId"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},yo.apply(this,arguments)}function bo(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function xo(n,t){var r=n.title,i=n.titleId,o=bo(n,vo);return e.createElement("svg",yo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,go||(go=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px !important;}"))),mo||(mo=e.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})))}var wo,_o,ko=e.forwardRef(xo),So=(t.p,["title","titleId"]);function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Eo.apply(this,arguments)}function jo(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Co(n,t){var r=n.title,i=n.titleId,o=jo(n,So);return e.createElement("svg",Eo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,wo||(wo=e.createElement("defs",null,e.createElement("style",null,".checkmark-icon-fill{fill:currentColor;}"))),_o||(_o=e.createElement("path",{className:"checkmark-icon-fill",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})))}var No,Po,Oo=e.forwardRef(Co),To=(t.p,["title","titleId"]);function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Io.apply(this,arguments)}function Do(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Ro(n,t){var r=n.title,i=n.titleId,o=Do(n,To);return e.createElement("svg",Io({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,No||(No=e.createElement("defs",null,e.createElement("style",null,".warning-icon-fill{fill:currentColor;}"))),Po||(Po=e.createElement("path",{className:"warning-icon-fill",d:"M23.25,23.235a.75.75,0,0,0,.661-1.105l-11.25-21a.782.782,0,0,0-1.322,0l-11.25,21A.75.75,0,0,0,.75,23.235ZM12,20.485a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,20.485Zm0-12.25a1,1,0,0,1,1,1V14.7a1,1,0,0,1-2,0V9.235A1,1,0,0,1,12,8.235Z"})))}var Lo=e.forwardRef(Ro),Uo=(t.p,function(e){e.qsParams;var n=e.action,t=e.status;if(t&&["true","false"].includes(t)){var r=JSON.parse(t);return{type:n,status:r?"success":"error",duration:3e3,autoHide:!!r}}return{}}),zo=function(e){var n=e.status,t=e.billingOnly;return!t&&["success"].includes(n)?{type:"stripe:checkout",status:["success"].includes(n)?"success":"warning",duration:3e3,autoHide:!0}:t&&["billing-update-success","billing-update-cancel"].includes(n)?{type:"stripe:billing-update",status:"billing-update-success"===n?"success":"warning",duration:3e3,autoHide:!0,closeable:!0}:void 0},Mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=window.location.search||"",t=new URLSearchParams(n);e.forEach((function(e){t.delete(e)}));var r=t.toString()?"?".concat(t):"";window.history.replaceState({},"","".concat(window.location.pathname).concat(r))};function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.billingOnly,t=void 0!==n&&n,r=window.location.search;if(!r)return null;var i=new URLSearchParams(r),o=i.get("action"),a=i.get("success"),l=i.get("stripe"),s=null;return l?zo({qsParams:i,status:l,billingOnly:t}):o&&a&&!t?Uo({qsParams:i,action:o,status:a}):s}var Ao=t(969),Bo=function(e){var n=e.type,t=e.status,r=e.context,i=ci({page:"signin",siteUrl:r.site.url}),o=ci({page:"signup",siteUrl:r.site.url});if("signin"===n&&"success"===t&&r.member){var a=r.member.firstname||"";return(0,mr.jsxs)("p",{children:["Welcome back",a?", "+a:"","!",(0,mr.jsx)("br",{}),"You've successfully signed in."]})}return"signin"===n&&"error"===t?(0,mr.jsxs)("p",{children:["Could not sign in. Login link expired. ",(0,mr.jsx)("a",{href:i,target:"_parent",children:"Click here to retry"})]}):"signup"===n&&"success"===t||"signup-paid"===n&&"success"===t?(0,mr.jsxs)("p",{children:["You've successfully subscribed to ",(0,mr.jsx)("br",{}),(0,mr.jsx)("strong",{children:r.site.title})]}):"updateEmail"===n&&"success"===t?(0,mr.jsx)("p",{children:"Success! Your email is updated."}):"updateEmail"===n&&"error"===t?(0,mr.jsx)("p",{children:"Could not update email! Invalid link."}):"signup"===n&&"error"===t||"signup-paid"===n&&"error"===t?(0,mr.jsxs)("p",{children:["Signup error: Invalid link ",(0,mr.jsx)("br",{}),(0,mr.jsx)("a",{href:o,target:"_parent",children:"Click here to retry"})]}):"stripe:checkout"===n&&"success"===t?r.member?(0,mr.jsx)("p",{children:"Success! Your account is fully activated, you now have access to all content."}):(0,mr.jsx)("p",{children:"Success! Check your email for magic link to sign-in."}):"stripe:checkout"===n&&"warning"===t?r.member?(0,mr.jsx)("p",{children:"Plan upgrade was cancelled."}):(0,mr.jsx)("p",{children:"Plan checkout was cancelled."}):(0,mr.jsx)("p",{children:"success"===t?"Success":"Error"})},Ho=function(e){x(t,e);var n=E(t);function t(){var e;return m(this,t),(e=n.call(this)).state={className:""},e}return y(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"onNotificationClose",value:function(){this.props.onHideNotification()}},{key:"componentDidUpdate",value:function(){var e=this.context.showPopup;!this.state.className&&e&&this.setState({className:"slideout"})}},{key:"componentDidMount",value:function(){var e=this,n=this.props,t=n.autoHide,r=n.duration,i=void 0===r?2400:r;this.context.showPopup?this.setState({className:"slideout"}):t&&(this.timeoutId=setTimeout((function(){e.setState({className:"slideout"})}),i))}},{key:"onAnimationEnd",value:function(e){"notification-slideout"!==e.animationName&&"notification-slideout-mobile"!==e.animationName||this.props.onHideNotification(e)}},{key:"render",value:function(){var e=this,n=this.props,t=n.type,r=n.status,i=this.state.className,o=void 0===i?"":i,a=r?" ".concat(r):" neutral",l=o?" ".concat(o):"";return(0,mr.jsx)("div",{className:"gh-portal-notification-wrapper",children:(0,mr.jsxs)("div",{className:"gh-portal-notification".concat(a).concat(l),onAnimationEnd:function(n){return e.onAnimationEnd(n)},children:["error"===r?(0,mr.jsx)(Lo,{className:"gh-portal-notification-icon error",alt:""}):(0,mr.jsx)(Oo,{className:"gh-portal-notification-icon success",alt:""}),(0,mr.jsx)(Bo,{type:t,status:r,context:this.context}),(0,mr.jsx)(ko,{className:"gh-portal-notification-closeicon",alt:"Close",onClick:function(n){return e.onNotificationClose(n)}})]})})}}]),t}(Ao.Component);Ho.contextType=Cr;var Yo,$o,Go=function(e){x(t,e);var n=E(t);function t(){var e;m(this,t),e=n.call(this);var r=Fo()||{},i=r.type,o=r.status,a=r.autoHide,l=r.duration;return e.state={active:!0,type:i,status:o,autoHide:a,duration:l,className:""},e}return y(t,[{key:"onHideNotification",value:function(){var e=this.state.type,n=[];["signin","signup"].includes(e)?n.push("action","success"):["stripe:checkout"].includes(e)&&n.push("stripe"),Mo(n),this.context.onAction("refreshMemberData"),this.setState({active:!1})}},{key:"renderFrameStyles",value:function(){var e="\n :root {\n --brandcolor: ".concat(this.context.brandColor,"\n }\n ")+'\n /* Colors\n /* ----------------------------------------------------- */\n :root {\n --black: #000;\n --grey0: #1d1d1d;\n --grey1: #333;\n --grey2: #3d3d3d;\n --grey3: #474747;\n --grey4: #515151;\n --grey5: #686868;\n --grey6: #7f7f7f;\n --grey7: #979797;\n --grey8: #aeaeae;\n --grey9: #c5c5c5;\n --grey10: #dcdcdc;\n --grey11: #e1e1e1;\n --grey12: #eaeaea;\n --grey13: #f9f9f9;\n --grey14: #fbfbfb;\n --white: #fff;\n --red: #f02525;\n --yellow: #FFDC15;\n --green: #7FC724;\n }\n\n /* Globals\n /* ----------------------------------------------------- */\n html {\n font-size: 62.5%;\n height: 100%;\n }\n\n body {\n margin: 0px;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.6rem;\n height: 100%;\n line-height: 1.6em;\n font-weight: 400;\n font-style: normal;\n color: var(--grey2);\n box-sizing: border-box;\n overflow: hidden;\n }\n\n button,\n button span {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n }\n\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n h1, h2, h3, h4, h5, h6, p {\n line-height: 1.15em;\n padding: 0;\n margin: 0;\n }\n\n h1 {\n font-size: 35px;\n font-weight: 700;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 32px;\n font-weight: 700;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -0.019em;\n }\n\n p {\n font-size: 15px;\n line-height: 1.5em;\n margin-bottom: 24px;\n }\n\n strong {\n font-weight: 600;\n }\n\n a,\n .gh-portal-link {\n cursor: pointer;\n }\n\n svg {\n box-sizing: content-box;\n }\n\n input,\n textarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.5rem;\n }\n\n textarea {\n padding: 10px;\n line-height: 1.5em;\n }\n\n @media (max-width: 1440px) {\n h1 {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 28px;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n }\n\n @media (max-width: 480px) {\n h1 {\n font-size: 30px;\n letter-spacing: -0.021em;\n }\n\n h2 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n\n h3 {\n font-size: 24px;\n letter-spacing: -0.019em;\n }\n }\n\n .gh-portal-notification-wrapper {\n position: relative;\n overflow: hidden;\n height: 100%;\n width: 100%;\n }\n\n .gh-portal-notification {\n position: absolute;\n display: flex;\n align-items: center;\n top: 12px;\n right: 12px;\n width: 100%;\n padding: 14px 44px 18px 20px;\n max-width: 380px;\n min-height: 66px;\n font-size: 1.3rem;\n letter-spacing: 0.2px;\n background: rgba(33,33,33,0.95);\n backdrop-filter: blur(8px);\n color: var(--white);\n border-radius: 7px;\n box-shadow: 0 3.2px 3.6px rgba(0, 0, 0, 0.024), 0 8.8px 10px -5px rgba(0, 0, 0, 0.08);\n animation: notification-slidein 0.55s cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n .gh-portal-notification.slideout {\n animation: notification-slideout 0.4s cubic-bezier(0.550, 0.055, 0.675, 0.190);\n }\n\n .gh-portal-notification.hide {\n display: none;\n }\n\n .gh-portal-notification p {\n flex-grow: 1;\n font-size: 1.4rem;\n line-height: 1.5em;\n text-align: left;\n margin: 0;\n padding: 0 0 0 40px;\n color: var(--grey13);\n }\n\n .gh-portal-notification p strong {\n color: var(--white);\n }\n\n .gh-portal-notification a {\n color: var(--white);\n text-decoration: underline;\n transition: all 0.2s ease-in-out;\n outline: none;\n }\n\n .gh-portal-notification a:hover {\n opacity: 0.8;\n }\n\n .gh-portal-notification-icon {\n position: absolute;\n top: calc(50% - 14px);\n left: 17px;\n width: 28px;\n height: 28px;\n }\n\n .gh-portal-notification-icon.success {\n color: var(--green);\n }\n\n .gh-portal-notification-icon.error {\n color: #FF2828;\n }\n\n .gh-portal-notification-closeicon {\n position: absolute;\n top: 5px;\n bottom: 0;\n right: 5px;\n color: var(--white);\n cursor: pointer;\n width: 12px;\n height: 12px;\n padding: 10px;\n transition: all 0.2s ease-in-out forwards;\n opacity: 0.8;\n }\n\n .gh-portal-notification-closeicon:hover {\n opacity: 1.0;\n } \n\n @keyframes notification-slidein {\n 0% { transform: translateX(380px); }\n 60% { transform: translateX(-6px); }\n 100% { transform: translateX(0); }\n }\n\n @keyframes notification-slideout {\n 0% { transform: translateX(0); }\n 30% { transform: translateX(-10px); }\n 100% { transform: translateX(380px); }\n }\n\n @keyframes notification-slidein-mobile {\n 0% { transform: translateY(-150px); }\n 50% { transform: translateY(6px); }\n 100% { transform: translateY(0); }\n }\n\n @keyframes notification-slideout-mobile {\n 0% { transform: translateY(0); }\n 35% { transform: translateY(6px); }\n 100% { transform: translateY(-150px); }\n }\n\n @media (max-width: 414px) {\n .gh-portal-notification {\n left: 12px;\n max-width: calc(100% - 24px);\n animation-name: notification-slidein-mobile;\n }\n\n .gh-portal-notification.slideout {\n animation-duration: 0.55s;\n animation-name: notification-slideout-mobile;\n }\n }\n';return(0,mr.jsx)("style",{dangerouslySetInnerHTML:{__html:e}})}},{key:"render",value:function(){var e=this,n=N({},(this.context.brandColor,{frame:{zIndex:"4000000",position:"fixed",top:"0",right:"0",maxWidth:"415px",width:"100%",height:"120px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden"}}).frame);if(!this.state.active)return null;var t=this.state,r=t.type,i=t.status,o=t.autoHide,a=t.duration;return r&&i?(0,mr.jsx)(yr,{style:n,title:"portal-notification",head:this.renderFrameStyles(),className:"gh-portal-notification-iframe",children:(0,mr.jsx)(Ho,{type:r,status:i,autoHide:o,duration:a,onHideNotification:function(n){return e.onHideNotification(n)}})}):null}}]),t}(Ao.Component);Go.contextType=Cr;var Wo=["title","titleId"];function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},qo.apply(this,arguments)}function Qo(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Vo(n,t){var r=n.title,i=n.titleId,o=Qo(n,Wo);return e.createElement("svg",qo({id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40",enableBackground:"new 0 0 40 40",xmlSpace:"preserve",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Yo||(Yo=e.createElement("path",{opacity:.2,fill:"#000",d:"M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946 s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634 c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"})),$o||($o=e.createElement("path",{fill:"#000",d:"M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0 C22.32,8.481,24.301,9.057,26.013,10.047z"},e.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 20 20",to:"360 20 20",dur:"0.5s",repeatCount:"indefinite"}))))}var Ko=e.forwardRef(Vo);t.p;var Jo,Xo,Zo=function(e){var n=e.label,t=(e.type,e.onClick),r=e.disabled,i=void 0!==r&&r,o=e.retry,a=void 0!==o&&o,l=e.brandColor,s=e.isRunning,c=e.isPrimary,u=void 0===c||c,p=e.isDestructive,d=void 0!==p&&p,f=e.classes,h=void 0===f?"":f,g=e.style,m=void 0===g?{}:g,v=e.tabindex,y=void 0===v?void 0:v,b=function(e){var n=e.brandColor,t=(e.retry,e.disabled),r=e.style,i=void 0===r?{}:r,o=e.isPrimary,a=n||"#3eb0ef",l="1.0",s="auto";return t&&(l="0.5",s="none"),{button:N(N(N({},o?{color:"#fff"}:{}),o?{backgroundColor:a}:{}),{},{opacity:l,pointerEvents:s},i||{})}}({disabled:i,retry:a,brandColor:l,style:m,isPrimary:u}),x="gh-portal-btn";u&&(x+=" gh-portal-btn-main gh-portal-btn-primary"),d&&(x+=" gh-portal-btn-destructive"),h&&(x+=" "+h),ui()&&(i=!0);var w=u?"gh-portal-loadingicon":"gh-portal-loadingicon dark";return(0,mr.jsx)("button",{className:x,style:b.button,onClick:function(e){return t(e)},disabled:i,type:"submit",tabIndex:y,children:s?(0,mr.jsx)(Ko,{className:w}):n})},ea=["title","titleId"];function na(){return na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},na.apply(this,arguments)}function ta(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ra(n,t){var r=n.title,i=n.titleId,o=ta(n,ea);return e.createElement("svg",na({id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Jo||(Jo=e.createElement("defs",null,e.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;fill-rule:evenodd;}"))),Xo||(Xo=e.createElement("path",{className:"cls-1",d:"M16.25,23.25,5.53,12.53a.749.749,0,0,1,0-1.06L16.25.75"})))}var ia=e.forwardRef(ra);t.p;var oa=function(e){var n=e.label,t=void 0===n?"Back":n,r=(e.brandColor,e.hidden),i=void 0!==r&&r,o=e.onClick;return i?null:(0,mr.jsxs)("button",{className:"gh-portal-btn gh-portal-btn-back",onClick:function(e){return o(e)},children:[(0,mr.jsx)(ia,{})," ",t]})};var aa,la,sa,ca=function(n){var t=n.id,r=n.label,i=void 0===r?"":r,o=n.onToggle,a=n.checked,l=void 0!==a&&a,s=(0,e.useContext)(Cr).action,u=c((0,e.useState)(l),2),p=u[0],d=u[1],f=["updateNewsletter:failed","updateNewsletter:success"].includes(s);return(0,e.useEffect)((function(){d(l)}),[l,f]),(0,mr.jsx)("div",{className:"gh-portal-for-switch",children:(0,mr.jsxs)("label",{className:"switch",htmlFor:t,children:[(0,mr.jsx)("input",{type:"checkbox",checked:p,id:t,onChange:function(){},"aria-label":i}),(0,mr.jsx)("span",{className:"input-toggle-component",onClick:function(e){d(!p),o(e,!p)},"data-testid":"switch-input"})]})})},ua=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){var e=this;return(0,mr.jsx)("div",{className:"gh-portal-closeicon-container",children:(0,mr.jsx)(ko,{className:"gh-portal-closeicon",alt:"Close",onClick:function(){return e.context.onAction("closePopup")}})})}}]),t}(e.Component);ua.contextType=Cr;var pa=["title","titleId"];function da(){return da=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},da.apply(this,arguments)}function fa(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ha(n,t){var r=n.title,i=n.titleId,o=fa(n,pa);return e.createElement("svg",da({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,aa||(aa=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}"))),la||(la=e.createElement("path",{d:"M22.939 2.56V8.817C22.9391 9.61244 22.6232 10.3754 22.061 10.938L10.5 22.5C10.2187 22.7812 9.83721 22.9392 9.43946 22.9392C9.04172 22.9392 8.66026 22.7812 8.37896 22.5L1.49997 15.62C1.21876 15.3387 1.06079 14.9572 1.06079 14.5595C1.06079 14.1618 1.21876 13.7803 1.49997 13.499L13.061 1.938C13.6236 1.37572 14.3865 1.0599 15.182 1.06H21.439C21.8368 1.06 22.2183 1.21803 22.4996 1.49934C22.7809 1.78064 22.939 2.16217 22.939 2.56V2.56Z",className:"a"})),sa||(sa=e.createElement("path",{d:"M17.689 7.81C16.8605 7.81 16.189 7.13842 16.189 6.31C16.189 5.48157 16.8605 4.81 17.689 4.81C18.5174 4.81 19.189 5.48157 19.189 6.31C19.189 7.13842 18.5174 7.81 17.689 7.81Z",className:"a"})))}var ga=e.forwardRef(ha),ma=(t.p,t(969)),va=function(e){var n=e.avatar,t=e.brandColor;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)(jr,{gravatar:n,style:{userIcon:{color:t,width:"56px",height:"56px",padding:"2px"}}})})},ya=function(e){e.onClose;var n=e.handleSignout,t=e.supportAddress,r="mailto:".concat(void 0===t?"":t);return(0,mr.jsxs)("footer",{className:"gh-portal-account-footer",children:[(0,mr.jsx)("ul",{className:"gh-portal-account-footermenu",children:(0,mr.jsx)("li",{children:(0,mr.jsx)("button",{className:"gh-portal-btn",name:"logout","aria-label":"logout",onClick:function(e){return n(e)},children:"Sign out"})})}),(0,mr.jsx)("div",{className:"gh-portal-account-footerright",children:(0,mr.jsx)("ul",{className:"gh-portal-account-footermenu",children:(0,mr.jsx)("li",{children:(0,mr.jsx)("a",{className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:function(){r&&window.open(r)},children:"Contact support"})})})})]})},ba=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.brandColor,i=t.avatar_image;return(0,mr.jsxs)("header",{className:"gh-portal-account-header",children:[(0,mr.jsx)(va,{avatar:i,brandColor:r}),(0,mr.jsx)("h2",{className:"gh-portal-main-title",children:"Your account"})]})};function xa(e){var n=e.offer,t=e.price,r=e.subscriptionStartDate,i="";if(n){var o=n.duration,a="";if("forever"===o)a="Forever";else if("repeating"===o){var l=n.duration_in_months||0,s=new Date(r),c=new Date(s.setMonth(s.getMonth()+l));a="Ends ".concat(li(c))}i="".concat(function(e){var n,t=e.offer,r=e.price,i=e.useFormatted,o=void 0!==i&&i,a=r.amount;return n="fixed"===t.type&&eo(t.currency,r.currency)?(n=(a-t.amount)/100)>0?n:0:"percent"===t.type?(a-a*t.amount/100)/100:a/100,o?Intl.NumberFormat("en",{currency:null===r||void 0===r?void 0:r.currency,style:"currency"}).format(n):n}({offer:n,price:t,useFormatted:!0}),"/").concat(t.interval).concat(a?" \u2014 ".concat(a):"")}return i}function wa(e){var n=e.subscription;e.priceLabel;if(Mi({sub:n})){var t=li(n.trial_end_at);return(0,mr.jsx)("p",{className:"gh-portal-account-discountcontainer",children:(0,mr.jsx)("div",{children:(0,mr.jsxs)("span",{children:["Free Trial \u2013 Ends ",t]})})})}return null}var _a=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.site,i=n.onAction,o=function(e){var n=e.price,r=e.isComplimentary,i=e.subscription,o=i||{},a=o.offer,l=o.start_date,s="";if(n){var c=n.amount,u=void 0===c?0:c,p=n.currency,d=n.interval;s="".concat(Intl.NumberFormat("en",{currency:p,style:"currency"}).format(u/100),"/").concat(d)}var f=xa({price:n,offer:a,subscriptionStartDate:l}),h=gi({member:t});r&&(s=h?"Complimentary - Expires ".concat(h):s?"Complimentary (".concat(s,")"):"Complimentary");var g="";f&&(g="gh-portal-account-old-price");var m=function(){return f?(0,mr.jsxs)("p",{className:"gh-portal-account-discountcontainer",children:[(0,mr.jsx)(ga,{className:"gh-portal-account-tagicon"}),(0,mr.jsx)("span",{children:f})]}):null},v=Mi({sub:i});return v&&(g="gh-portal-account-old-price"),v?(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("p",{className:g,children:s}),(0,mr.jsx)(wa,{subscription:i})]}):(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("p",{className:g,children:s}),(0,mr.jsx)(m,{})]})},a=function(e){var n=e.isComplimentary;return!hi({member:t})&&n||bi({site:r})?null:(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){r.is_stripe_configured&&i("switchPage",{page:"accountPlan",lastPage:"accountHome"})},children:"Change"})},l=function(e){var n=e.defaultCardLast4;if(n){var t="**** **** **** ".concat(n);return(0,mr.jsx)("p",{children:t})}return null},s=function(n){var r=n.defaultCardLast4,o=n.isComplimentary,a="editBilling:running"===(0,e.useContext)(Cr).action?(0,mr.jsx)(Ko,{className:"gh-portal-billing-button-loader"}):"Update";return o?null:(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Billing info"}),(0,mr.jsx)(l,{defaultCardLast4:r})]}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){return function(){var e=pi({member:t});i("editBilling",{subscriptionId:e.id})}()},children:a})]})},c=pi({member:t}),u=di({member:t});if(c||u){var p=c||{},d=p.price,f=p.default_payment_card_last4,h="Plan";return _i({site:r})&&yi({member:t})&&(h=yi({member:t})),(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:h}),(0,mr.jsx)(o,{price:d,isComplimentary:u,subscription:c})]}),(0,mr.jsx)(a,{isComplimentary:u})]}),(0,mr.jsx)(s,{isComplimentary:u,defaultCardLast4:f})]})}return null},ka=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.onAction,i=t.name,o=t.email;return(0,mr.jsx)("div",{children:(0,mr.jsxs)("div",{className:"gh-portal-list",children:[(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:i||"Account"}),(0,mr.jsx)("p",{children:o})]}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){r("switchPage",{page:"accountProfile",lastPage:"accountHome"})},children:"Edit"})]}),(0,mr.jsx)(_a,{}),(0,mr.jsx)(Ea,{}),(0,mr.jsx)(Sa,{})]})})};function Sa(){var n=(0,e.useContext)(Cr),t=n.member,r=n.site,i=n.onAction,o=t.newsletters;if(Ui({site:r})||ki({site:r}))return null;var a=!(null===o||void 0===o||!o.length),l=a?"Subscribed":"Unsubscribed";return(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Email newsletter"}),(0,mr.jsx)("p",{children:l})]}),(0,mr.jsx)("div",{children:(0,mr.jsx)(ca,{id:"default-newsletter-toggle",onToggle:function(e){!function(e,n){var o;e.preventDefault();var a=Li({site:r}),l=null!==t&&void 0!==t&&null!==(o=t.newsletters)&&void 0!==o&&o.length?[]:a;i("updateNewsletterPreference",{newsletters:l})}(e)},checked:a})})]})}function Ea(){var n=(0,e.useContext)(Cr),t=n.site,r=n.onAction;return Ui({site:t})||ki({site:t})?(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Emails"}),(0,mr.jsx)("p",{children:"Update your preferences"})]}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){r("switchPage",{page:"accountEmail",lastPage:"accountHome"})},children:"Manage"})]}):null}var ja=function(){var n=(0,e.useContext)(Cr),t=n.site,r=n.action,i=n.brandColor,o=n.onAction;if(!t.is_stripe_configured||bi({site:t}))return null;var a=["checkoutPlan:running"].includes(r);return(0,mr.jsx)(Zo,{isRunning:a,label:"View plans",onClick:function(){o("switchPage",{page:"accountPlan",lastPage:"accountHome"})},brandColor:i,style:{width:"100%"}})},Ca=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.site;if(!r.is_stripe_configured||bi({site:r}))return null;var i=pi({member:t}),o=di({member:t});if(o&&!i)return null;if(i){var a=null===i||void 0===i?void 0:i.current_period_end;if(o&&gi({member:t})){var l=gi({member:t}),s=li(l);return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",s]})})}if(null!==i&&void 0!==i&&i.cancel_at_period_end)return null;if(Mi({sub:i})){var c=li(i.trial_end_at);return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will start on ",c]})})}return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will renew on ",li(a)]})})}return(0,mr.jsxs)("div",{className:"gh-portal-section",children:[(0,mr.jsx)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:"You currently have a free membership, upgrade to a paid subscription for full access."}),(0,mr.jsx)(ja,{})]})},Na=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.onAction,i=n.action,o=n.brandColor,a=pi({member:t});if(!a)return null;if(!a.cancel_at_period_end)return null;var l=a.cancel_at_period_end?"Continue subscription":"Cancel subscription",s=["cancelSubscription:running"].includes(i),c=!!s,u=!!a.cancel_at_period_end,p=function(){if(!a.cancel_at_period_end)return null;var e=a.current_period_end;return(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",li(e)]})};return(0,mr.jsxs)("div",{className:"gh-portal-cancelcontinue-container",children:[(0,mr.jsx)(p,{}),(0,mr.jsx)(Zo,{onClick:function(e){r("continueSubscription",{subscriptionId:a.id})},isRunning:s,disabled:c,isPrimary:u,brandColor:o,label:l,style:{width:"100%"}})]})},Pa=function(){return(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-account-main",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)(ba,{}),(0,mr.jsxs)("section",{className:"gh-portal-account-data",children:[(0,mr.jsx)(Ca,{}),(0,mr.jsx)(Na,{}),(0,mr.jsx)(ka,{})]})]})},Oa=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"componentDidMount",value:function(){this.context.member||this.context.onAction("switchPage",{page:"signin"})}},{key:"handleSignout",value:function(e){e.preventDefault(),this.context.onAction("signout")}},{key:"render",value:function(){var e=this,n=this.context,t=n.member,r=n.site,i=qi({site:r});return t?(0,mr.jsxs)("div",{className:"gh-portal-account-wrapper",children:[(0,mr.jsx)(Pa,{}),(0,mr.jsx)(ya,{onClose:function(){return e.context.onAction("closePopup")},handleSignout:function(n){return e.handleSignout(n)},supportAddress:i})]}):null}}]),t}(ma.Component);Oa.contextType=Cr;var Ta,Ia=t(912),Da=t.n(Ia),Ra=["title","titleId"];function La(){return La=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},La.apply(this,arguments)}function Ua(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function za(n,t){var r=n.title,i=n.titleId,o=Ua(n,Ra);return e.createElement("svg",La({width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ta||(Ta=e.createElement("path",{d:"M1 6.89286L6.10714 12L13.9643 1",stroke:"#222222",strokeWidth:2})))}var Ma=e.forwardRef(za),Fa=(t.p,e.createContext({selectedInterval:"month",selectedProduct:"free",selectedPlan:null,setSelectedProduct:null}));function Aa(e){var n=e.product;return n.benefits&&n.benefits.length?n.benefits.map((function(e,n){var t=(null===e||void 0===e?void 0:e.id)||"benefit-".concat(n);return(0,mr.jsxs)("div",{className:"gh-portal-product-benefit",children:[(0,mr.jsx)(Ma,{className:"gh-portal-benefit-checkmark",alt:""}),(0,mr.jsx)("div",{className:"gh-portal-benefit-title",children:e.name})]},t)})):null}function Ba(e){var n=e.product,t=e.hide,r=void 0!==t&&t;if(!n.benefits||!n.benefits.length||r)return null;return(0,mr.jsx)("div",{className:"gh-portal-product-benefits",children:(0,mr.jsx)(Aa,{product:n})})}function Ha(n){var t=n.price,r=(0,e.useContext)(Cr).site.portal_plans;return r.includes("monthly")&&r.includes("yearly")?(0,mr.jsx)("div",{className:"gh-portal-product-alternative-price",children:Ji(t)}):(0,mr.jsx)("div",{className:"gh-portal-product-alternative-price"})}function Ya(n){var t=n.trialDays,r=n.discount,i=n.selectedInterval;return Pi({site:(0,e.useContext)(Cr).site})?t?(0,mr.jsxs)("span",{className:"gh-portal-discount-label",children:[t," days free"]}):null:"year"===i?(0,mr.jsxs)("span",{className:"gh-portal-discount-label",children:[r,"% discount"]}):null}function $a(n){var t=n.product,r=(0,e.useContext)(Fa).selectedInterval,i=(0,e.useContext)(Cr).site,o=t.monthlyPrice,a=t.yearlyPrice,l=t.trial_days,s="month"===r?o:a,c="month"===r?a:o;if(!o||!a)return null;var u=Da()(t.monthlyPrice.amount,t.yearlyPrice.amount),p=Vi(s.currency);return Pi({site:i})?(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"gh-portal-product-card-pricecontainer",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-price-trial",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),(0,mr.jsx)("span",{className:"amount",children:Xi(Ki(s.amount))}),(0,mr.jsxs)("span",{className:"billing-period",children:["/",s.interval]})]}),(0,mr.jsx)(Ya,{trialDays:l,discount:u,selectedInterval:r})]}),"year"===r?(0,mr.jsx)(Va,{discount:u,trialDays:l}):"",(0,mr.jsx)(Ha,{price:c})]})}):(0,mr.jsxs)("div",{className:"gh-portal-product-card-pricecontainer",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-price-trial",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),(0,mr.jsx)("span",{className:"amount",children:Xi(Ki(s.amount))}),(0,mr.jsxs)("span",{className:"billing-period",children:["/",s.interval]})]}),"year"===r?(0,mr.jsx)(Va,{discount:u}):""]}),(0,mr.jsx)(Ha,{price:c})]})}function Ga(n){var t=n.products,r=n.handleChooseSignup,i=(0,e.useContext)(Cr),o=i.site,a=i.action,l=(0,e.useContext)(Fa),s=l.selectedProduct,c=l.setSelectedProduct,u="free"===s?"gh-portal-product-card free checked":"gh-portal-product-card free",p=ji({site:o}),d=Ii({site:o}),f="signup:running"===a;ui()&&(f=!0);var h="$";h=t&&t[1]?Vi(t[1].monthlyPrice.currency):"$";var g=zi({site:o}),m=Oi({site:o});if(g){if(!d&&!m.length)return null;u+=" only-free"}return d||m.length||(d="Free preview"),(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:u,onClick:function(e){e.stopPropagation(),c("free")},children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsx)("h4",{className:"gh-portal-product-name",children:Ti({site:o})}),g?"":(0,mr.jsx)("div",{className:"gh-portal-product-card-pricecontainer free-trial-disabled",children:(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign"+(h.length>1?" long":""),children:h}),(0,mr.jsx)("span",{className:"amount",children:"0"})]})})]}),(0,mr.jsxs)("div",{className:"gh-portal-product-card-details",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[d?(0,mr.jsx)("div",{className:"gh-portal-product-description",children:d}):"",(0,mr.jsx)(Ba,{product:p})]}),g?"":(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("button",{className:"gh-portal-btn",disabled:f,onClick:function(e){r(e,"free")},children:"free"===s&&f?(0,mr.jsx)(Ko,{className:"gh-portal-loadingicon"}):"Choose"})})]})]})})}function Wa(e){var n=e.selectedProduct,t=e.product,r=e.disabled,i=e.noOfProducts,o=e.trialDays;return n===t.id&&r?(0,mr.jsx)(Ko,{className:"gh-portal-loadingicon"}):o>0?"Start "+o+"-day free trial":i>1?"Choose":"Continue"}function qa(n){var t,r=n.product,i=n.products,o=n.selectedInterval,a=n.handleChooseSignup,l=(0,e.useContext)(Fa),s=l.selectedProduct,c=l.setSelectedProduct,u=(0,e.useContext)(Cr).action,p=r.trial_days,d=s===r.id?"gh-portal-product-card checked":"gh-portal-product-card",f=null===i||void 0===i||null===(t=i.filter((function(e){return"paid"===e.type})))||void 0===t?void 0:t.length,h=!!["signup:running","checkoutPlan:running"].includes(u);ui()&&(h=!0);var g=r.description;return r.benefits&&r.benefits.length||g||(g="Full access"),(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:d,onClick:function(e){e.stopPropagation(),c(r.id)},children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsx)("h4",{className:"gh-portal-product-name",children:r.name}),(0,mr.jsx)($a,{product:r})]}),(0,mr.jsxs)("div",{className:"gh-portal-product-card-details",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[(0,mr.jsx)("div",{className:"gh-portal-product-description",children:g}),(0,mr.jsx)(Ba,{product:r})]}),(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("button",{disabled:h,className:"gh-portal-btn",onClick:function(e){var n=Ja({products:i,selectedInterval:o,selectedProduct:r.id});a(e,n.id)},children:(0,mr.jsx)(Wa,{selectedProduct:s,product:r,disabled:h,noOfProducts:f,trialDays:p})})})]})]},r.id)})}function Qa(e){var n=e.products,t=e.selectedInterval,r=e.handleChooseSignup;return n.map((function(e){return"free"===e.id?(0,mr.jsx)(Ga,{products:n,handleChooseSignup:r},e.id):(0,mr.jsx)(qa,{products:n,product:e,selectedInterval:t,handleChooseSignup:r},e.id)}))}function Va(n){var t=n.discount,r=(n.trialDays,(0,e.useContext)(Cr).site),i=r.portal_plans;return 0!==t&&i.includes("monthly")?Pi({site:r})?(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("span",{className:"gh-portal-discount-label-trial",children:[t,"% discount"]})}):(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("span",{className:"gh-portal-discount-label",children:[t,"% discount"]})}):null}function Ka(n){n.products;var t=n.selectedInterval,r=n.setSelectedInterval,i=(0,e.useContext)(Cr).site.portal_plans;return i.includes("monthly")&&i.includes("yearly")?(0,mr.jsx)("div",{className:"gh-portal-logged-out-form-container",children:(0,mr.jsxs)("div",{className:"gh-portal-products-pricetoggle"+("month"===t?" left":""),children:[(0,mr.jsx)("button",{className:"gh-portal-btn"+("month"===t?" active":""),onClick:function(e){r("month")},children:"Monthly"}),(0,mr.jsx)("button",{className:"gh-portal-btn"+("year"===t?" active":""),onClick:function(e){r("year")},children:"Yearly"})]})}):null}function Ja(e){var n=e.products,t=e.selectedProduct,r=e.selectedInterval,i=null;if("free"===t)i={id:"free"};else{var o,a,l=n.find((function(e){return e.id===t}));l||(l=n.find((function(e){return"paid"===e.type}))),i="month"===r?null===(o=l)||void 0===o?void 0:o.monthlyPrice:null===(a=l)||void 0===a?void 0:a.yearlyPrice}return i}function Xa(e){var n=e.portalPlans,t=e.selectedInterval,r=void 0===t?"year":t;return"month"===r&&n.includes("monthly")?"month":"year"===r&&n.includes("yearly")?"year":n.includes("monthly")?"month":n.includes("yearly")?"year":void 0}function Za(n){var t,r=n.onPlanSelect,i=n.selectedPlan,o=n.products,a=n.type,l=void 0===a?null:a,s=(0,e.useContext)(Cr),u=s.site,p=s.member,d=u.portal_plans,f=vi({member:p}),h=Ai({site:u,priceId:f.id}),g=Xa({portalPlans:d,selectedInterval:f.interval}),m=(null===h||void 0===h?void 0:h.id)||(null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.id),v=c((0,e.useState)(g),2),y=v[0],b=v[1],x=c((0,e.useState)(m),2),w=x[0],_=x[1],k=Xa({portalPlans:d,selectedInterval:y});if((0,e.useEffect)((function(){_(m)}),[m]),!d.includes("monthly")&&!d.includes("yearly"))return null;if(0===o.length)return null;var S="gh-portal-products";return"upgrade"===l&&(S+=" gh-portal-upgrade-product"),"changePlan"===l&&(S+=" gh-portal-upgrade-product gh-portal-change-plan"),(0,mr.jsx)(Fa.Provider,{value:{selectedInterval:k,selectedProduct:w,selectedPlan:i,setSelectedProduct:_},children:(0,mr.jsxs)("section",{className:S,children:[(0,mr.jsx)(Ka,{selectedInterval:k,setSelectedInterval:b}),(0,mr.jsx)("div",{className:"gh-portal-products-grid",children:(0,mr.jsx)(tl,{products:o,onPlanSelect:r})})]})})}function el(e){var n=e.product;e.selectedPrice,e.activePrice;return null!==n&&void 0!==n&&n.description?(0,mr.jsx)("div",{className:"gh-portal-product-description",children:n.description}):null}function nl(n){var t=n.product,r=n.onPlanSelect,i=(0,e.useContext)(Cr),o=i.member,a=i.site,l=(0,e.useContext)(Fa),s=l.selectedProduct,c=l.setSelectedProduct,u=l.selectedInterval,p=s===t.id?"gh-portal-product-card checked":"gh-portal-product-card",d=t.monthlyPrice,f=t.yearlyPrice,h=vi({member:o}),g="month"===u?d:f,m=function(e){var n=e.priceId,t=e.site,r=vi({member:e.member}),i=Bi({site:t,priceId:n}),o=i.tierId,a=i.cadence;return(null===r||void 0===r?void 0:r.tierId)===o&&(null===r||void 0===r?void 0:r.cadence)===a}({member:o,site:a,priceId:g.id});return(0,mr.jsxs)("div",{className:p+(m?" disabled":""),onClick:function(e){e.stopPropagation(),c(t.id)},children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsx)("h4",{className:"gh-portal-product-name",children:t.name}),(0,mr.jsx)($a,{product:t})]}),(0,mr.jsxs)("div",{className:"gh-portal-product-card-details",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[t.description?(0,mr.jsx)(el,{product:t,selectedPrice:g,activePrice:h}):"",(0,mr.jsx)(Ba,{product:t})]}),m?(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("span",{className:"gh-portal-current-plan",children:(0,mr.jsx)("span",{children:"Current plan"})})}):(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("button",{className:"gh-portal-btn",onClick:function(){r(null,null===g||void 0===g?void 0:g.id)},children:"Choose"})})]})]},t.id)}function tl(e){var n=e.products,t=e.onPlanSelect;return n.map((function(e){return"free"===e.id?null:(0,mr.jsx)(nl,{product:e,onPlanSelect:t},e.id)}))}var rl=function(n){var t,r,i=n.onPlanSelect,o=n.products,a=n.type,l=void 0===a?null:a,s=n.handleChooseSignup,u=(0,e.useContext)(Cr).site,p=u.portal_plans,d=Xa({portalPlans:p}),f=o.length>0?o[0].id:"free",h=c((0,e.useState)(d),2),g=h[0],m=h[1],v=c((0,e.useState)(f),2),y=v[0],b=v[1],x=Ja({products:o,selectedInterval:g,selectedProduct:y}),w=Xa({portalPlans:p,selectedInterval:g});if((0,e.useEffect)((function(){b(f)}),[f]),(0,e.useEffect)((function(){i(null,x.id)}),[x.id,i]),!p.includes("monthly")&&!p.includes("yearly"))return null;if(0===o.length)return null;var _="gh-portal-products";"upgrade"===l&&(_+=" gh-portal-upgrade-product");var k=(null===(t=o.find((function(e){return e.id===y})))||void 0===t?void 0:t.id)||(null===(r=o.find((function(e){return"paid"===e.type})))||void 0===r?void 0:r.id);return(0,mr.jsx)(Fa.Provider,{value:{selectedInterval:w,selectedProduct:k,setSelectedProduct:b},children:(0,mr.jsxs)("section",{className:_,children:[zi({site:u})?"":(0,mr.jsx)(Ka,{products:o,selectedInterval:w,setSelectedInterval:m}),(0,mr.jsx)("div",{className:"gh-portal-products-grid",children:(0,mr.jsx)(Qa,{products:o,selectedInterval:w,handleChooseSignup:s})})]})})};function il(e){var n=e.products,t=e.selectedPlan,r=e.onPlanSelect,i=e.onPlanCheckout,o=e.changePlan,a=void 0!==o&&o;return ui()&&(r=function(){}),a?(0,mr.jsx)("section",{className:"gh-portal-plans",children:(0,mr.jsx)("div",{children:(0,mr.jsx)(Za,{type:"changePlan",products:n,selectedPlan:t,onPlanSelect:r})})}):(0,mr.jsx)("section",{className:"gh-portal-plans",children:(0,mr.jsx)("div",{children:(0,mr.jsx)(rl,{type:"upgrade",products:n,onPlanSelect:r,handleChooseSignup:function(){i.apply(void 0,arguments)}})})})}var ol=t(969);var al=function(n){n.onBack;var t=n.showConfirmation,r=n.confirmationType,i=fi({member:(0,e.useContext)(Cr).member})?"Change plan":"Choose a plan";return t&&(i=function(e){var n=e.confirmationType;return"changePlan"===n?"Confirm subscription":"cancel"===n?"Cancel subscription":"subscribe"===n?"Subscribe":void 0}({confirmationType:r})),(0,mr.jsx)("header",{className:"gh-portal-detail-header",children:(0,mr.jsx)("h3",{className:"gh-portal-main-title",children:i})})},ll=function(n){var t=n.member,r=n.onCancelSubscription,i=n.action,o=n.brandColor,a=(0,e.useContext)(Cr).site;if(!t.paid)return null;var l=pi({member:t});if(!l)return null;if(l.cancel_at_period_end)return null;var s=["cancelSubscription:running"].includes(i),c=!!s,u=!!l.cancel_at_period_end,p=!l.cancelAtPeriodEnd;return(0,mr.jsx)("div",{className:"gh-portal-expire-container",children:(0,mr.jsx)(Zo,{onClick:function(e){r({subscriptionId:l.id,cancelAtPeriodEnd:!0})},isRunning:s,disabled:c,isPrimary:u,isDestructive:p,classes:_i({site:a})?"gh-portal-btn-text mt2 mb4":"",brandColor:o,label:"Cancel subscription",style:{width:"100%"}})})},sl=function(n){var t=n.plan,r=n.type,i=n.onConfirm,o=(0,e.useContext)(Cr),a=o.site,l=o.action,s=o.member,u=o.brandColor,p=c((0,e.useState)(""),2),d=p[0],f=p[1],h=pi({member:s}),g=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(l),m="Confirm",v=li(h.current_period_end);vi({member:s}).id!==t.id&&(v="today");var y=Xi(t.price),b="".concat(t.currency_symbol).concat(y,"/").concat(t.interval," \u2013 Starting ").concat(v),x=Ai({site:a,priceId:null===t||void 0===t?void 0:t.id}),w=_i({site:a})?null===x||void 0===x?void 0:x.name:"Price";return"changePlan"===r?(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container",children:[(0,mr.jsxs)("div",{className:"gh-portal-list mb6",children:[(0,mr.jsx)("section",{children:(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Account"}),(0,mr.jsx)("p",{children:s.email})]})}),(0,mr.jsx)("section",{children:(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:w}),(0,mr.jsx)("p",{children:b})]})})]}),(0,mr.jsx)(Zo,{onClick:function(e){return i(e,t)},isRunning:g,isPrimary:!0,brandColor:u,label:m,style:{width:"100%",height:"40px"}})]}):(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container gh-portal-cancellation-form",children:[(0,mr.jsxs)("p",{children:["If you cancel your subscription now, you will continue to have access until ",(0,mr.jsx)("strong",{children:li(h.current_period_end)}),"."]}),(0,mr.jsxs)("section",{className:"gh-portal-input-section",children:[(0,mr.jsx)("div",{className:"gh-portal-input-labelcontainer",children:(0,mr.jsx)("label",{className:"gh-portal-input-label",children:"Cancellation reason"})}),(0,mr.jsx)("textarea",{className:"gh-portal-input",label:"Cancellation reason",type:"text",name:"cancellation_reason",placeholder:"",value:d,onChange:function(e){return f(e.target.value)},rows:"2",maxLength:"500"},"cancellation_reason")]}),(0,mr.jsx)(Zo,{onClick:function(e){return i(e,d)},isRunning:g,isPrimary:!0,brandColor:u,label:m+" cancellation",style:{width:"100%",height:"40px"}})]})},cl=function(n){var t=n.plans,r=n.selectedPlan,i=n.onPlanSelect,o=n.onCancelSubscription,a=(0,e.useContext)(Cr),l=a.member,s=a.action,c=a.brandColor;return(0,mr.jsxs)("section",{children:[(0,mr.jsx)("div",{className:"gh-portal-section gh-portal-accountplans-main",children:(0,mr.jsx)(ul,{showLabel:!1,plans:t,selectedPlan:r,onPlanSelect:i,changePlan:!0})}),(0,mr.jsx)(ll,{member:l,onCancelSubscription:o,action:s,brandColor:c})]})};function ul(n){n.showLabel,n.plans;var t=n.selectedPlan,r=n.onPlanSelect,i=n.onPlanCheckout,o=n.changePlan,a=void 0!==o&&o,l=(0,e.useContext)(Cr),s=function(e){var n=e.site,t=vi({member:e.member}),r=null===t||void 0===t?void 0:t.currency,i=Ei({site:n});return null!==t&&void 0!==t&&t.id?i.filter((function(e){return function(e){var n=e.product;return null!==n&&void 0!==n&&n.monthlyPrice?n.monthlyPrice.currency:null}({product:e})===r})):i}({site:l.site,member:l.member});return(0,mr.jsx)(il,{products:s,selectedPlan:t,changePlan:a,onPlanSelect:r,onPlanCheckout:i})}var pl=function(e){var n=e.plans,t=e.selectedPlan,r=e.onPlanSelect,i=e.onPlanCheckout,o="";return 1===n.length&&(o="singleplan"),(0,mr.jsx)("section",{children:(0,mr.jsx)("div",{className:"gh-portal-section gh-portal-accountplans-main ".concat(o),children:(0,mr.jsx)(ul,{showLabel:!1,plans:n,selectedPlan:t,onPlanSelect:r,onPlanCheckout:i})})})},dl=function(n){var t=n.plans,r=n.selectedPlan,i=n.confirmationPlan,o=n.confirmationType,a=n.showConfirmation,l=void 0!==a&&a,s=n.onPlanSelect,c=n.onPlanCheckout,u=n.onConfirm,p=n.onCancelSubscription,d=(0,e.useContext)(Cr).member,f=hi({member:d})&&di({member:d});return!fi({member:d})||f?(0,mr.jsx)(pl,{plans:t,selectedPlan:r,onPlanSelect:s,onPlanCheckout:c}):l?(0,mr.jsx)(sl,{plan:i,type:o,onConfirm:u}):(0,mr.jsx)(cl,{plans:t,selectedPlan:r,onCancelSubscription:p,onPlanSelect:s})},fl=function(e){x(t,e);var n=E(t);function t(e,r){var i;return m(this,t),(i=n.call(this,e,r)).onPlanSelect=function(e,n){null===e||void 0===e||e.preventDefault();var t=i.context.member,r=!!hi({member:t})&&di({member:t});if(!fi({member:t})||r)i.timeoutId=setTimeout((function(){i.setState((function(){return{selectedPlan:n}}))}),5);else{var o=i.prices.find((function(e){return e.id===n})),a=i.getActivePriceId({member:t})?"changePlan":"subscribe";n!==i.state.selectedPlan&&i.setState({confirmationPlan:o,confirmationType:a,showConfirmation:!0})}},i.state=i.getInitialState(),i}return y(t,[{key:"componentDidMount",value:function(){this.context.member||this.context.onAction("switchPage",{page:"signin"})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"getInitialState",value:function(){var e=this.context,n=e.member,t=e.site;this.prices=Hi({site:t});var r=vi({member:n});r&&(this.prices=function(e){var n=e.prices,t=e.currency;return n.filter((function(e){return(e.currency||"").toLowerCase()===(t||"").toLowerCase()}))}({prices:this.prices,currency:r.currency}));var i=r?this.prices.find((function(e){return e.id===r.id})):null;return!fi({member:n})&&this.prices.length>0&&(i=this.prices[0]),{selectedPlan:i?i.id:null}}},{key:"handleSignout",value:function(e){e.preventDefault(),this.context.onAction("signout")}},{key:"onBack",value:function(e){this.state.showConfirmation?this.cancelConfirmPage():this.context.onAction("back")}},{key:"cancelConfirmPage",value:function(){this.setState({showConfirmation:!1,confirmationPlan:null,confirmationType:null})}},{key:"onPlanCheckout",value:function(e,n){var t=this.context,r=t.onAction,i=t.member,o=this.state,a=o.confirmationPlan,l=o.selectedPlan;n&&(l=n);var s=!hi({member:i})||!di({member:i});if(fi({member:i})&&s){var c=pi({member:i}),u=c?c.id:"";u&&r("updateSubscription",{plan:a.name,planId:a.id,subscriptionId:u,cancelAtPeriodEnd:!1})}else r("checkoutPlan",{plan:l})}},{key:"onCancelSubscription",value:function(e){var n=e.subscriptionId,t=(e.cancelAtPeriodEnd,function(e){var n=e.member,t=e.subscriptionId;return fi({member:n})?(n.subscriptions||[]).find((function(e){return e.id===t})):null}({subscriptionId:n,member:this.context.member})),r=mi({subscription:t});this.setState({showConfirmation:!0,confirmationPlan:r,confirmationType:"cancel"})}},{key:"onCancelSubscriptionConfirmation",value:function(e){var n=pi({member:this.context.member});if(!n)return null;this.context.onAction("cancelSubscription",{subscriptionId:n.id,cancelAtPeriodEnd:!0,cancellationReason:e})}},{key:"getActivePriceId",value:function(e){var n=vi({member:e.member});return n?n.id:null}},{key:"onConfirm",value:function(e,n){var t=this.state.confirmationType;return"cancel"===t?this.onCancelSubscriptionConfirmation(n):["changePlan","subscribe"].includes(t)?this.onPlanCheckout():void 0}},{key:"render",value:function(){var e=this,n=this.prices,t=this.state,r=t.selectedPlan,i=t.showConfirmation,o=t.confirmationPlan,a=t.confirmationType,l=this.context.lastPage;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"gh-portal-content",children:[(0,mr.jsx)(oa,{onClick:function(n){return e.onBack(n)},hidden:!l&&!i}),(0,mr.jsx)(ua,{}),(0,mr.jsx)(al,{onBack:function(n){return e.onBack(n)},confirmationType:a,showConfirmation:i}),(0,mr.jsx)(dl,{plans:n,selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a,onConfirm:function(){return e.onConfirm.apply(e,arguments)},onCancelSubscription:function(n){return e.onCancelSubscription(n)},onPlanSelect:this.onPlanSelect,onPlanCheckout:function(n,t){return e.onPlanCheckout(n,t)}})]})})}}]),t}(ol.Component);fl.contextType=Cr;function hl(e){var n=e.message,t=e.style;return n?(0,mr.jsx)("p",{style:N({},t||{}),children:n}):null}var gl=function(n){var t=n.name,r=n.id,i=n.label,o=n.hideLabel,a=n.type,l=n.value,s=n.placeholder,c=n.disabled,u=void 0!==c&&c,p=n.onChange,d=void 0===p?function(){}:p,f=n.onBlur,h=void 0===f?function(){}:f,g=n.onKeyDown,m=void 0===g?function(){}:g,v=n.tabindex,y=n.maxlength,b=n.autoFocus,x=n.errorMessage,w=(0,e.useRef)(null);r=r||"input-".concat(t);var _=o?"gh-portal-input-label hidden":"gh-portal-input-label",k=x?"gh-portal-input error":"gh-portal-input";ui()&&(u=!0),so(["preview"])&&(u=!0);var S="",E="",j="";switch(r){case"input-email":S="off",E="off",j="off";break;case"input-name":S="off",E="off"}return(0,e.useEffect)((function(){b&&w.current.focus()}),[b]),(0,mr.jsxs)("section",{className:"gh-portal-input-section",children:[(0,mr.jsxs)("div",{className:"gh-portal-input-labelcontainer",children:[(0,mr.jsxs)("label",{htmlFor:r,className:_,children:[" ",i," "]}),(0,mr.jsx)(hl,{message:x,name:t})]}),(0,mr.jsx)("input",{ref:w,id:r,className:k,type:a,name:t,value:l,placeholder:s,onChange:function(e){return d(e,t)},onKeyDown:function(e){return m(e,t)},onBlur:function(e){return h(e,t)},disabled:u,tabIndex:v,maxLength:y,autoComplete:S,autoCorrect:E,autoCapitalize:j,"aria-label":i})]})},ml=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){var e=this;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("button",{className:"gh-portal-btn gh-portal-btn-site-title-back",onClick:function(){e.props.onBack?e.props.onBack():e.context.onAction("closePopup")},children:[(0,mr.jsx)("span",{children:"\u2190 "})," Back"]})})}}]),t}(e.Component);ml.contextType=Cr;var vl=["title","titleId"];function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},yl.apply(this,arguments)}function bl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function xl(n,t){var r=n.title,i=n.titleId,o=bl(n,vl);return e.createElement("svg",yl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},e.createElement("path",{d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-7.5,9a2,2,0,1,1,2-2A2,2,0,0,1,12,18.5ZM16.25,9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5V6.75a4.25,4.25,0,0,1,8.5,0Z",style:{fill:"#000000"}})))}var wl=e.forwardRef(xl);t.p,t(969);function _l(e){var n=e.newsletter,t=e.subscribedNewsletters,r=e.setSubscribedNewsletters,i=t.some((function(e){return e.id===(null===n||void 0===n?void 0:n.id)}));return n.paid?(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[(0,mr.jsx)("h3",{children:n.name}),(0,mr.jsx)("p",{children:n.description})]}),(0,mr.jsx)("div",{class:"gh-portal-lock-icon-container",children:(0,mr.jsx)(wl,{className:"gh-portal-lock-icon",alt:"",title:"Unlock access to all newsletters by becoming a paid subscriber."})})]}):(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[(0,mr.jsx)("h3",{children:n.name}),(0,mr.jsx)("p",{children:n.description})]}),(0,mr.jsx)("div",{children:(0,mr.jsx)(ca,{id:n.id,onToggle:function(e,i){var o=[];o=i?t.filter((function(e){return e.id!==n.id})).concat(n):t.filter((function(e){return e.id!==n.id})),r(o)},checked:i})})]})}function kl(n){var t=n.subscribedNewsletters,r=n.setSubscribedNewsletters;return Li({site:(0,e.useContext)(Cr).site}).map((function(e){return(0,mr.jsx)(_l,{newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:r},null===e||void 0===e?void 0:e.id)}))}function Sl(n){var t=n.pageData,r=n.onBack,i=(0,e.useContext)(Cr),o=i.brandColor,a=i.site,l=i.onAction,s=i.action,u=Li({site:a}).filter((function(e){return e.subscribe_on_signup})),p=!1;"signup:running"===s&&(p=!0);var d="Continue",f=!1;"signup:failed"===s&&(d="Retry",f=!0);var h="signup:running"===s,g=c((0,e.useState)(u),2),m=g[0],v=g[1];return(0,mr.jsxs)("div",{className:"gh-portal-content with-footer gh-portal-newsletter-selection",children:[(0,mr.jsx)("p",{className:"gh-portal-text-center gh-portal-text-large",children:"Choose your newsletters"}),(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)("div",{className:"gh-portal-list",children:(0,mr.jsx)(kl,{subscribedNewsletters:m,setSubscribedNewsletters:v})})}),(0,mr.jsx)("footer",{className:"gh-portal-action-footer",children:(0,mr.jsxs)("div",{style:{width:"100%"},children:[(0,mr.jsx)("div",{style:{marginBottom:"20px"},children:(0,mr.jsx)(Zo,{isRunning:p,retry:f,disabled:h,onClick:function(e){var n=m.map((function(e){return{id:e.id}})),r=t.name,i=t.email,o=t.plan,a=t.offerId;l("signup",{name:r,email:i,plan:o,newsletters:n,offerId:a})},brandColor:o,label:d,style:{width:"100%"}})}),(0,mr.jsx)("div",{children:(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link gh-portal-btn-different-plan",onClick:function(){r()},children:(0,mr.jsx)("span",{children:"Choose a different plan"})})})]})})]})}var El,jl,Cl=function(e){var n=e.field,t=e.onChange,r=e.onBlur,i=void 0===r?function(){}:r,o=e.onKeyDown,a=void 0===o?function(){}:o;return n?(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)(gl,{label:n.label,type:n.type,name:n.name,placeholder:n.placeholder,disabled:n.disabled,value:n.value,onKeyDown:a,onChange:function(e){return t(e,n)},onBlur:function(e){return i(e,n)},tabIndex:n.tabindex,errorMessage:n.errorMessage,autoFocus:n.autoFocus},n.name)}):null},Nl=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={},r}return y(t,[{key:"render",value:function(){var e=this.props,n=e.fields,t=e.onChange,r=e.onBlur,i=e.onKeyDown,o=n.map((function(e){return(0,mr.jsx)(Cl,{field:e,onChange:t,onBlur:r,onKeyDown:i},e.name)}));return(0,mr.jsx)(mr.Fragment,{children:o})}}]),t}(e.Component),Pl=function(e){var n,t=e.field;if(t.required&&!t.value)switch(t.name){case"name":return"Enter your name";case"email":return"Enter your email address";default:return"Please enter ".concat(t.name)}return"email"!==t.type||(n=t.value)&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(String(n).toLowerCase())?null:"Invalid email address"},Ol=function(e){var n=e.fields,t={};return n.forEach((function(e){var n=e.name,r=Pl({field:e});t[n]=r})),t},Tl=["title","titleId"];function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Il.apply(this,arguments)}function Dl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Rl(n,t){var r=n.title,i=n.titleId,o=Dl(n,Tl);return e.createElement("svg",Il({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,El||(El=e.createElement("defs",null,e.createElement("style",null,".inviteicon{fill: currentColor;}"))),jl||(jl=e.createElement("path",{className:"inviteicon",d:"M23.991 11.464l-.036-.146-.028-.068-.011-.027-.115-.114-.018-.021-.008-.005h-.001l-3.774-2.596v-7.987c0-.276-.224-.5-.5-.5h-15c-.276 0-.5.224-.5.5v7.987l-3.774 2.595-.003.002-.006.004-.015.016-.118.118-.011.027-.028.068-.036.146-.009.037v10.5c0 1.103.897 2 2 2h20c1.103 0 2-.897 2-2v-10.5l-.009-.036zm-1.383.03l-2.608 1.738v-3.531l2.608 1.793zm-18.608 1.738l-2.608-1.739 2.608-1.792v3.531zm18 9.768h-20c-.551 0-1-.449-1-1v-9.566l5.223 3.482c.085.057.181.084.276.084.162 0 .32-.078.417-.223.153-.23.091-.54-.139-.693l-1.777-1.185v-12.899h14v12.899l-1.777 1.185c-.23.153-.292.463-.139.693.096.145.255.223.416.223.095 0 .191-.027.277-.084l5.223-3.482v9.566c0 .551-.449 1-1 1zM15.812 16.109c-.088-.07-.198-.109-.312-.109h-7c-.114 0-.224.039-.312.109l-5 4c-.215.173-.25.487-.078.703.173.215.487.251.703.078l4.862-3.89h6.649l4.863 3.891c.093.073.203.109.313.109.147 0 .292-.065.391-.188.172-.216.137-.53-.078-.703l-5.001-4zM11.706 12.779c.087.064.191.096.294.096s.207-.032.294-.096c.482-.35 4.706-3.497 4.706-6.101 0-1.868-1.387-2.984-2.728-2.984-.772 0-1.674.379-2.272 1.368-.598-.988-1.5-1.368-2.272-1.368-1.341-.001-2.728 1.116-2.728 2.984 0 2.604 4.224 5.751 4.706 6.101zm-1.978-8.086c.844 0 1.511.681 1.786 1.822.108.45.864.45.973 0 .274-1.141.942-1.822 1.786-1.822.85 0 1.728.742 1.728 1.984 0 1.646-2.658 4.037-4 5.072-1.342-1.035-4-3.426-4-5.072-.001-1.241.877-1.984 1.727-1.984z"})))}var Ll=e.forwardRef(Rl),Ul=(t.p,t(969)),zl=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).handleSelectPlan=function(e,n){e&&e.preventDefault(),r.timeoutId=setTimeout((function(){r.setState((function(e){return{plan:n}}))}),5)},r.state={name:"",email:"",plan:"free",showNewsletterSelection:!1},r}return y(t,[{key:"componentDidMount",value:function(){this.context.member&&this.context.onAction("switchPage",{page:"accountHome"}),this.handleSelectedPlan()}},{key:"componentDidUpdate",value:function(){this.handleSelectedPlan()}},{key:"handleSelectedPlan",value:function(){var e=this.context,n=$i({site:e.site,pageQuery:e.pageQuery}),t=this.getSelectedPriceId(n,this.state.plan);t!==this.state.plan&&this.setState({plan:t})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"handleSignup",value:function(e){var n=this,t=this.context,r=t.site,i=t.onAction;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),(function(){var e=n.state,t=e.name,o=e.email,a=e.plan,l=e.errors;l&&Object.values(l).filter((function(e){return!!e})).length>0||(Ui({site:r})?n.setState({showNewsletterSelection:!0,pageData:{name:t,email:o,plan:a},errors:{}}):(n.setState({errors:{}}),i("signup",{name:t,email:o,plan:a})))}))}},{key:"handleChooseSignup",value:function(e,n){var t=this;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:t.getInputFields({state:e})})}}),(function(){var e=t.context,r=e.onAction,i=e.site,o=t.state,a=o.name,l=o.email,s=o.errors;s&&Object.values(s).filter((function(e){return!!e})).length>0||(Ui({site:i})?t.setState({showNewsletterSelection:!0,pageData:{name:a,email:l,plan:n},errors:{}}):(r("signup",{name:a,email:l,plan:n}),t.setState({errors:{}})))}))}},{key:"handleInputChange",value:function(e,n){var t=n.name,r=e.target.value;this.setState(j({},t,r))}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.handleSignup(e)}},{key:"getSelectedPriceId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(!e||0===e.length)return"free";var t=e.some((function(e){return e.id===n}));return t?n:e[0].id||"free"}},{key:"getInputFields",value:function(e){var n=e.state,t=e.fieldNames,r=this.context.site.portal_name,i=n.errors||{},o=[{type:"email",value:n.email,placeholder:"jamie@example.com",label:"Email",name:"email",required:!0,tabindex:2,errorMessage:i.email||""}];return r&&o.unshift({type:"text",value:n.name,placeholder:"Jamie Larson",label:"Name",name:"name",required:!0,tabindex:1,errorMessage:i.name||""}),o[0].autoFocus=!0,t&&t.length>0?o.filter((function(e){return t.includes(e.name)})):o}},{key:"renderSubmitButton",value:function(){var e=this,n=this.context,t=n.action,r=n.site,i=n.brandColor,o=n.pageQuery;if(wi({site:r,pageQuery:o}))return null;var a="Continue",l="free"===o&&Ri({site:r});if(!bi({site:r})&&!l)return null;a="Sign up";var s=!1;"signup:running"===t&&(a="Sending...",s=!0);var c=!1;"signup:failed"===t&&(a="Retry",c=!0);var u="signup:running"===t;return(0,mr.jsx)(Zo,{style:{width:"100%"},retry:c,onClick:function(n){return e.handleSignup(n)},disabled:u,brandColor:i,label:a,isRunning:s,tabIndex:"3"})}},{key:"renderProducts",value:function(){var e=this,n=this.context,t=Ni({site:n.site,pageQuery:n.pageQuery});return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)(rl,{handleChooseSignup:function(){return e.handleChooseSignup.apply(e,arguments)},products:t,onPlanSelect:this.handleSelectPlan})})}},{key:"renderFreeTrialMessage",value:function(){return Pi({site:this.context.site})?(0,mr.jsx)("p",{className:"gh-portal-free-trial-notification",children:"After a free trial ends, you will be charged regular price for the tier you\u2019ve chosen. You can always cancel before then."}):null}},{key:"renderLoginMessage",value:function(){var e=this.context,n=e.brandColor,t=e.onAction;return(0,mr.jsxs)("div",{children:[this.renderFreeTrialMessage(),(0,mr.jsxs)("div",{className:"gh-portal-signup-message",children:[(0,mr.jsx)("div",{children:"Already a member?"}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:function(){return t("switchPage",{page:"signin"})},children:(0,mr.jsx)("span",{children:"Sign in"})})]})]})}},{key:"renderForm",value:function(){var e=this,n=this.getInputFields({state:this.state}),t=this.context,r=t.site,i=t.pageQuery;if(this.state.showNewsletterSelection)return(0,mr.jsx)(Sl,{pageData:this.state.pageData,onBack:function(){e.setState({showNewsletterSelection:!1})}});if(wi({site:r,pageQuery:i}))return(0,mr.jsx)("section",{children:(0,mr.jsxs)("div",{className:"gh-portal-section",children:[(0,mr.jsx)("p",{className:"gh-portal-invite-only-notification",children:"This site is invite-only, contact the owner for access."}),this.renderLoginMessage()]})});var o=Oi({site:r}),a=Ii({site:r}),l="free"===i&&Ri({site:r}),s=zi({site:r})||l,c=!l&&(o.length||a);return(0,mr.jsx)("section",{className:"gh-portal-signup",children:(0,mr.jsxs)("div",{className:"gh-portal-section",children:[(0,mr.jsx)("div",{className:"gh-portal-logged-out-form-container",children:(0,mr.jsx)(Nl,{fields:n,onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n){return e.onKeyDown(n)}})}),(0,mr.jsxs)("div",{children:[this.renderProducts(),s?(0,mr.jsx)("div",{className:"gh-portal-btn-container"+(c?" sticky m24":""),children:(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container",children:[this.renderSubmitButton(),this.renderLoginMessage()]})}):this.renderLoginMessage()]})]})})}},{key:"renderSiteLogo",value:function(){var e=this.context,n=e.site,t=e.pageQuery,r=n.icon;return r?("url(".concat(r,")"),(0,mr.jsx)("img",{className:"gh-portal-signup-logo",src:r,alt:n.title})):wi({site:n,pageQuery:t})?(0,mr.jsx)(Ll,{className:"gh-portal-icon gh-portal-icon-invitation"}):null}},{key:"renderFormHeader",value:function(){var e=this.context.site.title||"";return(0,mr.jsxs)("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:e})]})}},{key:"getClassNames",value:function(){var e=this.context,n=e.site,t=e.pageQuery,r=$i({site:n,pageQuery:t}),i=this.getInputFields({state:this.state}),o="",a="";return(r.length<=1||wi({site:n}))&&(1===r.length&&"free"===r[0].type||wi({site:n,pageQuery:t})?(o=function(e){var n,t=ji({site:e.site});return!!(null!==t&&void 0!==t&&t.description||null!==t&&void 0!==t&&null!==(n=t.benefits)&&void 0!==n&&n.length)}({site:n})?"singleplan":"noplan",1===i.length&&(o="single-field"),wi({site:n})&&(a="invite-only",o="invite-only")):o="singleplan"),{sectionClass:o,footerClass:a}}},{key:"render",value:function(){var e=this,n=this.getClassNames().sectionClass;return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("div",{className:"gh-portal-back-sitetitle",children:(0,mr.jsx)(ml,{onBack:function(){e.state.showNewsletterSelection?e.setState({showNewsletterSelection:!1}):e.context.onAction("closePopup")}})}),(0,mr.jsx)(ua,{}),(0,mr.jsxs)("div",{className:"gh-portal-content signup "+n,children:[this.renderFormHeader(),this.renderForm()]})]})}}]),t}(Ul.Component);zl.contextType=Cr;var Ml,Fl,Al,Bl,Hl,Yl=zl,$l=["title","titleId"];function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Gl.apply(this,arguments)}function Wl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ql(n,t){var r=n.title,i=n.titleId,o=Wl(n,$l);return e.createElement("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ml||(Ml=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;}"))),Fl||(Fl=e.createElement("rect",{className:"a",x:.75,y:4.5,width:22.5,height:15,rx:1.5,ry:1.5})),Al||(Al=e.createElement("line",{className:"a",x1:15.687,y1:9.975,x2:19.5,y2:13.5})),Bl||(Bl=e.createElement("line",{className:"a",x1:8.313,y1:9.975,x2:4.5,y2:13.5})),Hl||(Hl=e.createElement("path",{className:"a",d:"M22.88,5.014l-9.513,6.56a2.406,2.406,0,0,1-2.734,0L1.12,5.014"})))}var Ql=e.forwardRef(ql),Vl=(t.p,t(969)),Kl=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"renderFormHeader",value:function(){var e="Now check your email!",n="A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.";return"signup"===this.context.lastPage&&(e="Now check your email!",n="To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!"),(0,mr.jsxs)("section",{className:"gh-portal-inbox-notification",children:[(0,mr.jsxs)("header",{className:"gh-portal-header",children:[(0,mr.jsx)(Ql,{className:"gh-portal-icon gh-portal-icon-envelope"}),(0,mr.jsx)("h2",{className:"gh-portal-main-title",children:e})]}),(0,mr.jsx)("p",{children:n})]})}},{key:"renderLoginMessage",value:function(){var e=this;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)("div",{style:{color:"#1d1d1d",fontWeight:"bold",cursor:"pointer"},onClick:function(){return e.context.onAction("switchPage",{page:"signin"})},children:"Back to Log in"})})}},{key:"handleClose",value:function(e){this.context.onAction("closePopup")}},{key:"renderCloseButton",value:function(){var e=this;return(0,mr.jsx)(Zo,{style:{width:"100%"},onClick:function(n){return e.handleClose(n)},brandColor:this.context.brandColor,label:"Close"})}},{key:"render",value:function(){return(0,mr.jsxs)("div",{className:"gh-portal-content",children:[(0,mr.jsx)(ua,{}),this.renderFormHeader(),this.renderCloseButton()]})}}]),t}(Vl.Component);Kl.contextType=Cr;var Jl=function(e){var n=e.hide,t=void 0!==n&&n,r=e.onClose;return t?null:(0,mr.jsx)(ko,{className:"closeicon",alt:"Close",onClick:r})},Xl=function(e){var n=e.message,t=e.site,r=qi({site:t}),i="mailto:".concat(r);return n?(0,mr.jsx)("p",{children:n}):(0,mr.jsxs)("p",{children:[" An unexpected error occured. Please try again or ",(0,mr.jsx)("a",{href:i,onClick:function(){i&&window.open(i)},children:"contact support"})," if the error persists."]})},Zl=function(e){x(t,e);var n=E(t);function t(){var e;return m(this,t),(e=n.call(this)).state={className:""},e}return y(t,[{key:"onAnimationEnd",value:function(e){var n=(this.context.popupNotification||{}).type;"popupnotification-slideout"===e.animationName&&("stripe:billing-update"===n&&Mo(["stripe"]),this.context.onAction("clearPopupNotification"))}},{key:"closeNotification",value:function(e){this.context.onAction("clearPopupNotification")}},{key:"componentDidUpdate",value:function(){var e=this.context.popupNotification;e.count!==this.state.notificationCount&&(clearTimeout(this.timeoutId),this.handlePopupNotification({popupNotification:e}))}},{key:"handlePopupNotification",value:function(e){var n=this,t=e.popupNotification;if(this.setState({notificationCount:t.count}),t.autoHide){var r=t.duration,i=void 0===r?2600:r;this.timeoutId=setTimeout((function(){n.setState((function(e){return"slideout"!==e.className?{className:"slideout",notificationCount:t.count}:{}}))}),i)}}},{key:"componentDidMount",value:function(){var e=this.context.popupNotification;this.handlePopupNotification({popupNotification:e})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"render",value:function(){var e=this,n=this.context,t=n.popupNotification,r=n.site,i=this.state.className,o=t.type,a=t.status,l=t.closeable,s=t.message,c=a?" ".concat(a):"",u=i?" ".concat(i):"";return(0,mr.jsxs)("div",{className:"gh-portal-popupnotification".concat(c).concat(u),onAnimationEnd:function(n){return e.onAnimationEnd(n)},children:["error"===a?(0,mr.jsx)(Lo,{className:"gh-portal-popupnotification-icon error",alt:""}):(0,mr.jsx)(Oo,{className:"gh-portal-popupnotification-icon success",alt:""}),(0,mr.jsx)(Xl,{type:o,status:a,message:s,site:r}),(0,mr.jsx)(Jl,{hide:!l,onClose:function(n){return e.closeNotification(n)}})]})}}]),t}(e.Component);Zl.contextType=Cr;var es,ns,ts=t(969),rs=function(e){x(t,e);var n=E(t);function t(e,r){var i,o,a;return m(this,t),(a=n.call(this,e,r)).state={name:(null===r||void 0===r||null===(i=r.member)||void 0===i?void 0:i.name)||"",email:(null===r||void 0===r||null===(o=r.member)||void 0===o?void 0:o.email)||"",plan:"free",showNewsletterSelection:!1},a}return y(t,[{key:"getInputFields",value:function(e){var n=e.state,t=e.fieldNames,r=this.context.site.portal_name,i=this.context.member,o=n.errors||{},a=[{type:"email",value:(null===i||void 0===i?void 0:i.email)||n.email,placeholder:"jamie@example.com",label:"Email",name:"email",disabled:!!i,required:!0,tabindex:2,errorMessage:o.email||""}],l=!!r;return!i||null!==i&&void 0!==i&&i.name||(l=!1),l&&a.unshift({type:"text",value:(null===i||void 0===i?void 0:i.name)||n.name,placeholder:"Jamie Larson",label:"Name",name:"name",disabled:!!i,required:!0,tabindex:1,errorMessage:o.name||""}),a[0].autoFocus=!0,t&&t.length>0?a.filter((function(e){return t.includes(e.name)})):a}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.handleSignup(e)}},{key:"handleSignup",value:function(e){var n=this;e.preventDefault();var t=this.context,r=t.pageData,i=t.site;if(!r)return null;var o=Di({site:i,productId:r.tier.id}),a="month"===r.cadence?o.monthlyPrice:o.yearlyPrice;this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),(function(){var e=n.context.onAction,t=n.state,o=t.name,l=t.email,s=t.errors;if(!(s&&Object.values(s).filter((function(e){return!!e})).length>0)){var c={name:o,email:l,plan:null===a||void 0===a?void 0:a.id,offerId:null===r||void 0===r?void 0:r.id};Ui({site:i})?n.setState({showNewsletterSelection:!0,pageData:c,errors:{}}):(e("signup",c),n.setState({errors:{}}))}}))}},{key:"handleInputChange",value:function(e,n){var t=n.name,r=e.target.value;this.setState(j({},t,r))}},{key:"renderSiteLogo",value:function(){var e=this.context.site,n=e.icon;return n?("url(".concat(n,")"),(0,mr.jsx)("img",{className:"gh-portal-signup-logo",src:n,alt:e.title})):null}},{key:"renderFormHeader",value:function(){var e=this.context.site.title||"";return(0,mr.jsxs)("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),(0,mr.jsx)("h2",{className:"gh-portal-main-title",children:e})]})}},{key:"renderForm",value:function(){var e=this,n=this.getInputFields({state:this.state});return this.state.showNewsletterSelection?(0,mr.jsx)(Sl,{pageData:this.state.pageData,onBack:function(){e.setState({showNewsletterSelection:!1})}}):(0,mr.jsx)("section",{children:(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)(Nl,{fields:n,onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n){return e.onKeyDown(n)}})})})}},{key:"renderSubmitButton",value:function(){var e=this,n=this.context,t=n.action,r=n.brandColor,i=this.context.pageData,o="Continue";"trial"===i.type&&(o="Start "+i.amount+"-day free trial");var a=!1;"signup:running"===t&&(o="Sending...",a=!0);var l=!1;"signup:failed"===t&&(o="Retry",l=!0);var s="signup:running"===t;return(0,mr.jsx)(Zo,{style:{width:"100%"},retry:l,onClick:function(n){return e.handleSignup(n)},disabled:s,brandColor:r,label:o,isRunning:a,tabindex:"3",classes:"sticky bottom"})}},{key:"renderLoginMessage",value:function(){if(this.context.member)return null;var e=this.context,n=e.brandColor,t=e.onAction;return(0,mr.jsxs)("div",{className:"gh-portal-signup-message",children:[(0,mr.jsx)("div",{children:"Already a member?"}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:function(){return t("switchPage",{page:"signin"})},children:(0,mr.jsx)("span",{children:"Sign in"})})]})}},{key:"renderOfferTag",value:function(){var e=this.context.pageData;return e.amount<=0?(0,mr.jsx)(mr.Fragment,{}):"fixed"===e.type?(0,mr.jsxs)("h5",{className:"gh-portal-discount-label",children:[Vi(e.currency),e.amount/100," off"]}):"trial"===e.type?(0,mr.jsxs)("h5",{className:"gh-portal-discount-label",children:[e.amount," days free"]}):(0,mr.jsxs)("h5",{className:"gh-portal-discount-label",children:[e.amount,"% off"]})}},{key:"renderBenefits",value:function(e){var n=e.product.benefits||[];if(null!==n&&void 0!==n&&n.length){var t=n.map((function(e,n){return(0,mr.jsxs)("div",{className:"gh-portal-product-benefit",children:[(0,mr.jsx)(Ma,{className:"gh-portal-benefit-checkmark"}),(0,mr.jsx)("div",{className:"gh-portal-benefit-title",children:e.name})]},"".concat(e.name,"-").concat(n))}));return(0,mr.jsx)("div",{className:"gh-portal-product-benefits",children:t})}}},{key:"getOriginalPrice",value:function(e){var n=e.offer,t=e.product,r="month"===n.cadence?t.monthlyPrice:t.yearlyPrice,i=this.renderRoundedPrice(r.amount/100);return"".concat(Vi(r.currency)).concat(i,"/").concat(n.cadence)}},{key:"getUpdatedPrice",value:function(e){var n,t=e.offer,r=e.product,i="month"===t.cadence?r.monthlyPrice:r.yearlyPrice,o=i.amount;return"fixed"===t.type&&eo(t.currency,i.currency)?(n=(o-t.amount)/100)>0?n:0:"percent"===t.type?n=(o-o*t.amount/100)/100:o/100}},{key:"renderRoundedPrice",value:function(e){if(e%1!==0){var n=Math.round(100*e)/100;return Number(n).toFixed(2)}return e}},{key:"getOffAmount",value:function(e){var n=e.offer;return"fixed"===n.type?"".concat(Vi(n.currency)).concat(n.amount/100):"percent"===n.type?"".concat(n.amount,"%"):"trial"===n.type?n.amount:""}},{key:"renderOfferMessage",value:function(e){var n=e.offer,t=e.product,r=(e.price,n.duration),i="",o=this.getOriginalPrice({offer:n,product:t}),a="";if("once"===r)i="for first ".concat(n.cadence),a="Renews at ".concat(o,".");else if("forever"===r)i="forever";else if("repeating"===r){var l=n.duration_in_months||"";i=1===l?"for first month":"for first ".concat(l," months"),a="Renews at ".concat(o,".")}return"trial"===r?(0,mr.jsxs)("p",{className:"footnote",children:["Try free for ",n.amount," days, then ",o,". ",(0,mr.jsx)("span",{class:"gh-portal-cancel",children:"Cancel anytime."})]}):(0,mr.jsxs)("p",{className:"footnote",children:[this.getOffAmount({offer:n})," off ",i,". ",a]})}},{key:"renderProductLabel",value:function(e){var n=e.product,t=e.offer;return _i({site:this.context.site})?(0,mr.jsxs)("h4",{className:"gh-portal-plan-name",children:[n.name," - ","month"===t.cadence?"Monthly":"Yearly"]}):(0,mr.jsx)("h4",{className:"gh-portal-plan-name",children:"month"===t.cadence?"Monthly":"Yearly"})}},{key:"renderUpdatedTierPrice",value:function(e){var n=e.offer,t=e.currencyClass,r=e.updatedPrice,i=e.price;return"trial"===n.type?(0,mr.jsx)("div",{className:"gh-portal-product-card-pricecontainer offer-type-trial",children:(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign "+t,children:Vi(i.currency)}),(0,mr.jsx)("span",{className:"amount",children:Xi(this.renderRoundedPrice(r))})]})}):(0,mr.jsx)("div",{className:"gh-portal-product-card-pricecontainer",children:(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign "+t,children:Vi(i.currency)}),(0,mr.jsx)("span",{className:"amount",children:Xi(this.renderRoundedPrice(r))})]})})}},{key:"renderOldTierPrice",value:function(e){var n=e.offer,t=e.price;return"trial"===n.type?null:(0,mr.jsxs)("div",{className:"gh-portal-offer-oldprice",children:[Vi(t.currency)," ",Xi(t.amount/100)]})}},{key:"renderProductCard",value:function(e){var n=e.product,t=e.offer,r=e.currencyClass,i=e.updatedPrice,o=e.price,a=e.benefits;return this.state.showNewsletterSelection?null:(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("div",{className:"gh-portal-product-card top",children:(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsxs)("h4",{className:"gh-portal-product-name",children:[n.name," - ","month"===t.cadence?"Monthly":"Yearly"]}),this.renderOldTierPrice({offer:t,price:o}),this.renderUpdatedTierPrice({offer:t,currencyClass:r,updatedPrice:i,price:o}),this.renderOfferMessage({offer:t,product:n,price:o})]})}),(0,mr.jsxs)("div",{children:[(0,mr.jsx)("div",{className:"gh-portal-product-card bottom",children:(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[n.description?(0,mr.jsx)("div",{className:"gh-portal-product-description",children:n.description}):"",a.length?this.renderBenefits({product:n}):""]})}),(0,mr.jsx)("div",{className:"gh-portal-btn-container sticky m32",children:this.renderSubmitButton()}),this.renderLoginMessage()]})]})}},{key:"render",value:function(){var e=this.context,n=e.pageData,t=e.site;if(!n)return null;var r=Di({site:t,productId:n.tier.id}),i="month"===n.cadence?r.monthlyPrice:r.yearlyPrice,o=this.getUpdatedPrice({offer:n,product:r}),a=r.benefits||[],l=Vi(i.currency).length>1?"long":"";return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-offer",children:[(0,mr.jsx)(ua,{}),this.renderFormHeader(),(0,mr.jsxs)("div",{className:"gh-portal-offer-bar",children:[(0,mr.jsxs)("div",{className:"gh-portal-offer-title",children:[n.display_title?(0,mr.jsx)("h4",{children:n.display_title}):(0,mr.jsx)("h4",{className:"placeholder",children:"Black Friday"}),this.renderOfferTag()]}),n.display_description?(0,mr.jsx)("p",{children:n.display_description}):""]}),this.renderForm(),this.renderProductCard({product:r,offer:n,currencyClass:l,updatedPrice:o,price:i,benefits:a})]})})}}]),t}(ts.Component);rs.contextType=Cr;var is=["title","titleId"];function os(){return os=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},os.apply(this,arguments)}function as(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ls(n,t){var r=n.title,i=n.titleId,o=as(n,is);return e.createElement("svg",os({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,es||(es=e.createElement("defs",null,e.createElement("style",null,"path{stroke:currentColor;}"))),ns||(ns=e.createElement("path",{d:"M9.20837 15.8011C9.83721 15.4781 10.4682 15.1573 11.1013 14.8386C22.77 8.94169 22.1989 10.0903 32.1897 10.0903C36.3605 10.0903 38.4812 12.8045 39.7132 16.7796V16.8053L42.7451 26.9244V26.9436C42.8892 27.4178 42.92 27.9192 42.835 28.4075C42.75 28.8958 42.5516 29.3572 42.2558 29.7549C41.9599 30.1525 41.5748 30.4751 41.1316 30.6967C40.6883 30.9184 40.1992 31.0329 39.7036 31.0311H31.9073C31.4217 31.0324 30.9426 31.144 30.5064 31.3574C30.0701 31.5708 29.688 31.8805 29.3888 32.2631C29.0915 32.6461 28.8867 33.0927 28.7904 33.568C28.6941 34.0433 28.7089 34.5344 28.8337 35.003L30.2358 40.2935C30.3448 40.7044 30.3548 41.1353 30.265 41.5508C30.1752 41.9662 29.9882 42.3545 29.7192 42.6837C29.4535 43.0094 29.1162 43.2693 28.7335 43.4432C28.3508 43.6172 27.9332 43.7004 27.5131 43.6864C27.093 43.6724 26.6818 43.5617 26.3115 43.3627C25.9412 43.1637 25.6219 42.882 25.3784 42.5394L17.6046 30.5883C17.3083 30.1754 16.9182 29.8388 16.4664 29.6062C16.0146 29.3736 15.514 29.2517 15.0058 29.2504H9.20837M6 32.4587H9.20833V10.0003H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})))}var ss,cs,us=e.forwardRef(ls),ps=(t.p,["title","titleId"]);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ds.apply(this,arguments)}function fs(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function hs(n,t){var r=n.title,i=n.titleId,o=fs(n,ps);return e.createElement("svg",ds({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,ss||(ss=e.createElement("defs",null,e.createElement("style",null,"path{stroke:currentColor;}"))),cs||(cs=e.createElement("path",{d:"M9.20837 33.8868C9.83721 34.2098 10.4682 34.5306 11.1013 34.8493C22.77 40.7462 22.1989 39.5976 32.1897 39.5976C36.3605 39.5976 38.4812 36.8834 39.7132 32.9083V32.8826L42.7451 22.7635V22.7443C42.8892 22.2701 42.92 21.7687 42.835 21.2804C42.75 20.7922 42.5516 20.3307 42.2558 19.9331C41.9599 19.5355 41.5748 19.2129 41.1316 18.9912C40.6883 18.7695 40.1992 18.655 39.7036 18.6568H31.9073C31.4217 18.6555 30.9426 18.5439 30.5064 18.3305C30.0701 18.1171 29.688 17.8074 29.3888 17.4248C29.0915 17.0418 28.8867 16.5952 28.7904 16.1199C28.6941 15.6446 28.7089 15.1535 28.8337 14.6849L30.2358 9.39439C30.3448 8.98352 30.3548 8.55265 30.265 8.13716C30.1752 7.72167 29.9882 7.33339 29.7192 7.00418C29.4535 6.67851 29.1162 6.41858 28.7335 6.24467C28.3508 6.07075 27.9332 5.98754 27.5131 6.00151C27.093 6.01548 26.6818 6.12626 26.3115 6.32522C25.9412 6.52418 25.6219 6.80594 25.3784 7.14856L17.6046 19.0996C17.3083 19.5125 16.9182 19.8491 16.4664 20.0817C16.0146 20.3143 15.514 20.4362 15.0058 20.4375H9.20837M6 17.2292H9.20833V39.6876H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})))}var gs=e.forwardRef(hs),ms=(t.p,function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,null,[{key:"fromApiResponse",value:function(){var e=g(f().mark((function e(n){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(400!==n.status&&429!==n.status){e.next=12;break}return e.prev=1,e.next=4,n.json();case 4:if(!((r=e.sent).errors&&Array.isArray(r.errors)&&r.errors.length>0&&r.errors[0].message)){e.next=7;break}return e.abrupt("return",new t(r.errors[0].message));case 7:e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(n){return e.apply(this,arguments)}}()},{key:"getMessageFromError",value:function(e,n){return e instanceof t?e.message:n}}]),t}(We(Error)));var vs=function(e){var n=e.siteUrl,t=void 0===n?window.location.origin:n,r=e.apiUrl,i=e.apiKey;function o(e){var n=e.type,r=e.resource;if("members"===n)return"".concat(t.replace(/\/$/,""),"/").concat("members/api","/").concat(r,"/")}function a(e){var n=e.resource,t=e.params,o=void 0===t?"":t;return r&&i?"".concat(r.replace(/\/$/,""),"/").concat(n,"/?key=").concat(i,"&limit=all").concat(o):""}function l(e){var n=e.url,t=e.method,r=void 0===t?"GET":t,i=e.headers,o=void 0===i?{}:i,a=e.credentials,l=void 0===a?void 0:a,s=e.body;return fetch(n,{method:r,headers:o,credentials:l,body:void 0===s?void 0:s})}var s={};return s.analytics={pushEvent:function(e){return g(f().mark((function n(){var t,r,i;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=o({type:"members",resource:"events"}),n.next=3,s.member.identity();case 3:return r=n.sent,e.identity=r,i={events:[e]},n.abrupt("return",l({url:t,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then((function(e){return e.ok?e.text():null})));case 7:case"end":return n.stop()}}),n)})))()}},s.site={read:function(){return l({url:o({type:"members",resource:"site"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},newsletters:function(){return l({url:a({resource:"newsletters"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},tiers:function(){return l({url:a({resource:"tiers",params:"&include=monthly_price,yearly_price,benefits"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},settings:function(){return l({url:a({resource:"settings"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},offer:function(e){var n=e.offerId;return l({url:a({resource:"offers/".concat(n)}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch offer data")}))}},s.feedback={add:function(e){return g(f().mark((function n(){var t,r,i,a,s,c,u;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.uuid,r=e.postId,i=e.score,a=o({type:"members",resource:"feedback"}),a+="?uuid=".concat(t),s={feedback:[{post_id:r,score:i}]},n.next=6,l({url:a,method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(s)});case 6:if(!(c=n.sent).ok){n.next=11;break}return n.abrupt("return",c.json());case 11:return n.next=13,ms.fromApiResponse(c);case 13:if(n.t1=u=n.sent,n.t0=null!==n.t1,!n.t0){n.next=17;break}n.t0=void 0!==u;case 17:if(!n.t0){n.next=21;break}n.t2=u,n.next=22;break;case 21:n.t2=new Error("Failed to save feedback");case 22:throw n.t2;case 23:case"end":return n.stop()}}),n)})))()}},s.member={identity:function(){return l({url:o({type:"members",resource:"session"}),credentials:"same-origin"}).then((function(e){return e.ok&&204!==e.status?e.text():null}))},sessionData:function(){return l({url:o({type:"members",resource:"member"}),credentials:"same-origin"}).then((function(e){return e.ok&&204!==e.status?e.json():null}))},update:function(e){var n=e.name,t=e.subscribed,r=e.newsletters,i=e.enableCommentNotifications,a=o({type:"members",resource:"member"}),s={name:n,subscribed:t,newsletters:r};return void 0!==i&&(s.enable_comment_notifications=i),l({url:a,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(s)}).then((function(e){return e.ok?e.json():null}))},sendMagicLink:function(e){return g(f().mark((function n(){var t,r,i,a,s,c,u,p,d,h,g;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.email,r=e.emailType,i=e.labels,a=e.name,s=e.oldEmail,c=e.newsletters,u=o({type:"members",resource:"send-magic-link"}),p={name:a,email:t,newsletters:c,oldEmail:s,emailType:r,labels:i,requestSrc:"portal"},(d=io())&&(p.urlHistory=d),n.next=7,l({url:u,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)});case 7:if(!(h=n.sent).ok){n.next=12;break}return n.abrupt("return","Success");case 12:return n.next=14,ms.fromApiResponse(h);case 14:if(!(g=n.sent)){n.next=17;break}throw g;case 17:throw new Error("Failed to send magic link email");case 18:case"end":return n.stop()}}),n)})))()},signout:function(){return l({url:o({type:"members",resource:"session"}),method:"DELETE"}).then((function(e){if(e.ok)return window.location.replace(t),"Success";throw new Error("Failed to signout")}))},newsletters:function(e){return g(f().mark((function n(){var t,r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.uuid,r=o({type:"members",resource:"member/newsletters"}),r+="?uuid=".concat(t),n.abrupt("return",l({url:r,credentials:"same-origin"}).then((function(e){return e.ok&&204!==e.status?e.json():null})));case 4:case"end":return n.stop()}}),n)})))()},updateNewsletters:function(e){return g(f().mark((function n(){var t,r,i,a,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.uuid,r=e.newsletters,i=e.enableCommentNotifications,a=o({type:"members",resource:"member/newsletters"}),a+="?uuid=".concat(t),s={newsletters:r},void 0!==i&&(s.enable_comment_notifications=i),n.abrupt("return",l({url:a,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to update email preferences")})));case 6:case"end":return n.stop()}}),n)})))()},updateEmailAddress:function(e){return g(f().mark((function n(){var t,r,i,a;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.email,n.next=3,s.member.identity();case 3:return r=n.sent,i=o({type:"members",resource:"member/email"}),a={email:t,identity:r},n.abrupt("return",l({url:i,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((function(e){if(e.ok)return"Success";throw new Error("Failed to send email address verification email")})));case 7:case"end":return n.stop()}}),n)})))()},checkoutPlan:function(){var e=arguments;return g(f().mark((function n(){var r,i,a,c,u,p,d,h,m,v,y,b,x,w,_,k,S,E,j,C;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},c=a.plan,u=a.tierId,p=a.cadence,d=a.cancelUrl,h=a.successUrl,m=a.email,v=a.name,y=a.offerId,b=a.newsletters,x=a.metadata,w=void 0===x?{}:x,_=new URL(t),n.next=4,s.member.identity();case 4:return k=n.sent,S=o({type:"members",resource:"create-stripe-checkout-session"}),d||((E=window.location.href.startsWith(_.href)?new URL(window.location.href):new URL(t)).searchParams.set("stripe","cancel"),d=E.href),j=N({name:v,newsletters:JSON.stringify(b),requestSrc:"portal",fp_tid:null===(r=window.FPROM||window.$FPROM)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.tid,urlHistory:io()},w),C={priceId:y?null:c,offerId:y,identity:k,metadata:j,successUrl:h,cancelUrl:d},m&&(C.customerEmail=m),u&&p&&(delete C.priceId,C.tierId=y?null:u,C.cadence=y?null:p),n.abrupt("return",l({url:S,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(function(){var e=g(f().mark((function e(n){var t,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.ok){e.next=6;break}return e.next=3,n.json();case 3:throw i=e.sent,o=(null===i||void 0===i||null===(t=i.errors)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.message)||"Failed to signup, please try again.",new Error(o);case 6:return e.abrupt("return",n.json());case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).then((function(e){return e.url?window.location.assign(e.url):window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(e){throw e})));case 12:case"end":return n.stop()}}),n)})))()},editBilling:function(){var e=arguments;return g(f().mark((function n(){var r,i,a,c,u,p,d,h,g;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]?e[0]:{},i=r.successUrl,a=r.cancelUrl,c=r.subscriptionId,u=new URL(t),n.next=4,s.member.identity();case 4:return p=n.sent,d=o({type:"members",resource:"create-stripe-update-session"}),i||((h=new URL(t)).searchParams.set("stripe","billing-update-success"),i=h.href),a||((g=window.location.href.startsWith(u.href)?new URL(window.location.href):new URL(t)).searchParams.set("stripe","billing-update-cancel"),a=g.href),n.abrupt("return",l({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:p,subscription_id:c,successUrl:i,cancelUrl:a})}).then((function(e){if(!e.ok)throw new Error("Unable to create stripe checkout session");return e.json()})).then((function(e){return window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(e){throw e})));case 9:case"end":return n.stop()}}),n)})))()},updateSubscription:function(e){return g(f().mark((function n(){var t,r,i,a,c,u,p,d,h,g;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.subscriptionId,r=e.tierId,i=e.cadence,a=e.planId,c=e.smartCancel,u=e.cancelAtPeriodEnd,p=e.cancellationReason,n.next=3,s.member.identity();case 3:return d=n.sent,h=o({type:"members",resource:"subscriptions"})+t+"/",g={smart_cancel:c,cancel_at_period_end:u,cancellation_reason:p,identity:d,priceId:a},r&&i&&(delete g.priceId,g.tierId=r,g.cadence=i),n.abrupt("return",l({url:h,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}));case 8:case"end":return n.stop()}}),n)})))()}},s.init=g(f().mark((function e(){var n,t,r,i,o,a,l,u,p;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([s.member.sessionData()]);case 2:return n=e.sent,t=c(n,1),r=t[0],i={},o=[],a=[],l={},e.prev=9,e.next=12,Promise.all([s.site.settings(),s.site.tiers(),s.site.newsletters()]);case 12:u=e.sent,p=c(u,3),l=p[0].settings,a=p[1].tiers,o=p[2].newsletters,i=N(N({},l),{},{newsletters:o,tiers:ro({tiers:a})}),e.next=22;break;case 20:e.prev=20,e.t0=e.catch(9);case 22:return i=Si({site:i}),e.abrupt("return",{site:i,member:r});case 24:case"end":return e.stop()}}),e,null,[[9,20]])}))),s},ys=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){return(0,mr.jsx)("div",{style:{display:"flex",flexDirection:"column",color:"#313131"},children:(0,mr.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",height:"50px"},children:(0,mr.jsx)(Ko,{className:"gh-portal-loadingicon dark"})})})}}]),t}(t(969).Component);t(969);function bs(n){var t=n.error,r=(0,e.useContext)(Cr).onAction;return(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:(0,mr.jsx)(Lo,{})}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"It's not you, it's us"}),(0,mr.jsx)("div",{children:(0,mr.jsx)("p",{className:"gh-portal-text-center",children:t})}),(0,mr.jsx)(Zo,{style:{width:"100%"},retry:!1,onClick:function(){return r("closePopup")},disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})}var xs=function(n){var t=n.onConfirm,r=n.loading,i=n.initialScore,o=(0,e.useContext)(Cr),a=o.onAction,l=o.brandColor,s=c((0,e.useState)(i),2),u=s[0],p=s[1],d=function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.stopPropagation(),e.next=3,t(u);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),h=function(e){var n="gh-feedback-button";return e===u?"".concat(n," gh-feedback-button-selected"):n},m=function(e){return e===u?{color:l}:{}};return(0,mr.jsxs)("div",{className:"gh-portal-confirm-dialog",onMouseDown:function(e){e.stopPropagation()},children:[(0,mr.jsx)("h1",{className:"gh-portal-confirm-title",children:"Give feedback on this post"}),(0,mr.jsxs)("div",{className:"gh-feedback-buttons-group",children:[(0,mr.jsxs)("button",{className:h(1),style:m(1),onClick:function(){return p(1)},children:[(0,mr.jsx)(gs,{}),"More like this"]}),(0,mr.jsxs)("button",{className:h(0),style:m(0),onClick:function(){return p(0)},children:[(0,mr.jsx)(us,{}),"Less like this"]})]}),(0,mr.jsx)(Zo,{classes:"gh-portal-confirm-button",retry:!1,onClick:d,disabled:!1,brandColor:l,label:"Submit feedback",isRunning:r,tabindex:"3"}),(0,mr.jsx)(ua,{close:function(){a("closePopup")}})]})};function ws(e){return _s.apply(this,arguments)}function _s(){return(_s=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.siteUrl,r=n.uuid,i=n.postId,o=n.score,a=vs({siteUrl:t}),e.next=4,a.feedback.add({uuid:r,postId:i,score:o});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ks=function(n){var t=n.action;return(0,e.useEffect)((function(){t()})),(0,mr.jsx)(ys,{})},Ss=function(n){var t=n.positive,r=(0,e.useContext)(Cr),i=r.onAction,o=r.brandColor,a=t?(0,mr.jsx)(gs,{}):(0,mr.jsx)(us,{});return(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-feedback",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)("div",{className:"gh-feedback-icon",children:a}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"Thanks for the feedback!"}),(0,mr.jsx)("p",{className:"gh-portal-text-center",children:"Your input helps shape what gets published."}),(0,mr.jsx)(Zo,{style:{width:"100%"},retry:!1,onClick:function(){return i("closePopup")},disabled:!1,brandColor:o,label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})};var Es=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={email:""},r}return y(t,[{key:"componentDidMount",value:function(){this.context.member&&this.context.onAction("switchPage",{page:"accountHome"})}},{key:"handleSignin",value:function(e){var n=this;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),g(f().mark((function e(){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.state,r=t.email,i=t.errors,i&&Object.values(i).filter((function(e){return!!e})).length>0||n.context.onAction("signin",{email:r});case 3:case"end":return e.stop()}}),e)}))))}},{key:"handleInputChange",value:function(e,n){var t=n.name;this.setState(j({},t,e.target.value))}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.handleSignin(e)}},{key:"getInputFields",value:function(e){var n=e.state,t=n.errors||{};return[{type:"email",value:n.email,placeholder:"jamie@example.com",label:"Email",name:"email",required:!0,errorMessage:t.email||"",autoFocus:!0}]}},{key:"renderSubmitButton",value:function(){var e=this,n=this.context.action,t=!1,r="signin:running"===n,i=r?"Sending login link...":"Continue",o=!!r;return"signin:failed"===n&&(i="Retry",t=!0),(0,mr.jsx)(Zo,{retry:t,style:{width:"100%"},onClick:function(n){return e.handleSignin(n)},disabled:o,brandColor:this.context.brandColor,label:i,isRunning:r})}},{key:"renderSignupMessage",value:function(){var e=this,n=this.context.brandColor;return(0,mr.jsxs)("div",{className:"gh-portal-signup-message",children:[(0,mr.jsx)("div",{children:"Don't have an account?"}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:function(){return e.context.onAction("switchPage",{page:"signup"})},children:(0,mr.jsx)("span",{children:"Sign up"})})]})}},{key:"renderForm",value:function(){var e=this;return(0,mr.jsx)("section",{children:(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)(Nl,{fields:this.getInputFields({state:this.state}),onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n,t){return e.onKeyDown(n,t)}})})})}},{key:"renderSiteLogo",value:function(){var e=this.context.site.icon;return e?("url(".concat(e,")"),(0,mr.jsx)("img",{className:"gh-portal-signup-logo",src:e,alt:this.context.site.title})):null}},{key:"renderFormHeader",value:function(){return(0,mr.jsxs)("header",{className:"gh-portal-signin-header",children:[this.renderSiteLogo(),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"Sign in"})]})}},{key:"render",value:function(){return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(ua,{}),(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container",children:[(0,mr.jsxs)("div",{className:"gh-portal-content signin",children:[this.renderFormHeader(),this.renderForm()]}),(0,mr.jsxs)("footer",{className:"gh-portal-signin-footer",children:[this.renderSubmitButton(),this.renderSignupMessage()]})]})]})}}]),t}(t(969).Component);Es.contextType=Cr;var js,Cs,Ns,Ps=function(e){x(t,e);var n=E(t);function t(e,r){var i;m(this,t),i=n.call(this,e,r);var o=r.member||{},a=o.name,l=void 0===a?"":a,s=o.email,c=void 0===s?"":s;return i.state={name:l,email:c},i}return y(t,[{key:"componentDidMount",value:function(){this.context.member||this.context.onAction("switchPage",{page:"signin"})}},{key:"handleSignout",value:function(e){e.preventDefault(),this.context.onAction("signout")}},{key:"onBack",value:function(e){this.context.onAction("back")}},{key:"onProfileSave",value:function(e){var n=this;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),(function(){var e=n.state,t=e.email,r=e.name,i=e.errors;i&&Object.values(i).filter((function(e){return!!e})).length>0||(n.context.onAction("clearPopupNotification"),n.context.onAction("updateProfile",{email:t,name:r}))}))}},{key:"renderSaveButton",value:function(){var e=this,n="updateProfile:running"===this.context.action,t="Save";"updateProfile:failed"===this.context.action&&(t="Retry");var r=!!n;return(0,mr.jsx)(Zo,{isRunning:n,onClick:function(n){return e.onProfileSave(n)},disabled:r,brandColor:this.context.brandColor,label:t,style:{width:"100%"}})}},{key:"renderDeleteAccountButton",value:function(){return(0,mr.jsx)("div",{style:{cursor:"pointer",color:"red"},role:"button",children:"Delete account"})}},{key:"renderAccountFooter",value:function(){return(0,mr.jsx)("footer",{className:"gh-portal-action-footer",children:this.renderSaveButton()})}},{key:"renderHeader",value:function(){var e=this;return(0,mr.jsxs)("header",{className:"gh-portal-detail-header",children:[(0,mr.jsx)(oa,{brandColor:this.context.brandColor,hidden:!this.context.lastPage,onClick:function(n){return e.onBack(n)}}),(0,mr.jsx)("h3",{className:"gh-portal-main-title",children:"Account settings"})]})}},{key:"renderUserAvatar",value:function(){var e=this.context.member&&this.context.member.avatar_image;return(0,mr.jsx)("div",{style:{position:"relative",display:"flex",width:"64px",height:"64px",marginBottom:"6px",borderRadius:"100%",boxShadow:"0 0 0 3px #fff",border:"1px solid gray",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:(0,mr.jsx)(jr,{gravatar:e,style:{userIcon:{color:"black",width:"56px",height:"56px"}}})})}},{key:"handleInputChange",value:function(e,n){var t=n.name;this.setState(j({},t,e.target.value))}},{key:"getInputFields",value:function(e){var n=e.state,t=e.fieldNames,r=n.errors||{},i=[{type:"text",value:n.name,placeholder:"Jamie Larson",label:"Name",name:"name",required:!0,errorMessage:r.name||""},{type:"email",value:n.email,placeholder:"jamie@example.com",label:"Email",name:"email",required:!0,errorMessage:r.email||""}];return t&&t.length>0?i.filter((function(e){return t.includes(e.name)})):i}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.onProfileSave(e)}},{key:"renderProfileData",value:function(){var e=this;return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)(Nl,{fields:this.getInputFields({state:this.state}),onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n,t){return e.onKeyDown(n,t)}})})}},{key:"render",value:function(){return this.context.member?(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("div",{className:"gh-portal-content with-footer",children:[(0,mr.jsx)(ua,{}),this.renderHeader(),(0,mr.jsx)("div",{className:"gh-portal-section",children:this.renderProfileData()})]}),this.renderAccountFooter()]}):null}}]),t}(t(969).Component);Ps.contextType=Cr;var Os=["title","titleId"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ts.apply(this,arguments)}function Is(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Ds(n,t){var r=n.title,i=n.titleId,o=Is(n,Os);return e.createElement("svg",Ts({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),js||(js=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}\n "))),void 0===r?e.createElement("title",{id:i},"check-circle-1"):r?e.createElement("title",{id:i},r):null,Cs||(Cs=e.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"})),Ns||(Ns=e.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25})))}var Rs=e.forwardRef(Ds);t.p,t(969);function Ls(){var n=(0,e.useContext)(Cr),t=n.brandColor,r=n.lastPage,i=n.onAction;return(0,mr.jsxs)("header",{className:"gh-portal-detail-header",children:[(0,mr.jsx)(oa,{brandColor:t,hidden:!r,onClick:function(e){i("back")}}),(0,mr.jsx)("h3",{className:"gh-portal-main-title",children:"Email preferences"})]})}function Us(e){var n=e.show,t=e.checked,r=[];return n&&r.push("gh-portal-checkmark-show"),t&&r.push("gh-portal-toggle-checked"),r.push("gh-portal-checkmark-container"),(0,mr.jsx)("div",{className:r.join(" "),children:(0,mr.jsx)(Rs,{className:"gh-portal-checkmark-icon",alt:""})})}function zs(n){var t=n.newsletter,r=n.subscribedNewsletters,i=n.setSubscribedNewsletters,o=r.some((function(e){return e.id===(null===t||void 0===t?void 0:t.id)})),a=c((0,e.useState)(!1),2),l=a[0],s=a[1],u=c((0,e.useState)(null),2),p=u[0],d=u[1];return(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:t.name}),(0,mr.jsx)("p",{children:null===t||void 0===t?void 0:t.description})]}),(0,mr.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,mr.jsx)(Us,{show:l,checked:o}),(0,mr.jsx)(ca,{id:t.id,onToggle:function(e,n){var o=[];if(n){o=r.filter((function(e){return e.id!==t.id})).concat(t),s(!0),clearTimeout(p);var a=setTimeout((function(){s(!1)}),2e3);d(a)}else{o=r.filter((function(e){return e.id!==t.id})),s(!0),clearTimeout(p);var l=setTimeout((function(){s(!1)}),2e3);d(l)}i(o)},checked:o})]})]})}function Ms(n){var t=n.updateCommentNotifications,r=n.isCommentsEnabled,i=!!n.enableCommentNotifications,o=c((0,e.useState)(!1),2),a=o[0],l=o[1],s=c((0,e.useState)(null),2),u=s[0],p=s[1];return r?(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Comments"}),(0,mr.jsx)("p",{children:"Get notified when someone replies to your comment"})]}),(0,mr.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,mr.jsx)(Us,{show:a,checked:i}),(0,mr.jsx)(ca,{id:"comments",onToggle:function(e,n){l(!0),clearTimeout(u);var r=setTimeout((function(){l(!1)}),2e3);p(r),t(n)},checked:i})]})]}):null}function Fs(n){var t=n.subscribedNewsletters,r=n.setSubscribedNewsletters;return Li({site:(0,e.useContext)(Cr).site}).map((function(e){return(0,mr.jsx)(zs,{newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:r},null===e||void 0===e?void 0:e.id)}))}function As(e){var n=e.site;return e.isPaid?(0,mr.jsxs)("p",{style:{textAlign:"center",marginTop:"12px",marginBottom:"0",color:"var(--grey6)"},children:["Unsubscribing from emails will not cancel your paid subscription to ",null===n||void 0===n?void 0:n.title]}):null}function Bs(n){var t=n.notification,r=n.subscribedNewsletters,i=n.updateSubscribedNewsletters,o=n.updateCommentNotifications,a=n.unsubscribeAll,l=n.isPaidMember,s=n.isCommentsEnabled,c=n.enableCommentNotifications,u=(0,e.useContext)(Cr),p=u.brandColor,d=u.site,f=!(null!==r&&void 0!==r&&r.length)&&(s&&!c||!s),h=t||function(){return null};return(0,mr.jsxs)("div",{className:"gh-portal-content with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)(Ls,{}),(0,mr.jsx)(h,{}),(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("div",{className:"gh-portal-list",children:[(0,mr.jsx)(Fs,{subscribedNewsletters:r,setSubscribedNewsletters:function(e){var n=e.map((function(e){return{id:e.id}}));i(n)}}),(0,mr.jsx)(Ms,{isCommentsEnabled:s,enableCommentNotifications:c,updateCommentNotifications:o})]})}),(0,mr.jsx)("footer",{className:"gh-portal-action-footer",children:(0,mr.jsxs)("div",{style:{width:"100%"},children:[(0,mr.jsx)(Zo,{isRunning:!1,onClick:function(e){a()},disabled:f,brandColor:p,isPrimary:!1,label:"Unsubscribe from all emails",isDestructive:!0,style:{width:"100%"}}),(0,mr.jsx)(As,{isPaid:l,site:d})]})})]})}t(969);t(969);function Hs(){var n=(0,e.useContext)(Cr).site,t=n.icon;return t?(0,mr.jsx)("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:n.title}):null}function Ys(){var n=(0,e.useContext)(Cr).site.title||"";return(0,mr.jsxs)("header",{className:"gh-portal-header",children:[(0,mr.jsx)(Hs,{}),(0,mr.jsx)("h2",{className:"gh-portal-publication-title",children:n})]})}function $s(e){return Gs.apply(this,arguments)}function Gs(){return(Gs=g(f().mark((function e(n){var t,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.api,r=n.memberUuid,i=n.newsletters,o=n.enableCommentNotifications,e.prev=1,e.next=4,t.member.updateNewsletters({uuid:r,newsletters:i,enableCommentNotifications:o});case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(1);case 9:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}var Ws,qs={signin:Es,signup:Yl,accountHome:Oa,accountPlan:fl,accountProfile:Ps,accountEmail:function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.onAction,i=n.site,o=be((null===t||void 0===t?void 0:t.newsletters)||[]),a=c((0,e.useState)(o),2),l=a[0],s=a[1],u=i.comments_enabled,p=t.enable_comment_notifications;return(0,e.useEffect)((function(){t||r("switchPage",{page:"signin"})}),[t,r]),(0,e.useEffect)((function(){s((null===t||void 0===t?void 0:t.newsletters)||[])}),[null===t||void 0===t?void 0:t.newsletters]),(0,mr.jsx)(Bs,{notification:null,subscribedNewsletters:l,updateSubscribedNewsletters:function(e){s(e),r("updateNewsletterPreference",{newsletters:e})},updateCommentNotifications:function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r("updateNewsletterPreference",{enableCommentNotifications:n});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),unsubscribeAll:function(){s([]),r("showPopupNotification",{action:"updated:success",message:"Email preference updated."});var e={newsletters:[]};u&&(e.enableCommentNotifications=!1),r("updateNewsletterPreference",e)},isPaidMember:fi({member:t}),isCommentsEnabled:"off"!==u,enableCommentNotifications:p})},signupNewsletter:Sl,unsubscribe:function(){var n=(0,e.useContext)(Cr),t=n.site,r=n.pageData,i=n.onAction,o=vs({siteUrl:t.url}),a=c((0,e.useState)(),2),l=a[0],s=a[1],u=Li({site:t}),p=u.filter((function(e){return e.subscribe_on_signup})),d=c((0,e.useState)(!1),2),h=d[0],m=d[1],v=c((0,e.useState)(p),2),y=v[0],b=v[1],x=c((0,e.useState)(!1),2),w=x[0],_=x[1],k=t.comments_enabled,S=(l||{}).enable_comment_notifications,E=void 0!==S&&S;return(0,e.useEffect)((function(){var e=vs({siteUrl:t.url});g(f().mark((function n(){var t,i,o,a,l;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.member.newsletters({uuid:r.uuid});case 2:if(t=n.sent,s(t),i=(null===t||void 0===t?void 0:t.newsletters)||[],b(i),1!==(null===u||void 0===u?void 0:u.length)||k){n.next=13;break}return n.next=9,$s({api:e,memberUuid:r.uuid,newsletters:[]});case 9:o=n.sent,b(o.newsletters),n.next=25;break;case 13:if(!r.newsletterUuid){n.next=20;break}return n.next=16,$s({api:e,memberUuid:r.uuid,newsletters:null===i||void 0===i?void 0:i.filter((function(e){return e.uuid!==r.newsletterUuid}))});case 16:a=n.sent,b(a.newsletters),n.next=25;break;case 20:if(!r.comments||!k){n.next=25;break}return n.next=23,$s({api:e,memberUuid:r.uuid,enableCommentNotifications:!1});case 23:l=n.sent,s(l);case 25:case"end":return n.stop()}}),n)})))()}),[k,r.uuid,r.newsletterUuid,r.comments,t.url,null===u||void 0===u?void 0:u.length]),null===l?(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:(0,mr.jsx)(Lo,{})}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"That didn't go to plan"}),(0,mr.jsx)("div",{children:(0,mr.jsx)("p",{className:"gh-portal-text-center",children:"We couldn't unsubscribe you as the email address was not found. Please contact the site owner."})}),(0,mr.jsx)(Zo,{style:{width:"100%"},retry:!1,onClick:function(){return i("closePopup")},disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]}):1!==(null===u||void 0===u?void 0:u.length)||k||w?(0,mr.jsx)(Bs,{notification:function(){if(r.comments&&k){var e=h?"gh-portal-hide":"";return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-header-message ".concat(e),children:[(0,mr.jsx)("strong",{children:null===l||void 0===l?void 0:l.email})," will no longer receive emails when someone replies to your comments."]})})}var n=null===u||void 0===u?void 0:u.find((function(e){return e.uuid===r.newsletterUuid})),t=h?"gh-portal-hide":"";return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-header-message ".concat(t),children:[(0,mr.jsx)("strong",{children:null===l||void 0===l?void 0:l.email})," will no longer receive ",(0,mr.jsx)("strong",{children:null===n||void 0===n?void 0:n.name})," newsletter."]})})},subscribedNewsletters:y,updateSubscribedNewsletters:function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(n),m(!0),e.next=4,o.member.updateNewsletters({uuid:r.uuid,newsletters:n});case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),updateCommentNotifications:function(){var e=g(f().mark((function e(n){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.member.updateNewsletters({uuid:r.uuid,enableCommentNotifications:n});case 2:t=e.sent,s(t);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),unsubscribeAll:g(f().mark((function e(){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),b([]),i("showPopupNotification",{action:"updated:success",message:"Email preference updated."}),e.next=5,o.member.updateNewsletters({uuid:r.uuid,newsletters:[],enableCommentNotifications:!1});case 5:n=e.sent,s(n);case 7:case"end":return e.stop()}}),e)}))),isPaidMember:"free"!==(null===l||void 0===l?void 0:l.status),isCommentsEnabled:"off"!==k,enableCommentNotifications:E}):(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-unsubscribe with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)(Ys,{}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"Successfully unsubscribed"}),(0,mr.jsxs)("div",{children:[(0,mr.jsxs)("p",{className:"gh-portal-text-center",children:[(0,mr.jsx)("strong",{children:null===l||void 0===l?void 0:l.email})," will no longer receive this newsletter."]}),(0,mr.jsxs)("p",{className:"gh-portal-text-center",children:["Didn't mean to do this? Manage your preferences",(0,mr.jsx)("button",{className:"gh-portal-btn-link gh-portal-btn-branded gh-portal-btn-inline",onClick:function(){_(!0)},children:"here"}),"."]})]})]})},magiclink:Kl,loading:ys,offer:rs,feedback:function(){var n=(0,e.useContext)(Cr),t=n.site,r=n.pageData,i=n.member,o=r.uuid,a=r.postId,l=r.score,s=c((0,e.useState)(l),2),u=s[0],p=s[1],d=1===u,h=!!i,m=c((0,e.useState)(h),2),v=m[0],y=m[1],b=c((0,e.useState)(h),2),x=b[0],w=b[1],_=c((0,e.useState)(null),2),k=_[0],S=_[1],E=function(){var e=g(f().mark((function e(n){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.prev=1,e.next=4,ws({siteUrl:t.url,uuid:o,postId:a,score:n});case 4:p(n),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(1),r=ms.getMessageFromError(e.t0,"There was a problem submitting your feedback. Please try again or contact the site owner."),S(r);case 11:w(!1);case 12:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(n){return e.apply(this,arguments)}}(),j=function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(n);case 2:y(!0);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return k?(0,mr.jsx)(bs,{error:k}):v?x?(0,mr.jsx)(ks,{action:E}):(0,mr.jsx)(Ss,{positive:d}):(0,mr.jsx)(xs,{onConfirm:j,loading:x,initialScore:u})}},Qs=function(e){var n=e.page;return Object.keys(qs).includes(n)?n:"signup"},Vs=qs,Ks=["title","titleId"];function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Js.apply(this,arguments)}function Xs(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Zs(n,t){var r=n.title,i=n.titleId,o=Xs(n,Ks);return e.createElement("svg",Js({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ws||(Ws=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM11.8326 2.33879C6.37785 2.95189 3.95901 5.20797 3.41126 9.74699C3.34896 10.2632 3.22642 10.7805 3.10443 11.2954C2.93277 12.02 2.76221 12.74 2.76221 13.4458C2.76221 17.9885 6.5856 21.556 11.1283 21.556C12.8959 21.556 14.4433 20.8144 15.8756 20.048C19.0536 18.3478 22.0328 16.2597 22.0328 12.5411C22.0328 9.91512 20.1051 7.56932 18.466 5.5747C18.3834 5.47416 18.3015 5.37451 18.2206 5.27577C17.3866 4.25742 14.4333 2.04643 11.8326 2.33879Z",fill:"#15171A"})))}var ec=e.forwardRef(Zs),nc=(t.p,function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){return(0,mr.jsxs)("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:function(){window.open("https://ghost.org","_blank")},children:[(0,mr.jsx)(ec,{}),"Powered by Ghost"]})}}]),t}(e.Component)),tc=t(969),rc=function(e){e.member;return{modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}}};function ic(e){var n=e.message;return ui()?(0,mr.jsx)("div",{className:"gh-portal-cookiebanner",children:n}):null}var oc=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"componentDidMount",value:function(){var e=this;this.node&&!so(["preview"])&&(this.node.focus(),this.keyUphandler=function(n){"Escape"===n.key&&e.dismissPopup(n)},this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler),this.node.ownerDocument.addEventListener("keyup",this.keyUphandler)),this.sendContainerHeightChangeEvent()}},{key:"dismissPopup",value:function(e){var n,t=e.target&&e.target.tagName;("INPUT"!==t||"INPUT"===t&&!(null!==e&&void 0!==e&&null!==(n=e.target)&&void 0!==n&&n.value))&&this.context.onAction("closePopup")}},{key:"sendContainerHeightChangeEvent",value:function(){var e,n;this.node&&so(["preview"])&&((null===(e=this.node)||void 0===e?void 0:e.clientHeight)!==this.lastContainerHeight&&(this.lastContainerHeight=null===(n=this.node)||void 0===n?void 0:n.clientHeight,window.document.body.style.overflow="hidden",window.document.body.style["scrollbar-width"]="none",window.parent.postMessage({type:"portal-preview-updated",payload:{height:this.lastContainerHeight}},"*")))}},{key:"componentDidUpdate",value:function(){this.sendContainerHeightChangeEvent()}},{key:"componentWillUnmount",value:function(){this.node&&this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler)}},{key:"handlePopupClose",value:function(e){so(["preview"])||(e.preventDefault(),e.target===e.currentTarget&&this.context.onAction("closePopup"))}},{key:"renderActivePage",value:function(){var e=this.context.page;Qs({page:e});var n=Vs[e];return(0,mr.jsx)(n,{})}},{key:"renderPopupNotification",value:function(){var e=this.context.popupNotification;return e&&e.type?(0,mr.jsx)(Zl,{}):null}},{key:"render",value:function(){var e=this,n=this.context,t=n.page,r=n.pageQuery,i=n.site,o=n.customSiteUrl,a=Ni({site:i}).length;Qs({page:t});var l=N({},rc({page:t}).page[t]),s="regular",c="",u=t;switch(t){case"signup":c="Cookies must be enabled in your browser to sign up.";break;case"signin":c="Cookies must be enabled in your browser to sign in.";break;case"accountHome":u="account-home";break;case"accountProfile":u="account-profile";break;case"accountPlan":u="account-plan";break;default:c="Cookies must be enabled in your browser.",u=t}a>1&&!wi({site:i,pageQuery:r})&&"signup"===t&&(u+=" full-size",s="full");var p=Ri({site:i});(p&&a>2||!p&&a>1)&&"accountPlan"===t&&(u+=" full-size",s="full");var d="gh-portal-popup-container";so(["preview"])&&(u+=" preview"),so(["preview"],{customSiteUrl:o})&&!i.disableBackground&&(d+=" preview"),so(["dev"])&&(d+=" dev");var f="".concat(d," ").concat(""," ").concat(u);return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("div",{className:"gh-portal-popup-wrapper "+u,onClick:function(n){return e.handlePopupClose(n)},children:(0,mr.jsxs)("div",{className:f,style:l,ref:function(n){return e.node=n},tabIndex:-1,children:[(0,mr.jsx)(ic,{message:c}),this.renderPopupNotification(),this.renderActivePage(),"full"===s?(0,mr.jsx)("div",{className:"gh-portal-powered inside "+(so(["preview"])?"hidden ":"")+u,children:(0,mr.jsx)(nc,{})}):""]})}),(0,mr.jsx)("div",{className:"gh-portal-powered outside "+(so(["preview"])?"hidden ":"")+u,children:(0,mr.jsx)(nc,{})})]})}}]),t}(tc.Component);oc.contextType=Cr;var ac,lc=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={height:null},r}return y(t,[{key:"renderCurrentPage",value:function(e){var n=Vs[e];return(0,mr.jsx)(n,{})}},{key:"onHeightChange",value:function(e){this.setState({height:e})}},{key:"handlePopupClose",value:function(e){e.preventDefault(),e.target===e.currentTarget&&this.context.onAction("closePopup")}},{key:"renderFrameStyles",value:function(){var e=function(e){var n=e.site,t=ai+'\n.gh-portal-main-title {\n text-align: center;\n color: var(--grey0);\n line-height: 1.1em;\n}\n\n.gh-portal-text-disabled {\n color: var(--grey3);\n font-weight: normal;\n opacity: 0.35;\n}\n\n.gh-portal-text-center {\n text-align: center;\n}\n\n.gh-portal-input-label {\n color: var(--grey1);\n font-size: 1.3rem;\n font-weight: 600;\n margin-bottom: 2px;\n letter-spacing: 0px;\n}\n\n.gh-portal-setting-data {\n color: var(--grey6);\n font-size: 1.3rem;\n line-height: 1.15em;\n}\n\n.gh-portal-error {\n color: var(--red);\n font-size: 1.4rem;\n line-height: 1.6em;\n margin: 12px 0;\n}\n\n/* Buttons\n/* ----------------------------------------------------- */\n.gh-portal-btn {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.5rem;\n font-weight: 500;\n line-height: 1em;\n letter-spacing: 0.2px;\n text-align: center;\n white-space: nowrap;\n text-decoration: none;\n color: var(--grey0);\n background: var(--white);\n border: 1px solid var(--grey12);\n min-width: 80px;\n height: 44px;\n padding: 0 1.8rem;\n border-radius: 6px;\n cursor: pointer;\n transition: all .25s ease;\n box-shadow: none;\n user-select: none;\n outline: none;\n}\n\n.gh-portal-btn:hover {\n border-color: var(--grey10);\n}\n\n.gh-portal-btn:disabled {\n opacity: 0.5 !important;\n cursor: auto;\n}\n\n.gh-portal-btn-container.sticky {\n transition: none;\n position: sticky;\n bottom: 0;\n margin: 0 0 -32px;\n padding: 32px 0 32px;\n background: linear-gradient(0deg, rgba(255,255,255,1) 75%, rgba(255,255,255,0) 100%);\n}\n\n.gh-portal-btn-container.sticky.m28 {\n margin: 0 0 -28px;\n padding: 28px 0 28px;\n}\n\n.gh-portal-btn-container.sticky.m24 {\n margin: 0 0 -24px;\n padding: 24px 0 24px;\n}\n\n.gh-portal-btn-container .gh-portal-btn {\n margin: 0;\n}\n\n.gh-portal-btn-icon svg {\n width: 16px;\n height: 16px;\n margin-right: 4px;\n stroke: currentColor;\n}\n\n.gh-portal-btn-icon svg path {\n stroke: currentColor;\n}\n\n.gh-portal-btn-link {\n line-height: 1;\n background: none;\n padding: 0;\n height: unset;\n min-width: unset;\n box-shadow: none;\n border: none;\n}\n\n.gh-portal-btn-link:hover {\n box-shadow: none;\n opacity: 0.85;\n}\n\n.gh-portal-btn-branded {\n color: var(--brandcolor);\n}\n\n.gh-portal-btn-list {\n font-size: 1.5rem;\n color: var(--brandcolor);\n height: 38px;\n width: unset;\n min-width: unset;\n padding: 0 4px;\n margin: 0 -4px;\n box-shadow: none;\n border: none;\n}\n\n.gh-portal-btn-list:hover {\n box-shadow: none;\n opacity: 0.75;\n}\n\n.gh-portal-btn-logout {\n position: absolute;\n top: 22px;\n left: 24px;\n background: none;\n border: none;\n height: unset;\n color: var(--grey3);\n padding: 0;\n margin: 0;\n z-index: 999;\n box-shadow: none;\n}\n\n.gh-portal-btn-logout .label {\n opacity: 0;\n transform: translateX(-6px);\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-btn-logout:hover {\n padding: 0;\n margin: 0;\n background: none;\n border: none;\n height: unset;\n box-shadow: none;\n}\n\n.gh-portal-btn-logout:hover .label {\n opacity: 1.0;\n transform: translateX(-4px);\n}\n\n.gh-portal-btn-site-title-back {\n transition: transform 0.25s ease-in-out;\n z-index: 10000;\n}\n\n.gh-portal-btn-site-title-back span {\n margin-right: 4px;\n transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);\n}\n\n\n.gh-portal-btn-site-title-back:hover span {\n transform: translateX(-3px);\n}\n\n@media (max-width: 960px) {\n .gh-portal-btn-site-title-back {\n display: none;\n }\n}\n\n.gh-portal-logouticon {\n color: var(--grey9);\n cursor: pointer;\n width: 23px;\n height: 23px;\n padding: 6px;\n transform: translateX(0);\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-logouticon path {\n stroke: var(--grey9);\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-btn-logout:hover .gh-portal-logouticon {\n transform: translateX(-2px);\n}\n\n.gh-portal-btn-logout:hover .gh-portal-logouticon path {\n stroke: var(--grey3);\n}\n\n/* Global layout styles\n/* ----------------------------------------------------- */\n.gh-portal-popup-background {\n position: absolute;\n display: block;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation: fadein 0.2s;\n background: linear-gradient(315deg , rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);\n backdrop-filter: blur(2px);\n -webkit-backdrop-filter: blur(2px);\n -webkit-transform: translate3d(0, 0, 0);\n -moz-transform: translate3d(0, 0, 0);\n -ms-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n.gh-portal-popup-background.preview {\n background: linear-gradient(45deg, rgba(255,255,255,1) 0%, rgba(249,249,250,1) 100%);\n animation: none;\n pointer-events: none;\n}\n\n@keyframes fadein {\n 0% { opacity: 0; }\n 100%{ opacity: 1.0; }\n}\n\n.gh-portal-popup-wrapper {\n position: relative;\n padding: 5vmin 0 0;\n height: 100%;\n max-height: 100vh;\n overflow: scroll;\n}\n\n/* Hiding scrollbars */\n.gh-portal-popup-wrapper {\n padding-right: 30px !important;\n margin-right: -30px !important;\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n\n.gh-portal-popup-wrapper::-webkit-scrollbar {\n display: none;\n}\n\n.gh-portal-popup-wrapper.full-size {\n height: 100vh;\n padding: 0;\n}\n\n.gh-portal-popup-container {\n outline: none;\n position: relative;\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n justify-content: flex-start;\n font-size: 1.5rem;\n text-align: left;\n letter-spacing: 0;\n text-rendering: optimizeLegibility;\n background: var(--white);\n width: 500px;\n margin: 0 auto 40px;\n padding: 32px;\n transform: translateY(0px);\n border-radius: 10px;\n box-shadow: 0 3.8px 2.2px rgba(0, 0, 0, 0.028), 0 9.2px 5.3px rgba(0, 0, 0, 0.04), 0 17.3px 10px rgba(0, 0, 0, 0.05), 0 30.8px 17.9px rgba(0, 0, 0, 0.06), 0 57.7px 33.4px rgba(0, 0, 0, 0.072), 0 138px 80px rgba(0, 0, 0, 0.1);\n animation: popup 0.25s ease-in-out;\n z-index: 9999;\n}\n\n.gh-portal-popup-container.full-size {\n width: 100vw;\n min-height: 100vh;\n justify-content: flex-start;\n animation: popup-full-size 0.25s ease-in-out;\n margin: 0;\n border-radius: 0;\n transform: translateY(0px);\n transform-origin: top;\n padding: 2vmin 6vmin;\n padding-bottom: 4vw;\n}\n\n.gh-portal-popup-container.full-size.account-plan {\n justify-content: flex-start;\n padding-top: 4vw;\n}\n\n.gh-portal-popup-container.preview {\n animation: none !important;\n}\n\n@keyframes popup {\n 0% {\n transform: translateY(-30px);\n opacity: 0;\n }\n 1% {\n transform: translateY(30px);\n opacity: 0;\n }\n 100%{\n transform: translateY(0);\n opacity: 1.0;\n }\n}\n\n@keyframes popup-full-size {\n 0% {\n transform: translateY(0px);\n opacity: 0;\n }\n 1% {\n transform: translateY(30px);\n opacity: 0;\n }\n 100%{\n transform: translateY(0);\n opacity: 1.0;\n }\n}\n\n.gh-portal-powered {\n position: absolute;\n bottom: 24px;\n left: 24px;\n z-index: 9999;\n}\n\n.gh-portal-powered a {\n border: none;\n display: flex;\n align-items: center;\n line-height: 0;\n border-radius: 4px;\n background: #ffffff;\n padding: 6px 8px 6px 7px;\n color: #303336;\n font-size: 1.25rem;\n letter-spacing: -0.2px;\n font-weight: 500;\n text-decoration: none;\n transition: color 0.5s ease-in-out;\n width: 146px;\n height: 28px;\n line-height: 28px;\n}\n\n.gh-portal-powered a:hover {\n color: #15171A;\n}\n\n@keyframes powered-fade-in {\n 0% {\n transform: scale(0.98);\n opacity: 0;\n }\n 75% {\n opacity: 1.0;\n }\n 100%{\n transform: scale(1);\n }\n}\n\n.gh-portal-powered a svg {\n height: 16px;\n width: 16px;\n margin: 0 6px 0 0;\n}\n\n.gh-portal-powered.outside.full-size {\n display: none;\n}\n\n/* Sets the main content area of the popup scrollable.\n/* 12vw is the sum horizontal padding of the popup container\n*/\n.gh-portal-content {\n position: relative;\n}\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n.gh-portal-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.gh-portal-content {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n\n.gh-portal-closeicon-container {\n position: fixed;\n top: 24px;\n right: 24px;\n z-index: 10000;\n}\n\n.gh-portal-closeicon {\n color: var(--grey10);\n cursor: pointer;\n width: 20px;\n height: 20px;\n padding: 12px;\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-closeicon:hover {\n color: var(--grey5);\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-closeicon-container,\n.gh-portal-popup-container.full-size .gh-portal-closeicon-container {\n top: 20px;\n right: 20px;\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-closeicon,\n.gh-portal-popup-container.full-size .gh-portal-closeicon {\n color: var(--grey6);\n width: 24px;\n height: 24px;\n}\n\n.gh-portal-logout-container {\n position: absolute;\n top: 8px;\n left: 8px;\n}\n\n.gh-portal-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-bottom: 24px;\n}\n\n.gh-portal-section {\n margin-bottom: 40px;\n}\n\n.gh-portal-section.form {\n margin-bottom: 20px;\n}\n\n.gh-portal-detail-header {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: -2px 0 40px;\n}\n\n.gh-portal-detail-footer .gh-portal-btn {\n min-width: 90px;\n}\n\n.gh-portal-action-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.gh-portal-list-header {\n font-size: 1.25rem;\n font-weight: 500;\n color: var(--grey3);\n text-transform: uppercase;\n letter-spacing: 0.2px;\n line-height: 1.7em;\n margin-bottom: 4px;\n}\n\n.gh-portal-list + .gh-portal-list-header {\n margin-top: 28px;\n}\n\n.gh-portal-list + .gh-portal-action-footer {\n margin-top: 40px;\n}\n\n.gh-portal-list {\n background: var(--white);\n padding: 20px;\n border-radius: 8px;\n border: 1px solid var(--grey12);\n}\n\n.gh-portal-newsletter-selection {\n max-width: 460px;\n margin: 0 auto;\n}\n\n.gh-portal-newsletter-selection .gh-portal-list {\n margin-bottom: 40px;\n}\n\n.gh-portal-lock-icon-container {\n display: flex;\n justify-content: center;\n flex: 44px 0 0;\n padding-top: 6px;\n}\n\n.gh-portal-lock-icon {\n width: 14px;\n height: 14px;\n overflow: visible;\n}\n\n.gh-portal-lock-icon path {\n color: var(--grey2);\n}\n\n.gh-portal-text-large {\n font-size: 1.8rem;\n font-weight: 600;\n}\n\n.gh-portal-list section {\n display: flex;\n align-items: center;\n margin: 0 -20px 20px;\n padding: 0 20px 20px;\n border-bottom: 1px solid var(--grey12);\n}\n\n.gh-portal-list section:last-of-type {\n margin-bottom: 0;\n padding-bottom: 0;\n border: none;\n}\n\n.gh-portal-list-detail {\n flex-grow: 1;\n}\n\n.gh-portal-list-detail h3 {\n font-size: 1.5rem;\n font-weight: 600;\n}\n\n.gh-portal-list-detail.gh-portal-list-big h3 {\n font-size: 1.6rem;\n font-weight: 600;\n}\n\n.gh-portal-list-detail p {\n font-size: 1.45rem;\n letter-spacing: 0.3px;\n line-height: 1.3em;\n padding: 0;\n margin: 5px 8px 0 0;\n color: var(--grey6);\n word-break: break-word;\n}\n\n.gh-portal-list-detail.gh-portal-list-big p {\n font-size: 1.5rem;\n}\n\n.gh-portal-list-toggle-wrapper {\n align-items: flex-start !important;\n justify-content: space-between;\n}\n\n.gh-portal-list-toggle-wrapper .gh-portal-list-detail {\n padding: 4px 24px 4px 0px;\n}\n\n.gh-portal-list-detail .old-price {\n text-decoration: line-through;\n}\n\n.gh-portal-right-arrow {\n line-height: 1;\n color: var(--grey8);\n}\n\n.gh-portal-right-arrow svg {\n width: 17px;\n height: 17px;\n margin-top: 1px;\n margin-right: -6px;\n}\n\n.gh-portal-expire-warning {\n text-align: center;\n color: var(--red);\n font-weight: 500;\n font-size: 1.4rem;\n margin: 12px 0;\n}\n\n.gh-portal-cookiebanner {\n background: var(--red);\n color: var(--white);\n text-align: center;\n font-size: 1.4rem;\n letter-spacing: 0.2px;\n line-height: 1.4em;\n padding: 8px;\n}\n\n.gh-portal-publication-title {\n text-align: center;\n font-size: 1.6rem;\n letter-spacing: -.1px;\n font-weight: 700;\n text-transform: uppercase;\n color: #15212a;\n margin-top: 6px;\n}\n\n/* Icons\n/* ----------------------------------------------------- */\n.gh-portal-icon {\n color: var(--brandcolor);\n}\n\n/* Spacing modifiers\n/* ----------------------------------------------------- */\n.gh-portal-strong { font-weight: 600; }\n\n.mt1 { margin-top: 4px; }\n.mt2 { margin-top: 8px; }\n.mt3 { margin-top: 12px; }\n.mt4 { margin-top: 16px; }\n.mt5 { margin-top: 20px; }\n.mt6 { margin-top: 24px; }\n.mt7 { margin-top: 28px; }\n.mt8 { margin-top: 32px; }\n.mt9 { margin-top: 36px; }\n.mt10 { margin-top: 40px; }\n\n.mr1 { margin-right: 4px; }\n.mr2 { margin-right: 8px; }\n.mr3 { margin-right: 12px; }\n.mr4 { margin-right: 16px; }\n.mr5 { margin-right: 20px; }\n.mr6 { margin-right: 24px; }\n.mr7 { margin-right: 28px; }\n.mr8 { margin-right: 32px; }\n.mr9 { margin-right: 36px; }\n.mr10 { margin-right: 40px; }\n\n.mb1 { margin-bottom: 4px; }\n.mb2 { margin-bottom: 8px; }\n.mb3 { margin-bottom: 12px; }\n.mb4 { margin-bottom: 16px; }\n.mb5 { margin-bottom: 20px; }\n.mb6 { margin-bottom: 24px; }\n.mb7 { margin-bottom: 28px; }\n.mb8 { margin-bottom: 32px; }\n.mb9 { margin-bottom: 36px; }\n.mb10 { margin-bottom: 40px; }\n\n.ml1 { margin-left: 4px; }\n.ml2 { margin-left: 8px; }\n.ml3 { margin-left: 12px; }\n.ml4 { margin-left: 16px; }\n.ml5 { margin-left: 20px; }\n.ml6 { margin-left: 24px; }\n.ml7 { margin-left: 28px; }\n.ml8 { margin-left: 32px; }\n.ml9 { margin-left: 36px; }\n.ml10 { margin-left: 40px; }\n\n.pt1 { padding-top: 4px; }\n.pt2 { padding-top: 8px; }\n.pt3 { padding-top: 12px; }\n.pt4 { padding-top: 16px; }\n.pt5 { padding-top: 20px; }\n.pt6 { padding-top: 24px; }\n.pt7 { padding-top: 28px; }\n.pt8 { padding-top: 32px; }\n.pt9 { padding-top: 36px; }\n.pt10 { padding-top: 40px; }\n\n.pr1 { padding-right: 4px; }\n.pr2 { padding-right: 8px; }\n.pr3 { padding-right: 12px; }\n.pr4 { padding-right: 16px; }\n.pr5 { padding-right: 20px; }\n.pr6 { padding-right: 24px; }\n.pr7 { padding-right: 28px; }\n.pr8 { padding-right: 32px; }\n.pr9 { padding-right: 36px; }\n.pr10 { padding-right: 40px; }\n\n.pb1 { padding-bottom: 4px; }\n.pb2 { padding-bottom: 8px; }\n.pb3 { padding-bottom: 12px; }\n.pb4 { padding-bottom: 16px; }\n.pb5 { padding-bottom: 20px; }\n.pb6 { padding-bottom: 24px; }\n.pb7 { padding-bottom: 28px; }\n.pb8 { padding-bottom: 32px; }\n.pb9 { padding-bottom: 36px; }\n.pb10 { padding-bottom: 40px; }\n\n.pl1 { padding-left: 4px; }\n.pl2 { padding-left: 8px; }\n.pl3 { padding-left: 12px; }\n.pl4 { padding-left: 16px; }\n.pl5 { padding-left: 20px; }\n.pl6 { padding-left: 24px; }\n.pl7 { padding-left: 28px; }\n.pl8 { padding-left: 32px; }\n.pl9 { padding-left: 36px; }\n.pl10 { padding-left: 40px; }\n\n.hidden { display: none !important; }\n\n .gh-portal-account-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0 0 32px;\n }\n\n .gh-portal-account-header .gh-portal-avatar {\n margin: 6px 0 8px !important;\n }\n\n .gh-portal-account-data {\n margin-bottom: 40px;\n }\n\n footer.gh-portal-account-footer {\n display: flex;\n }\n\n .gh-portal-account-footer.paid {\n margin-top: 12px;\n }\n\n .gh-portal-account-footermenu {\n display: flex;\n align-items: center;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .gh-portal-account-footerright {\n display: flex;\n flex-grow: 1;\n align-items: center;\n justify-content: flex-end;\n }\n\n .gh-portal-account-footermenu li {\n margin-right: 16px;\n }\n\n .gh-portal-account-footermenu li:last-of-type {\n margin-right: 0;\n }\n\n .gh-portal-freeaccount-newsletter {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 24px;\n }\n\n .gh-portal-freeaccount-newsletter .label {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n }\n\n .gh-portal-free-ctatext {\n margin-top: -12px;\n }\n\n .gh-portal-cancelcontinue-container {\n margin: 24px 0 32px;\n }\n\n .gh-portal-billing-button-loader {\n width: 32px;\n height: 32px;\n margin-right: -3px;\n opacity: 0.6;\n }\n\n .gh-portal-product-icon {\n width: 52px;\n margin-right: 12px;\n border-radius: 2px;\n }\n\n .gh-portal-account-discountcontainer {\n position: relative;\n display: flex;\n align-items: center;\n }\n\n .gh-portal-account-old-price {\n text-decoration: line-through;\n color: var(--grey9) !important;\n }\n\n .gh-portal-account-tagicon {\n width: 16px;\n height: 16px;\n color: var(--brandcolor);\n margin-right: 5px;\n z-index: 999;\n }\n\n @media (max-width: 390px) {\n .gh-portal-account-footer {\n padding: 0 !important;\n }\n }\n\n @media (max-width: 340px) {\n .gh-portal-account-footer {\n padding: 0 !important;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .gh-portal-account-footer .gh-portal-account-footerright {\n justify-content: flex-start;\n }\n }\n\n .account-plan.full-size .gh-portal-main-title {\n font-size: 3.2rem;\n margin-top: 44px;\n }\n\n .gh-portal-accountplans-main {\n margin-top: 24px;\n margin-bottom: 0;\n }\n\n .gh-portal-expire-container {\n margin: 32px 0 0;\n }\n\n .gh-portal-cancellation-form p {\n margin-bottom: 12px;\n }\n\n .gh-portal-cancellation-form .gh-portal-input-section {\n margin-bottom: 20px;\n }\n\n .gh-portal-cancellation-form .gh-portal-input {\n resize: none;\n width: 100%;\n height: 62px;\n padding: 6px 12px;\n }\n\n .gh-portal-input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n\n display: block;\n box-sizing: border-box;\n font-size: 1.5rem;\n color: inherit;\n background: transparent;\n outline: none;\n border: 1px solid var(--grey11);\n border-radius: 6px;\n width: 100%;\n height: 44px;\n padding: 0 12px;\n margin-bottom: 18px;\n letter-spacing: 0.2px;\n transition: border-color 0.25s ease-in-out;\n }\n\n .gh-portal-input-labelcontainer {\n display: flex;\n justify-content: space-between;\n width: 100%;\n }\n\n .gh-portal-input-labelcontainer p {\n color: var(--red);\n font-size: 1.3rem;\n letter-spacing: 0.35px;\n line-height: 1.6em;\n margin-bottom: 0;\n }\n\n .gh-portal-input-label.hidden {\n display: none;\n }\n\n .gh-portal-input:focus {\n border-color: var(--grey8);\n }\n\n .gh-portal-input.error {\n border-color: var(--red);\n }\n\n .gh-portal-input::placeholder {\n color: var(--grey8);\n }\n\n .gh-portal-popup-container:not(.preview) .gh-portal-input:disabled {\n background: var(--grey13);\n color: var(--grey9);\n box-shadow: none;\n }\n\n .gh-portal-popup-container:not(.preview) .gh-portal-input:disabled::placeholder {\n color: var(--grey9);\n }\n\n .gh-portal-plans-container {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--grey11);\n border-radius: 5px;\n }\n\n .gh-portal-plan-section {\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n align-items: center;\n justify-items: center;\n font-size: 1.4rem;\n line-height: 1.35em;\n border-right: 1px solid var(--grey11);\n padding: 24px 10px;\n cursor: pointer;\n user-select: none;\n }\n\n .gh-portal-change-plan-section {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n .gh-portal-plans-container.disabled .gh-portal-plan-section {\n cursor: auto;\n }\n\n .gh-portal-plan-section.checked::before {\n position: absolute;\n display: block;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n content: "";\n z-index: 999;\n border: 2px solid var(--brandcolor);\n pointer-events: none;\n }\n\n .gh-portal-plan-section:first-of-type::before {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n\n .gh-portal-plan-section:last-of-type::before {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n }\n\n .gh-portal-plan-section:last-of-type {\n border-right: none;\n }\n\n .gh-portal-plans-container:not(.empty-selected-benefits) .gh-portal-plan-section::before {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n .gh-portal-plans-container.has-discount {\n margin-top: 40px;\n }\n\n .gh-portal-plans-container.has-discount,\n .gh-portal-plans-container.has-discount .gh-portal-plan-section:last-of-type::before {\n border-top-right-radius: 0;\n }\n\n .gh-portal-plans-container.is-change-plan .gh-portal-plan-section::before {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n .gh-portal-plans-container.disabled .gh-portal-plan-section.checked::before {\n opacity: 0.3;\n }\n\n .gh-portal-plan-pricelabel {\n display: flex;\n flex-direction: row;\n min-height: 28px;\n margin-top: 2px;\n }\n\n .gh-portal-plans-container .gh-portal-plan-pricelabel {\n min-height: unset;\n }\n\n .gh-portal-plan-pricecontainer {\n display: flex;\n }\n\n .gh-portal-plan-priceinterval {\n font-size: 1.25rem;\n line-height: 2;\n color: var(--grey7);\n }\n\n .gh-portal-plan-name {\n display: flex;\n align-items: center;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1.0em;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n margin-top: 4px;\n text-align: center;\n min-height: 24px;\n word-break: break-word;\n }\n\n .gh-portal-plan-currency {\n position: relative;\n bottom: 2px;\n font-size: 1.4rem;\n font-weight: 500;\n letter-spacing: 0.4px;\n }\n\n .gh-portal-plan-currency-code {\n margin-right: 2px;\n font-size: 1.15rem;\n }\n\n .gh-portal-plan-price {\n font-size: 2.2rem;\n font-weight: 500;\n letter-spacing: 0.1px;\n }\n\n .gh-portal-plan-type {\n color: var(--grey7);\n }\n\n .gh-portal-plan-featurewrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n border-top: 1px solid var(--grey12);\n padding-top: 12px;\n width: 100%;\n }\n\n .gh-portal-plan-feature {\n font-size: 1.25rem;\n font-weight: 500;\n line-height: 1.25em;\n text-align: center;\n letter-spacing: 0.2px;\n word-break: break-word;\n }\n\n .gh-portal-content.signup.singleplan .gh-portal-plan-section {\n cursor: auto;\n }\n\n .gh-portal-content.signup.singleplan .gh-portal-plan-section.checked::before {\n display: none;\n }\n\n .gh-portal-content.signup.singleplan .gh-portal-plan-name {\n margin-top: 0;\n }\n\n .gh-portal-plan-section:not(.checked)::before {\n position: absolute;\n display: block;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n content: "";\n z-index: 999;\n border: 1px solid var(--brandcolor);\n pointer-events: none;\n opacity: 0;\n transition: all 0.2s ease-in-out;\n }\n\n .gh-portal-plans-container.disabled .gh-portal-plan-section:not(.checked):hover::before {\n opacity: 0;\n }\n\n .gh-portal-plans-container.hide-checkbox .gh-portal-plan-section {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n\n .gh-portal-plan-current {\n display: block;\n font-size: 1.25rem;\n letter-spacing: 0.2px;\n line-height: 1.25em;\n color: var(--brandcolor);\n margin: 3px 0 -2px;\n }\n\n .gh-portal-plans-container:not(.empty-selected-benefits) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n .gh-portal-plans-container.is-change-plan {\n border-radius: 0 0 5px 5px;\n border-top: none;\n }\n\n .gh-portal-plans-container.is-change-plan .gh-portal-plan-section {\n min-height: 90px;\n }\n\n .gh-portal-plan-product {\n border: 1px solid var(--grey11);\n border-radius: 5px;\n }\n\n .gh-portal-plan-product:not(:last-of-type) {\n margin-bottom: 20px;\n }\n\n .gh-portal-plan-productname {\n border-radius: 5px 5px 0 0;\n padding: 2px 10px;\n font-size: 1.25rem;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n font-weight: 600;\n border-bottom: 1px solid var(--grey12);\n }\n\n .gh-portal-accountplans-main .gh-portal-plan-section:hover:not(.checked) {\n background: var(--grey14);\n }\n\n .gh-portal-accountplans-main .gh-portal-plan-section:last-of-type {\n border-radius: 0 0 5px 5px;\n }\n\n .gh-portal-singleproduct-benefits {\n display: flex;\n flex-direction: column;\n border: 1px solid var(--grey11);\n border-top: none !important;\n margin: 0 0 4px !important;\n padding: 16px 24px 12px !important;\n border-radius: 0 0 5px 5px;\n }\n\n .gh-portal-singleproduct-benefits.onlyfree {\n border-top: 1px solid var(--grey11) !important;\n border-radius: 5px;\n margin-top: 30px !important;\n }\n\n .gh-portal-singleproduct-benefits .gh-portal-product-benefit {\n padding: 0 8px;\n }\n\n .gh-portal-singleproduct-benefits .gh-portal-product-benefit:last-of-type {\n margin-bottom: 16px;\n }\n\n .gh-portal-singleproduct-benefits.onlyfree .gh-portal-product-benefit:last-of-type {\n margin-bottom: 4px;\n }\n\n .gh-portal-singleproduct-benefits:not(.no-benefits) .gh-portal-product-description {\n border-bottom: 1px solid var(--grey12);\n padding-bottom: 20px;\n margin-bottom: 16px;\n }\n'+function(e){return e.site,'\n .gh-portal-products {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .gh-portal-products-pricetoggle {\n position: relative;\n display: flex;\n background: #F3F3F3;\n width: 100%;\n border-radius: 999px;\n padding: 4px;\n height: 44px;\n margin: 0 0 40px;\n }\n\n .gh-portal-products-pricetoggle:before {\n position: absolute;\n content: "";\n display: block;\n width: 50%;\n top: 4px;\n bottom: 4px;\n right: 4px;\n background: #fff;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);\n border-radius: 999px;\n transition: all 0.15s ease-in-out;\n }\n\n .gh-portal-products-pricetoggle.left:before {\n transform: translateX(calc(-100% + 8px));\n }\n\n .gh-portal-products-pricetoggle .gh-portal-btn {\n border: 0;\n height: 100% !important;\n width: 50%;\n border-radius: 999px;\n color: var(--grey7);\n background: transparent;\n font-size: 1.5rem;\n }\n\n .gh-portal-products-pricetoggle .gh-portal-btn.active {\n border: 0;\n height: 100%;\n width: 50%;\n color: var(--grey0);\n /*background: white;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);*/\n }\n\n .gh-portal-priceoption-label {\n font-size: 1.4rem;\n font-weight: 400;\n letter-spacing: 0.3px;\n margin: 0 6px;\n min-width: 180px;\n }\n\n .gh-portal-priceoption-label.monthly {\n text-align: right;\n }\n\n .gh-portal-priceoption-label.inactive {\n color: var(--grey8);\n }\n\n .gh-portal-products-grid {\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n justify-content: center;\n gap: 40px;\n margin: 0 auto;\n padding: 0;\n width: 100%;\n }\n\n .gh-portal-product-card {\n flex: 1;\n max-width: 420px;\n min-width: 320px;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: stretch;\n background: white;\n padding: 32px;\n border-radius: 7px;\n border: 1px solid var(--grey11);\n min-height: 200px;\n transition: border-color 0.25s ease-in-out;\n }\n\n .gh-portal-product-card.top {\n border-bottom: none;\n border-radius: 7px 7px 0 0;\n padding-bottom: 0;\n }\n\n .gh-portal-product-card.bottom {\n border-top: none;\n border-radius: 0 0 7px 7px;\n padding-top: 0;\n }\n\n .gh-portal-product-card:not(.disabled):hover {\n border-color: var(--grey9);\n }\n\n .gh-portal-product-card.checked::before {\n position: absolute;\n display: block;\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n content: "";\n z-index: 999;\n border: 0px solid var(--brandcolor);\n pointer-events: none;\n border-radius: 7px;\n }\n\n .gh-portal-product-card-header {\n width: 100%;\n min-height: 56px;\n }\n\n .gh-portal-product-card-name-trial {\n display: flex;\n align-items: center;\n }\n\n .gh-portal-product-card-name-trial .gh-portal-discount-label {\n margin-top: -4px;\n }\n\n .gh-portal-product-card-details {\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .gh-portal-product-name {\n font-size: 1.8rem;\n font-weight: 600;\n line-height: 1.3em;\n letter-spacing: 0px;\n margin-top: -4px;\n word-break: break-word;\n width: 100%;\n color: var(--brandcolor);\n }\n\n .gh-portal-discount-label-trial {\n color: var(--brandcolor);\n font-weight: 600;\n font-size: 1.3rem;\n line-height: 1;\n margin-top: 4px;\n }\n\n .gh-portal-discount-label {\n position: relative;\n font-size: 1.25rem;\n line-height: 1em;\n font-weight: 600;\n letter-spacing: 0.3px;\n color: var(--grey0);\n padding: 6px 9px;\n text-align: center;\n white-space: nowrap;\n border-radius: 999px;\n margin-right: -4px;\n max-height: 24.5px;\n }\n\n .gh-portal-discount-label:before {\n position: absolute;\n content: "";\n display: block;\n background: var(--brandcolor);\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 999px;\n opacity: 0.2;\n }\n\n .gh-portal-product-card-price-trial {\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: space-between;\n flex-wrap: wrap;\n row-gap: 10px;\n column-gap: 4px;\n width: 100%;\n }\n\n .gh-portal-product-card-pricecontainer {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n margin-top: 16px;\n }\n\n .gh-portal-product-price {\n display: flex;\n justify-content: center;\n color: var(--grey0);\n }\n\n .gh-portal-product-price .currency-sign {\n align-self: flex-start;\n font-size: 2.7rem;\n font-weight: 700;\n line-height: 1.135em;\n }\n\n .gh-portal-product-price .currency-sign.long {\n margin-right: 5px;\n }\n\n .gh-portal-product-price .amount {\n font-size: 3.5rem;\n font-weight: 700;\n line-height: 1em;\n letter-spacing: -1.3px;\n color: var(--grey0);\n }\n\n .gh-portal-product-price .amount.trial-duration {\n letter-spacing: -0.022em;\n }\n\n .gh-portal-product-price .billing-period {\n align-self: flex-end;\n font-size: 1.5rem;\n line-height: 1.6em;\n color: var(--grey5);\n letter-spacing: 0.3px;\n margin-left: 5px;\n }\n\n .gh-portal-product-alternative-price {\n font-size: 1.3rem;\n line-height: 1.6em;\n color: var(--grey8);\n letter-spacing: 0.3px;\n display: none;\n }\n\n .after-trial-amount {\n display: block;\n font-size: 1.5rem;\n color: var(--grey5);\n margin-top: 6px;\n margin-bottom: 6px;\n line-height: 1;\n }\n\n .gh-portal-product-card-detaildata {\n flex: 1;\n }\n\n .gh-portal-product-description {\n font-size: 1.55rem;\n font-weight: 600;\n line-height: 1.4em;\n width: 100%;\n margin-top: 16px;\n }\n\n .gh-portal-product-benefits {\n font-size: 1.5rem;\n line-height: 1.4em;\n width: 100%;\n margin-top: 16px;\n }\n\n .gh-portal-product-benefit {\n display: flex;\n align-items: flex-start;\n margin-bottom: 10px;\n }\n\n .gh-portal-benefit-checkmark {\n width: 14px;\n height: 14px;\n min-width: 14px;\n margin: 3px 10px 0 0;\n overflow: visible;\n }\n\n .gh-portal-benefit-checkmark polyline,\n .gh-portal-benefit-checkmark g {\n stroke-width: 3px;\n }\n\n .gh-portal-products-grid.change-plan {\n padding: 0;\n }\n\n .gh-portal-btn-product {\n position: sticky;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n width: 100%;\n justify-self: flex-end;\n padding: 40px 0 32px;\n margin-bottom: -32px;\n /*background: rgb(255,255,255);\n background: linear-gradient(0deg, rgba(255,255,255,1) 75%, rgba(255,255,255,0) 100%);*/\n background: transparent;\n }\n\n .gh-portal-btn-product::before {\n position: absolute;\n content: "";\n display: block;\n top: -16px;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(0deg, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 100%);\n z-index: 800;\n }\n\n .gh-portal-btn-product .gh-portal-btn {\n background: var(--brandcolor);\n color: #fff;\n border: none;\n width: 100%;\n z-index: 900;\n }\n\n .gh-portal-btn-product .gh-portal-btn:hover {\n opacity: 0.9;\n }\n\n .gh-portal-current-plan {\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n white-space: nowrap;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n color: var(--grey5);\n font-size: 1.4rem;\n font-weight: 500;\n line-height: 1em;\n letter-spacing: 0.2px;\n font-weight: 500;\n background: #f0f0f0;\n z-index: 900;\n }\n\n .gh-portal-product-card.only-free {\n margin: 0 0 16px;\n min-height: unset;\n }\n\n .gh-portal-product-card.only-free .gh-portal-product-card-header {\n min-height: unset;\n }\n\n @media (max-width: 670px) {\n .gh-portal-products-grid {\n grid-template-columns: unset;\n grid-gap: 20px;\n width: 100%;\n max-width: 440px;\n }\n\n .gh-portal-priceoption-label {\n font-size: 1.25rem;\n }\n\n .gh-portal-products-priceswitch .gh-portal-discount-label {\n display: none;\n }\n\n .gh-portal-products-priceswitch {\n padding-top: 18px;\n }\n\n .gh-portal-product-card {\n min-height: unset;\n }\n\n .gh-portal-singleproduct-benefits .gh-portal-product-description {\n text-align: center;\n }\n\n .gh-portal-product-benefit:last-of-type {\n margin-bottom: 0;\n }\n }\n\n @media (max-width: 480px) {\n .gh-portal-product-price .amount {\n font-size: 3.4rem;\n }\n\n .gh-portal-product-card {\n min-width: unset;\n }\n\n .gh-portal-btn-product {\n position: static;\n }\n\n .gh-portal-btn-product::before {\n display: none;\n }\n }\n\n @media (max-width: 370px) {\n .gh-portal-product-price .currency-sign {\n font-size: 1.8rem;\n }\n\n .gh-portal-product-price .amount {\n font-size: 2.8rem;\n }\n }\n\n\n /* Upgrade and change plan*/\n .gh-portal-upgrade-product {\n margin-top: -70px;\n padding-top: 60px;\n }\n\n .gh-portal-upgrade-product .gh-portal-products-grid {\n grid-template-columns: unset;\n grid-gap: 20px;\n width: 100%;\n }\n\n .gh-portal-upgrade-product .gh-portal-product-card .gh-portal-plan-current {\n display: inline-block;\n position: relative;\n padding: 2px 8px;\n font-size: 1.2rem;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n margin-bottom: 4px;\n }\n\n .gh-portal-upgrade-product .gh-portal-product-card .gh-portal-plan-current::before {\n position: absolute;\n content: "";\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 999px;\n background: var(--brandcolor);\n opacity: 0.15;\n }\n\n @media (max-width: 880px) {\n .gh-portal-products-grid {\n flex-direction: column;\n margin: 0 auto;\n max-width: 420px;\n }\n\n .gh-portal-product-card-header {\n min-height: unset;\n }\n }\n '}({site:n})+'\n .gh-portal-for-switch label,\n .gh-portal-for-switch .container {\n position: relative;\n display: inline-block;\n width: 44px !important;\n height: 26px !important;\n cursor: pointer;\n }\n\n .gh-portal-for-switch label p,\n .gh-portal-for-switch .container p {\n overflow: auto;\n color: var(--grey0);\n font-weight: normal;\n }\n\n .gh-portal-for-switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .gh-portal-for-switch .input-toggle-component {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #e9e9e9;\n transition: .3s;\n width: 44px !important;\n height: 26px !important;\n border-radius: 999px;\n transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;\n cursor: pointer;\n }\n\n .gh-portal-for-switch label:hover input:not(:checked) + .input-toggle-component,\n .gh-portal-for-switch .container:hover input:not(:checked) + .input-toggle-component {\n border-color: var(--grey9);\n }\n\n .gh-portal-for-switch .input-toggle-component:before {\n position: absolute;\n content: "";\n top: 3px !important;\n left: 3px !important;\n height: 20px !important;\n width: 20px !important;\n background-color: white;\n transition: .3s;\n border-radius: 999px;\n }\n\n .gh-portal-for-switch input:checked + .input-toggle-component {\n background: var(--brandcolor);\n border-color: transparent;\n }\n\n .gh-portal-for-switch input:checked + .input-toggle-component:before {\n transform: translateX(18px);\n box-shadow: none;\n }\n\n .gh-portal-for-switch .container {\n width: 38px !important;\n height: 22px !important;\n }\n\n .gh-portal-btn-main {\n box-shadow: none;\n position: relative;\n border: none;\n }\n\n .gh-portal-btn-main:hover,\n .gh-portal-btn-main:focus {\n box-shadow: none;\n border: none;\n }\n\n .gh-portal-btn-primary:hover,\n .gh-portal-btn-primary:focus {\n opacity: 0.92 !important;\n }\n\n .gh-portal-btn-primary:disabled:hover::before {\n display: none;\n }\n\n .gh-portal-btn-destructive:not(:disabled):hover {\n color: var(--red);\n border-color: var(--red);\n }\n\n .gh-portal-btn-text {\n padding: 0;\n font-weight: 500;\n height: unset;\n border: none;\n box-shadow: none;\n }\n\n .gh-portal-loadingicon {\n position: absolute;\n left: 50%;\n display: inline-block;\n margin-left: -19px;\n height: 31px;\n }\n\n .gh-portal-loadingicon path,\n .gh-portal-loadingicon rect {\n fill: #fff;\n }\n\n .gh-portal-loadingicon.dark path,\n .gh-portal-loadingicon.dark rect {\n fill: #1d1d1d;\n }\n\n .gh-portal-btn-back,\n .gh-portal-btn-back:hover {\n box-shadow: none;\n position: relative;\n height: unset;\n min-width: unset;\n position: fixed;\n top: 29px;\n left: 25px;\n background: none;\n padding: 8px;\n margin: 0;\n box-shadow: none;\n color: var(--grey3);\n border: none;\n z-index: 10000;\n }\n\n .gh-portal-btn-back:hover {\n color: var(--grey1);\n transform: translateX(-4px);\n }\n\n .gh-portal-btn-back svg {\n width: 17px;\n height: 17px;\n margin-top: 1px;\n margin-right: 2px;\n }\n'+Sr+"\n .gh-portal-icon-envelope {\n width: 44px;\n margin: 12px 0 10px;\n }\n\n .gh-portal-inbox-notification {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .gh-portal-inbox-notification p {\n text-align: center;\n margin-bottom: 30px;\n }\n\n.gh-portal-back-sitetitle {\n position: absolute;\n top: 35px;\n left: 32px;\n}\n\n.gh-portal-back-sitetitle .gh-portal-btn {\n padding: 0;\n border: 0;\n font-size: 1.5rem;\n height: auto;\n line-height: 1em;\n color: var(--grey1);\n}\n\n.gh-portal-popup-wrapper:not(.full-size) .gh-portal-back-sitetitle,\n.gh-portal-popup-wrapper.preview .gh-portal-back-sitetitle {\n display: none;\n}\n\n.gh-portal-signup-logo {\n position: relative;\n display: block;\n background-position: 50%;\n background-size: cover;\n border-radius: 2px;\n width: 60px;\n height: 60px;\n margin: 12px 0 10px;\n}\n\n.gh-portal-signup-header,\n.gh-portal-signin-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 32px;\n margin-bottom: 32px;\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-signup-header {\n margin-top: 32px;\n}\n\n.gh-portal-signup-header .gh-portal-main-title,\n.gh-portal-signin-header .gh-portal-main-title {\n margin-top: 12px;\n}\n\n.gh-portal-signup-logo + .gh-portal-main-title {\n margin: 4px 0 0;\n}\n\n.gh-portal-signup-header .gh-portal-main-subtitle {\n font-size: 1.5rem;\n text-align: center;\n line-height: 1.45em;\n margin: 4px 0 0;\n color: var(--grey3);\n}\n\n.gh-portal-logged-out-form-container {\n width: 100%;\n max-width: 420px;\n margin: 0 auto;\n}\n\n.signup .gh-portal-input-section:last-of-type {\n margin-bottom: 40px;\n}\n\n.gh-portal-signup-message {\n display: flex;\n justify-content: center;\n color: var(--grey4);\n font-size: 1.5rem;\n margin: 16px 0 0;\n}\n\n.gh-portal-signup-message,\n.gh-portal-signup-message * {\n z-index: 9999;\n}\n\n.full-size .gh-portal-signup-message {\n margin: 24px 0 40px;\n}\n\n@media (max-width: 480px) {\n .preview .gh-portal-products + .gh-portal-signup-message {\n margin-bottom: 40px;\n }\n}\n\n.gh-portal-signup-message button {\n font-size: 1.4rem;\n font-weight: 600;\n margin-left: 4px !important;\n}\n\n.gh-portal-signup-message button span {\n display: inline-block;\n padding-bottom: 2px;\n margin-bottom: -2px;\n}\n\n.gh-portal-content.signup.invite-only {\n background: none;\n}\n\nfooter.gh-portal-signup-footer,\nfooter.gh-portal-signin-footer {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n padding-top: 24px;\n height: unset;\n}\n\n.gh-portal-content.signup,\n.gh-portal-content.signin {\n max-height: unset !important;\n padding-bottom: 0;\n}\n\n.gh-portal-content.signin {\n padding-bottom: 4px;\n}\n\n.gh-portal-content.signup .gh-portal-section {\n margin-bottom: 0;\n}\n\n.gh-portal-content.signup.single-field {\n margin-bottom: 4px;\n}\n\n.gh-portal-content.signup.single-field .gh-portal-input,\n.gh-portal-content.signin .gh-portal-input {\n margin-bottom: 8px;\n}\n\n.gh-portal-content.signup.single-field + .gh-portal-signup-footer,\nfooter.gh-portal-signin-footer {\n padding-top: 12px;\n}\n\n.gh-portal-content.signin .gh-portal-section {\n margin-bottom: 0;\n}\n\nfooter.gh-portal-signup-footer.invite-only {\n height: unset;\n}\n\nfooter.gh-portal-signup-footer.invite-only .gh-portal-signup-message {\n margin-top: 0;\n}\n\n.gh-portal-invite-only-notification {\n margin: 8px 32px 24px;\n padding: 0;\n text-align: center;\n color: var(--grey2);\n}\n\n.gh-portal-icon-invitation {\n width: 44px;\n height: 44px;\n margin: 12px 0 2px;\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-popup-container.preview footer.gh-portal-signup-footer {\n padding-bottom: 32px;\n}\n\n.gh-portal-invite-only-notification + .gh-portal-signup-message {\n margin-bottom: 12px;\n}\n\n.gh-portal-free-trial-notification {\n max-width: 480px;\n text-align: center;\n margin: 24px auto;\n color: var(--grey4);\n}\n\n@media (min-width: 480px) {\n\n}\n\n@media (max-width: 480px) {\n .gh-portal-signup-logo {\n width: 48px;\n height: 48px;\n }\n}\n\n@media (min-width: 480px) and (max-width: 820px) {\n .gh-portal-powered.outside {\n left: 50%;\n transform: translateX(-50%);\n }\n}\n"+function(e){return e.site,"\n.gh-portal-offer {\n padding-bottom: 0;\n overflow: unset;\n max-height: unset;\n}\n\n.gh-portal-offer-container {\n display: flex;\n flex-direction: column;\n}\n\n.gh-portal-plans-container.offer {\n justify-content: space-between;\n border-color: var(--grey12);\n border-top: none;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n padding: 12px 16px;\n font-size: 1.3rem;\n}\n\n.gh-portal-offer-bar {\n position: relative;\n padding: 26px 28px 28px;\n margin-bottom: 24px;\n /*border: 1px dashed var(--brandcolor);*/\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='99.9%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23C3C3C3' stroke-width='3' stroke-dasharray='3%2c 9' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e\");\n border-radius: 6px;\n}\n\n.gh-portal-offer-title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.gh-portal-offer-title h4 {\n font-size: 1.8rem;\n margin: 0 110px 0 0;\n width: 100%;\n}\n\n.gh-portal-offer-title h4.placeholder {\n opacity: 0.4;\n}\n\n.gh-portal-offer-bar .gh-portal-discount-label {\n position: absolute;\n top: 23px;\n right: 25px;\n}\n\n.gh-portal-offer-bar p {\n padding-bottom: 0;\n margin: 12px 0 0;\n}\n\n.gh-portal-offer-title h4 + p {\n margin: 12px 0 0;\n}\n\n.gh-portal-offer-details .gh-portal-plan-name,\n.gh-portal-offer-details p {\n margin-right: 8px;\n}\n\n.gh-portal-offer .footnote {\n font-size: 1.35rem;\n color: var(--grey8);\n margin: 4px 0 0;\n}\n\n.offer .gh-portal-product-card {\n max-width: unset;\n min-height: 0;\n}\n\n.offer .gh-portal-product-card .gh-portal-product-card-pricecontainer:not(.offer-type-trial) {\n margin-top: 0px;\n}\n\n.offer .gh-portal-product-card-header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.gh-portal-offer-oldprice {\n display: flex;\n position: relative;\n font-size: 1.8rem;\n font-weight: 300;\n color: var(--grey8);\n line-height: 1;\n white-space: nowrap;\n margin: 16px 0 4px;\n}\n\n.gh-portal-offer-oldprice:after {\n position: absolute;\n display: block;\n content: \"\";\n left: 0;\n top: 50%;\n right: 0;\n height: 1px;\n background: var(--grey8);\n}\n\n.gh-portal-offer-details p {\n margin-bottom: 12px;\n}\n\n.offer .after-trial-amount {\n margin-bottom: 0;\n}\n\n.offer .trial-duration {\n margin-top: 16px;\n}\n\n.gh-portal-cancel {\n white-space: nowrap;\n}\n "}({site:n})+'\n .gh-portal-popupnotification {\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n padding: 12px;\n background: var(--grey2);\n z-index: 11000;\n border-radius: 5px;\n font-size: 1.5rem;\n box-shadow: 0px 0.8151839971542358px 0.8151839971542358px 0px rgba(0,0,0,0.01),\n 0px 2.2538793087005615px 2.2538793087005615px 0px rgba(0,0,0,0.02),\n 0px 5.426473140716553px 5.426473140716553px 0px rgba(0,0,0,0.03),\n 0px 18px 18px 0px rgba(0,0,0,0.04);\n animation: popupnotification-slidein 0.3s ease-in-out;\n }\n\n .gh-portal-popupnotification.slideout {\n animation: popupnotification-slideout 0.48s ease-in;\n }\n\n .gh-portal-popupnotification p {\n color: var(--white);\n margin: 0;\n padding: 0 20px;\n font-size: 1.5rem;\n line-height: 1.5em;\n letter-spacing: 0.2px;\n text-align: center;\n }\n\n .gh-portal-popupnotification a {\n color: var(--white);\n }\n\n .gh-portal-popupnotification-icon {\n position: absolute;\n top: 12px;\n left: 12px;\n width: 20px;\n height: 20px;\n }\n\n .gh-portal-popupnotification-icon.success {\n color: var(--green);\n }\n\n .gh-portal-popupnotification-icon.error {\n color: #FF2828;\n }\n\n .gh-portal-popupnotification .closeicon {\n position: absolute;\n top: 3px;\n bottom: 0;\n right: 3px;\n color: var(--white);\n cursor: pointer;\n width: 16px;\n height: 16px;\n padding: 12px;\n transition: all 0.15s ease-in-out forwards;\n opacity: 0.8;\n }\n\n .gh-portal-popupnotification .closeicon:hover {\n opacity: 1.0;\n }\n\n @keyframes popupnotification-slidein {\n 0% { \n transform: translateY(-10px); \n opacity: 0;\n }\n 60% { transform: translateY(2px); }\n 100% { \n transform: translateY(0); \n opacity: 1.0;\n }\n }\n\n @keyframes popupnotification-slideout {\n 0% { \n transform: translateY(0);\n opacity: 1.0;\n }\n 40% { transform: translateY(2px); }\n 100% { \n transform: translateY(-10px);\n opacity: 0;\n }\n }\n\n@media (max-width: 1440px) {\n .gh-portal-popup-container:not(.full-size):not(.preview) {\n width: 460px;\n }\n\n .gh-portal-input {\n height: 42px;\n margin-bottom: 16px;\n }\n\n button[class="gh-portal-btn"],\n .gh-portal-btn-main,\n .gh-portal-btn-primary {\n height: 42px;\n }\n\n .gh-portal-product-price .amount {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n}\n\n@media (max-width: 960px) {\n .gh-portal-powered {\n display: flex;\n position: relative;\n bottom: unset;\n left: unset;\n background: var(--white);\n justify-content: center;\n width: 100%;\n padding-top: 32px;\n }\n}\n\n@media (min-width: 520px) {\n .gh-portal-popup-wrapper.full-size .gh-portal-popup-container.preview {\n box-shadow:\n 0 0 0 1px rgba(0,0,0,0.02),\n 0 2.8px 2.2px rgba(0, 0, 0, 0.02),\n 0 6.7px 5.3px rgba(0, 0, 0, 0.028),\n 0 12.5px 10px rgba(0, 0, 0, 0.035),\n 0 22.3px 17.9px rgba(0, 0, 0, 0.042),\n 0 41.8px 33.4px rgba(0, 0, 0, 0.05),\n 0 100px 80px rgba(0, 0, 0, 0.07);\n animation: none;\n margin: 32px;\n padding: 32px 32px 0;\n width: calc(100vw - 64px);\n height: calc(100vh - 160px);\n min-height: unset;\n border-radius: 12px;\n overflow: auto;\n justify-content: flex-start;\n }\n}\n\n@media (max-width: 480px) {\n .gh-portal-detail-header {\n margin-top: 4px;\n }\n\n .gh-portal-popup-wrapper {\n height: 100%;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n background: var(--white);\n overflow-y: auto;\n }\n\n .gh-portal-popup-container {\n width: 100% !important;\n border-radius: 0;\n overflow: unset;\n animation: popup-mobile 0.25s ease-in-out;\n box-shadow: none !important;\n transform: translateY(0);\n padding: 28px !important;\n }\n\n .gh-portal-popup-container.full-size {\n justify-content: flex-start;\n }\n\n .gh-portal-popup-wrapper.account-home,\n .gh-portal-popup-container.account-home {\n background: var(--grey13);\n }\n\n .gh-portal-popup-wrapper.full-size .gh-portal-closeicon, \n .gh-portal-popup-container.full-size .gh-portal-closeicon {\n width: 16px;\n height: 16px;\n }\n\n /* Small width preview in Admin */\n .gh-portal-popup-wrapper.preview:not(.full-size) footer.gh-portal-signup-footer, \n .gh-portal-popup-wrapper.preview:not(.full-size) footer.gh-portal-signin-footer {\n padding-bottom: 32px;\n }\n\n .gh-portal-popup-container.preview:not(.full-size) {\n max-height: 660px;\n margin-bottom: 0;\n }\n\n .gh-portal-popup-container.preview:not(.full-size).offer {\n max-height: 860px;\n padding-bottom: 0 !important;\n }\n\n .gh-portal-popup-wrapper.preview.full-size {\n height: unset;\n max-height: 660px;\n }\n\n .gh-portal-popup-container.preview.full-size {\n max-height: 660px;\n margin-bottom: 0;\n }\n \n .preview .gh-portal-invite-only-notification + .gh-portal-signup-message {\n margin-bottom: 16px;\n }\n\n .preview .gh-portal-btn-container.sticky {\n margin-bottom: 32px;\n padding-bottom: 0;\n }\n\n .gh-portal-powered {\n padding-top: 12px;\n padding-bottom: 24px;\n }\n}\n\n@media (max-width: 390px) {\n .gh-portal-popup-container:not(.account-plan) .gh-portal-detail-header .gh-portal-main-title {\n font-size: 2.1rem;\n margin-top: 1px;\n padding: 0 74px;\n text-align: center;\n }\n\n .gh-portal-input {\n margin-bottom: 16px;\n }\n\n .gh-portal-signup-header,\n .gh-portal-signin-header {\n padding-bottom: 16px;\n }\n}\n\n@media (min-width: 480px) and (max-height: 880px) {\n .gh-portal-popup-wrapper {\n padding: 4vmin 0 0;\n }\n}\n\n@keyframes popup-mobile {\n 0% {\n opacity: 0;\n }\n 100%{\n opacity: 1.0;\n }\n}\n\n/* Prevent zoom */\n@media (hover:none) {\n select, textarea, input[type="text"], input[type="text"], input[type="password"],\n input[type="datetime"], input[type="datetime-local"],\n input[type="date"], input[type="month"], input[type="time"],\n input[type="week"], input[type="number"], input[type="email"],\n input[type="url"] {\n font-size: 16px !important;\n }\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-input-section {\n max-width: 420px;\n margin: 0 auto;\n}\n\n/* Multiple product signup/signin-only modifications! */\n.gh-portal-popup-wrapper.multiple-products {\n background: #fff;\n box-shadow: 0 3.8px 2.2px rgba(0, 0, 0, 0.028), 0 9.2px 5.3px rgba(0, 0, 0, 0.04), 0 17.3px 10px rgba(0, 0, 0, 0.05), 0 30.8px 17.9px rgba(0, 0, 0, 0.06), 0 57.7px 33.4px rgba(0, 0, 0, 0.072), 0 138px 80px rgba(0, 0, 0, 0.1);\n padding: 0;\n border-radius: 5px;\n height: calc(100vh - 64px);\n max-width: calc(100vw - 64px);\n}\n\n.gh-portal-popup-wrapper.multiple-products.signup {\n overflow-y: scroll;\n overflow-x: clip;\n margin: 32px auto !important;\n padding-right: 0 !important; /* Override scrollbar hiding */\n}\n\n.gh-portal-popup-wrapper.multiple-products.signin {\n margin: 10vmin auto;\n max-width: 480px;\n height: unset;\n}\n\n.gh-portal-popup-wrapper.multiple-products.preview {\n height: calc(100vh - 150px) !important;\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-popup-container {\n align-items: center;\n width: 100% !important;\n box-shadow: none !important;\n animation: fadein 0.35s ease-in-out;\n padding: 1vmin 0;\n transform: translateY(0px);\n margin-bottom: 0;\n}\n\n.gh-portal-popup-wrapper.multiple-products.signup .gh-portal-popup-container {\n min-height: calc(100vh - 64px);\n position: unset;\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-powered {\n position: relative;\n display: flex;\n flex: 1;\n align-items: flex-end;\n justify-content: flex-start;\n bottom: unset;\n left: unset;\n width: 100%;\n z-index: 10000;\n padding-bottom: 32px;\n}\n\n@media (max-width: 670px) {\n .gh-portal-popup-wrapper.multiple-products .gh-portal-powered {\n justify-content: center;\n }\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-content {\n position: unset;\n overflow-y: visible;\n max-height: unset !important;\n}\n\n@media (max-width: 960px) {\n .gh-portal-popup-wrapper.multiple-products.signup:not(.preview) {\n margin: 20px !important;\n height: 100%;\n }\n}\n\n@media (max-width: 480px) {\n .gh-portal-popup-wrapper.multiple-products {\n margin: 0 !important;\n max-width: unset !important;\n max-height: 100% !important;\n height: 100% !important;\n border-radius: 0px;\n box-shadow: none;\n }\n\n .gh-portal-popup-wrapper.multiple-products.signup:not(.preview) {\n margin: 0 !important;\n }\n\n .gh-portal-popup-wrapper.multiple-products.preview {\n height: unset !important;\n margin: 0 !important;\n }\n\n .gh-portal-popup-wrapper.multiple-products:not(.dev) .gh-portal-popup-container.preview {\n max-height: 640px;\n }\n}\n\n.gh-portal-popup-container.preview * {\n pointer-events: none !important;\n}\n\n.gh-portal-unsubscribe-logo {\n width: 60px;\n height: 60px;\n border-radius: 2px;\n margin-top: 12px;\n margin-bottom: 6px;\n}\n\n@media (max-width: 480px) {\n .gh-portal-unsubscribe-logo {\n width: 48px;\n height: 48px;\n }\n}\n\n.gh-portal-unsubscribe .gh-portal-main-title {\n margin-bottom: 16px;\n font-size: 2.6rem;\n}\n\n.gh-portal-unsubscribe p {\n margin-bottom: 16px;\n}\n\n.gh-portal-unsubscribe p:last-of-type {\n margin-bottom: 0;\n}\n\n.gh-portal-btn-inline {\n display: inline-block;\n margin-left: 4px;\n font-size: 1.5rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.gh-portal-toggle-checked {\n transition: all 0.3s;\n transition-delay: 2s;\n}\n\n.gh-portal-checkmark-container {\n display: flex;\n opacity: 0;\n margin-right: 8px;\n transition: opacity ease 0.4s 0.2s;\n}\n\n.gh-portal-checkmark-show {\n opacity: 1;\n}\n\n.gh-portal-checkmark-icon {\n height: 22px;\n color: #30cf43;\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n.gh-portal-newsletter-selection {\n animation: 0.5s ease-in-out fadeIn;\n}\n\n.gh-portal-signup {\n animation: 0.5s ease-in-out fadeIn;\n}\n\n.gh-portal-btn-different-plan {\n margin: 0 auto 24px;\n color: var(--grey6);\n font-weight: 400;\n}\n\n.gh-portal-hide {\n display: none;\n}\n\n .gh-portal-feedback {\n\n }\n\n .gh-portal-feedback .gh-feedback-icon {\n padding: 10px 0;\n text-align: center;\n color: var(--brandcolor);\n width: 48px;\n margin: 0 auto;\n }\n\n .gh-portal-feedback .gh-feedback-icon.gh-feedback-icon-error {\n color: #f50b23;\n }\n\n .gh-portal-feedback .gh-portal-text-center {\n padding: 15px 0;\n }\n\n .gh-portal-confirm-title {\n line-height: inherit;\n text-align: center;\n box-sizing: border-box;\n margin: 0;\n margin-bottom: .4rem;\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -.018em;\n }\n\n .gh-portal-confirm-button {\n width: 100%;\n margin-top: 3.6rem;\n }\n\n .gh-feedback-buttons-group {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px;\n margin-top: 3.6rem;\n }\n\n .gh-feedback-button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n font-size: 1.4rem;\n line-height: 1.2;\n font-weight: 700;\n border: none;\n border-radius: 22px;\n padding: 12px 8px;\n color: #505050;\n background: none;\n cursor: pointer;\n }\n\n .gh-feedback-button::before {\n content: \'\';\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n border-radius: inherit;\n background: currentColor;\n opacity: 0.10;\n }\n\n .gh-feedback-button-selected {\n box-shadow: inset 0 0 0 2px currentColor;\n }\n\n .gh-feedback-button svg {\n width: 24px;\n height: 24px;\n color: inherit;\n }\n\n .gh-feedback-button svg path {\n stroke-width: 4px;\n }\n';return t}({site:this.context.site}),n="\n :root {\n --brandcolor: ".concat(this.context.brandColor,"\n }\n ")+e;return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("style",{dangerouslySetInnerHTML:{__html:n}}),(0,mr.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}},{key:"renderFrameContainer",value:function(){var e=this,n=this.context,t=n.member,r=n.site,i=n.customSiteUrl,o=rc({member:t}),a=N({},o.frame.common),l="gh-portal-popup-background";return so(["preview"])&&(o.modalContainer.zIndex="3999997"),so(["preview"],{customSiteUrl:i})&&!r.disableBackground&&(l+=" preview"),so(["dev"])&&(l+=" dev"),(0,mr.jsx)("div",{style:o.modalContainer,children:(0,mr.jsxs)(yr,{style:a,title:"portal-popup",head:this.renderFrameStyles(),children:[(0,mr.jsx)("div",{className:l,onClick:function(n){return e.handlePopupClose(n)}}),(0,mr.jsx)(oc,{})]})})}},{key:"render",value:function(){return this.context.showPopup?this.renderFrameContainer():null}}]),t}(tc.Component);lc.contextType=Cr;cc({products:dc({numOfProducts:1})});function sc(){return((new Date).getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,(function(){return(16*Math.random()|0).toString(16)})).toLowerCase()}function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.title,t=void 0===n?"The Blueprint":n,r=e.description,i=void 0===r?"Thoughts, stories and ideas.":r,o=e.logo,a=void 0===o?"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png":o,l=e.icon,s=void 0===l?"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png":l,c=e.url,u=void 0===c?"https://portal.localhost":c,p=e.plans,d=void 0===p?{monthly:5e3,yearly:15e4,currency:"USD"}:p,f=e.products,h=void 0===f?dc({numOfProducts:1}):f,g=e.portalProducts,m=void 0===g?h.map((function(e){return e.id})):g,v=e.accentColor,y=void 0===v?"#45C32E":v,b=e.portalPlans,x=void 0===b?["free","monthly","yearly"]:b,w=e.allowSelfSignup,_=void 0===w||w,k=e.membersSignupAccess,S=void 0===k?"all":k,E=e.freePriceName,j=void 0===E?"Free":E,C=e.freePriceDescription,N=void 0===C?"Free preview":C,P=e.isStripeConfigured,O=void 0===P||P,T=e.portalButton,I=void 0===T||T,D=e.portalName,R=void 0===D||D,L=e.portalButtonIcon,U=void 0===L?"icon-1":L,z=e.portalButtonSignupText,M=void 0===z?"Subscribe now":z,F=e.portalButtonStyle,A=void 0===F?"icon-and-text":F,B=e.membersSupportAddress,H=void 0===B?"support@example.com":B,Y=e.newsletters,$=void 0===Y?[]:Y,G=e.commentsEnabled;return{title:t,description:i,logo:a,icon:s,accent_color:y,url:u,plans:d,products:h,portal_products:m,allow_self_signup:_,members_signup_access:S,free_price_name:j,free_price_description:N,is_stripe_configured:O,portal_button:I,portal_name:R,portal_plans:x,portal_button_icon:U,portal_button_signup_text:M,portal_button_style:A,members_support_address:H,comments_enabled:!!G,newsletters:$}}function uc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,t=void 0===n?"Black Friday":n,r=e.code,i=void 0===r?"black-friday":r,o=e.displayTitle,a=void 0===o?"Black Friday Sale!":o,l=e.displayDescription,s=void 0===l?"Special deal for Black Friday. Subscribe now for only $15 per month and get additional benefits like accessing our podcast.":l,c=e.type,u=void 0===c?"percent":c,p=e.cadence,d=void 0===p?"month":p,f=e.amount,h=void 0===f?50:f,g=e.duration,m=void 0===g?"repeating":g,v=e.durationInMonths,y=void 0===v?null:v,b=e.currencyRestriction,x=void 0!==b&&b,w=e.currency,_=void 0===w?null:w,k=e.status,S=void 0===k?"active":k,E=e.tierId,j=void 0===E?"":E,C=e.tierName,N=void 0===C?"Basic":C;return{id:"offer_".concat(sc()),name:t,code:i,display_title:a,display_description:s,type:u,cadence:d,amount:h,duration:m,duration_in_months:y,currency_restriction:x,currency:_,status:S,tier:{id:"".concat(j),name:N}}}function pc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,t=void 0===n?"Jamie Larson":n,r=e.email,i=void 0===r?"jamie@example.com":r,o=e.firstname,a=void 0===o?"Jamie":o,l=e.subscriptions,s=void 0===l?[]:l,c=e.paid,u=void 0!==c&&c,p=e.avatarImage,d=void 0===p?"":p,f=e.subscribed,h=void 0===f||f;return{uuid:"member_".concat(sc()),email:i,name:t,firstname:a,paid:u,subscribed:h,avatar_image:d,subscriptions:s}}function dc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.numOfProducts,t=void 0===n?3:n,r=[fc({name:"Bronze",description:"Access to all members articles",monthlyPrice:vc({interval:"month",amount:700}),yearlyPrice:vc({interval:"year",amount:7e3}),numOfBenefits:2}),fc({name:"Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:vc({interval:"month",amount:1200}),yearlyPrice:vc({interval:"year",amount:12e3}),numOfBenefits:3}),fc({name:"Friends of the Blueprint",description:"Get access to everything and lock in early adopter pricing for life + listen to my podcast",monthlyPrice:vc({interval:"month",amount:18e3}),yearlyPrice:vc({interval:"year",amount:17e3}),numOfBenefits:4})],i=r.slice(0,t),o=hc({});return[].concat(be(i),[o])}function fc(e){var n=e.type,t=void 0===n?"paid":n,r=e.name,i=void 0===r?"Basic":r,o=e.description,a=void 0===o?"":o,l=e.id,s=void 0===l?"product_".concat(sc()):l,c=e.monthlyPrice,u=void 0===c?vc():c,p=e.yearlyPrice,d=void 0===p?vc({interval:"year"}):p,f=e.numOfBenefits;return{id:s,name:i,description:a,monthlyPrice:"free"===t?null:u,yearlyPrice:"free"===t?null:d,type:t,benefits:gc({numOfBenefits:void 0===f?2:f})}}function hc(e){var n=e.name,t=void 0===n?"Free tier":n,r=e.description,i=void 0===r?"Free tier description":r,o=e.id,a=void 0===o?"product_".concat(sc()):o,l=e.numOfBenefits;return{id:a,name:t,type:"free",description:i,benefits:gc({numOfBenefits:void 0===l?2:l})}}function gc(e){var n=e.numOfBenefits;return[mc({name:"Limited early adopter pricing"}),mc({name:"Latest gear reviews"}),mc({name:"Weekly email newsletter"}),mc({name:"Listen to my podcast"})].slice(0,n)}function mc(e){var n=e.id,t=void 0===n?"benefit_".concat(sc()):n,r=e.name;return{id:t,name:void 0===r?"Benefit":r}}function vc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.interval,t=void 0===n?"month":n,r=e.amount,i=void 0===r?"month"===t?500:5e3:r,o=e.nickname,a=void 0===o?"month"===t?"Monthly":"Yearly":o,l=e.description,s=void 0===l?null:l,c=e.currency,u=void 0===c?"usd":c,p=e.active,d=void 0===p||p,f=e.id,h=void 0===f?"price_".concat(sc()):f;return{id:h,active:d,nickname:a,currency:u,amount:i,interval:t,description:s,stripe_price_id:"price_".concat(sc()),stripe_product_id:"prod_".concat(sc()),type:"recurring"}}function yc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id,t=void 0===n?"sub_".concat(sc()):n,r=e.status,i=void 0===r?"active":r,o=e.currency,a=void 0===o?"USD":o,l=e.interval,s=void 0===l?"year":l,c=e.amount,u=void 0===c?"month"===s?500:5e3:c,p=e.nickname,d=void 0===p?"month"===s?"Monthly":"Yearly":p,f=e.cardLast4,h=void 0===f?"4242":f,g=e.offer,m=void 0===g?wc:g,v=e.priceId,y=void 0===v?"price_".concat(sc()):v,b=e.startDate,x=void 0===b?"2021-10-05T03:18:30.000Z":b,w=e.currentPeriodEnd,_=void 0===w?"2022-10-05T03:18:30.000Z":w,k=e.cancelAtPeriodEnd,S=void 0!==k&&k;return{id:t,customer:{id:"cus_".concat(sc()),name:"Jamie",email:"jamie@example.com"},plan:{id:"price_".concat(sc()),nickname:d,amount:u,interval:s,currency:a},offer:m,status:i,start_date:x,default_payment_card_last4:h,cancel_at_period_end:S,cancellation_reason:null,current_period_end:_,price:{id:"stripe_price_".concat(sc()),price_id:y,nickname:d,amount:u,interval:s,type:"recurring",currency:a,product:{id:"stripe_prod_".concat(sc()),product_id:"prod_".concat(sc())}}}}function bc(){var e=dc({numOfProducts:1}),n=e.map((function(e){return e.id}));return cc({products:e,portalPlans:["free","monthly","yearly"],portalProducts:n})}bc();var xc,wc=uc({tierId:null===(ac=cc({products:[fc({numOfBenefits:2,type:"free"})]}).products[0])||void 0===ac?void 0:ac.id});pc(),pc({paid:!0,subscriptions:[yc()]}),pc({paid:!0,subscriptions:[]}),pc({paid:!0,subscriptions:[yc({amount:0})]}),pc({paid:!0,subscriptions:[yc({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]});bc();var _c=[hc({name:"Free",description:"Free tier description which is actually a pretty long description",numOfBenefits:2}),fc({name:"The Blueprint",description:"",monthlyPrice:vc({interval:"month",amount:500}),yearlyPrice:vc({interval:"year",amount:5e3}),numOfBenefits:3}),fc({name:"Friends of the Blueprint Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:vc({interval:"month",amount:1200}),yearlyPrice:vc({interval:"year",amount:11e3}),numOfBenefits:4})],kc=cc({title:"The Blueprint",description:"Thoughts, stories and ideas.",logo:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",accentColor:"#45C32E",url:"https://portal.localhost",plans:{monthly:5e3,yearly:15e4,currency:"USD"},products:_c,portalProducts:_c.map((function(e){return e.id})),allowSelfSignup:!0,membersSignupAccess:"all",freePriceName:"Free",freePriceDescription:"Free preview",isStripeConfigured:!0,portalButton:!0,portalName:!0,portalPlans:["free","monthly","yearly"],portalButtonIcon:"icon-1",portalButtonSignupText:"Subscribe now",portalButtonStyle:"icon-and-text",membersSupportAddress:"support@example.com",commentsEnabled:!0,newsletters:[{id:"weekly",name:"Weekly Rundown",description:"Best of last week",subscribe_on_signup:!0,paid:!0},{id:"daily",name:"Daily Brief",description:"One email every day",subscribe_on_signup:!1,paid:!1}]}),Sc=uc({tierId:null===(xc=kc.products[1])||void 0===xc?void 0:xc.id}),Ec={free:pc({name:"Jamie Larson",email:"jamie@example.com",firstname:"Jamie",subscriptions:[],paid:!1,avatarImage:"",subscribed:!0}),paid:pc({paid:!0,subscriptions:[yc({status:"active",currency:"USD",interval:"year",amount:5e3,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]}),complimentary:pc({paid:!0,subscriptions:[]}),complimentaryWithSubscription:pc({paid:!0,subscriptions:[yc({amount:0})]}),preview:pc({paid:!0,subscriptions:[yc({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]})};function jc(e){var n=e.state;return si(),{showPopup:!1,lastPage:null,pageQuery:"",popupNotification:null,page:"magiclink"===n.page?"":n.page}}function Cc(){return(Cc=g(f().mark((function e(n){var t,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.api,r=n.state,e.prev=1,e.next=4,t.member.signout();case 4:return e.abrupt("return",{action:"signout:success"});case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",{action:"signout:failed",popupNotification:Zi({type:"signout:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to log out, please try again"})});case 10:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function Nc(){return(Nc=g(f().mark((function e(n){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.api,i=n.state,e.prev=1,e.next=4,r.member.sendMagicLink(N(N({},t),{},{emailType:"signin"}));case 4:return e.abrupt("return",{page:"magiclink",lastPage:"signin"});case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",{action:"signin:failed",popupNotification:Zi({type:"signin:failed",autoHide:!1,closeable:!0,state:i,status:"error",message:ms.getMessageFromError(e.t0,"Failed to log in, please try again")})});case 10:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function Pc(){return(Pc=g(f().mark((function e(n){var t,r,i,o,a,l,s,c,u,p,d,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,e.prev=1,o=t.plan,a=t.tierId,l=t.cadence,s=t.email,c=t.name,u=t.newsletters,p=t.offerId,"free"!==o.toLowerCase()){e.next=8;break}return e.next=6,i.member.sendMagicLink(N({emailType:"signup"},t));case 6:case 11:e.next=18;break;case 8:if(!a||!l){e.next=13;break}return e.next=11,i.member.checkoutPlan({plan:o,tierId:a,cadence:l,email:s,name:c,newsletters:u,offerId:p});case 13:return d=Bi({site:null===r||void 0===r?void 0:r.site,priceId:o}),a=d.tierId,l=d.cadence,e.next=18,i.member.checkoutPlan({plan:o,tierId:a,cadence:l,email:s,name:c,newsletters:u,offerId:p});case 18:return e.abrupt("return",{page:"magiclink",lastPage:"signup"});case 21:return e.prev=21,e.t0=e.catch(1),h=(null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Failed to sign up, please try again",e.abrupt("return",{action:"signup:failed",popupNotification:Zi({type:"signup:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:h})});case 25:case"end":return e.stop()}}),e,null,[[1,21]])})))).apply(this,arguments)}function Oc(){return(Oc=g(f().mark((function e(n){var t,r,i,o,a,l,s,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.plan,a=t.offerId,l=t.tierId,s=t.cadence,l&&s||(c=Bi({site:null===r||void 0===r?void 0:r.site,priceId:o}),l=c.tierId,s=c.cadence),e.next=6,i.member.checkoutPlan({plan:o,tierId:l,cadence:s,offerId:a,metadata:{checkoutType:"upgrade"}});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",{action:"checkoutPlan:failed",popupNotification:Zi({type:"checkoutPlan:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to process checkout, please try again"})});case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function Tc(){return Tc=g(f().mark((function e(n){var t,r,i,o,a,l,s,c,u,p,d,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.plan,a=t.planId,l=t.subscriptionId,s=t.cancelAtPeriodEnd,c=Bi({site:null===r||void 0===r?void 0:r.site,priceId:a}),u=c.tierId,p=c.cadence,e.next=6,i.member.updateSubscription({planName:o,tierId:u,cadence:p,subscriptionId:l,cancelAtPeriodEnd:s,planId:a});case 6:return e.next=8,i.member.sessionData();case 8:return d=e.sent,h="updateSubscription:success",e.abrupt("return",{action:h,popupNotification:Zi({type:h,autoHide:!0,closeable:!0,state:r,status:"success",message:"Subscription plan updated successfully"}),page:"accountHome",member:d});case 13:return e.prev=13,e.t0=e.catch(1),e.abrupt("return",{action:"updateSubscription:failed",popupNotification:Zi({type:"updateSubscription:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to update subscription, please try again"})});case 16:case"end":return e.stop()}}),e,null,[[1,13]])}))),Tc.apply(this,arguments)}function Ic(){return Ic=g(f().mark((function e(n){var t,r,i,o,a,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.subscriptionId,a=t.cancellationReason,e.next=5,i.member.updateSubscription({subscriptionId:o,smartCancel:!0,cancellationReason:a});case 5:return e.next=7,i.member.sessionData();case 7:return l=e.sent,"cancelSubscription:success",e.abrupt("return",{action:"cancelSubscription:success",page:"accountHome",member:l});case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",{action:"cancelSubscription:failed",popupNotification:Zi({type:"cancelSubscription:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to cancel subscription, please try again"})});case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Ic.apply(this,arguments)}function Dc(){return Dc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.subscriptionId,e.next=5,i.member.updateSubscription({subscriptionId:o,cancelAtPeriodEnd:!1});case 5:return e.next=7,i.member.sessionData();case 7:return a=e.sent,"continueSubscription:success",e.abrupt("return",{action:"continueSubscription:success",page:"accountHome",member:a});case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",{action:"continueSubscription:failed",popupNotification:Zi({type:"continueSubscription:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to cancel subscription, please try again"})});case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Dc.apply(this,arguments)}function Rc(){return(Rc=g(f().mark((function e(n){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,e.next=4,i.member.editBilling(t);case 4:e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(1),e.abrupt("return",{action:"editBilling:failed",popupNotification:Zi({type:"editBilling:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to update billing information, please try again"})});case 9:case"end":return e.stop()}}),e,null,[[1,6]])})))).apply(this,arguments)}function Lc(){return(Lc=g(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{popupNotification:null});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uc(){return(Uc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=t.action,o=t.message,a=void 0===o?"":o,i=i||"showPopupNotification:success",e.abrupt("return",{popupNotification:Zi({type:i,autoHide:!0,closeable:!0,state:r,status:"success",message:a})});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zc(){return zc=g(f().mark((function e(n){var t,r,i,o,a,l,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,e.prev=1,o=t.newsletters,a=t.enableCommentNotifications,o||void 0!==a){e.next=5;break}return e.abrupt("return",{});case 5:return l={},o&&(l.newsletters=o),void 0!==a&&(l.enableCommentNotifications=a),e.next=10,i.member.update(l);case 10:return s=e.sent,"updateNewsletterPref:success",e.abrupt("return",{action:"updateNewsletterPref:success",member:s});case 15:return e.prev=15,e.t0=e.catch(1),e.abrupt("return",{action:"updateNewsletterPref:failed",popupNotification:Zi({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:r,status:"error",message:"Failed to update newsletter settings"})});case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),zc.apply(this,arguments)}function Mc(){return Mc=g(f().mark((function e(n){var t,r,i,o,a,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.subscribed,e.next=5,i.member.update({subscribed:o});case 5:if(a=e.sent){e.next=8;break}throw new Error("Failed to update newsletter");case 8:return l="updateNewsletter:success",e.abrupt("return",{action:l,member:a,popupNotification:Zi({type:l,autoHide:!0,closeable:!0,state:r,status:"success",message:"Email newsletter settings updated"})});case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",{action:"updateNewsletter:failed",popupNotification:Zi({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:r,status:"error",message:"Failed to update newsletter settings"})});case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Mc.apply(this,arguments)}function Fc(e){return Ac.apply(this,arguments)}function Ac(){return(Ac=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,o=t.email,a=Gi({member:r.member}),o===a){e.next=13;break}return e.prev=4,e.next=7,i.member.updateEmailAddress({email:o});case 7:return e.abrupt("return",{success:!0});case 10:return e.prev=10,e.t0=e.catch(4),e.abrupt("return",{success:!1,error:e.t0});case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}function Bc(e){return Hc.apply(this,arguments)}function Hc(){return Hc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,o=t.name,Wi({member:r.member})===o){e.next=16;break}return e.prev=4,e.next=7,i.member.update({name:o});case 7:if(a=e.sent){e.next=10;break}throw new Error("Failed to update member");case 10:return e.abrupt("return",{member:a,success:!0});case 13:return e.prev=13,e.t0=e.catch(4),e.abrupt("return",{success:!1,error:e.t0});case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[4,13]])}))),Hc.apply(this,arguments)}function Yc(){return Yc=g(f().mark((function e(n){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state,r=n.api,!t.member){e.next=14;break}return e.prev=2,e.next=5,r.member.sessionData();case 5:if(!(i=e.sent)){e.next=8;break}return e.abrupt("return",{member:i,success:!0});case 8:case 14:return e.abrupt("return",null);case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",{success:!1,error:e.t0});case 15:case"end":return e.stop()}}),e,null,[[2,11]])}))),Yc.apply(this,arguments)}function $c(){return($c=g(f().mark((function e(n){var t,r,i,o,a,l,s,u,p,d,h,g,m,v;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.next=3,Promise.all([Bc({data:t,state:r,api:i}),Fc({data:t,state:r,api:i})]);case 3:if(o=e.sent,a=c(o,2),l=a[0],s=a[1],!l||!s){e.next=14;break}if(!s.success){e.next=10;break}return e.abrupt("return",N(N({action:"updateProfile:success"},l.success?{member:l.member}:{}),{},{page:"accountHome",popupNotification:Zi({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:r,message:"Check your inbox to verify email update"})}));case 10:return u=l.success?"Failed to send verification email":"Failed to update account data",e.abrupt("return",N(N({action:"updateProfile:failed"},l.success?{member:l.member}:{}),{},{popupNotification:Zi({type:"updateProfile:failed",autoHide:!0,closeable:!0,status:"error",message:u,state:r})}));case 14:if(!l){e.next=21;break}return p=l.success?"updateProfile:success":"updateProfile:failed",d=l.success?"success":"error",h=l.success?"Account details updated successfully":"Failed to update account details",e.abrupt("return",N(N(N({action:p},l.success?{member:l.member}:{}),l.success?{page:"accountHome"}:{}),{},{popupNotification:Zi({type:p,autoHide:l.success,closeable:!0,status:d,state:r,message:h})}));case 21:if(!s){e.next=26;break}return g=s.success?"updateProfile:success":"updateProfile:failed",m=s.success?"success":"error",v=s.success?"Check your inbox to verify email update":"Failed to send verification email",e.abrupt("return",N(N({action:g},s.success?{page:"accountHome"}:{}),{},{popupNotification:Zi({type:g,autoHide:s.success,closeable:!0,status:m,state:r,message:v})}));case 26:return e.abrupt("return",{action:"updateProfile:success",page:"accountHome",popupNotification:Zi({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:r,message:"Account details updated successfully"})});case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Gc={togglePopup:function(e){return{showPopup:!e.state.showPopup}},openPopup:function(e){var n=e.data;return N(N({showPopup:!0,page:n.page},n.pageQuery?{pageQuery:n.pageQuery}:{}),n.pageData?{pageData:n.pageData}:{})},closePopup:jc,switchPage:function(e){var n=e.data,t=e.state;return{page:n.page,popupNotification:null,lastPage:n.lastPage||null,pageData:n.pageData||t.pageData}},openNotification:function(e){return N({showNotification:!0},e.data)},closeNotification:function(e){return e.state,{showNotification:!1}},back:function(e){var n=e.state;return n.lastPage?{page:n.lastPage}:jc({state:n})},signout:function(e){return Cc.apply(this,arguments)},signin:function(e){return Nc.apply(this,arguments)},signup:function(e){return Pc.apply(this,arguments)},updateSubscription:function(e){return Tc.apply(this,arguments)},cancelSubscription:function(e){return Ic.apply(this,arguments)},continueSubscription:function(e){return Dc.apply(this,arguments)},updateNewsletter:function(e){return Mc.apply(this,arguments)},updateProfile:function(e){return $c.apply(this,arguments)},refreshMemberData:function(e){return Yc.apply(this,arguments)},clearPopupNotification:function(){return Lc.apply(this,arguments)},editBilling:function(e){return Rc.apply(this,arguments)},checkoutPlan:function(e){return Oc.apply(this,arguments)},updateNewsletterPreference:function(e){return zc.apply(this,arguments)},showPopupNotification:function(e){return Uc.apply(this,arguments)}};function Wc(e){return qc.apply(this,arguments)}function qc(){return(qc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.action,r=n.data,i=n.state,o=n.api,!(a=Gc[t])){e.next=9;break}return e.next=5,a({data:r,state:i,api:o});case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:return e.abrupt("return",e.t0);case 9:return e.abrupt("return",{});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Qc=t(92),Vc={insert:"head",singleton:!1};i()(Qc.Z,Vc),Qc.Z.locals;function Kc(e){var n=e.siteUrl,t=e.site,r=e.member;n&&(n=n.replace(/\/$/,""),Array.prototype.forEach.call(document.querySelectorAll("form[data-members-form]"),(function(e){var t=e.querySelector("[data-members-error]");e.addEventListener("submit",(function r(i){!function(e){var n,t=e.event,r=e.form,i=e.errorEl,o=e.siteUrl,a=e.submitHandler;r.removeEventListener("submit",a),t.preventDefault(),i&&(i.innerText=""),r.classList.remove("success","invalid","error");for(var l=t.target.querySelector("input[data-members-email]"),s=t.target.querySelector("input[data-members-name]"),c=(null===r||void 0===r||null===(n=r.dataset)||void 0===n?void 0:n.membersAutoredirect)||"true",u=null===l||void 0===l?void 0:l.value,p=s&&s.value||void 0,d=void 0,f=[],h=t.target.querySelectorAll("input[data-members-label]")||[],g=0;g<h.length;++g)f.push(h[g].value);r.dataset.membersForm&&(d=r.dataset.membersForm),r.classList.add("loading");var m=io(),v={email:u,emailType:d,labels:f,name:p,autoRedirect:"true"===c};m&&(v.urlHistory=m),fetch("".concat(o,"/members/api/send-magic-link/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then((function(e){if(r.addEventListener("submit",a),r.classList.remove("loading"),!e.ok)return ms.fromApiResponse(e).then((function(e){throw e}));r.classList.add("success")})).catch((function(e){i&&(i.innerText=ms.getMessageFromError(e,"There was an error sending the email, please try again")),r.classList.add("error")}))}({event:i,errorEl:t,form:e,siteUrl:n,submitHandler:r})}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-plan]"),(function(e){var i=e.querySelector("[data-members-error]");e.addEventListener("click",(function o(a){!function(e){var n=e.event,t=e.el,r=e.errorEl,i=e.siteUrl,o=e.site,a=e.member,l=e.clickHandler;t.removeEventListener("click",l),n.preventDefault();var s=t.dataset.membersPlan,c="";if(s){var u=xi({site:o,priceId:s.toLowerCase()});c=u?u.id:s}var p,d,f=t.dataset.membersSuccess,h=t.dataset.membersCancel;f&&(p=new URL(f,window.location.href).href),h&&(d=new URL(h,window.location.href).href),r&&(r.innerText=""),t.classList.add("loading");var g=a?{checkoutType:"upgrade"}:{},m=io();m&&(g.urlHistory=m),fetch("".concat(i,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(i,"/members/api/create-stripe-checkout-session/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({priceId:c,identity:e,successUrl:p,cancelUrl:d,metadata:g})}).then((function(e){if(!e.ok)throw new Error("Could not create stripe checkout session");return e.json()}))})).then((function(e){return window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(e){console.error(e),t.addEventListener("click",l),t.classList.remove("loading"),r&&(r.innerText=e.message),t.classList.add("error")}))}({el:e,event:a,errorEl:i,member:r,site:t,siteUrl:n,clickHandler:o})}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-edit-billing]"),(function(e){var t,r,i=e.querySelector("[data-members-error]"),o=e.dataset.membersSuccess,a=e.dataset.membersCancel;o&&(t=new URL(o,window.location.href).href),a&&(r=new URL(a,window.location.href).href),e.addEventListener("click",(function o(a){e.removeEventListener("click",o),a.preventDefault(),i&&(i.innerText=""),e.classList.add("loading"),fetch("".concat(n,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(n,"/members/api/create-stripe-update-session/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:e,successUrl:t,cancelUrl:r})}).then((function(e){if(!e.ok)throw new Error("Could not create stripe checkout session");return e.json()}))})).then((function(e){return window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(n){console.error(n),e.addEventListener("click",o),e.classList.remove("loading"),i&&(i.innerText=n.message),e.classList.add("error")}))}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-signout]"),(function(e){e.addEventListener("click",(function t(r){e.removeEventListener("click",t),r.preventDefault(),e.classList.remove("error"),e.classList.add("loading"),fetch("".concat(n,"/members/api/session"),{method:"DELETE"}).then((function(r){r.ok?window.location.replace(n):(e.addEventListener("click",t),e.classList.remove("loading"),e.classList.add("error"))}))}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-cancel-subscription]"),(function(e){var t=e.parentElement.querySelector("[data-members-error]");e.addEventListener("click",(function r(i){e.removeEventListener("click",r),i.preventDefault(),e.classList.remove("error"),e.classList.add("loading");var o=e.dataset.membersCancelSubscription;return t&&(t.innerText=""),fetch("".concat(n,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(n,"/members/api/subscriptions/").concat(o,"/"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:e,smart_cancel:!0})})})).then((function(n){n.ok?window.location.reload():(e.addEventListener("click",r),e.classList.remove("loading"),e.classList.add("error"),t&&(t.innerText="There was an error cancelling your subscription, please try again."))}))}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-continue-subscription]"),(function(e){var t=e.parentElement.querySelector("[data-members-error]");e.addEventListener("click",(function r(i){e.removeEventListener("click",r),i.preventDefault(),e.classList.remove("error"),e.classList.add("loading");var o=e.dataset.membersContinueSubscription;return t&&(t.innerText=""),fetch("".concat(n,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(n,"/members/api/subscriptions/").concat(o,"/"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:e,cancel_at_period_end:!1})})})).then((function(n){n.ok?window.location.reload():(e.addEventListener("click",r),e.classList.remove("loading"),e.classList.add("error"),t&&(t.innerText="There was an error continuing your subscription, please try again."))}))}))})))}var Jc=["site"],Xc=["site"],Zc=["site"],eu=["site"],nu=["site"],tu=["site"],ru=t(969),iu=N(N({showPopup:!0,site:kc,member:Ec.free,page:"accountEmail"},function(){var e;if(!_c||!_c[1])return null;var n=null===kc||void 0===kc||null===(e=kc.products)||void 0===e?void 0:e[1].monthlyPrice,t=pc({paid:!0,subscriptions:[yc({offer:null,priceId:null===n||void 0===n?void 0:n.id,status:"active",currency:null===n||void 0===n?void 0:n.currency,interval:null===n||void 0===n?void 0:n.interval,amount:null===n||void 0===n?void 0:n.amount,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]});return{site:kc,member:t}}()),{},{pageData:Sc});function ou(e){var n=e.site,t=e.children,r=(n||{}).portal_sentry;return r&&r.dsn?(0,mr.jsx)(ur,{children:t}):(0,mr.jsx)(mr.Fragment,{children:t})}var au=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).setupCustomTriggerButton(e),r.state={site:null,member:null,page:"loading",showPopup:!1,action:"init:running",initStatus:"running",lastPage:null,customSiteUrl:e.customSiteUrl},r}return y(t,[{key:"componentDidMount",value:function(){this.initSetup()}},{key:"componentDidUpdate",value:function(e,n){if(n.showPopup!==this.state.showPopup){this.handleCustomTriggerClassUpdate();try{var t,r,i;if(this.state.showPopup)this.bodyScroll=null===(t=window.document)||void 0===t||null===(r=t.body)||void 0===r||null===(i=r.style)||void 0===i?void 0:i.overflow,window.document.body.style.overflow="hidden";else window.document.body.style.overflow=this.bodyScroll||""}catch(l){}}if("success"===this.state.initStatus&&n.initStatus!==this.state.initStatus){var o=this.props.siteUrl,a=this.getContextFromState();this.sendPortalReadyEvent(),Kc({siteUrl:o,site:a.site,member:a.member})}}},{key:"componentWillUnmount",value:function(){var e=this;clearTimeout(this.timeoutId),this.customTriggerButtons&&this.customTriggerButtons.forEach((function(n){n.removeEventListener("click",e.clickHandler)})),window.removeEventListener("hashchange",this.hashHandler,!1)}},{key:"sendPortalReadyEvent",value:function(){window.self!==window.parent&&window.parent.postMessage({type:"portal-ready",payload:{}},"*")}},{key:"setupCustomTriggerButton",value:function(){var e=this;this.clickHandler=function(n){n.preventDefault();var t=n.currentTarget,r=t&&t.dataset.portal,i=e.getPageFromLinkPath(r)||{},o=i.page,a=i.pageQuery;"success"===e.state.initStatus&&(a&&"free"!==a?e.handleSignupQuery({site:e.state.site,pageQuery:a}):e.dispatchAction("openPopup",{page:o,pageQuery:a}))};this.customTriggerButtons=document.querySelectorAll("[data-portal]")||[],this.customTriggerButtons.forEach((function(n){n.classList.add("gh-portal-close"),n.removeEventListener("click",e.clickHandler),n.addEventListener("click",e.clickHandler)}))}},{key:"handleCustomTriggerClassUpdate",value:function(){var e,n=this,t="gh-portal-open",r="gh-portal-close";null===(e=this.customTriggerButtons)||void 0===e||e.forEach((function(e){var i=n.state.showPopup?t:r,o=n.state.showPopup?r:t;e.classList.add(i),e.classList.remove(o)}))}},{key:"initSetup",value:function(){var e=g(f().mark((function e(){var n,t,r,i,o,a,l,s,c,u,p=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchData();case 3:n=e.sent,t=n.site,r=n.member,i=n.page,o=n.showPopup,a=n.popupNotification,l=n.lastPage,s=n.pageQuery,c=n.pageData,u={site:t,member:r,page:i,lastPage:l,pageQuery:s,showPopup:o,pageData:c,popupNotification:a,action:"init:success",initStatus:"success"},this.handleSignupQuery({site:t,pageQuery:s,member:r}),this.setState(u),this.hashHandler=function(){p.updateStateForPreviewLinks()},window.addEventListener("hashchange",this.hashHandler,!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),console.error("[Portal] Failed to initialize:",e.t0),this.setState({action:"init:failed",initStatus:"failed"});case 23:case"end":return e.stop()}}),e,this,[[0,19]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchData",value:function(){var e=g(f().mark((function e(){var n,t,r,i,o,a,l,s,c,u,d,h,g,m,v;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchApiData();case 2:return n=e.sent,t=n.site,r=n.member,i=this.fetchDevData(),o=i.site,a=p(i,Jc),l=this.fetchLinkData(),s=l.site,c=p(l,Xc),u=this.fetchPreviewData(),d=u.site,h=p(u,Zc),g=this.fetchNotificationData(),m=g.site,v=p(g,eu),"",e.abrupt("return",N(N(N(N({member:r,page:"",site:N(N(N(N(N(N({},t),s),d),m),o),{},{plans:N(N(N({},(o||{}).plans),(t||{}).plans),(d||{}).plans)})},a),c),v),h));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"fetchDevData",value:function(){return so(["dev"])&&!this.state.customSiteUrl?iu:so(["test"])?{showPopup:void 0===this.props.showPopup||this.props.showPopup}:{}}},{key:"fetchOfferQueryStrData",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new URLSearchParams(n),r={},i=u(t.entries());try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o[0],l=decodeURIComponent(o[1]);"name"===a?r.name=l||"":"code"===a?r.code=l||"":"display_title"===a?r.display_title=l||"":"display_description"===a?r.display_description=l||"":"type"===a?r.type=l||"":"cadence"===a?r.cadence=l||"":"duration"===a?r.duration=l||"":"duration_in_months"!==a||isNaN(Number(l))?"amount"!==a||isNaN(Number(l))?"currency"===a?r.currency=l||"":"status"===a?r.status=l||"":"tier_id"===a&&(r.tier={id:l||Sc.tier.id}):r.amount=Number(l):r.duration_in_months=Number(l)}}catch(s){i.e(s)}finally{i.f()}return{page:"offer",pageData:r}}},{key:"fetchQueryStrData",value:function(){var e,n,t,r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=new URLSearchParams(o),l={site:{plans:{}}},s=[],c=null,p=u(a.entries());try{for(p.s();!(i=p.n()).done;){var d=i.value,f=d[0],h=decodeURIComponent(d[1]);if("button"===f)l.site.portal_button=JSON.parse(h);else if("name"===f)l.site.portal_name=JSON.parse(h);else if("isFree"===f&&JSON.parse(h))s.push("free");else if("isMonthly"===f&&JSON.parse(h))s.push("monthly");else if("isYearly"===f&&JSON.parse(h))s.push("yearly");else if("portalPrices"===f)e=h?h.split(","):[];else if("portalProducts"===f)c=h?h.split(","):[];else if("page"===f&&h)l.page=h;else if("accentColor"!==f||""!==h&&!h)if("buttonIcon"===f&&h)l.site.portal_button_icon=h;else if("signupButtonText"===f)l.site.portal_button_signup_text=h||"";else if("buttonStyle"===f&&h)l.site.portal_button_style=h;else if("monthlyPrice"!==f||isNaN(Number(h)))if("yearlyPrice"!==f||isNaN(Number(h)))if("currency"===f&&h){var g=h.toUpperCase();l.site.plans.currency=g,l.site.plans.currency_symbol=Vi(g),r=g}else"disableBackground"===f?l.site.disableBackground=JSON.parse(h):"allowSelfSignup"===f?l.site.allow_self_signup=JSON.parse(h):"membersSignupAccess"===f&&h&&(l.site.members_signup_access=h);else l.site.plans.yearly=Number(h),t=Number(h);else l.site.plans.monthly=Number(h),n=Number(h);else l.site.accent_color=h}}catch(m){p.e(m)}finally{p.f()}return l.site.portal_plans=s,l.site.portal_products=c,e?l.site.portal_plans=e:n&&t&&r&&(l.site.prices=[{id:"monthly",stripe_price_id:"dummy_stripe_monthly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Monthly",currency:r,amount:n,type:"recurring",interval:"month"},{id:"yearly",stripe_price_id:"dummy_stripe_yearly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Yearly",currency:r,amount:t,type:"recurring",interval:"year"}]),l}},{key:"fetchNotificationData",value:function(){var e=Fo({billingOnly:!0})||{},n=e.type,t=e.status,r=e.duration,i=e.autoHide,o=e.closeable;return["stripe:billing-update"].includes(n)?"success"===t?{showPopup:!0,popupNotification:Zi({type:n,status:t,duration:r,closeable:o,autoHide:i,state:this.state,message:"success"===t?"Billing info updated successfully":""})}:{showPopup:!0}:{}}},{key:"fetchLinkData",value:function(){var e=new URLSearchParams(window.location.search);if(e.get("uuid")&&"unsubscribe"===e.get("action"))return{showPopup:!0,page:"unsubscribe",pageData:{uuid:e.get("uuid"),newsletterUuid:e.get("newsletter"),comments:e.get("comments")}};var n=c(window.location.hash.substr(1).split("?"),2),t=n[0],r=n[1],i=new URLSearchParams(null!==r&&void 0!==r?r:""),o=/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/,a=/^\/feedback\/(\w+?)\/(\w+?)\/?$/;if(t&&a.test(t)&&i.get("uuid")){var l=c(t.match(a),3),s=l[1],u=l[2],p=parseInt(u);if(1===p||0===p)return{showPopup:!0,page:"feedback",pageData:{uuid:i.get("uuid"),postId:s,score:p}}}if(t&&o.test(t)){var d=c(t.match(o),2)[1],f=this.getPageFromLinkPath(d)||{},h=f.page,g=f.pageQuery,m=["accountPlan","accountProfile"].includes(h)?"accountHome":null;return N(N(N({showPopup:!(["monthly","yearly"].includes(g)||/^(?:(\w+?))?\/monthly$/.test(g)||/^(?:(\w+?))?\/yearly$/.test(g)||/^offers\/(\w+?)\/?$/.test(g))},h?{page:h}:{}),g?{pageQuery:g}:{}),m?{lastPage:m}:{})}return{}}},{key:"fetchPreviewData",value:function(){var e=c(window.location.hash.substr(1).split("?"),2)[1];if(so(["preview"])){return N(N({},so(["offerPreview"])?this.fetchOfferQueryStrData(e):this.fetchQueryStrData(e)),{},{showPopup:!0})}return{}}},{key:"getColorOverride",value:function(){var e=document.querySelector("script[data-ghost]");return!(!e||!e.dataset.accentColor)&&e.dataset.accentColor}},{key:"fetchApiData",value:function(){var e=g(f().mark((function e(){var n,t,r,i,o,a,l,s,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,t=n.siteUrl,r=n.customSiteUrl,i=n.apiUrl,o=n.apiKey,e.prev=1,this.GhostApi=this.props.api||vs({siteUrl:t,apiUrl:i,apiKey:o}),e.next=5,this.GhostApi.init();case 5:return a=e.sent,l=a.site,s=a.member,(c=this.getColorOverride())&&(l.accent_color=c),this.setupFirstPromoter({site:l,member:s}),this.setupSentry({site:l}),e.abrupt("return",{site:l,member:s});case 15:if(e.prev=15,e.t0=e.catch(1),!so(["dev","test"],{customSiteUrl:r})){e.next=19;break}return e.abrupt("return",{});case 19:throw e.t0;case 20:case"end":return e.stop()}}),e,this,[[1,15]])})));return function(){return e.apply(this,arguments)}}()},{key:"setupSentry",value:function(e){var n=e.site;if(so(["test"]))return null;var t=n.portal_sentry,r=(n.portal_version,n.version),i="portal@".concat("2.19.0","|ghost@").concat(r);t&&t.dsn&&pr({dsn:t.dsn,environment:t.env||"development",release:i,beforeSend:function(e){return function(e){var n,t,r,i,o=e.event,a=((null===o||void 0===o||null===(n=o.exception)||void 0===n||null===(t=n.values)||void 0===t||null===(r=t[0])||void 0===r||null===(i=r.stacktrace)||void 0===i?void 0:i.frames)||[]).map((function(e){return e.filename})).filter((function(e){return!!e}));return(a[a.length-1]||"").includes("@tryghost/portal")}({event:e})?e:null},allowUrls:[/https?:\/\/((www)\.)?unpkg\.com\/@tryghost\/portal/]})}},{key:"setupFirstPromoter",value:function(e){var n=e.site,t=e.member;if(so(["test"]))return null;var r=function(e){var n=e.site;return n&&n.firstpromoter_account}({site:n}),i=Qi({site:n});if(r&&i){var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://cdn.firstpromoter.com/fprom.js",o.onload=o.onreadystatechange=function(){var e=this.readyState;if(!e||"complete"===e||"loaded"===e)try{if(window.$FPROM.init(r,i),t){var n=t.email,o=t.uuid;if(window.$FPROM)window.$FPROM.trackSignup({email:n,uid:o});else{var a=window._fprom||[];window._fprom=a,a.push(["event","signup"]),a.push(["email",n]),a.push(["uid",o])}}}catch(l){}};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}},{key:"dispatchAction",value:function(){var e=g(f().mark((function e(n,t){var r,i,o=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this.timeoutId),this.setState({action:"".concat(n,":running")}),e.prev=2,e.next=5,Wc({action:n,data:t,state:this.state,api:this.GhostApi});case 5:r=e.sent,this.setState(r),r&&r.action&&!r.action.includes(":failed")&&(this.timeoutId=setTimeout((function(){o.setState({action:""})}),2e3)),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),i=Zi({type:"".concat(n,":failed"),autoHide:!0,closeable:!0,status:"error",state:this.state,meta:{error:e.t0}}),this.setState({action:"".concat(n,":failed"),popupNotification:i});case 14:case"end":return e.stop()}}),e,this,[[2,10]])})));return function(n,t){return e.apply(this,arguments)}}()},{key:"updateStateForPreviewLinks",value:function(){var e=this.fetchPreviewData(),n=e.site,t=p(e,nu),r=this.fetchLinkData(),i=r.site,o=p(r,tu),a=N(N({site:N(N(N(N({},this.state.site),i||{}),n||{}),{},{plans:N(N(N({},this.state.site&&this.state.site.plans),(i||{}).plans),(n||{}).plans)})},o),t);this.handleSignupQuery({site:a.site,pageQuery:a.pageQuery}),this.setState(a)}},{key:"handleOfferQuery",value:function(){var e=g(f().mark((function e(n){var t,r,i,o,a,l,s,c,u,p,d,h,g,m,v;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.site,r=n.offerId,i=n.member,o=void 0===i?this.state.member:i,a=t.portal_button,si(),fi({member:o})){e.next=14;break}return e.prev=4,e.next=7,this.GhostApi.site.offer({offerId:r});case 7:l=e.sent,s=null===l||void 0===l?void 0:l.offers[0],to({offer:s})&&(a?this.dispatchAction("openPopup",{page:"offer",pageData:null===l||void 0===l?void 0:l.offers[0]}):(c=Di({site:t,productId:s.tier.id}),u="month"===s.cadence?c.monthlyPrice:c.yearlyPrice,this.dispatchAction("openPopup",{page:"loading"}),o?(p=Bi({site:t,priceId:u.id}),d=p.tierId,h=p.cadence,this.dispatchAction("checkoutPlan",{plan:u.id,offerId:r,tierId:d,cadence:h})):(g=Bi({site:t,priceId:u.id}),m=g.tierId,v=g.cadence,this.dispatchAction("signup",{plan:u.id,offerId:r,tierId:m,cadence:v})))),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:case"end":return e.stop()}}),e,this,[[4,12]])})));return function(n){return e.apply(this,arguments)}}()},{key:"handleSignupQuery",value:function(e){var n=e.site,t=e.pageQuery,r=e.member,i=/^offers\/(\w+?)\/?$/,o=t;if(i.test(t||"")){var a=c(t.match(i),2)[1];this.handleOfferQuery({site:n,offerId:a,member:r})}else{no({site:n,pageQuery:t})&&(o=no({site:n,pageQuery:t}));var l=xi({site:n,priceId:o});if(t&&"free"!==t){si();var s=(null===l||void 0===l?void 0:l.id)||o;"free"!==s&&this.dispatchAction("openPopup",{page:"loading"});var u=Bi({site:n,priceId:s}),p=u.tierId,d=u.cadence;this.dispatchAction("signup",{plan:s,tierId:p,cadence:d})}}}},{key:"getPageFromLinkPath",value:function(e){var n=/^signup\/?(?:\/(\w+?))?\/?$/,t=/^signup\/?(?:\/(\w+?))\/monthly\/?$/,r=/^signup\/?(?:\/(\w+?))\/yearly\/?$/;if(/^offers\/(\w+?)\/?$/.test(e))return{pageQuery:e};if("signup"===e)return{page:"signup"};if(t.test(e)){var i=c(e.match(t),2)[1];return{page:"signup",pageQuery:"".concat(i,"/monthly")}}if(r.test(e)){var o=c(e.match(r),2)[1];return{page:"signup",pageQuery:"".concat(o,"/yearly")}}return n.test(e)?{page:"signup",pageQuery:c(e.match(n),2)[1]}:"signup/free"===e?{page:"signup",pageQuery:"free"}:"signup/monthly"===e?{page:"signup",pageQuery:"monthly"}:"signup/yearly"===e?{page:"signup",pageQuery:"yearly"}:"signin"===e?{page:"signin"}:"account"===e?{page:"accountHome"}:"account/plans"===e?{page:"accountPlan"}:"account/profile"===e?{page:"accountProfile"}:"account/newsletters"===e?{page:"accountEmail"}:{}}},{key:"getAccentColor",value:function(){return(this.state.site||{}).accent_color}},{key:"getContextPage",value:function(e){var n=e.site,t=e.page,r=e.member;if(!t){var i=wi({site:n})?"signin":"signup";t=r?"accountHome":i}return"accountPlan"===t&&di({member:r})&&!hi({member:r})&&(t="accountHome"),Qs({page:t})}},{key:"getContextMember",value:function(e){var n=e.page,t=e.member,r=e.customSiteUrl;return so(["dev","preview"],{customSiteUrl:r})?{page:n}.page.includes("account")||{page:n}.page.includes("offer")?so(["dev"],{customSiteUrl:r})?t||Ec.free:so(["preview"])?Ec.preview:Ec.paid:null:t}},{key:"getContextFromState",value:function(){var e=this,n=this.state,t=n.site,r=n.member,i=n.action,o=n.page,a=n.lastPage,l=n.showPopup,s=n.pageQuery,c=n.pageData,u=n.popupNotification,p=n.customSiteUrl,d=this.getContextPage({site:t,page:o,member:r}),f=this.getContextMember({page:d,member:r,customSiteUrl:p});return{site:t,action:i,brandColor:this.getAccentColor(),page:d,pageQuery:s,pageData:c,member:f,lastPage:a,showPopup:l,popupNotification:u,customSiteUrl:p,onAction:function(n,t){return e.dispatchAction(n,t)}}}},{key:"render",value:function(){return"success"===this.state.initStatus?(0,mr.jsx)(ou,{site:this.state.site,children:(0,mr.jsxs)(Cr.Provider,{value:this.getContextFromState(),children:[(0,mr.jsx)(lc,{}),(0,mr.jsx)(ho,{}),(0,mr.jsx)(Go,{})]})}):null}}]),t}(ru.Component);var lu=function(e){var n=e.siteUrl;return function(e){var n=e.analyticsId,t=e.api;n&&t.analytics.pushEvent({type:"entry_view",entry_id:n,entry_url:window.location.href,created_at:new Date})}({analyticsId:e.analyticsId,api:vs({siteUrl:n})}),{}},su="ghost-portal-root";function cu(e){var n=e.siteUrl;!function(){var e=document.createElement("div");e.id=su,document.body.appendChild(e)}(),function(){var e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}(),function(e){var n=e.siteUrl,t=document.querySelector("meta[name=ghost-analytics-id]"),r=null===t||void 0===t?void 0:t.content;n&&t&&lu({siteUrl:n,analyticsId:r})}({siteUrl:n})}!function(){var t=function(){var e=document.querySelector("script[data-ghost]");return e?{siteUrl:e.dataset.ghost,apiKey:e.dataset.key,apiUrl:e.dataset.api}:{}}(),r=t.siteUrl,i=t.apiKey,o=t.apiUrl,a=r||window.location.origin;cu({siteUrl:a}),n.render((0,mr.jsx)(e.StrictMode,{children:(0,mr.jsx)(au,{siteUrl:a,customSiteUrl:r,apiKey:i,apiUrl:o})}),document.getElementById(su))}()}()}();
|
|
2
|
+
!function(){var e={912:function(e){e.exports=function(e,n){if(isNaN(e)||isNaN(n))return 0;var t=e?100-Math.floor(n/12*100/e):0;return t>=1&&t<100?t:0}},578:function(e,n,t){"use strict";function r(e){return e&&e.Math==Math?e:void 0}t.d(n,{R:function(){return o},Y:function(){return a}});var i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof t.g&&r(t.g)||function(){return this}()||{};function o(){return i}function a(e,n,t){var r=t||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=n())}},419:function(e,n,t){"use strict";function r(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,n){return e.require(n)}t.d(n,{l$:function(){return i},KV:function(){return r}}),e=t.hmd(e)},929:function(e,n,t){"use strict";t.d(n,{ph:function(){return c},yW:function(){return s}});var r=t(578),i=t(419);e=t.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(n){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=o.nowSeconds.bind(o),c=l.nowSeconds.bind(l);!function(){var e=(0,r.R)().performance;if(e&&e.now){var n=36e5,t=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-i):n,a=o<n,l=e.timing&&e.timing.navigationStart,s="number"===typeof l?Math.abs(l+t-i):n;return a||s<n?o<=s?("timeOrigin",e.timeOrigin):("navigationStart",l):("dateNow",i)}"none"}()},814:function(e,n,t){"use strict";var r=t(479),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!==typeof t){if(h){var i=f(t);i&&i!==h&&e(n,i,r)}var a=u(t);p&&(a=a.concat(p(t)));for(var l=s(n),g=s(t),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&(!r||!r[v])&&(!g||!g[v])&&(!l||!l[v])){var y=d(t,v);try{c(n,v,y)}catch(b){}}}}return n}},545:function(e){"use strict";var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,l,s=i(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))t.call(a,u)&&(s[u]=a[u]);if(n){l=n(a);for(var p=0;p<l.length;p++)r.call(a,l[p])&&(s[l[p]]=a[l[p]])}}return s}},610:function(e,n,t){"use strict";var r=t(969),i=t(545),o=t(19);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function c(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(s[e]=n,e=0;e<n.length;e++)l.add(n[e])}var p=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,h={},g={};function m(e,n,t,r,i,o,a){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];v[n]=new m(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,n,t,r){var i=v.hasOwnProperty(n)?v[n]:null;(null!==i?0===i.type:!r&&(2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])))||(function(e,n,t,r){if(null===n||"undefined"===typeof n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,i,r)&&(t=null),r||null===i?function(e){return!!f.call(g,e)||!f.call(h,e)&&(d.test(e)?g[e]=!0:(h[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):i.mustUseProperty?e[i.propertyName]=null===t?3!==i.type&&"":t:(n=i.attributeName,r=i.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(i=i.type)||4===i&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new m(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(y,b);v[n]=new m(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(y,b);v[n]=new m(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,k=60106,S=60107,E=60108,j=60114,C=60109,N=60110,P=60112,O=60113,T=60120,I=60115,D=60116,R=60121,L=60128,U=60129,z=60130,M=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),k=F("react.portal"),S=F("react.fragment"),E=F("react.strict_mode"),j=F("react.profiler"),C=F("react.provider"),N=F("react.context"),P=F("react.forward_ref"),O=F("react.suspense"),T=F("react.suspense_list"),I=F("react.memo"),D=F("react.lazy"),R=F("react.block"),F("react.scope"),L=F("react.opaque.id"),U=F("react.debug_trace_mode"),z=F("react.offscreen"),M=F("react.legacy_hidden")}var A,B="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function Y(e){if(void 0===A)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return"\n"+A+e}var $=!1;function G(e,n){if(!e||$)return"";$=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(s){var r=s}Reflect.construct(e,[],n)}else{try{n.call()}catch(s){r=s}e.call(n.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var i=s.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{$=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Y(e):""}function W(e){switch(e.tag){case 5:return Y(e.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case j:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case I:return q(e.type);case R:return q(e._render);case D:n=e._payload,e=e._init;try{return q(e(n))}catch(t){}}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function V(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function K(e){e._valueTracker||(e._valueTracker=function(e){var n=V(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&"undefined"!==typeof t&&"function"===typeof t.get&&"function"===typeof t.set){var i=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function J(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Z(e,n){var t=n.checked;return i({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function ee(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=Q(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ne(e,n){null!=(n=n.checked)&&x(e,"checked",n,!1)}function te(e,n){ne(e,n);var t=Q(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?ie(e,n.type,t):n.hasOwnProperty("defaultValue")&&ie(e,n.type,Q(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function re(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function ie(e,n,t){"number"===n&&X(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function oe(e,n){return e=i({children:void 0},n),(n=function(e){var n="";return r.Children.forEach(e,(function(e){null!=e&&(n+=e)})),n}(n.children))&&(e.children=n),e}function ae(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+Q(t),n=null,i=0;i<e.length;i++){if(e[i].value===t)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==n||e[i].disabled||(n=e[i])}null!==n&&(n.selected=!0)}}function le(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(a(91));return i({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(a(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(a(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:Q(t)}}function ce(e,n){var t=Q(n.value),r=Q(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function ue(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}var pe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var ge,me,ve=(me=function(e,n){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=n;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return me(e,n)}))}:me);function ye(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,n,t){return null==n||"boolean"===typeof n||""===n?"":t||"number"!==typeof n||0===n||be.hasOwnProperty(e)&&be[e]?(""+n).trim():n+"px"}function _e(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),i=we(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,i):e[t]=i}}Object.keys(be).forEach((function(e){xe.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),be[n]=be[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,n){if(n){if(ke[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!==typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!==typeof n.style)throw Error(a(62))}}function Ee(e,n){if(-1===e.indexOf("-"))return"string"===typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function je(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ne=null,Pe=null;function Oe(e){if(e=ri(e)){if("function"!==typeof Ce)throw Error(a(280));var n=e.stateNode;n&&(n=oi(n),Ce(e.stateNode,e.type,n))}}function Te(e){Ne?Pe?Pe.push(e):Pe=[e]:Ne=e}function Ie(){if(Ne){var e=Ne,n=Pe;if(Pe=Ne=null,Oe(e),n)for(e=0;e<n.length;e++)Oe(n[e])}}function De(e,n){return e(n)}function Re(e,n,t,r,i){return e(n,t,r,i)}function Le(){}var Ue=De,ze=!1,Me=!1;function Fe(){null===Ne&&null===Pe||(Le(),Ie())}function Ae(e,n){var t=e.stateNode;if(null===t)return null;var r=oi(t);if(null===r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(t&&"function"!==typeof t)throw Error(a(231,n,typeof t));return t}var Be=!1;if(p)try{var He={};Object.defineProperty(He,"passive",{get:function(){Be=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(me){Be=!1}function Ye(e,n,t,r,i,o,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{n.apply(t,c)}catch(u){this.onError(u)}}var $e=!1,Ge=null,We=!1,qe=null,Qe={onError:function(e){$e=!0,Ge=e}};function Ve(e,n,t,r,i,o,a,l,s){$e=!1,Ge=null,Ye.apply(Qe,arguments)}function Ke(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!==(1026&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function Je(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&(null!==(e=e.alternate)&&(n=e.memoizedState)),null!==n)return n.dehydrated}return null}function Xe(e){if(Ke(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var n=e.alternate;if(!n){if(null===(n=Ke(e)))throw Error(a(188));return n!==e?null:e}for(var t=e,r=n;;){var i=t.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){t=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===t)return Xe(i),e;if(o===r)return Xe(i),n;o=o.sibling}throw Error(a(188))}if(t.return!==r.return)t=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===t){l=!0,t=i,r=o;break}if(s===r){l=!0,r=i,t=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===t){l=!0,t=o,r=i;break}if(s===r){l=!0,r=o,t=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(t.alternate!==r)throw Error(a(190))}if(3!==t.tag)throw Error(a(188));return t.stateNode.current===t?e:n}(e),!e)return null;for(var n=e;;){if(5===n.tag||6===n.tag)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===e)break;for(;!n.sibling;){if(!n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}function en(e,n){for(var t=e.alternate;null!==n;){if(n===e||n===t)return!0;n=n.return}return!1}var nn,tn,rn,on,an=!1,ln=[],sn=null,cn=null,un=null,pn=new Map,dn=new Map,fn=[],hn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gn(e,n,t,r,i){return{blockedOn:e,domEventName:n,eventSystemFlags:16|t,nativeEvent:i,targetContainers:[r]}}function mn(e,n){switch(e){case"focusin":case"focusout":sn=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":un=null;break;case"pointerover":case"pointerout":pn.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":dn.delete(n.pointerId)}}function vn(e,n,t,r,i,o){return null===e||e.nativeEvent!==o?(e=gn(n,t,r,i,o),null!==n&&(null!==(n=ri(n))&&tn(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==i&&-1===n.indexOf(i)&&n.push(i),e)}function yn(e){var n=ti(e.target);if(null!==n){var t=Ke(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=Je(t)))return e.blockedOn=n,void on(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rn(t)}))}))}else if(3===n&&t.stateNode.hydrate)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function bn(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=et(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=ri(t))&&tn(n),e.blockedOn=t,!1;n.shift()}return!0}function xn(e,n,t){bn(e)&&t.delete(n)}function wn(){for(an=!1;0<ln.length;){var e=ln[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&nn(e);break}for(var n=e.targetContainers;0<n.length;){var t=et(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t){e.blockedOn=t;break}n.shift()}null===e.blockedOn&&ln.shift()}null!==sn&&bn(sn)&&(sn=null),null!==cn&&bn(cn)&&(cn=null),null!==un&&bn(un)&&(un=null),pn.forEach(xn),dn.forEach(xn)}function _n(e,n){e.blockedOn===n&&(e.blockedOn=null,an||(an=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wn)))}function kn(e){function n(n){return _n(n,e)}if(0<ln.length){_n(ln[0],e);for(var t=1;t<ln.length;t++){var r=ln[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==sn&&_n(sn,e),null!==cn&&_n(cn,e),null!==un&&_n(un,e),pn.forEach(n),dn.forEach(n),t=0;t<fn.length;t++)(r=fn[t]).blockedOn===e&&(r.blockedOn=null);for(;0<fn.length&&null===(t=fn[0]).blockedOn;)yn(t),null===t.blockedOn&&fn.shift()}function Sn(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var En={animationend:Sn("Animation","AnimationEnd"),animationiteration:Sn("Animation","AnimationIteration"),animationstart:Sn("Animation","AnimationStart"),transitionend:Sn("Transition","TransitionEnd")},jn={},Cn={};function Nn(e){if(jn[e])return jn[e];if(!En[e])return e;var n,t=En[e];for(n in t)if(t.hasOwnProperty(n)&&n in Cn)return jn[e]=t[n];return e}p&&(Cn=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);var Pn=Nn("animationend"),On=Nn("animationiteration"),Tn=Nn("animationstart"),In=Nn("transitionend"),Dn=new Map,Rn=new Map,Ln=["abort","abort",Pn,"animationEnd",On,"animationIteration",Tn,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",In,"transitionEnd","waiting","waiting"];function Un(e,n){for(var t=0;t<e.length;t+=2){var r=e[t],i=e[t+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rn.set(r,n),Dn.set(r,i),c(i,[r])}}(0,o.unstable_now)();var zn=8;function Mn(e){if(0!==(1&e))return zn=15,1;if(0!==(2&e))return zn=14,2;if(0!==(4&e))return zn=13,4;var n=24&e;return 0!==n?(zn=12,n):0!==(32&e)?(zn=11,32):0!==(n=192&e)?(zn=10,n):0!==(256&e)?(zn=9,256):0!==(n=3584&e)?(zn=8,n):0!==(4096&e)?(zn=7,4096):0!==(n=4186112&e)?(zn=6,n):0!==(n=62914560&e)?(zn=5,n):67108864&e?(zn=4,67108864):0!==(134217728&e)?(zn=3,134217728):0!==(n=805306368&e)?(zn=2,n):0!==(1073741824&e)?(zn=1,1073741824):(zn=8,e)}function Fn(e,n){var t=e.pendingLanes;if(0===t)return zn=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=zn=15;else if(0!==(o=134217727&t)){var s=o&~a;0!==s?(r=Mn(s),i=zn):0!==(l&=o)&&(r=Mn(l),i=zn)}else 0!==(o=t&~a)?(r=Mn(o),i=zn):0!==l&&(r=Mn(l),i=zn);if(0===r)return 0;if(r=t&((0>(r=31-Gn(r))?0:1<<r)<<1)-1,0!==n&&n!==r&&0===(n&a)){if(Mn(n),i<=zn)return n;zn=i}if(0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)i=1<<(t=31-Gn(n)),r|=e[t],n&=~i;return r}function An(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bn(e,n){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Hn(24&~n))?Bn(10,n):e;case 10:return 0===(e=Hn(192&~n))?Bn(8,n):e;case 8:return 0===(e=Hn(3584&~n))&&(0===(e=Hn(4186112&~n))&&(e=512)),e;case 2:return 0===(n=Hn(805306368&~n))&&(n=268435456),n}throw Error(a(358,e))}function Hn(e){return e&-e}function Yn(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function $n(e,n,t){e.pendingLanes|=n;var r=n-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[n=31-Gn(n)]=t}var Gn=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wn(e)/qn|0)|0},Wn=Math.log,qn=Math.LN2;var Qn=o.unstable_UserBlockingPriority,Vn=o.unstable_runWithPriority,Kn=!0;function Jn(e,n,t,r){ze||Le();var i=Zn,o=ze;ze=!0;try{Re(i,e,n,t,r)}finally{(ze=o)||Fe()}}function Xn(e,n,t,r){Vn(Qn,Zn.bind(null,e,n,t,r))}function Zn(e,n,t,r){var i;if(Kn)if((i=0===(4&n))&&0<ln.length&&-1<hn.indexOf(e))e=gn(null,e,n,t,r),ln.push(e);else{var o=et(e,n,t,r);if(null===o)i&&mn(e,r);else{if(i){if(-1<hn.indexOf(e))return e=gn(o,e,n,t,r),void ln.push(e);if(function(e,n,t,r,i){switch(n){case"focusin":return sn=vn(sn,e,n,t,r,i),!0;case"dragenter":return cn=vn(cn,e,n,t,r,i),!0;case"mouseover":return un=vn(un,e,n,t,r,i),!0;case"pointerover":var o=i.pointerId;return pn.set(o,vn(pn.get(o)||null,e,n,t,r,i)),!0;case"gotpointercapture":return o=i.pointerId,dn.set(o,vn(dn.get(o)||null,e,n,t,r,i)),!0}return!1}(o,e,n,t,r))return;mn(e,r)}Lr(e,n,r,null,t)}}}function et(e,n,t,r){var i=je(r);if(null!==(i=ti(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Je(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,n,r,i,t),null}var nt=null,tt=null,rt=null;function it(){if(rt)return rt;var e,n,t=tt,r=t.length,i="value"in nt?nt.value:nt.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return rt=i.slice(e,1<n?1-n:void 0)}function ot(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function at(){return!0}function lt(){return!1}function st(e){function n(n,t,r,i,o){for(var a in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?at:lt,this.isPropagationStopped=lt,this}return i(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=at)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=at)},persist:function(){},isPersistent:at}),n}var ct,ut,pt,dt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ft=st(dt),ht=i({},dt,{view:0,detail:0}),gt=st(ht),mt=i({},ht,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pt&&(pt&&"mousemove"===e.type?(ct=e.screenX-pt.screenX,ut=e.screenY-pt.screenY):ut=ct=0,pt=e),ct)},movementY:function(e){return"movementY"in e?e.movementY:ut}}),vt=st(mt),yt=st(i({},mt,{dataTransfer:0})),bt=st(i({},ht,{relatedTarget:0})),xt=st(i({},dt,{animationName:0,elapsedTime:0,pseudoElement:0})),wt=i({},dt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_t=st(wt),kt=st(i({},dt,{data:0})),St={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Et={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ct(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=jt[e])&&!!n[e]}function Nt(){return Ct}var Pt=i({},ht,{key:function(e){if(e.key){var n=St[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=ot(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Et[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nt,charCode:function(e){return"keypress"===e.type?ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ot=st(Pt),Tt=st(i({},mt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),It=st(i({},ht,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nt})),Dt=st(i({},dt,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rt=i({},mt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lt=st(Rt),Ut=[9,13,27,32],zt=p&&"CompositionEvent"in window,Mt=null;p&&"documentMode"in document&&(Mt=document.documentMode);var Ft=p&&"TextEvent"in window&&!Mt,At=p&&(!zt||Mt&&8<Mt&&11>=Mt),Bt=String.fromCharCode(32),Ht=!1;function Yt(e,n){switch(e){case"keyup":return-1!==Ut.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $t(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Gt=!1;var Wt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Wt[e.type]:"textarea"===n}function Qt(e,n,t,r){Te(r),0<(n=zr(n,"onChange")).length&&(t=new ft("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Vt=null,Kt=null;function Jt(e){Pr(e,0)}function Xt(e){if(J(ii(e)))return e}function Zt(e,n){if("change"===e)return n}var er=!1;if(p){var nr;if(p){var tr="oninput"in document;if(!tr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),tr="function"===typeof rr.oninput}nr=tr}else nr=!1;er=nr&&(!document.documentMode||9<document.documentMode)}function ir(){Vt&&(Vt.detachEvent("onpropertychange",or),Kt=Vt=null)}function or(e){if("value"===e.propertyName&&Xt(Kt)){var n=[];if(Qt(n,Kt,e,je(e)),e=Jt,ze)e(n);else{ze=!0;try{De(e,n)}finally{ze=!1,Fe()}}}}function ar(e,n,t){"focusin"===e?(ir(),Kt=t,(Vt=n).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xt(Kt)}function sr(e,n){if("click"===e)return Xt(n)}function cr(e,n){if("input"===e||"change"===e)return Xt(n)}var ur="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},pr=Object.prototype.hasOwnProperty;function dr(e,n){if(ur(e,n))return!0;if("object"!==typeof e||null===e||"object"!==typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++)if(!pr.call(n,t[r])||!ur(e[t[r]],n[t[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,n){var t,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function gr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?gr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function mr(){for(var e=window,n=X();n instanceof e.HTMLIFrameElement;){try{var t="string"===typeof n.contentWindow.location.href}catch(r){t=!1}if(!t)break;n=X((e=n.contentWindow).document)}return n}function vr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var yr=p&&"documentMode"in document&&11>=document.documentMode,br=null,xr=null,wr=null,_r=!1;function kr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;_r||null==br||br!==X(r)||("selectionStart"in(r=br)&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=zr(xr,"onSelect")).length&&(n=new ft("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=br)))}Un("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Un("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Un(Ln,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Sr.length;Er++)Rn.set(Sr[Er],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Nr(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,function(e,n,t,r,i,o,l,s,c){if(Ve.apply(this,arguments),$e){if(!$e)throw Error(a(198));var u=Ge;$e=!1,Ge=null,We||(We=!0,qe=u)}}(r,n,void 0,e),e.currentTarget=null}function Pr(e,n){n=0!==(4&n);for(var t=0;t<e.length;t++){var r=e[t],i=r.event;r=r.listeners;e:{var o=void 0;if(n)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Nr(i,l,c),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Nr(i,l,c),o=s}}}if(We)throw e=qe,We=!1,qe=null,e}function Or(e,n){var t=ai(n),r=e+"__bubble";t.has(r)||(Rr(n,e,2,!1),t.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Tr]||(e[Tr]=!0,l.forEach((function(n){Cr.has(n)||Dr(n,!1,e,null),Dr(n,!0,e,null)})))}function Dr(e,n,t,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=t;if("selectionchange"===e&&9!==t.nodeType&&(o=t.ownerDocument),null!==r&&!n&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),l=e+"__"+(n?"capture":"bubble");a.has(l)||(n&&(i|=4),Rr(o,e,i,n),a.add(l))}function Rr(e,n,t,r){var i=Rn.get(n);switch(void 0===i?2:i){case 0:i=Jn;break;case 1:i=Xn;break;default:i=Zn}t=i.bind(null,n,t,e),i=void 0,!Be||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(i=!0),r?void 0!==i?e.addEventListener(n,t,{capture:!0,passive:i}):e.addEventListener(n,t,!0):void 0!==i?e.addEventListener(n,t,{passive:i}):e.addEventListener(n,t,!1)}function Lr(e,n,t,r,i){var o=r;if(0===(1&n)&&0===(2&n)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=ti(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,n,t){if(Me)return e(n,t);Me=!0;try{Ue(e,n,t)}finally{Me=!1,Fe()}}((function(){var r=o,i=je(t),a=[];e:{var l=Dn.get(e);if(void 0!==l){var s=ft,c=e;switch(e){case"keypress":if(0===ot(t))break e;case"keydown":case"keyup":s=Ot;break;case"focusin":c="focus",s=bt;break;case"focusout":c="blur",s=bt;break;case"beforeblur":case"afterblur":s=bt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=It;break;case Pn:case On:case Tn:s=xt;break;case In:s=Dt;break;case"scroll":s=gt;break;case"wheel":s=Lt;break;case"copy":case"cut":case"paste":s=_t;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tt}var u=0!==(4&n),p=!u&&"scroll"===e,d=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var g=(f=h).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==d&&(null!=(g=Ae(h,d))&&u.push(Ur(h,g,f)))),p)break;h=h.return}0<u.length&&(l=new s(l,c,null,t,i),a.push({event:l,listeners:u}))}}if(0===(7&n)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&n)||!(c=t.relatedTarget||t.fromElement)||!ti(c)&&!c[ei])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=t.relatedTarget||t.toElement)?ti(c):null)&&(c!==(p=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=vt,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tt,g="onPointerLeave",d="onPointerEnter",h="pointer"),p=null==s?l:ii(s),f=null==c?l:ii(c),(l=new u(g,h+"leave",s,t,i)).target=p,l.relatedTarget=f,g=null,ti(i)===r&&((u=new u(d,h+"enter",c,t,i)).target=f,u.relatedTarget=p,g=u),p=g,s&&c)e:{for(d=c,h=0,f=u=s;f;f=Mr(f))h++;for(f=0,g=d;g;g=Mr(g))f++;for(;0<h-f;)u=Mr(u),h--;for(;0<f-h;)d=Mr(d),f--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=Mr(u),d=Mr(d)}u=null}else u=null;null!==s&&Fr(a,l,s,u,!1),null!==c&&null!==p&&Fr(a,p,c,u,!0)}if("select"===(s=(l=r?ii(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Zt;else if(qt(l))if(er)m=cr;else{m=lr;var v=ar}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=sr);switch(m&&(m=m(e,r))?Qt(a,m,t,i):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ie(l,"number",l.value)),v=r?ii(r):window,e){case"focusin":(qt(v)||"true"===v.contentEditable)&&(br=v,xr=r,wr=null);break;case"focusout":wr=xr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,kr(a,t,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":kr(a,t,i)}var y;if(zt)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Gt?Yt(e,t)&&(b="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(b="onCompositionStart");b&&(At&&"ko"!==t.locale&&(Gt||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gt&&(y=it()):(tt="value"in(nt=i)?nt.value:nt.textContent,Gt=!0)),0<(v=zr(r,b)).length&&(b=new kt(b,e,null,t,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$t(t))&&(b.data=y))),(y=Ft?function(e,n){switch(e){case"compositionend":return $t(n);case"keypress":return 32!==n.which?null:(Ht=!0,Bt);case"textInput":return(e=n.data)===Bt&&Ht?null:e;default:return null}}(e,t):function(e,n){if(Gt)return"compositionend"===e||!zt&&Yt(e,n)?(e=it(),rt=tt=nt=null,Gt=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return At&&"ko"!==n.locale?null:n.data}}(e,t))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new kt("onBeforeInput","beforeinput",null,t,i),a.push({event:i,listeners:r}),i.data=y))}Pr(a,n)}))}function Ur(e,n,t){return{instance:e,listener:n,currentTarget:t}}function zr(e,n){for(var t=n+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ae(e,t))&&r.unshift(Ur(e,o,i)),null!=(o=Ae(e,n))&&r.push(Ur(e,o,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,n,t,r,i){for(var o=n._reactName,a=[];null!==t&&t!==r;){var l=t,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,i?null!=(s=Ae(t,o))&&a.unshift(Ur(t,s,l)):i||null!=(s=Ae(t,o))&&a.push(Ur(t,s,l))),t=t.return}0!==a.length&&e.push({event:n,listeners:a})}function Ar(){}var Br=null,Hr=null;function Yr(e,n){switch(e){case"button":case"input":case"select":case"textarea":return!!n.autoFocus}return!1}function $r(e,n){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof n.children||"number"===typeof n.children||"object"===typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var Gr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Qr(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break}return e}function Vr(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}var Kr=0;var Jr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Jr,Zr="__reactProps$"+Jr,ei="__reactContainer$"+Jr,ni="__reactEvents$"+Jr;function ti(e){var n=e[Xr];if(n)return n;for(var t=e.parentNode;t;){if(n=t[ei]||t[Xr]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=Vr(e);null!==e;){if(t=e[Xr])return t;e=Vr(e)}return n}t=(e=t).parentNode}return null}function ri(e){return!(e=e[Xr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oi(e){return e[Zr]||null}function ai(e){var n=e[ni];return void 0===n&&(n=e[ni]=new Set),n}var li=[],si=-1;function ci(e){return{current:e}}function ui(e){0>si||(e.current=li[si],li[si]=null,si--)}function pi(e,n){si++,li[si]=e.current,e.current=n}var di={},fi=ci(di),hi=ci(!1),gi=di;function mi(e,n){var t=e.type.contextTypes;if(!t)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in t)o[i]=n[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ui(hi),ui(fi)}function bi(e,n,t){if(fi.current!==di)throw Error(a(168));pi(fi,n),pi(hi,t)}function xi(e,n,t){var r=e.stateNode;if(e=n.childContextTypes,"function"!==typeof r.getChildContext)return t;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,q(n)||"Unknown",o));return i({},t,r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,gi=fi.current,pi(fi,e),pi(hi,hi.current),!0}function _i(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=xi(e,n,gi),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(fi),pi(fi,e)):ui(hi),pi(hi,t)}var ki=null,Si=null,Ei=o.unstable_runWithPriority,ji=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Ni=o.unstable_shouldYield,Pi=o.unstable_requestPaint,Oi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ii=o.unstable_ImmediatePriority,Di=o.unstable_UserBlockingPriority,Ri=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ui=o.unstable_IdlePriority,zi={},Mi=void 0!==Pi?Pi:function(){},Fi=null,Ai=null,Bi=!1,Hi=Oi(),Yi=1e4>Hi?Oi:function(){return Oi()-Hi};function $i(){switch(Ti()){case Ii:return 99;case Di:return 98;case Ri:return 97;case Li:return 96;case Ui:return 95;default:throw Error(a(332))}}function Gi(e){switch(e){case 99:return Ii;case 98:return Di;case 97:return Ri;case 96:return Li;case 95:return Ui;default:throw Error(a(332))}}function Wi(e,n){return e=Gi(e),Ei(e,n)}function qi(e,n,t){return e=Gi(e),ji(e,n,t)}function Qi(){if(null!==Ai){var e=Ai;Ai=null,Ci(e)}Vi()}function Vi(){if(!Bi&&null!==Fi){Bi=!0;var e=0;try{var n=Fi;Wi(99,(function(){for(;e<n.length;e++){var t=n[e];do{t=t(!0)}while(null!==t)}})),Fi=null}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),ji(Ii,Qi),t}finally{Bi=!1}}}var Ki=w.ReactCurrentBatchConfig;function Ji(e,n){if(e&&e.defaultProps){for(var t in n=i({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}var Xi=ci(null),Zi=null,eo=null,no=null;function to(){no=eo=Zi=null}function ro(e){var n=Xi.current;ui(Xi),e.type._context._currentValue=n}function io(e,n){for(;null!==e;){var t=e.alternate;if((e.childLanes&n)===n){if(null===t||(t.childLanes&n)===n)break;t.childLanes|=n}else e.childLanes|=n,null!==t&&(t.childLanes|=n);e=e.return}}function oo(e,n){Zi=e,no=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&n)&&(za=!0),e.firstContext=null)}function ao(e,n){if(no!==e&&!1!==n&&0!==n)if("number"===typeof n&&1073741823!==n||(no=e,n=1073741823),n={context:e,observedBits:n,next:null},null===eo){if(null===Zi)throw Error(a(308));eo=n,Zi.dependencies={lanes:0,firstContext:n,responders:null}}else eo=eo.next=n;return e._currentValue}var lo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function po(e,n){if(null!==(e=e.updateQueue)){var t=(e=e.shared).pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}}function fo(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===o?i=o=a:o=o.next=a,t=t.next}while(null!==t);null===o?i=o=n:o=o.next=n}else i=o=n;return t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function ho(e,n,t,r){var o=e.updateQueue;lo=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var c=s,u=c.next;c.next=null,null===l?a=u:l.next=u,l=c;var p=e.alternate;if(null!==p){var d=(p=p.updateQueue).lastBaseUpdate;d!==l&&(null===d?p.firstBaseUpdate=u:d.next=u,p.lastBaseUpdate=c)}}if(null!==a){for(d=o.baseState,l=0,p=u=c=null;;){s=a.lane;var f=a.eventTime;if((r&s)===s){null!==p&&(p=p.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,g=a;switch(s=n,f=t,g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(f,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=g.payload)?h.call(f,d,s):h)||void 0===s)break e;d=i({},d,s);break e;case 2:lo=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else f={eventTime:f,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===p?(u=p=f,c=d):p=p.next=f,l|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===p&&(c=d),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=p,Bl|=l,e.lanes=l,e.memoizedState=d}}function go(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],i=r.callback;if(null!==i){if(r.callback=null,r=t,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function vo(e,n,t,r){t=null===(t=t(r,n=e.memoizedState))||void 0===t?n:i({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var yo={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=ds(),i=fs(e),o=uo(r,i);o.payload=n,void 0!==t&&null!==t&&(o.callback=t),po(e,o),hs(e,i,r)},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=ds(),i=fs(e),o=uo(r,i);o.tag=1,o.payload=n,void 0!==t&&null!==t&&(o.callback=t),po(e,o),hs(e,i,r)},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=ds(),r=fs(e),i=uo(t,r);i.tag=2,void 0!==n&&null!==n&&(i.callback=n),po(e,i),hs(e,r,t)}};function bo(e,n,t,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!n.prototype||!n.prototype.isPureReactComponent||(!dr(t,r)||!dr(i,o))}function xo(e,n,t){var r=!1,i=di,o=n.contextType;return"object"===typeof o&&null!==o?o=ao(o):(i=vi(n)?gi:fi.current,o=(r=null!==(r=n.contextTypes)&&void 0!==r)?mi(e,i):di),n=new n(t,o),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=yo,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),n}function wo(e,n,t,r){e=n.state,"function"===typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"===typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&yo.enqueueReplaceState(n,n.state,null)}function _o(e,n,t,r){var i=e.stateNode;i.props=t,i.state=e.memoizedState,i.refs=mo,so(e);var o=n.contextType;"object"===typeof o&&null!==o?i.context=ao(o):(o=vi(n)?gi:fi.current,i.context=mi(e,o)),ho(e,t,i,r),i.state=e.memoizedState,"function"===typeof(o=n.getDerivedStateFromProps)&&(vo(e,n,o,t),i.state=e.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(n=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),n!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,t,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function So(e,n,t){if(null!==(e=t.ref)&&"function"!==typeof e&&"object"!==typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(a(309));var r=t.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==n&&null!==n.ref&&"function"===typeof n.ref&&n.ref._stringRef===i?n.ref:(n=function(e){var n=r.refs;n===mo&&(n=r.refs={}),null===e?delete n[i]:n[i]=e},n._stringRef=i,n)}if("string"!==typeof e)throw Error(a(284));if(!t._owner)throw Error(a(290,e))}return e}function Eo(e,n){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(n)?"object with keys {"+Object.keys(n).join(", ")+"}":n))}function jo(e){function n(n,t){if(e){var r=n.lastEffect;null!==r?(r.nextEffect=t,n.lastEffect=t):n.firstEffect=n.lastEffect=t,t.nextEffect=null,t.flags=8}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function i(e,n){return(e=Ws(e,n)).index=0,e.sibling=null,e}function o(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags=2,t):r:(n.flags=2,t):t}function l(n){return e&&null===n.alternate&&(n.flags=2),n}function s(e,n,t,r){return null===n||6!==n.tag?((n=Ks(t,e.mode,r)).return=e,n):((n=i(n,t)).return=e,n)}function c(e,n,t,r){return null!==n&&n.elementType===t.type?((r=i(n,t.props)).ref=So(e,n,t),r.return=e,r):((r=qs(t.type,t.key,t.props,null,e.mode,r)).ref=So(e,n,t),r.return=e,r)}function u(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Js(t,e.mode,r)).return=e,n):((n=i(n,t.children||[])).return=e,n)}function p(e,n,t,r,o){return null===n||7!==n.tag?((n=Qs(t,e.mode,r,o)).return=e,n):((n=i(n,t)).return=e,n)}function d(e,n,t){if("string"===typeof n||"number"===typeof n)return(n=Ks(""+n,e.mode,t)).return=e,n;if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return(t=qs(n.type,n.key,n.props,null,e.mode,t)).ref=So(e,null,n),t.return=e,t;case k:return(n=Js(n,e.mode,t)).return=e,n}if(ko(n)||H(n))return(n=Qs(n,e.mode,t,null)).return=e,n;Eo(e,n)}return null}function f(e,n,t,r){var i=null!==n?n.key:null;if("string"===typeof t||"number"===typeof t)return null!==i?null:s(e,n,""+t,r);if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return t.key===i?t.type===S?p(e,n,t.props.children,r,i):c(e,n,t,r):null;case k:return t.key===i?u(e,n,t,r):null}if(ko(t)||H(t))return null!==i?null:p(e,n,t,r,null);Eo(e,t)}return null}function h(e,n,t,r,i){if("string"===typeof r||"number"===typeof r)return s(n,e=e.get(t)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?t:r.key)||null,r.type===S?p(n,e,r.props.children,i,r.key):c(n,e,r,i);case k:return u(n,e=e.get(null===r.key?t:r.key)||null,r,i)}if(ko(r)||H(r))return p(n,e=e.get(t)||null,r,i,null);Eo(n,r)}return null}function g(i,a,l,s){for(var c=null,u=null,p=a,g=a=0,m=null;null!==p&&g<l.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=f(i,p,l[g],s);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&n(i,p),a=o(v,a,g),null===u?c=v:u.sibling=v,u=v,p=m}if(g===l.length)return t(i,p),c;if(null===p){for(;g<l.length;g++)null!==(p=d(i,l[g],s))&&(a=o(p,a,g),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(i,p);g<l.length;g++)null!==(m=h(p,i,g,l[g],s))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&p.forEach((function(e){return n(i,e)})),c}function m(i,l,s,c){var u=H(s);if("function"!==typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var p=u=null,g=l,m=l=0,v=null,y=s.next();null!==g&&!y.done;m++,y=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(i,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&n(i,g),l=o(b,l,m),null===p?u=b:p.sibling=b,p=b,g=v}if(y.done)return t(i,g),u;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,c))&&(l=o(y,l,m),null===p?u=y:p.sibling=y,p=y);return u}for(g=r(i,g);!y.done;m++,y=s.next())null!==(y=h(g,i,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=o(y,l,m),null===p?u=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return n(i,e)})),u}return function(e,r,o,s){var c="object"===typeof o&&null!==o&&o.type===S&&null===o.key;c&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case _:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===S){t(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){t(e,c.sibling),(r=i(c,o.props)).ref=So(e,c,o),r.return=e,e=r;break e}t(e,c);break}n(e,c),c=c.sibling}o.type===S?((r=Qs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=qs(o.type,o.key,o.props,null,e.mode,s)).ref=So(e,r,o),s.return=e,e=s)}return l(e);case k:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){t(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=Js(o,e.mode,s)).return=e,e=r}return l(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(t(e,r.sibling),(r=i(r,o)).return=e,e=r):(t(e,r),(r=Ks(o,e.mode,s)).return=e,e=r),l(e);if(ko(o))return g(e,r,o,s);if(H(o))return m(e,r,o,s);if(u&&Eo(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return t(e,r)}}var Co=jo(!0),No=jo(!1),Po={},Oo=ci(Po),To=ci(Po),Io=ci(Po);function Do(e){if(e===Po)throw Error(a(174));return e}function Ro(e,n){switch(pi(Io,n),pi(To,e),pi(Oo,Po),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:he(null,"");break;default:n=he(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}ui(Oo),pi(Oo,n)}function Lo(){ui(Oo),ui(To),ui(Io)}function Uo(e){Do(Io.current);var n=Do(Oo.current),t=he(n,e.type);n!==t&&(pi(To,e),pi(Oo,t))}function zo(e){To.current===e&&(ui(Oo),ui(To))}var Mo=ci(0);function Fo(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!==(64&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ao=null,Bo=null,Ho=!1;function Yo(e,n){var t=$s(5,null,null,0);t.elementType="DELETED",t.type="DELETED",t.stateNode=n,t.return=e,t.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t}function $o(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,!0);default:return!1}}function Go(e){if(Ho){var n=Bo;if(n){var t=n;if(!$o(e,n)){if(!(n=Qr(t.nextSibling))||!$o(e,n))return e.flags=-1025&e.flags|2,Ho=!1,void(Ao=e);Yo(Ao,t)}Ao=e,Bo=Qr(n.firstChild)}else e.flags=-1025&e.flags|2,Ho=!1,Ao=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ao=e}function qo(e){if(e!==Ao)return!1;if(!Ho)return Wo(e),Ho=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!$r(n,e.memoizedProps))for(n=Bo;n;)Yo(e,n),n=Qr(n.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t){if(0===n){Bo=Qr(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}Bo=null}}else Bo=Ao?Qr(e.stateNode.nextSibling):null;return!0}function Qo(){Bo=Ao=null,Ho=!1}var Vo=[];function Ko(){for(var e=0;e<Vo.length;e++)Vo[e]._workInProgressVersionPrimary=null;Vo.length=0}var Jo=w.ReactCurrentDispatcher,Xo=w.ReactCurrentBatchConfig,Zo=0,ea=null,na=null,ta=null,ra=!1,ia=!1;function oa(){throw Error(a(321))}function aa(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!ur(e[t],n[t]))return!1;return!0}function la(e,n,t,r,i,o){if(Zo=o,ea=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Jo.current=null===e||null===e.memoizedState?Da:Ra,e=t(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(a(301));o+=1,ta=na=null,n.updateQueue=null,Jo.current=La,e=t(r,i)}while(ia)}if(Jo.current=Ia,n=null!==na&&null!==na.next,Zo=0,ta=na=ea=null,ra=!1,n)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?ea.memoizedState=ta=e:ta=ta.next=e,ta}function ca(){if(null===na){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=na.next;var n=null===ta?ea.memoizedState:ta.next;if(null!==n)ta=n,na=e;else{if(null===e)throw Error(a(310));e={memoizedState:(na=e).memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},null===ta?ea.memoizedState=ta=e:ta=ta.next=e}return ta}function ua(e,n){return"function"===typeof n?n(e):n}function pa(e){var n=ca(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=na,i=r.baseQueue,o=t.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,t.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=o=null,c=i;do{var u=c.lane;if((Zo&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var p={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=p,o=r):s=s.next=p,ea.lanes|=u,Bl|=u}c=c.next}while(null!==c&&c!==i);null===s?o=r:s.next=l,ur(r,n.memoizedState)||(za=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=s,t.lastRenderedState=r}return[n.memoizedState,t.dispatch]}function da(e){var n=ca(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,o=n.memoizedState;if(null!==i){t.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ur(o,n.memoizedState)||(za=!0),n.memoizedState=o,null===n.baseQueue&&(n.baseState=o),t.lastRenderedState=o}return[o,r]}function fa(e,n,t){var r=n._getVersion;r=r(n._source);var i=n._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Zo&e)===e)&&(n._workInProgressVersionPrimary=r,Vo.push(n))),e)return t(n._source);throw Vo.push(n),Error(a(350))}function ha(e,n,t,r){var i=Dl;if(null===i)throw Error(a(349));var o=n._getVersion,l=o(n._source),s=Jo.current,c=s.useState((function(){return fa(i,n,t)})),u=c[1],p=c[0];c=ta;var d=e.memoizedState,f=d.refs,h=f.getSnapshot,g=d.source;d=d.subscribe;var m=ea;return e.memoizedState={refs:f,source:n,subscribe:r},s.useEffect((function(){f.getSnapshot=t,f.setSnapshot=u;var e=o(n._source);if(!ur(l,e)){e=t(n._source),ur(p,e)||(u(e),e=fs(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Gn(a),c=1<<s;r[s]|=e,a&=~c}}}),[t,n,r]),s.useEffect((function(){return r(n._source,(function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=fs(m);i.mutableReadLanes|=r&i.pendingLanes}catch(o){t((function(){throw o}))}}))}),[n,r]),ur(h,t)&&ur(g,n)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:p}).dispatch=u=Ta.bind(null,ea,e),c.queue=e,c.baseQueue=null,p=fa(i,n,t),c.memoizedState=c.baseState=p),p}function ga(e,n,t){return ha(ca(),e,n,t)}function ma(e){var n=sa();return"function"===typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ta.bind(null,ea,e),[n.memoizedState,e]}function va(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=ea.updateQueue)?(n={lastEffect:null},ea.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function ya(e){return e={current:e},sa().memoizedState=e}function ba(){return ca().memoizedState}function xa(e,n,t,r){var i=sa();ea.flags|=e,i.memoizedState=va(1|n,t,void 0,void 0===r?null:r)}function wa(e,n,t,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==na){var a=na.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void va(n,t,o,r)}ea.flags|=e,i.memoizedState=va(1|n,t,o,r)}function _a(e,n){return xa(516,4,e,n)}function ka(e,n){return wa(516,4,e,n)}function Sa(e,n){return wa(4,2,e,n)}function Ea(e,n){return"function"===typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function ja(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,wa(4,2,Ea.bind(null,n,e),t)}function Ca(){}function Na(e,n){var t=ca();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&aa(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Pa(e,n){var t=ca();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&aa(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Oa(e,n){var t=$i();Wi(98>t?98:t,(function(){e(!0)})),Wi(97<t?97:t,(function(){var t=Xo.transition;Xo.transition=1;try{e(!1),n()}finally{Xo.transition=t}}))}function Ta(e,n,t){var r=ds(),i=fs(e),o={lane:i,action:t,eagerReducer:null,eagerState:null,next:null},a=n.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),n.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var l=n.lastRenderedState,s=a(l,t);if(o.eagerReducer=a,o.eagerState=s,ur(s,l))return}catch(c){}hs(e,i,r)}}var Ia={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Da={readContext:ao,useCallback:function(e,n){return sa().memoizedState=[e,void 0===n?null:n],e},useContext:ao,useEffect:_a,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,xa(4,2,Ea.bind(null,n,e),t)},useLayoutEffect:function(e,n){return xa(4,2,e,n)},useMemo:function(e,n){var t=sa();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=sa();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=Ta.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:ma,useDebugValue:Ca,useDeferredValue:function(e){var n=ma(e),t=n[0],r=n[1];return _a((function(){var n=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=n}}),[e]),t},useTransition:function(){var e=ma(!1),n=e[0];return ya(e=Oa.bind(null,e[1])),[e,n]},useMutableSource:function(e,n,t){var r=sa();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},ha(r,e,n,t)},useOpaqueIdentifier:function(){if(Ho){var e=!1,n=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,t("r:"+(Kr++).toString(36))),Error(a(355))})),t=ma(n)[1];return 0===(2&ea.mode)&&(ea.flags|=516,va(5,(function(){t("r:"+(Kr++).toString(36))}),void 0,null)),n}return ma(n="r:"+(Kr++).toString(36)),n},unstable_isNewReconciler:!1},Ra={readContext:ao,useCallback:Na,useContext:ao,useEffect:ka,useImperativeHandle:ja,useLayoutEffect:Sa,useMemo:Pa,useReducer:pa,useRef:ba,useState:function(){return pa(ua)},useDebugValue:Ca,useDeferredValue:function(e){var n=pa(ua),t=n[0],r=n[1];return ka((function(){var n=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=n}}),[e]),t},useTransition:function(){var e=pa(ua)[0];return[ba().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},La={readContext:ao,useCallback:Na,useContext:ao,useEffect:ka,useImperativeHandle:ja,useLayoutEffect:Sa,useMemo:Pa,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Ca,useDeferredValue:function(e){var n=da(ua),t=n[0],r=n[1];return ka((function(){var n=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=n}}),[e]),t},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Ua=w.ReactCurrentOwner,za=!1;function Ma(e,n,t,r){n.child=null===e?No(n,null,t,r):Co(n,e.child,t,r)}function Fa(e,n,t,r,i){t=t.render;var o=n.ref;return oo(n,i),r=la(e,n,t,r,o,i),null===e||za?(n.flags|=1,Ma(e,n,r,i),n.child):(n.updateQueue=e.updateQueue,n.flags&=-517,e.lanes&=~i,ol(e,n,i))}function Aa(e,n,t,r,i,o){if(null===e){var a=t.type;return"function"!==typeof a||Gs(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=qs(t.type,null,r,n,n.mode,o)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Ba(e,n,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(t=null!==(t=t.compare)?t:dr)(i,r)&&e.ref===n.ref)?ol(e,n,o):(n.flags|=1,(e=Ws(a,r)).ref=n.ref,e.return=n,n.child=e)}function Ba(e,n,t,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===n.ref){if(za=!1,0===(o&i))return n.lanes=e.lanes,ol(e,n,o);0!==(16384&e.flags)&&(za=!0)}return $a(e,n,t,r,o)}function Ha(e,n,t){var r=n.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&n.mode))n.memoizedState={baseLanes:0},_s(n,t);else{if(0===(1073741824&t))return e=null!==o?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e},_s(n,e),null;n.memoizedState={baseLanes:0},_s(n,null!==o?o.baseLanes:t)}else null!==o?(r=o.baseLanes|t,n.memoizedState=null):r=t,_s(n,r);return Ma(e,n,i,t),n.child}function Ya(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=128)}function $a(e,n,t,r,i){var o=vi(t)?gi:fi.current;return o=mi(n,o),oo(n,i),t=la(e,n,t,r,o,i),null===e||za?(n.flags|=1,Ma(e,n,t,i),n.child):(n.updateQueue=e.updateQueue,n.flags&=-517,e.lanes&=~i,ol(e,n,i))}function Ga(e,n,t,r,i){if(vi(t)){var o=!0;wi(n)}else o=!1;if(oo(n,i),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),xo(n,t,r),_o(n,t,r,i),r=!0;else if(null===e){var a=n.stateNode,l=n.memoizedProps;a.props=l;var s=a.context,c=t.contextType;"object"===typeof c&&null!==c?c=ao(c):c=mi(n,c=vi(t)?gi:fi.current);var u=t.getDerivedStateFromProps,p="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==c)&&wo(n,a,r,c),lo=!1;var d=n.memoizedState;a.state=d,ho(n,r,a,i),s=n.memoizedState,l!==r||d!==s||hi.current||lo?("function"===typeof u&&(vo(n,t,u,r),s=n.memoizedState),(l=lo||bo(n,t,l,r,d,s,c))?(p||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(n.flags|=4)):("function"===typeof a.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"===typeof a.componentDidMount&&(n.flags|=4),r=!1)}else{a=n.stateNode,co(e,n),l=n.memoizedProps,c=n.type===n.elementType?l:Ji(n.type,l),a.props=c,p=n.pendingProps,d=a.context,"object"===typeof(s=t.contextType)&&null!==s?s=ao(s):s=mi(n,s=vi(t)?gi:fi.current);var f=t.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==p||d!==s)&&wo(n,a,r,s),lo=!1,d=n.memoizedState,a.state=d,ho(n,r,a,i);var h=n.memoizedState;l!==p||d!==h||hi.current||lo?("function"===typeof f&&(vo(n,t,f,r),h=n.memoizedState),(c=lo||bo(n,t,c,r,d,h,s))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(n.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(n.flags|=256)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=256),n.memoizedProps=r,n.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(n.flags|=256),r=!1)}return Wa(e,n,t,r,o,i)}function Wa(e,n,t,r,i,o){Ya(e,n);var a=0!==(64&n.flags);if(!r&&!a)return i&&_i(n,t,!1),ol(e,n,o);r=n.stateNode,Ua.current=n;var l=a&&"function"!==typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&a?(n.child=Co(n,e.child,null,o),n.child=Co(n,null,l,o)):Ma(e,n,l,o),n.memoizedState=r.state,i&&_i(n,t,!0),n.child}function qa(e){var n=e.stateNode;n.pendingContext?bi(0,n.pendingContext,n.pendingContext!==n.context):n.context&&bi(0,n.context,!1),Ro(e,n.containerInfo)}var Qa,Va,Ka,Ja={dehydrated:null,retryLane:0};function Xa(e,n,t){var r,i=n.pendingProps,o=Mo.current,a=!1;return(r=0!==(64&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,n.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),pi(Mo,1&o),null===e?(void 0!==i.fallback&&Go(n),e=i.children,o=i.fallback,a?(e=Za(n,e,o,t),n.child.memoizedState={baseLanes:t},n.memoizedState=Ja,e):"number"===typeof i.unstable_expectedLoadTime?(e=Za(n,e,o,t),n.child.memoizedState={baseLanes:t},n.memoizedState=Ja,n.lanes=33554432,e):((t=Vs({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,a?(i=nl(e,n,i.children,i.fallback,t),a=n.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:t}:{baseLanes:o.baseLanes|t},a.childLanes=e.childLanes&~t,n.memoizedState=Ja,i):(t=el(e,n,i.children,t),n.memoizedState=null,t))}function Za(e,n,t,r){var i=e.mode,o=e.child;return n={mode:"hidden",children:n},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=n):o=Vs(n,i,0,null),t=Qs(t,i,r,null),o.return=e,t.return=e,o.sibling=t,e.child=o,t}function el(e,n,t,r){var i=e.child;return e=i.sibling,t=Ws(i,{mode:"visible",children:t}),0===(2&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,n.firstEffect=n.lastEffect=e),n.child=t}function nl(e,n,t,r,i){var o=n.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:t};return 0===(2&o)&&n.child!==a?((t=n.child).childLanes=0,t.pendingProps=l,null!==(a=t.lastEffect)?(n.firstEffect=t.firstEffect,n.lastEffect=a,a.nextEffect=null):n.firstEffect=n.lastEffect=null):t=Ws(a,l),null!==e?r=Ws(e,r):(r=Qs(r,o,i,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function tl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),io(e.return,n)}function rl(e,n,t,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i,lastEffect:o}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=i,a.lastEffect=o)}function il(e,n,t){var r=n.pendingProps,i=r.revealOrder,o=r.tail;if(Ma(e,n,r.children,t),0!==(2&(r=Mo.current)))r=1&r|2,n.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,t);else if(19===e.tag)tl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pi(Mo,r),0===(2&n.mode))n.memoizedState=null;else switch(i){case"forwards":for(t=n.child,i=null;null!==t;)null!==(e=t.alternate)&&null===Fo(e)&&(i=t),t=t.sibling;null===(t=i)?(i=n.child,n.child=null):(i=t.sibling,t.sibling=null),rl(n,!1,i,t,o,n.lastEffect);break;case"backwards":for(t=null,i=n.child,n.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){n.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}rl(n,!0,t,null,o,n.lastEffect);break;case"together":rl(n,!1,null,null,void 0,n.lastEffect);break;default:n.memoizedState=null}return n.child}function ol(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Bl|=n.lanes,0!==(t&n.childLanes)){if(null!==e&&n.child!==e.child)throw Error(a(153));if(null!==n.child){for(t=Ws(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Ws(e,e.pendingProps)).return=n;t.sibling=null}return n.child}return null}function al(e,n){if(!Ho)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ll(e,n,t){var r=n.pendingProps;switch(n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vi(n.type)&&yi(),null;case 3:return Lo(),ui(hi),ui(fi),Ko(),(r=n.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(n)?n.flags|=4:r.hydrate||(n.flags|=256)),null;case 5:zo(n);var o=Do(Io.current);if(t=n.type,null!==e&&null!=n.stateNode)Va(e,n,t,r),e.ref!==n.ref&&(n.flags|=128);else{if(!r){if(null===n.stateNode)throw Error(a(166));return null}if(e=Do(Oo.current),qo(n)){r=n.stateNode,t=n.type;var l=n.memoizedProps;switch(r[Xr]=n,r[Zr]=l,t){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<jr.length;e++)Or(jr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,l),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Or("invalid",r);break;case"textarea":se(r,l),Or("invalid",r)}for(var c in Se(t,l),e=null,l)l.hasOwnProperty(c)&&(o=l[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Or("scroll",r));switch(t){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=Ar)}r=e,n.updateQueue=r,null!==r&&(n.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===pe&&(e=fe(t)),e===pe?"script"===t?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(t,{is:r.is}):(e=c.createElement(t),"select"===t&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,t),e[Xr]=n,e[Zr]=r,Qa(e,n),n.stateNode=e,c=Ee(t,r),t){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Or(jr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Or("invalid",e);break;case"textarea":se(e,r),o=le(e,r),Or("invalid",e);break;default:o=r}Se(t,o);var u=o;for(l in u)if(u.hasOwnProperty(l)){var p=u[l];"style"===l?_e(e,p):"dangerouslySetInnerHTML"===l?null!=(p=p?p.__html:void 0)&&ve(e,p):"children"===l?"string"===typeof p?("textarea"!==t||""!==p)&&ye(e,p):"number"===typeof p&&ye(e,""+p):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=p&&"onScroll"===l&&Or("scroll",e):null!=p&&x(e,l,p,c))}switch(t){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Ar)}Yr(t,r)&&(n.flags|=4)}null!==n.ref&&(n.flags|=128)}return null;case 6:if(e&&null!=n.stateNode)Ka(0,n,e.memoizedProps,r);else{if("string"!==typeof r&&null===n.stateNode)throw Error(a(166));t=Do(Io.current),Do(Oo.current),qo(n)?(r=n.stateNode,t=n.memoizedProps,r[Xr]=n,r.nodeValue!==t&&(n.flags|=4)):((r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[Xr]=n,n.stateNode=r)}return null;case 13:return ui(Mo),r=n.memoizedState,0!==(64&n.flags)?(n.lanes=t,n):(r=null!==r,t=!1,null===e?void 0!==n.memoizedProps.fallback&&qo(n):t=null!==e.memoizedState,r&&!t&&0!==(2&n.mode)&&(null===e&&!0!==n.memoizedProps.unstable_avoidThisFallback||0!==(1&Mo.current)?0===Ml&&(Ml=3):(0!==Ml&&3!==Ml||(Ml=4),null===Dl||0===(134217727&Bl)&&0===(134217727&Hl)||ys(Dl,Ll))),(r||t)&&(n.flags|=4),null);case 4:return Lo(),null===e&&Ir(n.stateNode.containerInfo),null;case 10:return ro(n),null;case 19:if(ui(Mo),null===(r=n.memoizedState))return null;if(l=0!==(64&n.flags),null===(c=r.rendering))if(l)al(r,!1);else{if(0!==Ml||null!==e&&0!==(64&e.flags))for(e=n.child;null!==e;){if(null!==(c=Fo(e))){for(n.flags|=64,al(r,!1),null!==(l=c.updateQueue)&&(n.updateQueue=l,n.flags|=4),null===r.lastEffect&&(n.firstEffect=null),n.lastEffect=r.lastEffect,r=t,t=n.child;null!==t;)e=r,(l=t).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,e=c.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return pi(Mo,1&Mo.current|2),n.child}e=e.sibling}null!==r.tail&&Yi()>Wl&&(n.flags|=64,l=!0,al(r,!1),n.lanes=33554432)}else{if(!l)if(null!==(e=Fo(c))){if(n.flags|=64,l=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),al(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ho)return null!==(n=n.lastEffect=r.lastEffect)&&(n.nextEffect=null),null}else 2*Yi()-r.renderingStartTime>Wl&&1073741824!==t&&(n.flags|=64,l=!0,al(r,!1),n.lanes=33554432);r.isBackwards?(c.sibling=n.child,n.child=c):(null!==(t=r.last)?t.sibling=c:n.child=c,r.last=c)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.lastEffect=n.lastEffect,r.renderingStartTime=Yi(),t.sibling=null,n=Mo.current,pi(Mo,l?1&n|2:1&n),t):null;case 23:case 24:return ks(),null!==e&&null!==e.memoizedState!==(null!==n.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(n.flags|=4),null}throw Error(a(156,n.tag))}function sl(e){switch(e.tag){case 1:vi(e.type)&&yi();var n=e.flags;return 4096&n?(e.flags=-4097&n|64,e):null;case 3:if(Lo(),ui(hi),ui(fi),Ko(),0!==(64&(n=e.flags)))throw Error(a(285));return e.flags=-4097&n|64,e;case 5:return zo(e),null;case 13:return ui(Mo),4096&(n=e.flags)?(e.flags=-4097&n|64,e):null;case 19:return ui(Mo),null;case 4:return Lo(),null;case 10:return ro(e),null;case 23:case 24:return ks(),null;default:return null}}function cl(e,n){try{var t="",r=n;do{t+=W(r),r=r.return}while(r);var i=t}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:n,stack:i}}function ul(e,n){try{console.error(n.value)}catch(t){setTimeout((function(){throw t}))}}Qa=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Va=function(e,n,t,r){var o=e.memoizedProps;if(o!==r){e=n.stateNode,Do(Oo.current);var a,l=null;switch(t){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Ar)}for(p in Se(t,r),t=null,o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&null!=o[p])if("style"===p){var c=o[p];for(a in c)c.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(s.hasOwnProperty(p)?l||(l=[]):(l=l||[]).push(p,null));for(p in r){var u=r[p];if(c=null!=o?o[p]:void 0,r.hasOwnProperty(p)&&u!==c&&(null!=u||null!=c))if("style"===p)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(t||(t={}),t[a]=u[a])}else t||(l||(l=[]),l.push(p,t)),t=u;else"dangerouslySetInnerHTML"===p?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(l=l||[]).push(p,u)):"children"===p?"string"!==typeof u&&"number"!==typeof u||(l=l||[]).push(p,""+u):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(s.hasOwnProperty(p)?(null!=u&&"onScroll"===p&&Or("scroll",e),l||c===u||(l=[])):"object"===typeof u&&null!==u&&u.$$typeof===L?u.toString():(l=l||[]).push(p,u))}t&&(l=l||[]).push("style",t);var p=l;(n.updateQueue=p)&&(n.flags|=4)}},Ka=function(e,n,t,r){t!==r&&(n.flags|=4)};var pl="function"===typeof WeakMap?WeakMap:Map;function dl(e,n,t){(t=uo(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Kl||(Kl=!0,Jl=r),ul(0,n)},t}function fl(e,n,t){(t=uo(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=n.value;t.payload=function(){return ul(0,n),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(t.callback=function(){"function"!==typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this),ul(0,n));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}var hl="function"===typeof WeakSet?WeakSet:Set;function gl(e){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(t){As(e,t)}else n.current=null}function ml(e,n){switch(n.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&n.flags&&null!==e){var t=e.memoizedProps,r=e.memoizedState;n=(e=n.stateNode).getSnapshotBeforeUpdate(n.elementType===n.type?t:Ji(n.type,t),r),e.__reactInternalSnapshotBeforeUpdate=n}return;case 3:return void(256&n.flags&&qr(n.stateNode.containerInfo))}throw Error(a(163))}function vl(e,n,t){switch(t.tag){case 0:case 11:case 15:case 22:if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==n)}if(null!==(n=null!==(n=t.updateQueue)?n.lastEffect:null)){e=n=n.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(zs(t,e),Us(t,e)),e=r}while(e!==n)}return;case 1:return e=t.stateNode,4&t.flags&&(null===n?e.componentDidMount():(r=t.elementType===t.type?n.memoizedProps:Ji(t.type,n.memoizedProps),e.componentDidUpdate(r,n.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(n=t.updateQueue)&&go(t,n,e));case 3:if(null!==(n=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 5:case 1:e=t.child.stateNode}go(t,n,e)}return;case 5:return e=t.stateNode,void(null===n&&4&t.flags&&Yr(t.type,t.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===t.memoizedState&&(t=t.alternate,null!==t&&(t=t.memoizedState,null!==t&&(t=t.dehydrated,null!==t&&kn(t)))))}throw Error(a(163))}function yl(e,n){for(var t=e;;){if(5===t.tag){var r=t.stateNode;if(n)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=t.stateNode;var i=t.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===t.tag)t.stateNode.nodeValue=n?"":t.memoizedProps;else if((23!==t.tag&&24!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function bl(e,n){if(Si&&"function"===typeof Si.onCommitFiberUnmount)try{Si.onCommitFiberUnmount(ki,n)}catch(o){}switch(n.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var t=e=e.next;do{var r=t,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))zs(n,t);else{r=n;try{i()}catch(o){As(r,o)}}t=t.next}while(t!==e)}break;case 1:if(gl(n),"function"===typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(o){As(n,o)}break;case 5:gl(n);break;case 4:El(e,n)}}function xl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wl(e){return 5===e.tag||3===e.tag||4===e.tag}function _l(e){e:{for(var n=e.return;null!==n;){if(wl(n))break e;n=n.return}throw Error(a(160))}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error(a(161))}16&t.flags&&(ye(n,""),t.flags&=-17);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||wl(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?kl(e,t,n):Sl(e,t,n)}function kl(e,n,t){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!==(t=t._reactRootContainer)&&void 0!==t||null!==n.onclick||(n.onclick=Ar));else if(4!==r&&null!==(e=e.child))for(kl(e,n,t),e=e.sibling;null!==e;)kl(e,n,t),e=e.sibling}function Sl(e,n,t){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Sl(e,n,t),e=e.sibling;null!==e;)Sl(e,n,t),e=e.sibling}function El(e,n){for(var t,r,i=n,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(t=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:t=t.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,c=s;;)if(bl(l,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===s)break e;for(;null===c.sibling;){if(null===c.return||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(l=t,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):t.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){t=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===n)break;for(;null===i.sibling;){if(null===i.return||i.return===n)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function jl(e,n){switch(n.tag){case 0:case 11:case 14:case 15:case 22:var t=n.updateQueue;if(null!==(t=null!==t?t.lastEffect:null)){var r=t=t.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==t)}return;case 1:case 12:case 17:return;case 5:if(null!=(t=n.stateNode)){r=n.memoizedProps;var i=null!==e?e.memoizedProps:r;e=n.type;var o=n.updateQueue;if(n.updateQueue=null,null!==o){for(t[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(t,r),Ee(e,i),n=Ee(e,r),i=0;i<o.length;i+=2){var l=o[i],s=o[i+1];"style"===l?_e(t,s):"dangerouslySetInnerHTML"===l?ve(t,s):"children"===l?ye(t,s):x(t,l,s,n)}switch(e){case"input":te(t,r);break;case"textarea":ce(t,r);break;case"select":e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(t,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(t,!!r.multiple,r.defaultValue,!0):ae(t,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===n.stateNode)throw Error(a(162));return void(n.stateNode.nodeValue=n.memoizedProps);case 3:return void((t=n.stateNode).hydrate&&(t.hydrate=!1,kn(t.containerInfo)));case 13:return null!==n.memoizedState&&(Gl=Yi(),yl(n.child,!0)),void Cl(n);case 19:return void Cl(n);case 23:case 24:return void yl(n,null!==n.memoizedState)}throw Error(a(163))}function Cl(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new hl),n.forEach((function(n){var r=Hs.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Nl(e,n){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(n=n.memoizedState)&&null===n.dehydrated)}var Pl=Math.ceil,Ol=w.ReactCurrentDispatcher,Tl=w.ReactCurrentOwner,Il=0,Dl=null,Rl=null,Ll=0,Ul=0,zl=ci(0),Ml=0,Fl=null,Al=0,Bl=0,Hl=0,Yl=0,$l=null,Gl=0,Wl=1/0;function ql(){Wl=Yi()+500}var Ql,Vl=null,Kl=!1,Jl=null,Xl=null,Zl=!1,es=null,ns=90,ts=[],rs=[],is=null,os=0,as=null,ls=-1,ss=0,cs=0,us=null,ps=!1;function ds(){return 0!==(48&Il)?Yi():-1!==ls?ls:ls=Yi()}function fs(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===$i()?1:2;if(0===ss&&(ss=Al),0!==Ki.transition){0!==cs&&(cs=null!==$l?$l.pendingLanes:0),e=ss;var n=4186112&~cs;return 0===(n&=-n)&&(0===(n=(e=4186112&~e)&-e)&&(n=8192)),n}return e=$i(),0!==(4&Il)&&98===e?e=Bn(12,ss):e=Bn(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,n,t){if(50<os)throw os=0,as=null,Error(a(185));if(null===(e=gs(e,n)))return null;$n(e,n,t),e===Dl&&(Hl|=n,4===Ml&&ys(e,Ll));var r=$i();1===n?0!==(8&Il)&&0===(48&Il)?bs(e):(ms(e,t),0===Il&&(ql(),Qi())):(0===(4&Il)||98!==r&&99!==r||(null===is?is=new Set([e]):is.add(e)),ms(e,t)),$l=e}function gs(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}function ms(e,n){for(var t=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Gn(l),c=1<<s,u=o[s];if(-1===u){if(0===(c&r)||0!==(c&i)){u=n,Mn(c);var p=zn;o[s]=10<=p?u+250:6<=p?u+5e3:-1}}else u<=n&&(e.expiredLanes|=c);l&=~c}if(r=Fn(e,e===Dl?Ll:0),n=zn,0===r)null!==t&&(t!==zi&&Ci(t),e.callbackNode=null,e.callbackPriority=0);else{if(null!==t){if(e.callbackPriority===n)return;t!==zi&&Ci(t)}15===n?(t=bs.bind(null,e),null===Fi?(Fi=[t],Ai=ji(Ii,Vi)):Fi.push(t),t=zi):14===n?t=qi(99,bs.bind(null,e)):(t=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(n),t=qi(t,vs.bind(null,e))),e.callbackPriority=n,e.callbackNode=t}}function vs(e){if(ls=-1,cs=ss=0,0!==(48&Il))throw Error(a(327));var n=e.callbackNode;if(Ls()&&e.callbackNode!==n)return null;var t=Fn(e,e===Dl?Ll:0);if(0===t)return null;var r=t,i=Il;Il|=16;var o=js();for(Dl===e&&Ll===r||(ql(),Ss(e,r));;)try{Ps();break}catch(s){Es(e,s)}if(to(),Ol.current=o,Il=i,null!==Rl?r=0:(Dl=null,Ll=0,r=Ml),0!==(Al&Hl))Ss(e,0);else if(0!==r){if(2===r&&(Il|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=An(e))&&(r=Cs(e,t))),1===r)throw n=Fl,Ss(e,0),ys(e,t),ms(e,Yi()),n;switch(e.finishedWork=e.current.alternate,e.finishedLanes=t,r){case 0:case 1:throw Error(a(345));case 2:case 5:Is(e);break;case 3:if(ys(e,t),(62914560&t)===t&&10<(r=Gl+500-Yi())){if(0!==Fn(e,0))break;if(((i=e.suspendedLanes)&t)!==t){ds(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(Is.bind(null,e),r);break}Is(e);break;case 4:if(ys(e,t),(4186112&t)===t)break;for(r=e.eventTimes,i=-1;0<t;){var l=31-Gn(t);o=1<<l,(l=r[l])>i&&(i=l),t&=~o}if(t=i,10<(t=(120>(t=Yi()-t)?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*Pl(t/1960))-t)){e.timeoutHandle=Gr(Is.bind(null,e),t);break}Is(e);break;default:throw Error(a(329))}}return ms(e,Yi()),e.callbackNode===n?vs.bind(null,e):null}function ys(e,n){for(n&=~Yl,n&=~Hl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-Gn(n),r=1<<t;e[t]=-1,n&=~r}}function bs(e){if(0!==(48&Il))throw Error(a(327));if(Ls(),e===Dl&&0!==(e.expiredLanes&Ll)){var n=Ll,t=Cs(e,n);0!==(Al&Hl)&&(t=Cs(e,n=Fn(e,n)))}else t=Cs(e,n=Fn(e,0));if(0!==e.tag&&2===t&&(Il|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=An(e))&&(t=Cs(e,n))),1===t)throw t=Fl,Ss(e,0),ys(e,n),ms(e,Yi()),t;return e.finishedWork=e.current.alternate,e.finishedLanes=n,Is(e),ms(e,Yi()),null}function xs(e,n){var t=Il;Il|=1;try{return e(n)}finally{0===(Il=t)&&(ql(),Qi())}}function ws(e,n){var t=Il;Il&=-2,Il|=8;try{return e(n)}finally{0===(Il=t)&&(ql(),Qi())}}function _s(e,n){pi(zl,Ul),Ul|=n,Al|=n}function ks(){Ul=zl.current,ui(zl)}function Ss(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,Wr(t)),null!==Rl)for(t=Rl.return;null!==t;){var r=t;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Lo(),ui(hi),ui(fi),Ko();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:ui(Mo);break;case 10:ro(r);break;case 23:case 24:ks()}t=t.return}Dl=e,Rl=Ws(e.current,null),Ll=Ul=Al=n,Ml=0,Fl=null,Yl=Hl=Bl=0}function Es(e,n){for(;;){var t=Rl;try{if(to(),Jo.current=Ia,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Zo=0,ta=na=ea=null,ia=!1,Tl.current=null,null===t||null===t.return){Ml=1,Fl=n,Rl=null;break}e:{var o=e,a=t.return,l=t,s=n;if(n=Ll,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s;if(0===(2&l.mode)){var u=l.alternate;u?(l.updateQueue=u.updateQueue,l.memoizedState=u.memoizedState,l.lanes=u.lanes):(l.updateQueue=null,l.memoizedState=null)}var p=0!==(1&Mo.current),d=a;do{var f;if(f=13===d.tag){var h=d.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var g=d.memoizedProps;f=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!p)}}if(f){var m=d.updateQueue;if(null===m){var v=new Set;v.add(c),d.updateQueue=v}else m.add(c);if(0===(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=uo(-1,1);y.tag=2,po(l,y)}l.lanes|=1;break e}s=void 0,l=n;var b=o.pingCache;if(null===b?(b=o.pingCache=new pl,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(l)){s.add(l);var x=Bs.bind(null,o,c,l);c.then(x,x)}d.flags|=4096,d.lanes=n;break e}d=d.return}while(null!==d);s=Error((q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ml&&(Ml=2),s=cl(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,n&=-n,d.lanes|=n,fo(d,dl(0,o,n));break e;case 1:o=s;var w=d.type,_=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Xl||!Xl.has(_)))){d.flags|=4096,n&=-n,d.lanes|=n,fo(d,fl(d,o,n));break e}}d=d.return}while(null!==d)}Ts(t)}catch(k){n=k,Rl===t&&null!==t&&(Rl=t=t.return);continue}break}}function js(){var e=Ol.current;return Ol.current=Ia,null===e?Ia:e}function Cs(e,n){var t=Il;Il|=16;var r=js();for(Dl===e&&Ll===n||Ss(e,n);;)try{Ns();break}catch(i){Es(e,i)}if(to(),Il=t,Ol.current=r,null!==Rl)throw Error(a(261));return Dl=null,Ll=0,Ml}function Ns(){for(;null!==Rl;)Os(Rl)}function Ps(){for(;null!==Rl&&!Ni();)Os(Rl)}function Os(e){var n=Ql(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,null===n?Ts(e):Rl=n,Tl.current=null}function Ts(e){var n=e;do{var t=n.alternate;if(e=n.return,0===(2048&n.flags)){if(null!==(t=ll(t,n,Ul)))return void(Rl=t);if(24!==(t=n).tag&&23!==t.tag||null===t.memoizedState||0!==(1073741824&Ul)||0===(4&t.mode)){for(var r=0,i=t.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;t.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=n.firstEffect),null!==n.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=n.firstEffect),e.lastEffect=n.lastEffect),1<n.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=n:e.firstEffect=n,e.lastEffect=n))}else{if(null!==(t=sl(n)))return t.flags&=2047,void(Rl=t);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(n=n.sibling))return void(Rl=n);Rl=n=e}while(null!==n);0===Ml&&(Ml=5)}function Is(e){var n=$i();return Wi(99,Ds.bind(null,e,n)),null}function Ds(e,n){do{Ls()}while(null!==es);if(0!==(48&Il))throw Error(a(327));var t=e.finishedWork;if(null===t)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(a(177));e.callbackNode=null;var r=t.lanes|t.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var c=31-Gn(o),u=1<<c;i[c]=0,l[c]=-1,s[c]=-1,o&=~u}if(null!==is&&0===(24&r)&&is.has(e)&&is.delete(e),e===Dl&&(Rl=Dl=null,Ll=0),1<t.flags?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,null!==r){if(i=Il,Il|=32,Tl.current=null,Br=Kn,vr(l=mr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&0!==u.rangeCount){s=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{s.nodeType,c.nodeType}catch(j){s=null;break e}var p=0,d=-1,f=-1,h=0,g=0,m=l,v=null;n:for(;;){for(var y;m!==s||0!==o&&3!==m.nodeType||(d=p+o),m!==c||0!==u&&3!==m.nodeType||(f=p+u),3===m.nodeType&&(p+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===l)break n;if(v===s&&++h===o&&(d=p),v===c&&++g===u&&(f=p),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}s=-1===d||-1===f?null:{start:d,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;Hr={focusedElem:l,selectionRange:s},Kn=!1,us=null,ps=!1,Vl=r;do{try{Rs()}catch(j){if(null===Vl)throw Error(a(330));As(Vl,j),Vl=Vl.nextEffect}}while(null!==Vl);us=null,Vl=r;do{try{for(l=e;null!==Vl;){var b=Vl.flags;if(16&b&&ye(Vl.stateNode,""),128&b){var x=Vl.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:_l(Vl),Vl.flags&=-3;break;case 6:_l(Vl),Vl.flags&=-3,jl(Vl.alternate,Vl);break;case 1024:Vl.flags&=-1025;break;case 1028:Vl.flags&=-1025,jl(Vl.alternate,Vl);break;case 4:jl(Vl.alternate,Vl);break;case 8:El(l,s=Vl);var _=s.alternate;xl(s),null!==_&&xl(_)}Vl=Vl.nextEffect}}catch(j){if(null===Vl)throw Error(a(330));As(Vl,j),Vl=Vl.nextEffect}}while(null!==Vl);if(w=Hr,x=mr(),b=w.focusedElem,l=w.selectionRange,x!==b&&b&&b.ownerDocument&&gr(b.ownerDocument.documentElement,b)){null!==l&&vr(b)&&(x=l.start,void 0===(w=l.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,_=Math.min(l.start,s),l=void 0===l.end?_:Math.min(l.end,s),!w.extend&&_>l&&(s=l,l=_,_=s),s=hr(b,_),o=hr(b,l),s&&o&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((x=x.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),_>l?(w.addRange(x),w.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Kn=!!Br,Hr=Br=null,e.current=t,Vl=r;do{try{for(b=e;null!==Vl;){var k=Vl.flags;if(36&k&&vl(b,Vl.alternate,Vl),128&k){x=void 0;var S=Vl.ref;if(null!==S){var E=Vl.stateNode;Vl.tag,x=E,"function"===typeof S?S(x):S.current=x}}Vl=Vl.nextEffect}}catch(j){if(null===Vl)throw Error(a(330));As(Vl,j),Vl=Vl.nextEffect}}while(null!==Vl);Vl=null,Mi(),Il=i}else e.current=t;if(Zl)Zl=!1,es=e,ns=n;else for(Vl=r;null!==Vl;)n=Vl.nextEffect,Vl.nextEffect=null,8&Vl.flags&&((k=Vl).sibling=null,k.stateNode=null),Vl=n;if(0===(r=e.pendingLanes)&&(Xl=null),1===r?e===as?os++:(os=0,as=e):os=0,t=t.stateNode,Si&&"function"===typeof Si.onCommitFiberRoot)try{Si.onCommitFiberRoot(ki,t,void 0,64===(64&t.current.flags))}catch(j){}if(ms(e,Yi()),Kl)throw Kl=!1,e=Jl,Jl=null,e;return 0!==(8&Il)||Qi(),null}function Rs(){for(;null!==Vl;){var e=Vl.alternate;ps||null===us||(0!==(8&Vl.flags)?en(Vl,us)&&(ps=!0):13===Vl.tag&&Nl(e,Vl)&&en(Vl,us)&&(ps=!0));var n=Vl.flags;0!==(256&n)&&ml(e,Vl),0===(512&n)||Zl||(Zl=!0,qi(97,(function(){return Ls(),null}))),Vl=Vl.nextEffect}}function Ls(){if(90!==ns){var e=97<ns?97:ns;return ns=90,Wi(e,Ms)}return!1}function Us(e,n){ts.push(n,e),Zl||(Zl=!0,qi(97,(function(){return Ls(),null})))}function zs(e,n){rs.push(n,e),Zl||(Zl=!0,qi(97,(function(){return Ls(),null})))}function Ms(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Il))throw Error(a(331));var n=Il;Il|=32;var t=rs;rs=[];for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1],l=i.destroy;if(i.destroy=void 0,"function"===typeof l)try{l()}catch(c){if(null===o)throw Error(a(330));As(o,c)}}for(t=ts,ts=[],r=0;r<t.length;r+=2){i=t[r],o=t[r+1];try{var s=i.create;i.destroy=s()}catch(c){if(null===o)throw Error(a(330));As(o,c)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Il=n,Qi(),!0}function Fs(e,n,t){po(e,n=dl(0,n=cl(t,n),1)),n=ds(),null!==(e=gs(e,1))&&($n(e,1,n),ms(e,n))}function As(e,n){if(3===e.tag)Fs(e,e,n);else for(var t=e.return;null!==t;){if(3===t.tag){Fs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){var i=fl(t,e=cl(n,e),1);if(po(t,i),i=ds(),null!==(t=gs(t,1)))$n(t,1,i),ms(t,i);else if("function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r)))try{r.componentDidCatch(n,e)}catch(o){}break}}t=t.return}}function Bs(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=ds(),e.pingedLanes|=e.suspendedLanes&t,Dl===e&&(Ll&t)===t&&(4===Ml||3===Ml&&(62914560&Ll)===Ll&&500>Yi()-Gl?Ss(e,0):Yl|=t),ms(e,n)}function Hs(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0===(2&(n=e.mode))?n=1:0===(4&n)?n=99===$i()?1:2:(0===ss&&(ss=Al),0===(n=Hn(62914560&~ss))&&(n=4194304))),t=ds(),null!==(e=gs(e,n))&&($n(e,n,t),ms(e,t))}function Ys(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function $s(e,n,t,r){return new Ys(e,n,t,r)}function Gs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ws(e,n){var t=e.alternate;return null===t?((t=$s(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function qs(e,n,t,r,i,o){var l=2;if(r=e,"function"===typeof e)Gs(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return Qs(t.children,i,o,n);case U:l=8,i|=16;break;case E:l=8,i|=1;break;case j:return(e=$s(12,t,n,8|i)).elementType=j,e.type=j,e.lanes=o,e;case O:return(e=$s(13,t,n,i)).type=O,e.elementType=O,e.lanes=o,e;case T:return(e=$s(19,t,n,i)).elementType=T,e.lanes=o,e;case z:return Vs(t,i,o,n);case M:return(e=$s(24,t,n,i)).elementType=M,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case N:l=9;break e;case P:l=11;break e;case I:l=14;break e;case D:l=16,r=null;break e;case R:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(n=$s(l,t,n,i)).elementType=e,n.type=r,n.lanes=o,n}function Qs(e,n,t,r){return(e=$s(7,e,r,n)).lanes=t,e}function Vs(e,n,t,r){return(e=$s(23,e,r,n)).elementType=z,e.lanes=t,e}function Ks(e,n,t){return(e=$s(6,e,null,n)).lanes=t,e}function Js(e,n,t){return(n=$s(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Xs(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Yn(0),this.expirationTimes=Yn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yn(0),this.mutableSourceEagerHydrationData=null}function Zs(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}function ec(e,n,t,r){var i=n.current,o=ds(),l=fs(i);e:if(t){n:{if(Ke(t=t._reactInternals)!==t||1!==t.tag)throw Error(a(170));var s=t;do{switch(s.tag){case 3:s=s.stateNode.context;break n;case 1:if(vi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break n}}s=s.return}while(null!==s);throw Error(a(171))}if(1===t.tag){var c=t.type;if(vi(c)){t=xi(t,c,s);break e}}t=s}else t=di;return null===n.context?n.context=t:n.pendingContext=t,(n=uo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),po(i,n),hs(i,l,o),l}function nc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function rc(e,n){tc(e,n),(e=e.alternate)&&tc(e,n)}function ic(e,n,t){var r=null!=t&&null!=t.hydrationOptions&&t.hydrationOptions.mutableSources||null;if(t=new Xs(e,n,null!=t&&!0===t.hydrate),n=$s(3,null,null,2===n?7:1===n?3:0),t.current=n,n.stateNode=t,so(n),e[ei]=t.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(n=r[e])._getVersion;i=i(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i)}this._internalRoot=t}function oc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,n,t,r,i){var o=t._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var l=i;i=function(){var e=nc(a);l.call(e)}}ec(n,a,e,i)}else{if(o=t._reactRootContainer=function(e,n){if(n||(n=!(!(n=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==n.nodeType||!n.hasAttribute("data-reactroot"))),!n)for(var t;t=e.lastChild;)e.removeChild(t);return new ic(e,0,n?{hydrate:!0}:void 0)}(t,r),a=o._internalRoot,"function"===typeof i){var s=i;i=function(){var e=nc(a);s.call(e)}}ws((function(){ec(n,a,e,i)}))}return nc(a)}function lc(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!oc(n))throw Error(a(200));return Zs(e,n,null,t)}Ql=function(e,n,t){var r=n.lanes;if(null!==e)if(e.memoizedProps!==n.pendingProps||hi.current)za=!0;else{if(0===(t&r)){switch(za=!1,n.tag){case 3:qa(n),Qo();break;case 5:Uo(n);break;case 1:vi(n.type)&&wi(n);break;case 4:Ro(n,n.stateNode.containerInfo);break;case 10:r=n.memoizedProps.value;var i=n.type._context;pi(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==n.memoizedState)return 0!==(t&n.child.childLanes)?Xa(e,n,t):(pi(Mo,1&Mo.current),null!==(n=ol(e,n,t))?n.sibling:null);pi(Mo,1&Mo.current);break;case 19:if(r=0!==(t&n.childLanes),0!==(64&e.flags)){if(r)return il(e,n,t);n.flags|=64}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),pi(Mo,Mo.current),r)break;return null;case 23:case 24:return n.lanes=0,Ha(e,n,t)}return ol(e,n,t)}za=0!==(16384&e.flags)}else za=!1;switch(n.lanes=0,n.tag){case 2:if(r=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,i=mi(n,fi.current),oo(n,t),i=la(null,n,r,e,i,t),n.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,vi(r)){var o=!0;wi(n)}else o=!1;n.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(n);var l=r.getDerivedStateFromProps;"function"===typeof l&&vo(n,r,l,e),i.updater=yo,n.stateNode=i,i._reactInternals=n,_o(n,r,e,t),n=Wa(null,n,r,!0,o,t)}else n.tag=0,Ma(null,n,i,t),n=n.child;return n;case 16:i=n.elementType;e:{switch(null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,i=(o=i._init)(i._payload),n.type=i,o=n.tag=function(e){if("function"===typeof e)return Gs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(i),e=Ji(i,e),o){case 0:n=$a(null,n,i,e,t);break e;case 1:n=Ga(null,n,i,e,t);break e;case 11:n=Fa(null,n,i,e,t);break e;case 14:n=Aa(null,n,i,Ji(i.type,e),r,t);break e}throw Error(a(306,i,""))}return n;case 0:return r=n.type,i=n.pendingProps,$a(e,n,r,i=n.elementType===r?i:Ji(r,i),t);case 1:return r=n.type,i=n.pendingProps,Ga(e,n,r,i=n.elementType===r?i:Ji(r,i),t);case 3:if(qa(n),r=n.updateQueue,null===e||null===r)throw Error(a(282));if(r=n.pendingProps,i=null!==(i=n.memoizedState)?i.element:null,co(e,n),ho(n,r,null,t),(r=n.memoizedState.element)===i)Qo(),n=ol(e,n,t);else{if((o=(i=n.stateNode).hydrate)&&(Bo=Qr(n.stateNode.containerInfo.firstChild),Ao=n,o=Ho=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Vo.push(o);for(t=No(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|1024,t=t.sibling}else Ma(e,n,r,t),Qo();n=n.child}return n;case 5:return Uo(n),null===e&&Go(n),r=n.type,i=n.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,$r(r,i)?l=null:null!==o&&$r(r,o)&&(n.flags|=16),Ya(e,n),Ma(e,n,l,t),n.child;case 6:return null===e&&Go(n),null;case 13:return Xa(e,n,t);case 4:return Ro(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=Co(n,null,r,t):Ma(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,Fa(e,n,r,i=n.elementType===r?i:Ji(r,i),t);case 7:return Ma(e,n,n.pendingProps,t),n.child;case 8:case 12:return Ma(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context,i=n.pendingProps,l=n.memoizedProps,o=i.value;var s=n.type._context;if(pi(Xi,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=ur(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===i.children&&!hi.current){n=ol(e,n,t);break e}}else for(null!==(s=n.child)&&(s.return=n);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===s.tag&&((u=uo(-1,t&-t)).tag=2,po(s,u)),s.lanes|=t,null!==(u=s.alternate)&&(u.lanes|=t),io(s.return,t),c.lanes|=t;break}u=u.next}}else l=10===s.tag&&s.type===n.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===n){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ma(e,n,i.children,t),n=n.child}return n;case 9:return i=n.type,r=(o=n.pendingProps).children,oo(n,t),r=r(i=ao(i,o.unstable_observedBits)),n.flags|=1,Ma(e,n,r,t),n.child;case 14:return o=Ji(i=n.type,n.pendingProps),Aa(e,n,i,o=Ji(i.type,o),r,t);case 15:return Ba(e,n,n.type,n.pendingProps,r,t);case 17:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:Ji(r,i),null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),n.tag=1,vi(r)?(e=!0,wi(n)):e=!1,oo(n,t),xo(n,r,i),_o(n,r,i,t),Wa(null,n,r,!0,e,t);case 19:return il(e,n,t);case 23:case 24:return Ha(e,n,t)}throw Error(a(156,n.tag))},ic.prototype.render=function(e){ec(e,this._internalRoot,null,null)},ic.prototype.unmount=function(){var e=this._internalRoot,n=e.containerInfo;ec(null,e,null,(function(){n[ei]=null}))},nn=function(e){13===e.tag&&(hs(e,4,ds()),rc(e,4))},tn=function(e){13===e.tag&&(hs(e,67108864,ds()),rc(e,67108864))},rn=function(e){if(13===e.tag){var n=ds(),t=fs(e);hs(e,t,n),rc(e,t)}},on=function(e,n){return n()},Ce=function(e,n,t){switch(n){case"input":if(te(e,t),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var i=oi(r);if(!i)throw Error(a(90));J(r),te(r,i)}}}break;case"textarea":ce(e,t);break;case"select":null!=(n=t.value)&&ae(e,!!t.multiple,n,!1)}},De=xs,Re=function(e,n,t,r,i){var o=Il;Il|=4;try{return Wi(98,e.bind(null,n,t,r,i))}finally{0===(Il=o)&&(ql(),Qi())}},Le=function(){0===(49&Il)&&(function(){if(null!==is){var e=is;is=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ms(e,Yi())}))}Qi()}(),Ls())},Ue=function(e,n){var t=Il;Il|=2;try{return e(n)}finally{0===(Il=t)&&(ql(),Qi())}};var sc={Events:[ri,ii,oi,Te,Ie,Ls,{current:!1}]},cc={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var pc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pc.isDisabled&&pc.supportsFiber)try{ki=pc.inject(uc),Si=pc}catch(me){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,n.createPortal=lc,n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(n))?null:e.stateNode},n.flushSync=function(e,n){var t=Il;if(0!==(48&t))return e(n);Il|=1;try{if(e)return Wi(99,e.bind(null,n))}finally{Il=t,Qi()}},n.hydrate=function(e,n,t){if(!oc(n))throw Error(a(200));return ac(null,e,n,!0,t)},n.render=function(e,n,t){if(!oc(n))throw Error(a(200));return ac(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!oc(e))throw Error(a(40));return!!e._reactRootContainer&&(ws((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[ei]=null}))})),!0)},n.unstable_batchedUpdates=xs,n.unstable_createPortal=function(e,n){return lc(e,n,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!oc(t))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,n,t,!1,r)},n.version="17.0.2"},749:function(e,n,t){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}(),e.exports=t(610)},443:function(e,n){"use strict";var t="function"===typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case u:case p:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case g:case s:return e;default:return n}}case i:return n}}}function _(e){return w(e)===p}n.AsyncMode=u,n.ConcurrentMode=p,n.ContextConsumer=c,n.ContextProvider=s,n.Element=r,n.ForwardRef=d,n.Fragment=o,n.Lazy=m,n.Memo=g,n.Portal=i,n.Profiler=l,n.StrictMode=a,n.Suspense=f,n.isAsyncMode=function(e){return _(e)||w(e)===u},n.isConcurrentMode=_,n.isContextConsumer=function(e){return w(e)===c},n.isContextProvider=function(e){return w(e)===s},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return w(e)===d},n.isFragment=function(e){return w(e)===o},n.isLazy=function(e){return w(e)===m},n.isMemo=function(e){return w(e)===g},n.isPortal=function(e){return w(e)===i},n.isProfiler=function(e){return w(e)===l},n.isStrictMode=function(e){return w(e)===a},n.isSuspense=function(e){return w(e)===f},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===p||e===l||e===a||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},n.typeOf=w},479:function(e,n,t){"use strict";e.exports=t(443)},446:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r="undefined"!==typeof n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,i,o){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||("undefined"!==typeof o&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),n.push(u))}},n}},581:function(e){"use strict";e.exports=function(e){var n=e[1],t=e[3];if(!t)return n;if("function"===typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}},999:function(e,n,t){"use strict";t(545);var r=t(969),i=60103;if(n.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),n.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,t){var r,o={},c=null,u=null;for(r in void 0!==t&&(c=""+t),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)l.call(n,r)&&!s.hasOwnProperty(r)&&(o[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===o[r]&&(o[r]=n[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}n.jsx=c,n.jsxs=c},949:function(e,n,t){"use strict";var r=t(545),i=60103,o=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var a=60109,l=60110,s=60112;n.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var p=Symbol.for;i=p("react.element"),o=p("react.portal"),n.Fragment=p("react.fragment"),n.StrictMode=p("react.strict_mode"),n.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),s=p("react.forward_ref"),n.Suspense=p("react.suspense"),c=p("react.memo"),u=p("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||h}function v(){}function y(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,n){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,n,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,n,t){var r,o={},a=null,l=null;if(null!=n)for(r in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,r)&&!_.hasOwnProperty(r)&&(o[r]=n[r]);var s=arguments.length-2;if(1===s)o.children=t;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:x.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function j(e,n){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return n[e]}))}(""+e.key):n.toString(36)}function C(e,n,t,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+j(s,0):r,Array.isArray(a)?(t="",null!=e&&(t=e.replace(E,"$&/")+"/"),C(a,n,t,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,n){return{$$typeof:i,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,t+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),n.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+j(l=e[c],c);s+=C(l,n,t,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=C(l=l.value,n,t,u=r+j(l,c++),a);else if("object"===l)throw n=""+e,Error(f(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return s}function N(e,n,t){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return n.call(t,e,i++)})),r}function P(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then((function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)}),(function(n){0===e._status&&(e._status=2,e._result=n)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function T(){var e=O.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};n.Children={map:N,forEach:function(e,n,t){N(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return N(e,(function(){n++})),n},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(f(143));return e}},n.Component=m,n.PureComponent=y,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,n.cloneElement=function(e,n,t){if(null===e||void 0===e)throw Error(f(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=n){if(void 0!==n.ref&&(l=n.ref,s=x.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in n)w.call(n,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==c?c[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=t;else if(1<u){c=Array(u);for(var p=0;p<u;p++)c[p]=arguments[p+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:l,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},n.createElement=k,n.createFactory=function(e){var n=k.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:s,render:e}},n.isValidElement=S,n.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},n.memo=function(e,n){return{$$typeof:c,type:e,compare:void 0===n?null:n}},n.useCallback=function(e,n){return T().useCallback(e,n)},n.useContext=function(e,n){return T().useContext(e,n)},n.useDebugValue=function(){},n.useEffect=function(e,n){return T().useEffect(e,n)},n.useImperativeHandle=function(e,n,t){return T().useImperativeHandle(e,n,t)},n.useLayoutEffect=function(e,n){return T().useLayoutEffect(e,n)},n.useMemo=function(e,n){return T().useMemo(e,n)},n.useReducer=function(e,n,t){return T().useReducer(e,n,t)},n.useRef=function(e){return T().useRef(e)},n.useState=function(e){return T().useState(e)},n.version="17.0.2"},969:function(e,n,t){"use strict";e.exports=t(949)},574:function(e,n,t){"use strict";e.exports=t(999)},384:function(e,n){"use strict";var t,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();n.unstable_now=function(){return l.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,p=function e(){if(null!==c)try{var t=n.unstable_now();c(!0,t),c=null}catch(r){throw setTimeout(e,0),r}};t=function(e){null!==c?setTimeout(t,0,e):(c=e,setTimeout(p,0))},r=function(e,n){u=setTimeout(e,n)},i=function(){clearTimeout(u)},n.unstable_shouldYield=function(){return!1},o=n.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;n.unstable_shouldYield=function(){return n.unstable_now()>=b},o=function(){},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==m){var e=n.unstable_now();b=e+y;try{m(!0,e)?w.postMessage(null):(g=!1,m=null)}catch(t){throw w.postMessage(null),t}}else g=!1},t=function(e){m=e,g||(g=!0,w.postMessage(null))},r=function(e,t){v=d((function(){e(n.unstable_now())}),t)},i=function(){f(v),v=-1}}function _(e,n){var t=e.length;e.push(n);e:for(;;){var r=t-1>>>1,i=e[r];if(!(void 0!==i&&0<E(i,n)))break e;e[r]=n,e[t]=i,t=r}}function k(e){return void 0===(e=e[0])?null:e}function S(e){var n=e[0];if(void 0!==n){var t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,s=e[l];if(void 0!==a&&0>E(a,t))void 0!==s&&0>E(s,a)?(e[r]=s,e[l]=t,r=l):(e[r]=a,e[o]=t,r=o);else{if(!(void 0!==s&&0>E(s,t)))break e;e[r]=s,e[l]=t,r=l}}}return n}return null}function E(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var j=[],C=[],N=1,P=null,O=3,T=!1,I=!1,D=!1;function R(e){for(var n=k(C);null!==n;){if(null===n.callback)S(C);else{if(!(n.startTime<=e))break;S(C),n.sortIndex=n.expirationTime,_(j,n)}n=k(C)}}function L(e){if(D=!1,R(e),!I)if(null!==k(j))I=!0,t(U);else{var n=k(C);null!==n&&r(L,n.startTime-e)}}function U(e,t){I=!1,D&&(D=!1,i()),T=!0;var o=O;try{for(R(t),P=k(j);null!==P&&(!(P.expirationTime>t)||e&&!n.unstable_shouldYield());){var a=P.callback;if("function"===typeof a){P.callback=null,O=P.priorityLevel;var l=a(P.expirationTime<=t);t=n.unstable_now(),"function"===typeof l?P.callback=l:P===k(j)&&S(j),R(t)}else S(j);P=k(j)}if(null!==P)var s=!0;else{var c=k(C);null!==c&&r(L,c.startTime-t),s=!1}return s}finally{P=null,O=o,T=!1}}var z=o;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){I||T||(I=!0,t(U))},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_getFirstCallbackNode=function(){return k(j)},n.unstable_next=function(e){switch(O){case 1:case 2:case 3:var n=3;break;default:n=O}var t=O;O=n;try{return e()}finally{O=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=z,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=O;O=e;try{return n()}finally{O=t}},n.unstable_scheduleCallback=function(e,o,a){var l=n.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:N++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,_(C,e),null===k(j)&&e===k(C)&&(D?i():D=!0,r(L,a-l))):(e.sortIndex=s,_(j,e),I||T||(I=!0,t(U))),e},n.unstable_wrapCallback=function(e){var n=O;return function(){var t=O;O=n;try{return e.apply(this,arguments)}finally{O=t}}}},19:function(e,n,t){"use strict";e.exports=t(384)},92:function(e,n,t){"use strict";var r=t(581),i=t.n(r),o=t(446),a=t.n(o)()(i());a.push([e.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),a.locals={},n.Z=a},558:function(e,n,t){"use strict";var r=t(581),i=t.n(r),o=t(446),a=t.n(o)()(i());a.push([e.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),a.locals={},n.Z=a},743:function(e,n,t){"use strict";var r=function(){var e;return function(){return"undefined"===typeof e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),i=function(){var e={};return function(n){if("undefined"===typeof e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(r){t=null}e[n]=t}return e[n]}}(),o=[];function a(e){for(var n=-1,t=0;t<o.length;t++)if(o[t].identifier===e){n=t;break}return n}function l(e,n){for(var t={},r=[],i=0;i<e.length;i++){var l=e[i],s=n.base?l[0]+n.base:l[0],c=t[s]||0,u="".concat(s," ").concat(c);t[s]=c+1;var p=a(u),d={css:l[1],media:l[2],sourceMap:l[3]};-1!==p?(o[p].references++,o[p].updater(d)):o.push({identifier:u,updater:h(d,n),references:1}),r.push(u)}return r}function s(e){var n=document.createElement("style"),r=e.attributes||{};if("undefined"===typeof r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"===typeof e.insert)e.insert(n);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var c=function(){var e=[];return function(n,t){return e[n]=t,e.filter(Boolean).join("\n")}}();function u(e,n,t,r){var i=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(n,i);else{var o=document.createTextNode(i),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(o,a[n]):e.appendChild(o)}}function p(e,n,t){var r=t.css,i=t.media,o=t.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!==typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var d=null,f=0;function h(e,n){var t,r,i;if(n.singleton){var o=f++;t=d||(d=s(n)),r=u.bind(null,t,o,!1),i=u.bind(null,t,o,!0)}else t=s(n),r=p.bind(null,t,n),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else i()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"===typeof n.singleton||(n.singleton=r());var t=l(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var i=a(t[r]);o[i].references--}for(var s=l(e,n),c=0;c<t.length;c++){var u=a(t[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}t=s}}}}},n={};function t(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,t),o.loaded=!0,o.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t.nc=void 0,function(){"use strict";var e=t(969),n=t(749),r=t(743),i=t.n(r),o=t(558),a={insert:"head",singleton:!1};i()(o.Z,a),o.Z.locals;function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){if(e){if("string"===typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):void 0}}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(s){l=!0,i=s}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||s(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function p(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return d="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},d(e)}function f(){f=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{l({},"")}catch(N){l=function(e,n,t){return e[n]=t}}function s(e,n,t,r){var i=n&&n.prototype instanceof p?n:p,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,n,t){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(t.method=i,t.arg=o;;){var a=t.delegate;if(a){var l=_(a,t);if(l){if(l===u)continue;return l}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var s=c(e,n,t);if("normal"===s.type){if(r=t.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(r="completed",t.method="throw",t.arg=s.arg)}}}(e,t,a),o}function c(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(N){return{type:"throw",arg:N}}}e.wrap=s;var u={};function p(){}function h(){}function g(){}var m={};l(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(j([])));y&&y!==n&&t.call(y,i)&&(m=y);var b=g.prototype=p.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(n){l(e,n,(function(e){return this._invoke(n,e)}))}))}function w(e,n){function r(i,o,a,l){var s=c(e[i],e,o);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==d(p)&&t.call(p,"__await")?n.resolve(p.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):n.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,l)}))}l(s.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}}function _(e,n){var t=e.iterator[n.method];if(void 0===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,_(e,n),"throw"===n.method))return u;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(t,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,u;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,u):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,u)}function k(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function S(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=g,l(b,"constructor",g),l(g,"constructor",h),h.displayName=l(g,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},x(w.prototype),l(w.prototype,o,(function(){return this})),e.AsyncIterator=w,e.async=function(n,t,r,i,o){void 0===o&&(o=Promise);var a=new w(s(n,t,r,i),o);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(b),l(b,a,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=[];for(var t in e)n.push(t);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=t.call(o,"catchLoc"),s=t.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&t.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),u},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),S(t),u}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;S(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:j(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},e}function h(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(c){return void t(c)}l.done?n(s):Promise.resolve(s).then(r,i)}function g(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){h(o,r,i,a,l,"next",e)}function l(e){h(o,r,i,a,l,"throw",e)}a(void 0)}))}}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,n,t){return n&&v(e.prototype,n),t&&v(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,n){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},b(e,n)}function x(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}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}}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,n){if(n&&("object"===d(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function E(e){var n=_();return function(){var t,r=w(e);if(n){var i=w(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return S(this,t)}}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=t(578),O=Object.prototype.toString;function T(e){switch(O.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return B(e,Error)}}function I(e,n){return O.call(e)==="[object ".concat(n,"]")}function D(e){return I(e,"ErrorEvent")}function R(e){return I(e,"DOMError")}function L(e){return I(e,"String")}function U(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function z(e){return I(e,"Object")}function M(e){return"undefined"!==typeof Event&&B(e,Event)}function F(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function A(e){return"number"===typeof e&&e!==e}function B(e,n){try{return e instanceof n}catch(t){return!1}}function H(e,n){try{for(var t,r=e,i=[],o=0,a=0,l=" > ".length;r&&o++<5&&!("html"===(t=Y(r,n))||o>1&&a+i.length*l+t.length>=80);)i.push(t),a+=t.length,r=r.parentNode;return i.reverse().join(" > ")}catch(s){return"<unknown>"}}function Y(e,n){var t,r,i,o,a,l=e,s=[];if(!l||!l.tagName)return"";s.push(l.tagName.toLowerCase());var c=n&&n.length?n.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(c&&c.length)c.forEach((function(e){s.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(l.id&&s.push("#".concat(l.id)),(t=l.className)&&L(t))for(r=t.split(/\s+/),a=0;a<r.length;a++)s.push(".".concat(r[a]));var u=["type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=l.getAttribute(i))&&s.push("[".concat(i,'="').concat(o,'"]'));return s.join("")}function $(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===n||e.length<=n?e:"".concat(e.substr(0,n),"...")}function G(e,n){if(!Array.isArray(e))return"";for(var t=[],r=0;r<e.length;r++){var i=e[r];try{t.push(String(i))}catch(o){t.push("[value cannot be serialized]")}}return t.join(n)}function W(e,n){return!!L(e)&&(I(n,"RegExp")?n.test(e):"string"===typeof n&&-1!==e.indexOf(n))}function q(e,n,t){if(n in e){var r=e[n],i=t(r);if("function"===typeof i)try{V(i,r)}catch(o){}e[n]=i}}function Q(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,configurable:!0})}function V(e,n){var t=n.prototype||{};e.prototype=n.prototype=t,Q(e,"__sentry_original__",n)}function K(e){return e.__sentry_original__}function J(e){if(T(e))return N({message:e.message,name:e.name,stack:e.stack},Z(e));if(M(e)){var n=N({type:e.type,target:X(e.target),currentTarget:X(e.currentTarget)},Z(e));return"undefined"!==typeof CustomEvent&&B(e,CustomEvent)&&(n.detail=e.detail),n}return e}function X(e){try{return n=e,"undefined"!==typeof Element&&B(n,Element)?H(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}var n}function Z(e){if("object"===typeof e&&null!==e){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}return{}}function ee(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,t=Object.keys(J(e));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=n)return $(t[0],n);for(var r=t.length;r>0;r--){var i=t.slice(0,r).join(", ");if(!(i.length>n))return r===t.length?i:$(i,n)}return""}function ne(e){return te(e,new Map)}function te(e,n){if(z(e)){if(void 0!==(a=n.get(e)))return a;var t={};n.set(e,t);for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];"undefined"!==typeof e[o]&&(t[o]=te(e[o],n))}return t}if(Array.isArray(e)){var a;if(void 0!==(a=n.get(e)))return a;t=[];return n.set(e,t),e.forEach((function(e){t.push(te(e,n))})),t}return e}function re(){var e=(0,P.R)(),n=e.crypto||e.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");var t=n&&n.getRandomValues?function(){return n.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^(15&t())>>e/4).toString(16)}))}function ie(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function oe(e){var n=e.message,t=e.event_id;if(n)return n;var r=ie(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||t||"<unknown>":t||"<unknown>"}function ae(e,n,t){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=n||""),o.type||(o.type=t||"Error")}function le(e,n){var t=ie(e);if(t){var r=t.mechanism;if(t.mechanism=N(N(N({},{type:"generic",handled:!0}),r),n),n&&"data"in n){var i=N(N({},r&&r.data),n.data);t.mechanism.data=i}}}function se(e){if(e&&e.__sentry_captured__)return!0;try{Q(e,"__sentry_captured__",!0)}catch(n){}return!1}function ce(e){return Array.isArray(e)?e:[e]}var ue,pe=t(929),de=(0,P.R)(),fe="Sentry Logger ",he=["debug","info","warn","error","log","assert","trace"];function ge(e){var n=(0,P.R)();if(!("console"in n))return e();var t=n.console,r={};he.forEach((function(e){var i=t[e]&&t[e].__sentry_original__;e in n.console&&i&&(r[e]=t[e],t[e]=i)}));try{return e()}finally{Object.keys(r).forEach((function(e){t[e]=r[e]}))}}function me(){var e=!1,n={enable:function(){e=!0},disable:function(){e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?he.forEach((function(t){n[t]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e&&ge((function(){var e;(e=de.console)[t].apply(e,["".concat(fe,"[").concat(t,"]:")].concat(r))}))}})):he.forEach((function(e){n[e]=function(){}})),n}ue="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,P.Y)("logger",me):me();var ve,ye=t(419);function be(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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.")}()}function xe(e){return new _e((function(n){n(e)}))}function we(e){return new _e((function(n,t){t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(ve||(ve={}));var _e=function(){function e(n){m(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this);try{n(this._resolve,this._reject)}catch(t){this._reject(t)}}return y(e,[{key:"__init",value:function(){this._state=ve.PENDING}},{key:"__init2",value:function(){this._handlers=[]}},{key:"then",value:function(n,t){var r=this;return new e((function(e,i){r._handlers.push([!1,function(t){if(n)try{e(n(t))}catch(r){i(r)}else e(t)},function(n){if(t)try{e(t(n))}catch(r){i(r)}else i(n)}]),r._executeHandlers()}))}},{key:"catch",value:function(e){return this.then((function(e){return e}),e)}},{key:"finally",value:function(n){var t=this;return new e((function(e,r){var i,o;return t.then((function(e){o=!1,i=e,n&&n()}),(function(e){o=!0,i=e,n&&n()})).then((function(){o?r(i):e(i)}))}))}},{key:"__init3",value:function(){var e=this;this._resolve=function(n){e._setResult(ve.RESOLVED,n)}}},{key:"__init4",value:function(){var e=this;this._reject=function(n){e._setResult(ve.REJECTED,n)}}},{key:"__init5",value:function(){var e=this;this._setResult=function(n,t){e._state===ve.PENDING&&(F(t)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))}}},{key:"__init6",value:function(){var e=this;this._executeHandlers=function(){if(e._state!==ve.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach((function(n){n[0]||(e._state===ve.RESOLVED&&n[1](e._value),e._state===ve.REJECTED&&n[2](e._value),n[0]=!0)}))}}}}]),e}();function ke(e){var n=(0,pe.ph)(),t={sid:re(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(e){return ne({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(t)}};return e&&Se(t,e),t}function Se(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.user&&(!e.ipAddress&&n.user.ip_address&&(e.ipAddress=n.user.ip_address),e.did||n.did||(e.did=n.user.id||n.user.email||n.user.username)),e.timestamp=n.timestamp||(0,pe.ph)(),n.ignoreDuration&&(e.ignoreDuration=n.ignoreDuration),n.sid&&(e.sid=32===n.sid.length?n.sid:re()),void 0!==n.init&&(e.init=n.init),!e.did&&n.did&&(e.did="".concat(n.did)),"number"===typeof n.started&&(e.started=n.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof n.duration)e.duration=n.duration;else{var t=e.timestamp-e.started;e.duration=t>=0?t:0}n.release&&(e.release=n.release),n.environment&&(e.environment=n.environment),!e.ipAddress&&n.ipAddress&&(e.ipAddress=n.ipAddress),!e.userAgent&&n.userAgent&&(e.userAgent=n.userAgent),"number"===typeof n.errors&&(e.errors=n.errors),n.status&&(e.status=n.status)}var Ee=function(){function e(){m(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return y(e,[{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{},this._session&&Se(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(e){return this._requestSession=e,this}},{key:"setTags",value:function(e){return this._tags=N(N({},this._tags),e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,n){return this._tags=N(N({},this._tags),{},j({},e,n)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=N(N({},this._extra),e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,n){return this._extra=N(N({},this._extra),{},j({},e,n)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,n){return null===n?delete this._contexts[e]:this._contexts=N(N({},this._contexts),{},j({},e,n)),this._notifyScopeListeners(),this}},{key:"setSpan",value:function(e){return this._span=e,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var e=this.getSpan();return e&&e.transaction}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(n){if(!n)return this;if("function"===typeof n){var t=n(this);return t instanceof e?t:this}return n instanceof e?(this._tags=N(N({},this._tags),n._tags),this._extra=N(N({},this._extra),n._extra),this._contexts=N(N({},this._contexts),n._contexts),n._user&&Object.keys(n._user).length&&(this._user=n._user),n._level&&(this._level=n._level),n._fingerprint&&(this._fingerprint=n._fingerprint),n._requestSession&&(this._requestSession=n._requestSession)):z(n)&&(this._tags=N(N({},this._tags),n.tags),this._extra=N(N({},this._extra),n.extra),this._contexts=N(N({},this._contexts),n.contexts),n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession)),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}},{key:"addBreadcrumb",value:function(e,n){var t="number"===typeof n?n:100;if(t<=0)return this;var r=N({timestamp:(0,pe.yW)()},e);return this._breadcrumbs=[].concat(be(this._breadcrumbs),[r]).slice(-t),this._notifyScopeListeners(),this}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"getAttachments",value:function(){return this._attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"applyToEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra=N(N({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=N(N({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=N(N({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=N(N({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=N({trace:this._span.getTraceContext()},e.contexts);var t=this._span.transaction&&this._span.transaction.name;t&&(e.tags=N({transaction:t},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=[].concat(be(e.breadcrumbs||[]),be(this._breadcrumbs)),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=N(N({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),this._notifyEventProcessors([].concat(be(je()),be(this._eventProcessors)),e,n)}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=N(N({},this._sdkProcessingMetadata),e),this}},{key:"_notifyEventProcessors",value:function(e,n,t){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new _e((function(o,a){var l=e[i];if(null===n||"function"!==typeof l)o(n);else{var s=l(N({},n),t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===s&&ue.log('Event processor "'.concat(l.id,'" dropped event')),F(s)?s.then((function(n){return r._notifyEventProcessors(e,n,t,i+1).then(o)})).then(null,a):r._notifyEventProcessors(e,s,t,i+1).then(o).then(null,a)}}))}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(n){n(e)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value:function(e){e.fingerprint=e.fingerprint?ce(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}],[{key:"clone",value:function(n){var t=new e;return n&&(t._breadcrumbs=be(n._breadcrumbs),t._tags=N({},n._tags),t._extra=N({},n._extra),t._contexts=N({},n._contexts),t._user=n._user,t._level=n._level,t._span=n._span,t._session=n._session,t._transactionName=n._transactionName,t._fingerprint=n._fingerprint,t._eventProcessors=be(n._eventProcessors),t._requestSession=n._requestSession,t._attachments=be(n._attachments)),t}}]),e}();function je(){return(0,P.Y)("globalEventProcessors",(function(){return[]}))}function Ce(e){je().push(e)}var Ne=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ee,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;m(this,e),this._version=r,e.prototype.__init.call(this),this.getStackTop().scope=t,n&&this.bindClient(n)}return y(e,[{key:"__init",value:function(){this._stack=[{}]}},{key:"isOlderThan",value:function(e){return this._version<e}},{key:"bindClient",value:function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}},{key:"pushScope",value:function(){var e=Ee.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}},{key:"popScope",value:function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}},{key:"withScope",value:function(e){var n=this.pushScope();try{e(n)}finally{this.popScope()}}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(e,n){var t=this._lastEventId=n&&n.event_id?n.event_id:re(),r=new Error("Sentry syntheticException");return this._withClient((function(i,o){i.captureException(e,N(N({originalException:e,syntheticException:r},n),{},{event_id:t}),o)})),t}},{key:"captureMessage",value:function(e,n,t){var r=this._lastEventId=t&&t.event_id?t.event_id:re(),i=new Error(e);return this._withClient((function(o,a){o.captureMessage(e,n,N(N({originalException:e,syntheticException:i},t),{},{event_id:r}),a)})),r}},{key:"captureEvent",value:function(e,n){var t=n&&n.event_id?n.event_id:re();return"transaction"!==e.type&&(this._lastEventId=t),this._withClient((function(r,i){r.captureEvent(e,N(N({},n),{},{event_id:t}),i)})),t}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(e,n){var t=this.getStackTop(),r=t.scope,i=t.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,l=void 0===a?null:a,s=o.maxBreadcrumbs,c=void 0===s?100:s;if(!(c<=0)){var u=N({timestamp:(0,pe.yW)()},e),p=l?ge((function(){return l(u,n)})):u;null!==p&&r.addBreadcrumb(p,c)}}}},{key:"setUser",value:function(e){var n=this.getScope();n&&n.setUser(e)}},{key:"setTags",value:function(e){var n=this.getScope();n&&n.setTags(e)}},{key:"setExtras",value:function(e){var n=this.getScope();n&&n.setExtras(e)}},{key:"setTag",value:function(e,n){var t=this.getScope();t&&t.setTag(e,n)}},{key:"setExtra",value:function(e,n){var t=this.getScope();t&&t.setExtra(e,n)}},{key:"setContext",value:function(e,n){var t=this.getScope();t&&t.setContext(e,n)}},{key:"configureScope",value:function(e){var n=this.getStackTop(),t=n.scope,r=n.client;t&&r&&e(t)}},{key:"run",value:function(e){var n=Oe(this);try{e(this)}finally{Oe(n)}}},{key:"getIntegration",value:function(e){var n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}},{key:"startTransaction",value:function(e,n){return this._callExtensionMethod("startTransaction",e,n)}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var e=this.getStackTop(),n=e&&e.scope,t=n&&n.getSession();t&&function(e,n){var t={};n?t={status:n}:"ok"===e.status&&(t={status:"exited"}),Se(e,t)}(t),this._sendSessionUpdate(),n&&n.setSession()}},{key:"startSession",value:function(e){var n=this.getStackTop(),t=n.scope,r=n.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,l=((0,P.R)().navigator||{}).userAgent,s=ke(N(N(N({release:o,environment:a},t&&{user:t.getUser()}),l&&{userAgent:l}),e));if(t){var c=t.getSession&&t.getSession();c&&"ok"===c.status&&Se(c,{status:"exited"}),this.endSession(),t.setSession(s)}return s}},{key:"shouldSendDefaultPii",value:function(){var e=this.getClient(),n=e&&e.getOptions();return Boolean(n&&n.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var e=this.getStackTop(),n=e.scope,t=e.client;if(n){var r=n.getSession();r&&t&&t.captureSession&&t.captureSession(r)}}},{key:"_withClient",value:function(e){var n=this.getStackTop(),t=n.scope,r=n.client;r&&e(r,t)}},{key:"_callExtensionMethod",value:function(e){var n=Pe(),t=n.__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.extensions[e].apply(this,i)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}]),e}();function Pe(){var e=(0,P.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Oe(e){var n=Pe(),t=De(n);return Re(n,e),t}function Te(){var e=Pe();return Ie(e)&&!De(e).isOlderThan(4)||Re(e,new Ne),(0,ye.KV)()?function(e){try{var n=Pe().__SENTRY__,t=n&&n.extensions&&n.extensions.domain&&n.extensions.domain.active;if(!t)return De(e);if(!Ie(t)||De(t).isOlderThan(4)){var r=De(e).getStackTop();Re(t,new Ne(r.client,Ee.clone(r.scope)))}return De(t)}catch(i){return De(e)}}(e):De(e)}function Ie(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function De(e){return(0,P.Y)("hub",(function(){return new Ne}),e)}function Re(e,n){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=n,!0)}function Le(e,n){return Te().captureException(e,{captureContext:n})}function Ue(e){Te().withScope(e)}var ze,Me=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Fe=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),this._options=n,e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(n,t){var r=function(n){var r=t();if(r){var i=r.getIntegration(e);if(i){var o=r.getClient(),a=o?o.getOptions():{},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat(be(e.allowUrls||[]),be(n.allowUrls||[])),denyUrls:[].concat(be(e.denyUrls||[]),be(n.denyUrls||[])),ignoreErrors:[].concat(be(e.ignoreErrors||[]),be(n.ignoreErrors||[]),Me),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(i._options,a);return function(e,n){if(n.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(n){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(oe(e))),!0;if(function(e,n){if(!n||!n.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{var n=e.exception.values&&e.exception.values[0]||{},t=n.type,r=void 0===t?"":t,i=n.value,o=void 0===i?"":i;return["".concat(o),"".concat(r,": ").concat(o)]}catch(a){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Cannot extract message for event ".concat(oe(e))),[]}return[]}(e).some((function(e){return n.some((function(n){return W(e,n)}))}))}(e,n.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(oe(e))),!0;if(function(e,n){if(!n||!n.length)return!1;var t=Ae(e);return!!t&&n.some((function(e){return W(t,e)}))}(e,n.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(oe(e),".\nUrl: ").concat(Ae(e))),!0;if(!function(e,n){if(!n||!n.length)return!0;var t=Ae(e);return!t||n.some((function(e){return W(t,e)}))}(e,n.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(oe(e),".\nUrl: ").concat(Ae(e))),!0;return!1}(n,l)?null:n}}return n};r.id=this.name,n(r)}}],[{key:"__initStatic",value:function(){this.id="InboundFilters"}}]),e}();function Ae(e){try{var n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(n):null}catch(r){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Cannot extract url for event ".concat(oe(e))),null}}Fe.__initStatic();var Be=function(){function e(){m(this,e),e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){ze=Function.prototype.toString,Function.prototype.toString=function(){for(var e=K(this)||this,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return ze.apply(e,t)}}}],[{key:"__initStatic",value:function(){this.id="FunctionToString"}}]),e}();Be.__initStatic();var He=[];function Ye(e){var n=e.defaultIntegrations||[],t=e.integrations;n.forEach((function(e){e.isDefaultInstance=!0}));var r=function(e){var n={};return e.forEach((function(e){var t=e.name,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)})),Object.values(n)}(Array.isArray(t)?[].concat(be(n),be(t)):"function"===typeof t?ce(t(n)):n),i=r.findIndex((function(e){return"Debug"===e.name}));if(-1!==i){var o=c(r.splice(i,1),1)[0];r.push(o)}return r}function $e(e,n){!0===n.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ue.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var t=Te(),r=t.getScope();r&&r.update(n.initialScope);var i=new e(n);t.bindClient(i)}function Ge(e,n,t){return Ge=_()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&b(i,t.prototype),i},Ge.apply(null,arguments)}function We(e){var n="function"===typeof Map?new Map:void 0;return We=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return Ge(e,arguments,w(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),b(r,e)},We(e)}var qe=function(e){x(t,e);var n=E(t);function t(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";return m(this,t),(r=n.call(this,e)).message=e,r.name=(this instanceof t?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf(k(r),(this instanceof t?this.constructor:void 0).prototype),r.logLevel=i,r}return y(t)}(We(Error)),Qe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ve(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId,l=e.protocol,s=e.publicKey;return"".concat(l,"://").concat(s).concat(n&&i?":".concat(i):"")+"@".concat(t).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function Ke(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Je(e){var n="string"===typeof e?function(e){var n=Qe.exec(e);if(!n)throw new qe("Invalid Sentry Dsn: ".concat(e));var t=c(n.slice(1),6),r=t[0],i=t[1],o=t[2],a=void 0===o?"":o,l=t[3],s=t[4],u=void 0===s?"":s,p="",d=t[5],f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){var h=d.match(/^\d+/);h&&(d=h[0])}return Ke({host:l,pass:a,path:p,projectId:d,port:u,protocol:r,publicKey:i})}(e):Ke(e);return function(e){if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var n=e.port,t=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(n){if(!e[n])throw new qe("Invalid Sentry Dsn: ".concat(n," missing"))})),!t.match(/^\d+$/))throw new qe("Invalid Sentry Dsn: Invalid projectId ".concat(t));if(!function(e){return"http"===e||"https"===e}(r))throw new qe("Invalid Sentry Dsn: Invalid protocol ".concat(r));if(n&&isNaN(parseInt(n,10)))throw new qe("Invalid Sentry Dsn: Invalid port ".concat(n))}}(n),n}function Xe(e){var n=e.protocol?"".concat(e.protocol,":"):"",t=e.port?":".concat(e.port):"";return"".concat(n,"//").concat(e.host).concat(t).concat(e.path?"/".concat(e.path):"","/api/")}function Ze(e){return"".concat(Xe(e)).concat(e.projectId,"/envelope/")}function en(e,n){return t=N({sentry_key:e.publicKey,sentry_version:"7"},n&&{sentry_client:"".concat(n.name,"/").concat(n.version)}),Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&");var t}function nn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="string"===typeof n?n:n.tunnel,r="string"!==typeof n&&n._metadata?n._metadata.sdk:void 0;return t||"".concat(Ze(e),"?").concat(en(e,r))}function tn(e,n){var t=Je(e),r="".concat(Xe(t),"embed/error-page/"),i="dsn=".concat(Ve(t));for(var o in n)if("dsn"!==o)if("user"===o){var a=n.user;if(!a)continue;a.name&&(i+="&name=".concat(encodeURIComponent(a.name))),a.email&&(i+="&email=".concat(encodeURIComponent(a.email)))}else i+="&".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(n[o]));return"".concat(r,"?").concat(i)}function rn(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=n.sort((function(e,n){return e[0]-n[0]})).map((function(e){return e[1]}));return function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],o=u(e.split("\n").slice(t));try{for(o.s();!(n=o.n()).done;){var a,l=n.value,s=l.replace(/\(error: (.*)\)/,"$1"),c=u(r);try{for(c.s();!(a=c.n()).done;){var p=a.value,d=p(s);if(d){i.push(d);break}}}catch(f){c.e(f)}finally{c.f()}}}catch(f){o.e(f)}finally{o.f()}return an(i)}}function on(e){return Array.isArray(e)?rn.apply(void 0,be(e)):e}function an(e){if(!e.length)return[];var n=e,t=n[0].function||"",r=n[n.length-1].function||"";return-1===t.indexOf("captureMessage")&&-1===t.indexOf("captureException")||(n=n.slice(1)),-1!==r.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,50).map((function(e){return N(N({},e),{},{filename:e.filename||n[0].filename,function:e.function||"?"})})).reverse()}var ln="<anonymous>";function sn(e){try{return e&&"function"===typeof e&&e.name||ln}catch(n){return ln}}function cn(){if(!("fetch"in(0,P.R)()))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function un(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var pn,dn=(0,P.R)(),fn={},hn={};function gn(e){if(!hn[e])switch(hn[e]=!0,e){case"console":!function(){if(!("console"in dn))return;he.forEach((function(e){e in dn.console&&q(dn.console,e,(function(n){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];vn("console",{args:r,level:e}),n&&n.apply(dn.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in dn))return;var e=vn.bind(null,"dom"),n=Sn(e,!0);dn.document.addEventListener("click",n,!1),dn.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((function(n){var t=dn[n]&&dn[n].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(q(t,"addEventListener",(function(n){return function(t,r,i){if("click"===t||"keypress"==t)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},l=a[t]=a[t]||{refCount:0};if(!l.handler){var s=Sn(e);l.handler=s,n.call(this,t,s,i)}l.refCount+=1}catch(c){}return n.call(this,t,r,i)}})),q(t,"removeEventListener",(function(e){return function(n,t,r){if("click"===n||"keypress"==n)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[n];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,n,a.handler,r),a.handler=void 0,delete o[n]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(l){}return e.call(this,n,t,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in dn))return;var e=XMLHttpRequest.prototype;q(e,"open",(function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i=this,o=t[1],a=i.__sentry_xhr__={method:L(t[0])?t[0].toUpperCase():t[0],url:t[1]};L(o)&&"POST"===a.method&&o.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var l=function(){if(4===i.readyState){try{a.status_code=i.status}catch(e){}vn("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"===typeof i.onreadystatechange?q(i,"onreadystatechange",(function(e){return function(){l();for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.apply(i,t)}})):i.addEventListener("readystatechange",l),e.apply(i,t)}})),q(e,"send",(function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),vn("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!cn())return!1;var e=(0,P.R)();if(un(e.fetch))return!0;var n=!1,t=e.document;if(t&&"function"===typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(n=un(r.contentWindow.fetch)),t.head.removeChild(r)}catch(i){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return n}())return;q(dn,"fetch",(function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i={args:t,fetchData:{method:yn(t),url:bn(t)},startTimestamp:Date.now()};return vn("fetch",N({},i)),e.apply(dn,t).then((function(e){return vn("fetch",N(N({},i),{},{endTimestamp:Date.now(),response:e})),e}),(function(e){throw vn("fetch",N(N({},i),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=(0,P.R)(),n=e.chrome,t=n&&n.app&&n.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!t&&r}())return;var e=dn.onpopstate;function n(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i=t.length>2?t[2]:void 0;if(i){var o=pn,a=String(i);pn=a,vn("history",{from:o,to:a})}return e.apply(this,t)}}dn.onpopstate=function(){var n=dn.location.href,t=pn;if(pn=n,vn("history",{from:t,to:n}),e)try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}catch(a){}},q(dn.history,"pushState",n),q(dn.history,"replaceState",n)}();break;case"error":En=dn.onerror,dn.onerror=function(e,n,t,r,i){return vn("error",{column:r,error:i,line:t,msg:e,url:n}),!!En&&En.apply(this,arguments)};break;case"unhandledrejection":jn=dn.onunhandledrejection,dn.onunhandledrejection=function(e){return vn("unhandledrejection",e),!jn||jn.apply(this,arguments)};break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("unknown instrumentation type:",e))}}function mn(e,n){fn[e]=fn[e]||[],fn[e].push(n),gn(e)}function vn(e,n){if(e&&fn[e]){var t,r=u(fn[e]||[]);try{for(r.s();!(t=r.n()).done;){var i=t.value;try{i(n)}catch(o){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(sn(i),"\nError:"),o)}}}catch(a){r.e(a)}finally{r.f()}}}function yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Request"in dn&&B(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"string"===typeof e[0]?e[0]:"Request"in dn&&B(e[0],Request)?e[0].url:String(e[0])}var xn,wn;function _n(e,n){if(!e)return!0;if(e.type!==n.type)return!0;try{if(e.target!==n.target)return!0}catch(t){}return!1}function kn(e){if("keypress"!==e.type)return!1;try{var n=e.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}function Sn(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){if(t&&wn!==t&&!kn(t)){var r="keypress"===t.type?"input":t.type;(void 0===xn||_n(wn,t))&&(e({event:t,name:r,global:n}),wn=t),clearTimeout(xn),xn=dn.setTimeout((function(){xn=void 0}),1e3)}}}var En=null;var jn=null;function Cn(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=w(e)););return e}function Nn(){return Nn="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var r=Cn(e,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?e:t):i.value}},Nn.apply(this,arguments)}var Pn="7.15.0";function On(){var e="function"===typeof WeakSet,n=e?new WeakSet:[];return[function(t){if(e)return!!n.has(t)||(n.add(t),!1);for(var r=0;r<n.length;r++){if(n[r]===t)return!0}return n.push(t),!1},function(t){if(e)n.delete(t);else for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}}]}function Tn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return Dn("",e,n,t)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function In(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,r=Tn(e,n);return Ln(r)>t?In(e,n-1,t):r}function Dn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:On(),o=c(i,2),a=o[0],l=o[1];if(null===n||["number","boolean","string"].includes(typeof n)&&!A(n))return n;var s=Rn(e,n);if(!s.startsWith("[object "))return s;if(n.__sentry_skip_normalization__)return n;if(0===t)return s.replace("object ","");if(a(n))return"[Circular ~]";var u=n;if(u&&"function"===typeof u.toJSON)try{var p=u.toJSON();return Dn("",p,t-1,r,i)}catch(v){}var d=Array.isArray(n)?[]:{},f=0,h=J(n);for(var g in h)if(Object.prototype.hasOwnProperty.call(h,g)){if(f>=r){d[g]="[MaxProperties ~]";break}var m=h[g];d[g]=Dn(g,m,t-1,r,i),f+=1}return l(n),d}function Rn(e,n){try{return"domain"===e&&n&&"object"===typeof n&&n._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof t.g&&n===t.g?"[Global]":"undefined"!==typeof window&&n===window?"[Window]":"undefined"!==typeof document&&n===document?"[Document]":z(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"===typeof n&&n!==n?"[NaN]":void 0===n?"[undefined]":"function"===typeof n?"[Function: ".concat(sn(n),"]"):"symbol"===typeof n?"[".concat(String(n),"]"):"bigint"===typeof n?"[BigInt: ".concat(String(n),"]"):"[object ".concat(Object.getPrototypeOf(n).constructor.name,"]")}catch(i){return"**non-serializable** (".concat(i,")")}var r}function Ln(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function Un(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,n]}function zn(e,n){var t=c(e,2),r=t[0],i=t[1];return[r,[].concat(be(i),[n])]}function Mn(e,n){e[1].forEach((function(e){var t=e[0].type;n(e,t)}))}function Fn(e,n){return(n||new TextEncoder).encode(e)}function An(e,n){var t=c(e,2),r=t[0],i=t[1],o=JSON.stringify(r);function a(e){"string"===typeof o?o="string"===typeof e?o+e:[Fn(o,n),e]:o.push("string"===typeof e?Fn(e,n):e)}var l,s=u(i);try{for(s.s();!(l=s.n()).done;){var p=c(l.value,2),d=p[0],f=p[1];if(a("\n".concat(JSON.stringify(d),"\n")),"string"===typeof f||f instanceof Uint8Array)a(f);else{var h=void 0;try{h=JSON.stringify(f)}catch(g){h=JSON.stringify(Tn(f))}a(h)}}}catch(m){s.e(m)}finally{s.f()}return"string"===typeof o?o:function(e){var n,t=e.reduce((function(e,n){return e+n.length}),0),r=new Uint8Array(t),i=0,o=u(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.set(a,i),i+=a.length}}catch(m){o.e(m)}finally{o.f()}return r}(o)}function Bn(e,n){var t="string"===typeof e.data?Fn(e.data,n):e.data;return[ne({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var Hn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Yn(e){return Hn[e]}function $n(e){if(e&&e.sdk){var n=e.sdk;return{name:n.name,version:n.version}}}function Gn(e,n,t,r){var i=$n(t),o=e.type||"event";!function(e,n){n&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||n.name,e.sdk.version=e.sdk.version||n.version,e.sdk.integrations=[].concat(be(e.sdk.integrations||[]),be(n.integrations||[])),e.sdk.packages=[].concat(be(e.sdk.packages||[]),be(n.packages||[])))}(e,t&&t.sdk);var a=function(e,n,t,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return N(N(N({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t&&{dsn:Ve(r)}),"transaction"===e.type&&i&&{trace:ne(N({},i))})}(e,i,r,n);return delete e.sdkProcessingMetadata,Un(a,[[{type:o},e]])}var Wn="Not capturing exception because it's already been captured.",qn=function(){function e(n){if(m(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._options=n,n.dsn){this._dsn=Je(n.dsn);var t=nn(this._dsn,n);this._transport=n.transport(N(N({recordDroppedEvent:this.recordDroppedEvent.bind(this)},n.transportOptions),{},{url:t}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("No DSN provided, client will not do anything.")}return y(e,[{key:"__init",value:function(){this._integrations={}}},{key:"__init2",value:function(){this._integrationsInitialized=!1}},{key:"__init3",value:function(){this._numProcessing=0}},{key:"__init4",value:function(){this._outcomes={}}},{key:"captureException",value:function(e,n,t){var r=this;if(!se(e)){var i=n&&n.event_id;return this._process(this.eventFromException(e,n).then((function(e){return r._captureEvent(e,n,t)})).then((function(e){i=e}))),i}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log(Wn)}},{key:"captureMessage",value:function(e,n,t,r){var i=this,o=t&&t.event_id,a=U(e)?this.eventFromMessage(String(e),n,t):this.eventFromException(e,t);return this._process(a.then((function(e){return i._captureEvent(e,t,r)})).then((function(e){o=e}))),o}},{key:"captureEvent",value:function(e,n,t){if(!(n&&n.originalException&&se(n.originalException))){var r=n&&n.event_id;return this._process(this._captureEvent(e,n,t).then((function(e){r=e}))),r}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log(Wn)}},{key:"captureSession",value:function(e){this._isEnabled()?"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Se(e,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("SDK not enabled, will not capture session.")}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var n=this._transport;return n?this._isClientDoneProcessing(e).then((function(t){return n.flush(e).then((function(e){return t&&e}))})):xe(!0)}},{key:"close",value:function(e){var n=this;return this.flush(e).then((function(e){return n.getOptions().enabled=!1,e}))}},{key:"setupIntegrations",value:function(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var n={};return e.forEach((function(e){n[e.name]=e,-1===He.indexOf(e.name)&&(e.setupOnce(Ce,Te),He.push(e.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("Integration installed: ".concat(e.name)))})),n}(this._options.integrations),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function(e){return this._integrations[e]}},{key:"getIntegration",value:function(e){try{return this._integrations[e.id]||null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}},{key:"sendEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){var t,r=Gn(e,this._dsn,this._options._metadata,this._options.tunnel),i=u(n.attachments||[]);try{for(i.s();!(t=i.n()).done;){var o=t.value;r=zn(r,Bn(o,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(a){i.e(a)}finally{i.f()}this._sendEnvelope(r)}}},{key:"sendSession",value:function(e){if(this._dsn){var n=function(e,n,t,r){var i=$n(t);return Un(N(N({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&{dsn:Ve(n)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}},{key:"recordDroppedEvent",value:function(e,n){if(this._options.sendClientReports){var t="".concat(e,":").concat(n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log('Adding outcome: "'.concat(t,'"')),this._outcomes[t]=this._outcomes[t]+1||1}}},{key:"_updateSessionFromEvent",value:function(e,n){var t=!1,r=!1,i=n.exception&&n.exception.values;if(i){r=!0;var o,a=u(i);try{for(a.s();!(o=a.n()).done;){var l=o.value.mechanism;if(l&&!1===l.handled){t=!0;break}}}catch(c){a.e(c)}finally{a.f()}}var s="ok"===e.status;(s&&0===e.errors||s&&t)&&(Se(e,N(N({},t&&{status:"crashed"}),{},{errors:e.errors||Number(r||t)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){var n=this;return new _e((function(t){var r=0,i=setInterval((function(){0==n._numProcessing?(clearInterval(i),t(!0)):(r+=1,e&&r>=e&&(clearInterval(i),t(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}},{key:"_prepareEvent",value:function(e,n,t){var r=this,i=this.getOptions(),o=i.normalizeDepth,a=void 0===o?3:o,l=i.normalizeMaxBreadth,s=void 0===l?1e3:l,c=N(N({},e),{},{event_id:e.event_id||n.event_id||re(),timestamp:e.timestamp||(0,pe.yW)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var u=t;n.captureContext&&(u=Ee.clone(u).update(n.captureContext));var p=xe(c);if(u){var d=[].concat(be(n.attachments||[]),be(u.getAttachments()));d.length&&(n.attachments=d),p=u.applyToEvent(c,n)}return p.then((function(e){return"number"===typeof a&&a>0?r._normalizeEvent(e,a,s):e}))}},{key:"_normalizeEvent",value:function(e,n,t){if(!e)return null;var r=N(N(N(N(N({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return N(N({},e),e.data&&{data:Tn(e.data,n,t)})}))}),e.user&&{user:Tn(e.user,n,t)}),e.contexts&&{contexts:Tn(e.contexts,n,t)}),e.extra&&{extra:Tn(e.extra,n,t)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Tn(e.contexts.trace.data,n,t))),e.spans&&(r.spans=e.spans.map((function(e){return e.data&&(e.data=Tn(e.data,n,t)),e}))),r}},{key:"_applyClientOptions",value:function(e){var n=this.getOptions(),t=n.environment,r=n.release,i=n.dist,o=n.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in n?t:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=$(e.message,a));var l=e.exception&&e.exception.values&&e.exception.values[0];l&&l.value&&(l.value=$(l.value,a));var s=e.request;s&&s.url&&(s.url=$(s.url,a))}},{key:"_applyIntegrationsMetadata",value:function(e){var n=Object.keys(this._integrations);n.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat(be(e.sdk.integrations||[]),n))}},{key:"_captureEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,n,t).then((function(e){return e.event_id}),(function(e){if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var n=e;"log"===n.logLevel?ue.log(n.message):ue.warn(n)}}))}},{key:"_processEvent",value:function(e,n,t){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return we(new qe("SDK not enabled, will not capture event.","log"));var l="transaction"===e.type;return!l&&"number"===typeof a&&Math.random()>a?(this.recordDroppedEvent("sample_rate","error"),we(new qe("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")"),"log"))):this._prepareEvent(e,n,t).then((function(t){if(null===t)throw r.recordDroppedEvent("event_processor",e.type||"error"),new qe("An event processor returned null, will not send event.","log");return n.data&&!0===n.data.__sentry__||l||!o?t:function(e){var n="`beforeSend` method has to return `null` or a valid event.";if(F(e))return e.then((function(e){if(!z(e)&&null!==e)throw new qe(n);return e}),(function(e){throw new qe("beforeSend rejected with ".concat(e))}));if(!z(e)&&null!==e)throw new qe(n);return e}(o(t,n))})).then((function(i){if(null===i)throw r.recordDroppedEvent("before_send",e.type||"error"),new qe("`beforeSend` returned `null`, will not send event.","log");var o=t&&t.getSession();!l&&o&&r._updateSessionFromEvent(o,i);var a=i.transaction_info;if(l&&a&&i.transaction!==e.transaction){var s="custom";i.transaction_info=N(N({},a),{},{source:s,changes:[].concat(be(a.changes),[{source:s,timestamp:i.timestamp,propagations:a.propagations}])})}return r.sendEvent(i,n),i})).then(null,(function(e){if(e instanceof qe)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new qe("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}},{key:"_process",value:function(e){var n=this;this._numProcessing+=1,e.then((function(e){return n._numProcessing-=1,e}),(function(e){return n._numProcessing-=1,e}))}},{key:"_sendEnvelope",value:function(e){this._transport&&this._dsn?this._transport.send(e).then(null,(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Error while sending event:",e)})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((function(n){var t=c(n.split(":"),2);return{reason:t[0],category:t[1],quantity:e[n]}}))}}]),e}();function Qn(e,n){var t=Kn(e,n),r={type:n&&n.name,value:Xn(n)};return t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Vn(e,n){return{exception:{values:[Qn(e,n)]}}}function Kn(e,n){var t=n.stacktrace||n.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(Jn.test(e.message))return 1}return 0}(n);try{return e(t,r)}catch(i){}return[]}var Jn=/Minified React error #\d+;/i;function Xn(e){var n=e&&e.message;return n?n.error&&"string"===typeof n.error.message?n.error.message:n:"No error message"}function Zn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=r&&r.syntheticException||void 0,a=nt(e,n,o,i);return a.level=t,r&&r.event_id&&(a.event_id=r.event_id),xe(a)}function et(e,n,t,r,i){var o;if(D(n)&&n.error)return Vn(e,n.error);if(R(n)||I(n,"DOMException")){var a=n;if("stack"in n)o=Vn(e,n);else{var l=a.name||(R(a)?"DOMError":"DOMException"),s=a.message?"".concat(l,": ").concat(a.message):l;ae(o=nt(e,s,t,r),s)}return"code"in a&&(o.tags=N(N({},o.tags),{},{"DOMException.code":"".concat(a.code)})),o}return T(n)?Vn(e,n):z(n)||M(n)?(o=function(e,n,t,r){var i=Te().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:M(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error ".concat(r?"promise rejection":"exception"," captured with keys: ").concat(ee(n))}]},extra:{__serialized__:In(n,o)}};if(t){var l=Kn(e,t);l.length&&(a.exception.values[0].stacktrace={frames:l})}return a}(e,n,t,i),le(o,{synthetic:!0}),o):(ae(o=nt(e,n,t,r),"".concat(n),void 0),le(o,{synthetic:!0}),o)}function nt(e,n,t,r){var i={message:n};if(r&&t){var o=Kn(e,t);o.length&&(i.exception={values:[{value:n,stacktrace:{frames:o}}]})}return i}var tt=["fatal","error","warning","log","info","debug"];function rt(e){return"warn"===e?"warning":tt.includes(e)?e:"log"}function it(e){if(!e)return{};var n=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var t=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+t+r}}var ot="Breadcrumbs",at=function(){function e(n){m(this,e),e.prototype.__init.call(this),this.options=N({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){this.options.console&&mn("console",lt),this.options.dom&&mn("dom",function(e){function n(n){var t,r="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof r&&(r=[r]);try{t=n.event.target?H(n.event.target,r):H(n.event,r)}catch(i){t="<unknown>"}0!==t.length&&Te().addBreadcrumb({category:"ui.".concat(n.name),message:t},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&mn("xhr",st),this.options.fetch&&mn("fetch",ct),this.options.history&&mn("history",ut)}}],[{key:"__initStatic",value:function(){this.id=ot}}]),e}();function lt(e){var n={category:"console",data:{arguments:e.args,logger:"console"},level:rt(e.level),message:G(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: ".concat(G(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}Te().addBreadcrumb(n,{input:e.args,level:e.level})}function st(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var n=e.xhr.__sentry_xhr__||{},t=n.method,r=n.url,i=n.status_code,o=n.body;Te().addBreadcrumb({category:"xhr",data:{method:t,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;}function ct(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Te().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Te().addBreadcrumb({category:"fetch",data:N(N({},e.fetchData),{},{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function ut(e){var n=(0,P.R)(),t=e.from,r=e.to,i=it(n.location.href),o=it(t),a=it(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(t=o.relative),Te().addBreadcrumb({category:"navigation",data:{from:t,to:r}})}at.__initStatic();var pt=(0,P.R)(),dt=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Pn}],version:Pn},r=n.call(this,e),e.sendClientReports&&pt.document&&pt.document.addEventListener("visibilitychange",(function(){"hidden"===pt.document.visibilityState&&r._flushOutcomes()})),r}return y(t,[{key:"eventFromException",value:function(e,n){return function(e,n,t,r){var i=et(e,n,t&&t.syntheticException||void 0,r);return le(i),i.level="error",t&&t.event_id&&(i.event_id=t.event_id),xe(i)}(this._options.stackParser,e,n,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",t=arguments.length>2?arguments[2]:void 0;return Zn(this._options.stackParser,e,n,t,this._options.attachStacktrace)}},{key:"sendEvent",value:function(e,n){var r=this.getIntegrationById(ot);r&&r.options&&r.options.sentry&&Te().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:oe(e)},{event:e}),Nn(w(t.prototype),"sendEvent",this).call(this,e,n)}},{key:"_prepareEvent",value:function(e,n,r){return e.platform=e.platform||"javascript",Nn(w(t.prototype),"_prepareEvent",this).call(this,e,n,r)}},{key:"_flushOutcomes",value:function(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("Sending outcomes:",e);var n,t,r,i=nn(this._dsn,this._options),o=(n=e,Un((t=this._options.tunnel&&Ve(this._dsn))?{dsn:t}:{},[[{type:"client_report"},{timestamp:r||(0,pe.yW)(),discarded_events:n}]]));try{var a=(0,P.R)();if("[object Navigator]"===Object.prototype.toString.call(a&&a.navigator)&&"function"===typeof a.navigator.sendBeacon&&!this._options.transportOptions)a.navigator.sendBeacon.bind(a.navigator)(i,An(o));else this._sendEnvelope(o)}catch(l){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error(l)}}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("No outcomes to send")}}]),t}(qn),ft="?";function ht(e,n,t,r){var i={filename:e,function:n,in_app:!0};return void 0!==t&&(i.lineno=t),void 0!==r&&(i.colno=r),i}var gt=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mt=/\((\S*)(?::(\d+))(?::(\d+))\)/,vt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xt=[[30,function(e){var n=gt.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){var t=mt.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}var r=c(_t(n[1]||ft,n[2]),2),i=r[0];return ht(r[1],i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,function(e){var n=vt.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var t=yt.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}var r=n[3],i=n[1]||ft,o=c(_t(i,r),2);return i=o[0],ht(r=o[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],[40,function(e){var n=bt.exec(e);return n?ht(n[2],n[1]||ft,+n[3],n[4]?+n[4]:void 0):void 0}]],wt=rn.apply(void 0,xt),_t=function(e,n){var t=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return t||r?[-1!==e.indexOf("@")?e.split("@")[0]:ft,t?"safari-extension:".concat(n):"safari-web-extension:".concat(n)]:[e,n]},kt=0;function St(){return kt>0}function Et(){kt+=1,setTimeout((function(){kt-=1}))}function jt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(K(e))return e}catch(l){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{t&&"function"===typeof t&&t.apply(this,arguments);var i=r.map((function(e){return jt(e,n)}));return e.apply(this,i)}catch(o){throw Et(),Ue((function(e){e.addEventProcessor((function(e){return n.mechanism&&(ae(e,void 0,void 0),le(e,n.mechanism)),e.extra=N(N({},e.extra),{},{arguments:r}),e})),Le(o)})),o}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(s){}V(i,e),Q(e,"__sentry_wrapped__",i);try{var a=Object.getOwnPropertyDescriptor(i,"name");a.configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(s){}return i}var Ct=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Nt=function(){function e(n){m(this,e),e.prototype.__init.call(this),this._options=N({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var e=(0,P.R)();this._options.setTimeout&&q(e,"setTimeout",Pt),this._options.setInterval&&q(e,"setInterval",Pt),this._options.requestAnimationFrame&&q(e,"requestAnimationFrame",Ot),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&q(XMLHttpRequest.prototype,"send",Tt);var n=this._options.eventTarget;n&&(Array.isArray(n)?n:Ct).forEach(It)}}],[{key:"__initStatic",value:function(){this.id="TryCatch"}}]),e}();function Pt(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i=t[0];return t[0]=jt(i,{mechanism:{data:{function:sn(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Ot(e){return function(n){return e.apply(this,[jt(n,{mechanism:{data:{function:"requestAnimationFrame",handler:sn(e)},handled:!0,type:"instrument"}})])}}function Tt(e){return function(){var n=this,t=["onload","onerror","onprogress","onreadystatechange"];t.forEach((function(e){e in n&&"function"===typeof n[e]&&q(n,e,(function(n){var t={mechanism:{data:{function:e,handler:sn(n)},handled:!0,type:"instrument"}},r=K(n);return r&&(t.mechanism.data.handler=sn(r)),jt(n,t)}))}));for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}}function It(e){var n=(0,P.R)(),t=n[e]&&n[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(q(t,"addEventListener",(function(n){return function(t,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=jt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:sn(r),target:e},handled:!0,type:"instrument"}}))}catch(o){}return n.apply(this,[t,jt(r,{mechanism:{data:{function:"addEventListener",handler:sn(r),target:e},handled:!0,type:"instrument"}}),i])}})),q(t,"removeEventListener",(function(e){return function(n,t,r){var i=t;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,n,o,r)}catch(a){}return e.call(this,n,i,r)}})))}Nt.__initStatic();var Dt=function(){function e(n){m(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),this._options=N({onerror:!0,onunhandledrejection:!0},n)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"__init2",value:function(){this._installFunc={onerror:Rt,onunhandledrejection:Lt}}},{key:"setupOnce",value:function(){Error.stackTraceLimit=50;var e,n=this._options;for(var t in n){var r=this._installFunc[t];r&&n[t]&&(e=t,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.log("Global Handler attached: ".concat(e)),r(),this._installFunc[t]=void 0)}}}],[{key:"__initStatic",value:function(){this.id="GlobalHandlers"}}]),e}();function Rt(){mn("error",(function(e){var n=c(Mt(),3),t=n[0],r=n[1],i=n[2];if(t.getIntegration(Dt)){var o=e.msg,a=e.url,l=e.line,s=e.column,u=e.error;if(!(St()||u&&u.__sentry_own_request__)){var p=void 0===u&&L(o)?function(e,n,t,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=D(e)?e.message:e,a="Error",l=o.match(i);l&&(a=l[1],o=l[2]);return Ut({exception:{values:[{type:a,value:o}]}},n,t,r)}(o,a,l,s):Ut(et(r,u||o,void 0,i,!1),a,l,s);p.level="error",zt(t,u,p,"onerror")}}}))}function Lt(){mn("unhandledrejection",(function(e){var n=c(Mt(),3),t=n[0],r=n[1],i=n[2];if(t.getIntegration(Dt)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(l){}if(St()||o&&o.__sentry_own_request__)return!0;var a=U(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(o))}]}}:et(r,o,void 0,i,!0);a.level="error",zt(t,o,a,"onunhandledrejection")}}))}function Ut(e,n,t,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},l=a.stacktrace=a.stacktrace||{},s=l.frames=l.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(t,10))?void 0:t,p=L(n)&&n.length>0?n:function(){var e=(0,P.R)();try{return e.document.location.href}catch(n){return""}}();return 0===s.length&&s.push({colno:c,filename:p,function:"?",in_app:!0,lineno:u}),e}function zt(e,n,t,r){le(t,{handled:!1,type:r}),e.captureEvent(t,{originalException:n})}function Mt(){var e=Te(),n=e.getClient(),t=n&&n.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[e,t.stackParser,t.attachStacktrace]}Dt.__initStatic();var Ft="cause",At=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),e.prototype.__init.call(this),this._key=n.key||Ft,this._limit=n.limit||5}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var n=Te().getClient();n&&Ce((function(t,r){var i=Te().getIntegration(e);return i?function(e,n,t,r,i){if(!r.exception||!r.exception.values||!i||!B(i.originalException,Error))return r;var o=Bt(e,t,i.originalException,n);return r.exception.values=[].concat(be(o),be(r.exception.values)),r}(n.getOptions().stackParser,i._key,i._limit,t,r):t}))}}],[{key:"__initStatic",value:function(){this.id="LinkedErrors"}}]),e}();function Bt(e,n,t,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!B(t[r],Error)||i.length+1>=n)return i;var o=Qn(e,t[r]);return Bt(e,n,t[r],r,[o].concat(be(i)))}At.__initStatic();var Ht=function(){function e(){m(this,e),e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(n,t){var r=function(n){var r=t().getIntegration(e);if(r){try{if(function(e,n){if(!n)return!1;if(function(e,n){var t=e.message,r=n.message;if(!t&&!r)return!1;if(t&&!r||!t&&r)return!1;if(t!==r)return!1;if(!$t(e,n))return!1;if(!Yt(e,n))return!1;return!0}(e,n))return!0;if(function(e,n){var t=Gt(n),r=Gt(e);if(!t||!r)return!1;if(t.type!==r.type||t.value!==r.value)return!1;if(!$t(e,n))return!1;if(!Yt(e,n))return!1;return!0}(e,n))return!0;return!1}(n,r._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return r._previousEvent=n}return r._previousEvent=n}return n};r.id=this.name,n(r)}}],[{key:"__initStatic",value:function(){this.id="Dedupe"}}]),e}();function Yt(e,n){var t=Wt(e),r=Wt(n);if(!t&&!r)return!0;if(t&&!r||!t&&r)return!1;if(r.length!==t.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=t[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function $t(e,n){var t=e.fingerprint,r=n.fingerprint;if(!t&&!r)return!0;if(t&&!r||!t&&r)return!1;try{return!(t.join("")!==r.join(""))}catch(i){return!1}}function Gt(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Wt(e){var n=e.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}}Ht.__initStatic();var qt=(0,P.R)(),Qt=function(){function e(){m(this,e),e.prototype.__init.call(this)}return y(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){Ce((function(n){if(Te().getIntegration(e)){if(!qt.navigator&&!qt.location&&!qt.document)return n;var t=n.request&&n.request.url||qt.location&&qt.location.href,r=(qt.document||{}).referrer,i=(qt.navigator||{}).userAgent,o=N(N(N({},n.request&&n.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),a=N(N({},t&&{url:t}),{},{headers:o});return N(N({},n),{},{request:a})}return n}))}}],[{key:"__initStatic",value:function(){this.id="HttpContext"}}]),e}();function Vt(e){var n=[];function t(e){return n.splice(n.indexOf(e),1)[0]}return{$:n,add:function(r){if(!(void 0===e||n.length<e))return we(new qe("Not adding Promise because buffer limit was reached."));var i=r();return-1===n.indexOf(i)&&n.push(i),i.then((function(){return t(i)})).then(null,(function(){return t(i).then(null,(function(){}))})),i},drain:function(e){return new _e((function(t,r){var i=n.length;if(!i)return t(!0);var o=setTimeout((function(){e&&e>0&&t(!1)}),e);n.forEach((function(e){xe(e).then((function(){--i||(clearTimeout(o),t(!0))}),r)}))}))}}}Qt.__initStatic();function Kt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),t=parseInt("".concat(e),10);if(!isNaN(t))return 1e3*t;var r=Date.parse("".concat(e));return isNaN(r)?6e4:r-n}function Jt(e,n){return e[n]||e.all||0}function Xt(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return Jt(e,n)>t}function Zt(e,n){var t=n.statusCode,r=n.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),o=N({},e),a=r&&r["x-sentry-rate-limits"],l=r&&r["retry-after"];if(a){var s,p=u(a.trim().split(","));try{for(p.s();!(s=p.n()).done;){var d=s.value,f=d.split(":",2),h=c(f,2),g=h[0],m=h[1],v=parseInt(g,10),y=1e3*(isNaN(v)?60:v);if(m){var b,x=u(m.split(";"));try{for(x.s();!(b=x.n()).done;){var w=b.value;o[w]=i+y}}catch(_){x.e(_)}finally{x.f()}}else o.all=i+y}}catch(_){p.e(_)}finally{p.f()}}else l?o.all=i+Kt(l,i):429===t&&(o.all=i+6e4);return o}function er(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt(e.bufferSize||30),r={},i=function(e){return t.drain(e)};function o(i){var o=[];if(Mn(i,(function(n,t){var i=Yn(t);Xt(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(n)})),0===o.length)return xe();var a=Un(i[0],o),l=function(n){Mn(a,(function(t,r){e.recordDroppedEvent(n,Yn(r))}))};return t.add((function(){return n({body:An(a,e.textEncoder)}).then((function(e){void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=Zt(r,e)}),(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Failed while sending event:",e),l("network_error")}))})).then((function(e){return e}),(function(e){if(e instanceof qe)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Skipped sending event because buffer is full."),l("queue_overflow"),xe();throw e}))}return{send:o,flush:i}}var nr,tr=(0,P.R)();function rr(){if(nr)return nr;if(un(tr.fetch))return nr=tr.fetch.bind(tr);var e=tr.document,n=tr.fetch;if(e&&"function"===typeof e.createElement)try{var t=e.createElement("iframe");t.hidden=!0,e.head.appendChild(t);var r=t.contentWindow;r&&r.fetch&&(n=r.fetch),e.head.removeChild(t)}catch(i){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return nr=n.bind(tr)}function ir(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr();function t(t){var r=N({body:t.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:t.body.length<=65536},e.fetchOptions);return n(e.url,r).then((function(e){return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}))}return er(e,t)}function or(e){return er(e,(function(n){return new _e((function(t,r){var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=function(){4===i.readyState&&t({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(n.body)}))}))}var ar=[new Fe,new Be,new Nt,new at,new Dt,new At,new Ht,new Qt];function lr(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function sr(){if("undefined"!==typeof(0,P.R)().document){var e=Te();e.captureSession&&(lr(e),mn("history",(function(e){var n=e.from,t=e.to;void 0!==n&&n!==t&&lr(Te())})))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}t(814);var cr={componentStack:null,error:null,eventId:null},ur=function(n){x(r,n);var t=E(r);function r(){var e;m(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),r.prototype.__init.call(k(e)),r.prototype.__init2.call(k(e)),e}return y(r,[{key:"__init",value:function(){this.state=cr}},{key:"componentDidCatch",value:function(n,t){var r=this,i=t.componentStack,o=this.props,a=o.beforeCapture,l=o.onError,s=o.showDialog,c=o.dialogOptions;Ue((function(t){if(function(e){var n=e.match(/^([^.]+)/);return null!==n&&parseInt(n[0])>=17}(e.version)){var o=new Error(n.message);o.name="React ErrorBoundary ".concat(o.name),o.stack=i,n.cause=o}a&&a(t,n,i);var u=Le(n,{contexts:{react:{componentStack:i}}});l&&l(n,i,u),s&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te(),t=(0,P.R)();if(t.document){var r=n.getStackTop(),i=r.client,o=r.scope,a=e.dsn||i&&i.getDsn();if(a){o&&(e.user=N(N({},o.getUser()),e.user)),e.eventId||(e.eventId=n.lastEventId());var l=t.document.createElement("script");l.async=!0,l.src=tn(a,e),e.onLoad&&(l.onload=e.onLoad);var s=t.document.head||t.document.body;s?s.appendChild(l):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Not injecting report dialog. No injection point found in HTML")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("DSN not configured for showReportDialog call")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.error("Global document not defined in showReportDialog call")}(N(N({},c),{},{eventId:u})),r.setState({error:n,componentStack:i,eventId:u})}))}},{key:"componentDidMount",value:function(){var e=this.props.onMount;e&&e()}},{key:"componentWillUnmount",value:function(){var e=this.state,n=e.error,t=e.componentStack,r=e.eventId,i=this.props.onUnmount;i&&i(n,t,r)}},{key:"__init2",value:function(){var e=this;this.resetErrorBoundary=function(){var n=e.props.onReset,t=e.state,r=t.error,i=t.componentStack,o=t.eventId;n&&n(r,i,o),e.setState(cr)}}},{key:"render",value:function(){var n=this.props,t=n.fallback,r=n.children,i=this.state,o=i.error,a=i.componentStack,l=i.eventId;if(o){var s=void 0;return s="function"===typeof t?t({error:o,componentStack:a,resetError:this.resetErrorBoundary,eventId:l}):t,e.isValidElement(s)?s:(t&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ue.warn("fallback did not produce a valid ReactElement"),null)}return"function"===typeof r?r():r}}]),r}(e.Component);function pr(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Pn}],version:Pn},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=ar),void 0===e.release){var n=(0,P.R)();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(e.release=n.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var t=N(N({},e),{},{stackParser:on(e.stackParser||wt),integrations:Ye(e),transport:e.transport||(cn()?ir:or)});$e(dt,t),e.autoSessionTracking&&sr()}(e)}var dr,fr,hr,gr,mr=t(574),vr=["children","head","title","style"],yr=function(e){x(r,e);var t=E(r);function r(){var e;m(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).handleLoad=function(){e.setupFrameBaseStyle()},e}return y(r,[{key:"componentDidMount",value:function(){this.node.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmout",value:function(){this.node.removeEventListener("load",this.handleLoad)}},{key:"setupFrameBaseStyle",value:function(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,i=t.head,o=t.title,a=void 0===o?"":o,l=t.style,s=void 0===l?{}:l,c=p(t,vr);return(0,mr.jsxs)("iframe",N(N({srcDoc:"<!DOCTYPE html>"},c),{},{ref:function(n){return e.node=n},title:a,style:s,frameBorder:"0",children:[this.iframeHead&&(0,n.createPortal)(i,this.iframeHead),this.iframeRoot&&(0,n.createPortal)(r,this.iframeRoot)]}))}}]),r}(e.Component),br=["title","titleId"];function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xr.apply(this,arguments)}function wr(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function _r(n,t){var r=n.title,i=n.titleId,o=wr(n,br);return e.createElement("svg",xr({id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,dr||(dr=e.createElement("defs",null,e.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.8px;}"))),fr||(fr=e.createElement("circle",{className:"cls-1",cx:12,cy:9.75,r:5.25})),hr||(hr=e.createElement("path",{className:"cls-1",d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0"})),gr||(gr=e.createElement("circle",{className:"cls-1",cx:12,cy:12,r:11.25})))}var kr=e.forwardRef(_r),Sr=(t.p,"\n .gh-portal-avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n margin: 0 0 8px 0;\n border-radius: 999px;\n }\n\n .gh-portal-avatar img {\n position: absolute;\n display: block;\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n opacity: 1;\n max-width: unset;\n }\n");var Er,jr=function(e){var n=e.gravatar,t=function(e){var n=e.style,t=void 0===n?{}:n;return{avatarContainer:N({},t.avatarContainer||{}),gravatar:N({},t.avatarContainer||{}),userIcon:N({width:"34px",height:"34px",color:"#fff"},t.userIcon||{})}}({style:e.style});return(0,mr.jsxs)("figure",{className:"gh-portal-avatar",style:t.avatarContainer,children:[(0,mr.jsx)(kr,{style:t.userIcon}),n?(0,mr.jsx)("img",{style:t.gravatar,src:n,alt:""}):null]})},Cr=t(969).createContext({site:{},member:{},action:"",lastPage:"",brandColor:"",pageData:{},onAction:function(e,n){return{action:e,data:n}}}),Nr=["title","titleId"];function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Pr.apply(this,arguments)}function Or(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Tr(n,t){var r=n.title,i=n.titleId,o=Or(n,Nr);return e.createElement("svg",Pr({width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Er||(Er=e.createElement("path",{d:"M10.533 11.267c2.835 0 5.134-2.299 5.134-5.134C15.667 3.298 13.368 1 10.533 1 7.698 1 5.4 3.298 5.4 6.133s2.298 5.134 5.133 5.134zM1 23c0-2.529 1.004-4.953 2.792-6.741 1.788-1.788 4.213-2.792 6.741-2.792 2.529 0 4.954 1.004 6.741 2.792 1.788 1.788 2.793 4.212 2.793 6.74",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}var Ir,Dr=e.forwardRef(Tr),Rr=(t.p,["title","titleId"]);function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Lr.apply(this,arguments)}function Ur(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function zr(n,t){var r=n.title,i=n.titleId,o=Ur(n,Rr);return e.createElement("svg",Lr({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ir||(Ir=e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{stroke:"#FFF",strokeWidth:1.5,strokeLinecap:"round",d:"M12.5 2v20M2 12.5h20"}))))}var Mr,Fr,Ar=e.forwardRef(zr),Br=(t.p,["title","titleId"]);function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Hr.apply(this,arguments)}function Yr(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function $r(n,t){var r=n.title,i=n.titleId,o=Yr(n,Br);return e.createElement("svg",Hr({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Mr||(Mr=e.createElement("path",{d:"M23.5 6v14.25c0 .597-.237 1.169-.659 1.591-.422.422-.994.659-1.591.659s-1.169-.237-1.591-.659c-.422-.422-.659-.994-.659-1.591V3c0-.398-.158-.78-.44-1.06-.28-.282-.662-.44-1.06-.44h-15c-.398 0-.78.158-1.06.44C1.157 2.22 1 2.601 1 3v17.25c0 .597.237 1.169.659 1.591.422.422.994.659 1.591.659h18M4.75 15h10.5M4.75 18h6",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fr||(Fr=e.createElement("path",{d:"M14.5 5.25h-9c-.414 0-.75.336-.75.75v4.5c0 .414.336.75.75.75h9c.414 0 .75-.336.75-.75V6c0-.414-.336-.75-.75-.75z",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}var Gr,Wr,qr=e.forwardRef($r),Qr=(t.p,["title","titleId"]);function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Vr.apply(this,arguments)}function Kr(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Jr(n,t){var r=n.title,i=n.titleId,o=Kr(n,Qr);return e.createElement("svg",Vr({width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Gr||(Gr=e.createElement("path",{d:"M21.75 1.5H2.25c-.828 0-1.5.672-1.5 1.5v12c0 .828.672 1.5 1.5 1.5h19.5c.828 0 1.5-.672 1.5-1.5V3c0-.828-.672-1.5-1.5-1.5zM15.687 6.975L19.5 10.5M8.313 6.975L4.5 10.5",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Wr||(Wr=e.createElement("path",{d:"M22.88 2.014l-9.513 6.56C12.965 8.851 12.488 9 12 9s-.965-.149-1.367-.426L1.12 2.014",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}var Xr,Zr,ei=e.forwardRef(Jr),ni=(t.p,["title","titleId"]);function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ti.apply(this,arguments)}function ri(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ii(n,t){var r=n.title,i=n.titleId,o=ri(n,ni);return e.createElement("svg",ti({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Xr||(Xr=e.createElement("path",{d:"M17.903 12.016c-.332-1.665-1.491-3.032-3.031-3.654M11.037 8.4C9.252 9.163 8 10.935 8 13c0 .432.055.85.158 1.25M10.44 17.296c.748.447 1.624.704 2.56.704 1.71 0 3.22-.858 4.12-2.167M15.171 21.22c3.643-.96 6.329-4.276 6.329-8.22 0-1.084-.203-2.121-.573-3.075M18.611 6.615C17.114 5.3 15.151 4.5 13 4.5c-2.149 0-4.112.797-5.608 2.113M5.112 9.826c-.395.98-.612 2.052-.612 3.174 0 4.015 2.783 7.38 6.526 8.27",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"})),Zr||(Zr=e.createElement("path",{d:"M8.924 24.29c1.273.46 2.645.71 4.076.71 5.52 0 10.17-3.727 11.57-8.803M6.712 2.777C3.285 4.89 1 8.678 1 13c0 3.545 1.537 6.731 3.982 8.928M24.849 11.089C23.933 5.369 18.977 1 13 1c-.69 0-1.367.058-2.025.17",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round"})))}var oi=e.forwardRef(ii),ai=(t.p,'\n /* Colors\n /* ----------------------------------------------------- */\n :root {\n --black: #000;\n --grey0: #1d1d1d;\n --grey1: #333;\n --grey2: #3d3d3d;\n --grey3: #474747;\n --grey4: #515151;\n --grey5: #686868;\n --grey6: #7f7f7f;\n --grey7: #979797;\n --grey8: #aeaeae;\n --grey9: #c5c5c5;\n --grey10: #dcdcdc;\n --grey11: #e1e1e1;\n --grey12: #eaeaea;\n --grey13: #f9f9f9;\n --grey14: #fbfbfb;\n --white: #fff;\n --red: #f02525;\n --yellow: #FFDC15;\n --green: #7FC724;\n }\n\n /* Globals\n /* ----------------------------------------------------- */\n html {\n font-size: 62.5%;\n height: 100%;\n }\n\n body {\n margin: 0px;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.6rem;\n height: 100%;\n line-height: 1.6em;\n font-weight: 400;\n font-style: normal;\n color: var(--grey2);\n box-sizing: border-box;\n overflow: hidden;\n }\n\n button,\n button span {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n }\n\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n h1, h2, h3, h4, h5, h6, p {\n line-height: 1.15em;\n padding: 0;\n margin: 0;\n }\n\n h1 {\n font-size: 35px;\n font-weight: 700;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 32px;\n font-weight: 700;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -0.019em;\n }\n\n p {\n font-size: 15px;\n line-height: 1.5em;\n margin-bottom: 24px;\n }\n\n strong {\n font-weight: 600;\n }\n\n a,\n .gh-portal-link {\n cursor: pointer;\n }\n\n svg {\n box-sizing: content-box;\n }\n\n input,\n textarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.5rem;\n }\n\n textarea {\n padding: 10px;\n line-height: 1.5em;\n }\n\n @media (max-width: 1440px) {\n h1 {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 28px;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n }\n\n @media (max-width: 480px) {\n h1 {\n font-size: 30px;\n letter-spacing: -0.021em;\n }\n\n h2 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n\n h3 {\n font-size: 24px;\n letter-spacing: -0.019em;\n }\n }\n'),li=function(e){if(!e)return"";return new Date(e).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})};function si(){var e=c(window.location.hash.substr(1).split("?"),1)[0];e&&/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/.test(e)&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}function ci(e){var n=e.page,t=e.siteUrl||"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),r=function(e){var n=e.page,t={signin:"#/portal/signin",signup:"#/portal/signup"};return Object.keys(t).includes(n)?t[n]:t.default}({page:n});return"".concat(t).concat(r)}function ui(){return!(navigator&&navigator.cookieEnabled)}function pi(e){var n=e.member,t=void 0===n?{}:n;if(fi({member:t})){var r=(t.subscriptions||[]).find((function(e){return["active","trialing","unpaid","past_due"].includes(e.status)}));return null!==r&&void 0!==r&&r.price||null===r||void 0===r||!r.plan||(r.price=r.plan),r}return null}function di(e){var n=e.member,t=void 0===n?{}:n;if(!t)return!1;var r=pi({member:t});if(r){var i=r.price;return i&&0===i.amount}return!(r||!t.paid)}function fi(e){var n=e.member,t=void 0===n?{}:n;return t&&t.paid}function hi(e){var n,t,r,i=e.member;return void 0!==(null===i||void 0===i||null===(n=i.subscriptions)||void 0===n||null===(t=n[0])||void 0===t||null===(r=t.tier)||void 0===r?void 0:r.expiry_at)}function gi(e){var n,t,r,i=e.member;return null!==i&&void 0!==i&&null!==(n=i.subscriptions)&&void 0!==n&&null!==(t=n[0])&&void 0!==t&&null!==(r=t.tier)&&void 0!==r&&r.expiry_at?li(i.subscriptions[0].tier.expiry_at):""}function mi(e){var n,t,r=e.subscription;return r&&r.price?N(N({},r.price),{},{stripe_price_id:r.price.id,id:r.price.price_id,price:r.price.amount/100,name:r.price.nickname,tierId:null===(n=r.tier)||void 0===n?void 0:n.id,cadence:"month"===(null===(t=r.price)||void 0===t?void 0:t.interval)?"month":"year",currency:r.price.currency.toLowerCase(),currency_symbol:Vi(r.price.currency)}):null}function vi(e){return mi({subscription:pi({member:e.member})})}function yi(e){var n,t=pi({member:e.member});return(null===t||void 0===t||null===(n=t.tier)||void 0===n?void 0:n.name)||""}function bi(e){var n=e.plans,t=e.site;return!(n=n||$i({site:void 0===t?{}:t}))||0===n.length||1===n.length&&"free"===n[0].type}function xi(e){var n=e.site,t=void 0===n?{}:n,r=e.priceId,i=Hi({site:t});if("free"===r)return!i||0===i.length||i.find((function(e){return"free"===e.type}));if(i&&i.length>0&&"monthly"===r){var o=i.find((function(e){return"Monthly"===e.name})),a=i.find((function(e){return"month"===e.interval}));return o||a}if(i&&i.length>0&&"yearly"===r){var l=i.find((function(e){return"Yearly"===e.name})),s=i.find((function(e){return"year"===e.interval}));return l||s}return i&&i.length>0&&r?i.find((function(e){return e.id===r})):null}function wi(e){var n=e.site,t=void 0===n?{}:n,r=e.pageQuery;return 0===$i({site:t,pageQuery:void 0===r?"":r}).length||t&&"invite"===t.members_signup_access}function _i(e){return!!(e.site||{}).portal_products}function ki(e){var n=e.site;return(null===n||void 0===n?void 0:n.comments_enabled)&&"off"!==(null===n||void 0===n?void 0:n.comments_enabled)}function Si(e){var n,t,r,i=e.site;if(!i)return null;if(i.tiers&&(i.products=i.tiers),i.products=null===(n=i.products)||void 0===n?void 0:n.map((function(e){return N(N({},e),{},{monthlyPrice:e.monthly_price,yearlyPrice:e.yearly_price})})),i.is_stripe_configured=!!i.paid_members_enabled,i.members_signup_access="all",i.members_enabled||(i.members_signup_access="none"),i.members_invite_only&&(i.members_signup_access="invite"),i.allow_self_signup=!1,"all"!==i.members_signup_access&&(i.allow_self_signup=!1),i.paid_members_enabled&&(i.allow_self_signup=!0),i.portal_plans.includes("free")&&(i.allow_self_signup=!0),null!==(t=i.products)&&void 0!==t&&null!==(r=t[0])&&void 0!==r&&r.visibility){i.portal_products=i.products.filter((function(e){return"none"!==e.visibility&&"paid"===e.type})).map((function(e){return e.id}));var o,a,l=i.products.find((function(e){return"free"===e.type}));if(l)if(i.portal_plans=null===(o=i.portal_plans)||void 0===o?void 0:o.filter((function(e){return"free"!==e})),"public"===(null===l||void 0===l?void 0:l.visibility))null===(a=i.portal_plans)||void 0===a||a.push("free")}return i}function Ei(e){var n=e.site||{},t=n.portal_products,r=n.products,i=void 0===r?[]:r,o=n.portal_plans,a=void 0===o?[]:o;return a.includes("monthly")||a.includes("yearly")?i.filter((function(e){return!!e})).filter((function(e){return!(!e.monthlyPrice||!e.yearlyPrice)})).filter((function(e){return!!(Object.keys(e.monthlyPrice).length>0&&Object.keys(e.yearlyPrice).length>0)})).filter((function(e){return!(t&&i.length>1)||t.includes(e.id)})).sort((function(e,n){var t,r;return(null===e||void 0===e||null===(t=e.monthlyPrice)||void 0===t?void 0:t.amount)-(null===n||void 0===n||null===(r=n.monthlyPrice)||void 0===r?void 0:r.amount)})).map((function(e){return e.monthlyPrice=N(N({},e.monthlyPrice),{},{currency_symbol:Vi(e.monthlyPrice.currency)}),e.yearlyPrice=N(N({},e.yearlyPrice),{},{currency_symbol:Vi(e.yearlyPrice.currency)}),e})):[]}function ji(e){var n=(e.site||{}).products;return(void 0===n?[]:n).find((function(e){return"free"===e.type}))}function Ci(e){var n=e.site||{},t=n.products,r=void 0===t?[]:t,i=n.portal_plans,o=void 0===i?[]:i;return o.includes("monthly")||o.includes("yearly")?r.filter((function(e){return!!e})).filter((function(e){return!(!e.monthlyPrice||!e.yearlyPrice)})).filter((function(e){return!!(Object.keys(e.monthlyPrice).length>0&&Object.keys(e.yearlyPrice).length>0)})).sort((function(e,n){var t,r;return(null===e||void 0===e||null===(t=e.monthlyPrice)||void 0===t?void 0:t.amount)-(null===n||void 0===n||null===(r=n.monthlyPrice)||void 0===r?void 0:r.amount)})).map((function(e){return e.monthlyPrice=N(N({},e.monthlyPrice),{},{currency_symbol:Vi(e.monthlyPrice.currency)}),e.yearlyPrice=N(N({},e.yearlyPrice),{},{currency_symbol:Vi(e.yearlyPrice.currency)}),e})):[]}function Ni(e){var n=e.site,t=e.pageQuery,r=Ei({site:n});return"free"===t&&Ri({site:n})?[]:(Ri({site:n})&&r.unshift({id:"free"}),r)}function Pi(e){return Ni({site:e.site}).some((function(e){return!(null===e||void 0===e||!e.trial_days)}))}function Oi(e){var n=ji({site:e.site});return(null===n||void 0===n?void 0:n.benefits)||[]}function Ti(e){return zi({site:e.site})?"Free membership":"Free"}function Ii(e){var n=ji({site:e.site});return null===n||void 0===n?void 0:n.description}function Di(e){var n=e.site,t=e.productId;return Ci({site:n}).find((function(e){return e.id===t}))}function Ri(e){var n=e.site||{},t=n.allow_self_signup,r=n.portal_plans;return t&&r.includes("free")}function Li(e){var n=(e.site||{}).newsletters,t=void 0===n?[]:n;return null===t||void 0===t||t.sort((function(e,n){return e.sort_order-n.sort_order})),t}function Ui(e){var n=(e.site||{}).newsletters;return(null===n||void 0===n?void 0:n.length)>1}function zi(e){var n=e.site;return 1===Ni({site:n}).length&&Ri({site:n})}function Mi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.sub;return!(null===n||void 0===n||!n.trial_end_at||Fi(new Date(null===n||void 0===n?void 0:n.trial_end_at)))}function Fi(e){var n=new Date;return n.setHours(0,0,0,0),e<n}function Ai(e){var n=e.site,t=e.priceId;return"free"===t?ji({site:n}):Ci({site:n}).find((function(e){var n,r;return(null===e||void 0===e||null===(n=e.monthlyPrice)||void 0===n?void 0:n.id)===t||(null===e||void 0===e||null===(r=e.yearlyPrice)||void 0===r?void 0:r.id)===t}))}function Bi(e){var n,t=e.site,r=e.priceId;if("free"===r)return ji({site:t});var i=Ci({site:t}).find((function(e){var n,t;return(null===e||void 0===e||null===(n=e.monthlyPrice)||void 0===n?void 0:n.id)===r||(null===e||void 0===e||null===(t=e.yearlyPrice)||void 0===t?void 0:t.id)===r})),o="month";return(null===i||void 0===i||null===(n=i.yearlyPrice)||void 0===n?void 0:n.id)===r&&(o="year"),{tierId:null===i||void 0===i?void 0:i.id,cadence:o}}function Hi(e){var n=e.site,t=e.products,r=void 0===t?null:t,i=n||{},o=i.portal_plans,a=void 0===o?[]:o;if(!i.is_stripe_configured)return[];var l=function(e){var n=e.site,t=void 0===n?null:n,r=e.products,i=void 0===r?null:r;return t||i?(i||Ei({site:t})).reduce((function(e,n){return n.monthlyPrice&&n.yearlyPrice&&(e.push(n.monthlyPrice),e.push(n.yearlyPrice)),e}),[]):[]}({site:n,products:r});return l.filter((function(e){return!(!e||!e.id)})).map((function(e){return N(N({},e),{},{price_id:e.id,price:e.amount/100,name:e.nickname,currency_symbol:Vi(e.currency)})})).filter((function(e){return 0!==e.amount&&"recurring"===e.type})).filter((function(e){return"month"===e.interval?a.includes("monthly"):"year"===e.interval&&a.includes("yearly")})).sort((function(e,n){return e.amount-n.amount})).sort((function(e,n){return e.currency&&n.currency?e.currency.localeCompare(n.currency,void 0,{ignorePunctuation:!0}):0}))}function Yi(e){var n=Hi({site:e.site}),t={currency:"usd",currency_symbol:"$"};return(null===n||void 0===n?void 0:n.length)>0&&(t.currency=n[0].currency,t.currency_symbol=n[0].currency_symbol),t}function $i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.site,t=void 0===n?{}:n,r=e.pageQuery,i=void 0===r?"":r,o=t||{},a=o.allow_self_signup,l=o.portal_plans,s=[];if(a&&l.includes("free")){var c=Yi({site:t});s.push(N({id:"free",type:"free",price:0,amount:0,name:Ti({site:t})},c))}var u="free"===i&&Ri({site:t});if(!u){var p=Hi({site:t});p.forEach((function(e){s.push(e)}))}return s}var Gi=function(e){var n=e.member;return n?n.email:""},Wi=function(e){var n=e.member;return n?n.name:""},qi=function(e){var n,t=e.site,r=(t||{}).members_support_address;if((null===r||void 0===r?void 0:r.indexOf("@"))<0){var i=Qi({site:t}),o=(null===i||void 0===i?void 0:i.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return"".concat(r,"@").concat(o)}if((null===r||void 0===r||null===(n=r.split("@"))||void 0===n?void 0:n.length)>1){var a=c(r.split("@"),2),l=a[0],s=a[1],u=(null===s||void 0===s?void 0:s.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return"".concat(l,"@").concat(u)}return r||""},Qi=function(e){var n=e.site;try{return new URL(n.url).origin.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}catch(t){return n.url.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}},Vi=function(e){return Intl.NumberFormat("en",{currency:e,style:"currency"}).format(0).replace(/[\d\s.]/g,"")},Ki=function(e){return isNaN(e)?0:e/100},Ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Vi(e.currency),t=Ki(e.amount);return"".concat(n).concat(t,"/").concat(e.interval)},Xi=function(e){return void 0===e||null===e?"":e.toLocaleString()},Zi=function(e){var n=e.type,t=e.status,r=e.autoHide,i=e.duration,o=void 0===i?2600:i,a=e.closeable,l=e.state,s=e.message,c=e.meta,u=void 0===c?{}:c,p=0;return l&&l.popupNotification&&(p=(l.popupNotification.count||0)+1),{type:n,status:t,autoHide:r,closeable:a,duration:o,meta:u,message:s,count:p}};function eo(e,n){return(null===e||void 0===e?void 0:e.toLowerCase())===(null===n||void 0===n?void 0:n.toLowerCase())}function no(e){var n=e.site,t=e.pageQuery,r=/^(?:(\S+?))?\/monthly$/,i=/^(?:(\S+?))?\/yearly$/;if(r.test(t||"")){var o,a=Di({site:n,productId:c(t.match(r),2)[1]});return null===a||void 0===a||null===(o=a.monthlyPrice)||void 0===o?void 0:o.id}if(i.test(t||"")){var l,s=Di({site:n,productId:c(t.match(i),2)[1]});return null===s||void 0===s||null===(l=s.yearlyPrice)||void 0===l?void 0:l.id}return null}var to=function(e){var n=e.offer;return"active"===(null===n||void 0===n?void 0:n.status)};var ro=function(e){var n=e.tiers,t=0;return n.map((function(e){var n=function(e){var n=e.tier,t=e.priceId;return null!==n&&void 0!==n&&n.monthly_price?{id:"price-".concat(t),active:!0,type:"recurring",nickname:"Monthly",currency:n.currency,amount:n.monthly_price,interval:"month"}:null}({tier:e,priceId:t}),r=function(e){var n=e.tier,t=e.priceId;return null!==n&&void 0!==n&&n.yearly_price?{id:"price-".concat(t),active:!0,type:"recurring",nickname:"Yearly",currency:n.currency,amount:n.yearly_price,interval:"year"}:null}({tier:e,priceId:t+=1});t+=1;var i=function(e){var n,t=e.tier;return null===t||void 0===t||null===(n=t.benefits)||void 0===n?void 0:n.map((function(e){return{name:e}}))}({tier:e});return N(N({},e),{},{benefits:i,monthly_price:n,yearly_price:r})}))};function io(){try{var e=localStorage.getItem("ghost-history");if(e){var n=JSON.parse(e);if(Array.isArray(n))return n}}catch(t){console.warn("[Portal] Failed to load member URL history:",t)}}var oo=function(){return"/portal/preview"===c(window.location.hash.substr(1).split("?"),1)[0]},ao=function(){return"/portal/preview/offer"===c(window.location.hash.substr(1).split("?"),1)[0]},lo={preview:function(){return oo()||ao()},offerPreview:ao,dev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.customSiteUrl;return!1},test:function(){return!1}},so=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.some((function(e){var t=lo[e];return!(!t||!t(n))}))},co=t(969),uo={"icon-1":Dr,"icon-2":Ar,"icon-3":qr,"icon-4":ei,"icon-5":oi},po=function(e){e.brandColor;var n=N(N({},e.hasText?{}:{width:"105px"}),so(["preview"])?{opacity:1}:{});return{frame:N({zIndex:"3999998",position:"fixed",bottom:"0",right:"0",width:"500px",maxWidth:"500px",height:"98px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden"},n),userIcon:{width:"34px",height:"34px",color:"#fff"},buttonIcon:{width:"24px",height:"24px",color:"#fff"},closeIcon:{width:"20px",height:"20px",color:"#fff"}}},fo=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={},r.container=co.createRef(),r.height=null,r.width=null,r}return y(t,[{key:"updateHeight",value:function(e){this.props.updateHeight&&this.props.updateHeight(e)}},{key:"updateWidth",value:function(e){this.props.updateWidth&&this.props.updateWidth(e)}},{key:"componentDidMount",value:function(){this.container&&(this.height=this.container.current&&this.container.current.offsetHeight,this.width=this.container.current&&this.container.current.offsetWidth,this.updateHeight(this.height),this.updateWidth(this.width))}},{key:"componentDidUpdate",value:function(){if(this.container){var e=this.container.current&&this.container.current.offsetHeight,n=this.container.current&&this.container.current.offsetWidth;e!==this.height&&(this.height=e,this.updateHeight(this.height)),n!==this.width&&(this.width=n,this.updateWidth(this.width))}}},{key:"renderTriggerIcon",value:function(){var e=this.context.site||{},n=e.portal_button_icon,t=void 0===n?"":n,r=e.portal_button_style,i=void 0===r?"":r,o=po({brandColor:this.context.brandColor}),a=this.context.member&&this.context.member.avatar_image;if(!i.includes("icon")&&!this.context.member)return null;if(a)return(0,mr.jsx)(jr,{gravatar:a});if(this.context.member)return(0,mr.jsx)(kr,{style:o.userIcon});if(Object.keys(uo).includes(t)){var l=uo[t];return(0,mr.jsx)(l,{style:o.buttonIcon})}return t?(0,mr.jsx)("img",{style:{width:"26px",height:"26px"},src:t,alt:""}):(this.hasText()&&(o.userIcon.width="26px",o.userIcon.height="26px"),(0,mr.jsx)(kr,{style:o.userIcon}))}},{key:"hasText",value:function(){var e=this.context.site,n=e.portal_button_signup_text,t=e.portal_button_style;return["icon-and-text","text-only"].includes(t)&&!this.context.member&&n}},{key:"renderText",value:function(){var e=this.context.site.portal_button_signup_text;return this.hasText()?(0,mr.jsxs)("span",{className:"gh-portal-triggerbtn-label",children:[" ",e," "]}):null}},{key:"onToggle",value:function(){var e=this.context,n=e.showPopup,t=e.member,r=e.site;if(n)this.context.onAction("closePopup");else{var i=wi({site:r})?"signin":"signup",o=t?"accountHome":i;this.context.onAction("openPopup",{page:o})}}},{key:"render",value:function(){var e=this,n=this.hasText(),t=this.context.member?"halo":"";return n?(0,mr.jsx)("div",{className:"gh-portal-triggerbtn-wrapper",ref:this.container,children:(0,mr.jsxs)("div",{className:"gh-portal-triggerbtn-container with-label",onClick:function(n){return e.onToggle(n)},children:[this.renderTriggerIcon(),n?this.renderText():""]})}):(0,mr.jsx)("div",{className:"gh-portal-triggerbtn-wrapper",children:(0,mr.jsx)("div",{className:"gh-portal-triggerbtn-container "+t,onClick:function(n){return e.onToggle(n)},children:this.renderTriggerIcon()})})}}]),t}(co.Component);fo.contextType=Cr;var ho=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={width:null},r}return y(t,[{key:"onWidthChange",value:function(e){this.setState({width:e})}},{key:"hasText",value:function(){var e=this.context.site,n=e.portal_button_signup_text,t=e.portal_button_style;return["icon-and-text","text-only"].includes(t)&&!this.context.member&&n}},{key:"renderFrameStyles",value:function(){var e="\n :root {\n --brandcolor: ".concat(this.context.brandColor,"\n }\n ")+'\n /* Colors\n /* ----------------------------------------------------- */\n :root {\n --black: #000;\n --grey0: #1d1d1d;\n --grey1: #333;\n --grey2: #3d3d3d;\n --grey3: #474747;\n --grey4: #515151;\n --grey5: #686868;\n --grey6: #7f7f7f;\n --grey7: #979797;\n --grey8: #aeaeae;\n --grey9: #c5c5c5;\n --grey10: #dcdcdc;\n --grey11: #e1e1e1;\n --grey12: #eaeaea;\n --grey13: #f9f9f9;\n --grey14: #fbfbfb;\n --white: #fff;\n --red: #f02525;\n --yellow: #FFDC15;\n --green: #7FC724;\n }\n\n /* Globals\n /* ----------------------------------------------------- */\n html {\n font-size: 62.5%;\n height: 100%;\n }\n\n body {\n margin: 0px;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.6rem;\n height: 100%;\n line-height: 1.6em;\n font-weight: 400;\n font-style: normal;\n color: var(--grey2);\n box-sizing: border-box;\n overflow: hidden;\n }\n\n button,\n button span {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n }\n\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n h1, h2, h3, h4, h5, h6, p {\n line-height: 1.15em;\n padding: 0;\n margin: 0;\n }\n\n h1 {\n font-size: 35px;\n font-weight: 700;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 32px;\n font-weight: 700;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -0.019em;\n }\n\n p {\n font-size: 15px;\n line-height: 1.5em;\n margin-bottom: 24px;\n }\n\n strong {\n font-weight: 600;\n }\n\n a,\n .gh-portal-link {\n cursor: pointer;\n }\n\n svg {\n box-sizing: content-box;\n }\n\n input,\n textarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.5rem;\n }\n\n textarea {\n padding: 10px;\n line-height: 1.5em;\n }\n\n @media (max-width: 1440px) {\n h1 {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 28px;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n }\n\n @media (max-width: 480px) {\n h1 {\n font-size: 30px;\n letter-spacing: -0.021em;\n }\n\n h2 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n\n h3 {\n font-size: 24px;\n letter-spacing: -0.019em;\n }\n }\n\n .gh-portal-triggerbtn-wrapper {\n display: inline-flex;\n align-items: flex-start;\n justify-content: flex-end;\n height: 100%;\n opacity: 1;\n transition: transform 0.16s linear 0s; opacity 0.08s linear 0s;\n user-select: none;\n line-height: 1;\n padding: 10px 28px 0 17px;\n }\n \n .gh-portal-triggerbtn-wrapper span {\n margin-bottom: 1px;\n }\n \n .gh-portal-triggerbtn-container {\n position: relative;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--brandcolor);\n height: 60px;\n min-width: 60px;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 8px 16px -2px;\n border-radius: 999px;\n transition: opacity 0.3s ease;\n }\n\n .gh-portal-triggerbtn-container:before {\n position: absolute;\n content: "";\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 999px;\n background: rgba(255, 255, 255, 0);\n transition: background 0.3s ease;\n }\n\n .gh-portal-triggerbtn-container:hover:before {\n background: rgba(255, 255, 255, 0.08);\n }\n\n .gh-portal-triggerbtn-container.halo:before {\n top: -4px;\n right: -4px;\n bottom: -4px;\n left: -4px;\n border: 4px solid rgba(255, 255, 255, 0.15);\n }\n\n .gh-portal-triggerbtn-container.with-label {\n padding: 0 12px 0 16px;\n }\n\n .gh-portal-triggerbtn-label {\n padding: 8px;\n color: rgb(255, 255, 255);\n display: block;\n white-space: nowrap;\n max-width: 380px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .gh-portal-avatar {\n margin-bottom: 0px !important;\n width: 60px;\n height: 60px;\n }\n\n .gh-portal-avatar {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n margin: 0 0 8px 0;\n border-radius: 999px;\n }\n\n .gh-portal-avatar img {\n position: absolute;\n display: block;\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n width: calc(100% + 4px);\n height: calc(100% + 4px);\n opacity: 1;\n max-width: unset;\n }\n';return(0,mr.jsx)("style",{dangerouslySetInnerHTML:{__html:e}})}},{key:"render",value:function(){var e=this,n=this.context.site.portal_button,t=this.context.showPopup;if(!n||so(["offerPreview"]))return null;var r=this.hasText(),i=N({},po({brandColor:this.context.brandColor,hasText:r}).frame);if(this.state.width){var o=this.state.width+2;i.width="".concat(o,"px")}return(0,mr.jsx)(yr,{className:"gh-portal-triggerbtn-iframe",style:i,title:"portal-trigger",head:this.renderFrameStyles(),children:(0,mr.jsx)(fo,{isPopupOpen:t,updateWidth:function(n){return e.onWidthChange(n)}})})}}]),t}(co.Component);ho.contextType=Cr;var go,mo,vo=["title","titleId"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},yo.apply(this,arguments)}function bo(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function xo(n,t){var r=n.title,i=n.titleId,o=bo(n,vo);return e.createElement("svg",yo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,go||(go=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px !important;}"))),mo||(mo=e.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})))}var wo,_o,ko=e.forwardRef(xo),So=(t.p,["title","titleId"]);function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Eo.apply(this,arguments)}function jo(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Co(n,t){var r=n.title,i=n.titleId,o=jo(n,So);return e.createElement("svg",Eo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,wo||(wo=e.createElement("defs",null,e.createElement("style",null,".checkmark-icon-fill{fill:currentColor;}"))),_o||(_o=e.createElement("path",{className:"checkmark-icon-fill",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})))}var No,Po,Oo=e.forwardRef(Co),To=(t.p,["title","titleId"]);function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Io.apply(this,arguments)}function Do(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Ro(n,t){var r=n.title,i=n.titleId,o=Do(n,To);return e.createElement("svg",Io({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,No||(No=e.createElement("defs",null,e.createElement("style",null,".warning-icon-fill{fill:currentColor;}"))),Po||(Po=e.createElement("path",{className:"warning-icon-fill",d:"M23.25,23.235a.75.75,0,0,0,.661-1.105l-11.25-21a.782.782,0,0,0-1.322,0l-11.25,21A.75.75,0,0,0,.75,23.235ZM12,20.485a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,20.485Zm0-12.25a1,1,0,0,1,1,1V14.7a1,1,0,0,1-2,0V9.235A1,1,0,0,1,12,8.235Z"})))}var Lo=e.forwardRef(Ro),Uo=(t.p,function(e){e.qsParams;var n=e.action,t=e.status;if(t&&["true","false"].includes(t)){var r=JSON.parse(t);return{type:n,status:r?"success":"error",duration:3e3,autoHide:!!r}}return{}}),zo=function(e){var n=e.status,t=e.billingOnly;return!t&&["success"].includes(n)?{type:"stripe:checkout",status:["success"].includes(n)?"success":"warning",duration:3e3,autoHide:!0}:t&&["billing-update-success","billing-update-cancel"].includes(n)?{type:"stripe:billing-update",status:"billing-update-success"===n?"success":"warning",duration:3e3,autoHide:!0,closeable:!0}:void 0},Mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=window.location.search||"",t=new URLSearchParams(n);e.forEach((function(e){t.delete(e)}));var r=t.toString()?"?".concat(t):"";window.history.replaceState({},"","".concat(window.location.pathname).concat(r))};function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.billingOnly,t=void 0!==n&&n,r=window.location.search;if(!r)return null;var i=new URLSearchParams(r),o=i.get("action"),a=i.get("success"),l=i.get("stripe"),s=null;return l?zo({qsParams:i,status:l,billingOnly:t}):o&&a&&!t?Uo({qsParams:i,action:o,status:a}):s}var Ao=t(969),Bo=function(e){var n=e.type,t=e.status,r=e.context,i=ci({page:"signin",siteUrl:r.site.url}),o=ci({page:"signup",siteUrl:r.site.url});if("signin"===n&&"success"===t&&r.member){var a=r.member.firstname||"";return(0,mr.jsxs)("p",{children:["Welcome back",a?", "+a:"","!",(0,mr.jsx)("br",{}),"You've successfully signed in."]})}return"signin"===n&&"error"===t?(0,mr.jsxs)("p",{children:["Could not sign in. Login link expired. ",(0,mr.jsx)("a",{href:i,target:"_parent",children:"Click here to retry"})]}):"signup"===n&&"success"===t||"signup-paid"===n&&"success"===t?(0,mr.jsxs)("p",{children:["You've successfully subscribed to ",(0,mr.jsx)("br",{}),(0,mr.jsx)("strong",{children:r.site.title})]}):"updateEmail"===n&&"success"===t?(0,mr.jsx)("p",{children:"Success! Your email is updated."}):"updateEmail"===n&&"error"===t?(0,mr.jsx)("p",{children:"Could not update email! Invalid link."}):"signup"===n&&"error"===t||"signup-paid"===n&&"error"===t?(0,mr.jsxs)("p",{children:["Signup error: Invalid link ",(0,mr.jsx)("br",{}),(0,mr.jsx)("a",{href:o,target:"_parent",children:"Click here to retry"})]}):"stripe:checkout"===n&&"success"===t?r.member?(0,mr.jsx)("p",{children:"Success! Your account is fully activated, you now have access to all content."}):(0,mr.jsx)("p",{children:"Success! Check your email for magic link to sign-in."}):"stripe:checkout"===n&&"warning"===t?r.member?(0,mr.jsx)("p",{children:"Plan upgrade was cancelled."}):(0,mr.jsx)("p",{children:"Plan checkout was cancelled."}):(0,mr.jsx)("p",{children:"success"===t?"Success":"Error"})},Ho=function(e){x(t,e);var n=E(t);function t(){var e;return m(this,t),(e=n.call(this)).state={className:""},e}return y(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"onNotificationClose",value:function(){this.props.onHideNotification()}},{key:"componentDidUpdate",value:function(){var e=this.context.showPopup;!this.state.className&&e&&this.setState({className:"slideout"})}},{key:"componentDidMount",value:function(){var e=this,n=this.props,t=n.autoHide,r=n.duration,i=void 0===r?2400:r;this.context.showPopup?this.setState({className:"slideout"}):t&&(this.timeoutId=setTimeout((function(){e.setState({className:"slideout"})}),i))}},{key:"onAnimationEnd",value:function(e){"notification-slideout"!==e.animationName&&"notification-slideout-mobile"!==e.animationName||this.props.onHideNotification(e)}},{key:"render",value:function(){var e=this,n=this.props,t=n.type,r=n.status,i=this.state.className,o=void 0===i?"":i,a=r?" ".concat(r):" neutral",l=o?" ".concat(o):"";return(0,mr.jsx)("div",{className:"gh-portal-notification-wrapper",children:(0,mr.jsxs)("div",{className:"gh-portal-notification".concat(a).concat(l),onAnimationEnd:function(n){return e.onAnimationEnd(n)},children:["error"===r?(0,mr.jsx)(Lo,{className:"gh-portal-notification-icon error",alt:""}):(0,mr.jsx)(Oo,{className:"gh-portal-notification-icon success",alt:""}),(0,mr.jsx)(Bo,{type:t,status:r,context:this.context}),(0,mr.jsx)(ko,{className:"gh-portal-notification-closeicon",alt:"Close",onClick:function(n){return e.onNotificationClose(n)}})]})})}}]),t}(Ao.Component);Ho.contextType=Cr;var Yo,$o,Go=function(e){x(t,e);var n=E(t);function t(){var e;m(this,t),e=n.call(this);var r=Fo()||{},i=r.type,o=r.status,a=r.autoHide,l=r.duration;return e.state={active:!0,type:i,status:o,autoHide:a,duration:l,className:""},e}return y(t,[{key:"onHideNotification",value:function(){var e=this.state.type,n=[];["signin","signup"].includes(e)?n.push("action","success"):["stripe:checkout"].includes(e)&&n.push("stripe"),Mo(n),this.context.onAction("refreshMemberData"),this.setState({active:!1})}},{key:"renderFrameStyles",value:function(){var e="\n :root {\n --brandcolor: ".concat(this.context.brandColor,"\n }\n ")+'\n /* Colors\n /* ----------------------------------------------------- */\n :root {\n --black: #000;\n --grey0: #1d1d1d;\n --grey1: #333;\n --grey2: #3d3d3d;\n --grey3: #474747;\n --grey4: #515151;\n --grey5: #686868;\n --grey6: #7f7f7f;\n --grey7: #979797;\n --grey8: #aeaeae;\n --grey9: #c5c5c5;\n --grey10: #dcdcdc;\n --grey11: #e1e1e1;\n --grey12: #eaeaea;\n --grey13: #f9f9f9;\n --grey14: #fbfbfb;\n --white: #fff;\n --red: #f02525;\n --yellow: #FFDC15;\n --green: #7FC724;\n }\n\n /* Globals\n /* ----------------------------------------------------- */\n html {\n font-size: 62.5%;\n height: 100%;\n }\n\n body {\n margin: 0px;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.6rem;\n height: 100%;\n line-height: 1.6em;\n font-weight: 400;\n font-style: normal;\n color: var(--grey2);\n box-sizing: border-box;\n overflow: hidden;\n }\n\n button,\n button span {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n }\n\n *, ::after, ::before {\n box-sizing: border-box;\n }\n\n h1, h2, h3, h4, h5, h6, p {\n line-height: 1.15em;\n padding: 0;\n margin: 0;\n }\n\n h1 {\n font-size: 35px;\n font-weight: 700;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 32px;\n font-weight: 700;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -0.019em;\n }\n\n p {\n font-size: 15px;\n line-height: 1.5em;\n margin-bottom: 24px;\n }\n\n strong {\n font-weight: 600;\n }\n\n a,\n .gh-portal-link {\n cursor: pointer;\n }\n\n svg {\n box-sizing: content-box;\n }\n\n input,\n textarea {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n font-size: 1.5rem;\n }\n\n textarea {\n padding: 10px;\n line-height: 1.5em;\n }\n\n @media (max-width: 1440px) {\n h1 {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n\n h2 {\n font-size: 28px;\n letter-spacing: -0.021em;\n }\n\n h3 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n }\n\n @media (max-width: 480px) {\n h1 {\n font-size: 30px;\n letter-spacing: -0.021em;\n }\n\n h2 {\n font-size: 26px;\n letter-spacing: -0.02em;\n }\n\n h3 {\n font-size: 24px;\n letter-spacing: -0.019em;\n }\n }\n\n .gh-portal-notification-wrapper {\n position: relative;\n overflow: hidden;\n height: 100%;\n width: 100%;\n }\n\n .gh-portal-notification {\n position: absolute;\n display: flex;\n align-items: center;\n top: 12px;\n right: 12px;\n width: 100%;\n padding: 14px 44px 18px 20px;\n max-width: 380px;\n min-height: 66px;\n font-size: 1.3rem;\n letter-spacing: 0.2px;\n background: rgba(33,33,33,0.95);\n backdrop-filter: blur(8px);\n color: var(--white);\n border-radius: 7px;\n box-shadow: 0 3.2px 3.6px rgba(0, 0, 0, 0.024), 0 8.8px 10px -5px rgba(0, 0, 0, 0.08);\n animation: notification-slidein 0.55s cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n .gh-portal-notification.slideout {\n animation: notification-slideout 0.4s cubic-bezier(0.550, 0.055, 0.675, 0.190);\n }\n\n .gh-portal-notification.hide {\n display: none;\n }\n\n .gh-portal-notification p {\n flex-grow: 1;\n font-size: 1.4rem;\n line-height: 1.5em;\n text-align: left;\n margin: 0;\n padding: 0 0 0 40px;\n color: var(--grey13);\n }\n\n .gh-portal-notification p strong {\n color: var(--white);\n }\n\n .gh-portal-notification a {\n color: var(--white);\n text-decoration: underline;\n transition: all 0.2s ease-in-out;\n outline: none;\n }\n\n .gh-portal-notification a:hover {\n opacity: 0.8;\n }\n\n .gh-portal-notification-icon {\n position: absolute;\n top: calc(50% - 14px);\n left: 17px;\n width: 28px;\n height: 28px;\n }\n\n .gh-portal-notification-icon.success {\n color: var(--green);\n }\n\n .gh-portal-notification-icon.error {\n color: #FF2828;\n }\n\n .gh-portal-notification-closeicon {\n position: absolute;\n top: 5px;\n bottom: 0;\n right: 5px;\n color: var(--white);\n cursor: pointer;\n width: 12px;\n height: 12px;\n padding: 10px;\n transition: all 0.2s ease-in-out forwards;\n opacity: 0.8;\n }\n\n .gh-portal-notification-closeicon:hover {\n opacity: 1.0;\n } \n\n @keyframes notification-slidein {\n 0% { transform: translateX(380px); }\n 60% { transform: translateX(-6px); }\n 100% { transform: translateX(0); }\n }\n\n @keyframes notification-slideout {\n 0% { transform: translateX(0); }\n 30% { transform: translateX(-10px); }\n 100% { transform: translateX(380px); }\n }\n\n @keyframes notification-slidein-mobile {\n 0% { transform: translateY(-150px); }\n 50% { transform: translateY(6px); }\n 100% { transform: translateY(0); }\n }\n\n @keyframes notification-slideout-mobile {\n 0% { transform: translateY(0); }\n 35% { transform: translateY(6px); }\n 100% { transform: translateY(-150px); }\n }\n\n @media (max-width: 414px) {\n .gh-portal-notification {\n left: 12px;\n max-width: calc(100% - 24px);\n animation-name: notification-slidein-mobile;\n }\n\n .gh-portal-notification.slideout {\n animation-duration: 0.55s;\n animation-name: notification-slideout-mobile;\n }\n }\n';return(0,mr.jsx)("style",{dangerouslySetInnerHTML:{__html:e}})}},{key:"render",value:function(){var e=this,n=N({},(this.context.brandColor,{frame:{zIndex:"4000000",position:"fixed",top:"0",right:"0",maxWidth:"415px",width:"100%",height:"120px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden"}}).frame);if(!this.state.active)return null;var t=this.state,r=t.type,i=t.status,o=t.autoHide,a=t.duration;return r&&i?(0,mr.jsx)(yr,{style:n,title:"portal-notification",head:this.renderFrameStyles(),className:"gh-portal-notification-iframe",children:(0,mr.jsx)(Ho,{type:r,status:i,autoHide:o,duration:a,onHideNotification:function(n){return e.onHideNotification(n)}})}):null}}]),t}(Ao.Component);Go.contextType=Cr;var Wo=["title","titleId"];function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},qo.apply(this,arguments)}function Qo(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Vo(n,t){var r=n.title,i=n.titleId,o=Qo(n,Wo);return e.createElement("svg",qo({id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40",enableBackground:"new 0 0 40 40",xmlSpace:"preserve",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Yo||(Yo=e.createElement("path",{opacity:.2,fill:"#000",d:"M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946 s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634 c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"})),$o||($o=e.createElement("path",{fill:"#000",d:"M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0 C22.32,8.481,24.301,9.057,26.013,10.047z"},e.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 20 20",to:"360 20 20",dur:"0.5s",repeatCount:"indefinite"}))))}var Ko=e.forwardRef(Vo);t.p;var Jo,Xo,Zo=function(e){var n=e.label,t=(e.type,e.onClick),r=e.disabled,i=void 0!==r&&r,o=e.retry,a=void 0!==o&&o,l=e.brandColor,s=e.isRunning,c=e.isPrimary,u=void 0===c||c,p=e.isDestructive,d=void 0!==p&&p,f=e.classes,h=void 0===f?"":f,g=e.style,m=void 0===g?{}:g,v=e.tabindex,y=void 0===v?void 0:v,b=function(e){var n=e.brandColor,t=(e.retry,e.disabled),r=e.style,i=void 0===r?{}:r,o=e.isPrimary,a=n||"#3eb0ef",l="1.0",s="auto";return t&&(l="0.5",s="none"),{button:N(N(N({},o?{color:"#fff"}:{}),o?{backgroundColor:a}:{}),{},{opacity:l,pointerEvents:s},i||{})}}({disabled:i,retry:a,brandColor:l,style:m,isPrimary:u}),x="gh-portal-btn";u&&(x+=" gh-portal-btn-main gh-portal-btn-primary"),d&&(x+=" gh-portal-btn-destructive"),h&&(x+=" "+h),ui()&&(i=!0);var w=u?"gh-portal-loadingicon":"gh-portal-loadingicon dark";return(0,mr.jsx)("button",{className:x,style:b.button,onClick:function(e){return t(e)},disabled:i,type:"submit",tabIndex:y,children:s?(0,mr.jsx)(Ko,{className:w}):n})},ea=["title","titleId"];function na(){return na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},na.apply(this,arguments)}function ta(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ra(n,t){var r=n.title,i=n.titleId,o=ta(n,ea);return e.createElement("svg",na({id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Jo||(Jo=e.createElement("defs",null,e.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;fill-rule:evenodd;}"))),Xo||(Xo=e.createElement("path",{className:"cls-1",d:"M16.25,23.25,5.53,12.53a.749.749,0,0,1,0-1.06L16.25.75"})))}var ia=e.forwardRef(ra);t.p;var oa=function(e){var n=e.label,t=void 0===n?"Back":n,r=(e.brandColor,e.hidden),i=void 0!==r&&r,o=e.onClick;return i?null:(0,mr.jsxs)("button",{className:"gh-portal-btn gh-portal-btn-back",onClick:function(e){return o(e)},children:[(0,mr.jsx)(ia,{})," ",t]})};var aa,la,sa,ca=function(n){var t=n.id,r=n.label,i=void 0===r?"":r,o=n.onToggle,a=n.checked,l=void 0!==a&&a,s=(0,e.useContext)(Cr).action,u=c((0,e.useState)(l),2),p=u[0],d=u[1],f=["updateNewsletter:failed","updateNewsletter:success"].includes(s);return(0,e.useEffect)((function(){d(l)}),[l,f]),(0,mr.jsx)("div",{className:"gh-portal-for-switch",children:(0,mr.jsxs)("label",{className:"switch",htmlFor:t,children:[(0,mr.jsx)("input",{type:"checkbox",checked:p,id:t,onChange:function(){},"aria-label":i}),(0,mr.jsx)("span",{className:"input-toggle-component",onClick:function(e){d(!p),o(e,!p)},"data-testid":"switch-input"})]})})},ua=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){var e=this;return(0,mr.jsx)("div",{className:"gh-portal-closeicon-container",children:(0,mr.jsx)(ko,{className:"gh-portal-closeicon",alt:"Close",onClick:function(){return e.context.onAction("closePopup")}})})}}]),t}(e.Component);ua.contextType=Cr;var pa=["title","titleId"];function da(){return da=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},da.apply(this,arguments)}function fa(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ha(n,t){var r=n.title,i=n.titleId,o=fa(n,pa);return e.createElement("svg",da({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,aa||(aa=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}"))),la||(la=e.createElement("path",{d:"M22.939 2.56V8.817C22.9391 9.61244 22.6232 10.3754 22.061 10.938L10.5 22.5C10.2187 22.7812 9.83721 22.9392 9.43946 22.9392C9.04172 22.9392 8.66026 22.7812 8.37896 22.5L1.49997 15.62C1.21876 15.3387 1.06079 14.9572 1.06079 14.5595C1.06079 14.1618 1.21876 13.7803 1.49997 13.499L13.061 1.938C13.6236 1.37572 14.3865 1.0599 15.182 1.06H21.439C21.8368 1.06 22.2183 1.21803 22.4996 1.49934C22.7809 1.78064 22.939 2.16217 22.939 2.56V2.56Z",className:"a"})),sa||(sa=e.createElement("path",{d:"M17.689 7.81C16.8605 7.81 16.189 7.13842 16.189 6.31C16.189 5.48157 16.8605 4.81 17.689 4.81C18.5174 4.81 19.189 5.48157 19.189 6.31C19.189 7.13842 18.5174 7.81 17.689 7.81Z",className:"a"})))}var ga=e.forwardRef(ha),ma=(t.p,t(969)),va=function(e){var n=e.avatar,t=e.brandColor;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)(jr,{gravatar:n,style:{userIcon:{color:t,width:"56px",height:"56px",padding:"2px"}}})})},ya=function(e){e.onClose;var n=e.handleSignout,t=e.supportAddress,r="mailto:".concat(void 0===t?"":t);return(0,mr.jsxs)("footer",{className:"gh-portal-account-footer",children:[(0,mr.jsx)("ul",{className:"gh-portal-account-footermenu",children:(0,mr.jsx)("li",{children:(0,mr.jsx)("button",{className:"gh-portal-btn",name:"logout","aria-label":"logout",onClick:function(e){return n(e)},children:"Sign out"})})}),(0,mr.jsx)("div",{className:"gh-portal-account-footerright",children:(0,mr.jsx)("ul",{className:"gh-portal-account-footermenu",children:(0,mr.jsx)("li",{children:(0,mr.jsx)("a",{className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:function(){r&&window.open(r)},children:"Contact support"})})})})]})},ba=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.brandColor,i=t.avatar_image;return(0,mr.jsxs)("header",{className:"gh-portal-account-header",children:[(0,mr.jsx)(va,{avatar:i,brandColor:r}),(0,mr.jsx)("h2",{className:"gh-portal-main-title",children:"Your account"})]})};function xa(e){var n=e.offer,t=e.price,r=e.subscriptionStartDate,i="";if(n){var o=n.duration,a="";if("forever"===o)a="Forever";else if("repeating"===o){var l=n.duration_in_months||0,s=new Date(r),c=new Date(s.setMonth(s.getMonth()+l));a="Ends ".concat(li(c))}i="".concat(function(e){var n,t=e.offer,r=e.price,i=e.useFormatted,o=void 0!==i&&i,a=r.amount;return n="fixed"===t.type&&eo(t.currency,r.currency)?(n=(a-t.amount)/100)>0?n:0:"percent"===t.type?(a-a*t.amount/100)/100:a/100,o?Intl.NumberFormat("en",{currency:null===r||void 0===r?void 0:r.currency,style:"currency"}).format(n):n}({offer:n,price:t,useFormatted:!0}),"/").concat(t.interval).concat(a?" \u2014 ".concat(a):"")}return i}function wa(e){var n=e.subscription;e.priceLabel;if(Mi({sub:n})){var t=li(n.trial_end_at);return(0,mr.jsx)("p",{className:"gh-portal-account-discountcontainer",children:(0,mr.jsx)("div",{children:(0,mr.jsxs)("span",{children:["Free Trial \u2013 Ends ",t]})})})}return null}var _a=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.site,i=n.onAction,o=function(e){var n=e.price,r=e.isComplimentary,i=e.subscription,o=i||{},a=o.offer,l=o.start_date,s="";if(n){var c=n.amount,u=void 0===c?0:c,p=n.currency,d=n.interval;s="".concat(Intl.NumberFormat("en",{currency:p,style:"currency"}).format(u/100),"/").concat(d)}var f=xa({price:n,offer:a,subscriptionStartDate:l}),h=gi({member:t});r&&(s=h?"Complimentary - Expires ".concat(h):s?"Complimentary (".concat(s,")"):"Complimentary");var g="";f&&(g="gh-portal-account-old-price");var m=function(){return f?(0,mr.jsxs)("p",{className:"gh-portal-account-discountcontainer",children:[(0,mr.jsx)(ga,{className:"gh-portal-account-tagicon"}),(0,mr.jsx)("span",{children:f})]}):null},v=Mi({sub:i});return v&&(g="gh-portal-account-old-price"),v?(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("p",{className:g,children:s}),(0,mr.jsx)(wa,{subscription:i})]}):(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("p",{className:g,children:s}),(0,mr.jsx)(m,{})]})},a=function(e){var n=e.isComplimentary;return!hi({member:t})&&n||bi({site:r})?null:(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){r.is_stripe_configured&&i("switchPage",{page:"accountPlan",lastPage:"accountHome"})},children:"Change"})},l=function(e){var n=e.defaultCardLast4;if(n){var t="**** **** **** ".concat(n);return(0,mr.jsx)("p",{children:t})}return null},s=function(n){var r=n.defaultCardLast4,o=n.isComplimentary,a="editBilling:running"===(0,e.useContext)(Cr).action?(0,mr.jsx)(Ko,{className:"gh-portal-billing-button-loader"}):"Update";return o?null:(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Billing info"}),(0,mr.jsx)(l,{defaultCardLast4:r})]}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){return function(){var e=pi({member:t});i("editBilling",{subscriptionId:e.id})}()},children:a})]})},c=pi({member:t}),u=di({member:t});if(c||u){var p=c||{},d=p.price,f=p.default_payment_card_last4,h="Plan";return _i({site:r})&&yi({member:t})&&(h=yi({member:t})),(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:h}),(0,mr.jsx)(o,{price:d,isComplimentary:u,subscription:c})]}),(0,mr.jsx)(a,{isComplimentary:u})]}),(0,mr.jsx)(s,{isComplimentary:u,defaultCardLast4:f})]})}return null},ka=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.onAction,i=t.name,o=t.email;return(0,mr.jsx)("div",{children:(0,mr.jsxs)("div",{className:"gh-portal-list",children:[(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:i||"Account"}),(0,mr.jsx)("p",{children:o})]}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){r("switchPage",{page:"accountProfile",lastPage:"accountHome"})},children:"Edit"})]}),(0,mr.jsx)(_a,{}),(0,mr.jsx)(Ea,{}),(0,mr.jsx)(Sa,{})]})})};function Sa(){var n=(0,e.useContext)(Cr),t=n.member,r=n.site,i=n.onAction,o=t.newsletters;if(Ui({site:r})||ki({site:r}))return null;var a=!(null===o||void 0===o||!o.length),l=a?"Subscribed":"Unsubscribed";return(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Email newsletter"}),(0,mr.jsx)("p",{children:l})]}),(0,mr.jsx)("div",{children:(0,mr.jsx)(ca,{id:"default-newsletter-toggle",onToggle:function(e){!function(e,n){var o;e.preventDefault();var a=Li({site:r}),l=null!==t&&void 0!==t&&null!==(o=t.newsletters)&&void 0!==o&&o.length?[]:a;i("updateNewsletterPreference",{newsletters:l})}(e)},checked:a})})]})}function Ea(){var n=(0,e.useContext)(Cr),t=n.site,r=n.onAction;return Ui({site:t})||ki({site:t})?(0,mr.jsxs)("section",{children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Emails"}),(0,mr.jsx)("p",{children:"Update your preferences"})]}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:function(e){r("switchPage",{page:"accountEmail",lastPage:"accountHome"})},children:"Manage"})]}):null}var ja=function(){var n=(0,e.useContext)(Cr),t=n.site,r=n.action,i=n.brandColor,o=n.onAction;if(!t.is_stripe_configured||bi({site:t}))return null;var a=["checkoutPlan:running"].includes(r);return(0,mr.jsx)(Zo,{isRunning:a,label:"View plans",onClick:function(){o("switchPage",{page:"accountPlan",lastPage:"accountHome"})},brandColor:i,style:{width:"100%"}})},Ca=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.site;if(!r.is_stripe_configured||bi({site:r}))return null;var i=pi({member:t}),o=di({member:t});if(o&&!i)return null;if(i){var a=null===i||void 0===i?void 0:i.current_period_end;if(o&&gi({member:t})){var l=gi({member:t}),s=li(l);return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",s]})})}if(null!==i&&void 0!==i&&i.cancel_at_period_end)return null;if(Mi({sub:i})){var c=li(i.trial_end_at);return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will start on ",c]})})}return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will renew on ",li(a)]})})}return(0,mr.jsxs)("div",{className:"gh-portal-section",children:[(0,mr.jsx)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:"You currently have a free membership, upgrade to a paid subscription for full access."}),(0,mr.jsx)(ja,{})]})},Na=function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.onAction,i=n.action,o=n.brandColor,a=pi({member:t});if(!a)return null;if(!a.cancel_at_period_end)return null;var l=a.cancel_at_period_end?"Continue subscription":"Cancel subscription",s=["cancelSubscription:running"].includes(i),c=!!s,u=!!a.cancel_at_period_end,p=function(){if(!a.cancel_at_period_end)return null;var e=a.current_period_end;return(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",li(e)]})};return(0,mr.jsxs)("div",{className:"gh-portal-cancelcontinue-container",children:[(0,mr.jsx)(p,{}),(0,mr.jsx)(Zo,{onClick:function(e){r("continueSubscription",{subscriptionId:a.id})},isRunning:s,disabled:c,isPrimary:u,brandColor:o,label:l,style:{width:"100%"}})]})},Pa=function(){return(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-account-main",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)(ba,{}),(0,mr.jsxs)("section",{className:"gh-portal-account-data",children:[(0,mr.jsx)(Ca,{}),(0,mr.jsx)(Na,{}),(0,mr.jsx)(ka,{})]})]})},Oa=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"componentDidMount",value:function(){this.context.member||this.context.onAction("switchPage",{page:"signin"})}},{key:"handleSignout",value:function(e){e.preventDefault(),this.context.onAction("signout")}},{key:"render",value:function(){var e=this,n=this.context,t=n.member,r=n.site,i=qi({site:r});return t?(0,mr.jsxs)("div",{className:"gh-portal-account-wrapper",children:[(0,mr.jsx)(Pa,{}),(0,mr.jsx)(ya,{onClose:function(){return e.context.onAction("closePopup")},handleSignout:function(n){return e.handleSignout(n)},supportAddress:i})]}):null}}]),t}(ma.Component);Oa.contextType=Cr;var Ta,Ia=t(912),Da=t.n(Ia),Ra=["title","titleId"];function La(){return La=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},La.apply(this,arguments)}function Ua(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function za(n,t){var r=n.title,i=n.titleId,o=Ua(n,Ra);return e.createElement("svg",La({width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ta||(Ta=e.createElement("path",{d:"M1 6.89286L6.10714 12L13.9643 1",stroke:"#222222",strokeWidth:2})))}var Ma=e.forwardRef(za),Fa=(t.p,e.createContext({selectedInterval:"month",selectedProduct:"free",selectedPlan:null,setSelectedProduct:null}));function Aa(e){var n=e.product;return n.benefits&&n.benefits.length?n.benefits.map((function(e,n){var t=(null===e||void 0===e?void 0:e.id)||"benefit-".concat(n);return(0,mr.jsxs)("div",{className:"gh-portal-product-benefit",children:[(0,mr.jsx)(Ma,{className:"gh-portal-benefit-checkmark",alt:""}),(0,mr.jsx)("div",{className:"gh-portal-benefit-title",children:e.name})]},t)})):null}function Ba(e){var n=e.product,t=e.hide,r=void 0!==t&&t;if(!n.benefits||!n.benefits.length||r)return null;return(0,mr.jsx)("div",{className:"gh-portal-product-benefits",children:(0,mr.jsx)(Aa,{product:n})})}function Ha(n){var t=n.price,r=(0,e.useContext)(Cr).site.portal_plans;return r.includes("monthly")&&r.includes("yearly")?(0,mr.jsx)("div",{className:"gh-portal-product-alternative-price",children:Ji(t)}):(0,mr.jsx)("div",{className:"gh-portal-product-alternative-price"})}function Ya(n){var t=n.trialDays,r=n.discount,i=n.selectedInterval;return Pi({site:(0,e.useContext)(Cr).site})?t?(0,mr.jsxs)("span",{className:"gh-portal-discount-label",children:[t," days free"]}):null:"year"===i?(0,mr.jsxs)("span",{className:"gh-portal-discount-label",children:[r,"% discount"]}):null}function $a(n){var t=n.product,r=(0,e.useContext)(Fa).selectedInterval,i=(0,e.useContext)(Cr).site,o=t.monthlyPrice,a=t.yearlyPrice,l=t.trial_days,s="month"===r?o:a,c="month"===r?a:o;if(!o||!a)return null;var u=Da()(t.monthlyPrice.amount,t.yearlyPrice.amount),p=Vi(s.currency);return Pi({site:i})?(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"gh-portal-product-card-pricecontainer",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-price-trial",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),(0,mr.jsx)("span",{className:"amount",children:Xi(Ki(s.amount))}),(0,mr.jsxs)("span",{className:"billing-period",children:["/",s.interval]})]}),(0,mr.jsx)(Ya,{trialDays:l,discount:u,selectedInterval:r})]}),"year"===r?(0,mr.jsx)(Va,{discount:u,trialDays:l}):"",(0,mr.jsx)(Ha,{price:c})]})}):(0,mr.jsxs)("div",{className:"gh-portal-product-card-pricecontainer",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-price-trial",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),(0,mr.jsx)("span",{className:"amount",children:Xi(Ki(s.amount))}),(0,mr.jsxs)("span",{className:"billing-period",children:["/",s.interval]})]}),"year"===r?(0,mr.jsx)(Va,{discount:u}):""]}),(0,mr.jsx)(Ha,{price:c})]})}function Ga(n){var t=n.products,r=n.handleChooseSignup,i=(0,e.useContext)(Cr),o=i.site,a=i.action,l=(0,e.useContext)(Fa),s=l.selectedProduct,c=l.setSelectedProduct,u="free"===s?"gh-portal-product-card free checked":"gh-portal-product-card free",p=ji({site:o}),d=Ii({site:o}),f="signup:running"===a;ui()&&(f=!0);var h="$";h=t&&t[1]?Vi(t[1].monthlyPrice.currency):"$";var g=zi({site:o}),m=Oi({site:o});if(g){if(!d&&!m.length)return null;u+=" only-free"}return d||m.length||(d="Free preview"),(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:u,onClick:function(e){e.stopPropagation(),c("free")},children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsx)("h4",{className:"gh-portal-product-name",children:Ti({site:o})}),g?"":(0,mr.jsx)("div",{className:"gh-portal-product-card-pricecontainer free-trial-disabled",children:(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign"+(h.length>1?" long":""),children:h}),(0,mr.jsx)("span",{className:"amount",children:"0"})]})})]}),(0,mr.jsxs)("div",{className:"gh-portal-product-card-details",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[d?(0,mr.jsx)("div",{className:"gh-portal-product-description",children:d}):"",(0,mr.jsx)(Ba,{product:p})]}),g?"":(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("button",{className:"gh-portal-btn",disabled:f,onClick:function(e){r(e,"free")},children:"free"===s&&f?(0,mr.jsx)(Ko,{className:"gh-portal-loadingicon"}):"Choose"})})]})]})})}function Wa(e){var n=e.selectedProduct,t=e.product,r=e.disabled,i=e.noOfProducts,o=e.trialDays;return n===t.id&&r?(0,mr.jsx)(Ko,{className:"gh-portal-loadingicon"}):o>0?"Start "+o+"-day free trial":i>1?"Choose":"Continue"}function qa(n){var t,r=n.product,i=n.products,o=n.selectedInterval,a=n.handleChooseSignup,l=(0,e.useContext)(Fa),s=l.selectedProduct,c=l.setSelectedProduct,u=(0,e.useContext)(Cr).action,p=r.trial_days,d=s===r.id?"gh-portal-product-card checked":"gh-portal-product-card",f=null===i||void 0===i||null===(t=i.filter((function(e){return"paid"===e.type})))||void 0===t?void 0:t.length,h=!!["signup:running","checkoutPlan:running"].includes(u);ui()&&(h=!0);var g=r.description;return r.benefits&&r.benefits.length||g||(g="Full access"),(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:d,onClick:function(e){e.stopPropagation(),c(r.id)},children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsx)("h4",{className:"gh-portal-product-name",children:r.name}),(0,mr.jsx)($a,{product:r})]}),(0,mr.jsxs)("div",{className:"gh-portal-product-card-details",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[(0,mr.jsx)("div",{className:"gh-portal-product-description",children:g}),(0,mr.jsx)(Ba,{product:r})]}),(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("button",{disabled:h,className:"gh-portal-btn",onClick:function(e){var n=Ja({products:i,selectedInterval:o,selectedProduct:r.id});a(e,n.id)},children:(0,mr.jsx)(Wa,{selectedProduct:s,product:r,disabled:h,noOfProducts:f,trialDays:p})})})]})]},r.id)})}function Qa(e){var n=e.products,t=e.selectedInterval,r=e.handleChooseSignup;return n.map((function(e){return"free"===e.id?(0,mr.jsx)(Ga,{products:n,handleChooseSignup:r},e.id):(0,mr.jsx)(qa,{products:n,product:e,selectedInterval:t,handleChooseSignup:r},e.id)}))}function Va(n){var t=n.discount,r=(n.trialDays,(0,e.useContext)(Cr).site),i=r.portal_plans;return 0!==t&&i.includes("monthly")?Pi({site:r})?(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("span",{className:"gh-portal-discount-label-trial",children:[t,"% discount"]})}):(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("span",{className:"gh-portal-discount-label",children:[t,"% discount"]})}):null}function Ka(n){n.products;var t=n.selectedInterval,r=n.setSelectedInterval,i=(0,e.useContext)(Cr).site.portal_plans;return i.includes("monthly")&&i.includes("yearly")?(0,mr.jsx)("div",{className:"gh-portal-logged-out-form-container",children:(0,mr.jsxs)("div",{className:"gh-portal-products-pricetoggle"+("month"===t?" left":""),children:[(0,mr.jsx)("button",{className:"gh-portal-btn"+("month"===t?" active":""),onClick:function(e){r("month")},children:"Monthly"}),(0,mr.jsx)("button",{className:"gh-portal-btn"+("year"===t?" active":""),onClick:function(e){r("year")},children:"Yearly"})]})}):null}function Ja(e){var n=e.products,t=e.selectedProduct,r=e.selectedInterval,i=null;if("free"===t)i={id:"free"};else{var o,a,l=n.find((function(e){return e.id===t}));l||(l=n.find((function(e){return"paid"===e.type}))),i="month"===r?null===(o=l)||void 0===o?void 0:o.monthlyPrice:null===(a=l)||void 0===a?void 0:a.yearlyPrice}return i}function Xa(e){var n=e.portalPlans,t=e.selectedInterval,r=void 0===t?"year":t;return"month"===r&&n.includes("monthly")?"month":"year"===r&&n.includes("yearly")?"year":n.includes("monthly")?"month":n.includes("yearly")?"year":void 0}function Za(n){var t,r=n.onPlanSelect,i=n.selectedPlan,o=n.products,a=n.type,l=void 0===a?null:a,s=(0,e.useContext)(Cr),u=s.site,p=s.member,d=u.portal_plans,f=vi({member:p}),h=Ai({site:u,priceId:f.id}),g=Xa({portalPlans:d,selectedInterval:f.interval}),m=(null===h||void 0===h?void 0:h.id)||(null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.id),v=c((0,e.useState)(g),2),y=v[0],b=v[1],x=c((0,e.useState)(m),2),w=x[0],_=x[1],k=Xa({portalPlans:d,selectedInterval:y});if((0,e.useEffect)((function(){_(m)}),[m]),!d.includes("monthly")&&!d.includes("yearly"))return null;if(0===o.length)return null;var S="gh-portal-products";return"upgrade"===l&&(S+=" gh-portal-upgrade-product"),"changePlan"===l&&(S+=" gh-portal-upgrade-product gh-portal-change-plan"),(0,mr.jsx)(Fa.Provider,{value:{selectedInterval:k,selectedProduct:w,selectedPlan:i,setSelectedProduct:_},children:(0,mr.jsxs)("section",{className:S,children:[(0,mr.jsx)(Ka,{selectedInterval:k,setSelectedInterval:b}),(0,mr.jsx)("div",{className:"gh-portal-products-grid",children:(0,mr.jsx)(tl,{products:o,onPlanSelect:r})})]})})}function el(e){var n=e.product;e.selectedPrice,e.activePrice;return null!==n&&void 0!==n&&n.description?(0,mr.jsx)("div",{className:"gh-portal-product-description",children:n.description}):null}function nl(n){var t=n.product,r=n.onPlanSelect,i=(0,e.useContext)(Cr),o=i.member,a=i.site,l=(0,e.useContext)(Fa),s=l.selectedProduct,c=l.setSelectedProduct,u=l.selectedInterval,p=s===t.id?"gh-portal-product-card checked":"gh-portal-product-card",d=t.monthlyPrice,f=t.yearlyPrice,h=vi({member:o}),g="month"===u?d:f,m=function(e){var n=e.priceId,t=e.site,r=vi({member:e.member}),i=Bi({site:t,priceId:n}),o=i.tierId,a=i.cadence;return(null===r||void 0===r?void 0:r.tierId)===o&&(null===r||void 0===r?void 0:r.cadence)===a}({member:o,site:a,priceId:g.id});return(0,mr.jsxs)("div",{className:p+(m?" disabled":""),onClick:function(e){e.stopPropagation(),c(t.id)},children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsx)("h4",{className:"gh-portal-product-name",children:t.name}),(0,mr.jsx)($a,{product:t})]}),(0,mr.jsxs)("div",{className:"gh-portal-product-card-details",children:[(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[t.description?(0,mr.jsx)(el,{product:t,selectedPrice:g,activePrice:h}):"",(0,mr.jsx)(Ba,{product:t})]}),m?(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("span",{className:"gh-portal-current-plan",children:(0,mr.jsx)("span",{children:"Current plan"})})}):(0,mr.jsx)("div",{className:"gh-portal-btn-product",children:(0,mr.jsx)("button",{className:"gh-portal-btn",onClick:function(){r(null,null===g||void 0===g?void 0:g.id)},children:"Choose"})})]})]},t.id)}function tl(e){var n=e.products,t=e.onPlanSelect;return n.map((function(e){return"free"===e.id?null:(0,mr.jsx)(nl,{product:e,onPlanSelect:t},e.id)}))}var rl=function(n){var t,r,i=n.onPlanSelect,o=n.products,a=n.type,l=void 0===a?null:a,s=n.handleChooseSignup,u=(0,e.useContext)(Cr).site,p=u.portal_plans,d=Xa({portalPlans:p}),f=o.length>0?o[0].id:"free",h=c((0,e.useState)(d),2),g=h[0],m=h[1],v=c((0,e.useState)(f),2),y=v[0],b=v[1],x=Ja({products:o,selectedInterval:g,selectedProduct:y}),w=Xa({portalPlans:p,selectedInterval:g});if((0,e.useEffect)((function(){b(f)}),[f]),(0,e.useEffect)((function(){i(null,x.id)}),[x.id,i]),!p.includes("monthly")&&!p.includes("yearly"))return null;if(0===o.length)return null;var _="gh-portal-products";"upgrade"===l&&(_+=" gh-portal-upgrade-product");var k=(null===(t=o.find((function(e){return e.id===y})))||void 0===t?void 0:t.id)||(null===(r=o.find((function(e){return"paid"===e.type})))||void 0===r?void 0:r.id);return(0,mr.jsx)(Fa.Provider,{value:{selectedInterval:w,selectedProduct:k,setSelectedProduct:b},children:(0,mr.jsxs)("section",{className:_,children:[zi({site:u})?"":(0,mr.jsx)(Ka,{products:o,selectedInterval:w,setSelectedInterval:m}),(0,mr.jsx)("div",{className:"gh-portal-products-grid",children:(0,mr.jsx)(Qa,{products:o,selectedInterval:w,handleChooseSignup:s})})]})})};function il(e){var n=e.products,t=e.selectedPlan,r=e.onPlanSelect,i=e.onPlanCheckout,o=e.changePlan,a=void 0!==o&&o;return ui()&&(r=function(){}),a?(0,mr.jsx)("section",{className:"gh-portal-plans",children:(0,mr.jsx)("div",{children:(0,mr.jsx)(Za,{type:"changePlan",products:n,selectedPlan:t,onPlanSelect:r})})}):(0,mr.jsx)("section",{className:"gh-portal-plans",children:(0,mr.jsx)("div",{children:(0,mr.jsx)(rl,{type:"upgrade",products:n,onPlanSelect:r,handleChooseSignup:function(){i.apply(void 0,arguments)}})})})}var ol=t(969);var al=function(n){n.onBack;var t=n.showConfirmation,r=n.confirmationType,i=fi({member:(0,e.useContext)(Cr).member})?"Change plan":"Choose a plan";return t&&(i=function(e){var n=e.confirmationType;return"changePlan"===n?"Confirm subscription":"cancel"===n?"Cancel subscription":"subscribe"===n?"Subscribe":void 0}({confirmationType:r})),(0,mr.jsx)("header",{className:"gh-portal-detail-header",children:(0,mr.jsx)("h3",{className:"gh-portal-main-title",children:i})})},ll=function(n){var t=n.member,r=n.onCancelSubscription,i=n.action,o=n.brandColor,a=(0,e.useContext)(Cr).site;if(!t.paid)return null;var l=pi({member:t});if(!l)return null;if(l.cancel_at_period_end)return null;var s=["cancelSubscription:running"].includes(i),c=!!s,u=!!l.cancel_at_period_end,p=!l.cancelAtPeriodEnd;return(0,mr.jsx)("div",{className:"gh-portal-expire-container",children:(0,mr.jsx)(Zo,{onClick:function(e){r({subscriptionId:l.id,cancelAtPeriodEnd:!0})},isRunning:s,disabled:c,isPrimary:u,isDestructive:p,classes:_i({site:a})?"gh-portal-btn-text mt2 mb4":"",brandColor:o,label:"Cancel subscription",style:{width:"100%"}})})},sl=function(n){var t=n.plan,r=n.type,i=n.onConfirm,o=(0,e.useContext)(Cr),a=o.site,l=o.action,s=o.member,u=o.brandColor,p=c((0,e.useState)(""),2),d=p[0],f=p[1],h=pi({member:s}),g=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(l),m="Confirm",v=li(h.current_period_end);vi({member:s}).id!==t.id&&(v="today");var y=Xi(t.price),b="".concat(t.currency_symbol).concat(y,"/").concat(t.interval," \u2013 Starting ").concat(v),x=Ai({site:a,priceId:null===t||void 0===t?void 0:t.id}),w=_i({site:a})?null===x||void 0===x?void 0:x.name:"Price";return"changePlan"===r?(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container",children:[(0,mr.jsxs)("div",{className:"gh-portal-list mb6",children:[(0,mr.jsx)("section",{children:(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Account"}),(0,mr.jsx)("p",{children:s.email})]})}),(0,mr.jsx)("section",{children:(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:w}),(0,mr.jsx)("p",{children:b})]})})]}),(0,mr.jsx)(Zo,{onClick:function(e){return i(e,t)},isRunning:g,isPrimary:!0,brandColor:u,label:m,style:{width:"100%",height:"40px"}})]}):(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container gh-portal-cancellation-form",children:[(0,mr.jsxs)("p",{children:["If you cancel your subscription now, you will continue to have access until ",(0,mr.jsx)("strong",{children:li(h.current_period_end)}),"."]}),(0,mr.jsxs)("section",{className:"gh-portal-input-section",children:[(0,mr.jsx)("div",{className:"gh-portal-input-labelcontainer",children:(0,mr.jsx)("label",{className:"gh-portal-input-label",children:"Cancellation reason"})}),(0,mr.jsx)("textarea",{className:"gh-portal-input",label:"Cancellation reason",type:"text",name:"cancellation_reason",placeholder:"",value:d,onChange:function(e){return f(e.target.value)},rows:"2",maxLength:"500"},"cancellation_reason")]}),(0,mr.jsx)(Zo,{onClick:function(e){return i(e,d)},isRunning:g,isPrimary:!0,brandColor:u,label:m+" cancellation",style:{width:"100%",height:"40px"}})]})},cl=function(n){var t=n.plans,r=n.selectedPlan,i=n.onPlanSelect,o=n.onCancelSubscription,a=(0,e.useContext)(Cr),l=a.member,s=a.action,c=a.brandColor;return(0,mr.jsxs)("section",{children:[(0,mr.jsx)("div",{className:"gh-portal-section gh-portal-accountplans-main",children:(0,mr.jsx)(ul,{showLabel:!1,plans:t,selectedPlan:r,onPlanSelect:i,changePlan:!0})}),(0,mr.jsx)(ll,{member:l,onCancelSubscription:o,action:s,brandColor:c})]})};function ul(n){n.showLabel,n.plans;var t=n.selectedPlan,r=n.onPlanSelect,i=n.onPlanCheckout,o=n.changePlan,a=void 0!==o&&o,l=(0,e.useContext)(Cr),s=function(e){var n=e.site,t=vi({member:e.member}),r=null===t||void 0===t?void 0:t.currency,i=Ei({site:n});return null!==t&&void 0!==t&&t.id?i.filter((function(e){return function(e){var n=e.product;return null!==n&&void 0!==n&&n.monthlyPrice?n.monthlyPrice.currency:null}({product:e})===r})):i}({site:l.site,member:l.member});return(0,mr.jsx)(il,{products:s,selectedPlan:t,changePlan:a,onPlanSelect:r,onPlanCheckout:i})}var pl=function(e){var n=e.plans,t=e.selectedPlan,r=e.onPlanSelect,i=e.onPlanCheckout,o="";return 1===n.length&&(o="singleplan"),(0,mr.jsx)("section",{children:(0,mr.jsx)("div",{className:"gh-portal-section gh-portal-accountplans-main ".concat(o),children:(0,mr.jsx)(ul,{showLabel:!1,plans:n,selectedPlan:t,onPlanSelect:r,onPlanCheckout:i})})})},dl=function(n){var t=n.plans,r=n.selectedPlan,i=n.confirmationPlan,o=n.confirmationType,a=n.showConfirmation,l=void 0!==a&&a,s=n.onPlanSelect,c=n.onPlanCheckout,u=n.onConfirm,p=n.onCancelSubscription,d=(0,e.useContext)(Cr).member,f=hi({member:d})&&di({member:d});return!fi({member:d})||f?(0,mr.jsx)(pl,{plans:t,selectedPlan:r,onPlanSelect:s,onPlanCheckout:c}):l?(0,mr.jsx)(sl,{plan:i,type:o,onConfirm:u}):(0,mr.jsx)(cl,{plans:t,selectedPlan:r,onCancelSubscription:p,onPlanSelect:s})},fl=function(e){x(t,e);var n=E(t);function t(e,r){var i;return m(this,t),(i=n.call(this,e,r)).onPlanSelect=function(e,n){null===e||void 0===e||e.preventDefault();var t=i.context.member,r=!!hi({member:t})&&di({member:t});if(!fi({member:t})||r)i.timeoutId=setTimeout((function(){i.setState((function(){return{selectedPlan:n}}))}),5);else{var o=i.prices.find((function(e){return e.id===n})),a=i.getActivePriceId({member:t})?"changePlan":"subscribe";n!==i.state.selectedPlan&&i.setState({confirmationPlan:o,confirmationType:a,showConfirmation:!0})}},i.state=i.getInitialState(),i}return y(t,[{key:"componentDidMount",value:function(){this.context.member||this.context.onAction("switchPage",{page:"signin"})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"getInitialState",value:function(){var e=this.context,n=e.member,t=e.site;this.prices=Hi({site:t});var r=vi({member:n});r&&(this.prices=function(e){var n=e.prices,t=e.currency;return n.filter((function(e){return(e.currency||"").toLowerCase()===(t||"").toLowerCase()}))}({prices:this.prices,currency:r.currency}));var i=r?this.prices.find((function(e){return e.id===r.id})):null;return!fi({member:n})&&this.prices.length>0&&(i=this.prices[0]),{selectedPlan:i?i.id:null}}},{key:"handleSignout",value:function(e){e.preventDefault(),this.context.onAction("signout")}},{key:"onBack",value:function(e){this.state.showConfirmation?this.cancelConfirmPage():this.context.onAction("back")}},{key:"cancelConfirmPage",value:function(){this.setState({showConfirmation:!1,confirmationPlan:null,confirmationType:null})}},{key:"onPlanCheckout",value:function(e,n){var t=this.context,r=t.onAction,i=t.member,o=this.state,a=o.confirmationPlan,l=o.selectedPlan;n&&(l=n);var s=!hi({member:i})||!di({member:i});if(fi({member:i})&&s){var c=pi({member:i}),u=c?c.id:"";u&&r("updateSubscription",{plan:a.name,planId:a.id,subscriptionId:u,cancelAtPeriodEnd:!1})}else r("checkoutPlan",{plan:l})}},{key:"onCancelSubscription",value:function(e){var n=e.subscriptionId,t=(e.cancelAtPeriodEnd,function(e){var n=e.member,t=e.subscriptionId;return fi({member:n})?(n.subscriptions||[]).find((function(e){return e.id===t})):null}({subscriptionId:n,member:this.context.member})),r=mi({subscription:t});this.setState({showConfirmation:!0,confirmationPlan:r,confirmationType:"cancel"})}},{key:"onCancelSubscriptionConfirmation",value:function(e){var n=pi({member:this.context.member});if(!n)return null;this.context.onAction("cancelSubscription",{subscriptionId:n.id,cancelAtPeriodEnd:!0,cancellationReason:e})}},{key:"getActivePriceId",value:function(e){var n=vi({member:e.member});return n?n.id:null}},{key:"onConfirm",value:function(e,n){var t=this.state.confirmationType;return"cancel"===t?this.onCancelSubscriptionConfirmation(n):["changePlan","subscribe"].includes(t)?this.onPlanCheckout():void 0}},{key:"render",value:function(){var e=this,n=this.prices,t=this.state,r=t.selectedPlan,i=t.showConfirmation,o=t.confirmationPlan,a=t.confirmationType,l=this.context.lastPage;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"gh-portal-content",children:[(0,mr.jsx)(oa,{onClick:function(n){return e.onBack(n)},hidden:!l&&!i}),(0,mr.jsx)(ua,{}),(0,mr.jsx)(al,{onBack:function(n){return e.onBack(n)},confirmationType:a,showConfirmation:i}),(0,mr.jsx)(dl,{plans:n,selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a,onConfirm:function(){return e.onConfirm.apply(e,arguments)},onCancelSubscription:function(n){return e.onCancelSubscription(n)},onPlanSelect:this.onPlanSelect,onPlanCheckout:function(n,t){return e.onPlanCheckout(n,t)}})]})})}}]),t}(ol.Component);fl.contextType=Cr;function hl(e){var n=e.message,t=e.style;return n?(0,mr.jsx)("p",{style:N({},t||{}),children:n}):null}var gl=function(n){var t=n.name,r=n.id,i=n.label,o=n.hideLabel,a=n.type,l=n.value,s=n.placeholder,c=n.disabled,u=void 0!==c&&c,p=n.onChange,d=void 0===p?function(){}:p,f=n.onBlur,h=void 0===f?function(){}:f,g=n.onKeyDown,m=void 0===g?function(){}:g,v=n.tabindex,y=n.maxlength,b=n.autoFocus,x=n.errorMessage,w=(0,e.useRef)(null);r=r||"input-".concat(t);var _=o?"gh-portal-input-label hidden":"gh-portal-input-label",k=x?"gh-portal-input error":"gh-portal-input";ui()&&(u=!0),so(["preview"])&&(u=!0);var S="",E="",j="";switch(r){case"input-email":S="off",E="off",j="off";break;case"input-name":S="off",E="off"}return(0,e.useEffect)((function(){b&&w.current.focus()}),[b]),(0,mr.jsxs)("section",{className:"gh-portal-input-section",children:[(0,mr.jsxs)("div",{className:"gh-portal-input-labelcontainer",children:[(0,mr.jsxs)("label",{htmlFor:r,className:_,children:[" ",i," "]}),(0,mr.jsx)(hl,{message:x,name:t})]}),(0,mr.jsx)("input",{ref:w,id:r,className:k,type:a,name:t,value:l,placeholder:s,onChange:function(e){return d(e,t)},onKeyDown:function(e){return m(e,t)},onBlur:function(e){return h(e,t)},disabled:u,tabIndex:v,maxLength:y,autoComplete:S,autoCorrect:E,autoCapitalize:j,"aria-label":i})]})},ml=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){var e=this;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("button",{className:"gh-portal-btn gh-portal-btn-site-title-back",onClick:function(){e.props.onBack?e.props.onBack():e.context.onAction("closePopup")},children:[(0,mr.jsx)("span",{children:"\u2190 "})," Back"]})})}}]),t}(e.Component);ml.contextType=Cr;var vl=["title","titleId"];function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},yl.apply(this,arguments)}function bl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function xl(n,t){var r=n.title,i=n.titleId,o=bl(n,vl);return e.createElement("svg",yl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},e.createElement("path",{d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-7.5,9a2,2,0,1,1,2-2A2,2,0,0,1,12,18.5ZM16.25,9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5V6.75a4.25,4.25,0,0,1,8.5,0Z",style:{fill:"#000000"}})))}var wl=e.forwardRef(xl);t.p,t(969);function _l(e){var n=e.newsletter,t=e.subscribedNewsletters,r=e.setSubscribedNewsletters,i=t.some((function(e){return e.id===(null===n||void 0===n?void 0:n.id)}));return n.paid?(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[(0,mr.jsx)("h3",{children:n.name}),(0,mr.jsx)("p",{children:n.description})]}),(0,mr.jsx)("div",{class:"gh-portal-lock-icon-container",children:(0,mr.jsx)(wl,{className:"gh-portal-lock-icon",alt:"",title:"Unlock access to all newsletters by becoming a paid subscriber."})})]}):(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[(0,mr.jsx)("h3",{children:n.name}),(0,mr.jsx)("p",{children:n.description})]}),(0,mr.jsx)("div",{children:(0,mr.jsx)(ca,{id:n.id,onToggle:function(e,i){var o=[];o=i?t.filter((function(e){return e.id!==n.id})).concat(n):t.filter((function(e){return e.id!==n.id})),r(o)},checked:i})})]})}function kl(n){var t=n.subscribedNewsletters,r=n.setSubscribedNewsletters;return Li({site:(0,e.useContext)(Cr).site}).map((function(e){return(0,mr.jsx)(_l,{newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:r},null===e||void 0===e?void 0:e.id)}))}function Sl(n){var t=n.pageData,r=n.onBack,i=(0,e.useContext)(Cr),o=i.brandColor,a=i.site,l=i.onAction,s=i.action,u=Li({site:a}).filter((function(e){return e.subscribe_on_signup})),p=!1;"signup:running"===s&&(p=!0);var d="Continue",f=!1;"signup:failed"===s&&(d="Retry",f=!0);var h="signup:running"===s,g=c((0,e.useState)(u),2),m=g[0],v=g[1];return(0,mr.jsxs)("div",{className:"gh-portal-content with-footer gh-portal-newsletter-selection",children:[(0,mr.jsx)("p",{className:"gh-portal-text-center gh-portal-text-large",children:"Choose your newsletters"}),(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)("div",{className:"gh-portal-list",children:(0,mr.jsx)(kl,{subscribedNewsletters:m,setSubscribedNewsletters:v})})}),(0,mr.jsx)("footer",{className:"gh-portal-action-footer",children:(0,mr.jsxs)("div",{style:{width:"100%"},children:[(0,mr.jsx)("div",{style:{marginBottom:"20px"},children:(0,mr.jsx)(Zo,{isRunning:p,retry:f,disabled:h,onClick:function(e){var n=m.map((function(e){return{id:e.id}})),r=t.name,i=t.email,o=t.plan,a=t.offerId;l("signup",{name:r,email:i,plan:o,newsletters:n,offerId:a})},brandColor:o,label:d,style:{width:"100%"}})}),(0,mr.jsx)("div",{children:(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link gh-portal-btn-different-plan",onClick:function(){r()},children:(0,mr.jsx)("span",{children:"Choose a different plan"})})})]})})]})}var El,jl,Cl=function(e){var n=e.field,t=e.onChange,r=e.onBlur,i=void 0===r?function(){}:r,o=e.onKeyDown,a=void 0===o?function(){}:o;return n?(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)(gl,{label:n.label,type:n.type,name:n.name,placeholder:n.placeholder,disabled:n.disabled,value:n.value,onKeyDown:a,onChange:function(e){return t(e,n)},onBlur:function(e){return i(e,n)},tabIndex:n.tabindex,errorMessage:n.errorMessage,autoFocus:n.autoFocus},n.name)}):null},Nl=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={},r}return y(t,[{key:"render",value:function(){var e=this.props,n=e.fields,t=e.onChange,r=e.onBlur,i=e.onKeyDown,o=n.map((function(e){return(0,mr.jsx)(Cl,{field:e,onChange:t,onBlur:r,onKeyDown:i},e.name)}));return(0,mr.jsx)(mr.Fragment,{children:o})}}]),t}(e.Component),Pl=function(e){var n,t=e.field;if(t.required&&!t.value)switch(t.name){case"name":return"Enter your name";case"email":return"Enter your email address";default:return"Please enter ".concat(t.name)}return"email"!==t.type||(n=t.value)&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(String(n).toLowerCase())?null:"Invalid email address"},Ol=function(e){var n=e.fields,t={};return n.forEach((function(e){var n=e.name,r=Pl({field:e});t[n]=r})),t},Tl=["title","titleId"];function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Il.apply(this,arguments)}function Dl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Rl(n,t){var r=n.title,i=n.titleId,o=Dl(n,Tl);return e.createElement("svg",Il({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,El||(El=e.createElement("defs",null,e.createElement("style",null,".inviteicon{fill: currentColor;}"))),jl||(jl=e.createElement("path",{className:"inviteicon",d:"M23.991 11.464l-.036-.146-.028-.068-.011-.027-.115-.114-.018-.021-.008-.005h-.001l-3.774-2.596v-7.987c0-.276-.224-.5-.5-.5h-15c-.276 0-.5.224-.5.5v7.987l-3.774 2.595-.003.002-.006.004-.015.016-.118.118-.011.027-.028.068-.036.146-.009.037v10.5c0 1.103.897 2 2 2h20c1.103 0 2-.897 2-2v-10.5l-.009-.036zm-1.383.03l-2.608 1.738v-3.531l2.608 1.793zm-18.608 1.738l-2.608-1.739 2.608-1.792v3.531zm18 9.768h-20c-.551 0-1-.449-1-1v-9.566l5.223 3.482c.085.057.181.084.276.084.162 0 .32-.078.417-.223.153-.23.091-.54-.139-.693l-1.777-1.185v-12.899h14v12.899l-1.777 1.185c-.23.153-.292.463-.139.693.096.145.255.223.416.223.095 0 .191-.027.277-.084l5.223-3.482v9.566c0 .551-.449 1-1 1zM15.812 16.109c-.088-.07-.198-.109-.312-.109h-7c-.114 0-.224.039-.312.109l-5 4c-.215.173-.25.487-.078.703.173.215.487.251.703.078l4.862-3.89h6.649l4.863 3.891c.093.073.203.109.313.109.147 0 .292-.065.391-.188.172-.216.137-.53-.078-.703l-5.001-4zM11.706 12.779c.087.064.191.096.294.096s.207-.032.294-.096c.482-.35 4.706-3.497 4.706-6.101 0-1.868-1.387-2.984-2.728-2.984-.772 0-1.674.379-2.272 1.368-.598-.988-1.5-1.368-2.272-1.368-1.341-.001-2.728 1.116-2.728 2.984 0 2.604 4.224 5.751 4.706 6.101zm-1.978-8.086c.844 0 1.511.681 1.786 1.822.108.45.864.45.973 0 .274-1.141.942-1.822 1.786-1.822.85 0 1.728.742 1.728 1.984 0 1.646-2.658 4.037-4 5.072-1.342-1.035-4-3.426-4-5.072-.001-1.241.877-1.984 1.727-1.984z"})))}var Ll=e.forwardRef(Rl),Ul=(t.p,t(969)),zl=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).handleSelectPlan=function(e,n){e&&e.preventDefault(),r.timeoutId=setTimeout((function(){r.setState((function(e){return{plan:n}}))}),5)},r.state={name:"",email:"",plan:"free",showNewsletterSelection:!1},r}return y(t,[{key:"componentDidMount",value:function(){this.context.member&&this.context.onAction("switchPage",{page:"accountHome"}),this.handleSelectedPlan()}},{key:"componentDidUpdate",value:function(){this.handleSelectedPlan()}},{key:"handleSelectedPlan",value:function(){var e=this.context,n=$i({site:e.site,pageQuery:e.pageQuery}),t=this.getSelectedPriceId(n,this.state.plan);t!==this.state.plan&&this.setState({plan:t})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"handleSignup",value:function(e){var n=this,t=this.context,r=t.site,i=t.onAction;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),(function(){var e=n.state,t=e.name,o=e.email,a=e.plan,l=e.errors;l&&Object.values(l).filter((function(e){return!!e})).length>0||(Ui({site:r})?n.setState({showNewsletterSelection:!0,pageData:{name:t,email:o,plan:a},errors:{}}):(n.setState({errors:{}}),i("signup",{name:t,email:o,plan:a})))}))}},{key:"handleChooseSignup",value:function(e,n){var t=this;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:t.getInputFields({state:e})})}}),(function(){var e=t.context,r=e.onAction,i=e.site,o=t.state,a=o.name,l=o.email,s=o.errors;s&&Object.values(s).filter((function(e){return!!e})).length>0||(Ui({site:i})?t.setState({showNewsletterSelection:!0,pageData:{name:a,email:l,plan:n},errors:{}}):(r("signup",{name:a,email:l,plan:n}),t.setState({errors:{}})))}))}},{key:"handleInputChange",value:function(e,n){var t=n.name,r=e.target.value;this.setState(j({},t,r))}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.handleSignup(e)}},{key:"getSelectedPriceId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(!e||0===e.length)return"free";var t=e.some((function(e){return e.id===n}));return t?n:e[0].id||"free"}},{key:"getInputFields",value:function(e){var n=e.state,t=e.fieldNames,r=this.context.site.portal_name,i=n.errors||{},o=[{type:"email",value:n.email,placeholder:"jamie@example.com",label:"Email",name:"email",required:!0,tabindex:2,errorMessage:i.email||""}];return r&&o.unshift({type:"text",value:n.name,placeholder:"Jamie Larson",label:"Name",name:"name",required:!0,tabindex:1,errorMessage:i.name||""}),o[0].autoFocus=!0,t&&t.length>0?o.filter((function(e){return t.includes(e.name)})):o}},{key:"renderSubmitButton",value:function(){var e=this,n=this.context,t=n.action,r=n.site,i=n.brandColor,o=n.pageQuery;if(wi({site:r,pageQuery:o}))return null;var a="Continue",l="free"===o&&Ri({site:r});if(!bi({site:r})&&!l)return null;a="Sign up";var s=!1;"signup:running"===t&&(a="Sending...",s=!0);var c=!1;"signup:failed"===t&&(a="Retry",c=!0);var u="signup:running"===t;return(0,mr.jsx)(Zo,{style:{width:"100%"},retry:c,onClick:function(n){return e.handleSignup(n)},disabled:u,brandColor:i,label:a,isRunning:s,tabIndex:"3"})}},{key:"renderProducts",value:function(){var e=this,n=this.context,t=Ni({site:n.site,pageQuery:n.pageQuery});return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)(rl,{handleChooseSignup:function(){return e.handleChooseSignup.apply(e,arguments)},products:t,onPlanSelect:this.handleSelectPlan})})}},{key:"renderFreeTrialMessage",value:function(){return Pi({site:this.context.site})?(0,mr.jsx)("p",{className:"gh-portal-free-trial-notification",children:"After a free trial ends, you will be charged regular price for the tier you\u2019ve chosen. You can always cancel before then."}):null}},{key:"renderLoginMessage",value:function(){var e=this.context,n=e.brandColor,t=e.onAction;return(0,mr.jsxs)("div",{children:[this.renderFreeTrialMessage(),(0,mr.jsxs)("div",{className:"gh-portal-signup-message",children:[(0,mr.jsx)("div",{children:"Already a member?"}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:function(){return t("switchPage",{page:"signin"})},children:(0,mr.jsx)("span",{children:"Sign in"})})]})]})}},{key:"renderForm",value:function(){var e=this,n=this.getInputFields({state:this.state}),t=this.context,r=t.site,i=t.pageQuery;if(this.state.showNewsletterSelection)return(0,mr.jsx)(Sl,{pageData:this.state.pageData,onBack:function(){e.setState({showNewsletterSelection:!1})}});if(wi({site:r,pageQuery:i}))return(0,mr.jsx)("section",{children:(0,mr.jsxs)("div",{className:"gh-portal-section",children:[(0,mr.jsx)("p",{className:"gh-portal-invite-only-notification",children:"This site is invite-only, contact the owner for access."}),this.renderLoginMessage()]})});var o=Oi({site:r}),a=Ii({site:r}),l="free"===i&&Ri({site:r}),s=zi({site:r})||l,c=!l&&(o.length||a);return(0,mr.jsx)("section",{className:"gh-portal-signup",children:(0,mr.jsxs)("div",{className:"gh-portal-section",children:[(0,mr.jsx)("div",{className:"gh-portal-logged-out-form-container",children:(0,mr.jsx)(Nl,{fields:n,onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n){return e.onKeyDown(n)}})}),(0,mr.jsxs)("div",{children:[this.renderProducts(),s?(0,mr.jsx)("div",{className:"gh-portal-btn-container"+(c?" sticky m24":""),children:(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container",children:[this.renderSubmitButton(),this.renderLoginMessage()]})}):this.renderLoginMessage()]})]})})}},{key:"renderSiteLogo",value:function(){var e=this.context,n=e.site,t=e.pageQuery,r=n.icon;return r?("url(".concat(r,")"),(0,mr.jsx)("img",{className:"gh-portal-signup-logo",src:r,alt:n.title})):wi({site:n,pageQuery:t})?(0,mr.jsx)(Ll,{className:"gh-portal-icon gh-portal-icon-invitation"}):null}},{key:"renderFormHeader",value:function(){var e=this.context.site.title||"";return(0,mr.jsxs)("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:e})]})}},{key:"getClassNames",value:function(){var e=this.context,n=e.site,t=e.pageQuery,r=$i({site:n,pageQuery:t}),i=this.getInputFields({state:this.state}),o="",a="";return(r.length<=1||wi({site:n}))&&(1===r.length&&"free"===r[0].type||wi({site:n,pageQuery:t})?(o=function(e){var n,t=ji({site:e.site});return!!(null!==t&&void 0!==t&&t.description||null!==t&&void 0!==t&&null!==(n=t.benefits)&&void 0!==n&&n.length)}({site:n})?"singleplan":"noplan",1===i.length&&(o="single-field"),wi({site:n})&&(a="invite-only",o="invite-only")):o="singleplan"),{sectionClass:o,footerClass:a}}},{key:"render",value:function(){var e=this,n=this.getClassNames().sectionClass;return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("div",{className:"gh-portal-back-sitetitle",children:(0,mr.jsx)(ml,{onBack:function(){e.state.showNewsletterSelection?e.setState({showNewsletterSelection:!1}):e.context.onAction("closePopup")}})}),(0,mr.jsx)(ua,{}),(0,mr.jsxs)("div",{className:"gh-portal-content signup "+n,children:[this.renderFormHeader(),this.renderForm()]})]})}}]),t}(Ul.Component);zl.contextType=Cr;var Ml,Fl,Al,Bl,Hl,Yl=zl,$l=["title","titleId"];function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Gl.apply(this,arguments)}function Wl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ql(n,t){var r=n.title,i=n.titleId,o=Wl(n,$l);return e.createElement("svg",Gl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ml||(Ml=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;}"))),Fl||(Fl=e.createElement("rect",{className:"a",x:.75,y:4.5,width:22.5,height:15,rx:1.5,ry:1.5})),Al||(Al=e.createElement("line",{className:"a",x1:15.687,y1:9.975,x2:19.5,y2:13.5})),Bl||(Bl=e.createElement("line",{className:"a",x1:8.313,y1:9.975,x2:4.5,y2:13.5})),Hl||(Hl=e.createElement("path",{className:"a",d:"M22.88,5.014l-9.513,6.56a2.406,2.406,0,0,1-2.734,0L1.12,5.014"})))}var Ql=e.forwardRef(ql),Vl=(t.p,t(969)),Kl=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"renderFormHeader",value:function(){var e="Now check your email!",n="A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.";return"signup"===this.context.lastPage&&(e="Now check your email!",n="To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!"),(0,mr.jsxs)("section",{className:"gh-portal-inbox-notification",children:[(0,mr.jsxs)("header",{className:"gh-portal-header",children:[(0,mr.jsx)(Ql,{className:"gh-portal-icon gh-portal-icon-envelope"}),(0,mr.jsx)("h2",{className:"gh-portal-main-title",children:e})]}),(0,mr.jsx)("p",{children:n})]})}},{key:"renderLoginMessage",value:function(){var e=this;return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsx)("div",{style:{color:"#1d1d1d",fontWeight:"bold",cursor:"pointer"},onClick:function(){return e.context.onAction("switchPage",{page:"signin"})},children:"Back to Log in"})})}},{key:"handleClose",value:function(e){this.context.onAction("closePopup")}},{key:"renderCloseButton",value:function(){var e=this;return(0,mr.jsx)(Zo,{style:{width:"100%"},onClick:function(n){return e.handleClose(n)},brandColor:this.context.brandColor,label:"Close"})}},{key:"render",value:function(){return(0,mr.jsxs)("div",{className:"gh-portal-content",children:[(0,mr.jsx)(ua,{}),this.renderFormHeader(),this.renderCloseButton()]})}}]),t}(Vl.Component);Kl.contextType=Cr;var Jl=function(e){var n=e.hide,t=void 0!==n&&n,r=e.onClose;return t?null:(0,mr.jsx)(ko,{className:"closeicon",alt:"Close",onClick:r})},Xl=function(e){var n=e.message,t=e.site,r=qi({site:t}),i="mailto:".concat(r);return n?(0,mr.jsx)("p",{children:n}):(0,mr.jsxs)("p",{children:[" An unexpected error occured. Please try again or ",(0,mr.jsx)("a",{href:i,onClick:function(){i&&window.open(i)},children:"contact support"})," if the error persists."]})},Zl=function(e){x(t,e);var n=E(t);function t(){var e;return m(this,t),(e=n.call(this)).state={className:""},e}return y(t,[{key:"onAnimationEnd",value:function(e){var n=(this.context.popupNotification||{}).type;"popupnotification-slideout"===e.animationName&&("stripe:billing-update"===n&&Mo(["stripe"]),this.context.onAction("clearPopupNotification"))}},{key:"closeNotification",value:function(e){this.context.onAction("clearPopupNotification")}},{key:"componentDidUpdate",value:function(){var e=this.context.popupNotification;e.count!==this.state.notificationCount&&(clearTimeout(this.timeoutId),this.handlePopupNotification({popupNotification:e}))}},{key:"handlePopupNotification",value:function(e){var n=this,t=e.popupNotification;if(this.setState({notificationCount:t.count}),t.autoHide){var r=t.duration,i=void 0===r?2600:r;this.timeoutId=setTimeout((function(){n.setState((function(e){return"slideout"!==e.className?{className:"slideout",notificationCount:t.count}:{}}))}),i)}}},{key:"componentDidMount",value:function(){var e=this.context.popupNotification;this.handlePopupNotification({popupNotification:e})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutId)}},{key:"render",value:function(){var e=this,n=this.context,t=n.popupNotification,r=n.site,i=this.state.className,o=t.type,a=t.status,l=t.closeable,s=t.message,c=a?" ".concat(a):"",u=i?" ".concat(i):"";return(0,mr.jsxs)("div",{className:"gh-portal-popupnotification".concat(c).concat(u),onAnimationEnd:function(n){return e.onAnimationEnd(n)},children:["error"===a?(0,mr.jsx)(Lo,{className:"gh-portal-popupnotification-icon error",alt:""}):(0,mr.jsx)(Oo,{className:"gh-portal-popupnotification-icon success",alt:""}),(0,mr.jsx)(Xl,{type:o,status:a,message:s,site:r}),(0,mr.jsx)(Jl,{hide:!l,onClose:function(n){return e.closeNotification(n)}})]})}}]),t}(e.Component);Zl.contextType=Cr;var es,ns,ts=t(969),rs=function(e){x(t,e);var n=E(t);function t(e,r){var i,o,a;return m(this,t),(a=n.call(this,e,r)).state={name:(null===r||void 0===r||null===(i=r.member)||void 0===i?void 0:i.name)||"",email:(null===r||void 0===r||null===(o=r.member)||void 0===o?void 0:o.email)||"",plan:"free",showNewsletterSelection:!1},a}return y(t,[{key:"getInputFields",value:function(e){var n=e.state,t=e.fieldNames,r=this.context.site.portal_name,i=this.context.member,o=n.errors||{},a=[{type:"email",value:(null===i||void 0===i?void 0:i.email)||n.email,placeholder:"jamie@example.com",label:"Email",name:"email",disabled:!!i,required:!0,tabindex:2,errorMessage:o.email||""}],l=!!r;return!i||null!==i&&void 0!==i&&i.name||(l=!1),l&&a.unshift({type:"text",value:(null===i||void 0===i?void 0:i.name)||n.name,placeholder:"Jamie Larson",label:"Name",name:"name",disabled:!!i,required:!0,tabindex:1,errorMessage:o.name||""}),a[0].autoFocus=!0,t&&t.length>0?a.filter((function(e){return t.includes(e.name)})):a}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.handleSignup(e)}},{key:"handleSignup",value:function(e){var n=this;e.preventDefault();var t=this.context,r=t.pageData,i=t.site;if(!r)return null;var o=Di({site:i,productId:r.tier.id}),a="month"===r.cadence?o.monthlyPrice:o.yearlyPrice;this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),(function(){var e=n.context.onAction,t=n.state,o=t.name,l=t.email,s=t.errors;if(!(s&&Object.values(s).filter((function(e){return!!e})).length>0)){var c={name:o,email:l,plan:null===a||void 0===a?void 0:a.id,offerId:null===r||void 0===r?void 0:r.id};Ui({site:i})?n.setState({showNewsletterSelection:!0,pageData:c,errors:{}}):(e("signup",c),n.setState({errors:{}}))}}))}},{key:"handleInputChange",value:function(e,n){var t=n.name,r=e.target.value;this.setState(j({},t,r))}},{key:"renderSiteLogo",value:function(){var e=this.context.site,n=e.icon;return n?("url(".concat(n,")"),(0,mr.jsx)("img",{className:"gh-portal-signup-logo",src:n,alt:e.title})):null}},{key:"renderFormHeader",value:function(){var e=this.context.site.title||"";return(0,mr.jsxs)("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),(0,mr.jsx)("h2",{className:"gh-portal-main-title",children:e})]})}},{key:"renderForm",value:function(){var e=this,n=this.getInputFields({state:this.state});return this.state.showNewsletterSelection?(0,mr.jsx)(Sl,{pageData:this.state.pageData,onBack:function(){e.setState({showNewsletterSelection:!1})}}):(0,mr.jsx)("section",{children:(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)(Nl,{fields:n,onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n){return e.onKeyDown(n)}})})})}},{key:"renderSubmitButton",value:function(){var e=this,n=this.context,t=n.action,r=n.brandColor,i=this.context.pageData,o="Continue";"trial"===i.type&&(o="Start "+i.amount+"-day free trial");var a=!1;"signup:running"===t&&(o="Sending...",a=!0);var l=!1;"signup:failed"===t&&(o="Retry",l=!0);var s="signup:running"===t;return(0,mr.jsx)(Zo,{style:{width:"100%"},retry:l,onClick:function(n){return e.handleSignup(n)},disabled:s,brandColor:r,label:o,isRunning:a,tabindex:"3",classes:"sticky bottom"})}},{key:"renderLoginMessage",value:function(){if(this.context.member)return null;var e=this.context,n=e.brandColor,t=e.onAction;return(0,mr.jsxs)("div",{className:"gh-portal-signup-message",children:[(0,mr.jsx)("div",{children:"Already a member?"}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:function(){return t("switchPage",{page:"signin"})},children:(0,mr.jsx)("span",{children:"Sign in"})})]})}},{key:"renderOfferTag",value:function(){var e=this.context.pageData;return e.amount<=0?(0,mr.jsx)(mr.Fragment,{}):"fixed"===e.type?(0,mr.jsxs)("h5",{className:"gh-portal-discount-label",children:[Vi(e.currency),e.amount/100," off"]}):"trial"===e.type?(0,mr.jsxs)("h5",{className:"gh-portal-discount-label",children:[e.amount," days free"]}):(0,mr.jsxs)("h5",{className:"gh-portal-discount-label",children:[e.amount,"% off"]})}},{key:"renderBenefits",value:function(e){var n=e.product.benefits||[];if(null!==n&&void 0!==n&&n.length){var t=n.map((function(e,n){return(0,mr.jsxs)("div",{className:"gh-portal-product-benefit",children:[(0,mr.jsx)(Ma,{className:"gh-portal-benefit-checkmark"}),(0,mr.jsx)("div",{className:"gh-portal-benefit-title",children:e.name})]},"".concat(e.name,"-").concat(n))}));return(0,mr.jsx)("div",{className:"gh-portal-product-benefits",children:t})}}},{key:"getOriginalPrice",value:function(e){var n=e.offer,t=e.product,r="month"===n.cadence?t.monthlyPrice:t.yearlyPrice,i=this.renderRoundedPrice(r.amount/100);return"".concat(Vi(r.currency)).concat(i,"/").concat(n.cadence)}},{key:"getUpdatedPrice",value:function(e){var n,t=e.offer,r=e.product,i="month"===t.cadence?r.monthlyPrice:r.yearlyPrice,o=i.amount;return"fixed"===t.type&&eo(t.currency,i.currency)?(n=(o-t.amount)/100)>0?n:0:"percent"===t.type?n=(o-o*t.amount/100)/100:o/100}},{key:"renderRoundedPrice",value:function(e){if(e%1!==0){var n=Math.round(100*e)/100;return Number(n).toFixed(2)}return e}},{key:"getOffAmount",value:function(e){var n=e.offer;return"fixed"===n.type?"".concat(Vi(n.currency)).concat(n.amount/100):"percent"===n.type?"".concat(n.amount,"%"):"trial"===n.type?n.amount:""}},{key:"renderOfferMessage",value:function(e){var n=e.offer,t=e.product,r=(e.price,n.duration),i="",o=this.getOriginalPrice({offer:n,product:t}),a="";if("once"===r)i="for first ".concat(n.cadence),a="Renews at ".concat(o,".");else if("forever"===r)i="forever";else if("repeating"===r){var l=n.duration_in_months||"";i=1===l?"for first month":"for first ".concat(l," months"),a="Renews at ".concat(o,".")}return"trial"===r?(0,mr.jsxs)("p",{className:"footnote",children:["Try free for ",n.amount," days, then ",o,". ",(0,mr.jsx)("span",{class:"gh-portal-cancel",children:"Cancel anytime."})]}):(0,mr.jsxs)("p",{className:"footnote",children:[this.getOffAmount({offer:n})," off ",i,". ",a]})}},{key:"renderProductLabel",value:function(e){var n=e.product,t=e.offer;return _i({site:this.context.site})?(0,mr.jsxs)("h4",{className:"gh-portal-plan-name",children:[n.name," - ","month"===t.cadence?"Monthly":"Yearly"]}):(0,mr.jsx)("h4",{className:"gh-portal-plan-name",children:"month"===t.cadence?"Monthly":"Yearly"})}},{key:"renderUpdatedTierPrice",value:function(e){var n=e.offer,t=e.currencyClass,r=e.updatedPrice,i=e.price;return"trial"===n.type?(0,mr.jsx)("div",{className:"gh-portal-product-card-pricecontainer offer-type-trial",children:(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign "+t,children:Vi(i.currency)}),(0,mr.jsx)("span",{className:"amount",children:Xi(this.renderRoundedPrice(r))})]})}):(0,mr.jsx)("div",{className:"gh-portal-product-card-pricecontainer",children:(0,mr.jsxs)("div",{className:"gh-portal-product-price",children:[(0,mr.jsx)("span",{className:"currency-sign "+t,children:Vi(i.currency)}),(0,mr.jsx)("span",{className:"amount",children:Xi(this.renderRoundedPrice(r))})]})})}},{key:"renderOldTierPrice",value:function(e){var n=e.offer,t=e.price;return"trial"===n.type?null:(0,mr.jsxs)("div",{className:"gh-portal-offer-oldprice",children:[Vi(t.currency)," ",Xi(t.amount/100)]})}},{key:"renderProductCard",value:function(e){var n=e.product,t=e.offer,r=e.currencyClass,i=e.updatedPrice,o=e.price,a=e.benefits;return this.state.showNewsletterSelection?null:(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("div",{className:"gh-portal-product-card top",children:(0,mr.jsxs)("div",{className:"gh-portal-product-card-header",children:[(0,mr.jsxs)("h4",{className:"gh-portal-product-name",children:[n.name," - ","month"===t.cadence?"Monthly":"Yearly"]}),this.renderOldTierPrice({offer:t,price:o}),this.renderUpdatedTierPrice({offer:t,currencyClass:r,updatedPrice:i,price:o}),this.renderOfferMessage({offer:t,product:n,price:o})]})}),(0,mr.jsxs)("div",{children:[(0,mr.jsx)("div",{className:"gh-portal-product-card bottom",children:(0,mr.jsxs)("div",{className:"gh-portal-product-card-detaildata",children:[n.description?(0,mr.jsx)("div",{className:"gh-portal-product-description",children:n.description}):"",a.length?this.renderBenefits({product:n}):""]})}),(0,mr.jsx)("div",{className:"gh-portal-btn-container sticky m32",children:this.renderSubmitButton()}),this.renderLoginMessage()]})]})}},{key:"render",value:function(){var e=this.context,n=e.pageData,t=e.site;if(!n)return null;var r=Di({site:t,productId:n.tier.id}),i="month"===n.cadence?r.monthlyPrice:r.yearlyPrice,o=this.getUpdatedPrice({offer:n,product:r}),a=r.benefits||[],l=Vi(i.currency).length>1?"long":"";return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-offer",children:[(0,mr.jsx)(ua,{}),this.renderFormHeader(),(0,mr.jsxs)("div",{className:"gh-portal-offer-bar",children:[(0,mr.jsxs)("div",{className:"gh-portal-offer-title",children:[n.display_title?(0,mr.jsx)("h4",{children:n.display_title}):(0,mr.jsx)("h4",{className:"placeholder",children:"Black Friday"}),this.renderOfferTag()]}),n.display_description?(0,mr.jsx)("p",{children:n.display_description}):""]}),this.renderForm(),this.renderProductCard({product:r,offer:n,currencyClass:l,updatedPrice:o,price:i,benefits:a})]})})}}]),t}(ts.Component);rs.contextType=Cr;var is=["title","titleId"];function os(){return os=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},os.apply(this,arguments)}function as(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ls(n,t){var r=n.title,i=n.titleId,o=as(n,is);return e.createElement("svg",os({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,es||(es=e.createElement("defs",null,e.createElement("style",null,"path{stroke:currentColor;}"))),ns||(ns=e.createElement("path",{d:"M9.20837 15.8011C9.83721 15.4781 10.4682 15.1573 11.1013 14.8386C22.77 8.94169 22.1989 10.0903 32.1897 10.0903C36.3605 10.0903 38.4812 12.8045 39.7132 16.7796V16.8053L42.7451 26.9244V26.9436C42.8892 27.4178 42.92 27.9192 42.835 28.4075C42.75 28.8958 42.5516 29.3572 42.2558 29.7549C41.9599 30.1525 41.5748 30.4751 41.1316 30.6967C40.6883 30.9184 40.1992 31.0329 39.7036 31.0311H31.9073C31.4217 31.0324 30.9426 31.144 30.5064 31.3574C30.0701 31.5708 29.688 31.8805 29.3888 32.2631C29.0915 32.6461 28.8867 33.0927 28.7904 33.568C28.6941 34.0433 28.7089 34.5344 28.8337 35.003L30.2358 40.2935C30.3448 40.7044 30.3548 41.1353 30.265 41.5508C30.1752 41.9662 29.9882 42.3545 29.7192 42.6837C29.4535 43.0094 29.1162 43.2693 28.7335 43.4432C28.3508 43.6172 27.9332 43.7004 27.5131 43.6864C27.093 43.6724 26.6818 43.5617 26.3115 43.3627C25.9412 43.1637 25.6219 42.882 25.3784 42.5394L17.6046 30.5883C17.3083 30.1754 16.9182 29.8388 16.4664 29.6062C16.0146 29.3736 15.514 29.2517 15.0058 29.2504H9.20837M6 32.4587H9.20833V10.0003H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})))}var ss,cs,us=e.forwardRef(ls),ps=(t.p,["title","titleId"]);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ds.apply(this,arguments)}function fs(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function hs(n,t){var r=n.title,i=n.titleId,o=fs(n,ps);return e.createElement("svg",ds({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,ss||(ss=e.createElement("defs",null,e.createElement("style",null,"path{stroke:currentColor;}"))),cs||(cs=e.createElement("path",{d:"M9.20837 33.8868C9.83721 34.2098 10.4682 34.5306 11.1013 34.8493C22.77 40.7462 22.1989 39.5976 32.1897 39.5976C36.3605 39.5976 38.4812 36.8834 39.7132 32.9083V32.8826L42.7451 22.7635V22.7443C42.8892 22.2701 42.92 21.7687 42.835 21.2804C42.75 20.7922 42.5516 20.3307 42.2558 19.9331C41.9599 19.5355 41.5748 19.2129 41.1316 18.9912C40.6883 18.7695 40.1992 18.655 39.7036 18.6568H31.9073C31.4217 18.6555 30.9426 18.5439 30.5064 18.3305C30.0701 18.1171 29.688 17.8074 29.3888 17.4248C29.0915 17.0418 28.8867 16.5952 28.7904 16.1199C28.6941 15.6446 28.7089 15.1535 28.8337 14.6849L30.2358 9.39439C30.3448 8.98352 30.3548 8.55265 30.265 8.13716C30.1752 7.72167 29.9882 7.33339 29.7192 7.00418C29.4535 6.67851 29.1162 6.41858 28.7335 6.24467C28.3508 6.07075 27.9332 5.98754 27.5131 6.00151C27.093 6.01548 26.6818 6.12626 26.3115 6.32522C25.9412 6.52418 25.6219 6.80594 25.3784 7.14856L17.6046 19.0996C17.3083 19.5125 16.9182 19.8491 16.4664 20.0817C16.0146 20.3143 15.514 20.4362 15.0058 20.4375H9.20837M6 17.2292H9.20833V39.6876H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})))}var gs=e.forwardRef(hs),ms=(t.p,function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,null,[{key:"fromApiResponse",value:function(){var e=g(f().mark((function e(n){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(400!==n.status&&429!==n.status){e.next=12;break}return e.prev=1,e.next=4,n.json();case 4:if(!((r=e.sent).errors&&Array.isArray(r.errors)&&r.errors.length>0&&r.errors[0].message)){e.next=7;break}return e.abrupt("return",new t(r.errors[0].message));case 7:e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(n){return e.apply(this,arguments)}}()},{key:"getMessageFromError",value:function(e,n){return e instanceof t?e.message:n}}]),t}(We(Error)));var vs=function(e){var n=e.siteUrl,t=void 0===n?window.location.origin:n,r=e.apiUrl,i=e.apiKey;function o(e){var n=e.type,r=e.resource;if("members"===n)return"".concat(t.replace(/\/$/,""),"/").concat("members/api","/").concat(r,"/")}function a(e){var n=e.resource,t=e.params,o=void 0===t?"":t;return r&&i?"".concat(r.replace(/\/$/,""),"/").concat(n,"/?key=").concat(i,"&limit=all").concat(o):""}function l(e){var n=e.url,t=e.method,r=void 0===t?"GET":t,i=e.headers,o=void 0===i?{}:i,a=e.credentials,l=void 0===a?void 0:a,s=e.body;return fetch(n,{method:r,headers:o,credentials:l,body:void 0===s?void 0:s})}var s={};return s.analytics={pushEvent:function(e){return g(f().mark((function n(){var t,r,i;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=o({type:"members",resource:"events"}),n.next=3,s.member.identity();case 3:return r=n.sent,e.identity=r,i={events:[e]},n.abrupt("return",l({url:t,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then((function(e){return e.ok?e.text():null})));case 7:case"end":return n.stop()}}),n)})))()}},s.site={read:function(){return l({url:o({type:"members",resource:"site"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},newsletters:function(){return l({url:a({resource:"newsletters"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},tiers:function(){return l({url:a({resource:"tiers",params:"&include=monthly_price,yearly_price,benefits"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},settings:function(){return l({url:a({resource:"settings"}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch site data")}))},offer:function(e){var n=e.offerId;return l({url:a({resource:"offers/".concat(n)}),method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch offer data")}))}},s.feedback={add:function(e){return g(f().mark((function n(){var t,r,i,a,s,c,u;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.uuid,r=e.postId,i=e.score,a=o({type:"members",resource:"feedback"}),a+="?uuid=".concat(t),s={feedback:[{post_id:r,score:i}]},n.next=6,l({url:a,method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(s)});case 6:if(!(c=n.sent).ok){n.next=11;break}return n.abrupt("return",c.json());case 11:return n.next=13,ms.fromApiResponse(c);case 13:if(n.t1=u=n.sent,n.t0=null!==n.t1,!n.t0){n.next=17;break}n.t0=void 0!==u;case 17:if(!n.t0){n.next=21;break}n.t2=u,n.next=22;break;case 21:n.t2=new Error("Failed to save feedback");case 22:throw n.t2;case 23:case"end":return n.stop()}}),n)})))()}},s.member={identity:function(){return l({url:o({type:"members",resource:"session"}),credentials:"same-origin"}).then((function(e){return e.ok&&204!==e.status?e.text():null}))},sessionData:function(){return l({url:o({type:"members",resource:"member"}),credentials:"same-origin"}).then((function(e){return e.ok&&204!==e.status?e.json():null}))},update:function(e){var n=e.name,t=e.subscribed,r=e.newsletters,i=e.enableCommentNotifications,a=o({type:"members",resource:"member"}),s={name:n,subscribed:t,newsletters:r};return void 0!==i&&(s.enable_comment_notifications=i),l({url:a,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(s)}).then((function(e){return e.ok?e.json():null}))},sendMagicLink:function(e){return g(f().mark((function n(){var t,r,i,a,s,c,u,p,d,h,g;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.email,r=e.emailType,i=e.labels,a=e.name,s=e.oldEmail,c=e.newsletters,u=o({type:"members",resource:"send-magic-link"}),p={name:a,email:t,newsletters:c,oldEmail:s,emailType:r,labels:i,requestSrc:"portal"},(d=io())&&(p.urlHistory=d),n.next=7,l({url:u,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)});case 7:if(!(h=n.sent).ok){n.next=12;break}return n.abrupt("return","Success");case 12:return n.next=14,ms.fromApiResponse(h);case 14:if(!(g=n.sent)){n.next=17;break}throw g;case 17:throw new Error("Failed to send magic link email");case 18:case"end":return n.stop()}}),n)})))()},signout:function(){return l({url:o({type:"members",resource:"session"}),method:"DELETE"}).then((function(e){if(e.ok)return window.location.replace(t),"Success";throw new Error("Failed to signout")}))},newsletters:function(e){return g(f().mark((function n(){var t,r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.uuid,r=o({type:"members",resource:"member/newsletters"}),r+="?uuid=".concat(t),n.abrupt("return",l({url:r,credentials:"same-origin"}).then((function(e){return e.ok&&204!==e.status?e.json():null})));case 4:case"end":return n.stop()}}),n)})))()},updateNewsletters:function(e){return g(f().mark((function n(){var t,r,i,a,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.uuid,r=e.newsletters,i=e.enableCommentNotifications,a=o({type:"members",resource:"member/newsletters"}),a+="?uuid=".concat(t),s={newsletters:r},void 0!==i&&(s.enable_comment_notifications=i),n.abrupt("return",l({url:a,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to update email preferences")})));case 6:case"end":return n.stop()}}),n)})))()},updateEmailAddress:function(e){return g(f().mark((function n(){var t,r,i,a;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.email,n.next=3,s.member.identity();case 3:return r=n.sent,i=o({type:"members",resource:"member/email"}),a={email:t,identity:r},n.abrupt("return",l({url:i,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((function(e){if(e.ok)return"Success";throw new Error("Failed to send email address verification email")})));case 7:case"end":return n.stop()}}),n)})))()},checkoutPlan:function(){var e=arguments;return g(f().mark((function n(){var r,i,a,c,u,p,d,h,m,v,y,b,x,w,_,k,S,E,j,C;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},c=a.plan,u=a.tierId,p=a.cadence,d=a.cancelUrl,h=a.successUrl,m=a.email,v=a.name,y=a.offerId,b=a.newsletters,x=a.metadata,w=void 0===x?{}:x,_=new URL(t),n.next=4,s.member.identity();case 4:return k=n.sent,S=o({type:"members",resource:"create-stripe-checkout-session"}),d||((E=window.location.href.startsWith(_.href)?new URL(window.location.href):new URL(t)).searchParams.set("stripe","cancel"),d=E.href),j=N({name:v,newsletters:JSON.stringify(b),requestSrc:"portal",fp_tid:null===(r=window.FPROM||window.$FPROM)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.tid,urlHistory:io()},w),C={priceId:y?null:c,offerId:y,identity:k,metadata:j,successUrl:h,cancelUrl:d},m&&(C.customerEmail=m),u&&p&&(delete C.priceId,C.tierId=y?null:u,C.cadence=y?null:p),n.abrupt("return",l({url:S,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(function(){var e=g(f().mark((function e(n){var t,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.ok){e.next=6;break}return e.next=3,n.json();case 3:throw i=e.sent,o=(null===i||void 0===i||null===(t=i.errors)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.message)||"Failed to signup, please try again.",new Error(o);case 6:return e.abrupt("return",n.json());case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).then((function(e){return e.url?window.location.assign(e.url):window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(e){throw e})));case 12:case"end":return n.stop()}}),n)})))()},editBilling:function(){var e=arguments;return g(f().mark((function n(){var r,i,a,c,u,p,d,h,g;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]?e[0]:{},i=r.successUrl,a=r.cancelUrl,c=r.subscriptionId,u=new URL(t),n.next=4,s.member.identity();case 4:return p=n.sent,d=o({type:"members",resource:"create-stripe-update-session"}),i||((h=new URL(t)).searchParams.set("stripe","billing-update-success"),i=h.href),a||((g=window.location.href.startsWith(u.href)?new URL(window.location.href):new URL(t)).searchParams.set("stripe","billing-update-cancel"),a=g.href),n.abrupt("return",l({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:p,subscription_id:c,successUrl:i,cancelUrl:a})}).then((function(e){if(!e.ok)throw new Error("Unable to create stripe checkout session");return e.json()})).then((function(e){return window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(e){throw e})));case 9:case"end":return n.stop()}}),n)})))()},updateSubscription:function(e){return g(f().mark((function n(){var t,r,i,a,c,u,p,d,h,g;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.subscriptionId,r=e.tierId,i=e.cadence,a=e.planId,c=e.smartCancel,u=e.cancelAtPeriodEnd,p=e.cancellationReason,n.next=3,s.member.identity();case 3:return d=n.sent,h=o({type:"members",resource:"subscriptions"})+t+"/",g={smart_cancel:c,cancel_at_period_end:u,cancellation_reason:p,identity:d,priceId:a},r&&i&&(delete g.priceId,g.tierId=r,g.cadence=i),n.abrupt("return",l({url:h,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}));case 8:case"end":return n.stop()}}),n)})))()}},s.init=g(f().mark((function e(){var n,t,r,i,o,a,l,u,p;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([s.member.sessionData()]);case 2:return n=e.sent,t=c(n,1),r=t[0],i={},o=[],a=[],l={},e.prev=9,e.next=12,Promise.all([s.site.settings(),s.site.tiers(),s.site.newsletters()]);case 12:u=e.sent,p=c(u,3),l=p[0].settings,a=p[1].tiers,o=p[2].newsletters,i=N(N({},l),{},{newsletters:o,tiers:ro({tiers:a})}),e.next=22;break;case 20:e.prev=20,e.t0=e.catch(9);case 22:return i=Si({site:i}),e.abrupt("return",{site:i,member:r});case 24:case"end":return e.stop()}}),e,null,[[9,20]])}))),s},ys=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){return(0,mr.jsx)("div",{style:{display:"flex",flexDirection:"column",color:"#313131"},children:(0,mr.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",height:"50px"},children:(0,mr.jsx)(Ko,{className:"gh-portal-loadingicon dark"})})})}}]),t}(t(969).Component);t(969);function bs(n){var t=n.error,r=(0,e.useContext)(Cr).onAction;return(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:(0,mr.jsx)(Lo,{})}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"It's not you, it's us"}),(0,mr.jsx)("div",{children:(0,mr.jsx)("p",{className:"gh-portal-text-center",children:t})}),(0,mr.jsx)(Zo,{style:{width:"100%"},retry:!1,onClick:function(){return r("closePopup")},disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})}var xs=function(n){var t=n.onConfirm,r=n.loading,i=n.initialScore,o=(0,e.useContext)(Cr),a=o.onAction,l=o.brandColor,s=c((0,e.useState)(i),2),u=s[0],p=s[1],d=function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.stopPropagation(),e.next=3,t(u);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),h=function(e){var n="gh-feedback-button";return e===u?"".concat(n," gh-feedback-button-selected"):n},m=function(e){return e===u?{color:l}:{}};return(0,mr.jsxs)("div",{className:"gh-portal-confirm-dialog",onMouseDown:function(e){e.stopPropagation()},children:[(0,mr.jsx)("h1",{className:"gh-portal-confirm-title",children:"Give feedback on this post"}),(0,mr.jsxs)("div",{className:"gh-feedback-buttons-group",children:[(0,mr.jsxs)("button",{className:h(1),style:m(1),onClick:function(){return p(1)},children:[(0,mr.jsx)(gs,{}),"More like this"]}),(0,mr.jsxs)("button",{className:h(0),style:m(0),onClick:function(){return p(0)},children:[(0,mr.jsx)(us,{}),"Less like this"]})]}),(0,mr.jsx)(Zo,{classes:"gh-portal-confirm-button",retry:!1,onClick:d,disabled:!1,brandColor:l,label:"Submit feedback",isRunning:r,tabindex:"3"}),(0,mr.jsx)(ua,{close:function(){a("closePopup")}})]})};function ws(e){return _s.apply(this,arguments)}function _s(){return(_s=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.siteUrl,r=n.uuid,i=n.postId,o=n.score,a=vs({siteUrl:t}),e.next=4,a.feedback.add({uuid:r,postId:i,score:o});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ks=function(n){var t=n.action,r=n.score;return(0,e.useEffect)((function(){t(r)})),(0,mr.jsx)(ys,{})},Ss=function(n){var t=n.positive,r=(0,e.useContext)(Cr),i=r.onAction,o=r.brandColor,a=t?(0,mr.jsx)(gs,{}):(0,mr.jsx)(us,{});return(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-feedback",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)("div",{className:"gh-feedback-icon",children:a}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"Thanks for the feedback!"}),(0,mr.jsx)("p",{className:"gh-portal-text-center",children:"Your input helps shape what gets published."}),(0,mr.jsx)(Zo,{style:{width:"100%"},retry:!1,onClick:function(){return i("closePopup")},disabled:!1,brandColor:o,label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})};var Es=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={email:""},r}return y(t,[{key:"componentDidMount",value:function(){this.context.member&&this.context.onAction("switchPage",{page:"accountHome"})}},{key:"handleSignin",value:function(e){var n=this;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),g(f().mark((function e(){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.state,r=t.email,i=t.errors,i&&Object.values(i).filter((function(e){return!!e})).length>0||n.context.onAction("signin",{email:r});case 3:case"end":return e.stop()}}),e)}))))}},{key:"handleInputChange",value:function(e,n){var t=n.name;this.setState(j({},t,e.target.value))}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.handleSignin(e)}},{key:"getInputFields",value:function(e){var n=e.state,t=n.errors||{};return[{type:"email",value:n.email,placeholder:"jamie@example.com",label:"Email",name:"email",required:!0,errorMessage:t.email||"",autoFocus:!0}]}},{key:"renderSubmitButton",value:function(){var e=this,n=this.context.action,t=!1,r="signin:running"===n,i=r?"Sending login link...":"Continue",o=!!r;return"signin:failed"===n&&(i="Retry",t=!0),(0,mr.jsx)(Zo,{retry:t,style:{width:"100%"},onClick:function(n){return e.handleSignin(n)},disabled:o,brandColor:this.context.brandColor,label:i,isRunning:r})}},{key:"renderSignupMessage",value:function(){var e=this,n=this.context.brandColor;return(0,mr.jsxs)("div",{className:"gh-portal-signup-message",children:[(0,mr.jsx)("div",{children:"Don't have an account?"}),(0,mr.jsx)("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:function(){return e.context.onAction("switchPage",{page:"signup"})},children:(0,mr.jsx)("span",{children:"Sign up"})})]})}},{key:"renderForm",value:function(){var e=this;return(0,mr.jsx)("section",{children:(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)(Nl,{fields:this.getInputFields({state:this.state}),onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n,t){return e.onKeyDown(n,t)}})})})}},{key:"renderSiteLogo",value:function(){var e=this.context.site.icon;return e?("url(".concat(e,")"),(0,mr.jsx)("img",{className:"gh-portal-signup-logo",src:e,alt:this.context.site.title})):null}},{key:"renderFormHeader",value:function(){return(0,mr.jsxs)("header",{className:"gh-portal-signin-header",children:[this.renderSiteLogo(),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"Sign in"})]})}},{key:"render",value:function(){return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(ua,{}),(0,mr.jsxs)("div",{className:"gh-portal-logged-out-form-container",children:[(0,mr.jsxs)("div",{className:"gh-portal-content signin",children:[this.renderFormHeader(),this.renderForm()]}),(0,mr.jsxs)("footer",{className:"gh-portal-signin-footer",children:[this.renderSubmitButton(),this.renderSignupMessage()]})]})]})}}]),t}(t(969).Component);Es.contextType=Cr;var js,Cs,Ns,Ps=function(e){x(t,e);var n=E(t);function t(e,r){var i;m(this,t),i=n.call(this,e,r);var o=r.member||{},a=o.name,l=void 0===a?"":a,s=o.email,c=void 0===s?"":s;return i.state={name:l,email:c},i}return y(t,[{key:"componentDidMount",value:function(){this.context.member||this.context.onAction("switchPage",{page:"signin"})}},{key:"handleSignout",value:function(e){e.preventDefault(),this.context.onAction("signout")}},{key:"onBack",value:function(e){this.context.onAction("back")}},{key:"onProfileSave",value:function(e){var n=this;e.preventDefault(),this.setState((function(e){return{errors:Ol({fields:n.getInputFields({state:e})})}}),(function(){var e=n.state,t=e.email,r=e.name,i=e.errors;i&&Object.values(i).filter((function(e){return!!e})).length>0||(n.context.onAction("clearPopupNotification"),n.context.onAction("updateProfile",{email:t,name:r}))}))}},{key:"renderSaveButton",value:function(){var e=this,n="updateProfile:running"===this.context.action,t="Save";"updateProfile:failed"===this.context.action&&(t="Retry");var r=!!n;return(0,mr.jsx)(Zo,{isRunning:n,onClick:function(n){return e.onProfileSave(n)},disabled:r,brandColor:this.context.brandColor,label:t,style:{width:"100%"}})}},{key:"renderDeleteAccountButton",value:function(){return(0,mr.jsx)("div",{style:{cursor:"pointer",color:"red"},role:"button",children:"Delete account"})}},{key:"renderAccountFooter",value:function(){return(0,mr.jsx)("footer",{className:"gh-portal-action-footer",children:this.renderSaveButton()})}},{key:"renderHeader",value:function(){var e=this;return(0,mr.jsxs)("header",{className:"gh-portal-detail-header",children:[(0,mr.jsx)(oa,{brandColor:this.context.brandColor,hidden:!this.context.lastPage,onClick:function(n){return e.onBack(n)}}),(0,mr.jsx)("h3",{className:"gh-portal-main-title",children:"Account settings"})]})}},{key:"renderUserAvatar",value:function(){var e=this.context.member&&this.context.member.avatar_image;return(0,mr.jsx)("div",{style:{position:"relative",display:"flex",width:"64px",height:"64px",marginBottom:"6px",borderRadius:"100%",boxShadow:"0 0 0 3px #fff",border:"1px solid gray",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:(0,mr.jsx)(jr,{gravatar:e,style:{userIcon:{color:"black",width:"56px",height:"56px"}}})})}},{key:"handleInputChange",value:function(e,n){var t=n.name;this.setState(j({},t,e.target.value))}},{key:"getInputFields",value:function(e){var n=e.state,t=e.fieldNames,r=n.errors||{},i=[{type:"text",value:n.name,placeholder:"Jamie Larson",label:"Name",name:"name",required:!0,errorMessage:r.name||""},{type:"email",value:n.email,placeholder:"jamie@example.com",label:"Email",name:"email",required:!0,errorMessage:r.email||""}];return t&&t.length>0?i.filter((function(e){return t.includes(e.name)})):i}},{key:"onKeyDown",value:function(e){13===e.keyCode&&this.onProfileSave(e)}},{key:"renderProfileData",value:function(){var e=this;return(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsx)(Nl,{fields:this.getInputFields({state:this.state}),onChange:function(n,t){return e.handleInputChange(n,t)},onKeyDown:function(n,t){return e.onKeyDown(n,t)}})})}},{key:"render",value:function(){return this.context.member?(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsxs)("div",{className:"gh-portal-content with-footer",children:[(0,mr.jsx)(ua,{}),this.renderHeader(),(0,mr.jsx)("div",{className:"gh-portal-section",children:this.renderProfileData()})]}),this.renderAccountFooter()]}):null}}]),t}(t(969).Component);Ps.contextType=Cr;var Os=["title","titleId"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ts.apply(this,arguments)}function Is(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Ds(n,t){var r=n.title,i=n.titleId,o=Is(n,Os);return e.createElement("svg",Ts({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},o),js||(js=e.createElement("defs",null,e.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}\n "))),void 0===r?e.createElement("title",{id:i},"check-circle-1"):r?e.createElement("title",{id:i},r):null,Cs||(Cs=e.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"})),Ns||(Ns=e.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25})))}var Rs=e.forwardRef(Ds);t.p,t(969);function Ls(){var n=(0,e.useContext)(Cr),t=n.brandColor,r=n.lastPage,i=n.onAction;return(0,mr.jsxs)("header",{className:"gh-portal-detail-header",children:[(0,mr.jsx)(oa,{brandColor:t,hidden:!r,onClick:function(e){i("back")}}),(0,mr.jsx)("h3",{className:"gh-portal-main-title",children:"Email preferences"})]})}function Us(e){var n=e.show,t=e.checked,r=[];return n&&r.push("gh-portal-checkmark-show"),t&&r.push("gh-portal-toggle-checked"),r.push("gh-portal-checkmark-container"),(0,mr.jsx)("div",{className:r.join(" "),children:(0,mr.jsx)(Rs,{className:"gh-portal-checkmark-icon",alt:""})})}function zs(n){var t=n.newsletter,r=n.subscribedNewsletters,i=n.setSubscribedNewsletters,o=r.some((function(e){return e.id===(null===t||void 0===t?void 0:t.id)})),a=c((0,e.useState)(!1),2),l=a[0],s=a[1],u=c((0,e.useState)(null),2),p=u[0],d=u[1];return(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:t.name}),(0,mr.jsx)("p",{children:null===t||void 0===t?void 0:t.description})]}),(0,mr.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,mr.jsx)(Us,{show:l,checked:o}),(0,mr.jsx)(ca,{id:t.id,onToggle:function(e,n){var o=[];if(n){o=r.filter((function(e){return e.id!==t.id})).concat(t),s(!0),clearTimeout(p);var a=setTimeout((function(){s(!1)}),2e3);d(a)}else{o=r.filter((function(e){return e.id!==t.id})),s(!0),clearTimeout(p);var l=setTimeout((function(){s(!1)}),2e3);d(l)}i(o)},checked:o})]})]})}function Ms(n){var t=n.updateCommentNotifications,r=n.isCommentsEnabled,i=!!n.enableCommentNotifications,o=c((0,e.useState)(!1),2),a=o[0],l=o[1],s=c((0,e.useState)(null),2),u=s[0],p=s[1];return r?(0,mr.jsxs)("section",{className:"gh-portal-list-toggle-wrapper",children:[(0,mr.jsxs)("div",{className:"gh-portal-list-detail",children:[(0,mr.jsx)("h3",{children:"Comments"}),(0,mr.jsx)("p",{children:"Get notified when someone replies to your comment"})]}),(0,mr.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,mr.jsx)(Us,{show:a,checked:i}),(0,mr.jsx)(ca,{id:"comments",onToggle:function(e,n){l(!0),clearTimeout(u);var r=setTimeout((function(){l(!1)}),2e3);p(r),t(n)},checked:i})]})]}):null}function Fs(n){var t=n.subscribedNewsletters,r=n.setSubscribedNewsletters;return Li({site:(0,e.useContext)(Cr).site}).map((function(e){return(0,mr.jsx)(zs,{newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:r},null===e||void 0===e?void 0:e.id)}))}function As(e){var n=e.site;return e.isPaid?(0,mr.jsxs)("p",{style:{textAlign:"center",marginTop:"12px",marginBottom:"0",color:"var(--grey6)"},children:["Unsubscribing from emails will not cancel your paid subscription to ",null===n||void 0===n?void 0:n.title]}):null}function Bs(n){var t=n.notification,r=n.subscribedNewsletters,i=n.updateSubscribedNewsletters,o=n.updateCommentNotifications,a=n.unsubscribeAll,l=n.isPaidMember,s=n.isCommentsEnabled,c=n.enableCommentNotifications,u=(0,e.useContext)(Cr),p=u.brandColor,d=u.site,f=!(null!==r&&void 0!==r&&r.length)&&(s&&!c||!s),h=t||function(){return null};return(0,mr.jsxs)("div",{className:"gh-portal-content with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)(Ls,{}),(0,mr.jsx)(h,{}),(0,mr.jsx)("div",{className:"gh-portal-section",children:(0,mr.jsxs)("div",{className:"gh-portal-list",children:[(0,mr.jsx)(Fs,{subscribedNewsletters:r,setSubscribedNewsletters:function(e){var n=e.map((function(e){return{id:e.id}}));i(n)}}),(0,mr.jsx)(Ms,{isCommentsEnabled:s,enableCommentNotifications:c,updateCommentNotifications:o})]})}),(0,mr.jsx)("footer",{className:"gh-portal-action-footer",children:(0,mr.jsxs)("div",{style:{width:"100%"},children:[(0,mr.jsx)(Zo,{isRunning:!1,onClick:function(e){a()},disabled:f,brandColor:p,isPrimary:!1,label:"Unsubscribe from all emails",isDestructive:!0,style:{width:"100%"}}),(0,mr.jsx)(As,{isPaid:l,site:d})]})})]})}t(969);t(969);function Hs(){var n=(0,e.useContext)(Cr).site,t=n.icon;return t?(0,mr.jsx)("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:n.title}):null}function Ys(){var n=(0,e.useContext)(Cr).site.title||"";return(0,mr.jsxs)("header",{className:"gh-portal-header",children:[(0,mr.jsx)(Hs,{}),(0,mr.jsx)("h2",{className:"gh-portal-publication-title",children:n})]})}function $s(e){return Gs.apply(this,arguments)}function Gs(){return(Gs=g(f().mark((function e(n){var t,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.api,r=n.memberUuid,i=n.newsletters,o=n.enableCommentNotifications,e.prev=1,e.next=4,t.member.updateNewsletters({uuid:r,newsletters:i,enableCommentNotifications:o});case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(1);case 9:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}var Ws,qs={signin:Es,signup:Yl,accountHome:Oa,accountPlan:fl,accountProfile:Ps,accountEmail:function(){var n=(0,e.useContext)(Cr),t=n.member,r=n.onAction,i=n.site,o=be((null===t||void 0===t?void 0:t.newsletters)||[]),a=c((0,e.useState)(o),2),l=a[0],s=a[1],u=i.comments_enabled,p=t.enable_comment_notifications;return(0,e.useEffect)((function(){t||r("switchPage",{page:"signin"})}),[t,r]),(0,e.useEffect)((function(){s((null===t||void 0===t?void 0:t.newsletters)||[])}),[null===t||void 0===t?void 0:t.newsletters]),(0,mr.jsx)(Bs,{notification:null,subscribedNewsletters:l,updateSubscribedNewsletters:function(e){s(e),r("updateNewsletterPreference",{newsletters:e})},updateCommentNotifications:function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r("updateNewsletterPreference",{enableCommentNotifications:n});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),unsubscribeAll:function(){s([]),r("showPopupNotification",{action:"updated:success",message:"Email preference updated."});var e={newsletters:[]};u&&(e.enableCommentNotifications=!1),r("updateNewsletterPreference",e)},isPaidMember:fi({member:t}),isCommentsEnabled:"off"!==u,enableCommentNotifications:p})},signupNewsletter:Sl,unsubscribe:function(){var n=(0,e.useContext)(Cr),t=n.site,r=n.pageData,i=n.onAction,o=vs({siteUrl:t.url}),a=c((0,e.useState)(),2),l=a[0],s=a[1],u=Li({site:t}),p=u.filter((function(e){return e.subscribe_on_signup})),d=c((0,e.useState)(!1),2),h=d[0],m=d[1],v=c((0,e.useState)(p),2),y=v[0],b=v[1],x=c((0,e.useState)(!1),2),w=x[0],_=x[1],k=t.comments_enabled,S=(l||{}).enable_comment_notifications,E=void 0!==S&&S;return(0,e.useEffect)((function(){var e=vs({siteUrl:t.url});g(f().mark((function n(){var t,i,o,a,l;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.member.newsletters({uuid:r.uuid});case 2:if(t=n.sent,s(t),i=(null===t||void 0===t?void 0:t.newsletters)||[],b(i),1!==(null===u||void 0===u?void 0:u.length)||k){n.next=13;break}return n.next=9,$s({api:e,memberUuid:r.uuid,newsletters:[]});case 9:o=n.sent,b(o.newsletters),n.next=25;break;case 13:if(!r.newsletterUuid){n.next=20;break}return n.next=16,$s({api:e,memberUuid:r.uuid,newsletters:null===i||void 0===i?void 0:i.filter((function(e){return e.uuid!==r.newsletterUuid}))});case 16:a=n.sent,b(a.newsletters),n.next=25;break;case 20:if(!r.comments||!k){n.next=25;break}return n.next=23,$s({api:e,memberUuid:r.uuid,enableCommentNotifications:!1});case 23:l=n.sent,s(l);case 25:case"end":return n.stop()}}),n)})))()}),[k,r.uuid,r.newsletterUuid,r.comments,t.url,null===u||void 0===u?void 0:u.length]),null===l?(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:(0,mr.jsx)(Lo,{})}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"That didn't go to plan"}),(0,mr.jsx)("div",{children:(0,mr.jsx)("p",{className:"gh-portal-text-center",children:"We couldn't unsubscribe you as the email address was not found. Please contact the site owner."})}),(0,mr.jsx)(Zo,{style:{width:"100%"},retry:!1,onClick:function(){return i("closePopup")},disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]}):1!==(null===u||void 0===u?void 0:u.length)||k||w?(0,mr.jsx)(Bs,{notification:function(){if(r.comments&&k){var e=h?"gh-portal-hide":"";return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-header-message ".concat(e),children:[(0,mr.jsx)("strong",{children:null===l||void 0===l?void 0:l.email})," will no longer receive emails when someone replies to your comments."]})})}var n=null===u||void 0===u?void 0:u.find((function(e){return e.uuid===r.newsletterUuid})),t=h?"gh-portal-hide":"";return(0,mr.jsx)(mr.Fragment,{children:(0,mr.jsxs)("p",{className:"gh-portal-text-center gh-portal-header-message ".concat(t),children:[(0,mr.jsx)("strong",{children:null===l||void 0===l?void 0:l.email})," will no longer receive ",(0,mr.jsx)("strong",{children:null===n||void 0===n?void 0:n.name})," newsletter."]})})},subscribedNewsletters:y,updateSubscribedNewsletters:function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(n),m(!0),e.next=4,o.member.updateNewsletters({uuid:r.uuid,newsletters:n});case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),updateCommentNotifications:function(){var e=g(f().mark((function e(n){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.member.updateNewsletters({uuid:r.uuid,enableCommentNotifications:n});case 2:t=e.sent,s(t);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),unsubscribeAll:g(f().mark((function e(){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),b([]),i("showPopupNotification",{action:"updated:success",message:"Email preference updated."}),e.next=5,o.member.updateNewsletters({uuid:r.uuid,newsletters:[],enableCommentNotifications:!1});case 5:n=e.sent,s(n);case 7:case"end":return e.stop()}}),e)}))),isPaidMember:"free"!==(null===l||void 0===l?void 0:l.status),isCommentsEnabled:"off"!==k,enableCommentNotifications:E}):(0,mr.jsxs)("div",{className:"gh-portal-content gh-portal-unsubscribe with-footer",children:[(0,mr.jsx)(ua,{}),(0,mr.jsx)(Ys,{}),(0,mr.jsx)("h1",{className:"gh-portal-main-title",children:"Successfully unsubscribed"}),(0,mr.jsxs)("div",{children:[(0,mr.jsxs)("p",{className:"gh-portal-text-center",children:[(0,mr.jsx)("strong",{children:null===l||void 0===l?void 0:l.email})," will no longer receive this newsletter."]}),(0,mr.jsxs)("p",{className:"gh-portal-text-center",children:["Didn't mean to do this? Manage your preferences",(0,mr.jsx)("button",{className:"gh-portal-btn-link gh-portal-btn-branded gh-portal-btn-inline",onClick:function(){_(!0)},children:"here"}),"."]})]})]})},magiclink:Kl,loading:ys,offer:rs,feedback:function(){var n=(0,e.useContext)(Cr),t=n.site,r=n.pageData,i=n.member,o=r.uuid,a=r.postId,l=r.score,s=c((0,e.useState)(l),2),u=s[0],p=s[1],d=1===u,h=!!i,m=c((0,e.useState)(h),2),v=m[0],y=m[1],b=c((0,e.useState)(h),2),x=b[0],w=b[1],_=c((0,e.useState)(null),2),k=_[0],S=_[1],E=function(){var e=g(f().mark((function e(n){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.prev=1,e.next=4,ws({siteUrl:t.url,uuid:o,postId:a,score:n});case 4:p(n),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(1),r=ms.getMessageFromError(e.t0,"There was a problem submitting your feedback. Please try again or contact the site owner."),S(r);case 11:w(!1);case 12:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(n){return e.apply(this,arguments)}}(),j=function(){var e=g(f().mark((function e(n){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(n);case 2:y(!0);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return k?(0,mr.jsx)(bs,{error:k}):v?x?(0,mr.jsx)(ks,{action:E,score:u}):(0,mr.jsx)(Ss,{positive:d}):(0,mr.jsx)(xs,{onConfirm:j,loading:x,initialScore:u})}},Qs=function(e){var n=e.page;return Object.keys(qs).includes(n)?n:"signup"},Vs=qs,Ks=["title","titleId"];function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Js.apply(this,arguments)}function Xs(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function Zs(n,t){var r=n.title,i=n.titleId,o=Xs(n,Ks);return e.createElement("svg",Js({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,Ws||(Ws=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM11.8326 2.33879C6.37785 2.95189 3.95901 5.20797 3.41126 9.74699C3.34896 10.2632 3.22642 10.7805 3.10443 11.2954C2.93277 12.02 2.76221 12.74 2.76221 13.4458C2.76221 17.9885 6.5856 21.556 11.1283 21.556C12.8959 21.556 14.4433 20.8144 15.8756 20.048C19.0536 18.3478 22.0328 16.2597 22.0328 12.5411C22.0328 9.91512 20.1051 7.56932 18.466 5.5747C18.3834 5.47416 18.3015 5.37451 18.2206 5.27577C17.3866 4.25742 14.4333 2.04643 11.8326 2.33879Z",fill:"#15171A"})))}var ec=e.forwardRef(Zs),nc=(t.p,function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"render",value:function(){return(0,mr.jsxs)("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:function(){window.open("https://ghost.org","_blank")},children:[(0,mr.jsx)(ec,{}),"Powered by Ghost"]})}}]),t}(e.Component)),tc=t(969),rc=function(e){e.member;return{modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}}};function ic(e){var n=e.message;return ui()?(0,mr.jsx)("div",{className:"gh-portal-cookiebanner",children:n}):null}var oc=function(e){x(t,e);var n=E(t);function t(){return m(this,t),n.apply(this,arguments)}return y(t,[{key:"componentDidMount",value:function(){var e=this;this.node&&!so(["preview"])&&(this.node.focus(),this.keyUphandler=function(n){"Escape"===n.key&&e.dismissPopup(n)},this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler),this.node.ownerDocument.addEventListener("keyup",this.keyUphandler)),this.sendContainerHeightChangeEvent()}},{key:"dismissPopup",value:function(e){var n,t=e.target&&e.target.tagName;("INPUT"!==t||"INPUT"===t&&!(null!==e&&void 0!==e&&null!==(n=e.target)&&void 0!==n&&n.value))&&this.context.onAction("closePopup")}},{key:"sendContainerHeightChangeEvent",value:function(){var e,n;this.node&&so(["preview"])&&((null===(e=this.node)||void 0===e?void 0:e.clientHeight)!==this.lastContainerHeight&&(this.lastContainerHeight=null===(n=this.node)||void 0===n?void 0:n.clientHeight,window.document.body.style.overflow="hidden",window.document.body.style["scrollbar-width"]="none",window.parent.postMessage({type:"portal-preview-updated",payload:{height:this.lastContainerHeight}},"*")))}},{key:"componentDidUpdate",value:function(){this.sendContainerHeightChangeEvent()}},{key:"componentWillUnmount",value:function(){this.node&&this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler)}},{key:"handlePopupClose",value:function(e){so(["preview"])||(e.preventDefault(),e.target===e.currentTarget&&this.context.onAction("closePopup"))}},{key:"renderActivePage",value:function(){var e=this.context.page;Qs({page:e});var n=Vs[e];return(0,mr.jsx)(n,{})}},{key:"renderPopupNotification",value:function(){var e=this.context.popupNotification;return e&&e.type?(0,mr.jsx)(Zl,{}):null}},{key:"render",value:function(){var e=this,n=this.context,t=n.page,r=n.pageQuery,i=n.site,o=n.customSiteUrl,a=Ni({site:i}).length;Qs({page:t});var l=N({},rc({page:t}).page[t]),s="regular",c="",u=t;switch(t){case"signup":c="Cookies must be enabled in your browser to sign up.";break;case"signin":c="Cookies must be enabled in your browser to sign in.";break;case"accountHome":u="account-home";break;case"accountProfile":u="account-profile";break;case"accountPlan":u="account-plan";break;default:c="Cookies must be enabled in your browser.",u=t}a>1&&!wi({site:i,pageQuery:r})&&"signup"===t&&(u+=" full-size",s="full");var p=Ri({site:i});(p&&a>2||!p&&a>1)&&"accountPlan"===t&&(u+=" full-size",s="full");var d="gh-portal-popup-container";so(["preview"])&&(u+=" preview"),so(["preview"],{customSiteUrl:o})&&!i.disableBackground&&(d+=" preview"),so(["dev"])&&(d+=" dev");var f="".concat(d," ").concat(""," ").concat(u);return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("div",{className:"gh-portal-popup-wrapper "+u,onClick:function(n){return e.handlePopupClose(n)},children:(0,mr.jsxs)("div",{className:f,style:l,ref:function(n){return e.node=n},tabIndex:-1,children:[(0,mr.jsx)(ic,{message:c}),this.renderPopupNotification(),this.renderActivePage(),"full"===s?(0,mr.jsx)("div",{className:"gh-portal-powered inside "+(so(["preview"])?"hidden ":"")+u,children:(0,mr.jsx)(nc,{})}):""]})}),(0,mr.jsx)("div",{className:"gh-portal-powered outside "+(so(["preview"])?"hidden ":"")+u,children:(0,mr.jsx)(nc,{})})]})}}]),t}(tc.Component);oc.contextType=Cr;var ac,lc=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).state={height:null},r}return y(t,[{key:"renderCurrentPage",value:function(e){var n=Vs[e];return(0,mr.jsx)(n,{})}},{key:"onHeightChange",value:function(e){this.setState({height:e})}},{key:"handlePopupClose",value:function(e){e.preventDefault(),e.target===e.currentTarget&&this.context.onAction("closePopup")}},{key:"renderFrameStyles",value:function(){var e=function(e){var n=e.site,t=ai+'\n.gh-portal-main-title {\n text-align: center;\n color: var(--grey0);\n line-height: 1.1em;\n}\n\n.gh-portal-text-disabled {\n color: var(--grey3);\n font-weight: normal;\n opacity: 0.35;\n}\n\n.gh-portal-text-center {\n text-align: center;\n}\n\n.gh-portal-input-label {\n color: var(--grey1);\n font-size: 1.3rem;\n font-weight: 600;\n margin-bottom: 2px;\n letter-spacing: 0px;\n}\n\n.gh-portal-setting-data {\n color: var(--grey6);\n font-size: 1.3rem;\n line-height: 1.15em;\n}\n\n.gh-portal-error {\n color: var(--red);\n font-size: 1.4rem;\n line-height: 1.6em;\n margin: 12px 0;\n}\n\n/* Buttons\n/* ----------------------------------------------------- */\n.gh-portal-btn {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.5rem;\n font-weight: 500;\n line-height: 1em;\n letter-spacing: 0.2px;\n text-align: center;\n white-space: nowrap;\n text-decoration: none;\n color: var(--grey0);\n background: var(--white);\n border: 1px solid var(--grey12);\n min-width: 80px;\n height: 44px;\n padding: 0 1.8rem;\n border-radius: 6px;\n cursor: pointer;\n transition: all .25s ease;\n box-shadow: none;\n user-select: none;\n outline: none;\n}\n\n.gh-portal-btn:hover {\n border-color: var(--grey10);\n}\n\n.gh-portal-btn:disabled {\n opacity: 0.5 !important;\n cursor: auto;\n}\n\n.gh-portal-btn-container.sticky {\n transition: none;\n position: sticky;\n bottom: 0;\n margin: 0 0 -32px;\n padding: 32px 0 32px;\n background: linear-gradient(0deg, rgba(255,255,255,1) 75%, rgba(255,255,255,0) 100%);\n}\n\n.gh-portal-btn-container.sticky.m28 {\n margin: 0 0 -28px;\n padding: 28px 0 28px;\n}\n\n.gh-portal-btn-container.sticky.m24 {\n margin: 0 0 -24px;\n padding: 24px 0 24px;\n}\n\n.gh-portal-btn-container .gh-portal-btn {\n margin: 0;\n}\n\n.gh-portal-btn-icon svg {\n width: 16px;\n height: 16px;\n margin-right: 4px;\n stroke: currentColor;\n}\n\n.gh-portal-btn-icon svg path {\n stroke: currentColor;\n}\n\n.gh-portal-btn-link {\n line-height: 1;\n background: none;\n padding: 0;\n height: unset;\n min-width: unset;\n box-shadow: none;\n border: none;\n}\n\n.gh-portal-btn-link:hover {\n box-shadow: none;\n opacity: 0.85;\n}\n\n.gh-portal-btn-branded {\n color: var(--brandcolor);\n}\n\n.gh-portal-btn-list {\n font-size: 1.5rem;\n color: var(--brandcolor);\n height: 38px;\n width: unset;\n min-width: unset;\n padding: 0 4px;\n margin: 0 -4px;\n box-shadow: none;\n border: none;\n}\n\n.gh-portal-btn-list:hover {\n box-shadow: none;\n opacity: 0.75;\n}\n\n.gh-portal-btn-logout {\n position: absolute;\n top: 22px;\n left: 24px;\n background: none;\n border: none;\n height: unset;\n color: var(--grey3);\n padding: 0;\n margin: 0;\n z-index: 999;\n box-shadow: none;\n}\n\n.gh-portal-btn-logout .label {\n opacity: 0;\n transform: translateX(-6px);\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-btn-logout:hover {\n padding: 0;\n margin: 0;\n background: none;\n border: none;\n height: unset;\n box-shadow: none;\n}\n\n.gh-portal-btn-logout:hover .label {\n opacity: 1.0;\n transform: translateX(-4px);\n}\n\n.gh-portal-btn-site-title-back {\n transition: transform 0.25s ease-in-out;\n z-index: 10000;\n}\n\n.gh-portal-btn-site-title-back span {\n margin-right: 4px;\n transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);\n}\n\n\n.gh-portal-btn-site-title-back:hover span {\n transform: translateX(-3px);\n}\n\n@media (max-width: 960px) {\n .gh-portal-btn-site-title-back {\n display: none;\n }\n}\n\n.gh-portal-logouticon {\n color: var(--grey9);\n cursor: pointer;\n width: 23px;\n height: 23px;\n padding: 6px;\n transform: translateX(0);\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-logouticon path {\n stroke: var(--grey9);\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-btn-logout:hover .gh-portal-logouticon {\n transform: translateX(-2px);\n}\n\n.gh-portal-btn-logout:hover .gh-portal-logouticon path {\n stroke: var(--grey3);\n}\n\n/* Global layout styles\n/* ----------------------------------------------------- */\n.gh-portal-popup-background {\n position: absolute;\n display: block;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation: fadein 0.2s;\n background: linear-gradient(315deg , rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);\n backdrop-filter: blur(2px);\n -webkit-backdrop-filter: blur(2px);\n -webkit-transform: translate3d(0, 0, 0);\n -moz-transform: translate3d(0, 0, 0);\n -ms-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n.gh-portal-popup-background.preview {\n background: linear-gradient(45deg, rgba(255,255,255,1) 0%, rgba(249,249,250,1) 100%);\n animation: none;\n pointer-events: none;\n}\n\n@keyframes fadein {\n 0% { opacity: 0; }\n 100%{ opacity: 1.0; }\n}\n\n.gh-portal-popup-wrapper {\n position: relative;\n padding: 5vmin 0 0;\n height: 100%;\n max-height: 100vh;\n overflow: scroll;\n}\n\n/* Hiding scrollbars */\n.gh-portal-popup-wrapper {\n padding-right: 30px !important;\n margin-right: -30px !important;\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n\n.gh-portal-popup-wrapper::-webkit-scrollbar {\n display: none;\n}\n\n.gh-portal-popup-wrapper.full-size {\n height: 100vh;\n padding: 0;\n}\n\n.gh-portal-popup-container {\n outline: none;\n position: relative;\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n justify-content: flex-start;\n font-size: 1.5rem;\n text-align: left;\n letter-spacing: 0;\n text-rendering: optimizeLegibility;\n background: var(--white);\n width: 500px;\n margin: 0 auto 40px;\n padding: 32px;\n transform: translateY(0px);\n border-radius: 10px;\n box-shadow: 0 3.8px 2.2px rgba(0, 0, 0, 0.028), 0 9.2px 5.3px rgba(0, 0, 0, 0.04), 0 17.3px 10px rgba(0, 0, 0, 0.05), 0 30.8px 17.9px rgba(0, 0, 0, 0.06), 0 57.7px 33.4px rgba(0, 0, 0, 0.072), 0 138px 80px rgba(0, 0, 0, 0.1);\n animation: popup 0.25s ease-in-out;\n z-index: 9999;\n}\n\n.gh-portal-popup-container.full-size {\n width: 100vw;\n min-height: 100vh;\n justify-content: flex-start;\n animation: popup-full-size 0.25s ease-in-out;\n margin: 0;\n border-radius: 0;\n transform: translateY(0px);\n transform-origin: top;\n padding: 2vmin 6vmin;\n padding-bottom: 4vw;\n}\n\n.gh-portal-popup-container.full-size.account-plan {\n justify-content: flex-start;\n padding-top: 4vw;\n}\n\n.gh-portal-popup-container.preview {\n animation: none !important;\n}\n\n@keyframes popup {\n 0% {\n transform: translateY(-30px);\n opacity: 0;\n }\n 1% {\n transform: translateY(30px);\n opacity: 0;\n }\n 100%{\n transform: translateY(0);\n opacity: 1.0;\n }\n}\n\n@keyframes popup-full-size {\n 0% {\n transform: translateY(0px);\n opacity: 0;\n }\n 1% {\n transform: translateY(30px);\n opacity: 0;\n }\n 100%{\n transform: translateY(0);\n opacity: 1.0;\n }\n}\n\n.gh-portal-powered {\n position: absolute;\n bottom: 24px;\n left: 24px;\n z-index: 9999;\n}\n\n.gh-portal-powered a {\n border: none;\n display: flex;\n align-items: center;\n line-height: 0;\n border-radius: 4px;\n background: #ffffff;\n padding: 6px 8px 6px 7px;\n color: #303336;\n font-size: 1.25rem;\n letter-spacing: -0.2px;\n font-weight: 500;\n text-decoration: none;\n transition: color 0.5s ease-in-out;\n width: 146px;\n height: 28px;\n line-height: 28px;\n}\n\n.gh-portal-powered a:hover {\n color: #15171A;\n}\n\n@keyframes powered-fade-in {\n 0% {\n transform: scale(0.98);\n opacity: 0;\n }\n 75% {\n opacity: 1.0;\n }\n 100%{\n transform: scale(1);\n }\n}\n\n.gh-portal-powered a svg {\n height: 16px;\n width: 16px;\n margin: 0 6px 0 0;\n}\n\n.gh-portal-powered.outside.full-size {\n display: none;\n}\n\n/* Sets the main content area of the popup scrollable.\n/* 12vw is the sum horizontal padding of the popup container\n*/\n.gh-portal-content {\n position: relative;\n}\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n.gh-portal-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.gh-portal-content {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n\n.gh-portal-closeicon-container {\n position: fixed;\n top: 24px;\n right: 24px;\n z-index: 10000;\n}\n\n.gh-portal-closeicon {\n color: var(--grey10);\n cursor: pointer;\n width: 20px;\n height: 20px;\n padding: 12px;\n transition: all 0.2s ease-in-out;\n}\n\n.gh-portal-closeicon:hover {\n color: var(--grey5);\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-closeicon-container,\n.gh-portal-popup-container.full-size .gh-portal-closeicon-container {\n top: 20px;\n right: 20px;\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-closeicon,\n.gh-portal-popup-container.full-size .gh-portal-closeicon {\n color: var(--grey6);\n width: 24px;\n height: 24px;\n}\n\n.gh-portal-logout-container {\n position: absolute;\n top: 8px;\n left: 8px;\n}\n\n.gh-portal-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-bottom: 24px;\n}\n\n.gh-portal-section {\n margin-bottom: 40px;\n}\n\n.gh-portal-section.form {\n margin-bottom: 20px;\n}\n\n.gh-portal-detail-header {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: -2px 0 40px;\n}\n\n.gh-portal-detail-footer .gh-portal-btn {\n min-width: 90px;\n}\n\n.gh-portal-action-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.gh-portal-list-header {\n font-size: 1.25rem;\n font-weight: 500;\n color: var(--grey3);\n text-transform: uppercase;\n letter-spacing: 0.2px;\n line-height: 1.7em;\n margin-bottom: 4px;\n}\n\n.gh-portal-list + .gh-portal-list-header {\n margin-top: 28px;\n}\n\n.gh-portal-list + .gh-portal-action-footer {\n margin-top: 40px;\n}\n\n.gh-portal-list {\n background: var(--white);\n padding: 20px;\n border-radius: 8px;\n border: 1px solid var(--grey12);\n}\n\n.gh-portal-newsletter-selection {\n max-width: 460px;\n margin: 0 auto;\n}\n\n.gh-portal-newsletter-selection .gh-portal-list {\n margin-bottom: 40px;\n}\n\n.gh-portal-lock-icon-container {\n display: flex;\n justify-content: center;\n flex: 44px 0 0;\n padding-top: 6px;\n}\n\n.gh-portal-lock-icon {\n width: 14px;\n height: 14px;\n overflow: visible;\n}\n\n.gh-portal-lock-icon path {\n color: var(--grey2);\n}\n\n.gh-portal-text-large {\n font-size: 1.8rem;\n font-weight: 600;\n}\n\n.gh-portal-list section {\n display: flex;\n align-items: center;\n margin: 0 -20px 20px;\n padding: 0 20px 20px;\n border-bottom: 1px solid var(--grey12);\n}\n\n.gh-portal-list section:last-of-type {\n margin-bottom: 0;\n padding-bottom: 0;\n border: none;\n}\n\n.gh-portal-list-detail {\n flex-grow: 1;\n}\n\n.gh-portal-list-detail h3 {\n font-size: 1.5rem;\n font-weight: 600;\n}\n\n.gh-portal-list-detail.gh-portal-list-big h3 {\n font-size: 1.6rem;\n font-weight: 600;\n}\n\n.gh-portal-list-detail p {\n font-size: 1.45rem;\n letter-spacing: 0.3px;\n line-height: 1.3em;\n padding: 0;\n margin: 5px 8px 0 0;\n color: var(--grey6);\n word-break: break-word;\n}\n\n.gh-portal-list-detail.gh-portal-list-big p {\n font-size: 1.5rem;\n}\n\n.gh-portal-list-toggle-wrapper {\n align-items: flex-start !important;\n justify-content: space-between;\n}\n\n.gh-portal-list-toggle-wrapper .gh-portal-list-detail {\n padding: 4px 24px 4px 0px;\n}\n\n.gh-portal-list-detail .old-price {\n text-decoration: line-through;\n}\n\n.gh-portal-right-arrow {\n line-height: 1;\n color: var(--grey8);\n}\n\n.gh-portal-right-arrow svg {\n width: 17px;\n height: 17px;\n margin-top: 1px;\n margin-right: -6px;\n}\n\n.gh-portal-expire-warning {\n text-align: center;\n color: var(--red);\n font-weight: 500;\n font-size: 1.4rem;\n margin: 12px 0;\n}\n\n.gh-portal-cookiebanner {\n background: var(--red);\n color: var(--white);\n text-align: center;\n font-size: 1.4rem;\n letter-spacing: 0.2px;\n line-height: 1.4em;\n padding: 8px;\n}\n\n.gh-portal-publication-title {\n text-align: center;\n font-size: 1.6rem;\n letter-spacing: -.1px;\n font-weight: 700;\n text-transform: uppercase;\n color: #15212a;\n margin-top: 6px;\n}\n\n/* Icons\n/* ----------------------------------------------------- */\n.gh-portal-icon {\n color: var(--brandcolor);\n}\n\n/* Spacing modifiers\n/* ----------------------------------------------------- */\n.gh-portal-strong { font-weight: 600; }\n\n.mt1 { margin-top: 4px; }\n.mt2 { margin-top: 8px; }\n.mt3 { margin-top: 12px; }\n.mt4 { margin-top: 16px; }\n.mt5 { margin-top: 20px; }\n.mt6 { margin-top: 24px; }\n.mt7 { margin-top: 28px; }\n.mt8 { margin-top: 32px; }\n.mt9 { margin-top: 36px; }\n.mt10 { margin-top: 40px; }\n\n.mr1 { margin-right: 4px; }\n.mr2 { margin-right: 8px; }\n.mr3 { margin-right: 12px; }\n.mr4 { margin-right: 16px; }\n.mr5 { margin-right: 20px; }\n.mr6 { margin-right: 24px; }\n.mr7 { margin-right: 28px; }\n.mr8 { margin-right: 32px; }\n.mr9 { margin-right: 36px; }\n.mr10 { margin-right: 40px; }\n\n.mb1 { margin-bottom: 4px; }\n.mb2 { margin-bottom: 8px; }\n.mb3 { margin-bottom: 12px; }\n.mb4 { margin-bottom: 16px; }\n.mb5 { margin-bottom: 20px; }\n.mb6 { margin-bottom: 24px; }\n.mb7 { margin-bottom: 28px; }\n.mb8 { margin-bottom: 32px; }\n.mb9 { margin-bottom: 36px; }\n.mb10 { margin-bottom: 40px; }\n\n.ml1 { margin-left: 4px; }\n.ml2 { margin-left: 8px; }\n.ml3 { margin-left: 12px; }\n.ml4 { margin-left: 16px; }\n.ml5 { margin-left: 20px; }\n.ml6 { margin-left: 24px; }\n.ml7 { margin-left: 28px; }\n.ml8 { margin-left: 32px; }\n.ml9 { margin-left: 36px; }\n.ml10 { margin-left: 40px; }\n\n.pt1 { padding-top: 4px; }\n.pt2 { padding-top: 8px; }\n.pt3 { padding-top: 12px; }\n.pt4 { padding-top: 16px; }\n.pt5 { padding-top: 20px; }\n.pt6 { padding-top: 24px; }\n.pt7 { padding-top: 28px; }\n.pt8 { padding-top: 32px; }\n.pt9 { padding-top: 36px; }\n.pt10 { padding-top: 40px; }\n\n.pr1 { padding-right: 4px; }\n.pr2 { padding-right: 8px; }\n.pr3 { padding-right: 12px; }\n.pr4 { padding-right: 16px; }\n.pr5 { padding-right: 20px; }\n.pr6 { padding-right: 24px; }\n.pr7 { padding-right: 28px; }\n.pr8 { padding-right: 32px; }\n.pr9 { padding-right: 36px; }\n.pr10 { padding-right: 40px; }\n\n.pb1 { padding-bottom: 4px; }\n.pb2 { padding-bottom: 8px; }\n.pb3 { padding-bottom: 12px; }\n.pb4 { padding-bottom: 16px; }\n.pb5 { padding-bottom: 20px; }\n.pb6 { padding-bottom: 24px; }\n.pb7 { padding-bottom: 28px; }\n.pb8 { padding-bottom: 32px; }\n.pb9 { padding-bottom: 36px; }\n.pb10 { padding-bottom: 40px; }\n\n.pl1 { padding-left: 4px; }\n.pl2 { padding-left: 8px; }\n.pl3 { padding-left: 12px; }\n.pl4 { padding-left: 16px; }\n.pl5 { padding-left: 20px; }\n.pl6 { padding-left: 24px; }\n.pl7 { padding-left: 28px; }\n.pl8 { padding-left: 32px; }\n.pl9 { padding-left: 36px; }\n.pl10 { padding-left: 40px; }\n\n.hidden { display: none !important; }\n\n .gh-portal-account-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0 0 32px;\n }\n\n .gh-portal-account-header .gh-portal-avatar {\n margin: 6px 0 8px !important;\n }\n\n .gh-portal-account-data {\n margin-bottom: 40px;\n }\n\n footer.gh-portal-account-footer {\n display: flex;\n }\n\n .gh-portal-account-footer.paid {\n margin-top: 12px;\n }\n\n .gh-portal-account-footermenu {\n display: flex;\n align-items: center;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .gh-portal-account-footerright {\n display: flex;\n flex-grow: 1;\n align-items: center;\n justify-content: flex-end;\n }\n\n .gh-portal-account-footermenu li {\n margin-right: 16px;\n }\n\n .gh-portal-account-footermenu li:last-of-type {\n margin-right: 0;\n }\n\n .gh-portal-freeaccount-newsletter {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 24px;\n }\n\n .gh-portal-freeaccount-newsletter .label {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n }\n\n .gh-portal-free-ctatext {\n margin-top: -12px;\n }\n\n .gh-portal-cancelcontinue-container {\n margin: 24px 0 32px;\n }\n\n .gh-portal-billing-button-loader {\n width: 32px;\n height: 32px;\n margin-right: -3px;\n opacity: 0.6;\n }\n\n .gh-portal-product-icon {\n width: 52px;\n margin-right: 12px;\n border-radius: 2px;\n }\n\n .gh-portal-account-discountcontainer {\n position: relative;\n display: flex;\n align-items: center;\n }\n\n .gh-portal-account-old-price {\n text-decoration: line-through;\n color: var(--grey9) !important;\n }\n\n .gh-portal-account-tagicon {\n width: 16px;\n height: 16px;\n color: var(--brandcolor);\n margin-right: 5px;\n z-index: 999;\n }\n\n @media (max-width: 390px) {\n .gh-portal-account-footer {\n padding: 0 !important;\n }\n }\n\n @media (max-width: 340px) {\n .gh-portal-account-footer {\n padding: 0 !important;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .gh-portal-account-footer .gh-portal-account-footerright {\n justify-content: flex-start;\n }\n }\n\n .account-plan.full-size .gh-portal-main-title {\n font-size: 3.2rem;\n margin-top: 44px;\n }\n\n .gh-portal-accountplans-main {\n margin-top: 24px;\n margin-bottom: 0;\n }\n\n .gh-portal-expire-container {\n margin: 32px 0 0;\n }\n\n .gh-portal-cancellation-form p {\n margin-bottom: 12px;\n }\n\n .gh-portal-cancellation-form .gh-portal-input-section {\n margin-bottom: 20px;\n }\n\n .gh-portal-cancellation-form .gh-portal-input {\n resize: none;\n width: 100%;\n height: 62px;\n padding: 6px 12px;\n }\n\n .gh-portal-input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n\n display: block;\n box-sizing: border-box;\n font-size: 1.5rem;\n color: inherit;\n background: transparent;\n outline: none;\n border: 1px solid var(--grey11);\n border-radius: 6px;\n width: 100%;\n height: 44px;\n padding: 0 12px;\n margin-bottom: 18px;\n letter-spacing: 0.2px;\n transition: border-color 0.25s ease-in-out;\n }\n\n .gh-portal-input-labelcontainer {\n display: flex;\n justify-content: space-between;\n width: 100%;\n }\n\n .gh-portal-input-labelcontainer p {\n color: var(--red);\n font-size: 1.3rem;\n letter-spacing: 0.35px;\n line-height: 1.6em;\n margin-bottom: 0;\n }\n\n .gh-portal-input-label.hidden {\n display: none;\n }\n\n .gh-portal-input:focus {\n border-color: var(--grey8);\n }\n\n .gh-portal-input.error {\n border-color: var(--red);\n }\n\n .gh-portal-input::placeholder {\n color: var(--grey8);\n }\n\n .gh-portal-popup-container:not(.preview) .gh-portal-input:disabled {\n background: var(--grey13);\n color: var(--grey9);\n box-shadow: none;\n }\n\n .gh-portal-popup-container:not(.preview) .gh-portal-input:disabled::placeholder {\n color: var(--grey9);\n }\n\n .gh-portal-plans-container {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--grey11);\n border-radius: 5px;\n }\n\n .gh-portal-plan-section {\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n align-items: center;\n justify-items: center;\n font-size: 1.4rem;\n line-height: 1.35em;\n border-right: 1px solid var(--grey11);\n padding: 24px 10px;\n cursor: pointer;\n user-select: none;\n }\n\n .gh-portal-change-plan-section {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n .gh-portal-plans-container.disabled .gh-portal-plan-section {\n cursor: auto;\n }\n\n .gh-portal-plan-section.checked::before {\n position: absolute;\n display: block;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n content: "";\n z-index: 999;\n border: 2px solid var(--brandcolor);\n pointer-events: none;\n }\n\n .gh-portal-plan-section:first-of-type::before {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n\n .gh-portal-plan-section:last-of-type::before {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n }\n\n .gh-portal-plan-section:last-of-type {\n border-right: none;\n }\n\n .gh-portal-plans-container:not(.empty-selected-benefits) .gh-portal-plan-section::before {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n .gh-portal-plans-container.has-discount {\n margin-top: 40px;\n }\n\n .gh-portal-plans-container.has-discount,\n .gh-portal-plans-container.has-discount .gh-portal-plan-section:last-of-type::before {\n border-top-right-radius: 0;\n }\n\n .gh-portal-plans-container.is-change-plan .gh-portal-plan-section::before {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n .gh-portal-plans-container.disabled .gh-portal-plan-section.checked::before {\n opacity: 0.3;\n }\n\n .gh-portal-plan-pricelabel {\n display: flex;\n flex-direction: row;\n min-height: 28px;\n margin-top: 2px;\n }\n\n .gh-portal-plans-container .gh-portal-plan-pricelabel {\n min-height: unset;\n }\n\n .gh-portal-plan-pricecontainer {\n display: flex;\n }\n\n .gh-portal-plan-priceinterval {\n font-size: 1.25rem;\n line-height: 2;\n color: var(--grey7);\n }\n\n .gh-portal-plan-name {\n display: flex;\n align-items: center;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1.0em;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n margin-top: 4px;\n text-align: center;\n min-height: 24px;\n word-break: break-word;\n }\n\n .gh-portal-plan-currency {\n position: relative;\n bottom: 2px;\n font-size: 1.4rem;\n font-weight: 500;\n letter-spacing: 0.4px;\n }\n\n .gh-portal-plan-currency-code {\n margin-right: 2px;\n font-size: 1.15rem;\n }\n\n .gh-portal-plan-price {\n font-size: 2.2rem;\n font-weight: 500;\n letter-spacing: 0.1px;\n }\n\n .gh-portal-plan-type {\n color: var(--grey7);\n }\n\n .gh-portal-plan-featurewrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n border-top: 1px solid var(--grey12);\n padding-top: 12px;\n width: 100%;\n }\n\n .gh-portal-plan-feature {\n font-size: 1.25rem;\n font-weight: 500;\n line-height: 1.25em;\n text-align: center;\n letter-spacing: 0.2px;\n word-break: break-word;\n }\n\n .gh-portal-content.signup.singleplan .gh-portal-plan-section {\n cursor: auto;\n }\n\n .gh-portal-content.signup.singleplan .gh-portal-plan-section.checked::before {\n display: none;\n }\n\n .gh-portal-content.signup.singleplan .gh-portal-plan-name {\n margin-top: 0;\n }\n\n .gh-portal-plan-section:not(.checked)::before {\n position: absolute;\n display: block;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n content: "";\n z-index: 999;\n border: 1px solid var(--brandcolor);\n pointer-events: none;\n opacity: 0;\n transition: all 0.2s ease-in-out;\n }\n\n .gh-portal-plans-container.disabled .gh-portal-plan-section:not(.checked):hover::before {\n opacity: 0;\n }\n\n .gh-portal-plans-container.hide-checkbox .gh-portal-plan-section {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n\n .gh-portal-plan-current {\n display: block;\n font-size: 1.25rem;\n letter-spacing: 0.2px;\n line-height: 1.25em;\n color: var(--brandcolor);\n margin: 3px 0 -2px;\n }\n\n .gh-portal-plans-container:not(.empty-selected-benefits) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n .gh-portal-plans-container.is-change-plan {\n border-radius: 0 0 5px 5px;\n border-top: none;\n }\n\n .gh-portal-plans-container.is-change-plan .gh-portal-plan-section {\n min-height: 90px;\n }\n\n .gh-portal-plan-product {\n border: 1px solid var(--grey11);\n border-radius: 5px;\n }\n\n .gh-portal-plan-product:not(:last-of-type) {\n margin-bottom: 20px;\n }\n\n .gh-portal-plan-productname {\n border-radius: 5px 5px 0 0;\n padding: 2px 10px;\n font-size: 1.25rem;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n font-weight: 600;\n border-bottom: 1px solid var(--grey12);\n }\n\n .gh-portal-accountplans-main .gh-portal-plan-section:hover:not(.checked) {\n background: var(--grey14);\n }\n\n .gh-portal-accountplans-main .gh-portal-plan-section:last-of-type {\n border-radius: 0 0 5px 5px;\n }\n\n .gh-portal-singleproduct-benefits {\n display: flex;\n flex-direction: column;\n border: 1px solid var(--grey11);\n border-top: none !important;\n margin: 0 0 4px !important;\n padding: 16px 24px 12px !important;\n border-radius: 0 0 5px 5px;\n }\n\n .gh-portal-singleproduct-benefits.onlyfree {\n border-top: 1px solid var(--grey11) !important;\n border-radius: 5px;\n margin-top: 30px !important;\n }\n\n .gh-portal-singleproduct-benefits .gh-portal-product-benefit {\n padding: 0 8px;\n }\n\n .gh-portal-singleproduct-benefits .gh-portal-product-benefit:last-of-type {\n margin-bottom: 16px;\n }\n\n .gh-portal-singleproduct-benefits.onlyfree .gh-portal-product-benefit:last-of-type {\n margin-bottom: 4px;\n }\n\n .gh-portal-singleproduct-benefits:not(.no-benefits) .gh-portal-product-description {\n border-bottom: 1px solid var(--grey12);\n padding-bottom: 20px;\n margin-bottom: 16px;\n }\n'+function(e){return e.site,'\n .gh-portal-products {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .gh-portal-products-pricetoggle {\n position: relative;\n display: flex;\n background: #F3F3F3;\n width: 100%;\n border-radius: 999px;\n padding: 4px;\n height: 44px;\n margin: 0 0 40px;\n }\n\n .gh-portal-products-pricetoggle:before {\n position: absolute;\n content: "";\n display: block;\n width: 50%;\n top: 4px;\n bottom: 4px;\n right: 4px;\n background: #fff;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);\n border-radius: 999px;\n transition: all 0.15s ease-in-out;\n }\n\n .gh-portal-products-pricetoggle.left:before {\n transform: translateX(calc(-100% + 8px));\n }\n\n .gh-portal-products-pricetoggle .gh-portal-btn {\n border: 0;\n height: 100% !important;\n width: 50%;\n border-radius: 999px;\n color: var(--grey7);\n background: transparent;\n font-size: 1.5rem;\n }\n\n .gh-portal-products-pricetoggle .gh-portal-btn.active {\n border: 0;\n height: 100%;\n width: 50%;\n color: var(--grey0);\n /*background: white;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);*/\n }\n\n .gh-portal-priceoption-label {\n font-size: 1.4rem;\n font-weight: 400;\n letter-spacing: 0.3px;\n margin: 0 6px;\n min-width: 180px;\n }\n\n .gh-portal-priceoption-label.monthly {\n text-align: right;\n }\n\n .gh-portal-priceoption-label.inactive {\n color: var(--grey8);\n }\n\n .gh-portal-products-grid {\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n justify-content: center;\n gap: 40px;\n margin: 0 auto;\n padding: 0;\n width: 100%;\n }\n\n .gh-portal-product-card {\n flex: 1;\n max-width: 420px;\n min-width: 320px;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: stretch;\n background: white;\n padding: 32px;\n border-radius: 7px;\n border: 1px solid var(--grey11);\n min-height: 200px;\n transition: border-color 0.25s ease-in-out;\n }\n\n .gh-portal-product-card.top {\n border-bottom: none;\n border-radius: 7px 7px 0 0;\n padding-bottom: 0;\n }\n\n .gh-portal-product-card.bottom {\n border-top: none;\n border-radius: 0 0 7px 7px;\n padding-top: 0;\n }\n\n .gh-portal-product-card:not(.disabled):hover {\n border-color: var(--grey9);\n }\n\n .gh-portal-product-card.checked::before {\n position: absolute;\n display: block;\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n content: "";\n z-index: 999;\n border: 0px solid var(--brandcolor);\n pointer-events: none;\n border-radius: 7px;\n }\n\n .gh-portal-product-card-header {\n width: 100%;\n min-height: 56px;\n }\n\n .gh-portal-product-card-name-trial {\n display: flex;\n align-items: center;\n }\n\n .gh-portal-product-card-name-trial .gh-portal-discount-label {\n margin-top: -4px;\n }\n\n .gh-portal-product-card-details {\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .gh-portal-product-name {\n font-size: 1.8rem;\n font-weight: 600;\n line-height: 1.3em;\n letter-spacing: 0px;\n margin-top: -4px;\n word-break: break-word;\n width: 100%;\n color: var(--brandcolor);\n }\n\n .gh-portal-discount-label-trial {\n color: var(--brandcolor);\n font-weight: 600;\n font-size: 1.3rem;\n line-height: 1;\n margin-top: 4px;\n }\n\n .gh-portal-discount-label {\n position: relative;\n font-size: 1.25rem;\n line-height: 1em;\n font-weight: 600;\n letter-spacing: 0.3px;\n color: var(--grey0);\n padding: 6px 9px;\n text-align: center;\n white-space: nowrap;\n border-radius: 999px;\n margin-right: -4px;\n max-height: 24.5px;\n }\n\n .gh-portal-discount-label:before {\n position: absolute;\n content: "";\n display: block;\n background: var(--brandcolor);\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 999px;\n opacity: 0.2;\n }\n\n .gh-portal-product-card-price-trial {\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: space-between;\n flex-wrap: wrap;\n row-gap: 10px;\n column-gap: 4px;\n width: 100%;\n }\n\n .gh-portal-product-card-pricecontainer {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n margin-top: 16px;\n }\n\n .gh-portal-product-price {\n display: flex;\n justify-content: center;\n color: var(--grey0);\n }\n\n .gh-portal-product-price .currency-sign {\n align-self: flex-start;\n font-size: 2.7rem;\n font-weight: 700;\n line-height: 1.135em;\n }\n\n .gh-portal-product-price .currency-sign.long {\n margin-right: 5px;\n }\n\n .gh-portal-product-price .amount {\n font-size: 3.5rem;\n font-weight: 700;\n line-height: 1em;\n letter-spacing: -1.3px;\n color: var(--grey0);\n }\n\n .gh-portal-product-price .amount.trial-duration {\n letter-spacing: -0.022em;\n }\n\n .gh-portal-product-price .billing-period {\n align-self: flex-end;\n font-size: 1.5rem;\n line-height: 1.6em;\n color: var(--grey5);\n letter-spacing: 0.3px;\n margin-left: 5px;\n }\n\n .gh-portal-product-alternative-price {\n font-size: 1.3rem;\n line-height: 1.6em;\n color: var(--grey8);\n letter-spacing: 0.3px;\n display: none;\n }\n\n .after-trial-amount {\n display: block;\n font-size: 1.5rem;\n color: var(--grey5);\n margin-top: 6px;\n margin-bottom: 6px;\n line-height: 1;\n }\n\n .gh-portal-product-card-detaildata {\n flex: 1;\n }\n\n .gh-portal-product-description {\n font-size: 1.55rem;\n font-weight: 600;\n line-height: 1.4em;\n width: 100%;\n margin-top: 16px;\n }\n\n .gh-portal-product-benefits {\n font-size: 1.5rem;\n line-height: 1.4em;\n width: 100%;\n margin-top: 16px;\n }\n\n .gh-portal-product-benefit {\n display: flex;\n align-items: flex-start;\n margin-bottom: 10px;\n }\n\n .gh-portal-benefit-checkmark {\n width: 14px;\n height: 14px;\n min-width: 14px;\n margin: 3px 10px 0 0;\n overflow: visible;\n }\n\n .gh-portal-benefit-checkmark polyline,\n .gh-portal-benefit-checkmark g {\n stroke-width: 3px;\n }\n\n .gh-portal-products-grid.change-plan {\n padding: 0;\n }\n\n .gh-portal-btn-product {\n position: sticky;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n width: 100%;\n justify-self: flex-end;\n padding: 40px 0 32px;\n margin-bottom: -32px;\n /*background: rgb(255,255,255);\n background: linear-gradient(0deg, rgba(255,255,255,1) 75%, rgba(255,255,255,0) 100%);*/\n background: transparent;\n }\n\n .gh-portal-btn-product::before {\n position: absolute;\n content: "";\n display: block;\n top: -16px;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(0deg, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 100%);\n z-index: 800;\n }\n\n .gh-portal-btn-product .gh-portal-btn {\n background: var(--brandcolor);\n color: #fff;\n border: none;\n width: 100%;\n z-index: 900;\n }\n\n .gh-portal-btn-product .gh-portal-btn:hover {\n opacity: 0.9;\n }\n\n .gh-portal-current-plan {\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n white-space: nowrap;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n color: var(--grey5);\n font-size: 1.4rem;\n font-weight: 500;\n line-height: 1em;\n letter-spacing: 0.2px;\n font-weight: 500;\n background: #f0f0f0;\n z-index: 900;\n }\n\n .gh-portal-product-card.only-free {\n margin: 0 0 16px;\n min-height: unset;\n }\n\n .gh-portal-product-card.only-free .gh-portal-product-card-header {\n min-height: unset;\n }\n\n @media (max-width: 670px) {\n .gh-portal-products-grid {\n grid-template-columns: unset;\n grid-gap: 20px;\n width: 100%;\n max-width: 440px;\n }\n\n .gh-portal-priceoption-label {\n font-size: 1.25rem;\n }\n\n .gh-portal-products-priceswitch .gh-portal-discount-label {\n display: none;\n }\n\n .gh-portal-products-priceswitch {\n padding-top: 18px;\n }\n\n .gh-portal-product-card {\n min-height: unset;\n }\n\n .gh-portal-singleproduct-benefits .gh-portal-product-description {\n text-align: center;\n }\n\n .gh-portal-product-benefit:last-of-type {\n margin-bottom: 0;\n }\n }\n\n @media (max-width: 480px) {\n .gh-portal-product-price .amount {\n font-size: 3.4rem;\n }\n\n .gh-portal-product-card {\n min-width: unset;\n }\n\n .gh-portal-btn-product {\n position: static;\n }\n\n .gh-portal-btn-product::before {\n display: none;\n }\n }\n\n @media (max-width: 370px) {\n .gh-portal-product-price .currency-sign {\n font-size: 1.8rem;\n }\n\n .gh-portal-product-price .amount {\n font-size: 2.8rem;\n }\n }\n\n\n /* Upgrade and change plan*/\n .gh-portal-upgrade-product {\n margin-top: -70px;\n padding-top: 60px;\n }\n\n .gh-portal-upgrade-product .gh-portal-products-grid {\n grid-template-columns: unset;\n grid-gap: 20px;\n width: 100%;\n }\n\n .gh-portal-upgrade-product .gh-portal-product-card .gh-portal-plan-current {\n display: inline-block;\n position: relative;\n padding: 2px 8px;\n font-size: 1.2rem;\n letter-spacing: 0.3px;\n text-transform: uppercase;\n margin-bottom: 4px;\n }\n\n .gh-portal-upgrade-product .gh-portal-product-card .gh-portal-plan-current::before {\n position: absolute;\n content: "";\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border-radius: 999px;\n background: var(--brandcolor);\n opacity: 0.15;\n }\n\n @media (max-width: 880px) {\n .gh-portal-products-grid {\n flex-direction: column;\n margin: 0 auto;\n max-width: 420px;\n }\n\n .gh-portal-product-card-header {\n min-height: unset;\n }\n }\n '}({site:n})+'\n .gh-portal-for-switch label,\n .gh-portal-for-switch .container {\n position: relative;\n display: inline-block;\n width: 44px !important;\n height: 26px !important;\n cursor: pointer;\n }\n\n .gh-portal-for-switch label p,\n .gh-portal-for-switch .container p {\n overflow: auto;\n color: var(--grey0);\n font-weight: normal;\n }\n\n .gh-portal-for-switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .gh-portal-for-switch .input-toggle-component {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: #e9e9e9;\n transition: .3s;\n width: 44px !important;\n height: 26px !important;\n border-radius: 999px;\n transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;\n cursor: pointer;\n }\n\n .gh-portal-for-switch label:hover input:not(:checked) + .input-toggle-component,\n .gh-portal-for-switch .container:hover input:not(:checked) + .input-toggle-component {\n border-color: var(--grey9);\n }\n\n .gh-portal-for-switch .input-toggle-component:before {\n position: absolute;\n content: "";\n top: 3px !important;\n left: 3px !important;\n height: 20px !important;\n width: 20px !important;\n background-color: white;\n transition: .3s;\n border-radius: 999px;\n }\n\n .gh-portal-for-switch input:checked + .input-toggle-component {\n background: var(--brandcolor);\n border-color: transparent;\n }\n\n .gh-portal-for-switch input:checked + .input-toggle-component:before {\n transform: translateX(18px);\n box-shadow: none;\n }\n\n .gh-portal-for-switch .container {\n width: 38px !important;\n height: 22px !important;\n }\n\n .gh-portal-btn-main {\n box-shadow: none;\n position: relative;\n border: none;\n }\n\n .gh-portal-btn-main:hover,\n .gh-portal-btn-main:focus {\n box-shadow: none;\n border: none;\n }\n\n .gh-portal-btn-primary:hover,\n .gh-portal-btn-primary:focus {\n opacity: 0.92 !important;\n }\n\n .gh-portal-btn-primary:disabled:hover::before {\n display: none;\n }\n\n .gh-portal-btn-destructive:not(:disabled):hover {\n color: var(--red);\n border-color: var(--red);\n }\n\n .gh-portal-btn-text {\n padding: 0;\n font-weight: 500;\n height: unset;\n border: none;\n box-shadow: none;\n }\n\n .gh-portal-loadingicon {\n position: absolute;\n left: 50%;\n display: inline-block;\n margin-left: -19px;\n height: 31px;\n }\n\n .gh-portal-loadingicon path,\n .gh-portal-loadingicon rect {\n fill: #fff;\n }\n\n .gh-portal-loadingicon.dark path,\n .gh-portal-loadingicon.dark rect {\n fill: #1d1d1d;\n }\n\n .gh-portal-btn-back,\n .gh-portal-btn-back:hover {\n box-shadow: none;\n position: relative;\n height: unset;\n min-width: unset;\n position: fixed;\n top: 29px;\n left: 25px;\n background: none;\n padding: 8px;\n margin: 0;\n box-shadow: none;\n color: var(--grey3);\n border: none;\n z-index: 10000;\n }\n\n .gh-portal-btn-back:hover {\n color: var(--grey1);\n transform: translateX(-4px);\n }\n\n .gh-portal-btn-back svg {\n width: 17px;\n height: 17px;\n margin-top: 1px;\n margin-right: 2px;\n }\n'+Sr+"\n .gh-portal-icon-envelope {\n width: 44px;\n margin: 12px 0 10px;\n }\n\n .gh-portal-inbox-notification {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .gh-portal-inbox-notification p {\n text-align: center;\n margin-bottom: 30px;\n }\n\n.gh-portal-back-sitetitle {\n position: absolute;\n top: 35px;\n left: 32px;\n}\n\n.gh-portal-back-sitetitle .gh-portal-btn {\n padding: 0;\n border: 0;\n font-size: 1.5rem;\n height: auto;\n line-height: 1em;\n color: var(--grey1);\n}\n\n.gh-portal-popup-wrapper:not(.full-size) .gh-portal-back-sitetitle,\n.gh-portal-popup-wrapper.preview .gh-portal-back-sitetitle {\n display: none;\n}\n\n.gh-portal-signup-logo {\n position: relative;\n display: block;\n background-position: 50%;\n background-size: cover;\n border-radius: 2px;\n width: 60px;\n height: 60px;\n margin: 12px 0 10px;\n}\n\n.gh-portal-signup-header,\n.gh-portal-signin-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 32px;\n margin-bottom: 32px;\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-signup-header {\n margin-top: 32px;\n}\n\n.gh-portal-signup-header .gh-portal-main-title,\n.gh-portal-signin-header .gh-portal-main-title {\n margin-top: 12px;\n}\n\n.gh-portal-signup-logo + .gh-portal-main-title {\n margin: 4px 0 0;\n}\n\n.gh-portal-signup-header .gh-portal-main-subtitle {\n font-size: 1.5rem;\n text-align: center;\n line-height: 1.45em;\n margin: 4px 0 0;\n color: var(--grey3);\n}\n\n.gh-portal-logged-out-form-container {\n width: 100%;\n max-width: 420px;\n margin: 0 auto;\n}\n\n.signup .gh-portal-input-section:last-of-type {\n margin-bottom: 40px;\n}\n\n.gh-portal-signup-message {\n display: flex;\n justify-content: center;\n color: var(--grey4);\n font-size: 1.5rem;\n margin: 16px 0 0;\n}\n\n.gh-portal-signup-message,\n.gh-portal-signup-message * {\n z-index: 9999;\n}\n\n.full-size .gh-portal-signup-message {\n margin: 24px 0 40px;\n}\n\n@media (max-width: 480px) {\n .preview .gh-portal-products + .gh-portal-signup-message {\n margin-bottom: 40px;\n }\n}\n\n.gh-portal-signup-message button {\n font-size: 1.4rem;\n font-weight: 600;\n margin-left: 4px !important;\n}\n\n.gh-portal-signup-message button span {\n display: inline-block;\n padding-bottom: 2px;\n margin-bottom: -2px;\n}\n\n.gh-portal-content.signup.invite-only {\n background: none;\n}\n\nfooter.gh-portal-signup-footer,\nfooter.gh-portal-signin-footer {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n padding-top: 24px;\n height: unset;\n}\n\n.gh-portal-content.signup,\n.gh-portal-content.signin {\n max-height: unset !important;\n padding-bottom: 0;\n}\n\n.gh-portal-content.signin {\n padding-bottom: 4px;\n}\n\n.gh-portal-content.signup .gh-portal-section {\n margin-bottom: 0;\n}\n\n.gh-portal-content.signup.single-field {\n margin-bottom: 4px;\n}\n\n.gh-portal-content.signup.single-field .gh-portal-input,\n.gh-portal-content.signin .gh-portal-input {\n margin-bottom: 8px;\n}\n\n.gh-portal-content.signup.single-field + .gh-portal-signup-footer,\nfooter.gh-portal-signin-footer {\n padding-top: 12px;\n}\n\n.gh-portal-content.signin .gh-portal-section {\n margin-bottom: 0;\n}\n\nfooter.gh-portal-signup-footer.invite-only {\n height: unset;\n}\n\nfooter.gh-portal-signup-footer.invite-only .gh-portal-signup-message {\n margin-top: 0;\n}\n\n.gh-portal-invite-only-notification {\n margin: 8px 32px 24px;\n padding: 0;\n text-align: center;\n color: var(--grey2);\n}\n\n.gh-portal-icon-invitation {\n width: 44px;\n height: 44px;\n margin: 12px 0 2px;\n}\n\n.gh-portal-popup-wrapper.full-size .gh-portal-popup-container.preview footer.gh-portal-signup-footer {\n padding-bottom: 32px;\n}\n\n.gh-portal-invite-only-notification + .gh-portal-signup-message {\n margin-bottom: 12px;\n}\n\n.gh-portal-free-trial-notification {\n max-width: 480px;\n text-align: center;\n margin: 24px auto;\n color: var(--grey4);\n}\n\n@media (min-width: 480px) {\n\n}\n\n@media (max-width: 480px) {\n .gh-portal-signup-logo {\n width: 48px;\n height: 48px;\n }\n}\n\n@media (min-width: 480px) and (max-width: 820px) {\n .gh-portal-powered.outside {\n left: 50%;\n transform: translateX(-50%);\n }\n}\n"+function(e){return e.site,"\n.gh-portal-offer {\n padding-bottom: 0;\n overflow: unset;\n max-height: unset;\n}\n\n.gh-portal-offer-container {\n display: flex;\n flex-direction: column;\n}\n\n.gh-portal-plans-container.offer {\n justify-content: space-between;\n border-color: var(--grey12);\n border-top: none;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n padding: 12px 16px;\n font-size: 1.3rem;\n}\n\n.gh-portal-offer-bar {\n position: relative;\n padding: 26px 28px 28px;\n margin-bottom: 24px;\n /*border: 1px dashed var(--brandcolor);*/\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='99.9%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23C3C3C3' stroke-width='3' stroke-dasharray='3%2c 9' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e\");\n border-radius: 6px;\n}\n\n.gh-portal-offer-title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.gh-portal-offer-title h4 {\n font-size: 1.8rem;\n margin: 0 110px 0 0;\n width: 100%;\n}\n\n.gh-portal-offer-title h4.placeholder {\n opacity: 0.4;\n}\n\n.gh-portal-offer-bar .gh-portal-discount-label {\n position: absolute;\n top: 23px;\n right: 25px;\n}\n\n.gh-portal-offer-bar p {\n padding-bottom: 0;\n margin: 12px 0 0;\n}\n\n.gh-portal-offer-title h4 + p {\n margin: 12px 0 0;\n}\n\n.gh-portal-offer-details .gh-portal-plan-name,\n.gh-portal-offer-details p {\n margin-right: 8px;\n}\n\n.gh-portal-offer .footnote {\n font-size: 1.35rem;\n color: var(--grey8);\n margin: 4px 0 0;\n}\n\n.offer .gh-portal-product-card {\n max-width: unset;\n min-height: 0;\n}\n\n.offer .gh-portal-product-card .gh-portal-product-card-pricecontainer:not(.offer-type-trial) {\n margin-top: 0px;\n}\n\n.offer .gh-portal-product-card-header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.gh-portal-offer-oldprice {\n display: flex;\n position: relative;\n font-size: 1.8rem;\n font-weight: 300;\n color: var(--grey8);\n line-height: 1;\n white-space: nowrap;\n margin: 16px 0 4px;\n}\n\n.gh-portal-offer-oldprice:after {\n position: absolute;\n display: block;\n content: \"\";\n left: 0;\n top: 50%;\n right: 0;\n height: 1px;\n background: var(--grey8);\n}\n\n.gh-portal-offer-details p {\n margin-bottom: 12px;\n}\n\n.offer .after-trial-amount {\n margin-bottom: 0;\n}\n\n.offer .trial-duration {\n margin-top: 16px;\n}\n\n.gh-portal-cancel {\n white-space: nowrap;\n}\n "}({site:n})+'\n .gh-portal-popupnotification {\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n padding: 12px;\n background: var(--grey2);\n z-index: 11000;\n border-radius: 5px;\n font-size: 1.5rem;\n box-shadow: 0px 0.8151839971542358px 0.8151839971542358px 0px rgba(0,0,0,0.01),\n 0px 2.2538793087005615px 2.2538793087005615px 0px rgba(0,0,0,0.02),\n 0px 5.426473140716553px 5.426473140716553px 0px rgba(0,0,0,0.03),\n 0px 18px 18px 0px rgba(0,0,0,0.04);\n animation: popupnotification-slidein 0.3s ease-in-out;\n }\n\n .gh-portal-popupnotification.slideout {\n animation: popupnotification-slideout 0.48s ease-in;\n }\n\n .gh-portal-popupnotification p {\n color: var(--white);\n margin: 0;\n padding: 0 20px;\n font-size: 1.5rem;\n line-height: 1.5em;\n letter-spacing: 0.2px;\n text-align: center;\n }\n\n .gh-portal-popupnotification a {\n color: var(--white);\n }\n\n .gh-portal-popupnotification-icon {\n position: absolute;\n top: 12px;\n left: 12px;\n width: 20px;\n height: 20px;\n }\n\n .gh-portal-popupnotification-icon.success {\n color: var(--green);\n }\n\n .gh-portal-popupnotification-icon.error {\n color: #FF2828;\n }\n\n .gh-portal-popupnotification .closeicon {\n position: absolute;\n top: 3px;\n bottom: 0;\n right: 3px;\n color: var(--white);\n cursor: pointer;\n width: 16px;\n height: 16px;\n padding: 12px;\n transition: all 0.15s ease-in-out forwards;\n opacity: 0.8;\n }\n\n .gh-portal-popupnotification .closeicon:hover {\n opacity: 1.0;\n }\n\n @keyframes popupnotification-slidein {\n 0% { \n transform: translateY(-10px); \n opacity: 0;\n }\n 60% { transform: translateY(2px); }\n 100% { \n transform: translateY(0); \n opacity: 1.0;\n }\n }\n\n @keyframes popupnotification-slideout {\n 0% { \n transform: translateY(0);\n opacity: 1.0;\n }\n 40% { transform: translateY(2px); }\n 100% { \n transform: translateY(-10px);\n opacity: 0;\n }\n }\n\n@media (max-width: 1440px) {\n .gh-portal-popup-container:not(.full-size):not(.preview) {\n width: 460px;\n }\n\n .gh-portal-input {\n height: 42px;\n margin-bottom: 16px;\n }\n\n button[class="gh-portal-btn"],\n .gh-portal-btn-main,\n .gh-portal-btn-primary {\n height: 42px;\n }\n\n .gh-portal-product-price .amount {\n font-size: 32px;\n letter-spacing: -0.022em;\n }\n}\n\n@media (max-width: 960px) {\n .gh-portal-powered {\n display: flex;\n position: relative;\n bottom: unset;\n left: unset;\n background: var(--white);\n justify-content: center;\n width: 100%;\n padding-top: 32px;\n }\n}\n\n@media (min-width: 520px) {\n .gh-portal-popup-wrapper.full-size .gh-portal-popup-container.preview {\n box-shadow:\n 0 0 0 1px rgba(0,0,0,0.02),\n 0 2.8px 2.2px rgba(0, 0, 0, 0.02),\n 0 6.7px 5.3px rgba(0, 0, 0, 0.028),\n 0 12.5px 10px rgba(0, 0, 0, 0.035),\n 0 22.3px 17.9px rgba(0, 0, 0, 0.042),\n 0 41.8px 33.4px rgba(0, 0, 0, 0.05),\n 0 100px 80px rgba(0, 0, 0, 0.07);\n animation: none;\n margin: 32px;\n padding: 32px 32px 0;\n width: calc(100vw - 64px);\n height: calc(100vh - 160px);\n min-height: unset;\n border-radius: 12px;\n overflow: auto;\n justify-content: flex-start;\n }\n}\n\n@media (max-width: 480px) {\n .gh-portal-detail-header {\n margin-top: 4px;\n }\n\n .gh-portal-popup-wrapper {\n height: 100%;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n background: var(--white);\n overflow-y: auto;\n }\n\n .gh-portal-popup-container {\n width: 100% !important;\n border-radius: 0;\n overflow: unset;\n animation: popup-mobile 0.25s ease-in-out;\n box-shadow: none !important;\n transform: translateY(0);\n padding: 28px !important;\n }\n\n .gh-portal-popup-container.full-size {\n justify-content: flex-start;\n }\n\n .gh-portal-popup-wrapper.account-home,\n .gh-portal-popup-container.account-home {\n background: var(--grey13);\n }\n\n .gh-portal-popup-wrapper.full-size .gh-portal-closeicon, \n .gh-portal-popup-container.full-size .gh-portal-closeicon {\n width: 16px;\n height: 16px;\n }\n\n /* Small width preview in Admin */\n .gh-portal-popup-wrapper.preview:not(.full-size) footer.gh-portal-signup-footer, \n .gh-portal-popup-wrapper.preview:not(.full-size) footer.gh-portal-signin-footer {\n padding-bottom: 32px;\n }\n\n .gh-portal-popup-container.preview:not(.full-size) {\n max-height: 660px;\n margin-bottom: 0;\n }\n\n .gh-portal-popup-container.preview:not(.full-size).offer {\n max-height: 860px;\n padding-bottom: 0 !important;\n }\n\n .gh-portal-popup-wrapper.preview.full-size {\n height: unset;\n max-height: 660px;\n }\n\n .gh-portal-popup-container.preview.full-size {\n max-height: 660px;\n margin-bottom: 0;\n }\n \n .preview .gh-portal-invite-only-notification + .gh-portal-signup-message {\n margin-bottom: 16px;\n }\n\n .preview .gh-portal-btn-container.sticky {\n margin-bottom: 32px;\n padding-bottom: 0;\n }\n\n .gh-portal-powered {\n padding-top: 12px;\n padding-bottom: 24px;\n }\n}\n\n@media (max-width: 390px) {\n .gh-portal-popup-container:not(.account-plan) .gh-portal-detail-header .gh-portal-main-title {\n font-size: 2.1rem;\n margin-top: 1px;\n padding: 0 74px;\n text-align: center;\n }\n\n .gh-portal-input {\n margin-bottom: 16px;\n }\n\n .gh-portal-signup-header,\n .gh-portal-signin-header {\n padding-bottom: 16px;\n }\n}\n\n@media (min-width: 480px) and (max-height: 880px) {\n .gh-portal-popup-wrapper {\n padding: 4vmin 0 0;\n }\n}\n\n@keyframes popup-mobile {\n 0% {\n opacity: 0;\n }\n 100%{\n opacity: 1.0;\n }\n}\n\n/* Prevent zoom */\n@media (hover:none) {\n select, textarea, input[type="text"], input[type="text"], input[type="password"],\n input[type="datetime"], input[type="datetime-local"],\n input[type="date"], input[type="month"], input[type="time"],\n input[type="week"], input[type="number"], input[type="email"],\n input[type="url"] {\n font-size: 16px !important;\n }\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-input-section {\n max-width: 420px;\n margin: 0 auto;\n}\n\n/* Multiple product signup/signin-only modifications! */\n.gh-portal-popup-wrapper.multiple-products {\n background: #fff;\n box-shadow: 0 3.8px 2.2px rgba(0, 0, 0, 0.028), 0 9.2px 5.3px rgba(0, 0, 0, 0.04), 0 17.3px 10px rgba(0, 0, 0, 0.05), 0 30.8px 17.9px rgba(0, 0, 0, 0.06), 0 57.7px 33.4px rgba(0, 0, 0, 0.072), 0 138px 80px rgba(0, 0, 0, 0.1);\n padding: 0;\n border-radius: 5px;\n height: calc(100vh - 64px);\n max-width: calc(100vw - 64px);\n}\n\n.gh-portal-popup-wrapper.multiple-products.signup {\n overflow-y: scroll;\n overflow-x: clip;\n margin: 32px auto !important;\n padding-right: 0 !important; /* Override scrollbar hiding */\n}\n\n.gh-portal-popup-wrapper.multiple-products.signin {\n margin: 10vmin auto;\n max-width: 480px;\n height: unset;\n}\n\n.gh-portal-popup-wrapper.multiple-products.preview {\n height: calc(100vh - 150px) !important;\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-popup-container {\n align-items: center;\n width: 100% !important;\n box-shadow: none !important;\n animation: fadein 0.35s ease-in-out;\n padding: 1vmin 0;\n transform: translateY(0px);\n margin-bottom: 0;\n}\n\n.gh-portal-popup-wrapper.multiple-products.signup .gh-portal-popup-container {\n min-height: calc(100vh - 64px);\n position: unset;\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-powered {\n position: relative;\n display: flex;\n flex: 1;\n align-items: flex-end;\n justify-content: flex-start;\n bottom: unset;\n left: unset;\n width: 100%;\n z-index: 10000;\n padding-bottom: 32px;\n}\n\n@media (max-width: 670px) {\n .gh-portal-popup-wrapper.multiple-products .gh-portal-powered {\n justify-content: center;\n }\n}\n\n.gh-portal-popup-wrapper.multiple-products .gh-portal-content {\n position: unset;\n overflow-y: visible;\n max-height: unset !important;\n}\n\n@media (max-width: 960px) {\n .gh-portal-popup-wrapper.multiple-products.signup:not(.preview) {\n margin: 20px !important;\n height: 100%;\n }\n}\n\n@media (max-width: 480px) {\n .gh-portal-popup-wrapper.multiple-products {\n margin: 0 !important;\n max-width: unset !important;\n max-height: 100% !important;\n height: 100% !important;\n border-radius: 0px;\n box-shadow: none;\n }\n\n .gh-portal-popup-wrapper.multiple-products.signup:not(.preview) {\n margin: 0 !important;\n }\n\n .gh-portal-popup-wrapper.multiple-products.preview {\n height: unset !important;\n margin: 0 !important;\n }\n\n .gh-portal-popup-wrapper.multiple-products:not(.dev) .gh-portal-popup-container.preview {\n max-height: 640px;\n }\n}\n\n.gh-portal-popup-container.preview * {\n pointer-events: none !important;\n}\n\n.gh-portal-unsubscribe-logo {\n width: 60px;\n height: 60px;\n border-radius: 2px;\n margin-top: 12px;\n margin-bottom: 6px;\n}\n\n@media (max-width: 480px) {\n .gh-portal-unsubscribe-logo {\n width: 48px;\n height: 48px;\n }\n}\n\n.gh-portal-unsubscribe .gh-portal-main-title {\n margin-bottom: 16px;\n font-size: 2.6rem;\n}\n\n.gh-portal-unsubscribe p {\n margin-bottom: 16px;\n}\n\n.gh-portal-unsubscribe p:last-of-type {\n margin-bottom: 0;\n}\n\n.gh-portal-btn-inline {\n display: inline-block;\n margin-left: 4px;\n font-size: 1.5rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.gh-portal-toggle-checked {\n transition: all 0.3s;\n transition-delay: 2s;\n}\n\n.gh-portal-checkmark-container {\n display: flex;\n opacity: 0;\n margin-right: 8px;\n transition: opacity ease 0.4s 0.2s;\n}\n\n.gh-portal-checkmark-show {\n opacity: 1;\n}\n\n.gh-portal-checkmark-icon {\n height: 22px;\n color: #30cf43;\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n.gh-portal-newsletter-selection {\n animation: 0.5s ease-in-out fadeIn;\n}\n\n.gh-portal-signup {\n animation: 0.5s ease-in-out fadeIn;\n}\n\n.gh-portal-btn-different-plan {\n margin: 0 auto 24px;\n color: var(--grey6);\n font-weight: 400;\n}\n\n.gh-portal-hide {\n display: none;\n}\n\n .gh-portal-feedback {\n\n }\n\n .gh-portal-feedback .gh-feedback-icon {\n padding: 10px 0;\n text-align: center;\n color: var(--brandcolor);\n width: 48px;\n margin: 0 auto;\n }\n\n .gh-portal-feedback .gh-feedback-icon.gh-feedback-icon-error {\n color: #f50b23;\n }\n\n .gh-portal-feedback .gh-portal-text-center {\n padding: 15px 0;\n }\n\n .gh-portal-confirm-title {\n line-height: inherit;\n text-align: center;\n box-sizing: border-box;\n margin: 0;\n margin-bottom: .4rem;\n font-size: 24px;\n font-weight: 700;\n letter-spacing: -.018em;\n }\n\n .gh-portal-confirm-button {\n width: 100%;\n margin-top: 3.6rem;\n }\n\n .gh-feedback-buttons-group {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px;\n margin-top: 3.6rem;\n }\n\n .gh-feedback-button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n font-size: 1.4rem;\n line-height: 1.2;\n font-weight: 700;\n border: none;\n border-radius: 22px;\n padding: 12px 8px;\n color: #505050;\n background: none;\n cursor: pointer;\n }\n\n .gh-feedback-button::before {\n content: \'\';\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n border-radius: inherit;\n background: currentColor;\n opacity: 0.10;\n }\n\n .gh-feedback-button-selected {\n box-shadow: inset 0 0 0 2px currentColor;\n }\n\n .gh-feedback-button svg {\n width: 24px;\n height: 24px;\n color: inherit;\n }\n\n .gh-feedback-button svg path {\n stroke-width: 4px;\n }\n';return t}({site:this.context.site}),n="\n :root {\n --brandcolor: ".concat(this.context.brandColor,"\n }\n ")+e;return(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)("style",{dangerouslySetInnerHTML:{__html:n}}),(0,mr.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}},{key:"renderFrameContainer",value:function(){var e=this,n=this.context,t=n.member,r=n.site,i=n.customSiteUrl,o=rc({member:t}),a=N({},o.frame.common),l="gh-portal-popup-background";return so(["preview"])&&(o.modalContainer.zIndex="3999997"),so(["preview"],{customSiteUrl:i})&&!r.disableBackground&&(l+=" preview"),so(["dev"])&&(l+=" dev"),(0,mr.jsx)("div",{style:o.modalContainer,children:(0,mr.jsxs)(yr,{style:a,title:"portal-popup",head:this.renderFrameStyles(),children:[(0,mr.jsx)("div",{className:l,onClick:function(n){return e.handlePopupClose(n)}}),(0,mr.jsx)(oc,{})]})})}},{key:"render",value:function(){return this.context.showPopup?this.renderFrameContainer():null}}]),t}(tc.Component);lc.contextType=Cr;cc({products:dc({numOfProducts:1})});function sc(){return((new Date).getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,(function(){return(16*Math.random()|0).toString(16)})).toLowerCase()}function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.title,t=void 0===n?"The Blueprint":n,r=e.description,i=void 0===r?"Thoughts, stories and ideas.":r,o=e.logo,a=void 0===o?"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png":o,l=e.icon,s=void 0===l?"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png":l,c=e.url,u=void 0===c?"https://portal.localhost":c,p=e.plans,d=void 0===p?{monthly:5e3,yearly:15e4,currency:"USD"}:p,f=e.products,h=void 0===f?dc({numOfProducts:1}):f,g=e.portalProducts,m=void 0===g?h.map((function(e){return e.id})):g,v=e.accentColor,y=void 0===v?"#45C32E":v,b=e.portalPlans,x=void 0===b?["free","monthly","yearly"]:b,w=e.allowSelfSignup,_=void 0===w||w,k=e.membersSignupAccess,S=void 0===k?"all":k,E=e.freePriceName,j=void 0===E?"Free":E,C=e.freePriceDescription,N=void 0===C?"Free preview":C,P=e.isStripeConfigured,O=void 0===P||P,T=e.portalButton,I=void 0===T||T,D=e.portalName,R=void 0===D||D,L=e.portalButtonIcon,U=void 0===L?"icon-1":L,z=e.portalButtonSignupText,M=void 0===z?"Subscribe now":z,F=e.portalButtonStyle,A=void 0===F?"icon-and-text":F,B=e.membersSupportAddress,H=void 0===B?"support@example.com":B,Y=e.newsletters,$=void 0===Y?[]:Y,G=e.commentsEnabled;return{title:t,description:i,logo:a,icon:s,accent_color:y,url:u,plans:d,products:h,portal_products:m,allow_self_signup:_,members_signup_access:S,free_price_name:j,free_price_description:N,is_stripe_configured:O,portal_button:I,portal_name:R,portal_plans:x,portal_button_icon:U,portal_button_signup_text:M,portal_button_style:A,members_support_address:H,comments_enabled:!!G,newsletters:$}}function uc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,t=void 0===n?"Black Friday":n,r=e.code,i=void 0===r?"black-friday":r,o=e.displayTitle,a=void 0===o?"Black Friday Sale!":o,l=e.displayDescription,s=void 0===l?"Special deal for Black Friday. Subscribe now for only $15 per month and get additional benefits like accessing our podcast.":l,c=e.type,u=void 0===c?"percent":c,p=e.cadence,d=void 0===p?"month":p,f=e.amount,h=void 0===f?50:f,g=e.duration,m=void 0===g?"repeating":g,v=e.durationInMonths,y=void 0===v?null:v,b=e.currencyRestriction,x=void 0!==b&&b,w=e.currency,_=void 0===w?null:w,k=e.status,S=void 0===k?"active":k,E=e.tierId,j=void 0===E?"":E,C=e.tierName,N=void 0===C?"Basic":C;return{id:"offer_".concat(sc()),name:t,code:i,display_title:a,display_description:s,type:u,cadence:d,amount:h,duration:m,duration_in_months:y,currency_restriction:x,currency:_,status:S,tier:{id:"".concat(j),name:N}}}function pc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,t=void 0===n?"Jamie Larson":n,r=e.email,i=void 0===r?"jamie@example.com":r,o=e.firstname,a=void 0===o?"Jamie":o,l=e.subscriptions,s=void 0===l?[]:l,c=e.paid,u=void 0!==c&&c,p=e.avatarImage,d=void 0===p?"":p,f=e.subscribed,h=void 0===f||f;return{uuid:"member_".concat(sc()),email:i,name:t,firstname:a,paid:u,subscribed:h,avatar_image:d,subscriptions:s}}function dc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.numOfProducts,t=void 0===n?3:n,r=[fc({name:"Bronze",description:"Access to all members articles",monthlyPrice:vc({interval:"month",amount:700}),yearlyPrice:vc({interval:"year",amount:7e3}),numOfBenefits:2}),fc({name:"Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:vc({interval:"month",amount:1200}),yearlyPrice:vc({interval:"year",amount:12e3}),numOfBenefits:3}),fc({name:"Friends of the Blueprint",description:"Get access to everything and lock in early adopter pricing for life + listen to my podcast",monthlyPrice:vc({interval:"month",amount:18e3}),yearlyPrice:vc({interval:"year",amount:17e3}),numOfBenefits:4})],i=r.slice(0,t),o=hc({});return[].concat(be(i),[o])}function fc(e){var n=e.type,t=void 0===n?"paid":n,r=e.name,i=void 0===r?"Basic":r,o=e.description,a=void 0===o?"":o,l=e.id,s=void 0===l?"product_".concat(sc()):l,c=e.monthlyPrice,u=void 0===c?vc():c,p=e.yearlyPrice,d=void 0===p?vc({interval:"year"}):p,f=e.numOfBenefits;return{id:s,name:i,description:a,monthlyPrice:"free"===t?null:u,yearlyPrice:"free"===t?null:d,type:t,benefits:gc({numOfBenefits:void 0===f?2:f})}}function hc(e){var n=e.name,t=void 0===n?"Free tier":n,r=e.description,i=void 0===r?"Free tier description":r,o=e.id,a=void 0===o?"product_".concat(sc()):o,l=e.numOfBenefits;return{id:a,name:t,type:"free",description:i,benefits:gc({numOfBenefits:void 0===l?2:l})}}function gc(e){var n=e.numOfBenefits;return[mc({name:"Limited early adopter pricing"}),mc({name:"Latest gear reviews"}),mc({name:"Weekly email newsletter"}),mc({name:"Listen to my podcast"})].slice(0,n)}function mc(e){var n=e.id,t=void 0===n?"benefit_".concat(sc()):n,r=e.name;return{id:t,name:void 0===r?"Benefit":r}}function vc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.interval,t=void 0===n?"month":n,r=e.amount,i=void 0===r?"month"===t?500:5e3:r,o=e.nickname,a=void 0===o?"month"===t?"Monthly":"Yearly":o,l=e.description,s=void 0===l?null:l,c=e.currency,u=void 0===c?"usd":c,p=e.active,d=void 0===p||p,f=e.id,h=void 0===f?"price_".concat(sc()):f;return{id:h,active:d,nickname:a,currency:u,amount:i,interval:t,description:s,stripe_price_id:"price_".concat(sc()),stripe_product_id:"prod_".concat(sc()),type:"recurring"}}function yc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id,t=void 0===n?"sub_".concat(sc()):n,r=e.status,i=void 0===r?"active":r,o=e.currency,a=void 0===o?"USD":o,l=e.interval,s=void 0===l?"year":l,c=e.amount,u=void 0===c?"month"===s?500:5e3:c,p=e.nickname,d=void 0===p?"month"===s?"Monthly":"Yearly":p,f=e.cardLast4,h=void 0===f?"4242":f,g=e.offer,m=void 0===g?wc:g,v=e.priceId,y=void 0===v?"price_".concat(sc()):v,b=e.startDate,x=void 0===b?"2021-10-05T03:18:30.000Z":b,w=e.currentPeriodEnd,_=void 0===w?"2022-10-05T03:18:30.000Z":w,k=e.cancelAtPeriodEnd,S=void 0!==k&&k;return{id:t,customer:{id:"cus_".concat(sc()),name:"Jamie",email:"jamie@example.com"},plan:{id:"price_".concat(sc()),nickname:d,amount:u,interval:s,currency:a},offer:m,status:i,start_date:x,default_payment_card_last4:h,cancel_at_period_end:S,cancellation_reason:null,current_period_end:_,price:{id:"stripe_price_".concat(sc()),price_id:y,nickname:d,amount:u,interval:s,type:"recurring",currency:a,product:{id:"stripe_prod_".concat(sc()),product_id:"prod_".concat(sc())}}}}function bc(){var e=dc({numOfProducts:1}),n=e.map((function(e){return e.id}));return cc({products:e,portalPlans:["free","monthly","yearly"],portalProducts:n})}bc();var xc,wc=uc({tierId:null===(ac=cc({products:[fc({numOfBenefits:2,type:"free"})]}).products[0])||void 0===ac?void 0:ac.id});pc(),pc({paid:!0,subscriptions:[yc()]}),pc({paid:!0,subscriptions:[]}),pc({paid:!0,subscriptions:[yc({amount:0})]}),pc({paid:!0,subscriptions:[yc({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]});bc();var _c=[hc({name:"Free",description:"Free tier description which is actually a pretty long description",numOfBenefits:2}),fc({name:"The Blueprint",description:"",monthlyPrice:vc({interval:"month",amount:500}),yearlyPrice:vc({interval:"year",amount:5e3}),numOfBenefits:3}),fc({name:"Friends of the Blueprint Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:vc({interval:"month",amount:1200}),yearlyPrice:vc({interval:"year",amount:11e3}),numOfBenefits:4})],kc=cc({title:"The Blueprint",description:"Thoughts, stories and ideas.",logo:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",accentColor:"#45C32E",url:"https://portal.localhost",plans:{monthly:5e3,yearly:15e4,currency:"USD"},products:_c,portalProducts:_c.map((function(e){return e.id})),allowSelfSignup:!0,membersSignupAccess:"all",freePriceName:"Free",freePriceDescription:"Free preview",isStripeConfigured:!0,portalButton:!0,portalName:!0,portalPlans:["free","monthly","yearly"],portalButtonIcon:"icon-1",portalButtonSignupText:"Subscribe now",portalButtonStyle:"icon-and-text",membersSupportAddress:"support@example.com",commentsEnabled:!0,newsletters:[{id:"weekly",name:"Weekly Rundown",description:"Best of last week",subscribe_on_signup:!0,paid:!0},{id:"daily",name:"Daily Brief",description:"One email every day",subscribe_on_signup:!1,paid:!1}]}),Sc=uc({tierId:null===(xc=kc.products[1])||void 0===xc?void 0:xc.id}),Ec={free:pc({name:"Jamie Larson",email:"jamie@example.com",firstname:"Jamie",subscriptions:[],paid:!1,avatarImage:"",subscribed:!0}),paid:pc({paid:!0,subscriptions:[yc({status:"active",currency:"USD",interval:"year",amount:5e3,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]}),complimentary:pc({paid:!0,subscriptions:[]}),complimentaryWithSubscription:pc({paid:!0,subscriptions:[yc({amount:0})]}),preview:pc({paid:!0,subscriptions:[yc({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]})};function jc(e){var n=e.state;return si(),{showPopup:!1,lastPage:null,pageQuery:"",popupNotification:null,page:"magiclink"===n.page?"":n.page}}function Cc(){return(Cc=g(f().mark((function e(n){var t,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.api,r=n.state,e.prev=1,e.next=4,t.member.signout();case 4:return e.abrupt("return",{action:"signout:success"});case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",{action:"signout:failed",popupNotification:Zi({type:"signout:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to log out, please try again"})});case 10:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function Nc(){return(Nc=g(f().mark((function e(n){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.api,i=n.state,e.prev=1,e.next=4,r.member.sendMagicLink(N(N({},t),{},{emailType:"signin"}));case 4:return e.abrupt("return",{page:"magiclink",lastPage:"signin"});case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",{action:"signin:failed",popupNotification:Zi({type:"signin:failed",autoHide:!1,closeable:!0,state:i,status:"error",message:ms.getMessageFromError(e.t0,"Failed to log in, please try again")})});case 10:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function Pc(){return(Pc=g(f().mark((function e(n){var t,r,i,o,a,l,s,c,u,p,d,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,e.prev=1,o=t.plan,a=t.tierId,l=t.cadence,s=t.email,c=t.name,u=t.newsletters,p=t.offerId,"free"!==o.toLowerCase()){e.next=8;break}return e.next=6,i.member.sendMagicLink(N({emailType:"signup"},t));case 6:case 11:e.next=18;break;case 8:if(!a||!l){e.next=13;break}return e.next=11,i.member.checkoutPlan({plan:o,tierId:a,cadence:l,email:s,name:c,newsletters:u,offerId:p});case 13:return d=Bi({site:null===r||void 0===r?void 0:r.site,priceId:o}),a=d.tierId,l=d.cadence,e.next=18,i.member.checkoutPlan({plan:o,tierId:a,cadence:l,email:s,name:c,newsletters:u,offerId:p});case 18:return e.abrupt("return",{page:"magiclink",lastPage:"signup"});case 21:return e.prev=21,e.t0=e.catch(1),h=(null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Failed to sign up, please try again",e.abrupt("return",{action:"signup:failed",popupNotification:Zi({type:"signup:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:h})});case 25:case"end":return e.stop()}}),e,null,[[1,21]])})))).apply(this,arguments)}function Oc(){return(Oc=g(f().mark((function e(n){var t,r,i,o,a,l,s,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.plan,a=t.offerId,l=t.tierId,s=t.cadence,l&&s||(c=Bi({site:null===r||void 0===r?void 0:r.site,priceId:o}),l=c.tierId,s=c.cadence),e.next=6,i.member.checkoutPlan({plan:o,tierId:l,cadence:s,offerId:a,metadata:{checkoutType:"upgrade"}});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",{action:"checkoutPlan:failed",popupNotification:Zi({type:"checkoutPlan:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to process checkout, please try again"})});case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function Tc(){return Tc=g(f().mark((function e(n){var t,r,i,o,a,l,s,c,u,p,d,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.plan,a=t.planId,l=t.subscriptionId,s=t.cancelAtPeriodEnd,c=Bi({site:null===r||void 0===r?void 0:r.site,priceId:a}),u=c.tierId,p=c.cadence,e.next=6,i.member.updateSubscription({planName:o,tierId:u,cadence:p,subscriptionId:l,cancelAtPeriodEnd:s,planId:a});case 6:return e.next=8,i.member.sessionData();case 8:return d=e.sent,h="updateSubscription:success",e.abrupt("return",{action:h,popupNotification:Zi({type:h,autoHide:!0,closeable:!0,state:r,status:"success",message:"Subscription plan updated successfully"}),page:"accountHome",member:d});case 13:return e.prev=13,e.t0=e.catch(1),e.abrupt("return",{action:"updateSubscription:failed",popupNotification:Zi({type:"updateSubscription:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to update subscription, please try again"})});case 16:case"end":return e.stop()}}),e,null,[[1,13]])}))),Tc.apply(this,arguments)}function Ic(){return Ic=g(f().mark((function e(n){var t,r,i,o,a,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.subscriptionId,a=t.cancellationReason,e.next=5,i.member.updateSubscription({subscriptionId:o,smartCancel:!0,cancellationReason:a});case 5:return e.next=7,i.member.sessionData();case 7:return l=e.sent,"cancelSubscription:success",e.abrupt("return",{action:"cancelSubscription:success",page:"accountHome",member:l});case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",{action:"cancelSubscription:failed",popupNotification:Zi({type:"cancelSubscription:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to cancel subscription, please try again"})});case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Ic.apply(this,arguments)}function Dc(){return Dc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.subscriptionId,e.next=5,i.member.updateSubscription({subscriptionId:o,cancelAtPeriodEnd:!1});case 5:return e.next=7,i.member.sessionData();case 7:return a=e.sent,"continueSubscription:success",e.abrupt("return",{action:"continueSubscription:success",page:"accountHome",member:a});case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",{action:"continueSubscription:failed",popupNotification:Zi({type:"continueSubscription:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to cancel subscription, please try again"})});case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Dc.apply(this,arguments)}function Rc(){return(Rc=g(f().mark((function e(n){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,e.next=4,i.member.editBilling(t);case 4:e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(1),e.abrupt("return",{action:"editBilling:failed",popupNotification:Zi({type:"editBilling:failed",autoHide:!1,closeable:!0,state:r,status:"error",message:"Failed to update billing information, please try again"})});case 9:case"end":return e.stop()}}),e,null,[[1,6]])})))).apply(this,arguments)}function Lc(){return(Lc=g(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{popupNotification:null});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uc(){return(Uc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=t.action,o=t.message,a=void 0===o?"":o,i=i||"showPopupNotification:success",e.abrupt("return",{popupNotification:Zi({type:i,autoHide:!0,closeable:!0,state:r,status:"success",message:a})});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zc(){return zc=g(f().mark((function e(n){var t,r,i,o,a,l,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,e.prev=1,o=t.newsletters,a=t.enableCommentNotifications,o||void 0!==a){e.next=5;break}return e.abrupt("return",{});case 5:return l={},o&&(l.newsletters=o),void 0!==a&&(l.enableCommentNotifications=a),e.next=10,i.member.update(l);case 10:return s=e.sent,"updateNewsletterPref:success",e.abrupt("return",{action:"updateNewsletterPref:success",member:s});case 15:return e.prev=15,e.t0=e.catch(1),e.abrupt("return",{action:"updateNewsletterPref:failed",popupNotification:Zi({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:r,status:"error",message:"Failed to update newsletter settings"})});case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),zc.apply(this,arguments)}function Mc(){return Mc=g(f().mark((function e(n){var t,r,i,o,a,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.prev=1,o=t.subscribed,e.next=5,i.member.update({subscribed:o});case 5:if(a=e.sent){e.next=8;break}throw new Error("Failed to update newsletter");case 8:return l="updateNewsletter:success",e.abrupt("return",{action:l,member:a,popupNotification:Zi({type:l,autoHide:!0,closeable:!0,state:r,status:"success",message:"Email newsletter settings updated"})});case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",{action:"updateNewsletter:failed",popupNotification:Zi({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:r,status:"error",message:"Failed to update newsletter settings"})});case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Mc.apply(this,arguments)}function Fc(e){return Ac.apply(this,arguments)}function Ac(){return(Ac=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,o=t.email,a=Gi({member:r.member}),o===a){e.next=13;break}return e.prev=4,e.next=7,i.member.updateEmailAddress({email:o});case 7:return e.abrupt("return",{success:!0});case 10:return e.prev=10,e.t0=e.catch(4),e.abrupt("return",{success:!1,error:e.t0});case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}function Bc(e){return Hc.apply(this,arguments)}function Hc(){return Hc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.data,r=n.state,i=n.api,o=t.name,Wi({member:r.member})===o){e.next=16;break}return e.prev=4,e.next=7,i.member.update({name:o});case 7:if(a=e.sent){e.next=10;break}throw new Error("Failed to update member");case 10:return e.abrupt("return",{member:a,success:!0});case 13:return e.prev=13,e.t0=e.catch(4),e.abrupt("return",{success:!1,error:e.t0});case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[4,13]])}))),Hc.apply(this,arguments)}function Yc(){return Yc=g(f().mark((function e(n){var t,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state,r=n.api,!t.member){e.next=14;break}return e.prev=2,e.next=5,r.member.sessionData();case 5:if(!(i=e.sent)){e.next=8;break}return e.abrupt("return",{member:i,success:!0});case 8:case 14:return e.abrupt("return",null);case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",{success:!1,error:e.t0});case 15:case"end":return e.stop()}}),e,null,[[2,11]])}))),Yc.apply(this,arguments)}function $c(){return($c=g(f().mark((function e(n){var t,r,i,o,a,l,s,u,p,d,h,g,m,v;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.data,r=n.state,i=n.api,e.next=3,Promise.all([Bc({data:t,state:r,api:i}),Fc({data:t,state:r,api:i})]);case 3:if(o=e.sent,a=c(o,2),l=a[0],s=a[1],!l||!s){e.next=14;break}if(!s.success){e.next=10;break}return e.abrupt("return",N(N({action:"updateProfile:success"},l.success?{member:l.member}:{}),{},{page:"accountHome",popupNotification:Zi({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:r,message:"Check your inbox to verify email update"})}));case 10:return u=l.success?"Failed to send verification email":"Failed to update account data",e.abrupt("return",N(N({action:"updateProfile:failed"},l.success?{member:l.member}:{}),{},{popupNotification:Zi({type:"updateProfile:failed",autoHide:!0,closeable:!0,status:"error",message:u,state:r})}));case 14:if(!l){e.next=21;break}return p=l.success?"updateProfile:success":"updateProfile:failed",d=l.success?"success":"error",h=l.success?"Account details updated successfully":"Failed to update account details",e.abrupt("return",N(N(N({action:p},l.success?{member:l.member}:{}),l.success?{page:"accountHome"}:{}),{},{popupNotification:Zi({type:p,autoHide:l.success,closeable:!0,status:d,state:r,message:h})}));case 21:if(!s){e.next=26;break}return g=s.success?"updateProfile:success":"updateProfile:failed",m=s.success?"success":"error",v=s.success?"Check your inbox to verify email update":"Failed to send verification email",e.abrupt("return",N(N({action:g},s.success?{page:"accountHome"}:{}),{},{popupNotification:Zi({type:g,autoHide:s.success,closeable:!0,status:m,state:r,message:v})}));case 26:return e.abrupt("return",{action:"updateProfile:success",page:"accountHome",popupNotification:Zi({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:r,message:"Account details updated successfully"})});case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Gc={togglePopup:function(e){return{showPopup:!e.state.showPopup}},openPopup:function(e){var n=e.data;return N(N({showPopup:!0,page:n.page},n.pageQuery?{pageQuery:n.pageQuery}:{}),n.pageData?{pageData:n.pageData}:{})},closePopup:jc,switchPage:function(e){var n=e.data,t=e.state;return{page:n.page,popupNotification:null,lastPage:n.lastPage||null,pageData:n.pageData||t.pageData}},openNotification:function(e){return N({showNotification:!0},e.data)},closeNotification:function(e){return e.state,{showNotification:!1}},back:function(e){var n=e.state;return n.lastPage?{page:n.lastPage}:jc({state:n})},signout:function(e){return Cc.apply(this,arguments)},signin:function(e){return Nc.apply(this,arguments)},signup:function(e){return Pc.apply(this,arguments)},updateSubscription:function(e){return Tc.apply(this,arguments)},cancelSubscription:function(e){return Ic.apply(this,arguments)},continueSubscription:function(e){return Dc.apply(this,arguments)},updateNewsletter:function(e){return Mc.apply(this,arguments)},updateProfile:function(e){return $c.apply(this,arguments)},refreshMemberData:function(e){return Yc.apply(this,arguments)},clearPopupNotification:function(){return Lc.apply(this,arguments)},editBilling:function(e){return Rc.apply(this,arguments)},checkoutPlan:function(e){return Oc.apply(this,arguments)},updateNewsletterPreference:function(e){return zc.apply(this,arguments)},showPopupNotification:function(e){return Uc.apply(this,arguments)}};function Wc(e){return qc.apply(this,arguments)}function qc(){return(qc=g(f().mark((function e(n){var t,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.action,r=n.data,i=n.state,o=n.api,!(a=Gc[t])){e.next=9;break}return e.next=5,a({data:r,state:i,api:o});case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:return e.abrupt("return",e.t0);case 9:return e.abrupt("return",{});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Qc=t(92),Vc={insert:"head",singleton:!1};i()(Qc.Z,Vc),Qc.Z.locals;function Kc(e){var n=e.siteUrl,t=e.site,r=e.member;n&&(n=n.replace(/\/$/,""),Array.prototype.forEach.call(document.querySelectorAll("form[data-members-form]"),(function(e){var t=e.querySelector("[data-members-error]");e.addEventListener("submit",(function r(i){!function(e){var n,t=e.event,r=e.form,i=e.errorEl,o=e.siteUrl,a=e.submitHandler;r.removeEventListener("submit",a),t.preventDefault(),i&&(i.innerText=""),r.classList.remove("success","invalid","error");for(var l=t.target.querySelector("input[data-members-email]"),s=t.target.querySelector("input[data-members-name]"),c=(null===r||void 0===r||null===(n=r.dataset)||void 0===n?void 0:n.membersAutoredirect)||"true",u=null===l||void 0===l?void 0:l.value,p=s&&s.value||void 0,d=void 0,f=[],h=t.target.querySelectorAll("input[data-members-label]")||[],g=0;g<h.length;++g)f.push(h[g].value);r.dataset.membersForm&&(d=r.dataset.membersForm),r.classList.add("loading");var m=io(),v={email:u,emailType:d,labels:f,name:p,autoRedirect:"true"===c};m&&(v.urlHistory=m),fetch("".concat(o,"/members/api/send-magic-link/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then((function(e){if(r.addEventListener("submit",a),r.classList.remove("loading"),!e.ok)return ms.fromApiResponse(e).then((function(e){throw e}));r.classList.add("success")})).catch((function(e){i&&(i.innerText=ms.getMessageFromError(e,"There was an error sending the email, please try again")),r.classList.add("error")}))}({event:i,errorEl:t,form:e,siteUrl:n,submitHandler:r})}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-plan]"),(function(e){var i=e.querySelector("[data-members-error]");e.addEventListener("click",(function o(a){!function(e){var n=e.event,t=e.el,r=e.errorEl,i=e.siteUrl,o=e.site,a=e.member,l=e.clickHandler;t.removeEventListener("click",l),n.preventDefault();var s=t.dataset.membersPlan,c="";if(s){var u=xi({site:o,priceId:s.toLowerCase()});c=u?u.id:s}var p,d,f=t.dataset.membersSuccess,h=t.dataset.membersCancel;f&&(p=new URL(f,window.location.href).href),h&&(d=new URL(h,window.location.href).href),r&&(r.innerText=""),t.classList.add("loading");var g=a?{checkoutType:"upgrade"}:{},m=io();m&&(g.urlHistory=m),fetch("".concat(i,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(i,"/members/api/create-stripe-checkout-session/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({priceId:c,identity:e,successUrl:p,cancelUrl:d,metadata:g})}).then((function(e){if(!e.ok)throw new Error("Could not create stripe checkout session");return e.json()}))})).then((function(e){return window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(e){console.error(e),t.addEventListener("click",l),t.classList.remove("loading"),r&&(r.innerText=e.message),t.classList.add("error")}))}({el:e,event:a,errorEl:i,member:r,site:t,siteUrl:n,clickHandler:o})}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-edit-billing]"),(function(e){var t,r,i=e.querySelector("[data-members-error]"),o=e.dataset.membersSuccess,a=e.dataset.membersCancel;o&&(t=new URL(o,window.location.href).href),a&&(r=new URL(a,window.location.href).href),e.addEventListener("click",(function o(a){e.removeEventListener("click",o),a.preventDefault(),i&&(i.innerText=""),e.classList.add("loading"),fetch("".concat(n,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(n,"/members/api/create-stripe-update-session/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:e,successUrl:t,cancelUrl:r})}).then((function(e){if(!e.ok)throw new Error("Could not create stripe checkout session");return e.json()}))})).then((function(e){return window.Stripe(e.publicKey).redirectToCheckout({sessionId:e.sessionId})})).then((function(e){if(e.error)throw new Error(e.error.message)})).catch((function(n){console.error(n),e.addEventListener("click",o),e.classList.remove("loading"),i&&(i.innerText=n.message),e.classList.add("error")}))}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-signout]"),(function(e){e.addEventListener("click",(function t(r){e.removeEventListener("click",t),r.preventDefault(),e.classList.remove("error"),e.classList.add("loading"),fetch("".concat(n,"/members/api/session"),{method:"DELETE"}).then((function(r){r.ok?window.location.replace(n):(e.addEventListener("click",t),e.classList.remove("loading"),e.classList.add("error"))}))}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-cancel-subscription]"),(function(e){var t=e.parentElement.querySelector("[data-members-error]");e.addEventListener("click",(function r(i){e.removeEventListener("click",r),i.preventDefault(),e.classList.remove("error"),e.classList.add("loading");var o=e.dataset.membersCancelSubscription;return t&&(t.innerText=""),fetch("".concat(n,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(n,"/members/api/subscriptions/").concat(o,"/"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:e,smart_cancel:!0})})})).then((function(n){n.ok?window.location.reload():(e.addEventListener("click",r),e.classList.remove("loading"),e.classList.add("error"),t&&(t.innerText="There was an error cancelling your subscription, please try again."))}))}))})),Array.prototype.forEach.call(document.querySelectorAll("[data-members-continue-subscription]"),(function(e){var t=e.parentElement.querySelector("[data-members-error]");e.addEventListener("click",(function r(i){e.removeEventListener("click",r),i.preventDefault(),e.classList.remove("error"),e.classList.add("loading");var o=e.dataset.membersContinueSubscription;return t&&(t.innerText=""),fetch("".concat(n,"/members/api/session"),{credentials:"same-origin"}).then((function(e){return e.ok?e.text():null})).then((function(e){return fetch("".concat(n,"/members/api/subscriptions/").concat(o,"/"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:e,cancel_at_period_end:!1})})})).then((function(n){n.ok?window.location.reload():(e.addEventListener("click",r),e.classList.remove("loading"),e.classList.add("error"),t&&(t.innerText="There was an error continuing your subscription, please try again."))}))}))})))}var Jc=["site"],Xc=["site"],Zc=["site"],eu=["site"],nu=["site"],tu=["site"],ru=t(969),iu=N(N({showPopup:!0,site:kc,member:Ec.free,page:"accountEmail"},function(){var e;if(!_c||!_c[1])return null;var n=null===kc||void 0===kc||null===(e=kc.products)||void 0===e?void 0:e[1].monthlyPrice,t=pc({paid:!0,subscriptions:[yc({offer:null,priceId:null===n||void 0===n?void 0:n.id,status:"active",currency:null===n||void 0===n?void 0:n.currency,interval:null===n||void 0===n?void 0:n.interval,amount:null===n||void 0===n?void 0:n.amount,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]});return{site:kc,member:t}}()),{},{pageData:Sc});function ou(e){var n=e.site,t=e.children,r=(n||{}).portal_sentry;return r&&r.dsn?(0,mr.jsx)(ur,{children:t}):(0,mr.jsx)(mr.Fragment,{children:t})}var au=function(e){x(t,e);var n=E(t);function t(e){var r;return m(this,t),(r=n.call(this,e)).setupCustomTriggerButton(e),r.state={site:null,member:null,page:"loading",showPopup:!1,action:"init:running",initStatus:"running",lastPage:null,customSiteUrl:e.customSiteUrl},r}return y(t,[{key:"componentDidMount",value:function(){this.initSetup()}},{key:"componentDidUpdate",value:function(e,n){if(n.showPopup!==this.state.showPopup){this.handleCustomTriggerClassUpdate();try{var t,r,i;if(this.state.showPopup)this.bodyScroll=null===(t=window.document)||void 0===t||null===(r=t.body)||void 0===r||null===(i=r.style)||void 0===i?void 0:i.overflow,window.document.body.style.overflow="hidden";else window.document.body.style.overflow=this.bodyScroll||""}catch(l){}}if("success"===this.state.initStatus&&n.initStatus!==this.state.initStatus){var o=this.props.siteUrl,a=this.getContextFromState();this.sendPortalReadyEvent(),Kc({siteUrl:o,site:a.site,member:a.member})}}},{key:"componentWillUnmount",value:function(){var e=this;clearTimeout(this.timeoutId),this.customTriggerButtons&&this.customTriggerButtons.forEach((function(n){n.removeEventListener("click",e.clickHandler)})),window.removeEventListener("hashchange",this.hashHandler,!1)}},{key:"sendPortalReadyEvent",value:function(){window.self!==window.parent&&window.parent.postMessage({type:"portal-ready",payload:{}},"*")}},{key:"setupCustomTriggerButton",value:function(){var e=this;this.clickHandler=function(n){n.preventDefault();var t=n.currentTarget,r=t&&t.dataset.portal,i=e.getPageFromLinkPath(r)||{},o=i.page,a=i.pageQuery;"success"===e.state.initStatus&&(a&&"free"!==a?e.handleSignupQuery({site:e.state.site,pageQuery:a}):e.dispatchAction("openPopup",{page:o,pageQuery:a}))};this.customTriggerButtons=document.querySelectorAll("[data-portal]")||[],this.customTriggerButtons.forEach((function(n){n.classList.add("gh-portal-close"),n.removeEventListener("click",e.clickHandler),n.addEventListener("click",e.clickHandler)}))}},{key:"handleCustomTriggerClassUpdate",value:function(){var e,n=this,t="gh-portal-open",r="gh-portal-close";null===(e=this.customTriggerButtons)||void 0===e||e.forEach((function(e){var i=n.state.showPopup?t:r,o=n.state.showPopup?r:t;e.classList.add(i),e.classList.remove(o)}))}},{key:"initSetup",value:function(){var e=g(f().mark((function e(){var n,t,r,i,o,a,l,s,c,u,p=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchData();case 3:n=e.sent,t=n.site,r=n.member,i=n.page,o=n.showPopup,a=n.popupNotification,l=n.lastPage,s=n.pageQuery,c=n.pageData,u={site:t,member:r,page:i,lastPage:l,pageQuery:s,showPopup:o,pageData:c,popupNotification:a,action:"init:success",initStatus:"success"},this.handleSignupQuery({site:t,pageQuery:s,member:r}),this.setState(u),this.hashHandler=function(){p.updateStateForPreviewLinks()},window.addEventListener("hashchange",this.hashHandler,!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),console.error("[Portal] Failed to initialize:",e.t0),this.setState({action:"init:failed",initStatus:"failed"});case 23:case"end":return e.stop()}}),e,this,[[0,19]])})));return function(){return e.apply(this,arguments)}}()},{key:"fetchData",value:function(){var e=g(f().mark((function e(){var n,t,r,i,o,a,l,s,c,u,d,h,g,m,v;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchApiData();case 2:return n=e.sent,t=n.site,r=n.member,i=this.fetchDevData(),o=i.site,a=p(i,Jc),l=this.fetchLinkData(),s=l.site,c=p(l,Xc),u=this.fetchPreviewData(),d=u.site,h=p(u,Zc),g=this.fetchNotificationData(),m=g.site,v=p(g,eu),"",e.abrupt("return",N(N(N(N({member:r,page:"",site:N(N(N(N(N(N({},t),s),d),m),o),{},{plans:N(N(N({},(o||{}).plans),(t||{}).plans),(d||{}).plans)})},a),c),v),h));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"fetchDevData",value:function(){return so(["dev"])&&!this.state.customSiteUrl?iu:so(["test"])?{showPopup:void 0===this.props.showPopup||this.props.showPopup}:{}}},{key:"fetchOfferQueryStrData",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new URLSearchParams(n),r={},i=u(t.entries());try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o[0],l=decodeURIComponent(o[1]);"name"===a?r.name=l||"":"code"===a?r.code=l||"":"display_title"===a?r.display_title=l||"":"display_description"===a?r.display_description=l||"":"type"===a?r.type=l||"":"cadence"===a?r.cadence=l||"":"duration"===a?r.duration=l||"":"duration_in_months"!==a||isNaN(Number(l))?"amount"!==a||isNaN(Number(l))?"currency"===a?r.currency=l||"":"status"===a?r.status=l||"":"tier_id"===a&&(r.tier={id:l||Sc.tier.id}):r.amount=Number(l):r.duration_in_months=Number(l)}}catch(s){i.e(s)}finally{i.f()}return{page:"offer",pageData:r}}},{key:"fetchQueryStrData",value:function(){var e,n,t,r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=new URLSearchParams(o),l={site:{plans:{}}},s=[],c=null,p=u(a.entries());try{for(p.s();!(i=p.n()).done;){var d=i.value,f=d[0],h=decodeURIComponent(d[1]);if("button"===f)l.site.portal_button=JSON.parse(h);else if("name"===f)l.site.portal_name=JSON.parse(h);else if("isFree"===f&&JSON.parse(h))s.push("free");else if("isMonthly"===f&&JSON.parse(h))s.push("monthly");else if("isYearly"===f&&JSON.parse(h))s.push("yearly");else if("portalPrices"===f)e=h?h.split(","):[];else if("portalProducts"===f)c=h?h.split(","):[];else if("page"===f&&h)l.page=h;else if("accentColor"!==f||""!==h&&!h)if("buttonIcon"===f&&h)l.site.portal_button_icon=h;else if("signupButtonText"===f)l.site.portal_button_signup_text=h||"";else if("buttonStyle"===f&&h)l.site.portal_button_style=h;else if("monthlyPrice"!==f||isNaN(Number(h)))if("yearlyPrice"!==f||isNaN(Number(h)))if("currency"===f&&h){var g=h.toUpperCase();l.site.plans.currency=g,l.site.plans.currency_symbol=Vi(g),r=g}else"disableBackground"===f?l.site.disableBackground=JSON.parse(h):"allowSelfSignup"===f?l.site.allow_self_signup=JSON.parse(h):"membersSignupAccess"===f&&h&&(l.site.members_signup_access=h);else l.site.plans.yearly=Number(h),t=Number(h);else l.site.plans.monthly=Number(h),n=Number(h);else l.site.accent_color=h}}catch(m){p.e(m)}finally{p.f()}return l.site.portal_plans=s,l.site.portal_products=c,e?l.site.portal_plans=e:n&&t&&r&&(l.site.prices=[{id:"monthly",stripe_price_id:"dummy_stripe_monthly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Monthly",currency:r,amount:n,type:"recurring",interval:"month"},{id:"yearly",stripe_price_id:"dummy_stripe_yearly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Yearly",currency:r,amount:t,type:"recurring",interval:"year"}]),l}},{key:"fetchNotificationData",value:function(){var e=Fo({billingOnly:!0})||{},n=e.type,t=e.status,r=e.duration,i=e.autoHide,o=e.closeable;return["stripe:billing-update"].includes(n)?"success"===t?{showPopup:!0,popupNotification:Zi({type:n,status:t,duration:r,closeable:o,autoHide:i,state:this.state,message:"success"===t?"Billing info updated successfully":""})}:{showPopup:!0}:{}}},{key:"fetchLinkData",value:function(){var e=new URLSearchParams(window.location.search);if(e.get("uuid")&&"unsubscribe"===e.get("action"))return{showPopup:!0,page:"unsubscribe",pageData:{uuid:e.get("uuid"),newsletterUuid:e.get("newsletter"),comments:e.get("comments")}};var n=c(window.location.hash.substr(1).split("?"),2),t=n[0],r=n[1],i=new URLSearchParams(null!==r&&void 0!==r?r:""),o=/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/,a=/^\/feedback\/(\w+?)\/(\w+?)\/?$/;if(t&&a.test(t)&&i.get("uuid")){var l=c(t.match(a),3),s=l[1],u=l[2],p=parseInt(u);if(1===p||0===p)return{showPopup:!0,page:"feedback",pageData:{uuid:i.get("uuid"),postId:s,score:p}}}if(t&&o.test(t)){var d=c(t.match(o),2)[1],f=this.getPageFromLinkPath(d)||{},h=f.page,g=f.pageQuery,m=["accountPlan","accountProfile"].includes(h)?"accountHome":null;return N(N(N({showPopup:!(["monthly","yearly"].includes(g)||/^(?:(\w+?))?\/monthly$/.test(g)||/^(?:(\w+?))?\/yearly$/.test(g)||/^offers\/(\w+?)\/?$/.test(g))},h?{page:h}:{}),g?{pageQuery:g}:{}),m?{lastPage:m}:{})}return{}}},{key:"fetchPreviewData",value:function(){var e=c(window.location.hash.substr(1).split("?"),2)[1];if(so(["preview"])){return N(N({},so(["offerPreview"])?this.fetchOfferQueryStrData(e):this.fetchQueryStrData(e)),{},{showPopup:!0})}return{}}},{key:"getColorOverride",value:function(){var e=document.querySelector("script[data-ghost]");return!(!e||!e.dataset.accentColor)&&e.dataset.accentColor}},{key:"fetchApiData",value:function(){var e=g(f().mark((function e(){var n,t,r,i,o,a,l,s,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,t=n.siteUrl,r=n.customSiteUrl,i=n.apiUrl,o=n.apiKey,e.prev=1,this.GhostApi=this.props.api||vs({siteUrl:t,apiUrl:i,apiKey:o}),e.next=5,this.GhostApi.init();case 5:return a=e.sent,l=a.site,s=a.member,(c=this.getColorOverride())&&(l.accent_color=c),this.setupFirstPromoter({site:l,member:s}),this.setupSentry({site:l}),e.abrupt("return",{site:l,member:s});case 15:if(e.prev=15,e.t0=e.catch(1),!so(["dev","test"],{customSiteUrl:r})){e.next=19;break}return e.abrupt("return",{});case 19:throw e.t0;case 20:case"end":return e.stop()}}),e,this,[[1,15]])})));return function(){return e.apply(this,arguments)}}()},{key:"setupSentry",value:function(e){var n=e.site;if(so(["test"]))return null;var t=n.portal_sentry,r=(n.portal_version,n.version),i="portal@".concat("2.19.2","|ghost@").concat(r);t&&t.dsn&&pr({dsn:t.dsn,environment:t.env||"development",release:i,beforeSend:function(e){return function(e){var n,t,r,i,o=e.event,a=((null===o||void 0===o||null===(n=o.exception)||void 0===n||null===(t=n.values)||void 0===t||null===(r=t[0])||void 0===r||null===(i=r.stacktrace)||void 0===i?void 0:i.frames)||[]).map((function(e){return e.filename})).filter((function(e){return!!e}));return(a[a.length-1]||"").includes("@tryghost/portal")}({event:e})?e:null},allowUrls:[/https?:\/\/((www)\.)?unpkg\.com\/@tryghost\/portal/]})}},{key:"setupFirstPromoter",value:function(e){var n=e.site,t=e.member;if(so(["test"]))return null;var r=function(e){var n=e.site;return n&&n.firstpromoter_account}({site:n}),i=Qi({site:n});if(r&&i){var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://cdn.firstpromoter.com/fprom.js",o.onload=o.onreadystatechange=function(){var e=this.readyState;if(!e||"complete"===e||"loaded"===e)try{if(window.$FPROM.init(r,i),t){var n=t.email,o=t.uuid;if(window.$FPROM)window.$FPROM.trackSignup({email:n,uid:o});else{var a=window._fprom||[];window._fprom=a,a.push(["event","signup"]),a.push(["email",n]),a.push(["uid",o])}}}catch(l){}};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}},{key:"dispatchAction",value:function(){var e=g(f().mark((function e(n,t){var r,i,o=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this.timeoutId),this.setState({action:"".concat(n,":running")}),e.prev=2,e.next=5,Wc({action:n,data:t,state:this.state,api:this.GhostApi});case 5:r=e.sent,this.setState(r),r&&r.action&&!r.action.includes(":failed")&&(this.timeoutId=setTimeout((function(){o.setState({action:""})}),2e3)),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),i=Zi({type:"".concat(n,":failed"),autoHide:!0,closeable:!0,status:"error",state:this.state,meta:{error:e.t0}}),this.setState({action:"".concat(n,":failed"),popupNotification:i});case 14:case"end":return e.stop()}}),e,this,[[2,10]])})));return function(n,t){return e.apply(this,arguments)}}()},{key:"updateStateForPreviewLinks",value:function(){var e=this.fetchPreviewData(),n=e.site,t=p(e,nu),r=this.fetchLinkData(),i=r.site,o=p(r,tu),a=N(N({site:N(N(N(N({},this.state.site),i||{}),n||{}),{},{plans:N(N(N({},this.state.site&&this.state.site.plans),(i||{}).plans),(n||{}).plans)})},o),t);this.handleSignupQuery({site:a.site,pageQuery:a.pageQuery}),this.setState(a)}},{key:"handleOfferQuery",value:function(){var e=g(f().mark((function e(n){var t,r,i,o,a,l,s,c,u,p,d,h,g,m,v;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.site,r=n.offerId,i=n.member,o=void 0===i?this.state.member:i,a=t.portal_button,si(),fi({member:o})){e.next=14;break}return e.prev=4,e.next=7,this.GhostApi.site.offer({offerId:r});case 7:l=e.sent,s=null===l||void 0===l?void 0:l.offers[0],to({offer:s})&&(a?this.dispatchAction("openPopup",{page:"offer",pageData:null===l||void 0===l?void 0:l.offers[0]}):(c=Di({site:t,productId:s.tier.id}),u="month"===s.cadence?c.monthlyPrice:c.yearlyPrice,this.dispatchAction("openPopup",{page:"loading"}),o?(p=Bi({site:t,priceId:u.id}),d=p.tierId,h=p.cadence,this.dispatchAction("checkoutPlan",{plan:u.id,offerId:r,tierId:d,cadence:h})):(g=Bi({site:t,priceId:u.id}),m=g.tierId,v=g.cadence,this.dispatchAction("signup",{plan:u.id,offerId:r,tierId:m,cadence:v})))),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:case"end":return e.stop()}}),e,this,[[4,12]])})));return function(n){return e.apply(this,arguments)}}()},{key:"handleSignupQuery",value:function(e){var n=e.site,t=e.pageQuery,r=e.member,i=/^offers\/(\w+?)\/?$/,o=t;if(i.test(t||"")){var a=c(t.match(i),2)[1];this.handleOfferQuery({site:n,offerId:a,member:r})}else{no({site:n,pageQuery:t})&&(o=no({site:n,pageQuery:t}));var l=xi({site:n,priceId:o});if(t&&"free"!==t){si();var s=(null===l||void 0===l?void 0:l.id)||o;"free"!==s&&this.dispatchAction("openPopup",{page:"loading"});var u=Bi({site:n,priceId:s}),p=u.tierId,d=u.cadence;this.dispatchAction("signup",{plan:s,tierId:p,cadence:d})}}}},{key:"getPageFromLinkPath",value:function(e){var n=/^signup\/?(?:\/(\w+?))?\/?$/,t=/^signup\/?(?:\/(\w+?))\/monthly\/?$/,r=/^signup\/?(?:\/(\w+?))\/yearly\/?$/;if(/^offers\/(\w+?)\/?$/.test(e))return{pageQuery:e};if("signup"===e)return{page:"signup"};if(t.test(e)){var i=c(e.match(t),2)[1];return{page:"signup",pageQuery:"".concat(i,"/monthly")}}if(r.test(e)){var o=c(e.match(r),2)[1];return{page:"signup",pageQuery:"".concat(o,"/yearly")}}return n.test(e)?{page:"signup",pageQuery:c(e.match(n),2)[1]}:"signup/free"===e?{page:"signup",pageQuery:"free"}:"signup/monthly"===e?{page:"signup",pageQuery:"monthly"}:"signup/yearly"===e?{page:"signup",pageQuery:"yearly"}:"signin"===e?{page:"signin"}:"account"===e?{page:"accountHome"}:"account/plans"===e?{page:"accountPlan"}:"account/profile"===e?{page:"accountProfile"}:"account/newsletters"===e?{page:"accountEmail"}:{}}},{key:"getAccentColor",value:function(){return(this.state.site||{}).accent_color}},{key:"getContextPage",value:function(e){var n=e.site,t=e.page,r=e.member;if(!t){var i=wi({site:n})?"signin":"signup";t=r?"accountHome":i}return"accountPlan"===t&&di({member:r})&&!hi({member:r})&&(t="accountHome"),Qs({page:t})}},{key:"getContextMember",value:function(e){var n=e.page,t=e.member,r=e.customSiteUrl;return so(["dev","preview"],{customSiteUrl:r})?{page:n}.page.includes("account")||{page:n}.page.includes("offer")?so(["dev"],{customSiteUrl:r})?t||Ec.free:so(["preview"])?Ec.preview:Ec.paid:null:t}},{key:"getContextFromState",value:function(){var e=this,n=this.state,t=n.site,r=n.member,i=n.action,o=n.page,a=n.lastPage,l=n.showPopup,s=n.pageQuery,c=n.pageData,u=n.popupNotification,p=n.customSiteUrl,d=this.getContextPage({site:t,page:o,member:r}),f=this.getContextMember({page:d,member:r,customSiteUrl:p});return{site:t,action:i,brandColor:this.getAccentColor(),page:d,pageQuery:s,pageData:c,member:f,lastPage:a,showPopup:l,popupNotification:u,customSiteUrl:p,onAction:function(n,t){return e.dispatchAction(n,t)}}}},{key:"render",value:function(){return"success"===this.state.initStatus?(0,mr.jsx)(ou,{site:this.state.site,children:(0,mr.jsxs)(Cr.Provider,{value:this.getContextFromState(),children:[(0,mr.jsx)(lc,{}),(0,mr.jsx)(ho,{}),(0,mr.jsx)(Go,{})]})}):null}}]),t}(ru.Component);var lu=function(e){var n=e.siteUrl;return function(e){var n=e.analyticsId,t=e.api;n&&t.analytics.pushEvent({type:"entry_view",entry_id:n,entry_url:window.location.href,created_at:new Date})}({analyticsId:e.analyticsId,api:vs({siteUrl:n})}),{}},su="ghost-portal-root";function cu(e){var n=e.siteUrl;!function(){var e=document.createElement("div");e.id=su,document.body.appendChild(e)}(),function(){var e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}(),function(e){var n=e.siteUrl,t=document.querySelector("meta[name=ghost-analytics-id]"),r=null===t||void 0===t?void 0:t.content;n&&t&&lu({siteUrl:n,analyticsId:r})}({siteUrl:n})}!function(){var t=function(){var e=document.querySelector("script[data-ghost]");return e?{siteUrl:e.dataset.ghost,apiKey:e.dataset.key,apiUrl:e.dataset.api}:{}}(),r=t.siteUrl,i=t.apiKey,o=t.apiUrl,a=r||window.location.origin;cu({siteUrl:a}),n.render((0,mr.jsx)(e.StrictMode,{children:(0,mr.jsx)(au,{siteUrl:a,customSiteUrl:r,apiKey:i,apiUrl:o})}),document.getElementById(su))}()}()}();
|
|
3
3
|
//# sourceMappingURL=portal.min.js.map
|