@tryghost/portal 2.26.0 → 2.28.0

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/umd/portal.min.js CHANGED
@@ -1,65 +1,66 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".gh-portal-account-header{display:flex;flex-direction:column;align-items:center;margin:0 0 32px}.gh-portal-account-header .gh-portal-avatar{margin:6px 0 8px!important}.gh-portal-account-data{margin-bottom:40px}footer.gh-portal-account-footer{display:flex}.gh-portal-account-footer.paid{margin-top:12px}.gh-portal-account-footermenu{display:flex;align-items:center;list-style:none;padding:0;margin:0}.gh-portal-account-footerright{display:flex;flex-grow:1;align-items:center;justify-content:flex-end}.gh-portal-account-footermenu li{margin-right:16px}.gh-portal-account-footermenu li:last-of-type{margin-right:0}.gh-portal-freeaccount-newsletter{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.gh-portal-freeaccount-newsletter .label{display:flex;flex-direction:column;flex-grow:1}.gh-portal-free-ctatext{margin-top:-12px}.gh-portal-cancelcontinue-container{margin:24px 0 32px}.gh-portal-list-detail .gh-portal-email-notice{display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--red);font-weight:500;font-size:1.25rem;letter-spacing:.2px}.gh-portal-email-notice-icon{width:20px;height:20px}.gh-portal-billing-button-loader{width:32px;height:32px;margin-right:-3px;opacity:.6}.gh-portal-product-icon{width:52px;margin-right:12px;border-radius:2px}.gh-portal-account-discountcontainer{position:relative;display:flex;align-items:center}.gh-portal-account-old-price{text-decoration:line-through;color:var(--grey9)!important}.gh-portal-account-tagicon{width:16px;height:16px;color:var(--brandcolor);margin-right:5px;z-index:999}@media (max-width: 390px){.gh-portal-account-footer{padding:0!important}}@media (max-width: 340px){.gh-portal-account-footer{padding:0!important;flex-wrap:wrap;gap:12px}.gh-portal-account-footer .gh-portal-account-footerright{justify-content:flex-start}}.gh-email-suppressed-page-title{margin-bottom:14px}.gh-email-suppressed-page-icon{display:block;width:38px;height:38px;margin:0 auto 18px}.gh-email-suppressed-page-text{padding:0 14px;text-align:center;color:var(--grey6)}.gh-email-faq-footer-text{color:var(--grey8)}.gh-portal-list-detail.email-newsletter .gh-email-faq-page-button{display:block;margin-top:3px}.accountEmail .gh-email-faq-page-button{margin-left:4px}.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:calc(6vmin - 14px)}.emailReceivingFAQ .gh-portal-closeicon-container{right:calc(6vmin - 20px)}@media (max-width: 480px){.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:16px}.emailReceivingFAQ .gh-portal-closeicon-container{right:24px}}.gh-email-faq-page-button{color:var(--brandcolor);cursor:pointer;background:none;transition:color linear .1s;font-size:1.45rem}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function($e){typeof define=="function"&&define.amd?define($e):$e()})(function(){var _u,vm,bm;"use strict";var Y2=Object.defineProperty;var G2=($e,Oe,an)=>Oe in $e?Y2($e,Oe,{enumerable:!0,configurable:!0,writable:!0,value:an}):$e[Oe]=an;var Z=($e,Oe,an)=>(G2($e,typeof Oe!="symbol"?Oe+"":Oe,an),an);function $e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},an={get exports(){return Oe},set exports(e){Oe=e}},Lr={};/*
2
+ (function(je){typeof define=="function"&&define.amd?define(je):je()})(function(){var Su,wg,xg;"use strict";var a2=Object.defineProperty;var s2=(je,$e,an)=>$e in je?a2(je,$e,{enumerable:!0,configurable:!0,writable:!0,value:an}):je[$e]=an;var Z=(je,$e,an)=>(s2(je,typeof $e!="symbol"?$e+"":$e,an),an);function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={},an={get exports(){return $e},set exports(e){$e=e}},Rr={};/*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */var Cu=Object.getOwnPropertySymbols,_m=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable;function Sm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Em(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Pu=Em()?Object.assign:function(e,t){for(var n,r=Sm(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)_m.call(n,a)&&(r[a]=n[a]);if(Cu){i=Cu(n);for(var s=0;s<i.length;s++)km.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},x={},Cm={get exports(){return x},set exports(e){x=e}},M={};/** @license React v17.0.2
6
+ */var Nu=Object.getOwnPropertySymbols,Sg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable;function Cg(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Pg(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Tu=Pg()?Object.assign:function(e,t){for(var n,r=Cg(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)Sg.call(n,a)&&(r[a]=n[a]);if(Nu){i=Nu(n);for(var s=0;s<i.length;s++)Eg.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},x={},Ng={get exports(){return x},set exports(e){x=e}},A={};/** @license React v17.0.2
7
7
  * react.production.min.js
8
8
  *
9
9
  * Copyright (c) Facebook, Inc. and its affiliates.
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
- */var Za=Pu,Ln=60103,Nu=60106;M.Fragment=60107,M.StrictMode=60108,M.Profiler=60114;var Tu=60109,Ou=60110,Ru=60112;M.Suspense=60113;var Lu=60115,Du=60116;if(typeof Symbol=="function"&&Symbol.for){var We=Symbol.for;Ln=We("react.element"),Nu=We("react.portal"),M.Fragment=We("react.fragment"),M.StrictMode=We("react.strict_mode"),M.Profiler=We("react.profiler"),Tu=We("react.provider"),Ou=We("react.context"),Ru=We("react.forward_ref"),M.Suspense=We("react.suspense"),Lu=We("react.memo"),Du=We("react.lazy")}var Iu=typeof Symbol=="function"&&Symbol.iterator;function Pm(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}function Dr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $u={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ju={};function Dn(e,t,n){this.props=e,this.context=t,this.refs=ju,this.updater=n||$u}Dn.prototype.isReactComponent={},Dn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Dr(85));this.updater.enqueueSetState(this,e,t,"setState")},Dn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Au(){}Au.prototype=Dn.prototype;function es(e,t,n){this.props=e,this.context=t,this.refs=ju,this.updater=n||$u}var ts=es.prototype=new Au;ts.constructor=es,Za(ts,Dn.prototype),ts.isPureReactComponent=!0;var ns={current:null},Mu=Object.prototype.hasOwnProperty,Fu={key:!0,ref:!0,__self:!0,__source:!0};function zu(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Mu.call(t,r)&&!Fu.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Ln,type:e,key:o,ref:a,props:i,_owner:ns.current}}function Nm(e,t){return{$$typeof:Ln,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ln}function Tm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uu=/\/+/g;function is(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Tm(""+e.key):t.toString(36)}function Yi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ln:case Nu:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+is(a,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(Uu,"$&/")+"/"),Yi(i,t,n,"",function(c){return c})):i!=null&&(rs(i)&&(i=Nm(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Uu,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+is(o,s);a+=Yi(o,t,n,l,i)}else if(l=Pm(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+is(o,s++),a+=Yi(o,t,n,l,i);else if(o==="object")throw t=""+e,Error(Dr(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function Gi(e,t,n){if(e==null)return e;var r=[],i=0;return Yi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Om(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Bu={current:null};function ft(){var e=Bu.current;if(e===null)throw Error(Dr(321));return e}var Rm={ReactCurrentDispatcher:Bu,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:ns,IsSomeRendererActing:{current:!1},assign:Za};M.Children={map:Gi,forEach:function(e,t,n){Gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gi(e,function(){t++}),t},toArray:function(e){return Gi(e,function(t){return t})||[]},only:function(e){if(!rs(e))throw Error(Dr(143));return e}},M.Component=Dn,M.PureComponent=es,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rm,M.cloneElement=function(e,t,n){if(e==null)throw Error(Dr(267,e));var r=Za({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=ns.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Mu.call(t,l)&&!Fu.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Ln,type:e.type,key:i,ref:o,props:r,_owner:a}},M.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Ou,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Tu,_context:e},e.Consumer=e},M.createElement=zu,M.createFactory=function(e){var t=zu.bind(null,e);return t.type=e,t},M.createRef=function(){return{current:null}},M.forwardRef=function(e){return{$$typeof:Ru,render:e}},M.isValidElement=rs,M.lazy=function(e){return{$$typeof:Du,_payload:{_status:-1,_result:e},_init:Om}},M.memo=function(e,t){return{$$typeof:Lu,type:e,compare:t===void 0?null:t}},M.useCallback=function(e,t){return ft().useCallback(e,t)},M.useContext=function(e,t){return ft().useContext(e,t)},M.useDebugValue=function(){},M.useEffect=function(e,t){return ft().useEffect(e,t)},M.useImperativeHandle=function(e,t,n){return ft().useImperativeHandle(e,t,n)},M.useLayoutEffect=function(e,t){return ft().useLayoutEffect(e,t)},M.useMemo=function(e,t){return ft().useMemo(e,t)},M.useReducer=function(e,t,n){return ft().useReducer(e,t,n)},M.useRef=function(e){return ft().useRef(e)},M.useState=function(e){return ft().useState(e)},M.version="17.0.2",function(e){e.exports=M}(Cm);const q=$e(x);/** @license React v17.0.2
13
+ */var ts=Tu,$n=60103,$u=60106;A.Fragment=60107,A.StrictMode=60108,A.Profiler=60114;var Ru=60109,Ou=60110,Du=60112;A.Suspense=60113;var Lu=60115,ju=60116;if(typeof Symbol=="function"&&Symbol.for){var We=Symbol.for;$n=We("react.element"),$u=We("react.portal"),A.Fragment=We("react.fragment"),A.StrictMode=We("react.strict_mode"),A.Profiler=We("react.profiler"),Ru=We("react.provider"),Ou=We("react.context"),Du=We("react.forward_ref"),A.Suspense=We("react.suspense"),Lu=We("react.memo"),ju=We("react.lazy")}var Iu=typeof Symbol=="function"&&Symbol.iterator;function Tg(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}function Or(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Au={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu={};function Rn(e,t,n){this.props=e,this.context=t,this.refs=Mu,this.updater=n||Au}Rn.prototype.isReactComponent={},Rn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Or(85));this.updater.enqueueSetState(this,e,t,"setState")},Rn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zu(){}zu.prototype=Rn.prototype;function ns(e,t,n){this.props=e,this.context=t,this.refs=Mu,this.updater=n||Au}var rs=ns.prototype=new zu;rs.constructor=ns,ts(rs,Rn.prototype),rs.isPureReactComponent=!0;var is={current:null},Fu=Object.prototype.hasOwnProperty,Uu={key:!0,ref:!0,__self:!0,__source:!0};function Bu(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Fu.call(t,r)&&!Uu.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:$n,type:e,key:o,ref:a,props:i,_owner:is.current}}function $g(e,t){return{$$typeof:$n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function os(e){return typeof e=="object"&&e!==null&&e.$$typeof===$n}function Rg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yu=/\/+/g;function as(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rg(""+e.key):t.toString(36)}function Hi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case $n:case $u:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+as(a,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(Yu,"$&/")+"/"),Hi(i,t,n,"",function(c){return c})):i!=null&&(os(i)&&(i=$g(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Yu,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+as(o,s);a+=Hi(o,t,n,l,i)}else if(l=Tg(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+as(o,s++),a+=Hi(o,t,n,l,i);else if(o==="object")throw t=""+e,Error(Or(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function Gi(e,t,n){if(e==null)return e;var r=[],i=0;return Hi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Og(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Hu={current:null};function ft(){var e=Hu.current;if(e===null)throw Error(Or(321));return e}var Dg={ReactCurrentDispatcher:Hu,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:is,IsSomeRendererActing:{current:!1},assign:ts};A.Children={map:Gi,forEach:function(e,t,n){Gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gi(e,function(){t++}),t},toArray:function(e){return Gi(e,function(t){return t})||[]},only:function(e){if(!os(e))throw Error(Or(143));return e}},A.Component=Rn,A.PureComponent=ns,A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dg,A.cloneElement=function(e,t,n){if(e==null)throw Error(Or(267,e));var r=ts({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=is.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Fu.call(t,l)&&!Uu.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:$n,type:e.type,key:i,ref:o,props:r,_owner:a}},A.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Ou,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Ru,_context:e},e.Consumer=e},A.createElement=Bu,A.createFactory=function(e){var t=Bu.bind(null,e);return t.type=e,t},A.createRef=function(){return{current:null}},A.forwardRef=function(e){return{$$typeof:Du,render:e}},A.isValidElement=os,A.lazy=function(e){return{$$typeof:ju,_payload:{_status:-1,_result:e},_init:Og}},A.memo=function(e,t){return{$$typeof:Lu,type:e,compare:t===void 0?null:t}},A.useCallback=function(e,t){return ft().useCallback(e,t)},A.useContext=function(e,t){return ft().useContext(e,t)},A.useDebugValue=function(){},A.useEffect=function(e,t){return ft().useEffect(e,t)},A.useImperativeHandle=function(e,t,n){return ft().useImperativeHandle(e,t,n)},A.useLayoutEffect=function(e,t){return ft().useLayoutEffect(e,t)},A.useMemo=function(e,t){return ft().useMemo(e,t)},A.useReducer=function(e,t,n){return ft().useReducer(e,t,n)},A.useRef=function(e){return ft().useRef(e)},A.useState=function(e){return ft().useState(e)},A.version="17.0.2",function(e){e.exports=A}(Ng);const q=je(x);/** @license React v17.0.2
14
14
  * react-jsx-runtime.production.min.js
15
15
  *
16
16
  * Copyright (c) Facebook, Inc. and its affiliates.
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */var Lm=x,Hu=60103;if(Lr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Yu=Symbol.for;Hu=Yu("react.element"),Lr.Fragment=Yu("react.fragment")}var Dm=Lm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Im=Object.prototype.hasOwnProperty,$m={key:!0,ref:!0,__self:!0,__source:!0};function Gu(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Im.call(t,r)&&!$m.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Hu,type:e,key:o,ref:a,props:i,_owner:Dm.current}}Lr.jsx=Gu,Lr.jsxs=Gu,function(e){e.exports=Lr}(an);const H=Oe.Fragment,u=Oe.jsx,b=Oe.jsxs;var Ir={},jm={get exports(){return Ir},set exports(e){Ir=e}},je={},os={},Am={get exports(){return os},set exports(e){os=e}},Wu={};/** @license React v0.20.2
20
+ */var Lg=x,Gu=60103;if(Rr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Wu=Symbol.for;Gu=Wu("react.element"),Rr.Fragment=Wu("react.fragment")}var jg=Lg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ig=Object.prototype.hasOwnProperty,Ag={key:!0,ref:!0,__self:!0,__source:!0};function Vu(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Ig.call(t,r)&&!Ag.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Gu,type:e,key:o,ref:a,props:i,_owner:jg.current}}Rr.jsx=Vu,Rr.jsxs=Vu,function(e){e.exports=Rr}(an);const Y=$e.Fragment,u=$e.jsx,b=$e.jsxs;var Dr={},Mg={get exports(){return Dr},set exports(e){Dr=e}},Ie={},ss={},zg={get exports(){return ss},set exports(e){ss=e}},Ku={};/** @license React v0.20.2
21
21
  * scheduler.production.min.js
22
22
  *
23
23
  * Copyright (c) Facebook, Inc. and its affiliates.
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,d=function(){if(l!==null)try{var P=e.unstable_now();l(!0,P),l=null}catch(D){throw setTimeout(d,0),D}};t=function(P){l!==null?setTimeout(t,0,P):(l=P,setTimeout(d,0))},n=function(P,D){c=setTimeout(P,D)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&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 v=!1,k=null,m=-1,h=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},i=function(){},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):h=0<P?Math.floor(1e3/P):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(k!==null){var P=e.unstable_now();g=P+h;try{k(!0,P)?_.postMessage(null):(v=!1,k=null)}catch(D){throw _.postMessage(null),D}}else v=!1},t=function(P){k=P,v||(v=!0,_.postMessage(null))},n=function(P,D){m=p(function(){P(e.unstable_now())},D)},r=function(){f(m),m=-1}}function C(P,D){var j=P.length;P.push(D);e:for(;;){var U=j-1>>>1,re=P[U];if(re!==void 0&&0<L(re,D))P[U]=D,P[j]=re,j=U;else break e}}function S(P){return P=P[0],P===void 0?null:P}function O(P){var D=P[0];if(D!==void 0){var j=P.pop();if(j!==D){P[0]=j;e:for(var U=0,re=P.length;U<re;){var Ie=2*(U+1)-1,Ge=P[Ie],Pt=Ie+1,Nt=P[Pt];if(Ge!==void 0&&0>L(Ge,j))Nt!==void 0&&0>L(Nt,Ge)?(P[U]=Nt,P[Pt]=j,U=Pt):(P[U]=Ge,P[Ie]=j,U=Ie);else if(Nt!==void 0&&0>L(Nt,j))P[U]=Nt,P[Pt]=j,U=Pt;else break e}}return D}return null}function L(P,D){var j=P.sortIndex-D.sortIndex;return j!==0?j:P.id-D.id}var N=[],z=[],Ye=1,te=null,ne=3,Ze=!1,pt=!1,dt=!1;function Ct(P){for(var D=S(z);D!==null;){if(D.callback===null)O(z);else if(D.startTime<=P)O(z),D.sortIndex=D.expirationTime,C(N,D);else break;D=S(z)}}function Or(P){if(dt=!1,Ct(P),!pt)if(S(N)!==null)pt=!0,t(Rn);else{var D=S(z);D!==null&&n(Or,D.startTime-P)}}function Rn(P,D){pt=!1,dt&&(dt=!1,r()),Ze=!0;var j=ne;try{for(Ct(D),te=S(N);te!==null&&(!(te.expirationTime>D)||P&&!e.unstable_shouldYield());){var U=te.callback;if(typeof U=="function"){te.callback=null,ne=te.priorityLevel;var re=U(te.expirationTime<=D);D=e.unstable_now(),typeof re=="function"?te.callback=re:te===S(N)&&O(N),Ct(D)}else O(N);te=S(N)}if(te!==null)var Ie=!0;else{var Ge=S(z);Ge!==null&&n(Or,Ge.startTime-D),Ie=!1}return Ie}finally{te=null,ne=j,Ze=!1}}var ku=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){pt||Ze||(pt=!0,t(Rn))},e.unstable_getCurrentPriorityLevel=function(){return ne},e.unstable_getFirstCallbackNode=function(){return S(N)},e.unstable_next=function(P){switch(ne){case 1:case 2:case 3:var D=3;break;default:D=ne}var j=ne;ne=D;try{return P()}finally{ne=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ku,e.unstable_runWithPriority=function(P,D){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var j=ne;ne=P;try{return D()}finally{ne=j}},e.unstable_scheduleCallback=function(P,D,j){var U=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?U+j:U):j=U,P){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=j+re,P={id:Ye++,callback:D,priorityLevel:P,startTime:j,expirationTime:re,sortIndex:-1},j>U?(P.sortIndex=j,C(z,P),S(N)===null&&P===S(z)&&(dt?r():dt=!0,n(Or,j-U))):(P.sortIndex=re,C(N,P),pt||Ze||(pt=!0,t(Rn))),P},e.unstable_wrapCallback=function(P){var D=ne;return function(){var j=ne;ne=D;try{return P.apply(this,arguments)}finally{ne=j}}}})(Wu),function(e){e.exports=Wu}(Am);/** @license React v17.0.2
27
+ */(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,p=function(){if(l!==null)try{var P=e.unstable_now();l(!0,P),l=null}catch(D){throw setTimeout(p,0),D}};t=function(P){l!==null?setTimeout(t,0,P):(l=P,setTimeout(p,0))},n=function(P,D){c=setTimeout(P,D)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&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 v=!1,_=null,g=-1,h=5,m=0;e.unstable_shouldYield=function(){return e.unstable_now()>=m},i=function(){},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):h=0<P?Math.floor(1e3/P):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(_!==null){var P=e.unstable_now();m=P+h;try{_(!0,P)?k.postMessage(null):(v=!1,_=null)}catch(D){throw k.postMessage(null),D}}else v=!1},t=function(P){_=P,v||(v=!0,k.postMessage(null))},n=function(P,D){g=d(function(){P(e.unstable_now())},D)},r=function(){f(g),g=-1}}function C(P,D){var I=P.length;P.push(D);e:for(;;){var U=I-1>>>1,ie=P[U];if(ie!==void 0&&0<O(ie,D))P[U]=D,P[I]=ie,I=U;else break e}}function S(P){return P=P[0],P===void 0?null:P}function $(P){var D=P[0];if(D!==void 0){var I=P.pop();if(I!==D){P[0]=I;e:for(var U=0,ie=P.length;U<ie;){var Le=2*(U+1)-1,Ge=P[Le],Pt=Le+1,Nt=P[Pt];if(Ge!==void 0&&0>O(Ge,I))Nt!==void 0&&0>O(Nt,Ge)?(P[U]=Nt,P[Pt]=I,U=Pt):(P[U]=Ge,P[Le]=I,U=Le);else if(Nt!==void 0&&0>O(Nt,I))P[U]=Nt,P[Pt]=I,U=Pt;else break e}}return D}return null}function O(P,D){var I=P.sortIndex-D.sortIndex;return I!==0?I:P.id-D.id}var N=[],F=[],He=1,te=null,re=3,Ze=!1,dt=!1,pt=!1;function Ct(P){for(var D=S(F);D!==null;){if(D.callback===null)$(F);else if(D.startTime<=P)$(F),D.sortIndex=D.expirationTime,C(N,D);else break;D=S(F)}}function Tr(P){if(pt=!1,Ct(P),!dt)if(S(N)!==null)dt=!0,t(Tn);else{var D=S(F);D!==null&&n(Tr,D.startTime-P)}}function Tn(P,D){dt=!1,pt&&(pt=!1,r()),Ze=!0;var I=re;try{for(Ct(D),te=S(N);te!==null&&(!(te.expirationTime>D)||P&&!e.unstable_shouldYield());){var U=te.callback;if(typeof U=="function"){te.callback=null,re=te.priorityLevel;var ie=U(te.expirationTime<=D);D=e.unstable_now(),typeof ie=="function"?te.callback=ie:te===S(N)&&$(N),Ct(D)}else $(N);te=S(N)}if(te!==null)var Le=!0;else{var Ge=S(F);Ge!==null&&n(Tr,Ge.startTime-D),Le=!1}return Le}finally{te=null,re=I,Ze=!1}}var Eu=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){dt||Ze||(dt=!0,t(Tn))},e.unstable_getCurrentPriorityLevel=function(){return re},e.unstable_getFirstCallbackNode=function(){return S(N)},e.unstable_next=function(P){switch(re){case 1:case 2:case 3:var D=3;break;default:D=re}var I=re;re=D;try{return P()}finally{re=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Eu,e.unstable_runWithPriority=function(P,D){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=re;re=P;try{return D()}finally{re=I}},e.unstable_scheduleCallback=function(P,D,I){var U=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?U+I:U):I=U,P){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=I+ie,P={id:He++,callback:D,priorityLevel:P,startTime:I,expirationTime:ie,sortIndex:-1},I>U?(P.sortIndex=I,C(F,P),S(N)===null&&P===S(F)&&(pt?r():pt=!0,n(Tr,I-U))):(P.sortIndex=ie,C(N,P),dt||Ze||(dt=!0,t(Tn))),P},e.unstable_wrapCallback=function(P){var D=re;return function(){var I=re;re=D;try{return P.apply(this,arguments)}finally{re=I}}}})(Ku),function(e){e.exports=Ku}(zg);/** @license React v17.0.2
28
28
  * react-dom.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var Wi=x,W=Pu,ae=os;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Wi)throw Error(E(227));var Vu=new Set,$r={};function sn(e,t){In(e,t),In(e+"Capture",t)}function In(e,t){for($r[e]=t,e=0;e<t.length;e++)Vu.add(t[e])}var ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mm=/^[: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]*$/,Ku=Object.prototype.hasOwnProperty,qu={},Qu={};function Fm(e){return Ku.call(Qu,e)?!0:Ku.call(qu,e)?!1:Mm.test(e)?Qu[e]=!0:(qu[e]=!0,!1)}function zm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Um(e,t,n,r){if(t===null||typeof t>"u"||zm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xe(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new xe(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new xe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new xe(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){ce[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new xe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ce[e]=new xe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ce[e]=new xe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ce[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var as=/[\-:]([a-z])/g;function ss(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(as,ss);ce[t]=new xe(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(as,ss);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(as,ss);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)}),ce.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ls(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null,o=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(Um(t,n,i,r)&&(n=null),r||i===null?Fm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ln=Wi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jr=60103,cn=60106,Tt=60107,cs=60108,Ar=60114,us=60109,ps=60110,Vi=60112,Mr=60113,Ki=60120,qi=60115,ds=60116,fs=60121,hs=60128,Ju=60129,gs=60130,ms=60131;if(typeof Symbol=="function"&&Symbol.for){var se=Symbol.for;jr=se("react.element"),cn=se("react.portal"),Tt=se("react.fragment"),cs=se("react.strict_mode"),Ar=se("react.profiler"),us=se("react.provider"),ps=se("react.context"),Vi=se("react.forward_ref"),Mr=se("react.suspense"),Ki=se("react.suspense_list"),qi=se("react.memo"),ds=se("react.lazy"),fs=se("react.block"),se("react.scope"),hs=se("react.opaque.id"),Ju=se("react.debug_trace_mode"),gs=se("react.offscreen"),ms=se("react.legacy_hidden")}var Xu=typeof Symbol=="function"&&Symbol.iterator;function Fr(e){return e===null||typeof e!="object"?null:(e=Xu&&e[Xu]||e["@@iterator"],typeof e=="function"?e:null)}var ys;function zr(e){if(ys===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ys=t&&t[1]||""}return`
35
- `+ys+e}var vs=!1;function Qi(e,t){if(!e||vs)return"";vs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
34
+ */var Wi=x,W=Tu,ae=ss;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Wi)throw Error(E(227));var qu=new Set,Lr={};function sn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(Lr[e]=t,e=0;e<t.length;e++)qu.add(t[e])}var ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fg=/^[: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]*$/,Qu=Object.prototype.hasOwnProperty,Ju={},Xu={};function Ug(e){return Qu.call(Xu,e)?!0:Qu.call(Ju,e)?!1:Fg.test(e)?Xu[e]=!0:(Ju[e]=!0,!1)}function Bg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yg(e,t,n,r){if(t===null||typeof t>"u"||Bg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xe(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new xe(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new xe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new xe(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){ce[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new xe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ce[e]=new xe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ce[e]=new xe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ce[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ls=/[\-:]([a-z])/g;function cs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ls,cs);ce[t]=new xe(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ls,cs);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ls,cs);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)}),ce.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function us(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null,o=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(Yg(t,n,i,r)&&(n=null),r||i===null?Ug(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ln=Wi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jr=60103,cn=60106,Tt=60107,ds=60108,Ir=60114,ps=60109,fs=60110,Vi=60112,Ar=60113,Ki=60120,qi=60115,hs=60116,ms=60121,gs=60128,Zu=60129,ys=60130,vs=60131;if(typeof Symbol=="function"&&Symbol.for){var se=Symbol.for;jr=se("react.element"),cn=se("react.portal"),Tt=se("react.fragment"),ds=se("react.strict_mode"),Ir=se("react.profiler"),ps=se("react.provider"),fs=se("react.context"),Vi=se("react.forward_ref"),Ar=se("react.suspense"),Ki=se("react.suspense_list"),qi=se("react.memo"),hs=se("react.lazy"),ms=se("react.block"),se("react.scope"),gs=se("react.opaque.id"),Zu=se("react.debug_trace_mode"),ys=se("react.offscreen"),vs=se("react.legacy_hidden")}var ed=typeof Symbol=="function"&&Symbol.iterator;function Mr(e){return e===null||typeof e!="object"?null:(e=ed&&e[ed]||e["@@iterator"],typeof e=="function"?e:null)}var bs;function zr(e){if(bs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bs=t&&t[1]||""}return`
35
+ `+bs+e}var ws=!1;function Qi(e,t){if(!e||ws)return"";ws=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
36
36
  `),o=r.stack.split(`
37
37
  `),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s])return`
38
- `+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{vs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Bm(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Qi(e.type,!1),e;case 11:return e=Qi(e.type.render,!1),e;case 22:return e=Qi(e.type._render,!1),e;case 1:return e=Qi(e.type,!0),e;default:return""}}function $n(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tt:return"Fragment";case cn:return"Portal";case Ar:return"Profiler";case cs:return"StrictMode";case Mr:return"Suspense";case Ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ps:return(e.displayName||"Context")+".Consumer";case us:return(e._context.displayName||"Context")+".Provider";case Vi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case qi:return $n(e.type);case fs:return $n(e._render);case ds:t=e._payload,e=e._init;try{return $n(e(t))}catch{}}return null}function Ot(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Zu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hm(e){var t=Zu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Hm(e))}function ep(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function np(e,t){t=t.checked,t!=null&&ls(e,"checked",t,!1)}function ws(e,t){np(e,t);var n=Ot(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&xs(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xs(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ym(e){var t="";return Wi.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function _s(e,t){return e=W({children:void 0},t),(t=Ym(t.children))&&(e.children=t),e}function jn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ot(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ks(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ip(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ot(n)}}function op(e,t){var n=Ot(t.value),r=Ot(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ap(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Ss={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sp(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 Es(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,lp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Ss.svg||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={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},Gm=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function up(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Wm=W({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 Cs(e,t){if(t){if(Wm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ps(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ts=null,An=null,Mn=null;function pp(e){if(e=si(e)){if(typeof Ts!="function")throw Error(E(280));var t=e.stateNode;t&&(t=vo(t),Ts(e.stateNode,e.type,t))}}function dp(e){An?Mn?Mn.push(e):Mn=[e]:An=e}function fp(){if(An){var e=An,t=Mn;if(Mn=An=null,pp(e),t)for(e=0;e<t.length;e++)pp(t[e])}}function Os(e,t){return e(t)}function hp(e,t,n,r,i){return e(t,n,r,i)}function Rs(){}var gp=Os,un=!1,Ls=!1;function Ds(){(An!==null||Mn!==null)&&(Rs(),fp())}function Vm(e,t,n){if(Ls)return e(t,n);Ls=!0;try{return gp(e,t,n)}finally{Ls=!1,Ds()}}function Hr(e,t){var n=e.stateNode;if(n===null)return null;var r=vo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Is=!1;if(ht)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Is=!1}function Km(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Gr=!1,eo=null,to=!1,$s=null,qm={onError:function(e){Gr=!0,eo=e}};function Qm(e,t,n,r,i,o,a,s,l){Gr=!1,eo=null,Km.apply(qm,arguments)}function Jm(e,t,n,r,i,o,a,s,l){if(Qm.apply(this,arguments),Gr){if(Gr){var c=eo;Gr=!1,eo=null}else throw Error(E(198));to||(to=!0,$s=c)}}function pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function yp(e){if(pn(e)!==e)throw Error(E(188))}function Xm(e){var t=e.alternate;if(!t){if(t=pn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return yp(i),e;if(o===r)return yp(i),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function vp(e){if(e=Xm(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function bp(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var wp,js,xp,_p,As=!1,et=[],Rt=null,Lt=null,Dt=null,Wr=new Map,Vr=new Map,Kr=[],kp="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 Ms(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Sp(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Wr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(t.pointerId)}}function qr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=Ms(t,n,r,i,o),t!==null&&(t=si(t),t!==null&&js(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Zm(e,t,n,r,i){switch(t){case"focusin":return Rt=qr(Rt,e,t,n,r,i),!0;case"dragenter":return Lt=qr(Lt,e,t,n,r,i),!0;case"mouseover":return Dt=qr(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Wr.set(o,qr(Wr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Vr.set(o,qr(Vr.get(o)||null,e,t,n,r,i)),!0}return!1}function ey(e){var t=dn(e.target);if(t!==null){var n=pn(t);if(n!==null){if(t=n.tag,t===13){if(t=mp(n),t!==null){e.blockedOn=t,_p(e.lanePriority,function(){ae.unstable_runWithPriority(e.priority,function(){xp(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function no(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ys(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=si(n),t!==null&&js(t),e.blockedOn=n,!1;t.shift()}return!0}function Ep(e,t,n){no(e)&&n.delete(t)}function ty(){for(As=!1;0<et.length;){var e=et[0];if(e.blockedOn!==null){e=si(e.blockedOn),e!==null&&wp(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ys(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&et.shift()}Rt!==null&&no(Rt)&&(Rt=null),Lt!==null&&no(Lt)&&(Lt=null),Dt!==null&&no(Dt)&&(Dt=null),Wr.forEach(Ep),Vr.forEach(Ep)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,As||(As=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ty)))}function Cp(e){function t(i){return Qr(i,e)}if(0<et.length){Qr(et[0],e);for(var n=1;n<et.length;n++){var r=et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rt!==null&&Qr(Rt,e),Lt!==null&&Qr(Lt,e),Dt!==null&&Qr(Dt,e),Wr.forEach(t),Vr.forEach(t),n=0;n<Kr.length;n++)r=Kr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kr.length&&(n=Kr[0],n.blockedOn===null);)ey(n),n.blockedOn===null&&Kr.shift()}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fn={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},Fs={},Pp={};ht&&(Pp=document.createElement("div").style,"AnimationEvent"in window||(delete Fn.animationend.animation,delete Fn.animationiteration.animation,delete Fn.animationstart.animation),"TransitionEvent"in window||delete Fn.transitionend.transition);function io(e){if(Fs[e])return Fs[e];if(!Fn[e])return e;var t=Fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pp)return Fs[e]=t[n];return e}var Np=io("animationend"),Tp=io("animationiteration"),Op=io("animationstart"),Rp=io("transitionend"),Lp=new Map,zs=new Map,ny=["abort","abort",Np,"animationEnd",Tp,"animationIteration",Op,"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",Rp,"transitionEnd","waiting","waiting"];function Us(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zs.set(r,t),Lp.set(r,i),sn(i,[r])}}var ry=ae.unstable_now;ry();var B=8;function zn(e){if(1&e)return B=15,1;if(2&e)return B=14,2;if(4&e)return B=13,4;var t=24&e;return t!==0?(B=12,t):e&32?(B=11,32):(t=192&e,t!==0?(B=10,t):e&256?(B=9,256):(t=3584&e,t!==0?(B=8,t):e&4096?(B=7,4096):(t=4186112&e,t!==0?(B=6,t):(t=62914560&e,t!==0?(B=5,t):e&67108864?(B=4,67108864):e&134217728?(B=3,134217728):(t=805306368&e,t!==0?(B=2,t):1073741824&e?(B=1,1073741824):(B=8,e))))))}function iy(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function oy(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(E(358,e))}}function Jr(e,t){var n=e.pendingLanes;if(n===0)return B=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)r=o,i=B=15;else if(o=n&134217727,o!==0){var l=o&~a;l!==0?(r=zn(l),i=B):(s&=o,s!==0&&(r=zn(s),i=B))}else o=n&~a,o!==0?(r=zn(o),i=B):s!==0&&(r=zn(s),i=B);if(r===0)return 0;if(r=31-It(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(zn(t),i<=B)return t;B=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-It(t),i=1<<n,r|=e[n],t&=~i;return r}function Dp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oo(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Un(24&~t),e===0?oo(10,t):e;case 10:return e=Un(192&~t),e===0?oo(8,t):e;case 8:return e=Un(3584&~t),e===0&&(e=Un(4186112&~t),e===0&&(e=512)),e;case 2:return t=Un(805306368&~t),t===0&&(t=268435456),t}throw Error(E(358,e))}function Un(e){return e&-e}function Bs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-It(t),e[t]=n}var It=Math.clz32?Math.clz32:ly,ay=Math.log,sy=Math.LN2;function ly(e){return e===0?32:31-(ay(e)/sy|0)|0}var cy=ae.unstable_UserBlockingPriority,uy=ae.unstable_runWithPriority,so=!0;function py(e,t,n,r){un||Rs();var i=Hs,o=un;un=!0;try{hp(i,e,t,n,r)}finally{(un=o)||Ds()}}function dy(e,t,n,r){uy(cy,Hs.bind(null,e,t,n,r))}function Hs(e,t,n,r){if(so){var i;if((i=(t&4)===0)&&0<et.length&&-1<kp.indexOf(e))e=Ms(null,e,t,n,r),et.push(e);else{var o=Ys(e,t,n,r);if(o===null)i&&Sp(e,r);else{if(i){if(-1<kp.indexOf(e)){e=Ms(o,e,t,n,r),et.push(e);return}if(Zm(o,e,t,n,r))return;Sp(e,r)}cd(e,t,r,null,n)}}}}function Ys(e,t,n,r){var i=Ns(r);if(i=dn(i),i!==null){var o=pn(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=mp(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return cd(e,t,r,i,n),null}var $t=null,Gs=null,lo=null;function Ip(){if(lo)return lo;var e,t=Gs,n=t.length,r,i="value"in $t?$t.value:$t.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return lo=i.slice(e,1<r?1-r:void 0)}function co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uo(){return!0}function $p(){return!1}function Re(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uo:$p,this.isPropagationStopped=$p,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=Re(Bn),Xr=W({},Bn,{view:0,detail:0}),fy=Re(Xr),Vs,Ks,Zr,po=W({},Xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zr&&(Zr&&e.type==="mousemove"?(Vs=e.screenX-Zr.screenX,Ks=e.screenY-Zr.screenY):Ks=Vs=0,Zr=e),Vs)},movementY:function(e){return"movementY"in e?e.movementY:Ks}}),jp=Re(po),hy=W({},po,{dataTransfer:0}),gy=Re(hy),my=W({},Xr,{relatedTarget:0}),qs=Re(my),yy=W({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),vy=Re(yy),by=W({},Bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wy=Re(by),xy=W({},Bn,{data:0}),Ap=Re(xy),_y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ky={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"},Sy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ey(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sy[e])?!!t[e]:!1}function Qs(){return Ey}var Cy=W({},Xr,{key:function(e){if(e.key){var t=_y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ky[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qs,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Py=Re(Cy),Ny=W({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mp=Re(Ny),Ty=W({},Xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qs}),Oy=Re(Ty),Ry=W({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ly=Re(Ry),Dy=W({},po,{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}),Iy=Re(Dy),$y=[9,13,27,32],Js=ht&&"CompositionEvent"in window,ei=null;ht&&"documentMode"in document&&(ei=document.documentMode);var jy=ht&&"TextEvent"in window&&!ei,Fp=ht&&(!Js||ei&&8<ei&&11>=ei),zp=String.fromCharCode(32),Up=!1;function Bp(e,t){switch(e){case"keyup":return $y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Ay(e,t){switch(e){case"compositionend":return Hp(t);case"keypress":return t.which!==32?null:(Up=!0,zp);case"textInput":return e=t.data,e===zp&&Up?null:e;default:return null}}function My(e,t){if(Hn)return e==="compositionend"||!Js&&Bp(e,t)?(e=Ip(),lo=Gs=$t=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fp&&t.locale!=="ko"?null:t.data;default:return null}}var Fy={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 Yp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fy[e.type]:t==="textarea"}function Gp(e,t,n,r){dp(r),t=ho(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ti=null,ni=null;function zy(e){id(e,0)}function fo(e){var t=Kn(e);if(ep(t))return e}function Uy(e,t){if(e==="change")return t}var Wp=!1;if(ht){var Xs;if(ht){var Zs="oninput"in document;if(!Zs){var Vp=document.createElement("div");Vp.setAttribute("oninput","return;"),Zs=typeof Vp.oninput=="function"}Xs=Zs}else Xs=!1;Wp=Xs&&(!document.documentMode||9<document.documentMode)}function Kp(){ti&&(ti.detachEvent("onpropertychange",qp),ni=ti=null)}function qp(e){if(e.propertyName==="value"&&fo(ni)){var t=[];if(Gp(t,ni,e,Ns(e)),e=zy,un)e(t);else{un=!0;try{Os(e,t)}finally{un=!1,Ds()}}}}function By(e,t,n){e==="focusin"?(Kp(),ti=t,ni=n,ti.attachEvent("onpropertychange",qp)):e==="focusout"&&Kp()}function Hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fo(ni)}function Yy(e,t){if(e==="click")return fo(t)}function Gy(e,t){if(e==="input"||e==="change")return fo(t)}function Wy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:Wy,Vy=Object.prototype.hasOwnProperty;function ri(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Vy.call(t,n[r])||!Ae(e[n[r]],t[n[r]]))return!1;return!0}function Qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jp(e,t){var n=Qp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qp(n)}}function Xp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zp(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function el(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ky=ht&&"documentMode"in document&&11>=document.documentMode,Yn=null,tl=null,ii=null,nl=!1;function ed(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nl||Yn==null||Yn!==Xi(r)||(r=Yn,"selectionStart"in r&&el(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ii&&ri(ii,r)||(ii=r,r=ho(tl,"onSelect"),0<r.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yn)))}Us("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),Us("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),Us(ny,2);for(var td="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),rl=0;rl<td.length;rl++)zs.set(td[rl],0);In("onMouseEnter",["mouseout","mouseover"]),In("onMouseLeave",["mouseout","mouseover"]),In("onPointerEnter",["pointerout","pointerover"]),In("onPointerLeave",["pointerout","pointerover"]),sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nd=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function rd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jm(r,t,void 0,e),e.currentTarget=null}function id(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;rd(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;rd(i,s,c),o=l}}}if(to)throw e=$s,to=!1,$s=null,e}function Y(e,t){var n=gd(t),r=e+"__bubble";n.has(r)||(ld(t,e,2,!1),n.add(r))}var od="_reactListening"+Math.random().toString(36).slice(2);function ad(e){e[od]||(e[od]=!0,Vu.forEach(function(t){nd.has(t)||sd(t,!1,e,null),sd(t,!0,e,null)}))}function sd(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!t&&nd.has(e)){if(e!=="scroll")return;i|=2,o=r}var a=gd(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),ld(o,e,i,t),a.add(s))}function ld(e,t,n,r){var i=zs.get(t);switch(i===void 0?2:i){case 0:i=py;break;case 1:i=dy;break;default:i=Hs}n=i.bind(null,t,n,e),i=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function cd(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=dn(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Vm(function(){var c=o,d=Ns(n),p=[];e:{var f=Lp.get(e);if(f!==void 0){var y=Ws,v=e;switch(e){case"keypress":if(co(n)===0)break e;case"keydown":case"keyup":y=Py;break;case"focusin":v="focus",y=qs;break;case"focusout":v="blur",y=qs;break;case"beforeblur":case"afterblur":y=qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=jp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Oy;break;case Np:case Tp:case Op:y=vy;break;case Rp:y=Ly;break;case"scroll":y=fy;break;case"wheel":y=Iy;break;case"copy":case"cut":case"paste":y=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Mp}var k=(t&4)!==0,m=!k&&e==="scroll",h=k?f!==null?f+"Capture":null:f;k=[];for(var g=c,w;g!==null;){w=g;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,h!==null&&(_=Hr(g,h),_!=null&&k.push(ai(g,_,w)))),m)break;g=g.return}0<k.length&&(f=new y(f,v,null,n,d),p.push({event:f,listeners:k}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(dn(v)||v[Vn]))break e;if((y||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?dn(v):null,v!==null&&(m=pn(v),v!==m||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(k=jp,_="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(k=Mp,_="onPointerLeave",h="onPointerEnter",g="pointer"),m=y==null?f:Kn(y),w=v==null?f:Kn(v),f=new k(_,g+"leave",y,n,d),f.target=m,f.relatedTarget=w,_=null,dn(d)===c&&(k=new k(h,g+"enter",v,n,d),k.target=w,k.relatedTarget=m,_=k),m=_,y&&v)t:{for(k=y,h=v,g=0,w=k;w;w=Gn(w))g++;for(w=0,_=h;_;_=Gn(_))w++;for(;0<g-w;)k=Gn(k),g--;for(;0<w-g;)h=Gn(h),w--;for(;g--;){if(k===h||h!==null&&k===h.alternate)break t;k=Gn(k),h=Gn(h)}k=null}else k=null;y!==null&&ud(p,f,y,k,!1),v!==null&&m!==null&&ud(p,m,v,k,!0)}}e:{if(f=c?Kn(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var C=Uy;else if(Yp(f))if(Wp)C=Gy;else{C=Hy;var S=By}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Yy);if(C&&(C=C(e,c))){Gp(p,C,n,d);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&xs(f,"number",f.value)}switch(S=c?Kn(c):window,e){case"focusin":(Yp(S)||S.contentEditable==="true")&&(Yn=S,tl=c,ii=null);break;case"focusout":ii=tl=Yn=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,ed(p,n,d);break;case"selectionchange":if(Ky)break;case"keydown":case"keyup":ed(p,n,d)}var O;if(Js)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Hn?Bp(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Fp&&n.locale!=="ko"&&(Hn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Hn&&(O=Ip()):($t=d,Gs="value"in $t?$t.value:$t.textContent,Hn=!0)),S=ho(c,L),0<S.length&&(L=new Ap(L,e,null,n,d),p.push({event:L,listeners:S}),O?L.data=O:(O=Hp(n),O!==null&&(L.data=O)))),(O=jy?Ay(e,n):My(e,n))&&(c=ho(c,"onBeforeInput"),0<c.length&&(d=new Ap("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:c}),d.data=O))}id(p,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ho(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Hr(e,n),o!=null&&r.unshift(ai(e,o,i)),o=Hr(e,t),o!=null&&r.push(ai(e,o,i))),e=e.return}return r}function Gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ud(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Hr(n,o),l!=null&&a.unshift(ai(n,l,s))):i||(l=Hr(n,o),l!=null&&a.push(ai(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function go(){}var il=null,ol=null;function pd(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function al(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dd=typeof setTimeout=="function"?setTimeout:void 0,qy=typeof clearTimeout=="function"?clearTimeout:void 0;function sl(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Wn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ll=0;function Qy(e){return{$$typeof:hs,toString:e,valueOf:e}}var mo=Math.random().toString(36).slice(2),jt="__reactFiber$"+mo,yo="__reactProps$"+mo,Vn="__reactContainer$"+mo,hd="__reactEvents$"+mo;function dn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vn]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fd(e);e!==null;){if(n=e[jt])return n;e=fd(e)}return t}e=n,n=e.parentNode}return null}function si(e){return e=e[jt]||e[Vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function vo(e){return e[yo]||null}function gd(e){var t=e[hd];return t===void 0&&(t=e[hd]=new Set),t}var cl=[],qn=-1;function At(e){return{current:e}}function G(e){0>qn||(e.current=cl[qn],cl[qn]=null,qn--)}function Q(e,t){qn++,cl[qn]=e.current,e.current=t}var Mt={},he=At(Mt),Ce=At(!1),fn=Mt;function Qn(e,t){var n=e.type.contextTypes;if(!n)return Mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pe(e){return e=e.childContextTypes,e!=null}function bo(){G(Ce),G(he)}function md(e,t,n){if(he.current!==Mt)throw Error(E(168));Q(he,t),Q(Ce,n)}function yd(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(E(108,$n(t)||"Unknown",i));return W({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mt,fn=he.current,Q(he,e),Q(Ce,Ce.current),!0}function vd(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=yd(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,G(Ce),G(he),Q(he,e)):G(Ce),Q(Ce,n)}var ul=null,hn=null,Jy=ae.unstable_runWithPriority,pl=ae.unstable_scheduleCallback,dl=ae.unstable_cancelCallback,Xy=ae.unstable_shouldYield,bd=ae.unstable_requestPaint,fl=ae.unstable_now,Zy=ae.unstable_getCurrentPriorityLevel,xo=ae.unstable_ImmediatePriority,wd=ae.unstable_UserBlockingPriority,xd=ae.unstable_NormalPriority,_d=ae.unstable_LowPriority,kd=ae.unstable_IdlePriority,hl={},e0=bd!==void 0?bd:function(){},gt=null,_o=null,gl=!1,Sd=fl(),ge=1e4>Sd?fl:function(){return fl()-Sd};function Jn(){switch(Zy()){case xo:return 99;case wd:return 98;case xd:return 97;case _d:return 96;case kd:return 95;default:throw Error(E(332))}}function Ed(e){switch(e){case 99:return xo;case 98:return wd;case 97:return xd;case 96:return _d;case 95:return kd;default:throw Error(E(332))}}function gn(e,t){return e=Ed(e),Jy(e,t)}function li(e,t,n){return e=Ed(e),pl(e,t,n)}function tt(){if(_o!==null){var e=_o;_o=null,dl(e)}Cd()}function Cd(){if(!gl&&gt!==null){gl=!0;var e=0;try{var t=gt;gn(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),gt=null}catch(n){throw gt!==null&&(gt=gt.slice(e+1)),pl(xo,tt),n}finally{gl=!1}}}var t0=ln.ReactCurrentBatchConfig;function Ve(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ko=At(null),So=null,Xn=null,Eo=null;function ml(){Eo=Xn=So=null}function yl(e){var t=ko.current;G(ko),e.type._context._currentValue=t}function Pd(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Zn(e,t){So=e,Eo=Xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function Me(e,t){if(Eo!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Eo=e,t=1073741823),t={context:e,observedBits:t,next:null},Xn===null){if(So===null)throw Error(E(308));Xn=t,So.dependencies={lanes:0,firstContext:t,responders:null}}else Xn=Xn.next=t;return e._currentValue}var Ft=!1;function vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Nd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ut(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Td(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;Ft=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var d=e.alternate;if(d!==null){d=d.updateQueue;var p=d.lastBaseUpdate;p!==a&&(p===null?d.firstBaseUpdate=c:p.next=c,d.lastBaseUpdate=l)}}if(o!==null){p=i.baseState,a=0,d=c=l=null;do{s=o.lane;var f=o.eventTime;if((r&s)===s){d!==null&&(d=d.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,v=o;switch(s=t,f=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){p=y.call(f,p,s);break e}p=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=v.payload,s=typeof y=="function"?y.call(f,p,s):y,s==null)break e;p=W({},p,s);break e;case 2:Ft=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else f={eventTime:f,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(c=d=f,l=p):d=d.next=f,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);d===null&&(l=p),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,xi|=a,e.lanes=a,e.memoizedState=p}}function Od(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var Rd=new Wi.Component().refs;function Co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Po={isMounted:function(e){return(e=e._reactInternals)?pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),i=Yt(e),o=zt(r,i);o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),i=Yt(e),o=zt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=Yt(e),i=zt(n,r);i.tag=2,t!=null&&(i.callback=t),Ut(e,i),Gt(e,r,n)}};function Ld(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!ri(n,r)||!ri(i,o):!0}function Dd(e,t,n){var r=!1,i=Mt,o=t.contextType;return typeof o=="object"&&o!==null?o=Me(o):(i=Pe(t)?fn:he.current,r=t.contextTypes,o=(r=r!=null)?Qn(e,i):Mt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Id(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function bl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Rd,vl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Me(o):(o=Pe(t)?fn:he.current,i.context=Qn(e,o)),ci(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Co(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Po.enqueueReplaceState(i,i.state,null),ci(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var No=Array.isArray;function ui(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=r.refs;a===Rd&&(a=r.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function To(e,t){if(e.type!=="textarea")throw Error(E(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function $d(e){function t(m,h){if(e){var g=m.lastEffect;g!==null?(g.nextEffect=h,m.lastEffect=h):m.firstEffect=m.lastEffect=h,h.nextEffect=null,h.flags=8}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function i(m,h){return m=Kt(m,h),m.index=0,m.sibling=null,m}function o(m,h,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<h?(m.flags=2,h):g):(m.flags=2,h)):h}function a(m){return e&&m.alternate===null&&(m.flags=2),m}function s(m,h,g,w){return h===null||h.tag!==6?(h=tc(g,m.mode,w),h.return=m,h):(h=i(h,g),h.return=m,h)}function l(m,h,g,w){return h!==null&&h.elementType===g.type?(w=i(h,g.props),w.ref=ui(m,h,g),w.return=m,w):(w=Vo(g.type,g.key,g.props,null,m.mode,w),w.ref=ui(m,h,g),w.return=m,w)}function c(m,h,g,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=nc(g,m.mode,w),h.return=m,h):(h=i(h,g.children||[]),h.return=m,h)}function d(m,h,g,w,_){return h===null||h.tag!==7?(h=sr(g,m.mode,w,_),h.return=m,h):(h=i(h,g),h.return=m,h)}function p(m,h,g){if(typeof h=="string"||typeof h=="number")return h=tc(""+h,m.mode,g),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case jr:return g=Vo(h.type,h.key,h.props,null,m.mode,g),g.ref=ui(m,null,h),g.return=m,g;case cn:return h=nc(h,m.mode,g),h.return=m,h}if(No(h)||Fr(h))return h=sr(h,m.mode,g,null),h.return=m,h;To(m,h)}return null}function f(m,h,g,w){var _=h!==null?h.key:null;if(typeof g=="string"||typeof g=="number")return _!==null?null:s(m,h,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case jr:return g.key===_?g.type===Tt?d(m,h,g.props.children,w,_):l(m,h,g,w):null;case cn:return g.key===_?c(m,h,g,w):null}if(No(g)||Fr(g))return _!==null?null:d(m,h,g,w,null);To(m,g)}return null}function y(m,h,g,w,_){if(typeof w=="string"||typeof w=="number")return m=m.get(g)||null,s(h,m,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case jr:return m=m.get(w.key===null?g:w.key)||null,w.type===Tt?d(h,m,w.props.children,_,w.key):l(h,m,w,_);case cn:return m=m.get(w.key===null?g:w.key)||null,c(h,m,w,_)}if(No(w)||Fr(w))return m=m.get(g)||null,d(h,m,w,_,null);To(h,w)}return null}function v(m,h,g,w){for(var _=null,C=null,S=h,O=h=0,L=null;S!==null&&O<g.length;O++){S.index>O?(L=S,S=null):L=S.sibling;var N=f(m,S,g[O],w);if(N===null){S===null&&(S=L);break}e&&S&&N.alternate===null&&t(m,S),h=o(N,h,O),C===null?_=N:C.sibling=N,C=N,S=L}if(O===g.length)return n(m,S),_;if(S===null){for(;O<g.length;O++)S=p(m,g[O],w),S!==null&&(h=o(S,h,O),C===null?_=S:C.sibling=S,C=S);return _}for(S=r(m,S);O<g.length;O++)L=y(S,m,O,g[O],w),L!==null&&(e&&L.alternate!==null&&S.delete(L.key===null?O:L.key),h=o(L,h,O),C===null?_=L:C.sibling=L,C=L);return e&&S.forEach(function(z){return t(m,z)}),_}function k(m,h,g,w){var _=Fr(g);if(typeof _!="function")throw Error(E(150));if(g=_.call(g),g==null)throw Error(E(151));for(var C=_=null,S=h,O=h=0,L=null,N=g.next();S!==null&&!N.done;O++,N=g.next()){S.index>O?(L=S,S=null):L=S.sibling;var z=f(m,S,N.value,w);if(z===null){S===null&&(S=L);break}e&&S&&z.alternate===null&&t(m,S),h=o(z,h,O),C===null?_=z:C.sibling=z,C=z,S=L}if(N.done)return n(m,S),_;if(S===null){for(;!N.done;O++,N=g.next())N=p(m,N.value,w),N!==null&&(h=o(N,h,O),C===null?_=N:C.sibling=N,C=N);return _}for(S=r(m,S);!N.done;O++,N=g.next())N=y(S,m,O,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?O:N.key),h=o(N,h,O),C===null?_=N:C.sibling=N,C=N);return e&&S.forEach(function(Ye){return t(m,Ye)}),_}return function(m,h,g,w){var _=typeof g=="object"&&g!==null&&g.type===Tt&&g.key===null;_&&(g=g.props.children);var C=typeof g=="object"&&g!==null;if(C)switch(g.$$typeof){case jr:e:{for(C=g.key,_=h;_!==null;){if(_.key===C){switch(_.tag){case 7:if(g.type===Tt){n(m,_.sibling),h=i(_,g.props.children),h.return=m,m=h;break e}break;default:if(_.elementType===g.type){n(m,_.sibling),h=i(_,g.props),h.ref=ui(m,_,g),h.return=m,m=h;break e}}n(m,_);break}else t(m,_);_=_.sibling}g.type===Tt?(h=sr(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=Vo(g.type,g.key,g.props,null,m.mode,w),w.ref=ui(m,h,g),w.return=m,m=w)}return a(m);case cn:e:{for(_=g.key;h!==null;){if(h.key===_)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=nc(g,m.mode,w),h.return=m,m=h}return a(m)}if(typeof g=="string"||typeof g=="number")return g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=tc(g,m.mode,w),h.return=m,m=h),a(m);if(No(g))return v(m,h,g,w);if(Fr(g))return k(m,h,g,w);if(C&&To(m,g),typeof g>"u"&&!_)switch(m.tag){case 1:case 22:case 0:case 11:case 15:throw Error(E(152,$n(m.type)||"Component"))}return n(m,h)}}var Oo=$d(!0),jd=$d(!1),pi={},nt=At(pi),di=At(pi),fi=At(pi);function mn(e){if(e===pi)throw Error(E(174));return e}function wl(e,t){switch(Q(fi,t),Q(di,e),Q(nt,pi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Es(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Es(t,e)}G(nt),Q(nt,t)}function er(){G(nt),G(di),G(fi)}function Ad(e){mn(fi.current);var t=mn(nt.current),n=Es(t,e.type);t!==n&&(Q(di,e),Q(nt,n))}function xl(e){di.current===e&&(G(nt),G(di))}var J=At(0);function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mt=null,Bt=null,rt=!1;function Md(e,t){var n=Ue(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function _l(e){if(rt){var t=Bt;if(t){var n=t;if(!Fd(e,t)){if(t=Wn(n.nextSibling),!t||!Fd(e,t)){e.flags=e.flags&-1025|2,rt=!1,mt=e;return}Md(mt,n)}mt=e,Bt=Wn(t.firstChild)}else e.flags=e.flags&-1025|2,rt=!1,mt=e}}function zd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function Lo(e){if(e!==mt)return!1;if(!rt)return zd(e),rt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!al(t,e.memoizedProps))for(t=Bt;t;)Md(e,t),t=Wn(t.nextSibling);if(zd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Bt=Wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Bt=null}}else Bt=mt?Wn(e.stateNode.nextSibling):null;return!0}function kl(){Bt=mt=null,rt=!1}var tr=[];function Sl(){for(var e=0;e<tr.length;e++)tr[e]._workInProgressVersionPrimary=null;tr.length=0}var hi=ln.ReactCurrentDispatcher,Fe=ln.ReactCurrentBatchConfig,gi=0,ee=null,me=null,ue=null,Do=!1,mi=!1;function Ne(){throw Error(E(321))}function El(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function Cl(e,t,n,r,i,o){if(gi=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hi.current=e===null||e.memoizedState===null?r0:i0,e=n(r,i),mi){o=0;do{if(mi=!1,!(25>o))throw Error(E(301));o+=1,ue=me=null,t.updateQueue=null,hi.current=o0,e=n(r,i)}while(mi)}if(hi.current=Ao,t=me!==null&&me.next!==null,gi=0,ue=me=ee=null,Do=!1,t)throw Error(E(300));return e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?ee.memoizedState=ue=e:ue=ue.next=e,ue}function vn(){if(me===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=ue===null?ee.memoizedState:ue.next;if(t!==null)ue=t,me=e;else{if(e===null)throw Error(E(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},ue===null?ee.memoizedState=ue=e:ue=ue.next=e}return ue}function it(e,t){return typeof t=="function"?t(e):t}function yi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=me,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var c=l.lane;if((gi&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=d,o=r):s=s.next=d,ee.lanes|=c,xi|=c}l=l.next}while(l!==null&&l!==i);s===null?o=r:s.next=a,Ae(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ae(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ud(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(gi&e)===e)&&(t._workInProgressVersionPrimary=r,tr.push(t))),e)return n(t._source);throw tr.push(t),Error(E(350))}function Bd(e,t,n,r){var i=_e;if(i===null)throw Error(E(349));var o=t._getVersion,a=o(t._source),s=hi.current,l=s.useState(function(){return Ud(i,t,n)}),c=l[1],d=l[0];l=ue;var p=e.memoizedState,f=p.refs,y=f.getSnapshot,v=p.source;p=p.subscribe;var k=ee;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=c;var m=o(t._source);if(!Ae(a,m)){m=n(t._source),Ae(d,m)||(c(m),m=Yt(k),i.mutableReadLanes|=m&i.pendingLanes),m=i.mutableReadLanes,i.entangledLanes|=m;for(var h=i.entanglements,g=m;0<g;){var w=31-It(g),_=1<<w;h[w]|=m,g&=~_}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var m=f.getSnapshot,h=f.setSnapshot;try{h(m(t._source));var g=Yt(k);i.mutableReadLanes|=g&i.pendingLanes}catch(w){h(function(){throw w})}})},[t,r]),Ae(y,n)&&Ae(v,t)&&Ae(p,r)||(e={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:d},e.dispatch=c=Ol.bind(null,ee,e),l.queue=e,l.baseQueue=null,d=Ud(i,t,n),l.memoizedState=l.baseState=d),d}function Hd(e,t,n){var r=vn();return Bd(r,e,t,n)}function bi(e){var t=yn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:e},e=e.dispatch=Ol.bind(null,ee,e),[t.memoizedState,e]}function Io(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Yd(e){var t=yn();return e={current:e},t.memoizedState=e}function $o(){return vn().memoizedState}function Pl(e,t,n,r){var i=yn();ee.flags|=e,i.memoizedState=Io(1|t,n,void 0,r===void 0?null:r)}function Nl(e,t,n,r){var i=vn();r=r===void 0?null:r;var o=void 0;if(me!==null){var a=me.memoizedState;if(o=a.destroy,r!==null&&El(r,a.deps)){Io(t,n,o,r);return}}ee.flags|=e,i.memoizedState=Io(1|t,n,o,r)}function Gd(e,t){return Pl(516,4,e,t)}function jo(e,t){return Nl(516,4,e,t)}function Wd(e,t){return Nl(4,2,e,t)}function Vd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Kd(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4,2,Vd.bind(null,t,e),n)}function Tl(){}function qd(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&El(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qd(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&El(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function n0(e,t){var n=Jn();gn(98>n?98:n,function(){e(!0)}),gn(97<n?97:n,function(){var r=Fe.transition;Fe.transition=1;try{e(!1),t()}finally{Fe.transition=r}})}function Ol(e,t,n){var r=Le(),i=Yt(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ee||a!==null&&a===ee)mi=Do=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,Ae(l,s))return}catch{}finally{}Gt(e,i,r)}}var Ao={readContext:Me,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useOpaqueIdentifier:Ne,unstable_isNewReconciler:!1},r0={readContext:Me,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Gd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pl(4,2,Vd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pl(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Ol.bind(null,ee,e),[r.memoizedState,e]},useRef:Yd,useState:bi,useDebugValue:Tl,useDeferredValue:function(e){var t=bi(e),n=t[0],r=t[1];return Gd(function(){var i=Fe.transition;Fe.transition=1;try{r(e)}finally{Fe.transition=i}},[e]),n},useTransition:function(){var e=bi(!1),t=e[0];return e=n0.bind(null,e[1]),Yd(e),[e,t]},useMutableSource:function(e,t,n){var r=yn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Bd(r,e,t,n)},useOpaqueIdentifier:function(){if(rt){var e=!1,t=Qy(function(){throw e||(e=!0,n("r:"+(ll++).toString(36))),Error(E(355))}),n=bi(t)[1];return!(ee.mode&2)&&(ee.flags|=516,Io(5,function(){n("r:"+(ll++).toString(36))},void 0,null)),t}return t="r:"+(ll++).toString(36),bi(t),t},unstable_isNewReconciler:!1},i0={readContext:Me,useCallback:qd,useContext:Me,useEffect:jo,useImperativeHandle:Kd,useLayoutEffect:Wd,useMemo:Qd,useReducer:yi,useRef:$o,useState:function(){return yi(it)},useDebugValue:Tl,useDeferredValue:function(e){var t=yi(it),n=t[0],r=t[1];return jo(function(){var i=Fe.transition;Fe.transition=1;try{r(e)}finally{Fe.transition=i}},[e]),n},useTransition:function(){var e=yi(it)[0];return[$o().current,e]},useMutableSource:Hd,useOpaqueIdentifier:function(){return yi(it)[0]},unstable_isNewReconciler:!1},o0={readContext:Me,useCallback:qd,useContext:Me,useEffect:jo,useImperativeHandle:Kd,useLayoutEffect:Wd,useMemo:Qd,useReducer:vi,useRef:$o,useState:function(){return vi(it)},useDebugValue:Tl,useDeferredValue:function(e){var t=vi(it),n=t[0],r=t[1];return jo(function(){var i=Fe.transition;Fe.transition=1;try{r(e)}finally{Fe.transition=i}},[e]),n},useTransition:function(){var e=vi(it)[0];return[$o().current,e]},useMutableSource:Hd,useOpaqueIdentifier:function(){return vi(it)[0]},unstable_isNewReconciler:!1},a0=ln.ReactCurrentOwner,Ke=!1;function Te(e,t,n,r){t.child=e===null?jd(t,null,n,r):Oo(t,e.child,n,r)}function Jd(e,t,n,r,i){n=n.render;var o=t.ref;return Zn(t,i),r=Cl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,r,i),t.child)}function Xd(e,t,n,r,i,o){if(e===null){var a=n.type;return typeof a=="function"&&!Zl(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Zd(e,t,a,r,i,o)):(e=Vo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,n=n.compare,n=n!==null?n:ri,n(i,r)&&e.ref===t.ref)?yt(e,t,o):(t.flags|=1,e=Kt(a,r),e.ref=t.ref,e.return=t,t.child=e)}function Zd(e,t,n,r,i,o){if(e!==null&&ri(e.memoizedProps,r)&&e.ref===t.ref)if(Ke=!1,(o&i)!==0)e.flags&16384&&(Ke=!0);else return t.lanes=e.lanes,yt(e,t,o);return Ll(e,t,n,r,o)}function Rl(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Wo(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Wo(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Wo(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Wo(t,r);return Te(e,t,i,n),t.child}function ef(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Ll(e,t,n,r,i){var o=Pe(n)?fn:he.current;return o=Qn(t,o),Zn(t,i),n=Cl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,n,i),t.child)}function tf(e,t,n,r,i){if(Pe(n)){var o=!0;wo(t)}else o=!1;if(Zn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Dd(t,n,r),bl(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Me(c):(c=Pe(n)?fn:he.current,c=Qn(t,c));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&Id(t,a,r,c),Ft=!1;var f=t.memoizedState;a.state=f,ci(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ce.current||Ft?(typeof d=="function"&&(Co(t,n,d,r),l=t.memoizedState),(s=Ft||Ld(t,n,s,r,f,l,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,Nd(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ve(t.type,s),a.props=c,p=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Me(l):(l=Pe(n)?fn:he.current,l=Qn(t,l));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||f!==l)&&Id(t,a,r,l),Ft=!1,f=t.memoizedState,a.state=f,ci(t,r,a,i);var v=t.memoizedState;s!==p||f!==v||Ce.current||Ft?(typeof y=="function"&&(Co(t,n,y,r),v=t.memoizedState),(c=Ft||Ld(t,n,c,r,f,v,l))?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Dl(e,t,n,r,o,i)}function Dl(e,t,n,r,i,o){ef(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&vd(t,n,!1),yt(e,t,o);r=t.stateNode,a0.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Te(e,t,s,o),t.memoizedState=r.state,i&&vd(t,n,!0),t.child}function nf(e){var t=e.stateNode;t.pendingContext?md(e,t.pendingContext,t.pendingContext!==t.context):t.context&&md(e,t.context,!1),wl(e,t.containerInfo)}var Mo={dehydrated:null,retryLane:0};function rf(e,t,n){var r=t.pendingProps,i=J.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),Q(J,i&1),e===null?(r.fallback!==void 0&&_l(t),e=r.children,i=r.fallback,o?(e=of(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,e):typeof r.unstable_expectedLoadTime=="number"?(e=of(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,t.lanes=33554432,e):(n=ec({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=sf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=af(e,t,r.children,n),t.memoizedState=null,n):o?(r=sf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=af(e,t,r.children,n),t.memoizedState=null,n)}function of(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=ec(t,i,0,null),n=sr(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function af(e,t,n,r){var i=e.child;return e=i.sibling,n=Kt(i,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function sf(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return!(o&2)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Kt(a,s),e!==null?r=Kt(e,r):(r=sr(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function lf(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Pd(e.return,t)}function Il(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function cf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Te(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lf(e,n);else if(e.tag===19)lf(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(J,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Il(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Il(t,!0,n,null,o,t.lastEffect);break;case"together":Il(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xi|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var uf,$l,pf,df;uf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$l=function(){},pf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,mn(nt.current);var o=null;switch(n){case"input":i=bs(e,i),r=bs(e,r),o=[];break;case"option":i=_s(e,i),r=_s(e,r),o=[];break;case"select":i=W({},i,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":i=ks(e,i),r=ks(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=go)}Cs(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&($r.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&($r.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Y("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===hs?l.toString():(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},df=function(e,t,n,r){n!==r&&(t.flags|=4)};function wi(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function s0(e,t,n){var r=t.pendingProps;switch(t.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:return Pe(t.type)&&bo(),null;case 3:return er(),G(Ce),G(he),Sl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Lo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),$l(t),null;case 5:xl(t);var i=mn(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)pf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(E(166));return null}if(e=mn(nt.current),Lo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[jt]=t,r[yo]=o,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(e=0;e<oi.length;e++)Y(oi[e],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":tp(r,o),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Y("invalid",r);break;case"textarea":ip(r,o),Y("invalid",r)}Cs(n,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):$r.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&Y("scroll",r));switch(n){case"input":Ji(r),rp(r,o,!0);break;case"textarea":Ji(r),ap(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=go)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Ss.html&&(e=sp(n)),e===Ss.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[jt]=t,e[yo]=r,uf(e,t,!1,!1),t.stateNode=e,a=Ps(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<oi.length;i++)Y(oi[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":tp(e,r),i=bs(e,r),Y("invalid",e);break;case"option":i=_s(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=W({},r,{value:void 0}),Y("invalid",e);break;case"textarea":ip(e,r),i=ks(e,r),Y("invalid",e);break;default:i=r}Cs(n,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?up(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&lp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ur(e,l):typeof l=="number"&&Ur(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($r.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Y("scroll",e):l!=null&&ls(e,o,l,a))}switch(n){case"input":Ji(e),rp(e,r,!1);break;case"textarea":Ji(e),ap(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ot(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?jn(e,!!r.multiple,o,!1):r.defaultValue!=null&&jn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=go)}pd(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)df(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));n=mn(fi.current),mn(nt.current),Lo(t)?(r=t.stateNode,n=t.memoizedProps,r[jt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jt]=t,t.stateNode=r)}return null;case 13:return G(J),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Lo(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||J.current&1?pe===0&&(pe=3):((pe===0||pe===3)&&(pe=4),_e===null||!(xi&134217727)&&!(rr&134217727)||or(_e,ye))),(r||n)&&(t.flags|=4),null);case 4:return er(),$l(t),e===null&&ad(t.stateNode.containerInfo),null;case 10:return yl(t),null;case 17:return Pe(t.type)&&bo(),null;case 19:if(G(J),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,a=r.rendering,a===null)if(o)wi(r,!1);else{if(pe!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=Ro(e),a!==null){for(t.flags|=64,wi(r,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(J,J.current&1|2),t.child}e=e.sibling}r.tail!==null&&ge()>Wl&&(t.flags|=64,o=!0,wi(r,!1),t.lanes=33554432)}else{if(!o)if(e=Ro(a),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!rt)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ge()-r.renderingStartTime>Wl&&n!==1073741824&&(t.flags|=64,o=!0,wi(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ge(),n.sibling=null,t=J.current,Q(J,o?t&1|2:t&1),n):null;case 23:case 24:return Xl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(E(156,t.tag))}function l0(e){switch(e.tag){case 1:Pe(e.type)&&bo();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(er(),G(Ce),G(he),Sl(),t=e.flags,t&64)throw Error(E(285));return e.flags=t&-4097|64,e;case 5:return xl(e),null;case 13:return G(J),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(J),null;case 4:return er(),null;case 10:return yl(e),null;case 23:case 24:return Xl(),null;default:return null}}function jl(e,t){try{var n="",r=t;do n+=Bm(r),r=r.return;while(r);var i=n}catch(o){i=`
38
+ `+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{ws=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Hg(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Qi(e.type,!1),e;case 11:return e=Qi(e.type.render,!1),e;case 22:return e=Qi(e.type._render,!1),e;case 1:return e=Qi(e.type,!0),e;default:return""}}function Dn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tt:return"Fragment";case cn:return"Portal";case Ir:return"Profiler";case ds:return"StrictMode";case Ar:return"Suspense";case Ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fs:return(e.displayName||"Context")+".Consumer";case ps:return(e._context.displayName||"Context")+".Provider";case Vi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case qi:return Dn(e.type);case ms:return Dn(e._render);case hs:t=e._payload,e=e._init;try{return Dn(e(t))}catch{}}return null}function $t(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e){var t=td(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Gg(e))}function nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=td(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$t(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function id(e,t){t=t.checked,t!=null&&us(e,"checked",t,!1)}function ks(e,t){id(e,t);var n=$t(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_s(e,t.type,n):t.hasOwnProperty("defaultValue")&&_s(e,t.type,$t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _s(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Wg(e){var t="";return Wi.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ss(e,t){return e=W({children:void 0},t),(t=Wg(t.children))&&(e.children=t),e}function Ln(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ad(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$t(n)}}function sd(e,t){var n=$t(t.value),r=$t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ld(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Cs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function cd(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 Ps(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,ud=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Cs.svg||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={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},Vg=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){Vg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function dd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function pd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Kg=W({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 Ns(e,t){if(t){if(Kg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rs=null,jn=null,In=null;function fd(e){if(e=ai(e)){if(typeof Rs!="function")throw Error(E(280));var t=e.stateNode;t&&(t=vo(t),Rs(e.stateNode,e.type,t))}}function hd(e){jn?In?In.push(e):In=[e]:jn=e}function md(){if(jn){var e=jn,t=In;if(In=jn=null,fd(e),t)for(e=0;e<t.length;e++)fd(t[e])}}function Os(e,t){return e(t)}function gd(e,t,n,r,i){return e(t,n,r,i)}function Ds(){}var yd=Os,un=!1,Ls=!1;function js(){(jn!==null||In!==null)&&(Ds(),md())}function qg(e,t,n){if(Ls)return e(t,n);Ls=!0;try{return yd(e,t,n)}finally{Ls=!1,js()}}function Br(e,t){var n=e.stateNode;if(n===null)return null;var r=vo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Is=!1;if(ht)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Is=!1}function Qg(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(p){this.onError(p)}}var Hr=!1,eo=null,to=!1,As=null,Jg={onError:function(e){Hr=!0,eo=e}};function Xg(e,t,n,r,i,o,a,s,l){Hr=!1,eo=null,Qg.apply(Jg,arguments)}function Zg(e,t,n,r,i,o,a,s,l){if(Xg.apply(this,arguments),Hr){if(Hr){var c=eo;Hr=!1,eo=null}else throw Error(E(198));to||(to=!0,As=c)}}function dn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function bd(e){if(dn(e)!==e)throw Error(E(188))}function ey(e){var t=e.alternate;if(!t){if(t=dn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return bd(i),e;if(o===r)return bd(i),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function wd(e){if(e=ey(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function xd(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var kd,Ms,_d,Sd,zs=!1,et=[],Rt=null,Ot=null,Dt=null,Gr=new Map,Wr=new Map,Vr=[],Ed="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 Fs(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Cd(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function Kr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=Fs(t,n,r,i,o),t!==null&&(t=ai(t),t!==null&&Ms(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ty(e,t,n,r,i){switch(t){case"focusin":return Rt=Kr(Rt,e,t,n,r,i),!0;case"dragenter":return Ot=Kr(Ot,e,t,n,r,i),!0;case"mouseover":return Dt=Kr(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Gr.set(o,Kr(Gr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Wr.set(o,Kr(Wr.get(o)||null,e,t,n,r,i)),!0}return!1}function ny(e){var t=pn(e.target);if(t!==null){var n=dn(t);if(n!==null){if(t=n.tag,t===13){if(t=vd(n),t!==null){e.blockedOn=t,Sd(e.lanePriority,function(){ae.unstable_runWithPriority(e.priority,function(){_d(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function no(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=ai(n),t!==null&&Ms(t),e.blockedOn=n,!1;t.shift()}return!0}function Pd(e,t,n){no(e)&&n.delete(t)}function ry(){for(zs=!1;0<et.length;){var e=et[0];if(e.blockedOn!==null){e=ai(e.blockedOn),e!==null&&kd(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&et.shift()}Rt!==null&&no(Rt)&&(Rt=null),Ot!==null&&no(Ot)&&(Ot=null),Dt!==null&&no(Dt)&&(Dt=null),Gr.forEach(Pd),Wr.forEach(Pd)}function qr(e,t){e.blockedOn===t&&(e.blockedOn=null,zs||(zs=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ry)))}function Nd(e){function t(i){return qr(i,e)}if(0<et.length){qr(et[0],e);for(var n=1;n<et.length;n++){var r=et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rt!==null&&qr(Rt,e),Ot!==null&&qr(Ot,e),Dt!==null&&qr(Dt,e),Gr.forEach(t),Wr.forEach(t),n=0;n<Vr.length;n++)r=Vr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vr.length&&(n=Vr[0],n.blockedOn===null);)ny(n),n.blockedOn===null&&Vr.shift()}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var An={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},Us={},Td={};ht&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function io(e){if(Us[e])return Us[e];if(!An[e])return e;var t=An[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Us[e]=t[n];return e}var $d=io("animationend"),Rd=io("animationiteration"),Od=io("animationstart"),Dd=io("transitionend"),Ld=new Map,Bs=new Map,iy=["abort","abort",$d,"animationEnd",Rd,"animationIteration",Od,"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",Dd,"transitionEnd","waiting","waiting"];function Ys(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Bs.set(r,t),Ld.set(r,i),sn(i,[r])}}var oy=ae.unstable_now;oy();var B=8;function Mn(e){if(1&e)return B=15,1;if(2&e)return B=14,2;if(4&e)return B=13,4;var t=24&e;return t!==0?(B=12,t):e&32?(B=11,32):(t=192&e,t!==0?(B=10,t):e&256?(B=9,256):(t=3584&e,t!==0?(B=8,t):e&4096?(B=7,4096):(t=4186112&e,t!==0?(B=6,t):(t=62914560&e,t!==0?(B=5,t):e&67108864?(B=4,67108864):e&134217728?(B=3,134217728):(t=805306368&e,t!==0?(B=2,t):1073741824&e?(B=1,1073741824):(B=8,e))))))}function ay(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function sy(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(E(358,e))}}function Qr(e,t){var n=e.pendingLanes;if(n===0)return B=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)r=o,i=B=15;else if(o=n&134217727,o!==0){var l=o&~a;l!==0?(r=Mn(l),i=B):(s&=o,s!==0&&(r=Mn(s),i=B))}else o=n&~a,o!==0?(r=Mn(o),i=B):s!==0&&(r=Mn(s),i=B);if(r===0)return 0;if(r=31-Lt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(Mn(t),i<=B)return t;B=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Lt(t),i=1<<n,r|=e[n],t&=~i;return r}function jd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oo(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=zn(24&~t),e===0?oo(10,t):e;case 10:return e=zn(192&~t),e===0?oo(8,t):e;case 8:return e=zn(3584&~t),e===0&&(e=zn(4186112&~t),e===0&&(e=512)),e;case 2:return t=zn(805306368&~t),t===0&&(t=268435456),t}throw Error(E(358,e))}function zn(e){return e&-e}function Hs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Lt(t),e[t]=n}var Lt=Math.clz32?Math.clz32:uy,ly=Math.log,cy=Math.LN2;function uy(e){return e===0?32:31-(ly(e)/cy|0)|0}var dy=ae.unstable_UserBlockingPriority,py=ae.unstable_runWithPriority,so=!0;function fy(e,t,n,r){un||Ds();var i=Gs,o=un;un=!0;try{gd(i,e,t,n,r)}finally{(un=o)||js()}}function hy(e,t,n,r){py(dy,Gs.bind(null,e,t,n,r))}function Gs(e,t,n,r){if(so){var i;if((i=(t&4)===0)&&0<et.length&&-1<Ed.indexOf(e))e=Fs(null,e,t,n,r),et.push(e);else{var o=Ws(e,t,n,r);if(o===null)i&&Cd(e,r);else{if(i){if(-1<Ed.indexOf(e)){e=Fs(o,e,t,n,r),et.push(e);return}if(ty(o,e,t,n,r))return;Cd(e,r)}dp(e,t,r,null,n)}}}}function Ws(e,t,n,r){var i=$s(r);if(i=pn(i),i!==null){var o=dn(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=vd(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return dp(e,t,r,i,n),null}var jt=null,Vs=null,lo=null;function Id(){if(lo)return lo;var e,t=Vs,n=t.length,r,i="value"in jt?jt.value:jt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return lo=i.slice(e,1<r?1-r:void 0)}function co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uo(){return!0}function Ad(){return!1}function Re(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uo:Ad,this.isPropagationStopped=Ad,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=Re(Fn),Jr=W({},Fn,{view:0,detail:0}),my=Re(Jr),qs,Qs,Xr,po=W({},Jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(qs=e.screenX-Xr.screenX,Qs=e.screenY-Xr.screenY):Qs=qs=0,Xr=e),qs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Md=Re(po),gy=W({},po,{dataTransfer:0}),yy=Re(gy),vy=W({},Jr,{relatedTarget:0}),Js=Re(vy),by=W({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),wy=Re(by),xy=W({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ky=Re(xy),_y=W({},Fn,{data:0}),zd=Re(_y),Sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ey={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"},Cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cy[e])?!!t[e]:!1}function Xs(){return Py}var Ny=W({},Jr,{key:function(e){if(e.key){var t=Sy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ey[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xs,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=Re(Ny),$y=W({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=Re($y),Ry=W({},Jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xs}),Oy=Re(Ry),Dy=W({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ly=Re(Dy),jy=W({},po,{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}),Iy=Re(jy),Ay=[9,13,27,32],Zs=ht&&"CompositionEvent"in window,Zr=null;ht&&"documentMode"in document&&(Zr=document.documentMode);var My=ht&&"TextEvent"in window&&!Zr,Ud=ht&&(!Zs||Zr&&8<Zr&&11>=Zr),Bd=String.fromCharCode(32),Yd=!1;function Hd(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function zy(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(Yd=!0,Bd);case"textInput":return e=t.data,e===Bd&&Yd?null:e;default:return null}}function Fy(e,t){if(Un)return e==="compositionend"||!Zs&&Hd(e,t)?(e=Id(),lo=Vs=jt=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ud&&t.locale!=="ko"?null:t.data;default:return null}}var Uy={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 Wd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uy[e.type]:t==="textarea"}function Vd(e,t,n,r){hd(r),t=ho(t,"onChange"),0<t.length&&(n=new Ks("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ei=null,ti=null;function By(e){ap(e,0)}function fo(e){var t=Wn(e);if(nd(t))return e}function Yy(e,t){if(e==="change")return t}var Kd=!1;if(ht){var el;if(ht){var tl="oninput"in document;if(!tl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),tl=typeof qd.oninput=="function"}el=tl}else el=!1;Kd=el&&(!document.documentMode||9<document.documentMode)}function Qd(){ei&&(ei.detachEvent("onpropertychange",Jd),ti=ei=null)}function Jd(e){if(e.propertyName==="value"&&fo(ti)){var t=[];if(Vd(t,ti,e,$s(e)),e=By,un)e(t);else{un=!0;try{Os(e,t)}finally{un=!1,js()}}}}function Hy(e,t,n){e==="focusin"?(Qd(),ei=t,ti=n,ei.attachEvent("onpropertychange",Jd)):e==="focusout"&&Qd()}function Gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fo(ti)}function Wy(e,t){if(e==="click")return fo(t)}function Vy(e,t){if(e==="input"||e==="change")return fo(t)}function Ky(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:Ky,qy=Object.prototype.hasOwnProperty;function ni(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!qy.call(t,n[r])||!Ae(e[n[r]],t[n[r]]))return!1;return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var n=Xd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xd(n)}}function ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tp(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function nl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Qy=ht&&"documentMode"in document&&11>=document.documentMode,Bn=null,rl=null,ri=null,il=!1;function np(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;il||Bn==null||Bn!==Xi(r)||(r=Bn,"selectionStart"in r&&nl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ri&&ni(ri,r)||(ri=r,r=ho(rl,"onSelect"),0<r.length&&(t=new Ks("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bn)))}Ys("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),Ys("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),Ys(iy,2);for(var rp="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ol=0;ol<rp.length;ol++)Bs.set(rp[ol],0);On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ip=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function op(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zg(r,t,void 0,e),e.currentTarget=null}function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;op(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;op(i,s,c),o=l}}}if(to)throw e=As,to=!1,As=null,e}function H(e,t){var n=yp(t),r=e+"__bubble";n.has(r)||(up(t,e,2,!1),n.add(r))}var sp="_reactListening"+Math.random().toString(36).slice(2);function lp(e){e[sp]||(e[sp]=!0,qu.forEach(function(t){ip.has(t)||cp(t,!1,e,null),cp(t,!0,e,null)}))}function cp(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!t&&ip.has(e)){if(e!=="scroll")return;i|=2,o=r}var a=yp(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),up(o,e,i,t),a.add(s))}function up(e,t,n,r){var i=Bs.get(t);switch(i===void 0?2:i){case 0:i=fy;break;case 1:i=hy;break;default:i=Gs}n=i.bind(null,t,n,e),i=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dp(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=pn(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}qg(function(){var c=o,p=$s(n),d=[];e:{var f=Ld.get(e);if(f!==void 0){var y=Ks,v=e;switch(e){case"keypress":if(co(n)===0)break e;case"keydown":case"keyup":y=Ty;break;case"focusin":v="focus",y=Js;break;case"focusout":v="blur",y=Js;break;case"beforeblur":case"afterblur":y=Js;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Oy;break;case $d:case Rd:case Od:y=wy;break;case Dd:y=Ly;break;case"scroll":y=my;break;case"wheel":y=Iy;break;case"copy":case"cut":case"paste":y=ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Fd}var _=(t&4)!==0,g=!_&&e==="scroll",h=_?f!==null?f+"Capture":null:f;_=[];for(var m=c,w;m!==null;){w=m;var k=w.stateNode;if(w.tag===5&&k!==null&&(w=k,h!==null&&(k=Br(m,h),k!=null&&_.push(oi(m,k,w)))),g)break;m=m.return}0<_.length&&(f=new y(f,v,null,n,p),d.push({event:f,listeners:_}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(pn(v)||v[Gn]))break e;if((y||f)&&(f=p.window===p?p:(f=p.ownerDocument)?f.defaultView||f.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?pn(v):null,v!==null&&(g=dn(v),v!==g||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(_=Md,k="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(_=Fd,k="onPointerLeave",h="onPointerEnter",m="pointer"),g=y==null?f:Wn(y),w=v==null?f:Wn(v),f=new _(k,m+"leave",y,n,p),f.target=g,f.relatedTarget=w,k=null,pn(p)===c&&(_=new _(h,m+"enter",v,n,p),_.target=w,_.relatedTarget=g,k=_),g=k,y&&v)t:{for(_=y,h=v,m=0,w=_;w;w=Yn(w))m++;for(w=0,k=h;k;k=Yn(k))w++;for(;0<m-w;)_=Yn(_),m--;for(;0<w-m;)h=Yn(h),w--;for(;m--;){if(_===h||h!==null&&_===h.alternate)break t;_=Yn(_),h=Yn(h)}_=null}else _=null;y!==null&&pp(d,f,y,_,!1),v!==null&&g!==null&&pp(d,g,v,_,!0)}}e:{if(f=c?Wn(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var C=Yy;else if(Wd(f))if(Kd)C=Vy;else{C=Gy;var S=Hy}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Wy);if(C&&(C=C(e,c))){Vd(d,C,n,p);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&_s(f,"number",f.value)}switch(S=c?Wn(c):window,e){case"focusin":(Wd(S)||S.contentEditable==="true")&&(Bn=S,rl=c,ri=null);break;case"focusout":ri=rl=Bn=null;break;case"mousedown":il=!0;break;case"contextmenu":case"mouseup":case"dragend":il=!1,np(d,n,p);break;case"selectionchange":if(Qy)break;case"keydown":case"keyup":np(d,n,p)}var $;if(Zs)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Un?Hd(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Ud&&n.locale!=="ko"&&(Un||O!=="onCompositionStart"?O==="onCompositionEnd"&&Un&&($=Id()):(jt=p,Vs="value"in jt?jt.value:jt.textContent,Un=!0)),S=ho(c,O),0<S.length&&(O=new zd(O,e,null,n,p),d.push({event:O,listeners:S}),$?O.data=$:($=Gd(n),$!==null&&(O.data=$)))),($=My?zy(e,n):Fy(e,n))&&(c=ho(c,"onBeforeInput"),0<c.length&&(p=new zd("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:c}),p.data=$))}ap(d,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ho(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Br(e,n),o!=null&&r.unshift(oi(e,o,i)),o=Br(e,t),o!=null&&r.push(oi(e,o,i))),e=e.return}return r}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pp(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Br(n,o),l!=null&&a.unshift(oi(n,l,s))):i||(l=Br(n,o),l!=null&&a.push(oi(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function mo(){}var al=null,sl=null;function fp(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ll(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hp=typeof setTimeout=="function"?setTimeout:void 0,Jy=typeof clearTimeout=="function"?clearTimeout:void 0;function cl(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ul=0;function Xy(e){return{$$typeof:gs,toString:e,valueOf:e}}var go=Math.random().toString(36).slice(2),It="__reactFiber$"+go,yo="__reactProps$"+go,Gn="__reactContainer$"+go,gp="__reactEvents$"+go;function pn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gn]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mp(e);e!==null;){if(n=e[It])return n;e=mp(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[It]||e[Gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function vo(e){return e[yo]||null}function yp(e){var t=e[gp];return t===void 0&&(t=e[gp]=new Set),t}var dl=[],Vn=-1;function At(e){return{current:e}}function G(e){0>Vn||(e.current=dl[Vn],dl[Vn]=null,Vn--)}function Q(e,t){Vn++,dl[Vn]=e.current,e.current=t}var Mt={},me=At(Mt),Ce=At(!1),fn=Mt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pe(e){return e=e.childContextTypes,e!=null}function bo(){G(Ce),G(me)}function vp(e,t,n){if(me.current!==Mt)throw Error(E(168));Q(me,t),Q(Ce,n)}function bp(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(E(108,Dn(t)||"Unknown",i));return W({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mt,fn=me.current,Q(me,e),Q(Ce,Ce.current),!0}function wp(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=bp(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,G(Ce),G(me),Q(me,e)):G(Ce),Q(Ce,n)}var pl=null,hn=null,Zy=ae.unstable_runWithPriority,fl=ae.unstable_scheduleCallback,hl=ae.unstable_cancelCallback,e0=ae.unstable_shouldYield,xp=ae.unstable_requestPaint,ml=ae.unstable_now,t0=ae.unstable_getCurrentPriorityLevel,xo=ae.unstable_ImmediatePriority,kp=ae.unstable_UserBlockingPriority,_p=ae.unstable_NormalPriority,Sp=ae.unstable_LowPriority,Ep=ae.unstable_IdlePriority,gl={},n0=xp!==void 0?xp:function(){},mt=null,ko=null,yl=!1,Cp=ml(),ge=1e4>Cp?ml:function(){return ml()-Cp};function qn(){switch(t0()){case xo:return 99;case kp:return 98;case _p:return 97;case Sp:return 96;case Ep:return 95;default:throw Error(E(332))}}function Pp(e){switch(e){case 99:return xo;case 98:return kp;case 97:return _p;case 96:return Sp;case 95:return Ep;default:throw Error(E(332))}}function mn(e,t){return e=Pp(e),Zy(e,t)}function si(e,t,n){return e=Pp(e),fl(e,t,n)}function tt(){if(ko!==null){var e=ko;ko=null,hl(e)}Np()}function Np(){if(!yl&&mt!==null){yl=!0;var e=0;try{var t=mt;mn(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),mt=null}catch(n){throw mt!==null&&(mt=mt.slice(e+1)),fl(xo,tt),n}finally{yl=!1}}}var r0=ln.ReactCurrentBatchConfig;function Ve(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var _o=At(null),So=null,Qn=null,Eo=null;function vl(){Eo=Qn=So=null}function bl(e){var t=_o.current;G(_o),e.type._context._currentValue=t}function Tp(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Jn(e,t){So=e,Eo=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function Me(e,t){if(Eo!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Eo=e,t=1073741823),t={context:e,observedBits:t,next:null},Qn===null){if(So===null)throw Error(E(308));Qn=t,So.dependencies={lanes:0,firstContext:t,responders:null}}else Qn=Qn.next=t;return e._currentValue}var zt=!1;function wl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ut(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Rp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function li(e,t,n,r){var i=e.updateQueue;zt=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var p=e.alternate;if(p!==null){p=p.updateQueue;var d=p.lastBaseUpdate;d!==a&&(d===null?p.firstBaseUpdate=c:d.next=c,p.lastBaseUpdate=l)}}if(o!==null){d=i.baseState,a=0,p=c=l=null;do{s=o.lane;var f=o.eventTime;if((r&s)===s){p!==null&&(p=p.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,v=o;switch(s=t,f=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(f,d,s);break e}d=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=v.payload,s=typeof y=="function"?y.call(f,d,s):y,s==null)break e;d=W({},d,s);break e;case 2:zt=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else f={eventTime:f,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(c=p=f,l=d):p=p.next=f,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);p===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=p,wi|=a,e.lanes=a,e.memoizedState=d}}function Op(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var Dp=new Wi.Component().refs;function Co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Po={isMounted:function(e){return(e=e._reactInternals)?dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),i=Ht(e),o=Ft(r,i);o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),i=Ht(e),o=Ft(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=Ht(e),i=Ft(n,r);i.tag=2,t!=null&&(i.callback=t),Ut(e,i),Gt(e,r,n)}};function Lp(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!ni(n,r)||!ni(i,o):!0}function jp(e,t,n){var r=!1,i=Mt,o=t.contextType;return typeof o=="object"&&o!==null?o=Me(o):(i=Pe(t)?fn:me.current,r=t.contextTypes,o=(r=r!=null)?Kn(e,i):Mt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ip(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function xl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Dp,wl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Me(o):(o=Pe(t)?fn:me.current,i.context=Kn(e,o)),li(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Co(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Po.enqueueReplaceState(i,i.state,null),li(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var No=Array.isArray;function ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=r.refs;a===Dp&&(a=r.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function To(e,t){if(e.type!=="textarea")throw Error(E(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ap(e){function t(g,h){if(e){var m=g.lastEffect;m!==null?(m.nextEffect=h,g.lastEffect=h):g.firstEffect=g.lastEffect=h,h.nextEffect=null,h.flags=8}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(g,h){return g=Kt(g,h),g.index=0,g.sibling=null,g}function o(g,h,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<h?(g.flags=2,h):m):(g.flags=2,h)):h}function a(g){return e&&g.alternate===null&&(g.flags=2),g}function s(g,h,m,w){return h===null||h.tag!==6?(h=rc(m,g.mode,w),h.return=g,h):(h=i(h,m),h.return=g,h)}function l(g,h,m,w){return h!==null&&h.elementType===m.type?(w=i(h,m.props),w.ref=ci(g,h,m),w.return=g,w):(w=Vo(m.type,m.key,m.props,null,g.mode,w),w.ref=ci(g,h,m),w.return=g,w)}function c(g,h,m,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=ic(m,g.mode,w),h.return=g,h):(h=i(h,m.children||[]),h.return=g,h)}function p(g,h,m,w,k){return h===null||h.tag!==7?(h=or(m,g.mode,w,k),h.return=g,h):(h=i(h,m),h.return=g,h)}function d(g,h,m){if(typeof h=="string"||typeof h=="number")return h=rc(""+h,g.mode,m),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case jr:return m=Vo(h.type,h.key,h.props,null,g.mode,m),m.ref=ci(g,null,h),m.return=g,m;case cn:return h=ic(h,g.mode,m),h.return=g,h}if(No(h)||Mr(h))return h=or(h,g.mode,m,null),h.return=g,h;To(g,h)}return null}function f(g,h,m,w){var k=h!==null?h.key:null;if(typeof m=="string"||typeof m=="number")return k!==null?null:s(g,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case jr:return m.key===k?m.type===Tt?p(g,h,m.props.children,w,k):l(g,h,m,w):null;case cn:return m.key===k?c(g,h,m,w):null}if(No(m)||Mr(m))return k!==null?null:p(g,h,m,w,null);To(g,m)}return null}function y(g,h,m,w,k){if(typeof w=="string"||typeof w=="number")return g=g.get(m)||null,s(h,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case jr:return g=g.get(w.key===null?m:w.key)||null,w.type===Tt?p(h,g,w.props.children,k,w.key):l(h,g,w,k);case cn:return g=g.get(w.key===null?m:w.key)||null,c(h,g,w,k)}if(No(w)||Mr(w))return g=g.get(m)||null,p(h,g,w,k,null);To(h,w)}return null}function v(g,h,m,w){for(var k=null,C=null,S=h,$=h=0,O=null;S!==null&&$<m.length;$++){S.index>$?(O=S,S=null):O=S.sibling;var N=f(g,S,m[$],w);if(N===null){S===null&&(S=O);break}e&&S&&N.alternate===null&&t(g,S),h=o(N,h,$),C===null?k=N:C.sibling=N,C=N,S=O}if($===m.length)return n(g,S),k;if(S===null){for(;$<m.length;$++)S=d(g,m[$],w),S!==null&&(h=o(S,h,$),C===null?k=S:C.sibling=S,C=S);return k}for(S=r(g,S);$<m.length;$++)O=y(S,g,$,m[$],w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?$:O.key),h=o(O,h,$),C===null?k=O:C.sibling=O,C=O);return e&&S.forEach(function(F){return t(g,F)}),k}function _(g,h,m,w){var k=Mr(m);if(typeof k!="function")throw Error(E(150));if(m=k.call(m),m==null)throw Error(E(151));for(var C=k=null,S=h,$=h=0,O=null,N=m.next();S!==null&&!N.done;$++,N=m.next()){S.index>$?(O=S,S=null):O=S.sibling;var F=f(g,S,N.value,w);if(F===null){S===null&&(S=O);break}e&&S&&F.alternate===null&&t(g,S),h=o(F,h,$),C===null?k=F:C.sibling=F,C=F,S=O}if(N.done)return n(g,S),k;if(S===null){for(;!N.done;$++,N=m.next())N=d(g,N.value,w),N!==null&&(h=o(N,h,$),C===null?k=N:C.sibling=N,C=N);return k}for(S=r(g,S);!N.done;$++,N=m.next())N=y(S,g,$,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?$:N.key),h=o(N,h,$),C===null?k=N:C.sibling=N,C=N);return e&&S.forEach(function(He){return t(g,He)}),k}return function(g,h,m,w){var k=typeof m=="object"&&m!==null&&m.type===Tt&&m.key===null;k&&(m=m.props.children);var C=typeof m=="object"&&m!==null;if(C)switch(m.$$typeof){case jr:e:{for(C=m.key,k=h;k!==null;){if(k.key===C){switch(k.tag){case 7:if(m.type===Tt){n(g,k.sibling),h=i(k,m.props.children),h.return=g,g=h;break e}break;default:if(k.elementType===m.type){n(g,k.sibling),h=i(k,m.props),h.ref=ci(g,k,m),h.return=g,g=h;break e}}n(g,k);break}else t(g,k);k=k.sibling}m.type===Tt?(h=or(m.props.children,g.mode,w,m.key),h.return=g,g=h):(w=Vo(m.type,m.key,m.props,null,g.mode,w),w.ref=ci(g,h,m),w.return=g,g=w)}return a(g);case cn:e:{for(k=m.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(g,h.sibling),h=i(h,m.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=ic(m,g.mode,w),h.return=g,g=h}return a(g)}if(typeof m=="string"||typeof m=="number")return m=""+m,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,m),h.return=g,g=h):(n(g,h),h=rc(m,g.mode,w),h.return=g,g=h),a(g);if(No(m))return v(g,h,m,w);if(Mr(m))return _(g,h,m,w);if(C&&To(g,m),typeof m>"u"&&!k)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(E(152,Dn(g.type)||"Component"))}return n(g,h)}}var $o=Ap(!0),Mp=Ap(!1),ui={},nt=At(ui),di=At(ui),pi=At(ui);function gn(e){if(e===ui)throw Error(E(174));return e}function kl(e,t){switch(Q(pi,t),Q(di,e),Q(nt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ps(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ps(t,e)}G(nt),Q(nt,t)}function Xn(){G(nt),G(di),G(pi)}function zp(e){gn(pi.current);var t=gn(nt.current),n=Ps(t,e.type);t!==n&&(Q(di,e),Q(nt,n))}function _l(e){di.current===e&&(G(nt),G(di))}var J=At(0);function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gt=null,Bt=null,rt=!1;function Fp(e,t){var n=Ue(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Up(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Sl(e){if(rt){var t=Bt;if(t){var n=t;if(!Up(e,t)){if(t=Hn(n.nextSibling),!t||!Up(e,t)){e.flags=e.flags&-1025|2,rt=!1,gt=e;return}Fp(gt,n)}gt=e,Bt=Hn(t.firstChild)}else e.flags=e.flags&-1025|2,rt=!1,gt=e}}function Bp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function Oo(e){if(e!==gt)return!1;if(!rt)return Bp(e),rt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ll(t,e.memoizedProps))for(t=Bt;t;)Fp(e,t),t=Hn(t.nextSibling);if(Bp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Bt=Hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Bt=null}}else Bt=gt?Hn(e.stateNode.nextSibling):null;return!0}function El(){Bt=gt=null,rt=!1}var Zn=[];function Cl(){for(var e=0;e<Zn.length;e++)Zn[e]._workInProgressVersionPrimary=null;Zn.length=0}var fi=ln.ReactCurrentDispatcher,ze=ln.ReactCurrentBatchConfig,hi=0,ee=null,ye=null,ue=null,Do=!1,mi=!1;function Ne(){throw Error(E(321))}function Pl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function Nl(e,t,n,r,i,o){if(hi=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=e===null||e.memoizedState===null?o0:a0,e=n(r,i),mi){o=0;do{if(mi=!1,!(25>o))throw Error(E(301));o+=1,ue=ye=null,t.updateQueue=null,fi.current=s0,e=n(r,i)}while(mi)}if(fi.current=Ao,t=ye!==null&&ye.next!==null,hi=0,ue=ye=ee=null,Do=!1,t)throw Error(E(300));return e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?ee.memoizedState=ue=e:ue=ue.next=e,ue}function vn(){if(ye===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ue===null?ee.memoizedState:ue.next;if(t!==null)ue=t,ye=e;else{if(e===null)throw Error(E(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ue===null?ee.memoizedState=ue=e:ue=ue.next=e}return ue}function it(e,t){return typeof t=="function"?t(e):t}function gi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var c=l.lane;if((hi&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var p={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=p,o=r):s=s.next=p,ee.lanes|=c,wi|=c}l=l.next}while(l!==null&&l!==i);s===null?o=r:s.next=a,Ae(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ae(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yp(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(hi&e)===e)&&(t._workInProgressVersionPrimary=r,Zn.push(t))),e)return n(t._source);throw Zn.push(t),Error(E(350))}function Hp(e,t,n,r){var i=ke;if(i===null)throw Error(E(349));var o=t._getVersion,a=o(t._source),s=fi.current,l=s.useState(function(){return Yp(i,t,n)}),c=l[1],p=l[0];l=ue;var d=e.memoizedState,f=d.refs,y=f.getSnapshot,v=d.source;d=d.subscribe;var _=ee;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=c;var g=o(t._source);if(!Ae(a,g)){g=n(t._source),Ae(p,g)||(c(g),g=Ht(_),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var h=i.entanglements,m=g;0<m;){var w=31-Lt(m),k=1<<w;h[w]|=g,m&=~k}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var g=f.getSnapshot,h=f.setSnapshot;try{h(g(t._source));var m=Ht(_);i.mutableReadLanes|=m&i.pendingLanes}catch(w){h(function(){throw w})}})},[t,r]),Ae(y,n)&&Ae(v,t)&&Ae(d,r)||(e={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:p},e.dispatch=c=Ol.bind(null,ee,e),l.queue=e,l.baseQueue=null,p=Yp(i,t,n),l.memoizedState=l.baseState=p),p}function Gp(e,t,n){var r=vn();return Hp(r,e,t,n)}function vi(e){var t=yn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:e},e=e.dispatch=Ol.bind(null,ee,e),[t.memoizedState,e]}function Lo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Wp(e){var t=yn();return e={current:e},t.memoizedState=e}function jo(){return vn().memoizedState}function Tl(e,t,n,r){var i=yn();ee.flags|=e,i.memoizedState=Lo(1|t,n,void 0,r===void 0?null:r)}function $l(e,t,n,r){var i=vn();r=r===void 0?null:r;var o=void 0;if(ye!==null){var a=ye.memoizedState;if(o=a.destroy,r!==null&&Pl(r,a.deps)){Lo(t,n,o,r);return}}ee.flags|=e,i.memoizedState=Lo(1|t,n,o,r)}function Vp(e,t){return Tl(516,4,e,t)}function Io(e,t){return $l(516,4,e,t)}function Kp(e,t){return $l(4,2,e,t)}function qp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qp(e,t,n){return n=n!=null?n.concat([e]):null,$l(4,2,qp.bind(null,t,e),n)}function Rl(){}function Jp(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xp(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function i0(e,t){var n=qn();mn(98>n?98:n,function(){e(!0)}),mn(97<n?97:n,function(){var r=ze.transition;ze.transition=1;try{e(!1),t()}finally{ze.transition=r}})}function Ol(e,t,n){var r=Oe(),i=Ht(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ee||a!==null&&a===ee)mi=Do=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,Ae(l,s))return}catch{}finally{}Gt(e,i,r)}}var Ao={readContext:Me,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useOpaqueIdentifier:Ne,unstable_isNewReconciler:!1},o0={readContext:Me,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Vp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,2,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tl(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Ol.bind(null,ee,e),[r.memoizedState,e]},useRef:Wp,useState:vi,useDebugValue:Rl,useDeferredValue:function(e){var t=vi(e),n=t[0],r=t[1];return Vp(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=vi(!1),t=e[0];return e=i0.bind(null,e[1]),Wp(e),[e,t]},useMutableSource:function(e,t,n){var r=yn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Hp(r,e,t,n)},useOpaqueIdentifier:function(){if(rt){var e=!1,t=Xy(function(){throw e||(e=!0,n("r:"+(ul++).toString(36))),Error(E(355))}),n=vi(t)[1];return!(ee.mode&2)&&(ee.flags|=516,Lo(5,function(){n("r:"+(ul++).toString(36))},void 0,null)),t}return t="r:"+(ul++).toString(36),vi(t),t},unstable_isNewReconciler:!1},a0={readContext:Me,useCallback:Jp,useContext:Me,useEffect:Io,useImperativeHandle:Qp,useLayoutEffect:Kp,useMemo:Xp,useReducer:gi,useRef:jo,useState:function(){return gi(it)},useDebugValue:Rl,useDeferredValue:function(e){var t=gi(it),n=t[0],r=t[1];return Io(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=gi(it)[0];return[jo().current,e]},useMutableSource:Gp,useOpaqueIdentifier:function(){return gi(it)[0]},unstable_isNewReconciler:!1},s0={readContext:Me,useCallback:Jp,useContext:Me,useEffect:Io,useImperativeHandle:Qp,useLayoutEffect:Kp,useMemo:Xp,useReducer:yi,useRef:jo,useState:function(){return yi(it)},useDebugValue:Rl,useDeferredValue:function(e){var t=yi(it),n=t[0],r=t[1];return Io(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=yi(it)[0];return[jo().current,e]},useMutableSource:Gp,useOpaqueIdentifier:function(){return yi(it)[0]},unstable_isNewReconciler:!1},l0=ln.ReactCurrentOwner,Ke=!1;function Te(e,t,n,r){t.child=e===null?Mp(t,null,n,r):$o(t,e.child,n,r)}function Zp(e,t,n,r,i){n=n.render;var o=t.ref;return Jn(t,i),r=Nl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,r,i),t.child)}function ef(e,t,n,r,i,o){if(e===null){var a=n.type;return typeof a=="function"&&!tc(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,tf(e,t,a,r,i,o)):(e=Vo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,n=n.compare,n=n!==null?n:ni,n(i,r)&&e.ref===t.ref)?yt(e,t,o):(t.flags|=1,e=Kt(a,r),e.ref=t.ref,e.return=t,t.child=e)}function tf(e,t,n,r,i,o){if(e!==null&&ni(e.memoizedProps,r)&&e.ref===t.ref)if(Ke=!1,(o&i)!==0)e.flags&16384&&(Ke=!0);else return t.lanes=e.lanes,yt(e,t,o);return Ll(e,t,n,r,o)}function Dl(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Wo(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Wo(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Wo(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Wo(t,r);return Te(e,t,i,n),t.child}function nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Ll(e,t,n,r,i){var o=Pe(n)?fn:me.current;return o=Kn(t,o),Jn(t,i),n=Nl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,n,i),t.child)}function rf(e,t,n,r,i){if(Pe(n)){var o=!0;wo(t)}else o=!1;if(Jn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),jp(t,n,r),xl(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Me(c):(c=Pe(n)?fn:me.current,c=Kn(t,c));var p=n.getDerivedStateFromProps,d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&Ip(t,a,r,c),zt=!1;var f=t.memoizedState;a.state=f,li(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ce.current||zt?(typeof p=="function"&&(Co(t,n,p,r),l=t.memoizedState),(s=zt||Lp(t,n,s,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,$p(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ve(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Me(l):(l=Pe(n)?fn:me.current,l=Kn(t,l));var y=n.getDerivedStateFromProps;(p=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&Ip(t,a,r,l),zt=!1,f=t.memoizedState,a.state=f,li(t,r,a,i);var v=t.memoizedState;s!==d||f!==v||Ce.current||zt?(typeof y=="function"&&(Co(t,n,y,r),v=t.memoizedState),(c=zt||Lp(t,n,c,r,f,v,l))?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return jl(e,t,n,r,o,i)}function jl(e,t,n,r,i,o){nf(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&wp(t,n,!1),yt(e,t,o);r=t.stateNode,l0.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,s,o)):Te(e,t,s,o),t.memoizedState=r.state,i&&wp(t,n,!0),t.child}function of(e){var t=e.stateNode;t.pendingContext?vp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vp(e,t.context,!1),kl(e,t.containerInfo)}var Mo={dehydrated:null,retryLane:0};function af(e,t,n){var r=t.pendingProps,i=J.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),Q(J,i&1),e===null?(r.fallback!==void 0&&Sl(t),e=r.children,i=r.fallback,o?(e=sf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,e):typeof r.unstable_expectedLoadTime=="number"?(e=sf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,t.lanes=33554432,e):(n=nc({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=cf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=lf(e,t,r.children,n),t.memoizedState=null,n):o?(r=cf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=lf(e,t,r.children,n),t.memoizedState=null,n)}function sf(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=nc(t,i,0,null),n=or(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function lf(e,t,n,r){var i=e.child;return e=i.sibling,n=Kt(i,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function cf(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return!(o&2)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Kt(a,s),e!==null?r=Kt(e,r):(r=or(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function uf(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Tp(e.return,t)}function Il(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function df(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Te(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uf(e,n);else if(e.tag===19)uf(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(J,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Il(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Il(t,!0,n,null,o,t.lastEffect);break;case"together":Il(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wi|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var pf,Al,ff,hf;pf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Al=function(){},ff=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gn(nt.current);var o=null;switch(n){case"input":i=xs(e,i),r=xs(e,r),o=[];break;case"option":i=Ss(e,i),r=Ss(e,r),o=[];break;case"select":i=W({},i,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":i=Es(e,i),r=Es(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mo)}Ns(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&H("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===gs?l.toString():(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function bi(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function c0(e,t,n){var r=t.pendingProps;switch(t.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:return Pe(t.type)&&bo(),null;case 3:return Xn(),G(Ce),G(me),Cl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Al(t),null;case 5:_l(t);var i=gn(pi.current);if(n=t.type,e!==null&&t.stateNode!=null)ff(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(E(166));return null}if(e=gn(nt.current),Oo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[It]=t,r[yo]=o,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(e=0;e<ii.length;e++)H(ii[e],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":rd(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":ad(r,o),H("invalid",r)}Ns(n,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):Lr.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&H("scroll",r));switch(n){case"input":Ji(r),od(r,o,!0);break;case"textarea":Ji(r),ld(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=mo)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Cs.html&&(e=cd(n)),e===Cs.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[It]=t,e[yo]=r,pf(e,t,!1,!1),t.stateNode=e,a=Ts(n,r),n){case"dialog":H("cancel",e),H("close",e),i=r;break;case"iframe":case"object":case"embed":H("load",e),i=r;break;case"video":case"audio":for(i=0;i<ii.length;i++)H(ii[i],e);i=r;break;case"source":H("error",e),i=r;break;case"img":case"image":case"link":H("error",e),H("load",e),i=r;break;case"details":H("toggle",e),i=r;break;case"input":rd(e,r),i=xs(e,r),H("invalid",e);break;case"option":i=Ss(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=W({},r,{value:void 0}),H("invalid",e);break;case"textarea":ad(e,r),i=Es(e,r),H("invalid",e);break;default:i=r}Ns(n,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?pd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ud(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fr(e,l):typeof l=="number"&&Fr(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Lr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&H("scroll",e):l!=null&&us(e,o,l,a))}switch(n){case"input":Ji(e),od(e,r,!1);break;case"textarea":Ji(e),ld(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$t(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ln(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ln(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=mo)}fp(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));n=gn(pi.current),gn(nt.current),Oo(t)?(r=t.stateNode,n=t.memoizedProps,r[It]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[It]=t,t.stateNode=r)}return null;case 13:return G(J),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Oo(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||J.current&1?de===0&&(de=3):((de===0||de===3)&&(de=4),ke===null||!(wi&134217727)&&!(tr&134217727)||rr(ke,ve))),(r||n)&&(t.flags|=4),null);case 4:return Xn(),Al(t),e===null&&lp(t.stateNode.containerInfo),null;case 10:return bl(t),null;case 17:return Pe(t.type)&&bo(),null;case 19:if(G(J),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,a=r.rendering,a===null)if(o)bi(r,!1);else{if(de!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=Ro(e),a!==null){for(t.flags|=64,bi(r,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(J,J.current&1|2),t.child}e=e.sibling}r.tail!==null&&ge()>Kl&&(t.flags|=64,o=!0,bi(r,!1),t.lanes=33554432)}else{if(!o)if(e=Ro(a),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!rt)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ge()-r.renderingStartTime>Kl&&n!==1073741824&&(t.flags|=64,o=!0,bi(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ge(),n.sibling=null,t=J.current,Q(J,o?t&1|2:t&1),n):null;case 23:case 24:return ec(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(E(156,t.tag))}function u0(e){switch(e.tag){case 1:Pe(e.type)&&bo();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Xn(),G(Ce),G(me),Cl(),t=e.flags,t&64)throw Error(E(285));return e.flags=t&-4097|64,e;case 5:return _l(e),null;case 13:return G(J),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(J),null;case 4:return Xn(),null;case 10:return bl(e),null;case 23:case 24:return ec(),null;default:return null}}function Ml(e,t){try{var n="",r=t;do n+=Hg(r),r=r.return;while(r);var i=n}catch(o){i=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i}}function Al(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var c0=typeof WeakMap=="function"?WeakMap:Map;function ff(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uo||(Uo=!0,Vl=r),Al(e,t)},n}function hf(e,t,n){n=zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return Al(e,t),r(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(ot===null?ot=new Set([this]):ot.add(this),Al(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var u0=typeof WeakSet=="function"?WeakSet:Set;function gf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Vt(e,n)}else t.current=null}function p0(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ve(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&sl(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(E(163))}function d0(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(Of(n,e),w0(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ve(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Od(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Od(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&pd(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Cp(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function mf(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=cp("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function yf(e,t){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(ul,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Of(t,n);else{r=t;try{i()}catch(o){Vt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(gf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Vt(t,o)}break;case 5:gf(t);break;case 4:xf(e,t)}}function vf(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 bf(e){return e.tag===5||e.tag===3||e.tag===4}function wf(e){e:{for(var t=e.return;t!==null;){if(bf(t))break e;t=t.return}throw Error(E(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(E(161))}n.flags&16&&(Ur(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||bf(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Ml(e,n,t):Fl(e,n,t)}function Ml(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=go));else if(r!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}function Fl(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}function xf(e,t){for(var n=t,r=!1,i,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(E(160));switch(i=r.stateNode,r.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,l=s;;)if(yf(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(yf(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function zl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[yo]=r,e==="input"&&r.type==="radio"&&r.name!=null&&np(n,r),Ps(e,i),t=Ps(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?up(n,s):a==="dangerouslySetInnerHTML"?lp(n,s):a==="children"?Ur(n,s):ls(n,a,s,t)}switch(e){case"input":ws(n,r);break;case"textarea":op(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?jn(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?jn(n,!!r.multiple,r.defaultValue,!0):jn(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(E(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Cp(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Gl=ge(),mf(t.child,!0)),_f(t);return;case 19:_f(t);return;case 17:return;case 23:case 24:mf(t,t.memoizedState!==null);return}throw Error(E(163))}function _f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new u0),t.forEach(function(r){var i=k0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function f0(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var h0=Math.ceil,Fo=ln.ReactCurrentDispatcher,Ul=ln.ReactCurrentOwner,I=0,_e=null,ie=null,ye=0,bn=0,Bl=At(0),pe=0,zo=null,nr=0,xi=0,rr=0,Hl=0,Yl=null,Gl=0,Wl=1/0;function ir(){Wl=ge()+500}var T=null,Uo=!1,Vl=null,ot=null,Ht=!1,_i=null,ki=90,Kl=[],ql=[],vt=null,Si=0,Ql=null,Bo=-1,bt=0,Ho=0,Ei=null,Yo=!1;function Le(){return I&48?ge():Bo!==-1?Bo:Bo=ge()}function Yt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Jn()===99?1:2;if(bt===0&&(bt=nr),t0.transition!==0){Ho!==0&&(Ho=Yl!==null?Yl.pendingLanes:0),e=bt;var t=4186112&~Ho;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Jn(),I&4&&e===98?e=oo(12,bt):(e=iy(e),e=oo(e,bt)),e}function Gt(e,t,n){if(50<Si)throw Si=0,Ql=null,Error(E(185));if(e=Go(e,t),e===null)return null;ao(e,t,n),e===_e&&(rr|=t,pe===4&&or(e,ye));var r=Jn();t===1?I&8&&!(I&48)?Jl(e):(ze(e,n),I===0&&(ir(),tt())):(!(I&4)||r!==98&&r!==99||(vt===null?vt=new Set([e]):vt.add(e)),ze(e,n)),Yl=e}function Go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function ze(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-It(a),l=1<<s,c=o[s];if(c===-1){if(!(l&r)||l&i){c=t,zn(l);var d=B;o[s]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);a&=~l}if(r=Jr(e,e===_e?ye:0),t=B,r===0)n!==null&&(n!==hl&&dl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==hl&&dl(n)}t===15?(n=Jl.bind(null,e),gt===null?(gt=[n],_o=pl(xo,Cd)):gt.push(n),n=hl):t===14?n=li(99,Jl.bind(null,e)):(n=oy(t),n=li(n,kf.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function kf(e){if(Bo=-1,Ho=bt=0,I&48)throw Error(E(327));var t=e.callbackNode;if(Wt()&&e.callbackNode!==t)return null;var n=Jr(e,e===_e?ye:0);if(n===0)return null;var r=n,i=I;I|=16;var o=Pf();(_e!==e||ye!==r)&&(ir(),ar(e,r));do try{y0();break}catch(s){Cf(e,s)}while(1);if(ml(),Fo.current=o,I=i,ie!==null?r=0:(_e=null,ye=0,r=pe),nr&rr)ar(e,0);else if(r!==0){if(r===2&&(I|=64,e.hydrate&&(e.hydrate=!1,sl(e.containerInfo)),n=Dp(e),n!==0&&(r=Ci(e,n))),r===1)throw t=zo,ar(e,0),or(e,n),ze(e,ge()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(E(345));case 2:wn(e);break;case 3:if(or(e,n),(n&62914560)===n&&(r=Gl+500-ge(),10<r)){if(Jr(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Le(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dd(wn.bind(null,e),r);break}wn(e);break;case 4:if(or(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-It(n);o=1<<a,a=r[a],a>i&&(i=a),n&=~o}if(n=i,n=ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*h0(n/1960))-n,10<n){e.timeoutHandle=dd(wn.bind(null,e),n);break}wn(e);break;case 5:wn(e);break;default:throw Error(E(329))}}return ze(e,ge()),e.callbackNode===t?kf.bind(null,e):null}function or(e,t){for(t&=~Hl,t&=~rr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),r=1<<n;e[n]=-1,t&=~r}}function Jl(e){if(I&48)throw Error(E(327));if(Wt(),e===_e&&e.expiredLanes&ye){var t=ye,n=Ci(e,t);nr&rr&&(t=Jr(e,t),n=Ci(e,t))}else t=Jr(e,0),n=Ci(e,t);if(e.tag!==0&&n===2&&(I|=64,e.hydrate&&(e.hydrate=!1,sl(e.containerInfo)),t=Dp(e),t!==0&&(n=Ci(e,t))),n===1)throw n=zo,ar(e,0),or(e,t),ze(e,ge()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e),ze(e,ge()),null}function g0(){if(vt!==null){var e=vt;vt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,ze(t,ge())})}tt()}function Sf(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(ir(),tt())}}function Ef(e,t){var n=I;I&=-2,I|=8;try{return e(t)}finally{I=n,I===0&&(ir(),tt())}}function Wo(e,t){Q(Bl,bn),bn|=t,nr|=t}function Xl(){bn=Bl.current,G(Bl)}function ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qy(n)),ie!==null)for(n=ie.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&bo();break;case 3:er(),G(Ce),G(he),Sl();break;case 5:xl(r);break;case 4:er();break;case 13:G(J);break;case 19:G(J);break;case 10:yl(r);break;case 23:case 24:Xl()}n=n.return}_e=e,ie=Kt(e.current,null),ye=bn=nr=t,pe=0,zo=null,Hl=rr=xi=0}function Cf(e,t){do{var n=ie;try{if(ml(),hi.current=Ao,Do){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Do=!1}if(gi=0,ue=me=ee=null,mi=!1,Ul.current=null,n===null||n.return===null){pe=1,zo=t,ie=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ye,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(s.mode&2)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var p=(J.current&1)!==0,f=a;do{var y;if(y=f.tag===13){var v=f.memoizedState;if(v!==null)y=v.dehydrated!==null;else{var k=f.memoizedProps;y=k.fallback===void 0?!1:k.unstable_avoidThisFallback!==!0?!0:!p}}if(y){var m=f.updateQueue;if(m===null){var h=new Set;h.add(c),f.updateQueue=h}else m.add(c);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var g=zt(-1,1);g.tag=2,Ut(s,g)}s.lanes|=1;break e}l=void 0,s=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new c0,l=new Set,w.set(c,l)):(l=w.get(c),l===void 0&&(l=new Set,w.set(c,l))),!l.has(s)){l.add(s);var _=_0.bind(null,o,c,s);c.then(_,_)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);l=Error(($n(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
40
+ `+o.stack}return{value:e,source:t,stack:i}}function zl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var d0=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uo||(Uo=!0,ql=r),zl(e,t)},n}function gf(e,t,n){n=Ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return zl(e,t),r(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(ot===null?ot=new Set([this]):ot.add(this),zl(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var p0=typeof WeakSet=="function"?WeakSet:Set;function yf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Vt(e,n)}else t.current=null}function f0(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ve(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&cl(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(E(163))}function h0(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(Of(n,e),k0(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ve(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Op(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Op(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fp(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Nd(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function vf(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=dd("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bf(e,t){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(pl,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Of(t,n);else{r=t;try{i()}catch(o){Vt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(yf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Vt(t,o)}break;case 5:yf(t);break;case 4:_f(e,t)}}function wf(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 xf(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:{for(var t=e.return;t!==null;){if(xf(t))break e;t=t.return}throw Error(E(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(E(161))}n.flags&16&&(Fr(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||xf(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Fl(e,n,t):Ul(e,n,t)}function Fl(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mo));else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}function Ul(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ul(e,t,n),e=e.sibling;e!==null;)Ul(e,t,n),e=e.sibling}function _f(e,t){for(var n=t,r=!1,i,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(E(160));switch(i=r.stateNode,r.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,l=s;;)if(bf(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(bf(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[yo]=r,e==="input"&&r.type==="radio"&&r.name!=null&&id(n,r),Ts(e,i),t=Ts(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?pd(n,s):a==="dangerouslySetInnerHTML"?ud(n,s):a==="children"?Fr(n,s):us(n,a,s,t)}switch(e){case"input":ks(n,r);break;case"textarea":sd(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Ln(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Ln(n,!!r.multiple,r.defaultValue,!0):Ln(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(E(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Nd(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Vl=ge(),vf(t.child,!0)),Sf(t);return;case 19:Sf(t);return;case 17:return;case 23:case 24:vf(t,t.memoizedState!==null);return}throw Error(E(163))}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new p0),t.forEach(function(r){var i=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function m0(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var g0=Math.ceil,zo=ln.ReactCurrentDispatcher,Yl=ln.ReactCurrentOwner,L=0,ke=null,oe=null,ve=0,bn=0,Hl=At(0),de=0,Fo=null,er=0,wi=0,tr=0,Gl=0,Wl=null,Vl=0,Kl=1/0;function nr(){Kl=ge()+500}var T=null,Uo=!1,ql=null,ot=null,Yt=!1,xi=null,ki=90,Ql=[],Jl=[],vt=null,_i=0,Xl=null,Bo=-1,bt=0,Yo=0,Si=null,Ho=!1;function Oe(){return L&48?ge():Bo!==-1?Bo:Bo=ge()}function Ht(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return qn()===99?1:2;if(bt===0&&(bt=er),r0.transition!==0){Yo!==0&&(Yo=Wl!==null?Wl.pendingLanes:0),e=bt;var t=4186112&~Yo;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=qn(),L&4&&e===98?e=oo(12,bt):(e=ay(e),e=oo(e,bt)),e}function Gt(e,t,n){if(50<_i)throw _i=0,Xl=null,Error(E(185));if(e=Go(e,t),e===null)return null;ao(e,t,n),e===ke&&(tr|=t,de===4&&rr(e,ve));var r=qn();t===1?L&8&&!(L&48)?Zl(e):(Fe(e,n),L===0&&(nr(),tt())):(!(L&4)||r!==98&&r!==99||(vt===null?vt=new Set([e]):vt.add(e)),Fe(e,n)),Wl=e}function Go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Fe(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Lt(a),l=1<<s,c=o[s];if(c===-1){if(!(l&r)||l&i){c=t,Mn(l);var p=B;o[s]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);a&=~l}if(r=Qr(e,e===ke?ve:0),t=B,r===0)n!==null&&(n!==gl&&hl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==gl&&hl(n)}t===15?(n=Zl.bind(null,e),mt===null?(mt=[n],ko=fl(xo,Np)):mt.push(n),n=gl):t===14?n=si(99,Zl.bind(null,e)):(n=sy(t),n=si(n,Ef.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Ef(e){if(Bo=-1,Yo=bt=0,L&48)throw Error(E(327));var t=e.callbackNode;if(Wt()&&e.callbackNode!==t)return null;var n=Qr(e,e===ke?ve:0);if(n===0)return null;var r=n,i=L;L|=16;var o=Tf();(ke!==e||ve!==r)&&(nr(),ir(e,r));do try{b0();break}catch(s){Nf(e,s)}while(1);if(vl(),zo.current=o,L=i,oe!==null?r=0:(ke=null,ve=0,r=de),er&tr)ir(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),n=jd(e),n!==0&&(r=Ei(e,n))),r===1)throw t=Fo,ir(e,0),rr(e,n),Fe(e,ge()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(E(345));case 2:wn(e);break;case 3:if(rr(e,n),(n&62914560)===n&&(r=Vl+500-ge(),10<r)){if(Qr(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Oe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hp(wn.bind(null,e),r);break}wn(e);break;case 4:if(rr(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Lt(n);o=1<<a,a=r[a],a>i&&(i=a),n&=~o}if(n=i,n=ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*g0(n/1960))-n,10<n){e.timeoutHandle=hp(wn.bind(null,e),n);break}wn(e);break;case 5:wn(e);break;default:throw Error(E(329))}}return Fe(e,ge()),e.callbackNode===t?Ef.bind(null,e):null}function rr(e,t){for(t&=~Gl,t&=~tr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lt(t),r=1<<n;e[n]=-1,t&=~r}}function Zl(e){if(L&48)throw Error(E(327));if(Wt(),e===ke&&e.expiredLanes&ve){var t=ve,n=Ei(e,t);er&tr&&(t=Qr(e,t),n=Ei(e,t))}else t=Qr(e,0),n=Ei(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),t=jd(e),t!==0&&(n=Ei(e,t))),n===1)throw n=Fo,ir(e,0),rr(e,t),Fe(e,ge()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e),Fe(e,ge()),null}function y0(){if(vt!==null){var e=vt;vt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fe(t,ge())})}tt()}function Cf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Pf(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Wo(e,t){Q(Hl,bn),bn|=t,er|=t}function ec(){bn=Hl.current,G(Hl)}function ir(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jy(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&bo();break;case 3:Xn(),G(Ce),G(me),Cl();break;case 5:_l(r);break;case 4:Xn();break;case 13:G(J);break;case 19:G(J);break;case 10:bl(r);break;case 23:case 24:ec()}n=n.return}ke=e,oe=Kt(e.current,null),ve=bn=er=t,de=0,Fo=null,Gl=tr=wi=0}function Nf(e,t){do{var n=oe;try{if(vl(),fi.current=Ao,Do){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Do=!1}if(hi=0,ue=ye=ee=null,mi=!1,Yl.current=null,n===null||n.return===null){de=1,Fo=t,oe=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ve,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(s.mode&2)){var p=s.alternate;p?(s.updateQueue=p.updateQueue,s.memoizedState=p.memoizedState,s.lanes=p.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(J.current&1)!==0,f=a;do{var y;if(y=f.tag===13){var v=f.memoizedState;if(v!==null)y=v.dehydrated!==null;else{var _=f.memoizedProps;y=_.fallback===void 0?!1:_.unstable_avoidThisFallback!==!0?!0:!d}}if(y){var g=f.updateQueue;if(g===null){var h=new Set;h.add(c),f.updateQueue=h}else g.add(c);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var m=Ft(-1,1);m.tag=2,Ut(s,m)}s.lanes|=1;break e}l=void 0,s=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new d0,l=new Set,w.set(c,l)):(l=w.get(c),l===void 0&&(l=new Set,w.set(c,l))),!l.has(s)){l.add(s);var k=S0.bind(null,o,c,s);c.then(k,k)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);l=Error((Dn(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
41
 
42
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}pe!==5&&(pe=2),l=jl(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t;var C=ff(f,o,t);Td(f,C);break e;case 1:o=l;var S=f.type,O=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(ot===null||!ot.has(O)))){f.flags|=4096,t&=-t,f.lanes|=t;var L=hf(f,o,t);Td(f,L);break e}}f=f.return}while(f!==null)}Tf(n)}catch(N){t=N,ie===n&&n!==null&&(ie=n=n.return);continue}break}while(1)}function Pf(){var e=Fo.current;return Fo.current=Ao,e===null?Ao:e}function Ci(e,t){var n=I;I|=16;var r=Pf();_e===e&&ye===t||ar(e,t);do try{m0();break}catch(i){Cf(e,i)}while(1);if(ml(),I=n,Fo.current=r,ie!==null)throw Error(E(261));return _e=null,ye=0,pe}function m0(){for(;ie!==null;)Nf(ie)}function y0(){for(;ie!==null&&!Xy();)Nf(ie)}function Nf(e){var t=Lf(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Tf(e):ie=t,Ul.current=null}function Tf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=l0(t),n!==null){n.flags&=2047,ie=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=s0(n,t,bn),n!==null){ie=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||bn&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);pe===0&&(pe=5)}function wn(e){var t=Jn();return gn(99,v0.bind(null,e,t)),null}function v0(e,t){do Wt();while(_i!==null);if(I&48)throw Error(E(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null;var r=n.lanes|n.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 a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-It(o),c=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~c}if(vt!==null&&!(r&24)&&vt.has(e)&&vt.delete(e),e===_e&&(ie=_e=null,ye=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=I,I|=32,Ul.current=null,il=so,a=Zp(),el(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&c.rangeCount!==0){s=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var d=0,p=-1,f=-1,y=0,v=0,k=a,m=null;t:for(;;){for(var h;k!==s||o!==0&&k.nodeType!==3||(p=d+o),k!==l||c!==0&&k.nodeType!==3||(f=d+c),k.nodeType===3&&(d+=k.nodeValue.length),(h=k.firstChild)!==null;)m=k,k=h;for(;;){if(k===a)break t;if(m===s&&++y===o&&(p=d),m===l&&++v===c&&(f=d),(h=k.nextSibling)!==null)break;k=m,m=k.parentNode}k=h}s=p===-1||f===-1?null:{start:p,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;ol={focusedElem:a,selectionRange:s},so=!1,Ei=null,Yo=!1,T=r;do try{b0()}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);Ei=null,T=r;do try{for(a=e;T!==null;){var g=T.flags;if(g&16&&Ur(T.stateNode,""),g&128){var w=T.alternate;if(w!==null){var _=w.ref;_!==null&&(typeof _=="function"?_(null):_.current=null)}}switch(g&1038){case 2:wf(T),T.flags&=-3;break;case 6:wf(T),T.flags&=-3,zl(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,zl(T.alternate,T);break;case 4:zl(T.alternate,T);break;case 8:s=T,xf(a,s);var C=s.alternate;vf(s),C!==null&&vf(C)}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);if(_=ol,w=Zp(),g=_.focusedElem,a=_.selectionRange,w!==g&&g&&g.ownerDocument&&Xp(g.ownerDocument.documentElement,g)){for(a!==null&&el(g)&&(w=a.start,_=a.end,_===void 0&&(_=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(_,g.value.length)):(_=(w=g.ownerDocument||document)&&w.defaultView||window,_.getSelection&&(_=_.getSelection(),s=g.textContent.length,C=Math.min(a.start,s),a=a.end===void 0?C:Math.min(a.end,s),!_.extend&&C>a&&(s=a,a=C,C=s),s=Jp(g,C),o=Jp(g,a),s&&o&&(_.rangeCount!==1||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),_.removeAllRanges(),C>a?(_.addRange(w),_.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),_.addRange(w)))))),w=[],_=g;_=_.parentNode;)_.nodeType===1&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<w.length;g++)_=w[g],_.element.scrollLeft=_.left,_.element.scrollTop=_.top}so=!!il,ol=il=null,e.current=n,T=r;do try{for(g=e;T!==null;){var S=T.flags;if(S&36&&d0(g,T.alternate,T),S&128){w=void 0;var O=T.ref;if(O!==null){var L=T.stateNode;switch(T.tag){case 5:w=L;break;default:w=L}typeof O=="function"?O(w):O.current=w}}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);T=null,e0(),I=i}else e.current=n;if(Ht)Ht=!1,_i=e,ki=t;else for(T=r;T!==null;)t=T.nextEffect,T.nextEffect=null,T.flags&8&&(S=T,S.sibling=null,S.stateNode=null),T=t;if(r=e.pendingLanes,r===0&&(ot=null),r===1?e===Ql?Si++:(Si=0,Ql=e):Si=0,n=n.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(ul,n,void 0,(n.current.flags&64)===64)}catch{}if(ze(e,ge()),Uo)throw Uo=!1,e=Vl,Vl=null,e;return I&8||tt(),null}function b0(){for(;T!==null;){var e=T.alternate;Yo||Ei===null||(T.flags&8?bp(T,Ei)&&(Yo=!0):T.tag===13&&f0(e,T)&&bp(T,Ei)&&(Yo=!0));var t=T.flags;t&256&&p0(e,T),!(t&512)||Ht||(Ht=!0,li(97,function(){return Wt(),null})),T=T.nextEffect}}function Wt(){if(ki!==90){var e=97<ki?97:ki;return ki=90,gn(e,x0)}return!1}function w0(e,t){Kl.push(t,e),Ht||(Ht=!0,li(97,function(){return Wt(),null}))}function Of(e,t){ql.push(t,e),Ht||(Ht=!0,li(97,function(){return Wt(),null}))}function x0(){if(_i===null)return!1;var e=_i;if(_i=null,I&48)throw Error(E(331));var t=I;I|=32;var n=ql;ql=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(n=Kl,Kl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return I=t,tt(),!0}function Rf(e,t,n){t=jl(n,t),t=ff(e,t,1),Ut(e,t),t=Le(),e=Go(e,1),e!==null&&(ao(e,1,t),ze(e,t))}function Vt(e,t){if(e.tag===3)Rf(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Rf(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r))){e=jl(t,e);var i=hf(n,e,1);if(Ut(n,i),i=Le(),n=Go(n,1),n!==null)ao(n,1,i),ze(n,i);else if(typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,_e===e&&(ye&n)===n&&(pe===4||pe===3&&(ye&62914560)===ye&&500>ge()-Gl?ar(e,0):Hl|=n),ze(e,t)}function k0(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(bt===0&&(bt=nr),t=Un(62914560&~bt),t===0&&(t=4194304)):t=Jn()===99?1:2:t=1),n=Le(),e=Go(e,t),e!==null&&(ao(e,t,n),ze(e,n))}var Lf;Lf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ke=!0;else if(n&r)Ke=!!(e.flags&16384);else{switch(Ke=!1,t.tag){case 3:nf(t),kl();break;case 5:Ad(t);break;case 1:Pe(t.type)&&wo(t);break;case 4:wl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;Q(ko,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?rf(e,t,n):(Q(J,J.current&1),t=yt(e,t,n),t!==null?t.sibling:null);Q(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return cf(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(J,J.current),r)break;return null;case 23:case 24:return t.lanes=0,Rl(e,t,n)}return yt(e,t,n)}else Ke=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Qn(t,he.current),Zn(t,n),i=Cl(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)){var o=!0;wo(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vl(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&Co(t,r,a,e),i.updater=Po,t.stateNode=i,i._reactInternals=t,bl(t,r,e,n),t=Dl(null,t,r,!0,o,n)}else t.tag=0,Te(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=E0(i),e=Ve(i,e),o){case 0:t=Ll(null,t,i,e,n);break e;case 1:t=tf(null,t,i,e,n);break e;case 11:t=Jd(null,t,i,e,n);break e;case 14:t=Xd(null,t,i,Ve(i.type,e),r,n);break e}throw Error(E(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Ll(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),tf(e,t,r,i,n);case 3:if(nf(t),r=t.updateQueue,e===null||r===null)throw Error(E(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Nd(e,t),ci(t,r,null,n),r=t.memoizedState.element,r===i)kl(),t=yt(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Bt=Wn(t.stateNode.containerInfo.firstChild),mt=t,o=rt=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],tr.push(o);for(n=jd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Te(e,t,r,n),kl();t=t.child}return t;case 5:return Ad(t),e===null&&_l(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,al(r,i)?a=null:o!==null&&al(r,o)&&(t.flags|=16),ef(e,t),Te(e,t,a,n),t.child;case 6:return e===null&&_l(t),null;case 13:return rf(e,t,n);case 4:return wl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Oo(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Jd(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(Q(ko,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=Ae(s,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Ce.current){t=yt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r&&c.observedBits&o){s.tag===1&&(c=zt(-1,n&-n),c.tag=2,Ut(s,c)),s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Pd(s.return,n),l.lanes|=n;break}c=c.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,r=o.children,Zn(t,n),i=Me(i,o.unstable_observedBits),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return i=t.type,o=Ve(i,t.pendingProps),o=Ve(i.type,o),Xd(e,t,i,o,r,n);case 15:return Zd(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pe(r)?(e=!0,wo(t)):e=!1,Zn(t,n),Dd(t,r,i),bl(t,r,i,n),Dl(null,t,r,!0,e,n);case 19:return cf(e,t,n);case 23:return Rl(e,t,n);case 24:return Rl(e,t,n)}throw Error(E(156,t.tag))};function S0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new S0(e,t,n,r)}function Zl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E0(e){if(typeof e=="function")return Zl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vi)return 11;if(e===qi)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Zl(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tt:return sr(n.children,i,o,t);case Ju:a=8,i|=16;break;case cs:a=8,i|=1;break;case Ar:return e=Ue(12,n,t,i|8),e.elementType=Ar,e.type=Ar,e.lanes=o,e;case Mr:return e=Ue(13,n,t,i),e.type=Mr,e.elementType=Mr,e.lanes=o,e;case Ki:return e=Ue(19,n,t,i),e.elementType=Ki,e.lanes=o,e;case gs:return ec(n,i,o,t);case ms:return e=Ue(24,n,t,i),e.elementType=ms,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case us:a=10;break e;case ps:a=9;break e;case Vi:a=11;break e;case qi:a=14;break e;case ds:a=16,r=null;break e;case fs:a=22;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ue(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function sr(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function ec(e,t,n,r){return e=Ue(23,e,r,t),e.elementType=gs,e.lanes=n,e}function tc(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function nc(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function C0(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bs(0),this.expirationTimes=Bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bs(0),this.mutableSourceEagerHydrationData=null}function P0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ko(e,t,n,r){var i=t.current,o=Le(),a=Yt(i);e:if(n){n=n._reactInternals;t:{if(pn(n)!==n||n.tag!==1)throw Error(E(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Pe(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(E(171))}if(n.tag===1){var l=n.type;if(Pe(l)){n=yd(n,l,s);break e}}n=s}else n=Mt;return t.context===null?t.context=n:t.pendingContext=n,t=zt(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Ut(i,t),Gt(i,a,o),a}function rc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Df(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ic(e,t){Df(e,t),(e=e.alternate)&&Df(e,t)}function N0(){return null}function oc(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new C0(e,t,n!=null&&n.hydrate===!0),t=Ue(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,vl(t),e[Vn]=n.current,ad(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}oc.prototype.render=function(e){Ko(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ko(null,e,null,function(){t[Vn]=null})};function Pi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function T0(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}function qo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var c=rc(a);s.call(c)}}Ko(t,a,e,i)}else{if(o=n._reactRootContainer=T0(n,r),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var c=rc(a);l.call(c)}}Ef(function(){Ko(t,a,e,i)})}return rc(a)}wp=function(e){if(e.tag===13){var t=Le();Gt(e,4,t),ic(e,4)}},js=function(e){if(e.tag===13){var t=Le();Gt(e,67108864,t),ic(e,67108864)}},xp=function(e){if(e.tag===13){var t=Le(),n=Yt(e);Gt(e,n,t),ic(e,n)}},_p=function(e,t){return t()},Ts=function(e,t,n){switch(t){case"input":if(ws(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=vo(r);if(!i)throw Error(E(90));ep(r),ws(r,i)}}}break;case"textarea":op(e,n);break;case"select":t=n.value,t!=null&&jn(e,!!n.multiple,t,!1)}},Os=Sf,hp=function(e,t,n,r,i){var o=I;I|=4;try{return gn(98,e.bind(null,t,n,r,i))}finally{I=o,I===0&&(ir(),tt())}},Rs=function(){!(I&49)&&(g0(),Wt())},gp=function(e,t){var n=I;I|=2;try{return e(t)}finally{I=n,I===0&&(ir(),tt())}};function If(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pi(t))throw Error(E(200));return P0(e,t,null,n)}var O0={Events:[si,Kn,vo,dp,fp,Wt,{current:!1}]},Ni={findFiberByHostInstance:dn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},R0={bundleType:Ni.bundleType,version:Ni.version,rendererPackageName:Ni.rendererPackageName,rendererConfig:Ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vp(e),e===null?null:e.stateNode},findFiberByHostInstance:Ni.findFiberByHostInstance||N0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{ul=Qo.inject(R0),hn=Qo}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O0,je.createPortal=If,je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):Error(E(268,Object.keys(e)));return e=vp(t),e=e===null?null:e.stateNode,e},je.flushSync=function(e,t){var n=I;if(n&48)return e(t);I|=1;try{if(e)return gn(99,e.bind(null,t))}finally{I=n,tt()}},je.hydrate=function(e,t,n){if(!Pi(t))throw Error(E(200));return qo(null,e,t,!0,n)},je.render=function(e,t,n){if(!Pi(t))throw Error(E(200));return qo(null,e,t,!1,n)},je.unmountComponentAtNode=function(e){if(!Pi(e))throw Error(E(40));return e._reactRootContainer?(Ef(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Vn]=null})}),!0):!1},je.unstable_batchedUpdates=Sf,je.unstable_createPortal=function(e,t){return If(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pi(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return qo(e,t,n,!1,r)},je.version="17.0.2",function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=je}(jm);const L0=$e(Ir),W2="",$f=Object.prototype.toString;function ac(e){switch($f.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return qt(e,Error)}}function lr(e,t){return $f.call(e)===`[object ${t}]`}function jf(e){return lr(e,"ErrorEvent")}function Af(e){return lr(e,"DOMError")}function D0(e){return lr(e,"DOMException")}function xn(e){return lr(e,"String")}function Mf(e){return e===null||typeof e!="object"&&typeof e!="function"}function cr(e){return lr(e,"Object")}function sc(e){return typeof Event<"u"&&qt(e,Event)}function I0(e){return typeof Element<"u"&&qt(e,Element)}function $0(e){return lr(e,"RegExp")}function lc(e){return!!(e&&e.then&&typeof e.then=="function")}function j0(e){return cr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function A0(e){return typeof e=="number"&&e!==e}function qt(e,t){try{return e instanceof t}catch{return!1}}function Jo(e){return e&&e.Math==Math?e:void 0}const Be=typeof globalThis=="object"&&Jo(globalThis)||typeof window=="object"&&Jo(window)||typeof self=="object"&&Jo(self)||typeof global=="object"&&Jo(global)||function(){return this}()||{};function Xo(){return Be}function cc(e,t,n){const r=n||Be,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const M0=Xo(),F0=80;function uc(e,t={}){try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||F0;for(;n&&o++<r&&(c=z0(n,d),!(c==="html"||o>1&&a+i.length*l+c.length>=p));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function z0(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;if(c&&c.length)c.forEach(p=>{r.push(`[${p[0]}="${p[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&xn(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(`.${o[l]}`);const d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)a=d[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function U0(){try{return M0.document.location.href}catch{return""}}class ve extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const B0=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function H0(e){return e==="http"||e==="https"}function Zo(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${a}`}function Y0(e){const t=B0.exec(e);if(!t)throw new ve(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let l="",c=s;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const p=c.match(/^\d+/);p&&(c=p[0])}return Ff({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function Ff(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function G0(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(o=>{if(!e[o])throw new ve(`Invalid Sentry Dsn: ${o} missing`)}),!n.match(/^\d+$/))throw new ve(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!H0(r))throw new ve(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new ve(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function zf(e){const t=typeof e=="string"?Y0(e):Ff(e);return G0(t),t}const W0="Sentry Logger ",ea=["debug","info","warn","error","log","assert","trace"];function Uf(e){if(!("console"in Be))return e();const t=Be.console,n={};ea.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Bf(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?ea.forEach(n=>{t[n]=(...r)=>{e&&Uf(()=>{Be.console[n](`${W0}[${n}]:`,...r)})}}):ea.forEach(n=>{t[n]=()=>{}}),t}let $;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?$=cc("logger",Bf):$=Bf();function Ti(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Hf(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function V0(e,t,n=!1){return xn(e)?$0(t)?t.test(e):xn(t)?n?e===t:e.includes(t):!1:!1}function pc(e,t=[],n=!1){return t.some(r=>V0(e,r,n))}function be(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{Yf(i,r)}catch{}e[t]=i}function dc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Yf(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,dc(e,"__sentry_original__",t)}function fc(e){return e.__sentry_original__}function K0(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Gf(e){if(ac(e))return{message:e.message,name:e.name,stack:e.stack,...Vf(e)};if(sc(e)){const t={type:e.type,target:Wf(e.target),currentTarget:Wf(e.currentTarget),...Vf(e)};return typeof CustomEvent<"u"&&qt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Wf(e){try{return I0(e)?uc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Vf(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function q0(e,t=40){const n=Object.keys(Gf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Ti(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Ti(i,t)}return""}function hc(e){return gc(e,new Map)}function gc(e,t){if(cr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=gc(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(gc(i,t))}),r}return e}const Kf=50,qf=/\(error: (.*)\)/;function Qf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(`
43
- `);for(let a=r;a<o.length;a++){const s=o[a];if(s.length>1024)continue;const l=qf.test(s)?s.replace(qf,"$1"):s;for(const c of t){const d=c(l);if(d){i.push(d);break}}if(i.length>=Kf)break}return J0(i)}}function Q0(e){return Array.isArray(e)?Qf(...e):e}function J0(e){if(!e.length)return[];const t=e.slice(0,Kf),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const mc="<anonymous>";function Qt(e){try{return!e||typeof e!="function"?mc:e.name||mc}catch{return mc}}const _n=Xo();function Jf(){if(!("fetch"in _n))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function yc(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function X0(){if(!Jf())return!1;if(yc(_n.fetch))return!0;let e=!1;const t=_n.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=yc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Z0(){const e=_n.chrome,t=e&&e.app&&e.app.runtime,n="history"in _n&&!!_n.history.pushState&&!!_n.history.replaceState;return!t&&n}const V=Xo(),Oi={},Xf={};function ev(e){if(!Xf[e])switch(Xf[e]=!0,e){case"console":tv();break;case"dom":uv();break;case"xhr":ov();break;case"fetch":nv();break;case"history":av();break;case"error":pv();break;case"unhandledrejection":dv();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("unknown instrumentation type:",e);return}}function Jt(e,t){Oi[e]=Oi[e]||[],Oi[e].push(t),ev(e)}function qe(e,t){if(!(!e||!Oi[e]))for(const n of Oi[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error(`Error while triggering instrumentation handler.
42
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}de!==5&&(de=2),l=Ml(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t;var C=mf(f,o,t);Rp(f,C);break e;case 1:o=l;var S=f.type,$=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ot===null||!ot.has($)))){f.flags|=4096,t&=-t,f.lanes|=t;var O=gf(f,o,t);Rp(f,O);break e}}f=f.return}while(f!==null)}Rf(n)}catch(N){t=N,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(1)}function Tf(){var e=zo.current;return zo.current=Ao,e===null?Ao:e}function Ei(e,t){var n=L;L|=16;var r=Tf();ke===e&&ve===t||ir(e,t);do try{v0();break}catch(i){Nf(e,i)}while(1);if(vl(),L=n,zo.current=r,oe!==null)throw Error(E(261));return ke=null,ve=0,de}function v0(){for(;oe!==null;)$f(oe)}function b0(){for(;oe!==null&&!e0();)$f(oe)}function $f(e){var t=Lf(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Rf(e):oe=t,Yl.current=null}function Rf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=u0(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=c0(n,t,bn),n!==null){oe=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||bn&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);de===0&&(de=5)}function wn(e){var t=qn();return mn(99,w0.bind(null,e,t)),null}function w0(e,t){do Wt();while(xi!==null);if(L&48)throw Error(E(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null;var r=n.lanes|n.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 a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Lt(o),c=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~c}if(vt!==null&&!(r&24)&&vt.has(e)&&vt.delete(e),e===ke&&(oe=ke=null,ve=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=L,L|=32,Yl.current=null,al=so,a=tp(),nl(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&c.rangeCount!==0){s=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var p=0,d=-1,f=-1,y=0,v=0,_=a,g=null;t:for(;;){for(var h;_!==s||o!==0&&_.nodeType!==3||(d=p+o),_!==l||c!==0&&_.nodeType!==3||(f=p+c),_.nodeType===3&&(p+=_.nodeValue.length),(h=_.firstChild)!==null;)g=_,_=h;for(;;){if(_===a)break t;if(g===s&&++y===o&&(d=p),g===l&&++v===c&&(f=p),(h=_.nextSibling)!==null)break;_=g,g=_.parentNode}_=h}s=d===-1||f===-1?null:{start:d,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;sl={focusedElem:a,selectionRange:s},so=!1,Si=null,Ho=!1,T=r;do try{x0()}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);Si=null,T=r;do try{for(a=e;T!==null;){var m=T.flags;if(m&16&&Fr(T.stateNode,""),m&128){var w=T.alternate;if(w!==null){var k=w.ref;k!==null&&(typeof k=="function"?k(null):k.current=null)}}switch(m&1038){case 2:kf(T),T.flags&=-3;break;case 6:kf(T),T.flags&=-3,Bl(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,Bl(T.alternate,T);break;case 4:Bl(T.alternate,T);break;case 8:s=T,_f(a,s);var C=s.alternate;wf(s),C!==null&&wf(C)}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);if(k=sl,w=tp(),m=k.focusedElem,a=k.selectionRange,w!==m&&m&&m.ownerDocument&&ep(m.ownerDocument.documentElement,m)){for(a!==null&&nl(m)&&(w=a.start,k=a.end,k===void 0&&(k=w),"selectionStart"in m?(m.selectionStart=w,m.selectionEnd=Math.min(k,m.value.length)):(k=(w=m.ownerDocument||document)&&w.defaultView||window,k.getSelection&&(k=k.getSelection(),s=m.textContent.length,C=Math.min(a.start,s),a=a.end===void 0?C:Math.min(a.end,s),!k.extend&&C>a&&(s=a,a=C,C=s),s=Zd(m,C),o=Zd(m,a),s&&o&&(k.rangeCount!==1||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==o.node||k.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),k.removeAllRanges(),C>a?(k.addRange(w),k.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),k.addRange(w)))))),w=[],k=m;k=k.parentNode;)k.nodeType===1&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<w.length;m++)k=w[m],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}so=!!al,sl=al=null,e.current=n,T=r;do try{for(m=e;T!==null;){var S=T.flags;if(S&36&&h0(m,T.alternate,T),S&128){w=void 0;var $=T.ref;if($!==null){var O=T.stateNode;switch(T.tag){case 5:w=O;break;default:w=O}typeof $=="function"?$(w):$.current=w}}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);T=null,n0(),L=i}else e.current=n;if(Yt)Yt=!1,xi=e,ki=t;else for(T=r;T!==null;)t=T.nextEffect,T.nextEffect=null,T.flags&8&&(S=T,S.sibling=null,S.stateNode=null),T=t;if(r=e.pendingLanes,r===0&&(ot=null),r===1?e===Xl?_i++:(_i=0,Xl=e):_i=0,n=n.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(pl,n,void 0,(n.current.flags&64)===64)}catch{}if(Fe(e,ge()),Uo)throw Uo=!1,e=ql,ql=null,e;return L&8||tt(),null}function x0(){for(;T!==null;){var e=T.alternate;Ho||Si===null||(T.flags&8?xd(T,Si)&&(Ho=!0):T.tag===13&&m0(e,T)&&xd(T,Si)&&(Ho=!0));var t=T.flags;t&256&&f0(e,T),!(t&512)||Yt||(Yt=!0,si(97,function(){return Wt(),null})),T=T.nextEffect}}function Wt(){if(ki!==90){var e=97<ki?97:ki;return ki=90,mn(e,_0)}return!1}function k0(e,t){Ql.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function Of(e,t){Jl.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function _0(){if(xi===null)return!1;var e=xi;if(xi=null,L&48)throw Error(E(331));var t=L;L|=32;var n=Jl;Jl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(n=Ql,Ql=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return L=t,tt(),!0}function Df(e,t,n){t=Ml(n,t),t=mf(e,t,1),Ut(e,t),t=Oe(),e=Go(e,1),e!==null&&(ao(e,1,t),Fe(e,t))}function Vt(e,t){if(e.tag===3)Df(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Df(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r))){e=Ml(t,e);var i=gf(n,e,1);if(Ut(n,i),i=Oe(),n=Go(n,1),n!==null)ao(n,1,i),Fe(n,i);else if(typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function S0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,ke===e&&(ve&n)===n&&(de===4||de===3&&(ve&62914560)===ve&&500>ge()-Vl?ir(e,0):Gl|=n),Fe(e,t)}function E0(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(bt===0&&(bt=er),t=zn(62914560&~bt),t===0&&(t=4194304)):t=qn()===99?1:2:t=1),n=Oe(),e=Go(e,t),e!==null&&(ao(e,t,n),Fe(e,n))}var Lf;Lf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ke=!0;else if(n&r)Ke=!!(e.flags&16384);else{switch(Ke=!1,t.tag){case 3:of(t),El();break;case 5:zp(t);break;case 1:Pe(t.type)&&wo(t);break;case 4:kl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;Q(_o,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?af(e,t,n):(Q(J,J.current&1),t=yt(e,t,n),t!==null?t.sibling:null);Q(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return df(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(J,J.current),r)break;return null;case 23:case 24:return t.lanes=0,Dl(e,t,n)}return yt(e,t,n)}else Ke=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Kn(t,me.current),Jn(t,n),i=Nl(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)){var o=!0;wo(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wl(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&Co(t,r,a,e),i.updater=Po,t.stateNode=i,i._reactInternals=t,xl(t,r,e,n),t=jl(null,t,r,!0,o,n)}else t.tag=0,Te(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=P0(i),e=Ve(i,e),o){case 0:t=Ll(null,t,i,e,n);break e;case 1:t=rf(null,t,i,e,n);break e;case 11:t=Zp(null,t,i,e,n);break e;case 14:t=ef(null,t,i,Ve(i.type,e),r,n);break e}throw Error(E(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Ll(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),rf(e,t,r,i,n);case 3:if(of(t),r=t.updateQueue,e===null||r===null)throw Error(E(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,$p(e,t),li(t,r,null,n),r=t.memoizedState.element,r===i)El(),t=yt(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Bt=Hn(t.stateNode.containerInfo.firstChild),gt=t,o=rt=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Zn.push(o);for(n=Mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Te(e,t,r,n),El();t=t.child}return t;case 5:return zp(t),e===null&&Sl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ll(r,i)?a=null:o!==null&&ll(r,o)&&(t.flags|=16),nf(e,t),Te(e,t,a,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return af(e,t,n);case 4:return kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Zp(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(Q(_o,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=Ae(s,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Ce.current){t=yt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r&&c.observedBits&o){s.tag===1&&(c=Ft(-1,n&-n),c.tag=2,Ut(s,c)),s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Tp(s.return,n),l.lanes|=n;break}c=c.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,r=o.children,Jn(t,n),i=Me(i,o.unstable_observedBits),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return i=t.type,o=Ve(i,t.pendingProps),o=Ve(i.type,o),ef(e,t,i,o,r,n);case 15:return tf(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pe(r)?(e=!0,wo(t)):e=!1,Jn(t,n),jp(t,r,i),xl(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return df(e,t,n);case 23:return Dl(e,t,n);case 24:return Dl(e,t,n)}throw Error(E(156,t.tag))};function C0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new C0(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P0(e){if(typeof e=="function")return tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vi)return 11;if(e===qi)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")tc(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tt:return or(n.children,i,o,t);case Zu:a=8,i|=16;break;case ds:a=8,i|=1;break;case Ir:return e=Ue(12,n,t,i|8),e.elementType=Ir,e.type=Ir,e.lanes=o,e;case Ar:return e=Ue(13,n,t,i),e.type=Ar,e.elementType=Ar,e.lanes=o,e;case Ki:return e=Ue(19,n,t,i),e.elementType=Ki,e.lanes=o,e;case ys:return nc(n,i,o,t);case vs:return e=Ue(24,n,t,i),e.elementType=vs,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ps:a=10;break e;case fs:a=9;break e;case Vi:a=11;break e;case qi:a=14;break e;case hs:a=16,r=null;break e;case ms:a=22;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ue(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function or(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function nc(e,t,n,r){return e=Ue(23,e,r,t),e.elementType=ys,e.lanes=n,e}function rc(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ic(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N0(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Hs(0),this.expirationTimes=Hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hs(0),this.mutableSourceEagerHydrationData=null}function T0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ko(e,t,n,r){var i=t.current,o=Oe(),a=Ht(i);e:if(n){n=n._reactInternals;t:{if(dn(n)!==n||n.tag!==1)throw Error(E(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Pe(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(E(171))}if(n.tag===1){var l=n.type;if(Pe(l)){n=bp(n,l,s);break e}}n=s}else n=Mt;return t.context===null?t.context=n:t.pendingContext=n,t=Ft(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Ut(i,t),Gt(i,a,o),a}function oc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ac(e,t){jf(e,t),(e=e.alternate)&&jf(e,t)}function $0(){return null}function sc(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new N0(e,t,n!=null&&n.hydrate===!0),t=Ue(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,wl(t),e[Gn]=n.current,lp(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}sc.prototype.render=function(e){Ko(e,this._internalRoot,null,null)},sc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ko(null,e,null,function(){t[Gn]=null})};function Ci(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function R0(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new sc(e,0,t?{hydrate:!0}:void 0)}function qo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var c=oc(a);s.call(c)}}Ko(t,a,e,i)}else{if(o=n._reactRootContainer=R0(n,r),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var c=oc(a);l.call(c)}}Pf(function(){Ko(t,a,e,i)})}return oc(a)}kd=function(e){if(e.tag===13){var t=Oe();Gt(e,4,t),ac(e,4)}},Ms=function(e){if(e.tag===13){var t=Oe();Gt(e,67108864,t),ac(e,67108864)}},_d=function(e){if(e.tag===13){var t=Oe(),n=Ht(e);Gt(e,n,t),ac(e,n)}},Sd=function(e,t){return t()},Rs=function(e,t,n){switch(t){case"input":if(ks(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=vo(r);if(!i)throw Error(E(90));nd(r),ks(r,i)}}}break;case"textarea":sd(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}},Os=Cf,gd=function(e,t,n,r,i){var o=L;L|=4;try{return mn(98,e.bind(null,t,n,r,i))}finally{L=o,L===0&&(nr(),tt())}},Ds=function(){!(L&49)&&(y0(),Wt())},yd=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}};function If(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ci(t))throw Error(E(200));return T0(e,t,null,n)}var O0={Events:[ai,Wn,vo,hd,md,Wt,{current:!1}]},Pi={findFiberByHostInstance:pn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},D0={bundleType:Pi.bundleType,version:Pi.version,rendererPackageName:Pi.rendererPackageName,rendererConfig:Pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wd(e),e===null?null:e.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||$0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{pl=Qo.inject(D0),hn=Qo}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O0,Ie.createPortal=If,Ie.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):Error(E(268,Object.keys(e)));return e=wd(t),e=e===null?null:e.stateNode,e},Ie.flushSync=function(e,t){var n=L;if(n&48)return e(t);L|=1;try{if(e)return mn(99,e.bind(null,t))}finally{L=n,tt()}},Ie.hydrate=function(e,t,n){if(!Ci(t))throw Error(E(200));return qo(null,e,t,!0,n)},Ie.render=function(e,t,n){if(!Ci(t))throw Error(E(200));return qo(null,e,t,!1,n)},Ie.unmountComponentAtNode=function(e){if(!Ci(e))throw Error(E(40));return e._reactRootContainer?(Pf(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1},Ie.unstable_batchedUpdates=Cf,Ie.unstable_createPortal=function(e,t){return If(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ie.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ci(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return qo(e,t,n,!1,r)},Ie.version="17.0.2",function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Ie}(Mg);const L0=je(Dr),l2="",Af=Object.prototype.toString;function lc(e){switch(Af.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return lr(e,Error)}}function ar(e,t){return Af.call(e)===`[object ${t}]`}function Mf(e){return ar(e,"ErrorEvent")}function zf(e){return ar(e,"DOMError")}function j0(e){return ar(e,"DOMException")}function xn(e){return ar(e,"String")}function Ff(e){return e===null||typeof e!="object"&&typeof e!="function"}function sr(e){return ar(e,"Object")}function cc(e){return typeof Event<"u"&&lr(e,Event)}function I0(e){return typeof Element<"u"&&lr(e,Element)}function A0(e){return ar(e,"RegExp")}function uc(e){return!!(e&&e.then&&typeof e.then=="function")}function M0(e){return sr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function z0(e){return typeof e=="number"&&e!==e}function lr(e,t){try{return e instanceof t}catch{return!1}}function Jo(e){return e&&e.Math==Math?e:void 0}const Be=typeof globalThis=="object"&&Jo(globalThis)||typeof window=="object"&&Jo(window)||typeof self=="object"&&Jo(self)||typeof global=="object"&&Jo(global)||function(){return this}()||{};function Ni(){return Be}function dc(e,t,n){const r=n||Be,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const F0=Ni(),U0=80;function pc(e,t={}){try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||U0;for(;n&&o++<r&&(c=B0(n,p),!(c==="html"||o>1&&a+i.length*l+c.length>=d));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function B0(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&xn(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(`.${o[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)a=p[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function Y0(){try{return F0.document.location.href}catch{return""}}class be extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const H0=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function G0(e){return e==="http"||e==="https"}function Ti(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${a}`}function W0(e){const t=H0.exec(e);if(!t)throw new be(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let l="",c=s;const p=c.split("/");if(p.length>1&&(l=p.slice(0,-1).join("/"),c=p.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return Uf({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function Uf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function V0(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(o=>{if(!e[o])throw new be(`Invalid Sentry Dsn: ${o} missing`)}),!n.match(/^\d+$/))throw new be(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!G0(r))throw new be(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new be(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function Bf(e){const t=typeof e=="string"?W0(e):Uf(e);return V0(t),t}const K0="Sentry Logger ",Xo=["debug","info","warn","error","log","assert","trace"];function Yf(e){if(!("console"in Be))return e();const t=Be.console,n={};Xo.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Hf(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Xo.forEach(n=>{t[n]=(...r)=>{e&&Yf(()=>{Be.console[n](`${K0}[${n}]:`,...r)})}}):Xo.forEach(n=>{t[n]=()=>{}}),t}let j;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?j=dc("logger",Hf):j=Hf();function $i(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Gf(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function q0(e,t,n=!1){return xn(e)?A0(t)?t.test(e):xn(t)?n?e===t:e.includes(t):!1:!1}function Zo(e,t=[],n=!1){return t.some(r=>q0(e,r,n))}function pe(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{Wf(i,r)}catch{}e[t]=i}function fc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Wf(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,fc(e,"__sentry_original__",t)}function hc(e){return e.__sentry_original__}function Q0(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Vf(e){if(lc(e))return{message:e.message,name:e.name,stack:e.stack,...qf(e)};if(cc(e)){const t={type:e.type,target:Kf(e.target),currentTarget:Kf(e.currentTarget),...qf(e)};return typeof CustomEvent<"u"&&lr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Kf(e){try{return I0(e)?pc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function qf(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function J0(e,t=40){const n=Object.keys(Vf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return $i(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:$i(i,t)}return""}function mc(e){return gc(e,new Map)}function gc(e,t){if(sr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=gc(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(gc(i,t))}),r}return e}const Qf=50,Jf=/\(error: (.*)\)/;function Xf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(`
43
+ `);for(let a=r;a<o.length;a++){const s=o[a];if(s.length>1024)continue;const l=Jf.test(s)?s.replace(Jf,"$1"):s;for(const c of t){const p=c(l);if(p){i.push(p);break}}if(i.length>=Qf)break}return Z0(i)}}function X0(e){return Array.isArray(e)?Xf(...e):e}function Z0(e){if(!e.length)return[];const t=e.slice(0,Qf),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const yc="<anonymous>";function qt(e){try{return!e||typeof e!="function"?yc:e.name||yc}catch{return yc}}const vc=Ni();function Zf(){if(!("fetch"in vc))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function bc(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ev(){if(!Zf())return!1;if(bc(vc.fetch))return!0;let e=!1;const t=vc.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=bc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const ea=Ni();function tv(){const e=ea.chrome,t=e&&e.app&&e.app.runtime,n="history"in ea&&!!ea.history.pushState&&!!ea.history.replaceState;return!t&&n}const V=Ni(),Ri={},eh={};function nv(e){if(!eh[e])switch(eh[e]=!0,e){case"console":rv();break;case"dom":dv();break;case"xhr":av();break;case"fetch":iv();break;case"history":sv();break;case"error":pv();break;case"unhandledrejection":fv();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("unknown instrumentation type:",e);return}}function Qt(e,t){Ri[e]=Ri[e]||[],Ri[e].push(t),nv(e)}function qe(e,t){if(!(!e||!Ri[e]))for(const n of Ri[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error(`Error while triggering instrumentation handler.
44
44
  Type: ${e}
45
- Name: ${Qt(n)}
46
- Error:`,r)}}function tv(){"console"in V&&ea.forEach(function(e){e in V.console&&be(V.console,e,function(t){return function(...n){qe("console",{args:n,level:e}),t&&t.apply(V.console,n)}})})}function nv(){X0()&&be(V,"fetch",function(e){return function(...t){const n={args:t,fetchData:{method:rv(t),url:iv(t)},startTimestamp:Date.now()};return qe("fetch",{...n}),e.apply(V,t).then(r=>(qe("fetch",{...n,endTimestamp:Date.now(),response:r}),r),r=>{throw qe("fetch",{...n,endTimestamp:Date.now(),error:r}),r})}})}function rv(e=[]){return"Request"in V&&qt(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function iv(e=[]){return typeof e[0]=="string"?e[0]:"Request"in V&&qt(e[0],Request)?e[0].url:String(e[0])}function ov(){if(!("XMLHttpRequest"in V))return;const e=XMLHttpRequest.prototype;be(e,"open",function(t){return function(...n){const r=n[1],i=this.__sentry_xhr__={method:xn(n[0])?n[0].toUpperCase():n[0],url:n[1]};xn(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this.__sentry_xhr__;if(a&&this.readyState===4){try{a.status_code=this.status}catch{}qe("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?be(this,"onreadystatechange",function(a){return function(...s){return o(),a.apply(this,s)}}):this.addEventListener("readystatechange",o),t.apply(this,n)}}),be(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),qe("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let ta;function av(){if(!Z0())return;const e=V.onpopstate;V.onpopstate=function(...n){const r=V.location.href,i=ta;if(ta=r,qe("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=ta,a=String(i);ta=a,qe("history",{from:o,to:a})}return n.apply(this,r)}}be(V.history,"pushState",t),be(V.history,"replaceState",t)}const sv=1e3;let na,ra;function lv(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function cv(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function Zf(e,t=!1){return n=>{if(!n||ra===n||cv(n))return;const r=n.type==="keypress"?"input":n.type;na===void 0?(e({event:n,name:r,global:t}),ra=n):lv(ra,n)&&(e({event:n,name:r,global:t}),ra=n),clearTimeout(na),na=V.setTimeout(()=>{na=void 0},sv)}}function uv(){if(!("document"in V))return;const e=qe.bind(null,"dom"),t=Zf(e,!0);V.document.addEventListener("click",t,!1),V.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=V[n]&&V[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(be(r,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=c[o]=c[o]||{refCount:0};if(!d.handler){const p=Zf(e);d.handler=p,i.call(this,o,p,s)}d.refCount++}catch{}return i.call(this,o,a,s)}}),be(r,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},d=c[o];d&&(d.refCount--,d.refCount<=0&&(i.call(this,o,d.handler,s),d.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}let vc=null;function pv(){vc=V.onerror,V.onerror=function(e,t,n,r,i){return qe("error",{column:r,error:i,line:n,msg:e,url:t}),vc?vc.apply(this,arguments):!1}}let bc=null;function dv(){bc=V.onunhandledrejection,V.onunhandledrejection=function(e){return qe("unhandledrejection",e),bc?bc.apply(this,arguments):!0}}function fv(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function ur(){const e=Be,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function eh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function kn(e){const{message:t,event_id:n}=e;if(t)return t;const r=eh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function wc(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Ri(e,t){const n=eh(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function th(e){if(e&&e.__sentry_captured__)return!0;try{dc(e,"__sentry_captured__",!0)}catch{}return!1}function nh(e){return Array.isArray(e)?e:[e]}function hv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gv(){return"npm"}function rh(){return!hv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function mv(e,t){return e.require(t)}function Xt(e,t=1/0,n=1/0){try{return xc("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ih(e,t=3,n=100*1024){const r=Xt(e,t);return wv(r)>n?ih(e,t-1,n):r}function xc(e,t,n=1/0,r=1/0,i=fv()){const[o,a]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!A0(t))return t;const s=yv(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;let l=n;if(typeof t.__sentry_override_normalization_depth__=="number"&&(l=t.__sentry_override_normalization_depth__),l===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const y=c.toJSON();return xc("",y,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let p=0;const f=Gf(t);for(const y in f){if(!Object.prototype.hasOwnProperty.call(f,y))continue;if(p>=r){d[y]="[MaxProperties ~]";break}const v=f[y];d[y]=xc(y,v,l-1,r,i),p++}return a(t),d}function yv(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":j0(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${Qt(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${vv(t)}]`}catch(n){return`**non-serializable** (${n})`}}function vv(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function bv(e){return~-encodeURI(e).split(/%..|./).length}function wv(e){return bv(JSON.stringify(e))}var wt;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(wt||(wt={}));function Sn(e){return new ke(t=>{t(e)})}function ia(e){return new ke((t,n)=>{n(e)})}class ke{__init(){this._state=wt.PENDING}__init2(){this._handlers=[]}constructor(t){ke.prototype.__init.call(this),ke.prototype.__init2.call(this),ke.prototype.__init3.call(this),ke.prototype.__init4.call(this),ke.prototype.__init5.call(this),ke.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ke((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(a){i(a)}},o=>{if(!n)i(o);else try{r(n(o))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ke((n,r)=>{let i,o;return this.then(a=>{o=!1,i=a,t&&t()},a=>{o=!0,i=a,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(wt.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(wt.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===wt.PENDING){if(lc(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===wt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===wt.RESOLVED&&n[1](this._value),this._state===wt.REJECTED&&n[2](this._value),n[0]=!0)})}}}function xv(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function i(a){if(!n())return ia(new ve("Not adding Promise because buffer limit was reached."));const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new ke((s,l)=>{let c=t.length;if(!c)return s(!0);const d=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(p=>{Sn(p).then(()=>{--c||(clearTimeout(d),s(!0))},l)})})}return{$:t,add:i,drain:o}}function _c(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}const _v=["fatal","error","warning","log","info","debug"];function kv(e){return e==="warn"?"warning":_v.includes(e)?e:"log"}const oh=Xo(),kc={nowSeconds:()=>Date.now()/1e3};function Sv(){const{performance:e}=oh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function Ev(){try{return mv(module,"perf_hooks").performance}catch{return}}const Sc=rh()?Ev():Sv(),ah=Sc===void 0?kc:{nowSeconds:()=>(Sc.timeOrigin+Sc.now())/1e3},oa=kc.nowSeconds.bind(kc),sh=ah.nowSeconds.bind(ah);(()=>{const{performance:e}=oh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,l=typeof a=="number"?Math.abs(a+n-r):t,c=l<t;return o||c?i<=l?e.timeOrigin:a:r})();function aa(e,t=[]){return[e,t]}function Cv(e,t){const[n,r]=e;return[n,[...r,t]]}function lh(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Ec(e,t){return(t||new TextEncoder).encode(e)}function ch(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(a){typeof i=="string"?i=typeof a=="string"?i+a:[Ec(i,t),a]:i.push(typeof a=="string"?Ec(a,t):a)}for(const a of r){const[s,l]=a;if(o(`
45
+ Name: ${qt(n)}
46
+ Error:`,r)}}function rv(){"console"in V&&Xo.forEach(function(e){e in V.console&&pe(V.console,e,function(t){return function(...n){qe("console",{args:n,level:e}),t&&t.apply(V.console,n)}})})}function iv(){ev()&&pe(V,"fetch",function(e){return function(...t){const{method:n,url:r}=ov(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return qe("fetch",{...i}),e.apply(V,t).then(o=>(qe("fetch",{...i,endTimestamp:Date.now(),response:o}),o),o=>{throw qe("fetch",{...i,endTimestamp:Date.now(),error:o}),o})}})}function wc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function th(e){return typeof e=="string"?e:e?wc(e,"url")?e.url:e.toString?e.toString():"":""}function ov(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:th(n),method:wc(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:th(t),method:wc(t,"method")?String(t.method).toUpperCase():"GET"}}function av(){if(!("XMLHttpRequest"in V))return;const e=XMLHttpRequest.prototype;pe(e,"open",function(t){return function(...n){const r=n[1],i=this.__sentry_xhr__={method:xn(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};xn(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this.__sentry_xhr__;if(a&&this.readyState===4){try{a.status_code=this.status}catch{}qe("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?pe(this,"onreadystatechange",function(a){return function(...s){return o(),a.apply(this,s)}}):this.addEventListener("readystatechange",o),pe(this,"setRequestHeader",function(a){return function(...s){const[l,c]=s,p=this.__sentry_xhr__;return p&&(p.request_headers[l]=c),a.apply(this,s)}}),t.apply(this,n)}}),pe(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),qe("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let ta;function sv(){if(!tv())return;const e=V.onpopstate;V.onpopstate=function(...n){const r=V.location.href,i=ta;if(ta=r,qe("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=ta,a=String(i);ta=a,qe("history",{from:o,to:a})}return n.apply(this,r)}}pe(V.history,"pushState",t),pe(V.history,"replaceState",t)}const lv=1e3;let na,ra;function cv(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function uv(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function nh(e,t=!1){return n=>{if(!n||ra===n||uv(n))return;const r=n.type==="keypress"?"input":n.type;na===void 0?(e({event:n,name:r,global:t}),ra=n):cv(ra,n)&&(e({event:n,name:r,global:t}),ra=n),clearTimeout(na),na=V.setTimeout(()=>{na=void 0},lv)}}function dv(){if(!("document"in V))return;const e=qe.bind(null,"dom"),t=nh(e,!0);V.document.addEventListener("click",t,!1),V.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=V[n]&&V[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(pe(r,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},p=c[o]=c[o]||{refCount:0};if(!p.handler){const d=nh(e);p.handler=d,i.call(this,o,d,s)}p.refCount++}catch{}return i.call(this,o,a,s)}}),pe(r,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},p=c[o];p&&(p.refCount--,p.refCount<=0&&(i.call(this,o,p.handler,s),p.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}let ia=null;function pv(){ia=V.onerror,V.onerror=function(e,t,n,r,i){return qe("error",{column:r,error:i,line:n,msg:e,url:t}),ia&&!ia.__SENTRY_LOADER__?ia.apply(this,arguments):!1},V.onerror.__SENTRY_INSTRUMENTED__=!0}let oa=null;function fv(){oa=V.onunhandledrejection,V.onunhandledrejection=function(e){return qe("unhandledrejection",e),oa&&!oa.__SENTRY_LOADER__?oa.apply(this,arguments):!0},V.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function hv(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function cr(){const e=Be,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function rh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Jt(e){const{message:t,event_id:n}=e;if(t)return t;const r=rh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function xc(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Oi(e,t){const n=rh(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function ih(e){if(e&&e.__sentry_captured__)return!0;try{fc(e,"__sentry_captured__",!0)}catch{}return!1}function oh(e){return Array.isArray(e)?e:[e]}function mv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gv(){return"npm"}function ah(){return!mv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function yv(e,t){return e.require(t)}function Xt(e,t=1/0,n=1/0){try{return kc("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function sh(e,t=3,n=100*1024){const r=Xt(e,t);return xv(r)>n?sh(e,t-1,n):r}function kc(e,t,n=1/0,r=1/0,i=hv()){const[o,a]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!z0(t))return t;const s=vv(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;let l=n;if(typeof t.__sentry_override_normalization_depth__=="number"&&(l=t.__sentry_override_normalization_depth__),l===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const y=c.toJSON();return kc("",y,l-1,r,i)}catch{}const p=Array.isArray(t)?[]:{};let d=0;const f=Vf(t);for(const y in f){if(!Object.prototype.hasOwnProperty.call(f,y))continue;if(d>=r){p[y]="[MaxProperties ~]";break}const v=f[y];p[y]=kc(y,v,l-1,r,i),d++}return a(t),p}function vv(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":M0(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${qt(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${bv(t)}]`}catch(n){return`**non-serializable** (${n})`}}function bv(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function wv(e){return~-encodeURI(e).split(/%..|./).length}function xv(e){return wv(JSON.stringify(e))}var wt;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(wt||(wt={}));function kn(e){return new _e(t=>{t(e)})}function aa(e){return new _e((t,n)=>{n(e)})}class _e{__init(){this._state=wt.PENDING}__init2(){this._handlers=[]}constructor(t){_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{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new _e((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(a){i(a)}},o=>{if(!n)i(o);else try{r(n(o))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _e((n,r)=>{let i,o;return this.then(a=>{o=!1,i=a,t&&t()},a=>{o=!0,i=a,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(wt.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(wt.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===wt.PENDING){if(uc(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===wt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===wt.RESOLVED&&n[1](this._value),this._state===wt.REJECTED&&n[2](this._value),n[0]=!0)})}}}function kv(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function i(a){if(!n())return aa(new be("Not adding Promise because buffer limit was reached."));const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new _e((s,l)=>{let c=t.length;if(!c)return s(!0);const p=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(d=>{kn(d).then(()=>{--c||(clearTimeout(p),s(!0))},l)})})}return{$:t,add:i,drain:o}}function _c(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const _v=["fatal","error","warning","log","info","debug"];function Sv(e){return e==="warn"?"warning":_v.includes(e)?e:"log"}const lh=Ni(),Sc={nowSeconds:()=>Date.now()/1e3};function Ev(){const{performance:e}=lh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function Cv(){try{return yv(module,"perf_hooks").performance}catch{return}}const Ec=ah()?Cv():Ev(),ch=Ec===void 0?Sc:{nowSeconds:()=>(Ec.timeOrigin+Ec.now())/1e3},sa=Sc.nowSeconds.bind(Sc),uh=ch.nowSeconds.bind(ch);(()=>{const{performance:e}=lh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,l=typeof a=="number"?Math.abs(a+n-r):t,c=l<t;return o||c?i<=l?e.timeOrigin:a:r})();function Di(e,t=[]){return[e,t]}function Pv(e,t){const[n,r]=e;return[n,[...r,t]]}function dh(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Cc(e,t){return(t||new TextEncoder).encode(e)}function Nv(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(a){typeof i=="string"?i=typeof a=="string"?i+a:[Cc(i,t),a]:i.push(typeof a=="string"?Cc(a,t):a)}for(const a of r){const[s,l]=a;if(o(`
47
47
  ${JSON.stringify(s)}
48
- `),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Xt(l))}o(c)}}return typeof i=="string"?i:Pv(i)}function Pv(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Nv(e,t){const n=typeof e.data=="string"?Ec(e.data,t):e.data;return[hc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Tv={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function uh(e){return Tv[e]}function ph(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ov(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:Zo(r)},...e.type==="transaction"&&i&&{trace:hc({...i})}}}function Rv(e,t,n){const r=[{type:"client_report"},{timestamp:n||oa(),discarded_events:e}];return aa(t?{dsn:t}:{},[r])}const Lv=60*1e3;function Dv(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Lv:r-t}function Iv(e,t){return e[t]||e.all||0}function $v(e,t,n=Date.now()){return Iv(e,t)>n}function jv(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[l,c]=s.split(":",2),d=parseInt(l,10),p=(isNaN(d)?60:d)*1e3;if(!c)i.all=r+p;else for(const f of c.split(";"))i[f]=r+p}else a?i.all=r+Dv(a,r):t===429&&(i.all=r+60*1e3);return i}const dh="production";function Av(e){const t=sh(),n={sid:ur(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Fv(n)};return e&&pr(n,e),n}function pr(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||sh(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ur()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Mv(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),pr(e,n)}function Fv(e){return hc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const zv=100;class Zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const n=new Zt;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&pr(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Zt?n:this}return t instanceof Zt?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):cr(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){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}addBreadcrumb(t,n){const r=typeof n=="number"?n:zv;if(r<=0)return this;const i={timestamp:oa(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...fh(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,i=0){return new ke((o,a)=>{const s=t[i];if(n===null||typeof s!="function")o(n);else{const l=s({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&l===null&&$.log(`Event processor "${s.id}" dropped event`),lc(l)?l.then(c=>this._notifyEventProcessors(t,c,r,i+1).then(o)).then(null,a):this._notifyEventProcessors(t,l,r,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?nh(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function fh(){return cc("globalEventProcessors",()=>[])}function Cc(e){fh().push(e)}const Pc=4,Uv=100;class Li{__init(){this._stack=[{}]}constructor(t,n=new Zt,r=Pc){this._version=r,Li.prototype.__init.call(this),this.getStackTop().scope=n,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Zt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:ur(),i=new Error("Sentry syntheticException");return this._withClient((o,a)=>{o.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},a)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:ur(),o=new Error(t);return this._withClient((a,s)=>{a.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},s)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:ur();return t.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(t,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!r||!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=Uv}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:oa(),...t},c=o?Uf(()=>o(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,a))}setUser(t){const n=this.getScope();n&&n.setUser(t)}setTags(t){const n=this.getScope();n&&n.setTags(t)}setExtras(t){const n=this.getScope();n&&n.setExtras(t)}setTag(t,n){const r=this.getScope();r&&r.setTag(t,n)}setExtra(t,n){const r=this.getScope();r&&r.setExtra(t,n)}setContext(t,n){const r=this.getScope();r&&r.setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();n&&r&&t(n)}run(t){const n=hh(this);try{t(this)}finally{hh(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop(),n=t&&t.scope,r=n&&n.getSession();r&&Mv(r),this._sendSessionUpdate(),n&&n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=dh}=r&&r.getOptions()||{},{userAgent:a}=Be.navigator||{},s=Av({release:i,environment:o,...n&&{user:n.getUser()},...a&&{userAgent:a},...t});if(n){const l=n.getSession&&n.getSession();l&&l.status==="ok"&&pr(l,{status:"exited"}),this.endSession(),n.setSession(s)}return s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop();if(!t)return;const r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=sa().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function sa(){return Be.__SENTRY__=Be.__SENTRY__||{extensions:{},hub:void 0},Be}function hh(e){const t=sa(),n=en(t);return Nc(t,e),n}function oe(){const e=sa();return(!gh(e)||en(e).isOlderThan(Pc))&&Nc(e,new Li),rh()?Bv(e):en(e)}function Bv(e){try{const t=sa().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return en(e);if(!gh(n)||en(n).isOlderThan(Pc)){const r=en(e).getStackTop();Nc(n,new Li(r.client,Zt.clone(r.scope)))}return en(n)}catch{return en(e)}}function gh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function en(e){return cc("hub",()=>new Li,e)}function Nc(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function mh(e,t){return oe().captureException(e,{captureContext:t})}function yh(e){oe().withScope(e)}const Hv="7";function vh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Yv(e){return`${vh(e)}${e.projectId}/envelope/`}function Gv(e,t){return K0({sentry_key:e.publicKey,sentry_version:Hv,...t&&{sentry_client:`${t.name}/${t.version}`}})}function bh(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Yv(e)}?${Gv(e,r)}`}function Wv(e,t){const n=zf(e),r=`${vh(n)}embed/error-page/`;let i=`dsn=${Zo(n)}`;for(const o in t)if(o!=="dsn")if(o==="user"){const a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}function Vv(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Kv(e,t,n,r){const i=ph(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Zo(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return aa(o,[a])}function qv(e,t,n,r){const i=ph(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Vv(e,n&&n.sdk);const a=Ov(e,i,r,t);return delete e.sdkProcessingMetadata,aa(a,[[{type:o},e]])}const wh=[];function Qv(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Jv(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=nh(n(t)):r=t;const i=Qv(r),o=Zv(i,a=>a.name==="Debug");if(o!==-1){const[a]=i.splice(o,1);i.push(a)}return i}function Xv(e){const t={};return e.forEach(n=>{n&&xh(n,t)}),t}function xh(e,t){t[e.name]=e,wh.indexOf(e.name)===-1&&(e.setupOnce(Cc,oe),wh.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log(`Integration installed: ${e.name}`))}function Zv(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function e1(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=e,a={...t,event_id:t.event_id||n.event_id||ur(),timestamp:t.timestamp||oa()},s=n.integrations||e.integrations.map(d=>d.name);t1(a,e),r1(a,s),n1(a,e.stackParser);let l=r;n.captureContext&&(l=Zt.clone(l).update(n.captureContext));let c=Sn(a);if(l){if(l.getAttachments){const d=[...n.attachments||[],...l.getAttachments()];d.length&&(n.attachments=d)}c=l.applyToEvent(a,n)}return c.then(d=>typeof i=="number"&&i>0?i1(d,i,o):d)}function t1(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:dh),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Ti(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Ti(a.value,o));const s=e.request;s&&s.url&&(s.url=Ti(s.url,o))}function n1(e,t){const n=Be._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce((a,s)=>{const l=t(s);for(const c of l)if(c.abs_path){a[c.abs_path]=n[s];break}return a},{}),i=new Set;try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.abs_path&&i.add(s.abs_path)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const o=e.debug_meta.images;i.forEach(a=>{r[a]&&o.push({type:"sourcemap",code_file:a,debug_id:r[a]})})}function r1(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function i1(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Xt(i.data,t,n)}}))},...e.user&&{user:Xt(e.user,t,n)},...e.contexts&&{contexts:Xt(e.contexts,t,n)},...e.extra&&{extra:Xt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Xt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=Xt(i.data,t,n)),i))),r}const _h="Not capturing exception because it's already been captured.";class En{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(En.prototype.__init.call(this),En.prototype.__init2.call(this),En.prototype.__init3.call(this),En.prototype.__init4.call(this),En.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=zf(t.dsn);const n=bh(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(th(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log(_h);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const a=Mf(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(a.then(s=>this._captureEvent(s,r,i)).then(s=>{o=s})),o}captureEvent(t,n,r){if(n&&n.originalException&&th(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log(_h);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),pr(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i)):Sn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=Xv(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){xh(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=qv(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Cv(r,Nv(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}}sendSession(t){if(this._dsn){const n=Kv(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(pr(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ke(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),e1(i,t,n,r)}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?$.log(o.message):$.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return ia(new ve("SDK not enabled, will not capture event.","log"));const a=Sh(t),s=kh(t),l=t.type||"error",c=`before send for type \`${l}\``;if(s&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),ia(new ve(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",d,t),new ve("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const y=a1(i,p,n);return o1(y,c)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",d,t),new ve(`${c} returned \`null\`, will not send event.`,"log");const f=r&&r.getSession();!a&&f&&this._updateSessionFromEvent(f,p);const y=p.transaction_info;if(a&&y&&p.transaction!==t.transaction){const v="custom";p.transaction_info={...y,source:v}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof ve?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new ve(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
49
- Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function o1(e,t){const n=`${t} must return \`null\` or a valid event.`;if(lc(e))return e.then(r=>{if(!cr(r)&&r!==null)throw new ve(n);return r},r=>{throw new ve(`${t} rejected with ${r}`)});if(!cr(e)&&e!==null)throw new ve(n);return e}function a1(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return kh(t)&&r?r(t,n):Sh(t)&&i?i(t,n):t}function kh(e){return e.type===void 0}function Sh(e){return e.type==="transaction"}function s1(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?$.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=oe(),r=n.getScope();r&&r.update(t.initialScope);const i=new e(t);n.bindClient(i)}const l1=30;function Eh(e,t,n=xv(e.bufferSize||l1)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(lh(a,(p,f)=>{const y=uh(f);if($v(r,y)){const v=Ch(p,f);e.recordDroppedEvent("ratelimit_backoff",y,v)}else s.push(p)}),s.length===0)return Sn();const l=aa(a[0],s),c=p=>{lh(l,(f,y)=>{const v=Ch(f,y);e.recordDroppedEvent(p,uh(y),v)})},d=()=>t({body:ch(l,e.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=jv(r,p),p),p=>{throw c("network_error"),p});return n.add(d).then(p=>p,p=>{if(p instanceof ve)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error("Skipped sending event because buffer is full."),c("queue_overflow"),Sn();throw p})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function Ch(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const la="7.44.2";let Ph;class Di{constructor(){Di.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Di.id}setupOnce(){Ph=Function.prototype.toString,Function.prototype.toString=function(...t){const n=fc(this)||this;return Ph.apply(n,t)}}}Di.__initStatic();const c1=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class dr{static __initStatic(){this.id="InboundFilters"}__init(){this.name=dr.id}constructor(t={}){this._options=t,dr.prototype.__init.call(this)}setupOnce(t,n){const r=i=>{const o=n();if(o){const a=o.getIntegration(dr);if(a){const s=o.getClient(),l=s?s.getOptions():{},c=u1(a._options,l);return p1(i,c)?null:i}}return i};r.id=this.name,t(r)}}dr.__initStatic();function u1(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...c1],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function p1(e,t){return t.ignoreInternal&&m1(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Event dropped due to being internal Sentry Error.
50
- Event: ${kn(e)}`),!0):d1(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
51
- Event: ${kn(e)}`),!0):f1(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Event dropped due to being matched by \`denyUrls\` option.
52
- Event: ${kn(e)}.
53
- Url: ${ca(e)}`),!0):h1(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`Event dropped due to not being matched by \`allowUrls\` option.
54
- Event: ${kn(e)}.
55
- Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t))}function f1(e,t){if(!t||!t.length)return!1;const n=ca(e);return n?pc(n,t):!1}function h1(e,t){if(!t||!t.length)return!0;const n=ca(e);return n?pc(n,t):!0}function g1(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error(`Cannot extract message for event ${kn(e)}`),[]}return[]}function m1(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function y1(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ca(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?y1(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error(`Cannot extract url for event ${kn(e)}`),null}}const A=Be;let Tc=0;function Nh(){return Tc>0}function v1(){Tc++,setTimeout(()=>{Tc--})}function fr(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(fc(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(a=>fr(a,t));return e.apply(this,o)}catch(o){throw v1(),yh(a=>{a.addEventProcessor(s=>(t.mechanism&&(wc(s,void 0,void 0),Ri(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),mh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Yf(r,e),dc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Th(e,t){const n=Rc(e,t),r={type:t&&t.name,value:_1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function b1(e,t,n,r){const o=oe().getClient(),a=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:sc(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${q0(t)}`}]},extra:{__serialized__:ih(t,a)}};if(n){const l=Rc(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Oc(e,t){return{exception:{values:[Th(e,t)]}}}function Rc(e,t){const n=t.stacktrace||t.stack||"",r=x1(t);try{return e(n,r)}catch{}return[]}const w1=/Minified React error #\d+;/i;function x1(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(w1.test(e.message))return 1}return 0}function _1(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function k1(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Lc(e,t,i,r);return Ri(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Sn(o)}function S1(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=Dc(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Sn(a)}function Lc(e,t,n,r,i){let o;if(jf(t)&&t.error)return Oc(e,t.error);if(Af(t)||D0(t)){const a=t;if("stack"in t)o=Oc(e,t);else{const s=a.name||(Af(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=Dc(e,l,n,r),wc(o,l)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return ac(t)?Oc(e,t):cr(t)||sc(t)?(o=b1(e,t,n,i),Ri(o,{synthetic:!0}),o):(o=Dc(e,t,n,r),wc(o,`${t}`,void 0),Ri(o,{synthetic:!0}),o)}function Dc(e,t,n,r){const i={message:t};if(r&&n){const o=Rc(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}const ua=1024,Oh="Breadcrumbs";class Ii{static __initStatic(){this.id=Oh}__init(){this.name=Ii.id}constructor(t){Ii.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&Jt("console",C1),this.options.dom&&Jt("dom",E1(this.options.dom)),this.options.xhr&&Jt("xhr",P1),this.options.fetch&&Jt("fetch",N1),this.options.history&&Jt("history",T1)}addSentryBreadcrumb(t){this.options.sentry&&oe().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:kn(t)},{event:t})}}Ii.__initStatic();function E1(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>ua&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn(`\`dom.maxStringLength\` cannot exceed ${ua}, but a value of ${o} was configured. Sentry will use ${ua} instead.`),o=ua),typeof i=="string"&&(i=[i]);try{const a=n.event;r=O1(a)?uc(a.target,{keyAttrs:i,maxStringLength:o}):uc(a,{keyAttrs:i,maxStringLength:o})}catch{r="<unknown>"}r.length!==0&&oe().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function C1(e){for(let n=0;n<e.args.length;n++)if(e.args[n]==="ref=Ref<"){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:kv(e.level),message:Hf(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Hf(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;oe().addBreadcrumb(t,{input:e.args,level:e.level})}function P1(e){const{startTimestamp:t,endTimestamp:n}=e;if(!t||!n||!e.xhr.__sentry_xhr__)return;const{method:r,url:i,status_code:o,body:a}=e.xhr.__sentry_xhr__,s={method:r,url:i,status_code:o},l={xhr:e.xhr,input:a,startTimestamp:t,endTimestamp:n};oe().addBreadcrumb({category:"xhr",data:s,type:"http"},l)}function N1(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};oe().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};oe().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function T1(e){let t=e.from,n=e.to;const r=_c(A.location.href);let i=_c(t);const o=_c(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),oe().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function O1(e){return e&&!!e.target}class R1 extends En{constructor(t){const n=A.SENTRY_SDK_SOURCE||gv();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:la}],version:la},super(t),t.sendClientReports&&A.document&&A.document.addEventListener("visibilitychange",()=>{A.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return k1(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return S1(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(Oh);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log("Sending outcomes:",t);const n=bh(this._dsn,this._options),r=Rv(t,this._options.tunnel&&Zo(this._dsn));try{Object.prototype.toString.call(A&&A.navigator)==="[object Navigator]"&&typeof A.navigator.sendBeacon=="function"&&!this._options.transportOptions?A.navigator.sendBeacon.bind(A.navigator)(n,ch(r)):this._sendEnvelope(r)}catch(i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error(i)}}}let $i;function L1(){if($i)return $i;if(yc(A.fetch))return $i=A.fetch.bind(A);const e=A.document;let t=A.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return $i=t.bind(A)}function D1(){$i=void 0}function I1(e,t=L1()){function n(r){const i={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r.body.length<=65536,...e.fetchOptions};try{return t(e.url,i).then(o=>({statusCode:o.status,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")}}))}catch(o){return D1(),ia(o)}}return Eh(e,n)}const $1=4;function j1(e){function t(n){return new ke((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===$1&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&o.setRequestHeader(a,e.headers[a]);o.send(n.body)})}return Eh(e,t)}const pa="?",A1=30,M1=40,F1=50;function Ic(e,t,n,r){const i={filename:e,abs_path:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const z1=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,U1=/\((\S*)(?::(\d+))(?::(\d+))\)/,B1=[A1,e=>{const t=z1.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=U1.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=Rh(t[1]||pa,t[2]);return Ic(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],H1=/^\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,Y1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,G1=[F1,e=>{const t=H1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Y1.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||pa;return[i,r]=Rh(i,r),Ic(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],W1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,V1=Qf(...[B1,G1,[M1,e=>{const t=W1.exec(e);return t?Ic(t[2],t[1]||pa,+t[3],t[4]?+t[4]:void 0):void 0}]]),Rh=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pa,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class tn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=tn.id}__init2(){this._installFunc={onerror:K1,onunhandledrejection:q1}}constructor(t){tn.prototype.__init.call(this),tn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(X1(n),r(),this._installFunc[n]=void 0)}}}tn.__initStatic();function K1(){Jt("error",e=>{const[t,n,r]=Ih();if(!t.getIntegration(tn))return;const{msg:i,url:o,line:a,column:s,error:l}=e;if(Nh()||l&&l.__sentry_own_request__)return;const c=l===void 0&&xn(i)?J1(i,o,a,s):Lh(Lc(n,l||i,void 0,r,!1),o,a,s);c.level="error",Dh(t,l,c,"onerror")})}function q1(){Jt("unhandledrejection",e=>{const[t,n,r]=Ih();if(!t.getIntegration(tn))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Nh()||i&&i.__sentry_own_request__)return!0;const o=Mf(i)?Q1(i):Lc(n,i,void 0,r,!0);o.level="error",Dh(t,i,o,"onunhandledrejection")})}function Q1(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function J1(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=jf(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),Lh({exception:{values:[{type:a,value:o}]}},t,n,r)}function Lh(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,p=xn(t)&&t.length>0?t:U0();return l.length===0&&l.push({colno:c,filename:p,function:"?",in_app:!0,lineno:d}),e}function X1(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.log(`Global Handler attached: ${e}`)}function Dh(e,t,n,r){Ri(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ih(){const e=oe(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const Z1=["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"];class ji{static __initStatic(){this.id="TryCatch"}__init(){this.name=ji.id}constructor(t){ji.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&be(A,"setTimeout",$h),this._options.setInterval&&be(A,"setInterval",$h),this._options.requestAnimationFrame&&be(A,"requestAnimationFrame",eb),this._options.XMLHttpRequest&&"XMLHttpRequest"in A&&be(XMLHttpRequest.prototype,"send",tb);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:Z1).forEach(nb)}}ji.__initStatic();function $h(e){return function(...t){const n=t[0];return t[0]=fr(n,{mechanism:{data:{function:Qt(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function eb(e){return function(t){return e.apply(this,[fr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qt(e)},handled:!0,type:"instrument"}})])}}function tb(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&be(n,i,function(o){const a={mechanism:{data:{function:i,handler:Qt(o)},handled:!0,type:"instrument"}},s=fc(o);return s&&(a.mechanism.data.handler=Qt(s)),fr(o,a)})}),e.apply(this,t)}}function nb(e){const t=A,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(be(n,"addEventListener",function(r){return function(i,o,a){try{typeof o.handleEvent=="function"&&(o.handleEvent=fr(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qt(o),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,fr(o,{mechanism:{data:{function:"addEventListener",handler:Qt(o),target:e},handled:!0,type:"instrument"}}),a])}}),be(n,"removeEventListener",function(r){return function(i,o,a){const s=o;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,a)}catch{}return r.call(this,i,s,a)}}))}const rb="cause",ib=5;class hr{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=hr.id}constructor(t={}){hr.prototype.__init.call(this),this._key=t.key||rb,this._limit=t.limit||ib}setupOnce(){const t=oe().getClient();t&&Cc((n,r)=>{const i=oe().getIntegration(hr);return i?ob(t.getOptions().stackParser,i._key,i._limit,n,r):n})}}hr.__initStatic();function ob(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!qt(i.originalException,Error))return r;const o=jh(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function jh(e,t,n,r,i=[]){if(!qt(n[r],Error)||i.length+1>=t)return i;const o=Th(e,n[r]);return jh(e,t,n[r],r,[o,...i])}class gr{constructor(){gr.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=gr.id}setupOnce(){Cc(t=>{if(oe().getIntegration(gr)){if(!A.navigator&&!A.location&&!A.document)return t;const n=t.request&&t.request.url||A.location&&A.location.href,{referrer:r}=A.document||{},{userAgent:i}=A.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},a={...t.request,...n&&{url:n},headers:o};return{...t,request:a}}return t})}}gr.__initStatic();class mr{constructor(){mr.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=mr.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const o=n().getIntegration(mr);if(o){try{if(ab(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,t(r)}}mr.__initStatic();function ab(e,t){return t?!!(sb(e,t)||lb(e,t)):!1}function sb(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Mh(e,t)||!Ah(e,t))}function lb(e,t){const n=Fh(t),r=Fh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Mh(e,t)||!Ah(e,t))}function Ah(e,t){let n=zh(e),r=zh(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function Mh(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Fh(e){return e.exception&&e.exception.values&&e.exception.values[0]}function zh(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const cb=[new dr,new Di,new ji,new Ii,new tn,new hr,new mr,new gr];function ub(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=cb),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),A.SENTRY_RELEASE&&A.SENTRY_RELEASE.id&&(e.release=A.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Q0(e.stackParser||V1),integrations:Jv(e),transport:e.transport||(Jf()?I1:j1)};s1(R1,t),e.autoSessionTracking&&db()}function pb(e={},t=oe()){if(!A.document){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=A.document.createElement("script");o.async=!0,o.src=Wv(i,e),e.onLoad&&(o.onload=e.onLoad);const a=A.document.head||A.document.body;a?a.appendChild(o):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.error("Not injecting report dialog. No injection point found in HTML")}function Uh(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function db(){if(typeof A.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=oe();e.captureSession&&(Uh(e),Jt("history",({from:t,to:n})=>{t===void 0||t===n||Uh(oe())}))}function fb(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:la}],version:la},ub(e)}var $c={},hb={get exports(){return $c},set exports(e){$c=e}},F={};/** @license React v16.13.1
48
+ `),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Xt(l))}o(c)}}return typeof i=="string"?i:Tv(i)}function Tv(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function $v(e,t){const n=typeof e.data=="string"?Cc(e.data,t):e.data;return[mc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Rv={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function ph(e){return Rv[e]}function fh(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ov(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:Ti(r)},...e.type==="transaction"&&i&&{trace:mc({...i})}}}function Dv(e,t,n){const r=[{type:"client_report"},{timestamp:n||sa(),discarded_events:e}];return Di(t?{dsn:t}:{},[r])}const Lv=60*1e3;function jv(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Lv:r-t}function Iv(e,t){return e[t]||e.all||0}function Av(e,t,n=Date.now()){return Iv(e,t)>n}function Mv(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[l,c]=s.split(":",2),p=parseInt(l,10),d=(isNaN(p)?60:p)*1e3;if(!c)i.all=r+d;else for(const f of c.split(";"))i[f]=r+d}else a?i.all=r+jv(a,r):t===429&&(i.all=r+60*1e3);return i}const hh="production";function zv(e){const t=uh(),n={sid:cr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Uv(n)};return e&&ur(n,e),n}function ur(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||uh(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:cr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fv(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ur(e,n)}function Uv(e){return mc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Bv=100;class Zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const n=new Zt;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&ur(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Zt?n:this}return t instanceof Zt?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):sr(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){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}addBreadcrumb(t,n){const r=typeof n=="number"?n:Bv;if(r<=0)return this;const i={timestamp:sa(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...mh(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,i=0){return new _e((o,a)=>{const s=t[i];if(n===null||typeof s!="function")o(n);else{const l=s({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&l===null&&j.log(`Event processor "${s.id}" dropped event`),uc(l)?l.then(c=>this._notifyEventProcessors(t,c,r,i+1).then(o)).then(null,a):this._notifyEventProcessors(t,l,r,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?oh(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function mh(){return dc("globalEventProcessors",()=>[])}function Pc(e){mh().push(e)}const Nc=4,Yv=100;class Tc{constructor(t,n=new Zt,r=Nc){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Zt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:cr(),i=new Error("Sentry syntheticException");return this._withClient((o,a)=>{o.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},a)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:cr(),o=new Error(t);return this._withClient((a,s)=>{a.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},s)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:cr();return t.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(t,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=Yv}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:sa(),...t},c=o?Yf(()=>o(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,a))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=gh(this);try{t(this)}finally{gh(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Fv(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=hh}=r&&r.getOptions()||{},{userAgent:a}=Be.navigator||{},s=zv({release:i,environment:o,user:n.getUser(),...a&&{userAgent:a},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&ur(l,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=la().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function la(){return Be.__SENTRY__=Be.__SENTRY__||{extensions:{},hub:void 0},Be}function gh(e){const t=la(),n=en(t);return $c(t,e),n}function ne(){const e=la();return(!yh(e)||en(e).isOlderThan(Nc))&&$c(e,new Tc),ah()?Hv(e):en(e)}function Hv(e){try{const t=la().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return en(e);if(!yh(n)||en(n).isOlderThan(Nc)){const r=en(e).getStackTop();$c(n,new Tc(r.client,Zt.clone(r.scope)))}return en(n)}catch{return en(e)}}function yh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function en(e){return dc("hub",()=>new Tc,e)}function $c(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function vh(e,t){return ne().captureException(e,{captureContext:t})}function bh(e){ne().withScope(e)}const Gv="7";function wh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wv(e){return`${wh(e)}${e.projectId}/envelope/`}function Vv(e,t){return Q0({sentry_key:e.publicKey,sentry_version:Gv,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Kv(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Wv(e)}?${Vv(e,r)}`}function qv(e,t){const n=Bf(e),r=`${wh(n)}embed/error-page/`;let i=`dsn=${Ti(n)}`;for(const o in t)if(o!=="dsn")if(o==="user"){const a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}function Qv(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Jv(e,t,n,r){const i=fh(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Ti(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Di(o,[a])}function Xv(e,t,n,r){const i=fh(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Qv(e,n&&n.sdk);const a=Ov(e,i,r,t);return delete e.sdkProcessingMetadata,Di(a,[[{type:o},e]])}const xh=[];function Zv(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function e1(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=oh(n(t)):r=t;const i=Zv(r),o=n1(i,a=>a.name==="Debug");if(o!==-1){const[a]=i.splice(o,1);i.push(a)}return i}function t1(e){const t={};return e.forEach(n=>{n&&kh(n,t)}),t}function kh(e,t){t[e.name]=e,xh.indexOf(e.name)===-1&&(e.setupOnce(Pc,ne),xh.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(`Integration installed: ${e.name}`))}function n1(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function r1(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=e,a={...t,event_id:t.event_id||n.event_id||cr(),timestamp:t.timestamp||sa()},s=n.integrations||e.integrations.map(p=>p.name);i1(a,e),a1(a,s),o1(a,e.stackParser);let l=r;n.captureContext&&(l=Zt.clone(l).update(n.captureContext));let c=kn(a);if(l){if(l.getAttachments){const p=[...n.attachments||[],...l.getAttachments()];p.length&&(n.attachments=p)}c=l.applyToEvent(a,n)}return c.then(p=>typeof i=="number"&&i>0?s1(p,i,o):p)}function i1(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:hh),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=$i(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=$i(a.value,o));const s=e.request;s&&s.url&&(s.url=$i(s.url,o))}function o1(e,t){const n=Be._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce((a,s)=>{const l=t(s);for(let c=l.length-1;c>=0;c--){const p=l[c];if(p.filename){a[p.filename]=n[s];break}}return a},{}),i=new Set;try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&i.add(s.filename)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const o=e.debug_meta.images;i.forEach(a=>{r[a]&&o.push({type:"sourcemap",code_file:a,debug_id:r[a]})})}function a1(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function s1(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Xt(i.data,t,n)}}))},...e.user&&{user:Xt(e.user,t,n)},...e.contexts&&{contexts:Xt(e.contexts,t,n)},...e.extra&&{extra:Xt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Xt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=Xt(i.data,t,n)),i))),r}const _h="Not capturing exception because it's already been captured.";class _n{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(_n.prototype.__init.call(this),_n.prototype.__init2.call(this),_n.prototype.__init3.call(this),_n.prototype.__init4.call(this),_n.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=Bf(t.dsn);const n=Kv(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(ih(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(_h);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const a=Ff(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(a.then(s=>this._captureEvent(s,r,i)).then(s=>{o=s})),o}captureEvent(t,n,r){if(n&&n.originalException&&ih(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(_h);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ur(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i)):kn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=t1(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){kh(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=Xv(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Pv(r,$v(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}}sendSession(t){if(this._dsn){const n=Jv(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(ur(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _e(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),r1(i,t,n,r)}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?j.log(o.message):j.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return aa(new be("SDK not enabled, will not capture event.","log"));const a=Eh(t),s=Sh(t),l=t.type||"error",c=`before send for type \`${l}\``;if(s&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),aa(new be(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",p,t),new be("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const y=c1(i,d,n);return l1(y,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",p,t),new be(`${c} returned \`null\`, will not send event.`,"log");const f=r&&r.getSession();!a&&f&&this._updateSessionFromEvent(f,d);const y=d.transaction_info;if(a&&y&&d.transaction!==t.transaction){const v="custom";d.transaction_info={...y,source:v}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof be?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new be(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
49
+ Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function l1(e,t){const n=`${t} must return \`null\` or a valid event.`;if(uc(e))return e.then(r=>{if(!sr(r)&&r!==null)throw new be(n);return r},r=>{throw new be(`${t} rejected with ${r}`)});if(!sr(e)&&e!==null)throw new be(n);return e}function c1(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return Sh(t)&&r?r(t,n):Eh(t)&&i?i(t,n):t}function Sh(e){return e.type===void 0}function Eh(e){return e.type==="transaction"}function u1(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?j.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=ne();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}const d1=30;function Ch(e,t,n=kv(e.bufferSize||d1)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(dh(a,(d,f)=>{const y=ph(f);if(Av(r,y)){const v=Ph(d,f);e.recordDroppedEvent("ratelimit_backoff",y,v)}else s.push(d)}),s.length===0)return kn();const l=Di(a[0],s),c=d=>{dh(l,(f,y)=>{const v=Ph(f,y);e.recordDroppedEvent(d,ph(y),v)})},p=()=>t({body:Nv(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Mv(r,d),d),d=>{throw c("network_error"),d});return n.add(p).then(d=>d,d=>{if(d instanceof be)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Skipped sending event because buffer is full."),c("queue_overflow"),kn();throw d})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function Ph(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const ca="7.47.0";let Nh;class Li{constructor(){Li.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Li.id}setupOnce(){Nh=Function.prototype.toString,Function.prototype.toString=function(...t){const n=hc(this)||this;return Nh.apply(n,t)}}}Li.__initStatic();const p1=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class dr{static __initStatic(){this.id="InboundFilters"}__init(){this.name=dr.id}constructor(t={}){this._options=t,dr.prototype.__init.call(this)}setupOnce(t,n){const r=i=>{const o=n();if(o){const a=o.getIntegration(dr);if(a){const s=o.getClient(),l=s?s.getOptions():{},c=f1(a._options,l);return h1(i,c)?null:i}}return i};r.id=this.name,t(r)}}dr.__initStatic();function f1(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...p1],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function h1(e,t){return t.ignoreInternal&&w1(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Event dropped due to being internal Sentry Error.
50
+ Event: ${Jt(e)}`),!0):m1(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
51
+ Event: ${Jt(e)}`),!0):g1(e,t.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
52
+ Event: ${Jt(e)}`),!0):y1(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Event dropped due to being matched by \`denyUrls\` option.
53
+ Event: ${Jt(e)}.
54
+ Url: ${ua(e)}`),!0):v1(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Event dropped due to not being matched by \`allowUrls\` option.
55
+ Event: ${Jt(e)}.
56
+ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(n=>Zo(n,t))}function g1(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Zo(n,t):!1}function y1(e,t){if(!t||!t.length)return!1;const n=ua(e);return n?Zo(n,t):!1}function v1(e,t){if(!t||!t.length)return!0;const n=ua(e);return n?Zo(n,t):!0}function b1(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error(`Cannot extract message for event ${Jt(e)}`),[]}return[]}function w1(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function x1(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ua(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?x1(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error(`Cannot extract url for event ${Jt(e)}`),null}}const M=Be;let Rc=0;function Th(){return Rc>0}function k1(){Rc++,setTimeout(()=>{Rc--})}function pr(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(hc(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(a=>pr(a,t));return e.apply(this,o)}catch(o){throw k1(),bh(a=>{a.addEventProcessor(s=>(t.mechanism&&(xc(s,void 0,void 0),Oi(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),vh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Wf(r,e),fc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function $h(e,t){const n=Dc(e,t),r={type:t&&t.name,value:C1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _1(e,t,n,r){const o=ne().getClient(),a=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:cc(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${J0(t)}`}]},extra:{__serialized__:sh(t,a)}};if(n){const l=Dc(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Oc(e,t){return{exception:{values:[$h(e,t)]}}}function Dc(e,t){const n=t.stacktrace||t.stack||"",r=E1(t);try{return e(n,r)}catch{}return[]}const S1=/Minified React error #\d+;/i;function E1(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(S1.test(e.message))return 1}return 0}function C1(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function P1(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Lc(e,t,i,r);return Oi(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),kn(o)}function N1(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=jc(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),kn(a)}function Lc(e,t,n,r,i){let o;if(Mf(t)&&t.error)return Oc(e,t.error);if(zf(t)||j0(t)){const a=t;if("stack"in t)o=Oc(e,t);else{const s=a.name||(zf(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=jc(e,l,n,r),xc(o,l)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return lc(t)?Oc(e,t):sr(t)||cc(t)?(o=_1(e,t,n,i),Oi(o,{synthetic:!0}),o):(o=jc(e,t,n,r),xc(o,`${t}`,void 0),Oi(o,{synthetic:!0}),o)}function jc(e,t,n,r){const i={message:t};if(r&&n){const o=Dc(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}const da=1024,Rh="Breadcrumbs";class ji{static __initStatic(){this.id=Rh}__init(){this.name=ji.id}constructor(t){ji.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&Qt("console",$1),this.options.dom&&Qt("dom",T1(this.options.dom)),this.options.xhr&&Qt("xhr",R1),this.options.fetch&&Qt("fetch",O1),this.options.history&&Qt("history",D1)}addSentryBreadcrumb(t){this.options.sentry&&ne().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Jt(t)},{event:t})}}ji.__initStatic();function T1(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>da&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`\`dom.maxStringLength\` cannot exceed ${da}, but a value of ${o} was configured. Sentry will use ${da} instead.`),o=da),typeof i=="string"&&(i=[i]);try{const a=n.event;r=L1(a)?pc(a.target,{keyAttrs:i,maxStringLength:o}):pc(a,{keyAttrs:i,maxStringLength:o})}catch{r="<unknown>"}r.length!==0&&ne().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function $1(e){for(let n=0;n<e.args.length;n++)if(e.args[n]==="ref=Ref<"){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:Sv(e.level),message:Gf(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Gf(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;ne().addBreadcrumb(t,{input:e.args,level:e.level})}function R1(e){const{startTimestamp:t,endTimestamp:n}=e;if(!t||!n||!e.xhr.__sentry_xhr__)return;const{method:r,url:i,status_code:o,body:a}=e.xhr.__sentry_xhr__,s={method:r,url:i,status_code:o},l={xhr:e.xhr,input:a,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"xhr",data:s,type:"http"},l)}function O1(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function D1(e){let t=e.from,n=e.to;const r=_c(M.location.href);let i=_c(t);const o=_c(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),ne().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function L1(e){return e&&!!e.target}function j1(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ti(r)}},o=I1(e);return Di(i,[o])}function I1(e){return[{type:"user_report"},e]}class A1 extends _n{constructor(t){const n=M.SENTRY_SDK_SOURCE||gv();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:ca}],version:ca},super(t),t.sendClientReports&&M.document&&M.document.addEventListener("visibilitychange",()=>{M.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return P1(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return N1(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(Rh);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("SDK not enabled, will not capture user feedback.");return}const n=j1(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log("Sending outcomes:",t);const n=Dv(t,this._options.tunnel&&Ti(this._dsn));this._sendEnvelope(n)}}let Ii;function M1(){if(Ii)return Ii;if(bc(M.fetch))return Ii=M.fetch.bind(M);const e=M.document;let t=M.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Ii=t.bind(M)}function z1(){Ii=void 0}function F1(e,t=M1()){let n=0,r=0;function i(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return z1(),n-=a,r--,aa(l)}}return Ch(e,i)}const U1=4;function B1(e){function t(n){return new _e((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===U1&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&o.setRequestHeader(a,e.headers[a]);o.send(n.body)})}return Ch(e,t)}const pa="?",Y1=30,H1=40,G1=50;function Ic(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const W1=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V1=/\((\S*)(?::(\d+))(?::(\d+))\)/,K1=[Y1,e=>{const t=W1.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=V1.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=Oh(t[1]||pa,t[2]);return Ic(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],q1=/^\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,Q1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,J1=[G1,e=>{const t=q1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Q1.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||pa;return[i,r]=Oh(i,r),Ic(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],X1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Z1=Xf(...[K1,J1,[H1,e=>{const t=X1.exec(e);return t?Ic(t[2],t[1]||pa,+t[3],t[4]?+t[4]:void 0):void 0}]]),Oh=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pa,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class tn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=tn.id}__init2(){this._installFunc={onerror:eb,onunhandledrejection:tb}}constructor(t){tn.prototype.__init.call(this),tn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(ib(n),r(),this._installFunc[n]=void 0)}}}tn.__initStatic();function eb(){Qt("error",e=>{const[t,n,r]=jh();if(!t.getIntegration(tn))return;const{msg:i,url:o,line:a,column:s,error:l}=e;if(Th()||l&&l.__sentry_own_request__)return;const c=l===void 0&&xn(i)?rb(i,o,a,s):Dh(Lc(n,l||i,void 0,r,!1),o,a,s);c.level="error",Lh(t,l,c,"onerror")})}function tb(){Qt("unhandledrejection",e=>{const[t,n,r]=jh();if(!t.getIntegration(tn))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Th()||i&&i.__sentry_own_request__)return!0;const o=Ff(i)?nb(i):Lc(n,i,void 0,r,!0);o.level="error",Lh(t,i,o,"onunhandledrejection")})}function nb(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function rb(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Mf(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),Dh({exception:{values:[{type:a,value:o}]}},t,n,r)}function Dh(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,d=xn(t)&&t.length>0?t:Y0();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:p}),e}function ib(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(`Global Handler attached: ${e}`)}function Lh(e,t,n,r){Oi(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function jh(){const e=ne(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const ob=["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"];class Ai{static __initStatic(){this.id="TryCatch"}__init(){this.name=Ai.id}constructor(t){Ai.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&pe(M,"setTimeout",Ih),this._options.setInterval&&pe(M,"setInterval",Ih),this._options.requestAnimationFrame&&pe(M,"requestAnimationFrame",ab),this._options.XMLHttpRequest&&"XMLHttpRequest"in M&&pe(XMLHttpRequest.prototype,"send",sb);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:ob).forEach(lb)}}Ai.__initStatic();function Ih(e){return function(...t){const n=t[0];return t[0]=pr(n,{mechanism:{data:{function:qt(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ab(e){return function(t){return e.apply(this,[pr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:qt(e)},handled:!0,type:"instrument"}})])}}function sb(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&pe(n,i,function(o){const a={mechanism:{data:{function:i,handler:qt(o)},handled:!0,type:"instrument"}},s=hc(o);return s&&(a.mechanism.data.handler=qt(s)),pr(o,a)})}),e.apply(this,t)}}function lb(e){const t=M,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(pe(n,"addEventListener",function(r){return function(i,o,a){try{typeof o.handleEvent=="function"&&(o.handleEvent=pr(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qt(o),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,pr(o,{mechanism:{data:{function:"addEventListener",handler:qt(o),target:e},handled:!0,type:"instrument"}}),a])}}),pe(n,"removeEventListener",function(r){return function(i,o,a){const s=o;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,a)}catch{}return r.call(this,i,s,a)}}))}const cb="cause",ub=5;class fr{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=fr.id}constructor(t={}){fr.prototype.__init.call(this),this._key=t.key||cb,this._limit=t.limit||ub}setupOnce(){const t=ne().getClient();t&&Pc((n,r)=>{const i=ne().getIntegration(fr);return i?db(t.getOptions().stackParser,i._key,i._limit,n,r):n})}}fr.__initStatic();function db(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!lr(i.originalException,Error))return r;const o=Ah(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function Ah(e,t,n,r,i=[]){if(!lr(n[r],Error)||i.length+1>=t)return i;const o=$h(e,n[r]);return Ah(e,t,n[r],r,[o,...i])}class hr{constructor(){hr.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=hr.id}setupOnce(){Pc(t=>{if(ne().getIntegration(hr)){if(!M.navigator&&!M.location&&!M.document)return t;const n=t.request&&t.request.url||M.location&&M.location.href,{referrer:r}=M.document||{},{userAgent:i}=M.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},a={...t.request,...n&&{url:n},headers:o};return{...t,request:a}}return t})}}hr.__initStatic();class mr{constructor(){mr.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=mr.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const o=n().getIntegration(mr);if(o){try{if(pb(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,t(r)}}mr.__initStatic();function pb(e,t){return t?!!(fb(e,t)||hb(e,t)):!1}function fb(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zh(e,t)||!Mh(e,t))}function hb(e,t){const n=Fh(t),r=Fh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zh(e,t)||!Mh(e,t))}function Mh(e,t){let n=Uh(e),r=Uh(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function zh(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Fh(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Uh(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const mb=[new dr,new Li,new Ai,new ji,new tn,new fr,new mr,new hr];function gb(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=mb),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),M.SENTRY_RELEASE&&M.SENTRY_RELEASE.id&&(e.release=M.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:X0(e.stackParser||Z1),integrations:e1(e),transport:e.transport||(Zf()?F1:B1)};u1(A1,t),e.autoSessionTracking&&yb()}function Bh(e={},t=ne()){if(!M.document){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=M.document.createElement("script");o.async=!0,o.src=qv(i,e),e.onLoad&&(o.onload=e.onLoad);const a=M.document.head||M.document.body;a?a.appendChild(o):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Not injecting report dialog. No injection point found in HTML")}function Yh(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function yb(){if(typeof M.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=ne();e.captureSession&&(Yh(e),Qt("history",({from:t,to:n})=>{t===void 0||t===n||Yh(ne())}))}function vb(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:ca}],version:ca},gb(e)}var Ac={},bb={get exports(){return Ac},set exports(e){Ac=e}},z={};/** @license React v16.13.1
56
57
  * react-is.production.min.js
57
58
  *
58
59
  * Copyright (c) Facebook, Inc. and its affiliates.
59
60
  *
60
61
  * This source code is licensed under the MIT license found in the
61
62
  * LICENSE file in the root directory of this source tree.
62
- */var le=typeof Symbol=="function"&&Symbol.for,jc=le?Symbol.for("react.element"):60103,Ac=le?Symbol.for("react.portal"):60106,da=le?Symbol.for("react.fragment"):60107,fa=le?Symbol.for("react.strict_mode"):60108,ha=le?Symbol.for("react.profiler"):60114,ga=le?Symbol.for("react.provider"):60109,ma=le?Symbol.for("react.context"):60110,Mc=le?Symbol.for("react.async_mode"):60111,ya=le?Symbol.for("react.concurrent_mode"):60111,va=le?Symbol.for("react.forward_ref"):60112,ba=le?Symbol.for("react.suspense"):60113,gb=le?Symbol.for("react.suspense_list"):60120,wa=le?Symbol.for("react.memo"):60115,xa=le?Symbol.for("react.lazy"):60116,mb=le?Symbol.for("react.block"):60121,yb=le?Symbol.for("react.fundamental"):60117,vb=le?Symbol.for("react.responder"):60118,bb=le?Symbol.for("react.scope"):60119;function De(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jc:switch(e=e.type,e){case Mc:case ya:case da:case ha:case fa:case ba:return e;default:switch(e=e&&e.$$typeof,e){case ma:case va:case xa:case wa:case ga:return e;default:return t}}case Ac:return t}}}function Bh(e){return De(e)===ya}F.AsyncMode=Mc,F.ConcurrentMode=ya,F.ContextConsumer=ma,F.ContextProvider=ga,F.Element=jc,F.ForwardRef=va,F.Fragment=da,F.Lazy=xa,F.Memo=wa,F.Portal=Ac,F.Profiler=ha,F.StrictMode=fa,F.Suspense=ba,F.isAsyncMode=function(e){return Bh(e)||De(e)===Mc},F.isConcurrentMode=Bh,F.isContextConsumer=function(e){return De(e)===ma},F.isContextProvider=function(e){return De(e)===ga},F.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jc},F.isForwardRef=function(e){return De(e)===va},F.isFragment=function(e){return De(e)===da},F.isLazy=function(e){return De(e)===xa},F.isMemo=function(e){return De(e)===wa},F.isPortal=function(e){return De(e)===Ac},F.isProfiler=function(e){return De(e)===ha},F.isStrictMode=function(e){return De(e)===fa},F.isSuspense=function(e){return De(e)===ba},F.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===da||e===ya||e===ha||e===fa||e===ba||e===gb||typeof e=="object"&&e!==null&&(e.$$typeof===xa||e.$$typeof===wa||e.$$typeof===ga||e.$$typeof===ma||e.$$typeof===va||e.$$typeof===yb||e.$$typeof===vb||e.$$typeof===bb||e.$$typeof===mb)},F.typeOf=De,function(e){e.exports=F}(hb);var Hh=$c,wb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yh={};Yh[Hh.ForwardRef]=wb,Yh[Hh.Memo]=xb;function _b(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Gh={componentStack:null,error:null,eventId:null};class _a extends x.Component{constructor(...t){super(...t),_a.prototype.__init.call(this),_a.prototype.__init2.call(this)}__init(){this.state=Gh}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;yh(s=>{if(_b(x.version)&&ac(t)){const c=new Error(t.message);c.name=`React ErrorBoundary ${c.name}`,c.stack=n,t.cause=c}r&&r(s,t,n);const l=mh(t,{contexts:{react:{componentStack:n}}});i&&i(t,n,l),o&&pb({...a,eventId:l}),this.setState({error:t,componentStack:n,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r)}__init2(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(Gh)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,x.isValidElement(i)?i:(t&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&$.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}class Fc extends x.Component{constructor(){super(...arguments);Z(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:i="",style:o={},dataTestId:a="",...s}=this.props;return b("iframe",{srcDoc:"<!DOCTYPE html>","data-testid":a,ref:l=>this.node=l,title:i,style:o,frameBorder:"0",...s,children:[this.iframeHead&&Ir.createPortal(r,this.iframeHead),this.iframeRoot&&Ir.createPortal(n,this.iframeRoot)]})}}const zc=e=>x.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.8px;}")),x.createElement("circle",{className:"cls-1",cx:12,cy:9.75,r:5.25}),x.createElement("path",{className:"cls-1",d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0"}),x.createElement("circle",{className:"cls-1",cx:12,cy:12,r:11.25})),Wh=`
63
+ */var le=typeof Symbol=="function"&&Symbol.for,Mc=le?Symbol.for("react.element"):60103,zc=le?Symbol.for("react.portal"):60106,fa=le?Symbol.for("react.fragment"):60107,ha=le?Symbol.for("react.strict_mode"):60108,ma=le?Symbol.for("react.profiler"):60114,ga=le?Symbol.for("react.provider"):60109,ya=le?Symbol.for("react.context"):60110,Fc=le?Symbol.for("react.async_mode"):60111,va=le?Symbol.for("react.concurrent_mode"):60111,ba=le?Symbol.for("react.forward_ref"):60112,wa=le?Symbol.for("react.suspense"):60113,wb=le?Symbol.for("react.suspense_list"):60120,xa=le?Symbol.for("react.memo"):60115,ka=le?Symbol.for("react.lazy"):60116,xb=le?Symbol.for("react.block"):60121,kb=le?Symbol.for("react.fundamental"):60117,_b=le?Symbol.for("react.responder"):60118,Sb=le?Symbol.for("react.scope"):60119;function De(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mc:switch(e=e.type,e){case Fc:case va:case fa:case ma:case ha:case wa:return e;default:switch(e=e&&e.$$typeof,e){case ya:case ba:case ka:case xa:case ga:return e;default:return t}}case zc:return t}}}function Hh(e){return De(e)===va}z.AsyncMode=Fc,z.ConcurrentMode=va,z.ContextConsumer=ya,z.ContextProvider=ga,z.Element=Mc,z.ForwardRef=ba,z.Fragment=fa,z.Lazy=ka,z.Memo=xa,z.Portal=zc,z.Profiler=ma,z.StrictMode=ha,z.Suspense=wa,z.isAsyncMode=function(e){return Hh(e)||De(e)===Fc},z.isConcurrentMode=Hh,z.isContextConsumer=function(e){return De(e)===ya},z.isContextProvider=function(e){return De(e)===ga},z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mc},z.isForwardRef=function(e){return De(e)===ba},z.isFragment=function(e){return De(e)===fa},z.isLazy=function(e){return De(e)===ka},z.isMemo=function(e){return De(e)===xa},z.isPortal=function(e){return De(e)===zc},z.isProfiler=function(e){return De(e)===ma},z.isStrictMode=function(e){return De(e)===ha},z.isSuspense=function(e){return De(e)===wa},z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fa||e===va||e===ma||e===ha||e===wa||e===wb||typeof e=="object"&&e!==null&&(e.$$typeof===ka||e.$$typeof===xa||e.$$typeof===ga||e.$$typeof===ya||e.$$typeof===ba||e.$$typeof===kb||e.$$typeof===_b||e.$$typeof===Sb||e.$$typeof===xb)},z.typeOf=De,function(e){e.exports=z}(bb);var Gh=Ac,Eb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wh={};Wh[Gh.ForwardRef]=Eb,Wh[Gh.Memo]=Cb;function Pb(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Vh={componentStack:null,error:null,eventId:null};function Nb(e,t){const n=new WeakMap;function r(i,o){if(!n.has(i)){if(i.cause)return n.set(i,!0),r(i.cause,o);i.cause=o}}r(e,t)}class Mi extends x.Component{__init(){this.state=Vh}__init2(){this._openFallbackReportDialog=!0}constructor(t){super(t),Mi.prototype.__init.call(this),Mi.prototype.__init2.call(this),Mi.prototype.__init3.call(this);const n=ne().getClient();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&Bh({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;bh(s=>{if(Pb(x.version)&&lc(t)){const c=new Error(t.message);c.name=`React ErrorBoundary ${c.name}`,c.stack=n,Nb(t,c)}r&&r(s,t,n);const l=vh(t,{contexts:{react:{componentStack:n}}});i&&i(t,n,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&Bh({...a,eventId:l})),this.setState({error:t,componentStack:n,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r)}__init3(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(Vh)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,x.isValidElement(i)?i:(t&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}class Uc extends x.Component{constructor(){super(...arguments);Z(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:i="",style:o={},dataTestId:a="",...s}=this.props;return b("iframe",{srcDoc:"<!DOCTYPE html>","data-testid":a,ref:l=>this.node=l,title:i,style:o,frameBorder:"0",...s,children:[this.iframeHead&&Dr.createPortal(r,this.iframeHead),this.iframeRoot&&Dr.createPortal(n,this.iframeRoot)]})}}const Bc=e=>x.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.8px;}")),x.createElement("circle",{className:"cls-1",cx:12,cy:9.75,r:5.25}),x.createElement("path",{className:"cls-1",d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0"}),x.createElement("circle",{className:"cls-1",cx:12,cy:12,r:11.25})),Kh=`
63
64
  .gh-portal-avatar {
64
65
  position: relative;
65
66
  display: flex;
@@ -82,7 +83,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
82
83
  opacity: 1;
83
84
  max-width: unset;
84
85
  }
85
- `,kb=({style:e={}})=>({avatarContainer:{...e.avatarContainer||{}},gravatar:{...e.avatarContainer||{}},userIcon:{width:"34px",height:"34px",color:"#fff",...e.userIcon||{}}});function Uc({gravatar:e,style:t}){let n=kb({style:t});return b("figure",{className:"gh-portal-avatar",style:n.avatarContainer,children:[u(zc,{style:n.userIcon}),e?u("img",{style:n.gravatar,src:e,alt:""}):null]})}const R=q.createContext({site:{},member:{},action:"",lastPage:"",brandColor:"",pageData:{},onAction:(e,t)=>({action:e,data:t})}),Sb=e=>x.createElement("svg",{width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),Eb=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{stroke:"#FFF",strokeWidth:1.5,strokeLinecap:"round",d:"M12.5 2v20M2 12.5h20"}))),Cb=e=>x.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"})),Pb=e=>x.createElement("svg",{width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"})),Nb=e=>x.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"})),Bc=`
86
+ `,Tb=({style:e={}})=>({avatarContainer:{...e.avatarContainer||{}},gravatar:{...e.avatarContainer||{}},userIcon:{width:"34px",height:"34px",color:"#fff",...e.userIcon||{}}});function Yc({gravatar:e,style:t}){let n=Tb({style:t});return b("figure",{className:"gh-portal-avatar",style:n.avatarContainer,children:[u(Bc,{style:n.userIcon}),e?u("img",{style:n.gravatar,src:e,alt:""}):null]})}const R=q.createContext({site:{},member:{},action:"",lastPage:"",brandColor:"",pageData:{},onAction:(e,t)=>({action:e,data:t})}),$b=e=>x.createElement("svg",{width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),Rb=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{stroke:"#FFF",strokeWidth:1.5,strokeLinecap:"round",d:"M12.5 2v20M2 12.5h20"}))),Ob=e=>x.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"})),Db=e=>x.createElement("svg",{width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"})),Lb=e=>x.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"})),Hc=`
86
87
  /* Colors
87
88
  /* ----------------------------------------------------- */
88
89
  :root {
@@ -307,7 +308,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
307
308
  display: none;
308
309
  }
309
310
  }
310
- `,Tb=Bc+`
311
+ `,jb=Hc+`
311
312
  .gh-portal-triggerbtn-wrapper {
312
313
  display: inline-flex;
313
314
  align-items: flex-start;
@@ -381,11 +382,11 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
381
382
  width: 60px;
382
383
  height: 60px;
383
384
  }
384
- `+Wh,xt=e=>{if(!e)return"";const t=new Date(e),n={year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString("en-GB",n)};function Hc(){const[e]=window.location.hash.substr(1).split("?");e&&/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/.test(e)&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}function Ob({page:e}){const t={signin:"#/portal/signin",signup:"#/portal/signup"};return Object.keys(t).includes(e)?t[e]:t.default}function Vh({page:e,siteUrl:t}){const n=t||`${window.location.protocol}//${window.location.host}${window.location.pathname}`,r=Ob({page:e});return`${n}${r}`}function yr(){return!(navigator&&navigator.cookieEnabled)}function Rb({event:e}){var i,o,a,s;const n=(((s=(a=(o=(i=e==null?void 0:e.exception)==null?void 0:i.values)==null?void 0:o[0])==null?void 0:a.stacktrace)==null?void 0:s.frames)||[]).map(l=>l.filename).filter(l=>!!l);return(n[n.length-1]||"").includes("@tryghost/portal")}function Qe({member:e={}}){if(_t({member:e})){const n=(e.subscriptions||[]).find(r=>["active","trialing","unpaid","past_due"].includes(r.status));return!(n!=null&&n.price)&&(n!=null&&n.plan)&&(n.price=n.plan),n}return null}function vr({member:e={}}){if(!e)return!1;const t=Qe({member:e});if(t){const{price:n}=t;return n&&n.amount===0}else if(!t&&e.paid)return!0;return!1}function _t({member:e={}}){return e&&e.paid}function Lb({product:e}){return e!=null&&e.monthlyPrice?e.monthlyPrice.currency:null}function Ai({member:e}){var t,n,r;return((r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)==null?void 0:r.expiry_at)!==void 0}function Yc({member:e}){var t,n,r;return(r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)!=null&&r.expiry_at?xt(e.subscriptions[0].tier.expiry_at):""}function Db({site:e,member:t}){const n=Cn({member:t}),r=n==null?void 0:n.currency,i=Ea({site:e});return n!=null&&n.id?i.filter(o=>La(Lb({product:o}),r)):i}function Ib({prices:e,currency:t}){return e.filter(n=>La(n.currency||"",t||""))}function Kh({subscription:e}){var t,n;return e&&e.price?{...e.price,stripe_price_id:e.price.id,id:e.price.price_id,price:e.price.amount/100,name:e.price.nickname,tierId:(t=e.tier)==null?void 0:t.id,cadence:((n=e.price)==null?void 0:n.interval)==="month"?"month":"year",currency:e.price.currency.toLowerCase(),currency_symbol:de(e.price.currency)}:null}function Cn({member:e}){const t=Qe({member:e});return Kh({subscription:t})}function $b({priceId:e,site:t,member:n}){const r=Cn({member:n}),{tierId:i,cadence:o}=Nn({site:t,priceId:e});return(r==null?void 0:r.tierId)===i&&(r==null?void 0:r.cadence)===o}function jb({member:e,subscriptionId:t}){return _t({member:e})?(e.subscriptions||[]).find(r=>r.id===t):null}function qh({member:e}){var n;const t=Qe({member:e});return((n=t==null?void 0:t.tier)==null?void 0:n.name)||""}function ka({plans:e,site:t={}}){return e=e||Oa({site:t}),!e||e.length===0||e.length===1&&e[0].type==="free"}function Ab(e,t){const r=Ea({site:e}).find(i=>i.type==="paid");return t==="monthly"?{cadence:"month",tierId:r.id}:t==="yearly"?{cadence:"year",tierId:r.id}:{priceId:t}}function Mb({site:e={},priceId:t}){const n=Ta({site:e});if(t==="free")return!n||n.length===0||n.find(r=>r.type==="free");if(n&&n.length>0&&t==="monthly"){const r=n.find(o=>o.name==="Monthly"),i=n.find(o=>o.interval==="month");return r||i}else if(n&&n.length>0&&t==="yearly"){const r=n.find(o=>o.name==="Yearly"),i=n.find(o=>o.interval==="year");return r||i}else if(n&&n.length>0&&t)return n.find(r=>r.id===t);return null}function at({site:e={},pageQuery:t=""}){return Oa({site:e,pageQuery:t}).length===0||e&&e.members_signup_access==="invite"}function Sa({site:e}){const{portal_products:t}=e||{};return!!t}function Qh({site:e}){return(e==null?void 0:e.comments_enabled)&&(e==null?void 0:e.comments_enabled)!=="off"}function Fb({site:e}){var t,n,r,i,o,a;try{if(!e)return null;if(e.tiers&&(e.products=e.tiers),e.products=(t=e.products)==null?void 0:t.map(s=>({...s,monthlyPrice:s.monthly_price,yearlyPrice:s.yearly_price})),e.is_stripe_configured=!!e.paid_members_enabled,e.members_signup_access="all",e.members_enabled||(e.members_signup_access="none"),e.members_invite_only&&(e.members_signup_access="invite"),e.allow_self_signup=!1,e.members_signup_access!=="all"&&(e.allow_self_signup=!1),e.paid_members_enabled&&(e.allow_self_signup=!0),(n=e.portal_plans)!=null&&n.includes("free")&&(e.allow_self_signup=!0),(i=(r=e.products)==null?void 0:r[0])!=null&&i.visibility){e.portal_products=e.products.filter(l=>l.visibility!=="none"&&l.type==="paid").map(l=>l.id);const s=e.products.find(l=>l.type==="free");s&&(e.portal_plans=(o=e.portal_plans)==null?void 0:o.filter(l=>l!=="free"),(s==null?void 0:s.visibility)==="public"&&((a=e.portal_plans)==null||a.push("free")))}return e}catch(s){console.warn("[Portal] Failed to read site data:",s)}}function Ea({site:e}){const{portal_products:t,products:n=[],portal_plans:r=[]}=e||{};return!r.includes("monthly")&&!r.includes("yearly")?[]:n.filter(i=>!!i).filter(i=>e.is_stripe_configured?!0:i.type!=="paid").filter(i=>!!(i.monthlyPrice&&i.yearlyPrice)).filter(i=>Object.keys(i.monthlyPrice).length>0&&Object.keys(i.yearlyPrice).length>0).filter(i=>t&&n.length>1?t.includes(i.id):!0).sort((i,o)=>{var a,s;return((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)-((s=o==null?void 0:o.monthlyPrice)==null?void 0:s.amount)}).map(i=>(i.monthlyPrice={...i.monthlyPrice,currency_symbol:de(i.monthlyPrice.currency)},i.yearlyPrice={...i.yearlyPrice,currency_symbol:de(i.yearlyPrice.currency)},i))}function br({site:e}){const{products:t=[]}=e||{};return t.find(n=>n.type==="free")}function Gc({site:e}){const{products:t=[],portal_plans:n=[]}=e||{};return!n.includes("monthly")&&!n.includes("yearly")?[]:t.filter(r=>!!r).filter(r=>!!(r.monthlyPrice&&r.yearlyPrice)).filter(r=>Object.keys(r.monthlyPrice).length>0&&Object.keys(r.yearlyPrice).length>0).sort((r,i)=>{var o,a;return((o=r==null?void 0:r.monthlyPrice)==null?void 0:o.amount)-((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)}).map(r=>(r.monthlyPrice={...r.monthlyPrice,currency_symbol:de(r.monthlyPrice.currency)},r.yearlyPrice={...r.yearlyPrice,currency_symbol:de(r.yearlyPrice.currency)},r))}function Ca({site:e,pageQuery:t}){const n=Ea({site:e});return t==="free"&&Pn({site:e})?[]:(Pn({site:e})&&n.unshift({id:"free"}),n)}function Pa({site:e}){return Ca({site:e}).some(n=>!!(n!=null&&n.trial_days))}function Jh({site:e}){const t=br({site:e});return(t==null?void 0:t.benefits)||[]}function Xh({site:e}){return Na({site:e})?"Free membership":"Free"}function Zh({site:e}){const t=br({site:e});return t==null?void 0:t.description}function zb({site:e}){var n;const t=br({site:e});return!!(t!=null&&t.description||(n=t==null?void 0:t.benefits)!=null&&n.length)}function wr({site:e,productId:t}){return Gc({site:e}).find(r=>r.id===t)}function Ub({site:e=null,products:t=null}){return!e&&!t?[]:(t||Ea({site:e})).reduce((i,o)=>(o.monthlyPrice&&o.yearlyPrice&&(i.push(o.monthlyPrice),i.push(o.yearlyPrice)),i),[])}function Pn({site:e}){const{allow_self_signup:t,portal_plans:n}=e||{};return t&&n.includes("free")}function xr({site:e}){const{newsletters:t=[]}=e||{};return t==null||t.sort((n,r)=>n.sort_order-r.sort_order),t}function Mi({site:e}){const{newsletters:t}=e||{};return(t==null?void 0:t.length)>1}function eg({member:e}){var t;return(t=e==null?void 0:e.email_suppression)==null?void 0:t.suppressed}function Na({site:e}){return Ca({site:e}).length===1&&Pn({site:e})}function Wc({sub:e}={}){return!!(e!=null&&e.trial_end_at&&!tg(new Date(e==null?void 0:e.trial_end_at)))}function tg(e){const t=new Date;return t.setHours(0,0,0,0),e<t}function ng({site:e,priceId:t}){return t==="free"?br({site:e}):Gc({site:e}).find(r=>{var i,o;return((i=r==null?void 0:r.monthlyPrice)==null?void 0:i.id)===t||((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t})}function Nn({site:e,priceId:t}){var o;if(t==="free")return br({site:e});const r=Gc({site:e}).find(a=>{var s,l;return((s=a==null?void 0:a.monthlyPrice)==null?void 0:s.id)===t||((l=a==null?void 0:a.yearlyPrice)==null?void 0:l.id)===t});let i="month";return((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t&&(i="year"),{tierId:r==null?void 0:r.id,cadence:i}}function Ta({site:e,products:t=null}){const{portal_plans:n=[],is_stripe_configured:r}=e||{};return r?Ub({site:e,products:t}).filter(o=>!!(o&&o.id)).map(o=>({...o,price_id:o.id,price:o.amount/100,name:o.nickname,currency_symbol:de(o.currency)})).filter(o=>o.amount!==0&&o.type==="recurring").filter(o=>o.interval==="month"?n.includes("monthly"):o.interval==="year"?n.includes("yearly"):!1).sort((o,a)=>o.amount-a.amount).sort((o,a)=>!o.currency||!a.currency?0:o.currency.localeCompare(a.currency,void 0,{ignorePunctuation:!0})):[]}function Bb({site:e}){const t=Ta({site:e});let n={currency:"usd",currency_symbol:"$"};return(t==null?void 0:t.length)>0&&(n.currency=t[0].currency,n.currency_symbol=t[0].currency_symbol),n}function Oa({site:e={},pageQuery:t=""}={}){const{allow_self_signup:n,portal_plans:r}=e||{},i=[];if(n&&r.includes("free")){const a=Bb({site:e});i.push({id:"free",type:"free",price:0,amount:0,name:Xh({site:e}),...a})}return t==="free"&&Pn({site:e})||Ta({site:e}).forEach(s=>{i.push(s)}),i}const Hb=({member:e})=>e?e.email:"",Vc=({member:e})=>e?e.email_suppression:"",Yb=({site:e})=>e&&e.firstpromoter_account,Gb=({member:e})=>e?e.name:"",Ra=({site:e})=>{var n;const{members_support_address:t}=e||{};if((t==null?void 0:t.indexOf("@"))<0){const r=Kc({site:e}),i=(r==null?void 0:r.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${t}@${i}`}if(((n=t==null?void 0:t.split("@"))==null?void 0:n.length)>1){const[r,i]=t.split("@"),o=(i==null?void 0:i.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${r}@${o}`}return t||""},Wb=({site:e})=>{const t=xr({site:e}),n=t==null?void 0:t[0];if(n)return n.sender_email||`noreply@${Kc({site:e})}`},Kc=({site:e})=>{try{return new URL(e.url).origin.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}catch{return e.url.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}},de=e=>Intl.NumberFormat("en",{currency:e,style:"currency"}).format(0).replace(/[\d\s.]/g,""),qc=e=>isNaN(e)?0:e/100,Vb=(e={})=>{const t=de(e.currency),n=qc(e.amount);return`${t}${n}/${e.interval}`},_r=e=>e==null?"":e.toLocaleString(),X=({type:e,status:t,autoHide:n,duration:r=2600,closeable:i,state:o,message:a,meta:s={}})=>{let l=0;return o&&o.popupNotification&&(l=(o.popupNotification.count||0)+1),{type:e,status:t,autoHide:n,closeable:i,duration:r,meta:s,message:a,count:l}};function La(e,t){return(e==null?void 0:e.toLowerCase())===(t==null?void 0:t.toLowerCase())}function rg({site:e,pageQuery:t}){var i,o;const n=/^(?:(\S+?))?\/monthly$/,r=/^(?:(\S+?))?\/yearly$/;if(n.test(t||"")){const[,a]=t.match(n),s=wr({site:e,productId:a});return(i=s==null?void 0:s.monthlyPrice)==null?void 0:i.id}else if(r.test(t||"")){const[,a]=t.match(r),s=wr({site:e,productId:a});return(o=s==null?void 0:s.yearlyPrice)==null?void 0:o.id}return null}const Kb=({offer:e,price:t,useFormatted:n=!1})=>{const r=t.amount;let i;return e.type==="fixed"&&La(e.currency,t.currency)?(i=(r-e.amount)/100,i=i>0?i:0):e.type==="percent"?i=(r-r*e.amount/100)/100:i=r/100,n?Intl.NumberFormat("en",{currency:t==null?void 0:t.currency,style:"currency"}).format(i):i},qb=({site:e,offer:t})=>(t==null?void 0:t.status)!=="active"?!1:!!wr({site:e,productId:t.tier.id});function Qb({tier:e,priceId:t}){return e!=null&&e.monthly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Monthly",currency:e.currency,amount:e.monthly_price,interval:"month"}:null}function Jb({tier:e,priceId:t}){return e!=null&&e.yearly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Yearly",currency:e.currency,amount:e.yearly_price,interval:"year"}:null}function Xb({tier:e}){var t;return(t=e==null?void 0:e.benefits)==null?void 0:t.map(n=>({name:n}))}const Zb=({tiers:e})=>{let t=0;return e.map(n=>{let r=Qb({tier:n,priceId:t});t+=1;let i=Jb({tier:n,priceId:t});t+=1;let o=Xb({tier:n});return{...n,benefits:o,monthly_price:r,yearly_price:i}})};function Da(){const e="ghost-history";try{const t=localStorage.getItem(e);if(t){const n=JSON.parse(t);if(Array.isArray(n))return n}}catch(t){console.warn("[Portal] Failed to load member URL history:",t)}}const ew=function(){return tw()||ig()},tw=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview"},ig=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview/offer"},nw={preview:ew,offerPreview:ig,dev:function({customSiteUrl:e=""}={}){return!1},test:function(){return!1}},K=(e=[],t={})=>e.some(n=>{const r=nw[n];return!!(r&&r(t))}),og={"icon-1":Sb,"icon-2":Eb,"icon-3":Cb,"icon-4":Pb,"icon-5":Nb},ag=({brandColor:e,hasText:t})=>({frame:{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",...{...t?{}:{width:"105px"},...K(["preview"])?{opacity:1}:{}}},userIcon:{width:"34px",height:"34px",color:"#fff"},buttonIcon:{width:"24px",height:"24px",color:"#fff"},closeIcon:{width:"20px",height:"20px",color:"#fff"}});class sg extends q.Component{constructor(t){super(t),this.state={},this.container=q.createRef(),this.height=null,this.width=null}updateHeight(t){this.props.updateHeight&&this.props.updateHeight(t)}updateWidth(t){this.props.updateWidth&&this.props.updateWidth(t)}componentDidMount(){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))}componentDidUpdate(){if(this.container){const t=this.container.current&&this.container.current.offsetHeight;let n=this.container.current&&this.container.current.offsetWidth;t!==this.height&&(this.height=t,this.updateHeight(this.height)),n!==this.width&&(this.width=n,this.updateWidth(this.width))}}renderTriggerIcon(){const{portal_button_icon:t="",portal_button_style:n=""}=this.context.site||{},r=ag({brandColor:this.context.brandColor}),i=this.context.member&&this.context.member.avatar_image;if(!n.includes("icon")&&!this.context.member)return null;if(i)return u(Uc,{gravatar:i});if(this.context.member)return u(zc,{style:r.userIcon});if(Object.keys(og).includes(t)){const o=og[t];return u(o,{style:r.buttonIcon})}else return t?u("img",{style:{width:"26px",height:"26px"},src:t,alt:""}):(this.hasText()&&(r.userIcon.width="26px",r.userIcon.height="26px"),u(zc,{style:r.userIcon}))}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderText(){const{portal_button_signup_text:t}=this.context.site;return this.hasText()?b("span",{className:"gh-portal-triggerbtn-label",children:[" ",t," "]}):null}onToggle(){const{showPopup:t,member:n,site:r}=this.context;if(t)this.context.onAction("closePopup");else{const i=at({site:r})?"signin":"signup",o=n?"accountHome":i;this.context.onAction("openPopup",{page:o})}}render(){const t=this.hasText(),{member:n}=this.context,r=n?"halo":"";return t?u("div",{className:"gh-portal-triggerbtn-wrapper",ref:this.container,children:b("div",{className:"gh-portal-triggerbtn-container with-label",onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:[this.renderTriggerIcon(),t?this.renderText():""]})}):u("div",{className:"gh-portal-triggerbtn-wrapper",children:u("div",{className:"gh-portal-triggerbtn-container "+r,onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:this.renderTriggerIcon()})})}}Z(sg,"contextType",R);class lg extends q.Component{constructor(t){super(t),this.state={width:null}}onWidthChange(t){this.setState({width:t})}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderFrameStyles(){const t=`
385
+ `+Kh,xt=e=>{if(!e)return"";const t=new Date(e),n={year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString("en-GB",n)};function Gc(){const[e]=window.location.hash.substr(1).split("?");e&&/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/.test(e)&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}function Ib({page:e}){const t={signin:"#/portal/signin",signup:"#/portal/signup"};return Object.keys(t).includes(e)?t[e]:t.default}function qh({page:e,siteUrl:t}){const n=t||`${window.location.protocol}//${window.location.host}${window.location.pathname}`,r=Ib({page:e});return`${n}${r}`}function gr(){return!(navigator&&navigator.cookieEnabled)}function Ab({event:e}){var i,o,a,s;const n=(((s=(a=(o=(i=e==null?void 0:e.exception)==null?void 0:i.values)==null?void 0:o[0])==null?void 0:a.stacktrace)==null?void 0:s.frames)||[]).map(l=>l.filename).filter(l=>!!l);return(n[n.length-1]||"").includes("@tryghost/portal")}function Qe({member:e={}}){if(kt({member:e})){const n=(e.subscriptions||[]).find(r=>["active","trialing","unpaid","past_due"].includes(r.status));return!(n!=null&&n.price)&&(n!=null&&n.plan)&&(n.price=n.plan),n}return null}function yr({member:e={}}){if(!e)return!1;const t=Qe({member:e});if(t){const{price:n}=t;return n&&n.amount===0}else if(!t&&e.paid)return!0;return!1}function kt({member:e={}}){return e&&e.paid}function Mb({product:e}){return e!=null&&e.monthlyPrice?e.monthlyPrice.currency:null}function zi({member:e}){var t,n,r;return((r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)==null?void 0:r.expiry_at)!==void 0}function Wc({member:e}){var t,n,r;return(r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)!=null&&r.expiry_at?xt(e.subscriptions[0].tier.expiry_at):""}function zb({site:e,member:t}){const n=Sn({member:t}),r=n==null?void 0:n.currency,i=Ea({site:e});return n!=null&&n.id?i.filter(o=>Da(Mb({product:o}),r)):i}function Fb({prices:e,currency:t}){return e.filter(n=>Da(n.currency||"",t||""))}function Qh({subscription:e}){var t,n;return e&&e.price?{...e.price,stripe_price_id:e.price.id,id:e.price.price_id,price:e.price.amount/100,name:e.price.nickname,tierId:(t=e.tier)==null?void 0:t.id,cadence:((n=e.price)==null?void 0:n.interval)==="month"?"month":"year",currency:e.price.currency.toLowerCase(),currency_symbol:fe(e.price.currency)}:null}function Sn({member:e}){const t=Qe({member:e});return Qh({subscription:t})}function Ub({priceId:e,site:t,member:n}){const r=Sn({member:n}),{tierId:i,cadence:o}=Cn({site:t,priceId:e});return(r==null?void 0:r.tierId)===i&&(r==null?void 0:r.cadence)===o}function Bb({member:e,subscriptionId:t}){return kt({member:e})?(e.subscriptions||[]).find(r=>r.id===t):null}function Jh({member:e}){var n;const t=Qe({member:e});return((n=t==null?void 0:t.tier)==null?void 0:n.name)||""}function _a({plans:e,site:t={}}){return e=e||Ra({site:t}),!e||e.length===0||e.length===1&&e[0].type==="free"}function Yb(e,t){const r=Ea({site:e}).find(i=>i.type==="paid");return t==="monthly"?{cadence:"month",tierId:r.id}:t==="yearly"?{cadence:"year",tierId:r.id}:{priceId:t}}function Hb({site:e={},priceId:t}){const n=$a({site:e});if(t==="free")return!n||n.length===0||n.find(r=>r.type==="free");if(n&&n.length>0&&t==="monthly"){const r=n.find(o=>o.name==="Monthly"),i=n.find(o=>o.interval==="month");return r||i}else if(n&&n.length>0&&t==="yearly"){const r=n.find(o=>o.name==="Yearly"),i=n.find(o=>o.interval==="year");return r||i}else if(n&&n.length>0&&t)return n.find(r=>r.id===t);return null}function at({site:e={},pageQuery:t=""}){return Ra({site:e,pageQuery:t}).length===0||e&&e.members_signup_access==="invite"}function Sa({site:e}){const{portal_products:t}=e||{};return!!t}function Xh({site:e}){return(e==null?void 0:e.comments_enabled)&&(e==null?void 0:e.comments_enabled)!=="off"}function Gb({site:e}){var t,n,r,i,o,a;try{if(!e)return null;if(e.tiers&&(e.products=e.tiers),e.products=(t=e.products)==null?void 0:t.map(s=>({...s,monthlyPrice:s.monthly_price,yearlyPrice:s.yearly_price})),e.is_stripe_configured=!!e.paid_members_enabled,e.members_signup_access="all",e.members_enabled||(e.members_signup_access="none"),e.members_invite_only&&(e.members_signup_access="invite"),e.allow_self_signup=!1,e.members_signup_access!=="all"&&(e.allow_self_signup=!1),e.paid_members_enabled&&(e.allow_self_signup=!0),(n=e.portal_plans)!=null&&n.includes("free")&&(e.allow_self_signup=!0),(i=(r=e.products)==null?void 0:r[0])!=null&&i.visibility){e.portal_products=e.products.filter(l=>l.visibility!=="none"&&l.type==="paid").map(l=>l.id);const s=e.products.find(l=>l.type==="free");s&&(e.portal_plans=(o=e.portal_plans)==null?void 0:o.filter(l=>l!=="free"),(s==null?void 0:s.visibility)==="public"&&((a=e.portal_plans)==null||a.push("free")))}return e}catch(s){console.warn("[Portal] Failed to read site data:",s)}}function Ea({site:e}){const{portal_products:t,products:n=[],portal_plans:r=[]}=e||{};return!r.includes("monthly")&&!r.includes("yearly")?[]:n.filter(i=>!!i).filter(i=>e.is_stripe_configured?!0:i.type!=="paid").filter(i=>!!(i.monthlyPrice&&i.yearlyPrice)).filter(i=>Object.keys(i.monthlyPrice).length>0&&Object.keys(i.yearlyPrice).length>0).filter(i=>t&&n.length>1?t.includes(i.id):!0).sort((i,o)=>{var a,s;return((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)-((s=o==null?void 0:o.monthlyPrice)==null?void 0:s.amount)}).map(i=>(i.monthlyPrice={...i.monthlyPrice,currency_symbol:fe(i.monthlyPrice.currency)},i.yearlyPrice={...i.yearlyPrice,currency_symbol:fe(i.yearlyPrice.currency)},i))}function vr({site:e}){const{products:t=[]}=e||{};return t.find(n=>n.type==="free")}function Vc({site:e}){const{products:t=[],portal_plans:n=[]}=e||{};return!n.includes("monthly")&&!n.includes("yearly")?[]:t.filter(r=>!!r).filter(r=>!!(r.monthlyPrice&&r.yearlyPrice)).filter(r=>Object.keys(r.monthlyPrice).length>0&&Object.keys(r.yearlyPrice).length>0).sort((r,i)=>{var o,a;return((o=r==null?void 0:r.monthlyPrice)==null?void 0:o.amount)-((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)}).map(r=>(r.monthlyPrice={...r.monthlyPrice,currency_symbol:fe(r.monthlyPrice.currency)},r.yearlyPrice={...r.yearlyPrice,currency_symbol:fe(r.yearlyPrice.currency)},r))}function Ca({site:e,pageQuery:t}){const n=Ea({site:e});return t==="free"&&En({site:e})?[]:(En({site:e})&&n.unshift({id:"free"}),n)}function Pa({site:e}){return Ca({site:e}).some(n=>!!(n!=null&&n.trial_days))}function Zh({site:e}){const t=vr({site:e});return(t==null?void 0:t.benefits)||[]}function em({site:e}){return Ta({site:e})?"Free membership":"Free"}function tm({site:e}){const t=vr({site:e});return t==null?void 0:t.description}function Wb({site:e}){var n;const t=vr({site:e});return!!(t!=null&&t.description||(n=t==null?void 0:t.benefits)!=null&&n.length)}function br({site:e,productId:t}){return Vc({site:e}).find(r=>r.id===t)}function Vb({site:e=null,products:t=null}){return!e&&!t?[]:(t||Ea({site:e})).reduce((i,o)=>(o.monthlyPrice&&o.yearlyPrice&&(i.push(o.monthlyPrice),i.push(o.yearlyPrice)),i),[])}function En({site:e}){const{allow_self_signup:t,portal_plans:n}=e||{};return t&&n.includes("free")}function wr({site:e}){const{newsletters:t=[]}=e||{};return t==null||t.sort((n,r)=>n.sort_order-r.sort_order),t}function Na({site:e}){const{newsletters:t}=e||{};return(t==null?void 0:t.length)>1}function nm({member:e}){var t;return(t=e==null?void 0:e.email_suppression)==null?void 0:t.suppressed}function Ta({site:e}){return Ca({site:e}).length===1&&En({site:e})}function Kc({sub:e}={}){return!!(e!=null&&e.trial_end_at&&!rm(new Date(e==null?void 0:e.trial_end_at)))}function rm(e){const t=new Date;return t.setHours(0,0,0,0),e<t}function im({site:e,priceId:t}){return t==="free"?vr({site:e}):Vc({site:e}).find(r=>{var i,o;return((i=r==null?void 0:r.monthlyPrice)==null?void 0:i.id)===t||((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t})}function Cn({site:e,priceId:t}){var o;if(t==="free")return vr({site:e});const r=Vc({site:e}).find(a=>{var s,l;return((s=a==null?void 0:a.monthlyPrice)==null?void 0:s.id)===t||((l=a==null?void 0:a.yearlyPrice)==null?void 0:l.id)===t});let i="month";return((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t&&(i="year"),{tierId:r==null?void 0:r.id,cadence:i}}function $a({site:e,products:t=null}){const{portal_plans:n=[],is_stripe_configured:r}=e||{};return r?Vb({site:e,products:t}).filter(o=>!!(o&&o.id)).map(o=>({...o,price_id:o.id,price:o.amount/100,name:o.nickname,currency_symbol:fe(o.currency)})).filter(o=>o.amount!==0&&o.type==="recurring").filter(o=>o.interval==="month"?n.includes("monthly"):o.interval==="year"?n.includes("yearly"):!1).sort((o,a)=>o.amount-a.amount).sort((o,a)=>!o.currency||!a.currency?0:o.currency.localeCompare(a.currency,void 0,{ignorePunctuation:!0})):[]}function Kb({site:e}){const t=$a({site:e});let n={currency:"usd",currency_symbol:"$"};return(t==null?void 0:t.length)>0&&(n.currency=t[0].currency,n.currency_symbol=t[0].currency_symbol),n}function Ra({site:e={},pageQuery:t=""}={}){const{allow_self_signup:n,portal_plans:r}=e||{},i=[];if(n&&r.includes("free")){const a=Kb({site:e});i.push({id:"free",type:"free",price:0,amount:0,name:em({site:e}),...a})}return t==="free"&&En({site:e})||$a({site:e}).forEach(s=>{i.push(s)}),i}const qb=({member:e})=>e?e.email:"",qc=({member:e})=>e?e.email_suppression:"",Qb=({site:e})=>e&&e.firstpromoter_account,Jb=({member:e})=>e?e.name:"",Oa=({site:e})=>{var n;const{members_support_address:t}=e||{};if((t==null?void 0:t.indexOf("@"))<0){const r=Qc({site:e}),i=(r==null?void 0:r.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${t}@${i}`}if(((n=t==null?void 0:t.split("@"))==null?void 0:n.length)>1){const[r,i]=t.split("@"),o=(i==null?void 0:i.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${r}@${o}`}return t||""},Xb=({site:e})=>{const t=wr({site:e}),n=t==null?void 0:t[0];if(n)return n.sender_email||`noreply@${Qc({site:e})}`},Qc=({site:e})=>{try{return new URL(e.url).origin.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}catch{return e.url.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}},fe=e=>Intl.NumberFormat("en",{currency:e,style:"currency"}).format(0).replace(/[\d\s.]/g,""),Jc=e=>isNaN(e)?0:e/100,Zb=(e={})=>{const t=fe(e.currency),n=Jc(e.amount);return`${t}${n}/${e.interval}`},xr=e=>e==null?"":e.toLocaleString(),X=({type:e,status:t,autoHide:n,duration:r=2600,closeable:i,state:o,message:a,meta:s={}})=>{let l=0;return o&&o.popupNotification&&(l=(o.popupNotification.count||0)+1),{type:e,status:t,autoHide:n,closeable:i,duration:r,meta:s,message:a,count:l}};function Da(e,t){return(e==null?void 0:e.toLowerCase())===(t==null?void 0:t.toLowerCase())}function om({site:e,pageQuery:t}){var i,o;const n=/^(?:(\S+?))?\/monthly$/,r=/^(?:(\S+?))?\/yearly$/;if(n.test(t||"")){const[,a]=t.match(n),s=br({site:e,productId:a});return(i=s==null?void 0:s.monthlyPrice)==null?void 0:i.id}else if(r.test(t||"")){const[,a]=t.match(r),s=br({site:e,productId:a});return(o=s==null?void 0:s.yearlyPrice)==null?void 0:o.id}return null}const ew=({offer:e,price:t,useFormatted:n=!1})=>{const r=t.amount;let i;return e.type==="fixed"&&Da(e.currency,t.currency)?(i=(r-e.amount)/100,i=i>0?i:0):e.type==="percent"?i=(r-r*e.amount/100)/100:i=r/100,n?Intl.NumberFormat("en",{currency:t==null?void 0:t.currency,style:"currency"}).format(i):i},tw=({site:e,offer:t})=>(t==null?void 0:t.status)!=="active"?!1:!!br({site:e,productId:t.tier.id});function nw({tier:e,priceId:t}){return e!=null&&e.monthly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Monthly",currency:e.currency,amount:e.monthly_price,interval:"month"}:null}function rw({tier:e,priceId:t}){return e!=null&&e.yearly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Yearly",currency:e.currency,amount:e.yearly_price,interval:"year"}:null}function iw({tier:e}){var t;return(t=e==null?void 0:e.benefits)==null?void 0:t.map(n=>({name:n}))}const ow=({tiers:e})=>{let t=0;return e.map(n=>{let r=nw({tier:n,priceId:t});t+=1;let i=rw({tier:n,priceId:t});t+=1;let o=iw({tier:n});return{...n,benefits:o,monthly_price:r,yearly_price:i}})};function La(){const e="ghost-history";try{const t=localStorage.getItem(e);if(t){const n=JSON.parse(t);if(Array.isArray(n))return n}}catch(t){console.warn("[Portal] Failed to load member URL history:",t)}}function aw({member:e}){if(!(e!=null&&e.created_at))return!1;const t=new Date,n=new Date(e.created_at),r=t.getTime()-n.getTime();return Math.round(r/(1e3*60*60))<24}const sw=function(){return lw()||am()},lw=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview"},am=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview/offer"},cw={preview:sw,offerPreview:am,dev:function({customSiteUrl:e=""}={}){return!1},test:function(){return!1}},K=(e=[],t={})=>e.some(n=>{const r=cw[n];return!!(r&&r(t))}),sm={"icon-1":$b,"icon-2":Rb,"icon-3":Ob,"icon-4":Db,"icon-5":Lb},lm=({brandColor:e,hasText:t})=>({frame:{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",...{...t?{}:{width:"105px"},...K(["preview"])?{opacity:1}:{}}},userIcon:{width:"34px",height:"34px",color:"#fff"},buttonIcon:{width:"24px",height:"24px",color:"#fff"},closeIcon:{width:"20px",height:"20px",color:"#fff"}});class cm extends q.Component{constructor(t){super(t),this.state={},this.container=q.createRef(),this.height=null,this.width=null}updateHeight(t){this.props.updateHeight&&this.props.updateHeight(t)}updateWidth(t){this.props.updateWidth&&this.props.updateWidth(t)}componentDidMount(){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))}componentDidUpdate(){if(this.container){const t=this.container.current&&this.container.current.offsetHeight;let n=this.container.current&&this.container.current.offsetWidth;t!==this.height&&(this.height=t,this.updateHeight(this.height)),n!==this.width&&(this.width=n,this.updateWidth(this.width))}}renderTriggerIcon(){const{portal_button_icon:t="",portal_button_style:n=""}=this.context.site||{},r=lm({brandColor:this.context.brandColor}),i=this.context.member&&this.context.member.avatar_image;if(!n.includes("icon")&&!this.context.member)return null;if(i)return u(Yc,{gravatar:i});if(this.context.member)return u(Bc,{style:r.userIcon});if(Object.keys(sm).includes(t)){const o=sm[t];return u(o,{style:r.buttonIcon})}else return t?u("img",{style:{width:"26px",height:"26px"},src:t,alt:""}):(this.hasText()&&(r.userIcon.width="26px",r.userIcon.height="26px"),u(Bc,{style:r.userIcon}))}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderText(){const{portal_button_signup_text:t}=this.context.site;return this.hasText()?b("span",{className:"gh-portal-triggerbtn-label",children:[" ",t," "]}):null}onToggle(){const{showPopup:t,member:n,site:r}=this.context;if(t)this.context.onAction("closePopup");else{const i=at({site:r})?"signin":"signup",o=n?"accountHome":i;this.context.onAction("openPopup",{page:o})}}render(){const t=this.hasText(),{member:n}=this.context,r=n?"halo":"";return t?u("div",{className:"gh-portal-triggerbtn-wrapper",ref:this.container,children:b("div",{className:"gh-portal-triggerbtn-container with-label",onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:[this.renderTriggerIcon(),t?this.renderText():""]})}):u("div",{className:"gh-portal-triggerbtn-wrapper",children:u("div",{className:"gh-portal-triggerbtn-container "+r,onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:this.renderTriggerIcon()})})}}Z(cm,"contextType",R);class um extends q.Component{constructor(t){super(t),this.state={width:null}}onWidthChange(t){this.setState({width:t})}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderFrameStyles(){const t=`
385
386
  :root {
386
387
  --brandcolor: ${this.context.brandColor}
387
388
  }
388
- `+Tb;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const{portal_button:t}=this.context.site,{showPopup:n}=this.context;if(!t||K(["offerPreview"]))return null;const r=this.hasText(),o={...ag({brandColor:this.context.brandColor,hasText:r}).frame};if(this.state.width){const a=this.state.width+2;o.width=`${a}px`}return u(Fc,{dataTestId:"portal-trigger-frame",className:"gh-portal-triggerbtn-iframe",style:o,title:"portal-trigger",head:this.renderFrameStyles(),children:u(sg,{isPopupOpen:n,updateWidth:a=>this.onWidthChange(a)})})}}Z(lg,"contextType",R);const rw=Bc+`
389
+ `+jb;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const{portal_button:t}=this.context.site,{showPopup:n}=this.context;if(!t||K(["offerPreview"]))return null;const r=this.hasText(),o={...lm({brandColor:this.context.brandColor,hasText:r}).frame};if(this.state.width){const a=this.state.width+2;o.width=`${a}px`}return u(Uc,{dataTestId:"portal-trigger-frame",className:"gh-portal-triggerbtn-iframe",style:o,title:"portal-trigger",head:this.renderFrameStyles(),children:u(cm,{isPopupOpen:n,updateWidth:a=>this.onWidthChange(a)})})}}Z(um,"contextType",R);const uw=Hc+`
389
390
  .gh-portal-notification-wrapper {
390
391
  position: relative;
391
392
  overflow: hidden;
@@ -516,11 +517,11 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
516
517
  animation-name: notification-slideout-mobile;
517
518
  }
518
519
  }
519
- `,Qc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),cg=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".checkmark-icon-fill{fill:currentColor;}")),x.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"})),Jc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".warning-icon-fill{fill:currentColor;}")),x.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"})),iw=({qsParams:e,action:t,status:n})=>{if(n&&["true","false"].includes(n)){const r=JSON.parse(n);return{type:t,status:r?"success":"error",duration:3e3,autoHide:!!r}}return{}},ow=({status:e,billingOnly:t})=>{if(!t&&["success"].includes(e))return{type:"stripe:checkout",status:["success"].includes(e)?"success":"warning",duration:3e3,autoHide:!0};if(t&&["billing-update-success","billing-update-cancel"].includes(e))return{type:"stripe:billing-update",status:e==="billing-update-success"?"success":"warning",duration:3e3,autoHide:!0,closeable:!0}},ug=(e=[])=>{const t=window.location.search||"",n=new URLSearchParams(t);e.forEach(i=>{n.delete(i)});const r=n.toString()?`?${n}`:"";window.history.replaceState({},"",`${window.location.pathname}${r}`)};function pg({billingOnly:e=!1}={}){const t=window.location.search;if(!t)return null;const n=new URLSearchParams(t),r=n.get("action"),i=n.get("success"),o=n.get("stripe");let a=null;return o?ow({qsParams:n,status:o,billingOnly:e}):r&&i&&!e?iw({qsParams:n,action:r,status:i}):a}const aw=()=>({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"}}),sw=({type:e,status:t,context:n})=>{const r=Vh({page:"signin",siteUrl:n.site.url}),i=Vh({page:"signup",siteUrl:n.site.url});if(e==="signin"&&t==="success"&&n.member){const o=n.member.firstname||"";return b("p",{children:["Welcome back",o?", "+o:"","!",u("br",{}),"You've successfully signed in."]})}else{if(e==="signin"&&t==="error")return b("p",{children:["Could not sign in. Login link expired. ",u("a",{href:r,target:"_parent",children:"Click here to retry"})]});if(e==="signup"&&t==="success")return b("p",{children:["You've successfully subscribed to ",u("br",{}),u("strong",{children:n.site.title})]});if(e==="signup-paid"&&t==="success")return b("p",{children:["You've successfully subscribed to ",u("br",{}),u("strong",{children:n.site.title})]});if(e==="updateEmail"&&t==="success")return u("p",{children:"Success! Your email is updated."});if(e==="updateEmail"&&t==="error")return u("p",{children:"Could not update email! Invalid link."});if(e==="signup"&&t==="error")return b("p",{children:["Signup error: Invalid link ",u("br",{}),u("a",{href:i,target:"_parent",children:"Click here to retry"})]});if(e==="signup-paid"&&t==="error")return b("p",{children:["Signup error: Invalid link ",u("br",{}),u("a",{href:i,target:"_parent",children:"Click here to retry"})]});if(e==="stripe:checkout"&&t==="success")return n.member?u("p",{children:"Success! Your account is fully activated, you now have access to all content."}):u("p",{children:"Success! Check your email for magic link to sign-in."});if(e==="stripe:checkout"&&t==="warning")return n.member?u("p",{children:"Plan upgrade was cancelled."}):u("p",{children:"Plan checkout was cancelled."})}return u("p",{children:t==="success"?"Success":"Error"})};class dg extends q.Component{constructor(){super(),this.state={className:""}}componentWillUnmount(){clearTimeout(this.timeoutId)}onNotificationClose(){this.props.onHideNotification()}componentDidUpdate(){const{showPopup:t}=this.context;!this.state.className&&t&&this.setState({className:"slideout"})}componentDidMount(){const{autoHide:t,duration:n=2400}=this.props,{showPopup:r}=this.context;r?this.setState({className:"slideout"}):t&&(this.timeoutId=setTimeout(()=>{this.setState({className:"slideout"})},n))}onAnimationEnd(t){(t.animationName==="notification-slideout"||t.animationName==="notification-slideout-mobile")&&this.props.onHideNotification(t)}render(){const{type:t,status:n}=this.props,{className:r=""}=this.state,i=n?` ${n}`:" neutral",o=r?` ${r}`:"";return u("div",{className:"gh-portal-notification-wrapper",children:b("div",{className:`gh-portal-notification${i}${o}`,onAnimationEnd:a=>this.onAnimationEnd(a),children:[n==="error"?u(Jc,{className:"gh-portal-notification-icon error",alt:""}):u(cg,{className:"gh-portal-notification-icon success",alt:""}),u(sw,{type:t,status:n,context:this.context}),u(Qc,{className:"gh-portal-notification-closeicon",alt:"Close",onClick:a=>this.onNotificationClose(a)})]})})}}Z(dg,"contextType",R);class fg extends q.Component{constructor(){super();const{type:t,status:n,autoHide:r,duration:i}=pg()||{};this.state={active:!0,type:t,status:n,autoHide:r,duration:i,className:""}}onHideNotification(){const t=this.state.type,n=[];["signin","signup"].includes(t)?n.push("action","success"):["stripe:checkout"].includes(t)&&n.push("stripe"),ug(n),this.context.onAction("refreshMemberData"),this.setState({active:!1})}renderFrameStyles(){const t=`
520
+ `,Xc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),dm=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".checkmark-icon-fill{fill:currentColor;}")),x.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"})),Zc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".warning-icon-fill{fill:currentColor;}")),x.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"})),dw=({qsParams:e,action:t,status:n})=>{if(n&&["true","false"].includes(n)){const r=JSON.parse(n);return{type:t,status:r?"success":"error",duration:3e3,autoHide:!!r}}return{}},pw=({status:e,billingOnly:t})=>{if(!t&&["success"].includes(e))return{type:"stripe:checkout",status:["success"].includes(e)?"success":"warning",duration:3e3,autoHide:!0};if(t&&["billing-update-success","billing-update-cancel"].includes(e))return{type:"stripe:billing-update",status:e==="billing-update-success"?"success":"warning",duration:3e3,autoHide:!0,closeable:!0}},pm=(e=[])=>{const t=window.location.search||"",n=new URLSearchParams(t);e.forEach(i=>{n.delete(i)});const r=n.toString()?`?${n}`:"";window.history.replaceState({},"",`${window.location.pathname}${r}`)};function fm({billingOnly:e=!1}={}){const t=window.location.search;if(!t)return null;const n=new URLSearchParams(t),r=n.get("action"),i=n.get("success"),o=n.get("stripe");let a=null;return o?pw({qsParams:n,status:o,billingOnly:e}):r&&i&&!e?dw({qsParams:n,action:r,status:i}):a}const fw=()=>({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"}}),hw=({type:e,status:t,context:n})=>{const r=qh({page:"signin",siteUrl:n.site.url}),i=qh({page:"signup",siteUrl:n.site.url});if(e==="signin"&&t==="success"&&n.member){const o=n.member.firstname||"";return b("p",{children:["Welcome back",o?", "+o:"","!",u("br",{}),"You've successfully signed in."]})}else{if(e==="signin"&&t==="error")return b("p",{children:["Could not sign in. Login link expired. ",u("a",{href:r,target:"_parent",children:"Click here to retry"})]});if(e==="signup"&&t==="success")return b("p",{children:["You've successfully subscribed to ",u("br",{}),u("strong",{children:n.site.title})]});if(e==="signup-paid"&&t==="success")return b("p",{children:["You've successfully subscribed to ",u("br",{}),u("strong",{children:n.site.title})]});if(e==="updateEmail"&&t==="success")return u("p",{children:"Success! Your email is updated."});if(e==="updateEmail"&&t==="error")return u("p",{children:"Could not update email! Invalid link."});if(e==="signup"&&t==="error")return b("p",{children:["Signup error: Invalid link ",u("br",{}),u("a",{href:i,target:"_parent",children:"Click here to retry"})]});if(e==="signup-paid"&&t==="error")return b("p",{children:["Signup error: Invalid link ",u("br",{}),u("a",{href:i,target:"_parent",children:"Click here to retry"})]});if(e==="stripe:checkout"&&t==="success")return n.member?u("p",{children:"Success! Your account is fully activated, you now have access to all content."}):u("p",{children:"Success! Check your email for magic link to sign-in."});if(e==="stripe:checkout"&&t==="warning")return n.member?u("p",{children:"Plan upgrade was cancelled."}):u("p",{children:"Plan checkout was cancelled."})}return u("p",{children:t==="success"?"Success":"Error"})};class hm extends q.Component{constructor(){super(),this.state={className:""}}componentWillUnmount(){clearTimeout(this.timeoutId)}onNotificationClose(){this.props.onHideNotification()}componentDidUpdate(){const{showPopup:t}=this.context;!this.state.className&&t&&this.setState({className:"slideout"})}componentDidMount(){const{autoHide:t,duration:n=2400}=this.props,{showPopup:r}=this.context;r?this.setState({className:"slideout"}):t&&(this.timeoutId=setTimeout(()=>{this.setState({className:"slideout"})},n))}onAnimationEnd(t){(t.animationName==="notification-slideout"||t.animationName==="notification-slideout-mobile")&&this.props.onHideNotification(t)}render(){const{type:t,status:n}=this.props,{className:r=""}=this.state,i=n?` ${n}`:" neutral",o=r?` ${r}`:"";return u("div",{className:"gh-portal-notification-wrapper",children:b("div",{className:`gh-portal-notification${i}${o}`,onAnimationEnd:a=>this.onAnimationEnd(a),children:[n==="error"?u(Zc,{className:"gh-portal-notification-icon error",alt:""}):u(dm,{className:"gh-portal-notification-icon success",alt:""}),u(hw,{type:t,status:n,context:this.context}),u(Xc,{className:"gh-portal-notification-closeicon",alt:"Close",onClick:a=>this.onNotificationClose(a)})]})})}}Z(hm,"contextType",R);class mm extends q.Component{constructor(){super();const{type:t,status:n,autoHide:r,duration:i}=fm()||{};this.state={active:!0,type:t,status:n,autoHide:r,duration:i,className:""}}onHideNotification(){const t=this.state.type,n=[];["signin","signup"].includes(t)?n.push("action","success"):["stripe:checkout"].includes(t)&&n.push("stripe"),pm(n),this.context.onAction("refreshMemberData"),this.setState({active:!1})}renderFrameStyles(){const t=`
520
521
  :root {
521
522
  --brandcolor: ${this.context.brandColor}
522
523
  }
523
- `+rw;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const n={...aw({brandColor:this.context.brandColor}).frame};if(!this.state.active)return null;const{type:r,status:i,autoHide:o,duration:a}=this.state;return r&&i?u(Fc,{style:n,title:"portal-notification",head:this.renderFrameStyles(),className:"gh-portal-notification-iframe",children:u(dg,{type:r,status:i,autoHide:o,duration:a,onHideNotification:s=>this.onHideNotification(s)})}):null}}Z(fg,"contextType",R);const Fi=e=>x.createElement("svg",{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",...e},x.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"}),x.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"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 20 20",to:"360 20 20",dur:"0.5s",repeatCount:"indefinite"}))),lw=`
524
+ `+uw;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const n={...fw({brandColor:this.context.brandColor}).frame};if(!this.state.active)return null;const{type:r,status:i,autoHide:o,duration:a}=this.state;return r&&i?u(Uc,{style:n,title:"portal-notification",head:this.renderFrameStyles(),className:"gh-portal-notification-iframe",children:u(hm,{type:r,status:i,autoHide:o,duration:a,onHideNotification:s=>this.onHideNotification(s)})}):null}}Z(mm,"contextType",R);const Fi=e=>x.createElement("svg",{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",...e},x.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"}),x.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"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 20 20",to:"360 20 20",dur:"0.5s",repeatCount:"indefinite"}))),mw=`
524
525
  .gh-portal-btn-main {
525
526
  box-shadow: none;
526
527
  position: relative;
@@ -572,7 +573,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
572
573
  .gh-portal-loadingicon.dark rect {
573
574
  fill: var(--grey0);
574
575
  }
575
- `,cw=({brandColor:e,retry:t,disabled:n,style:r={},isPrimary:i})=>{let o=e||"#3eb0ef",a="1.0",s="auto";return n&&(a="0.5",s="none"),{button:{...i?{color:"#fff"}:{},...i?{backgroundColor:o}:{},opacity:a,pointerEvents:s,...r||{}}}};function fe({label:e,onClick:t,disabled:n=!1,retry:r=!1,brandColor:i,isRunning:o,isPrimary:a=!0,isDestructive:s=!1,classes:l="",style:c={},tabindex:d=void 0,dataTestId:p}){let f=cw({disabled:n,retry:r,brandColor:i,style:c,isPrimary:a}),y="gh-portal-btn";a&&(y+=" gh-portal-btn-main gh-portal-btn-primary"),s&&(y+=" gh-portal-btn-destructive"),l&&(y+=" "+l),yr()&&(n=!0);const v=a?"gh-portal-loadingicon":"gh-portal-loadingicon dark";return u("button",{className:y,style:f.button,onClick:k=>t(k),disabled:n,type:"submit",tabIndex:d,"data-test-button":p,children:o?u(Fi,{className:v}):e})}const uw=e=>x.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;fill-rule:evenodd;}")),x.createElement("path",{className:"cls-1",d:"M16.25,23.25,5.53,12.53a.749.749,0,0,1,0-1.06L16.25.75"})),pw=`
576
+ `,gw=({brandColor:e,retry:t,disabled:n,style:r={},isPrimary:i})=>{let o=e||"#3eb0ef",a="1.0",s="auto";return n&&(a="0.5",s="none"),{button:{...i?{color:"#fff"}:{},...i?{backgroundColor:o}:{},opacity:a,pointerEvents:s,...r||{}}}};function he({label:e,onClick:t,disabled:n=!1,retry:r=!1,brandColor:i,isRunning:o,isPrimary:a=!0,isDestructive:s=!1,classes:l="",style:c={},tabindex:p=void 0,dataTestId:d}){let f=gw({disabled:n,retry:r,brandColor:i,style:c,isPrimary:a}),y="gh-portal-btn";a&&(y+=" gh-portal-btn-main gh-portal-btn-primary"),s&&(y+=" gh-portal-btn-destructive"),l&&(y+=" "+l),gr()&&(n=!0);const v=a?"gh-portal-loadingicon":"gh-portal-loadingicon dark";return u("button",{className:y,style:f.button,onClick:_=>t(_),disabled:n,type:"submit",tabIndex:p,"data-test-button":d,children:o?u(Fi,{className:v}):e})}const yw=e=>x.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;fill-rule:evenodd;}")),x.createElement("path",{className:"cls-1",d:"M16.25,23.25,5.53,12.53a.749.749,0,0,1,0-1.06L16.25.75"})),vw=`
576
577
  .gh-portal-btn-back,
577
578
  .gh-portal-btn-back:hover {
578
579
  box-shadow: none;
@@ -609,7 +610,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
609
610
  margin-top: 1px;
610
611
  margin-right: 2px;
611
612
  }
612
- `;function kr({label:e="Back",brandColor:t="#3eb0ef",hidden:n=!1,onClick:r}){return n?null:b("button",{className:"gh-portal-btn gh-portal-btn-back",onClick:i=>r(i),children:[u(uw,{})," ",e]})}const dw=`
613
+ `;function kr({label:e="Back",brandColor:t="#3eb0ef",hidden:n=!1,onClick:r}){return n?null:b("button",{className:"gh-portal-btn gh-portal-btn-back",onClick:i=>r(i),children:[u(yw,{})," ",e]})}const bw=`
613
614
  .gh-portal-for-switch label,
614
615
  .gh-portal-for-switch .container {
615
616
  position: relative;
@@ -678,8 +679,8 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
678
679
  width: 38px !important;
679
680
  height: 22px !important;
680
681
  }
681
- `;function Ia({id:e,label:t="",onToggle:n,checked:r=!1,dataTestId:i="switch-input"}){const{action:o}=x.useContext(R),[a,s]=x.useState(r),l=["updateNewsletter:failed","updateNewsletter:success"].includes(o);return x.useEffect(()=>{s(r)},[r,l]),u("div",{className:"gh-portal-for-switch","data-test-switch":i,children:b("label",{className:"switch",htmlFor:e,children:[u("input",{type:"checkbox",checked:a,id:e,onChange:()=>{},"aria-label":t}),u("span",{className:"input-toggle-component",onClick:c=>{s(!a),n(c,!a)},"data-testid":i})]})})}const fw=`.gh-portal-account-header{display:flex;flex-direction:column;align-items:center;margin:0 0 32px}.gh-portal-account-header .gh-portal-avatar{margin:6px 0 8px!important}.gh-portal-account-data{margin-bottom:40px}footer.gh-portal-account-footer{display:flex}.gh-portal-account-footer.paid{margin-top:12px}.gh-portal-account-footermenu{display:flex;align-items:center;list-style:none;padding:0;margin:0}.gh-portal-account-footerright{display:flex;flex-grow:1;align-items:center;justify-content:flex-end}.gh-portal-account-footermenu li{margin-right:16px}.gh-portal-account-footermenu li:last-of-type{margin-right:0}.gh-portal-freeaccount-newsletter{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.gh-portal-freeaccount-newsletter .label{display:flex;flex-direction:column;flex-grow:1}.gh-portal-free-ctatext{margin-top:-12px}.gh-portal-cancelcontinue-container{margin:24px 0 32px}.gh-portal-list-detail .gh-portal-email-notice{display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--red);font-weight:500;font-size:1.25rem;letter-spacing:.2px}.gh-portal-email-notice-icon{width:20px;height:20px}.gh-portal-billing-button-loader{width:32px;height:32px;margin-right:-3px;opacity:.6}.gh-portal-product-icon{width:52px;margin-right:12px;border-radius:2px}.gh-portal-account-discountcontainer{position:relative;display:flex;align-items:center}.gh-portal-account-old-price{text-decoration:line-through;color:var(--grey9)!important}.gh-portal-account-tagicon{width:16px;height:16px;color:var(--brandcolor);margin-right:5px;z-index:999}@media (max-width: 390px){.gh-portal-account-footer{padding:0!important}}@media (max-width: 340px){.gh-portal-account-footer{padding:0!important;flex-wrap:wrap;gap:12px}.gh-portal-account-footer .gh-portal-account-footerright{justify-content:flex-start}}
682
- `;let we=(_u=class extends q.Component{constructor(){super(...arguments);Z(this,"closePopup",()=>{this.context.onAction("closePopup")})}render(){const{onClick:n}=this.props;return u("div",{className:"gh-portal-closeicon-container","data-test-button":"close-popup",children:u(Qc,{className:"gh-portal-closeicon",alt:"Close",onClick:n||this.closePopup})})}},Z(_u,"contextType",R),_u);const hg=e=>x.createElement("svg",{width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M1 6.89286L6.10714 12L13.9643 1",stroke:"#222222",strokeWidth:2}));function hw(e,t){if(isNaN(e)||isNaN(t))return 0;const n=e?100-Math.floor(t/12*100/e):0;return n>=1&&n<100?n:0}const gw=({site:e})=>`
682
+ `;function ja({id:e,label:t="",onToggle:n,checked:r=!1,dataTestId:i="switch-input"}){const{action:o}=x.useContext(R),[a,s]=x.useState(r),l=["updateNewsletter:failed","updateNewsletter:success"].includes(o);return x.useEffect(()=>{s(r)},[r,l]),u("div",{className:"gh-portal-for-switch","data-test-switch":i,children:b("label",{className:"switch",htmlFor:e,children:[u("input",{type:"checkbox",checked:a,id:e,onChange:()=>{},"aria-label":t}),u("span",{className:"input-toggle-component",onClick:c=>{s(!a),n(c,!a)},"data-testid":i})]})})}const ww=`.gh-portal-account-header{display:flex;flex-direction:column;align-items:center;margin:0 0 32px}.gh-portal-account-header .gh-portal-avatar{margin:6px 0 8px!important}.gh-portal-account-data{margin-bottom:40px}footer.gh-portal-account-footer{display:flex}.gh-portal-account-footer.paid{margin-top:12px}.gh-portal-account-footermenu{display:flex;align-items:center;list-style:none;padding:0;margin:0}.gh-portal-account-footerright{display:flex;flex-grow:1;align-items:center;justify-content:flex-end}.gh-portal-account-footermenu li{margin-right:16px}.gh-portal-account-footermenu li:last-of-type{margin-right:0}.gh-portal-freeaccount-newsletter{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.gh-portal-freeaccount-newsletter .label{display:flex;flex-direction:column;flex-grow:1}.gh-portal-free-ctatext{margin-top:-12px}.gh-portal-cancelcontinue-container{margin:24px 0 32px}.gh-portal-list-detail .gh-portal-email-notice{display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--red);font-weight:500;font-size:1.25rem;letter-spacing:.2px}.gh-portal-email-notice-icon{width:20px;height:20px}.gh-portal-billing-button-loader{width:32px;height:32px;margin-right:-3px;opacity:.6}.gh-portal-product-icon{width:52px;margin-right:12px;border-radius:2px}.gh-portal-account-discountcontainer{position:relative;display:flex;align-items:center}.gh-portal-account-old-price{text-decoration:line-through;color:var(--grey9)!important}.gh-portal-account-tagicon{width:16px;height:16px;color:var(--brandcolor);margin-right:5px;z-index:999}@media (max-width: 390px){.gh-portal-account-footer{padding:0!important}}@media (max-width: 340px){.gh-portal-account-footer{padding:0!important;flex-wrap:wrap;gap:12px}.gh-portal-account-footer .gh-portal-account-footerright{justify-content:flex-start}}
683
+ `;let we=(Su=class extends q.Component{constructor(){super(...arguments);Z(this,"closePopup",()=>{this.context.onAction("closePopup")})}render(){const{onClick:n}=this.props;return u("div",{className:"gh-portal-closeicon-container","data-test-button":"close-popup",children:u(Xc,{className:"gh-portal-closeicon",alt:"Close",onClick:n||this.closePopup})})}},Z(Su,"contextType",R),Su);const gm=e=>x.createElement("svg",{width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M1 6.89286L6.10714 12L13.9643 1",stroke:"#222222",strokeWidth:2}));function xw(e,t){if(isNaN(e)||isNaN(t))return 0;const n=e?100-Math.floor(t/12*100/e):0;return n>=1&&n<100?n:0}const kw=({site:e})=>`
683
684
  .gh-portal-products {
684
685
  display: flex;
685
686
  flex-direction: column;
@@ -1164,7 +1165,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
1164
1165
  min-height: unset;
1165
1166
  }
1166
1167
  }
1167
- `,Sr=q.createContext({selectedInterval:"month",selectedProduct:"free",selectedPlan:null,setSelectedProduct:null});function mw({product:e}){return!e.benefits||!e.benefits.length?null:e.benefits.map((t,n)=>{const r=(t==null?void 0:t.id)||`benefit-${n}`;return b("div",{className:"gh-portal-product-benefit",children:[u(hg,{className:"gh-portal-benefit-checkmark",alt:""}),u("div",{className:"gh-portal-benefit-title",children:t.name})]},r)})}function Xc({product:e,hide:t=!1}){return!e.benefits||!e.benefits.length||t?null:u("div",{className:"gh-portal-product-benefits",children:u(mw,{product:e})})}function gg({price:e}){const{site:t}=x.useContext(R),{portal_plans:n}=t;return!n.includes("monthly")||!n.includes("yearly")?u("div",{className:"gh-portal-product-alternative-price"}):u("div",{className:"gh-portal-product-alternative-price",children:Vb(e)})}function yw({trialDays:e,discount:t,selectedInterval:n}){const{site:r,t:i}=x.useContext(R);return Pa({site:r})?e?u("span",{className:"gh-portal-discount-label",children:i("{{trialDays}} days free",{trialDays:e})}):null:n==="year"?u("span",{className:"gh-portal-discount-label",children:i("{{discount}}% discount",{discount:t})}):null}function mg({product:e}){const{selectedInterval:t}=x.useContext(Sr),{site:n}=x.useContext(R),r=e.monthlyPrice,i=e.yearlyPrice,o=e.trial_days,a=t==="month"?r:i,s=t==="month"?i:r;if(!r||!i)return null;const l=hw(e.monthlyPrice.amount,e.yearlyPrice.amount),c=de(a.currency);return Pa({site:n})?u(H,{children:b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:_r(qc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),u(yw,{trialDays:o,discount:l,selectedInterval:t})]}),t==="year"?u(yg,{discount:l,trialDays:o}):"",u(gg,{price:s})]})}):b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:_r(qc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),t==="year"?u(yg,{discount:l}):""]}),u(gg,{price:s})]})}function vw({products:e,handleChooseSignup:t}){const{site:n,action:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o}=x.useContext(Sr);let a=i==="free"?"gh-portal-product-card free checked":"gh-portal-product-card free";const s=br({site:n});let l=Zh({site:n}),c=r==="signup:running";yr()&&(c=!0);let d="$";e&&e[1]?d=de(e[1].monthlyPrice.currency):d="$";const p=Na({site:n}),f=Jh({site:n});if(p){if(!l&&!f.length)return null;a+=" only-free"}return!l&&!f.length&&(l="Free preview"),u(H,{children:b("div",{className:a,onClick:y=>{y.stopPropagation(),o("free")},"data-test-tier":"free",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:Xh({site:n})}),p?"":u("div",{className:"gh-portal-product-card-pricecontainer free-trial-disabled",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(d.length>1?" long":""),children:d}),u("span",{className:"amount","data-testid":"product-amount",children:"0"})]})})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[l?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:l}):"",u(Xc,{product:s})]}),p?"":u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",disabled:c,onClick:y=>{t(y,"free")},children:i==="free"&&c?u(Fi,{className:"gh-portal-loadingicon"}):"Choose"})})]})]})})}function bw({selectedProduct:e,product:t,disabled:n,noOfProducts:r,trialDays:i}){return e===t.id&&n?u(Fi,{className:"gh-portal-loadingicon"}):i>0?"Start "+i+"-day free trial":r>1?"Choose":"Continue"}function ww({product:e,products:t,selectedInterval:n,handleChooseSignup:r}){var f;const{selectedProduct:i,setSelectedProduct:o}=x.useContext(Sr),{action:a}=x.useContext(R),s=e.trial_days,l=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",c=(f=t==null?void 0:t.filter(y=>y.type==="paid"))==null?void 0:f.length;let d=!!["signup:running","checkoutPlan:running"].includes(a);yr()&&(d=!0);let p=e.description;return(!e.benefits||!e.benefits.length)&&!p&&(p="Full access"),u(H,{children:b("div",{className:l,onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(mg,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:p}),u(Xc,{product:e})]}),u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",disabled:d,className:"gh-portal-btn",onClick:y=>{const v=bg({products:t,selectedInterval:n,selectedProduct:e.id});r(y,v.id)},children:u(bw,{selectedProduct:i,product:e,disabled:d,noOfProducts:c,trialDays:s})})})]})]},e.id)})}function xw({products:e,selectedInterval:t,handleChooseSignup:n}){return e.map(r=>r.id==="free"?u(vw,{products:e,handleChooseSignup:n},r.id):u(ww,{products:e,product:r,selectedInterval:t,handleChooseSignup:n},r.id))}function yg({discount:e,trialDays:t}){const{site:n}=x.useContext(R),{portal_plans:r}=n;return e===0||!r.includes("monthly")?null:Pa({site:n})?u(H,{children:b("span",{className:"gh-portal-discount-label-trial",children:[e,"% discount"]})}):u(H,{children:b("span",{className:"gh-portal-discount-label",children:[e,"% discount"]})})}function vg({products:e,selectedInterval:t,setSelectedInterval:n}){const{site:r,t:i}=x.useContext(R),{portal_plans:o}=r;return!o.includes("monthly")||!o.includes("yearly")?null:u("div",{className:"gh-portal-logged-out-form-container",children:b("div",{className:"gh-portal-products-pricetoggle"+(t==="month"?" left":""),children:[u("button",{"data-test-button":"switch-monthly",className:"gh-portal-btn"+(t==="month"?" active":""),onClick:a=>{n("month")},children:i("Monthly")}),u("button",{"data-test-button":"switch-yearly",className:"gh-portal-btn"+(t==="year"?" active":""),onClick:a=>{n("year")},children:i("Yearly")})]})})}function bg({products:e,selectedProduct:t,selectedInterval:n}){let r=null;if(t==="free")r={id:"free"};else{let i=e.find(o=>o.id===t);i||(i=e.find(o=>o.type==="paid")),r=n==="month"?i==null?void 0:i.monthlyPrice:i==null?void 0:i.yearlyPrice}return r}function $a({portalPlans:e,selectedInterval:t="year"}){if(t==="month"&&e.includes("monthly"))return"month";if(t==="year"&&e.includes("yearly"))return"year";if(e.includes("monthly"))return"month";if(e.includes("yearly"))return"year"}function wg({onPlanSelect:e,products:t,type:n=null,handleChooseSignup:r}){var m,h;const{site:i}=x.useContext(R),{portal_plans:o}=i,a=$a({portalPlans:o}),s=t.length>0?t[0].id:"free",[l,c]=x.useState(a),[d,p]=x.useState(s),f=bg({products:t,selectedInterval:l,selectedProduct:d}),y=$a({portalPlans:o,selectedInterval:l});if(x.useEffect(()=>{p(s)},[s]),x.useEffect(()=>{e(null,f.id)},[f.id,e]),!o.includes("monthly")&&!o.includes("yearly")||t.length===0)return null;let v="gh-portal-products";n==="upgrade"&&(v+=" gh-portal-upgrade-product");let k=((m=t.find(g=>g.id===d))==null?void 0:m.id)||((h=t.find(g=>g.type==="paid"))==null?void 0:h.id);return u(Sr.Provider,{value:{selectedInterval:y,selectedProduct:k,setSelectedProduct:p},children:b("section",{className:v,children:[Na({site:i})?"":u(vg,{products:t,selectedInterval:y,setSelectedInterval:c}),u("div",{className:"gh-portal-products-grid",children:u(xw,{products:t,selectedInterval:y,handleChooseSignup:r})})]})})}function _w({onPlanSelect:e,selectedPlan:t,products:n,type:r=null}){var h;const{site:i,member:o}=x.useContext(R),{portal_plans:a}=i,s=Cn({member:o}),l=ng({site:i,priceId:s.id}),c=$a({portalPlans:a,selectedInterval:s.interval}),d=(l==null?void 0:l.id)||((h=n==null?void 0:n[0])==null?void 0:h.id),[p,f]=x.useState(c),[y,v]=x.useState(d),k=$a({portalPlans:a,selectedInterval:p});if(x.useEffect(()=>{v(d)},[d]),!a.includes("monthly")&&!a.includes("yearly")||n.length===0)return null;let m="gh-portal-products";return r==="upgrade"&&(m+=" gh-portal-upgrade-product"),r==="changePlan"&&(m+=" gh-portal-upgrade-product gh-portal-change-plan"),u(Sr.Provider,{value:{selectedInterval:k,selectedProduct:y,selectedPlan:t,setSelectedProduct:v},children:b("section",{className:m,children:[u(vg,{selectedInterval:k,setSelectedInterval:f}),u("div",{className:"gh-portal-products-grid",children:u(Ew,{products:n,onPlanSelect:e})})]})})}function kw({product:e,selectedPrice:t,activePrice:n}){return e!=null&&e.description?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:e.description}):null}function Sw({product:e,onPlanSelect:t}){const{member:n,site:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o,selectedInterval:a}=x.useContext(Sr),s=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",l=e.monthlyPrice,c=e.yearlyPrice,d=Cn({member:n}),p=a==="month"?l:c,f=$b({member:n,site:r,priceId:p.id});return b("div",{className:s+(f?" disabled":""),onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(mg,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[e.description?u(kw,{product:e,selectedPrice:p,activePrice:d}):"",u(Xc,{product:e})]}),f?u("div",{className:"gh-portal-btn-product",children:u("span",{className:"gh-portal-current-plan",children:u("span",{children:"Current plan"})})}):u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",onClick:()=>{t(null,p==null?void 0:p.id)},children:"Choose"})})]})]},e.id)}function Ew({products:e,onPlanSelect:t}){return e.map(n=>n.id==="free"?null:u(Sw,{product:n,onPlanSelect:t},n.id))}function Cw({products:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r,changePlan:i=!1}){return yr()&&(n=()=>{}),i?u("section",{className:"gh-portal-plans",children:u("div",{children:u(_w,{type:"changePlan",products:e,selectedPlan:t,onPlanSelect:n})})}):u("section",{className:"gh-portal-plans",children:u("div",{children:u(wg,{type:"upgrade",products:e,onPlanSelect:n,handleChooseSignup:(...a)=>{r(...a)}})})})}const Pw=`
1168
+ `,_r=q.createContext({selectedInterval:"month",selectedProduct:"free",selectedPlan:null,setSelectedProduct:null});function _w({product:e}){return!e.benefits||!e.benefits.length?null:e.benefits.map((t,n)=>{const r=(t==null?void 0:t.id)||`benefit-${n}`;return b("div",{className:"gh-portal-product-benefit",children:[u(gm,{className:"gh-portal-benefit-checkmark",alt:""}),u("div",{className:"gh-portal-benefit-title",children:t.name})]},r)})}function eu({product:e,hide:t=!1}){return!e.benefits||!e.benefits.length||t?null:u("div",{className:"gh-portal-product-benefits",children:u(_w,{product:e})})}function ym({price:e}){const{site:t}=x.useContext(R),{portal_plans:n}=t;return!n.includes("monthly")||!n.includes("yearly")?u("div",{className:"gh-portal-product-alternative-price"}):u("div",{className:"gh-portal-product-alternative-price",children:Zb(e)})}function Sw({trialDays:e,discount:t,selectedInterval:n}){const{site:r,t:i}=x.useContext(R);return Pa({site:r})?e?u("span",{className:"gh-portal-discount-label",children:i("{{trialDays}} days free",{trialDays:e})}):null:n==="year"?u("span",{className:"gh-portal-discount-label",children:i("{{discount}}% discount",{discount:t})}):null}function vm({product:e}){const{selectedInterval:t}=x.useContext(_r),{site:n}=x.useContext(R),r=e.monthlyPrice,i=e.yearlyPrice,o=e.trial_days,a=t==="month"?r:i,s=t==="month"?i:r;if(!r||!i)return null;const l=xw(e.monthlyPrice.amount,e.yearlyPrice.amount),c=fe(a.currency);return Pa({site:n})?u(Y,{children:b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:xr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),u(Sw,{trialDays:o,discount:l,selectedInterval:t})]}),t==="year"?u(bm,{discount:l,trialDays:o}):"",u(ym,{price:s})]})}):b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:xr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),t==="year"?u(bm,{discount:l}):""]}),u(ym,{price:s})]})}function Ew({products:e,handleChooseSignup:t}){const{site:n,action:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o}=x.useContext(_r);let a=i==="free"?"gh-portal-product-card free checked":"gh-portal-product-card free";const s=vr({site:n});let l=tm({site:n}),c=r==="signup:running";gr()&&(c=!0);let p="$";e&&e[1]?p=fe(e[1].monthlyPrice.currency):p="$";const d=Ta({site:n}),f=Zh({site:n});if(d){if(!l&&!f.length)return null;a+=" only-free"}return!l&&!f.length&&(l="Free preview"),u(Y,{children:b("div",{className:a,onClick:y=>{y.stopPropagation(),o("free")},"data-test-tier":"free",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:em({site:n})}),d?"":u("div",{className:"gh-portal-product-card-pricecontainer free-trial-disabled",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),u("span",{className:"amount","data-testid":"product-amount",children:"0"})]})})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[l?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:l}):"",u(eu,{product:s})]}),d?"":u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",disabled:c,onClick:y=>{t(y,"free")},children:i==="free"&&c?u(Fi,{className:"gh-portal-loadingicon"}):"Choose"})})]})]})})}function Cw({selectedProduct:e,product:t,disabled:n,noOfProducts:r,trialDays:i}){return e===t.id&&n?u(Fi,{className:"gh-portal-loadingicon"}):i>0?"Start "+i+"-day free trial":r>1?"Choose":"Continue"}function Pw({product:e,products:t,selectedInterval:n,handleChooseSignup:r}){var f;const{selectedProduct:i,setSelectedProduct:o}=x.useContext(_r),{action:a}=x.useContext(R),s=e.trial_days,l=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",c=(f=t==null?void 0:t.filter(y=>y.type==="paid"))==null?void 0:f.length;let p=!!["signup:running","checkoutPlan:running"].includes(a);gr()&&(p=!0);let d=e.description;return(!e.benefits||!e.benefits.length)&&!d&&(d="Full access"),u(Y,{children:b("div",{className:l,onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(vm,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:d}),u(eu,{product:e})]}),u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",disabled:p,className:"gh-portal-btn",onClick:y=>{const v=xm({products:t,selectedInterval:n,selectedProduct:e.id});r(y,v.id)},children:u(Cw,{selectedProduct:i,product:e,disabled:p,noOfProducts:c,trialDays:s})})})]})]},e.id)})}function Nw({products:e,selectedInterval:t,handleChooseSignup:n}){return e.map(r=>r.id==="free"?u(Ew,{products:e,handleChooseSignup:n},r.id):u(Pw,{products:e,product:r,selectedInterval:t,handleChooseSignup:n},r.id))}function bm({discount:e,trialDays:t}){const{site:n}=x.useContext(R),{portal_plans:r}=n;return e===0||!r.includes("monthly")?null:Pa({site:n})?u(Y,{children:b("span",{className:"gh-portal-discount-label-trial",children:[e,"% discount"]})}):u(Y,{children:b("span",{className:"gh-portal-discount-label",children:[e,"% discount"]})})}function wm({products:e,selectedInterval:t,setSelectedInterval:n}){const{site:r,t:i}=x.useContext(R),{portal_plans:o}=r;return!o.includes("monthly")||!o.includes("yearly")?null:u("div",{className:"gh-portal-logged-out-form-container",children:b("div",{className:"gh-portal-products-pricetoggle"+(t==="month"?" left":""),children:[u("button",{"data-test-button":"switch-monthly",className:"gh-portal-btn"+(t==="month"?" active":""),onClick:a=>{n("month")},children:i("Monthly")}),u("button",{"data-test-button":"switch-yearly",className:"gh-portal-btn"+(t==="year"?" active":""),onClick:a=>{n("year")},children:i("Yearly")})]})})}function xm({products:e,selectedProduct:t,selectedInterval:n}){let r=null;if(t==="free")r={id:"free"};else{let i=e.find(o=>o.id===t);i||(i=e.find(o=>o.type==="paid")),r=n==="month"?i==null?void 0:i.monthlyPrice:i==null?void 0:i.yearlyPrice}return r}function Ia({portalPlans:e,selectedInterval:t="year"}){if(t==="month"&&e.includes("monthly"))return"month";if(t==="year"&&e.includes("yearly"))return"year";if(e.includes("monthly"))return"month";if(e.includes("yearly"))return"year"}function km({onPlanSelect:e,products:t,type:n=null,handleChooseSignup:r}){var g,h;const{site:i}=x.useContext(R),{portal_plans:o}=i,a=Ia({portalPlans:o}),s=t.length>0?t[0].id:"free",[l,c]=x.useState(a),[p,d]=x.useState(s),f=xm({products:t,selectedInterval:l,selectedProduct:p}),y=Ia({portalPlans:o,selectedInterval:l});if(x.useEffect(()=>{d(s)},[s]),x.useEffect(()=>{e(null,f.id)},[f.id,e]),!o.includes("monthly")&&!o.includes("yearly")||t.length===0)return null;let v="gh-portal-products";n==="upgrade"&&(v+=" gh-portal-upgrade-product");let _=((g=t.find(m=>m.id===p))==null?void 0:g.id)||((h=t.find(m=>m.type==="paid"))==null?void 0:h.id);return u(_r.Provider,{value:{selectedInterval:y,selectedProduct:_,setSelectedProduct:d},children:b("section",{className:v,children:[Ta({site:i})?"":u(wm,{products:t,selectedInterval:y,setSelectedInterval:c}),u("div",{className:"gh-portal-products-grid",children:u(Nw,{products:t,selectedInterval:y,handleChooseSignup:r})})]})})}function Tw({onPlanSelect:e,selectedPlan:t,products:n,type:r=null}){var h;const{site:i,member:o}=x.useContext(R),{portal_plans:a}=i,s=Sn({member:o}),l=im({site:i,priceId:s.id}),c=Ia({portalPlans:a,selectedInterval:s.interval}),p=(l==null?void 0:l.id)||((h=n==null?void 0:n[0])==null?void 0:h.id),[d,f]=x.useState(c),[y,v]=x.useState(p),_=Ia({portalPlans:a,selectedInterval:d});if(x.useEffect(()=>{v(p)},[p]),!a.includes("monthly")&&!a.includes("yearly")||n.length===0)return null;let g="gh-portal-products";return r==="upgrade"&&(g+=" gh-portal-upgrade-product"),r==="changePlan"&&(g+=" gh-portal-upgrade-product gh-portal-change-plan"),u(_r.Provider,{value:{selectedInterval:_,selectedProduct:y,selectedPlan:t,setSelectedProduct:v},children:b("section",{className:g,children:[u(wm,{selectedInterval:_,setSelectedInterval:f}),u("div",{className:"gh-portal-products-grid",children:u(Ow,{products:n,onPlanSelect:e})})]})})}function $w({product:e,selectedPrice:t,activePrice:n}){return e!=null&&e.description?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:e.description}):null}function Rw({product:e,onPlanSelect:t}){const{member:n,site:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o,selectedInterval:a}=x.useContext(_r),s=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",l=e.monthlyPrice,c=e.yearlyPrice,p=Sn({member:n}),d=a==="month"?l:c,f=Ub({member:n,site:r,priceId:d.id});return b("div",{className:s+(f?" disabled":""),onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(vm,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[e.description?u($w,{product:e,selectedPrice:d,activePrice:p}):"",u(eu,{product:e})]}),f?u("div",{className:"gh-portal-btn-product",children:u("span",{className:"gh-portal-current-plan",children:u("span",{children:"Current plan"})})}):u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",onClick:()=>{t(null,d==null?void 0:d.id)},children:"Choose"})})]})]},e.id)}function Ow({products:e,onPlanSelect:t}){return e.map(n=>n.id==="free"?null:u(Rw,{product:n,onPlanSelect:t},n.id))}function Dw({products:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r,changePlan:i=!1}){return gr()&&(n=()=>{}),i?u("section",{className:"gh-portal-plans",children:u("div",{children:u(Tw,{type:"changePlan",products:e,selectedPlan:t,onPlanSelect:n})})}):u("section",{className:"gh-portal-plans",children:u("div",{children:u(km,{type:"upgrade",products:e,onPlanSelect:n,handleChooseSignup:(...a)=>{r(...a)}})})})}const Lw=`
1168
1169
  .account-plan.full-size .gh-portal-main-title {
1169
1170
  font-size: 3.2rem;
1170
1171
  margin-top: 44px;
@@ -1193,7 +1194,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
1193
1194
  height: 62px;
1194
1195
  padding: 6px 12px;
1195
1196
  }
1196
- `;function Nw({confirmationType:e}){if(e==="changePlan")return"Confirm subscription";if(e==="cancel")return"Cancel subscription";if(e==="subscribe")return"Subscribe"}const Tw=({onBack:e,showConfirmation:t,confirmationType:n})=>{const{member:r}=x.useContext(R);let i=_t({member:r})?"Change plan":"Choose a plan";return t&&(i=Nw({confirmationType:n})),u("header",{className:"gh-portal-detail-header",children:u("h3",{className:"gh-portal-main-title",children:i})})},Ow=({member:e,onCancelSubscription:t,action:n,brandColor:r})=>{const{site:i,t:o}=x.useContext(R);if(!e.paid)return null;const a=Qe({member:e});if(!a||a.cancel_at_period_end)return null;const s=o("Cancel subscription"),l=["cancelSubscription:running"].includes(n),c=!!l,d=!!a.cancel_at_period_end,p=!a.cancelAtPeriodEnd;return u("div",{className:"gh-portal-expire-container",children:u(fe,{dataTestId:"cancel-subscription",onClick:f=>{t({subscriptionId:a.id,cancelAtPeriodEnd:!0})},isRunning:l,disabled:c,isPrimary:d,isDestructive:p,classes:Sa({site:i})?"gh-portal-btn-text mt2 mb4":"",brandColor:r,label:s,style:{width:"100%"}})})},Rw=({plan:e,type:t,onConfirm:n})=>{const{site:r,action:i,member:o,brandColor:a,t:s}=x.useContext(R),[l,c]=x.useState(""),d=Qe({member:o}),p=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(i),f=s("Confirm");let y=xt(d.current_period_end);Cn({member:o}).id!==e.id&&(y="today");const k=_r(e.price),m=`${e.currency_symbol}${k}/${e.interval} – Starting ${y}`,h=ng({site:r,priceId:e==null?void 0:e.id}),g=Sa({site:r})?h==null?void 0:h.name:s("Price");return t==="changePlan"?b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-list mb6",children:[u("section",{children:b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:s("Account")}),u("p",{children:o.email})]})}),u("section",{children:b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:g}),u("p",{children:m})]})})]}),u(fe,{dataTestId:"confirm-action",onClick:w=>n(w,e),isRunning:p,isPrimary:!0,brandColor:a,label:f,style:{width:"100%",height:"40px"}})]}):b("div",{className:"gh-portal-logged-out-form-container gh-portal-cancellation-form",children:[b("p",{children:["If you cancel your subscription now, you will continue to have access until ",u("strong",{children:xt(d.current_period_end)}),"."]}),b("section",{className:"gh-portal-input-section",children:[u("div",{className:"gh-portal-input-labelcontainer",children:u("label",{className:"gh-portal-input-label",children:s("Cancellation reason")})}),u("textarea",{"data-test-input":"cancellation-reason",className:"gh-portal-input",label:"Cancellation reason",type:"text",name:"cancellation_reason",placeholder:"",value:l,onChange:w=>c(w.target.value),rows:"2",maxLength:"500"},"cancellation_reason")]}),u(fe,{dataTestId:"confirm-cancel-subscription",onClick:w=>n(w,l),isRunning:p,isPrimary:!0,brandColor:a,label:f+" cancellation",style:{width:"100%",height:"40px"}})]})},Lw=({plans:e,selectedPlan:t,onPlanSelect:n,onCancelSubscription:r})=>{const{member:i,action:o,brandColor:a}=x.useContext(R);return b("section",{children:[u("div",{className:"gh-portal-section gh-portal-accountplans-main",children:u(xg,{showLabel:!1,plans:e,selectedPlan:t,onPlanSelect:n,changePlan:!0})}),u(Ow,{member:i,onCancelSubscription:r,action:o,brandColor:a})]})};function xg({showLabel:e,plans:t,selectedPlan:n,onPlanSelect:r,onPlanCheckout:i,changePlan:o=!1}){const{site:a,member:s}=x.useContext(R),l=Db({site:a,member:s});return u(Cw,{products:l,selectedPlan:n,changePlan:o,onPlanSelect:r,onPlanCheckout:i})}const Dw=({plans:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r})=>{let i="";return e.length===1&&(i="singleplan"),u("section",{children:u("div",{className:`gh-portal-section gh-portal-accountplans-main ${i}`,children:u(xg,{showLabel:!1,plans:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r})})})},Iw=({plans:e,selectedPlan:t,confirmationPlan:n,confirmationType:r,showConfirmation:i=!1,onPlanSelect:o,onPlanCheckout:a,onConfirm:s,onCancelSubscription:l})=>{const{member:c}=x.useContext(R),d=Ai({member:c})&&vr({member:c});return!_t({member:c})||d?u(Dw,{plans:e,selectedPlan:t,onPlanSelect:o,onPlanCheckout:a}):i?u(Rw,{plan:n,type:r,onConfirm:s}):u(Lw,{plans:e,selectedPlan:t,onCancelSubscription:l,onPlanSelect:o})};class _g extends q.Component{constructor(n,r){super(n,r);Z(this,"onPlanSelect",(n,r)=>{n==null||n.preventDefault();const{member:i}=this.context,o=Ai({member:i})?vr({member:i}):!1;if(!_t({member:i})||o)this.timeoutId=setTimeout(()=>{this.setState(()=>({selectedPlan:r}))},5);else{const a=this.prices.find(c=>c.id===r),l=this.getActivePriceId({member:i})?"changePlan":"subscribe";r!==this.state.selectedPlan&&this.setState({confirmationPlan:a,confirmationType:l,showConfirmation:!0})}});this.state=this.getInitialState()}componentDidMount(){const{member:n}=this.context;n||this.context.onAction("switchPage",{page:"signin"})}componentWillUnmount(){clearTimeout(this.timeoutId)}getInitialState(){const{member:n,site:r}=this.context;this.prices=Ta({site:r});let i=Cn({member:n});i&&(this.prices=Ib({prices:this.prices,currency:i.currency}));let o=i?this.prices.find(s=>s.id===i.id):null;return!_t({member:n})&&this.prices.length>0&&(o=this.prices[0]),{selectedPlan:o?o.id:null}}handleSignout(n){n.preventDefault(),this.context.onAction("signout")}onBack(n){this.state.showConfirmation?this.cancelConfirmPage():this.context.onAction("back")}cancelConfirmPage(){this.setState({showConfirmation:!1,confirmationPlan:null,confirmationType:null})}onPlanCheckout(n,r){const{onAction:i,member:o}=this.context;let{confirmationPlan:a,selectedPlan:s}=this.state;r&&(s=r);const l=Ai({member:o})?!vr({member:o}):!0;if(_t({member:o})&&l){const c=Qe({member:o}),d=c?c.id:"";d&&i("updateSubscription",{plan:a.name,planId:a.id,subscriptionId:d,cancelAtPeriodEnd:!1})}else i("checkoutPlan",{plan:s})}onCancelSubscription({subscriptionId:n,cancelAtPeriodEnd:r}){const{member:i}=this.context,o=jb({subscriptionId:n,member:i}),a=Kh({subscription:o});this.setState({showConfirmation:!0,confirmationPlan:a,confirmationType:"cancel"})}onCancelSubscriptionConfirmation(n){const{member:r}=this.context,i=Qe({member:r});if(!i)return null;this.context.onAction("cancelSubscription",{subscriptionId:i.id,cancelAtPeriodEnd:!0,cancellationReason:n})}getActivePriceId({member:n}){const r=Cn({member:n});return r?r.id:null}onConfirm(n,r){const{confirmationType:i}=this.state;if(i==="cancel")return this.onCancelSubscriptionConfirmation(r);if(["changePlan","subscribe"].includes(i))return this.onPlanCheckout()}render(){const n=this.prices,{selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a}=this.state,{lastPage:s}=this.context;return u(H,{children:b("div",{className:"gh-portal-content",children:[u(kr,{onClick:l=>this.onBack(l),hidden:!s&&!i}),u(we,{}),u(Tw,{onBack:l=>this.onBack(l),confirmationType:a,showConfirmation:i}),u(Iw,{plans:n,selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a,onConfirm:(...l)=>this.onConfirm(...l),onCancelSubscription:l=>this.onCancelSubscription(l),onPlanSelect:this.onPlanSelect,onPlanCheckout:(l,c)=>this.onPlanCheckout(l,c)})]})})}}Z(_g,"contextType",R);const $w=`
1197
+ `;function jw({confirmationType:e}){if(e==="changePlan")return"Confirm subscription";if(e==="cancel")return"Cancel subscription";if(e==="subscribe")return"Subscribe"}const Iw=({onBack:e,showConfirmation:t,confirmationType:n})=>{const{member:r}=x.useContext(R);let i=kt({member:r})?"Change plan":"Choose a plan";return t&&(i=jw({confirmationType:n})),u("header",{className:"gh-portal-detail-header",children:u("h3",{className:"gh-portal-main-title",children:i})})},Aw=({member:e,onCancelSubscription:t,action:n,brandColor:r})=>{const{site:i,t:o}=x.useContext(R);if(!e.paid)return null;const a=Qe({member:e});if(!a||a.cancel_at_period_end)return null;const s=o("Cancel subscription"),l=["cancelSubscription:running"].includes(n),c=!!l,p=!!a.cancel_at_period_end,d=!a.cancelAtPeriodEnd;return u("div",{className:"gh-portal-expire-container",children:u(he,{dataTestId:"cancel-subscription",onClick:f=>{t({subscriptionId:a.id,cancelAtPeriodEnd:!0})},isRunning:l,disabled:c,isPrimary:p,isDestructive:d,classes:Sa({site:i})?"gh-portal-btn-text mt2 mb4":"",brandColor:r,label:s,style:{width:"100%"}})})},Mw=({plan:e,type:t,onConfirm:n})=>{const{site:r,action:i,member:o,brandColor:a,t:s}=x.useContext(R),[l,c]=x.useState(""),p=Qe({member:o}),d=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(i),f=s("Confirm");let y=xt(p.current_period_end);Sn({member:o}).id!==e.id&&(y="today");const _=xr(e.price),g=`${e.currency_symbol}${_}/${e.interval} – Starting ${y}`,h=im({site:r,priceId:e==null?void 0:e.id}),m=Sa({site:r})?h==null?void 0:h.name:s("Price");return t==="changePlan"?b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-list mb6",children:[u("section",{children:b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:s("Account")}),u("p",{children:o.email})]})}),u("section",{children:b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:m}),u("p",{children:g})]})})]}),u(he,{dataTestId:"confirm-action",onClick:w=>n(w,e),isRunning:d,isPrimary:!0,brandColor:a,label:f,style:{width:"100%",height:"40px"}})]}):b("div",{className:"gh-portal-logged-out-form-container gh-portal-cancellation-form",children:[b("p",{children:["If you cancel your subscription now, you will continue to have access until ",u("strong",{children:xt(p.current_period_end)}),"."]}),b("section",{className:"gh-portal-input-section",children:[u("div",{className:"gh-portal-input-labelcontainer",children:u("label",{className:"gh-portal-input-label",children:s("Cancellation reason")})}),u("textarea",{"data-test-input":"cancellation-reason",className:"gh-portal-input",label:"Cancellation reason",type:"text",name:"cancellation_reason",placeholder:"",value:l,onChange:w=>c(w.target.value),rows:"2",maxLength:"500"},"cancellation_reason")]}),u(he,{dataTestId:"confirm-cancel-subscription",onClick:w=>n(w,l),isRunning:d,isPrimary:!0,brandColor:a,label:f+" cancellation",style:{width:"100%",height:"40px"}})]})},zw=({plans:e,selectedPlan:t,onPlanSelect:n,onCancelSubscription:r})=>{const{member:i,action:o,brandColor:a}=x.useContext(R);return b("section",{children:[u("div",{className:"gh-portal-section gh-portal-accountplans-main",children:u(_m,{showLabel:!1,plans:e,selectedPlan:t,onPlanSelect:n,changePlan:!0})}),u(Aw,{member:i,onCancelSubscription:r,action:o,brandColor:a})]})};function _m({showLabel:e,plans:t,selectedPlan:n,onPlanSelect:r,onPlanCheckout:i,changePlan:o=!1}){const{site:a,member:s}=x.useContext(R),l=zb({site:a,member:s});return u(Dw,{products:l,selectedPlan:n,changePlan:o,onPlanSelect:r,onPlanCheckout:i})}const Fw=({plans:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r})=>{let i="";return e.length===1&&(i="singleplan"),u("section",{children:u("div",{className:`gh-portal-section gh-portal-accountplans-main ${i}`,children:u(_m,{showLabel:!1,plans:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r})})})},Uw=({plans:e,selectedPlan:t,confirmationPlan:n,confirmationType:r,showConfirmation:i=!1,onPlanSelect:o,onPlanCheckout:a,onConfirm:s,onCancelSubscription:l})=>{const{member:c}=x.useContext(R),p=zi({member:c})&&yr({member:c});return!kt({member:c})||p?u(Fw,{plans:e,selectedPlan:t,onPlanSelect:o,onPlanCheckout:a}):i?u(Mw,{plan:n,type:r,onConfirm:s}):u(zw,{plans:e,selectedPlan:t,onCancelSubscription:l,onPlanSelect:o})};class Sm extends q.Component{constructor(n,r){super(n,r);Z(this,"onPlanSelect",(n,r)=>{n==null||n.preventDefault();const{member:i}=this.context,o=zi({member:i})?yr({member:i}):!1;if(!kt({member:i})||o)this.timeoutId=setTimeout(()=>{this.setState(()=>({selectedPlan:r}))},5);else{const a=this.prices.find(c=>c.id===r),l=this.getActivePriceId({member:i})?"changePlan":"subscribe";r!==this.state.selectedPlan&&this.setState({confirmationPlan:a,confirmationType:l,showConfirmation:!0})}});this.state=this.getInitialState()}componentDidMount(){const{member:n}=this.context;n||this.context.onAction("switchPage",{page:"signin"})}componentWillUnmount(){clearTimeout(this.timeoutId)}getInitialState(){const{member:n,site:r}=this.context;this.prices=$a({site:r});let i=Sn({member:n});i&&(this.prices=Fb({prices:this.prices,currency:i.currency}));let o=i?this.prices.find(s=>s.id===i.id):null;return!kt({member:n})&&this.prices.length>0&&(o=this.prices[0]),{selectedPlan:o?o.id:null}}handleSignout(n){n.preventDefault(),this.context.onAction("signout")}onBack(n){this.state.showConfirmation?this.cancelConfirmPage():this.context.onAction("back")}cancelConfirmPage(){this.setState({showConfirmation:!1,confirmationPlan:null,confirmationType:null})}onPlanCheckout(n,r){const{onAction:i,member:o}=this.context;let{confirmationPlan:a,selectedPlan:s}=this.state;r&&(s=r);const l=zi({member:o})?!yr({member:o}):!0;if(kt({member:o})&&l){const c=Qe({member:o}),p=c?c.id:"";p&&i("updateSubscription",{plan:a.name,planId:a.id,subscriptionId:p,cancelAtPeriodEnd:!1})}else i("checkoutPlan",{plan:s})}onCancelSubscription({subscriptionId:n,cancelAtPeriodEnd:r}){const{member:i}=this.context,o=Bb({subscriptionId:n,member:i}),a=Qh({subscription:o});this.setState({showConfirmation:!0,confirmationPlan:a,confirmationType:"cancel"})}onCancelSubscriptionConfirmation(n){const{member:r}=this.context,i=Qe({member:r});if(!i)return null;this.context.onAction("cancelSubscription",{subscriptionId:i.id,cancelAtPeriodEnd:!0,cancellationReason:n})}getActivePriceId({member:n}){const r=Sn({member:n});return r?r.id:null}onConfirm(n,r){const{confirmationType:i}=this.state;if(i==="cancel")return this.onCancelSubscriptionConfirmation(r);if(["changePlan","subscribe"].includes(i))return this.onPlanCheckout()}render(){const n=this.prices,{selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a}=this.state,{lastPage:s}=this.context;return u(Y,{children:b("div",{className:"gh-portal-content",children:[u(kr,{onClick:l=>this.onBack(l),hidden:!s&&!i}),u(we,{}),u(Iw,{onBack:l=>this.onBack(l),confirmationType:a,showConfirmation:i}),u(Uw,{plans:n,selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a,onConfirm:(...l)=>this.onConfirm(...l),onCancelSubscription:l=>this.onCancelSubscription(l),onPlanSelect:this.onPlanSelect,onPlanCheckout:(l,c)=>this.onPlanCheckout(l,c)})]})})}}Z(Sm,"contextType",R);const Bw=`
1197
1198
  .gh-portal-input {
1198
1199
  -webkit-appearance: none;
1199
1200
  -moz-appearance: none;
@@ -1254,7 +1255,7 @@ Url: ${ca(e)}`),!0)}function d1(e,t){return!t||!t.length?!1:g1(e).some(n=>pc(n,t
1254
1255
  .gh-portal-popup-container:not(.preview) .gh-portal-input:disabled::placeholder {
1255
1256
  color: var(--grey9);
1256
1257
  }
1257
- `;function jw({message:e,style:t}){return e?u("p",{style:{...t||{}},children:e}):null}function Aw({name:e,id:t,label:n,hideLabel:r,type:i,value:o,placeholder:a,disabled:s=!1,onChange:l=()=>{},onBlur:c=()=>{},onKeyDown:d=()=>{},tabindex:p,maxlength:f,autoFocus:y,errorMessage:v}){const k=x.useRef(null);t=t||`input-${e}`;const m=r?"gh-portal-input-label hidden":"gh-portal-input-label",h=v?"gh-portal-input error":"gh-portal-input";yr()&&(s=!0),K(["preview"])&&(s=!0);let g="",w="",_="";switch(t){case"input-email":g="off",w="off",_="off";break;case"input-name":g="off",w="off";break}return x.useEffect(()=>{y&&k.current.focus()},[y]),b("section",{className:"gh-portal-input-section",children:[b("div",{className:"gh-portal-input-labelcontainer",children:[b("label",{htmlFor:t,className:m,children:[" ",n," "]}),u(jw,{message:v,name:e})]}),u("input",{"data-test-input":t,ref:k,id:t,className:h,type:i,name:e,value:o,placeholder:a,onChange:C=>l(C,e),onKeyDown:C=>d(C,e),onBlur:C=>c(C,e),disabled:s,tabIndex:p,maxLength:f,autoComplete:g,autoCorrect:w,autoCapitalize:_,"aria-label":n})]})}class kg extends q.Component{render(){const{t}=this.context;return u(H,{children:b("button",{className:"gh-portal-btn gh-portal-btn-site-title-back",onClick:()=>{this.props.onBack?this.props.onBack():this.context.onAction("closePopup")},children:[u("span",{children:"← "})," ",t("Back")]})})}}Z(kg,"contextType",R);const Mw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},x.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},x.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"}})));function Fw({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(i=>i.id===(e==null?void 0:e.id));return e.paid?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[u("h3",{children:e.name}),u("p",{children:e.description})]}),u("div",{class:"gh-portal-lock-icon-container",children:u(Mw,{className:"gh-portal-lock-icon",alt:"",title:"Unlock access to all newsletters by becoming a paid subscriber."})})]}):b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[u("h3",{children:e.name}),u("p",{children:e.description})]}),u("div",{children:u(Ia,{id:e.id,onToggle:(i,o)=>{let a=[];o?a=t.filter(s=>s.id!==e.id).concat(e):a=t.filter(s=>s.id!==e.id),n(a)},checked:r})})]})}function zw({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return xr({site:n}).map(i=>u(Fw,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function Zc({pageData:e,onBack:t}){const{brandColor:n,site:r,onAction:i,action:o,t:a}=x.useContext(R),l=xr({site:r}).filter(k=>k.subscribe_on_signup);let c=!1;o==="signup:running"&&(c=!0);let d=a("Continue"),p=!1;o==="signup:failed"&&(d=a("Retry"),p=!0);const f=o==="signup:running",[y,v]=x.useState(l);return b("div",{className:"gh-portal-content with-footer gh-portal-newsletter-selection",children:[u("p",{className:"gh-portal-text-center gh-portal-text-large",children:a("Choose your newsletters")}),u("div",{className:"gh-portal-section",children:u("div",{className:"gh-portal-list",children:u(zw,{subscribedNewsletters:y,setSubscribedNewsletters:v})})}),u("footer",{className:"gh-portal-action-footer",children:b("div",{style:{width:"100%"},children:[u("div",{style:{marginBottom:"20px"},children:u(fe,{isRunning:c,retry:p,disabled:f,onClick:k=>{let m=y.map(C=>({id:C.id}));const{name:h,email:g,plan:w,offerId:_}=e;i("signup",{name:h,email:g,plan:w,newsletters:m,offerId:_})},brandColor:n,label:d,style:{width:"100%"}})}),u("div",{children:u("button",{className:"gh-portal-btn gh-portal-btn-link gh-portal-btn-different-plan",onClick:()=>{t()},children:u("span",{children:a("Choose a different plan")})})})]})})]})}const Uw=({field:e,onChange:t,onBlur:n=()=>{},onKeyDown:r=()=>{}})=>e?u(H,{children:u(Aw,{label:e.label,type:e.type,name:e.name,placeholder:e.placeholder,disabled:e.disabled,value:e.value,onKeyDown:r,onChange:i=>t(i,e),onBlur:i=>n(i,e),tabIndex:e.tabindex,errorMessage:e.errorMessage,autoFocus:e.autoFocus},e.name)}):null;class ja extends x.Component{constructor(t){super(t),this.state={}}render(){const{fields:t,onChange:n,onBlur:r,onKeyDown:i}=this.props,o=t.map(a=>u(Uw,{field:a,onChange:n,onBlur:r,onKeyDown:i},a.name));return u(H,{children:o})}}const Bw=e=>!!e&&/^[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(e).toLowerCase()),Hw=({field:e})=>{if(e.required&&!e.value)switch(e.name){case"name":return"Enter your name";case"email":return"Enter your email address";default:return`Please enter ${e.name}`}return e.type==="email"&&!Bw(e.value)?"Invalid email address":null},zi=({fields:e})=>{const t={};return e.forEach(n=>{const r=n.name,i=Hw({field:n});t[r]=i}),t},Yw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".inviteicon{fill: currentColor;}")),x.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"})),Gw=`
1258
+ `;function Yw({message:e,style:t}){return e?u("p",{style:{...t||{}},children:e}):null}function Hw({name:e,id:t,label:n,hideLabel:r,type:i,value:o,placeholder:a,disabled:s=!1,onChange:l=()=>{},onBlur:c=()=>{},onKeyDown:p=()=>{},tabindex:d,maxlength:f,autoFocus:y,errorMessage:v}){const _=x.useRef(null);t=t||`input-${e}`;const g=r?"gh-portal-input-label hidden":"gh-portal-input-label",h=v?"gh-portal-input error":"gh-portal-input";gr()&&(s=!0),K(["preview"])&&(s=!0);let m="",w="",k="";switch(t){case"input-email":m="off",w="off",k="off";break;case"input-name":m="off",w="off";break}return x.useEffect(()=>{y&&_.current.focus()},[y]),b("section",{className:"gh-portal-input-section",children:[b("div",{className:"gh-portal-input-labelcontainer",children:[b("label",{htmlFor:t,className:g,children:[" ",n," "]}),u(Yw,{message:v,name:e})]}),u("input",{"data-test-input":t,ref:_,id:t,className:h,type:i,name:e,value:o,placeholder:a,onChange:C=>l(C,e),onKeyDown:C=>p(C,e),onBlur:C=>c(C,e),disabled:s,tabIndex:d,maxLength:f,autoComplete:m,autoCorrect:w,autoCapitalize:k,"aria-label":n})]})}class Em extends q.Component{render(){const{t}=this.context;return u(Y,{children:b("button",{className:"gh-portal-btn gh-portal-btn-site-title-back",onClick:()=>{this.props.onBack?this.props.onBack():this.context.onAction("closePopup")},children:[u("span",{children:"← "})," ",t("Back")]})})}}Z(Em,"contextType",R);const Gw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},x.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},x.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"}})));function Ww({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(i=>i.id===(e==null?void 0:e.id));return e.paid?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[u("h3",{children:e.name}),u("p",{children:e.description})]}),u("div",{class:"gh-portal-lock-icon-container",children:u(Gw,{className:"gh-portal-lock-icon",alt:"",title:"Unlock access to all newsletters by becoming a paid subscriber."})})]}):b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[u("h3",{children:e.name}),u("p",{children:e.description})]}),u("div",{children:u(ja,{id:e.id,onToggle:(i,o)=>{let a=[];o?a=t.filter(s=>s.id!==e.id).concat(e):a=t.filter(s=>s.id!==e.id),n(a)},checked:r})})]})}function Vw({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return wr({site:n}).map(i=>u(Ww,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function tu({pageData:e,onBack:t}){const{brandColor:n,site:r,onAction:i,action:o,t:a}=x.useContext(R),l=wr({site:r}).filter(_=>_.subscribe_on_signup);let c=!1;o==="signup:running"&&(c=!0);let p=a("Continue"),d=!1;o==="signup:failed"&&(p=a("Retry"),d=!0);const f=o==="signup:running",[y,v]=x.useState(l);return b("div",{className:"gh-portal-content with-footer gh-portal-newsletter-selection",children:[u("p",{className:"gh-portal-text-center gh-portal-text-large",children:a("Choose your newsletters")}),u("div",{className:"gh-portal-section",children:u("div",{className:"gh-portal-list",children:u(Vw,{subscribedNewsletters:y,setSubscribedNewsletters:v})})}),u("footer",{className:"gh-portal-action-footer",children:b("div",{style:{width:"100%"},children:[u("div",{style:{marginBottom:"20px"},children:u(he,{isRunning:c,retry:d,disabled:f,onClick:_=>{let g=y.map(C=>({id:C.id}));const{name:h,email:m,plan:w,offerId:k}=e;i("signup",{name:h,email:m,plan:w,newsletters:g,offerId:k})},brandColor:n,label:p,style:{width:"100%"}})}),u("div",{children:u("button",{className:"gh-portal-btn gh-portal-btn-link gh-portal-btn-different-plan",onClick:()=>{t()},children:u("span",{children:a("Choose a different plan")})})})]})})]})}const Kw=({field:e,onChange:t,onBlur:n=()=>{},onKeyDown:r=()=>{}})=>e?u(Y,{children:u(Hw,{label:e.label,type:e.type,name:e.name,placeholder:e.placeholder,disabled:e.disabled,value:e.value,onKeyDown:r,onChange:i=>t(i,e),onBlur:i=>n(i,e),tabIndex:e.tabindex,errorMessage:e.errorMessage,autoFocus:e.autoFocus},e.name)}):null;class Aa extends x.Component{constructor(t){super(t),this.state={}}render(){const{fields:t,onChange:n,onBlur:r,onKeyDown:i}=this.props,o=t.map(a=>u(Kw,{field:a,onChange:n,onBlur:r,onKeyDown:i},a.name));return u(Y,{children:o})}}const qw=e=>!!e&&/^[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(e).toLowerCase()),Qw=({field:e})=>{if(e.required&&!e.value)switch(e.name){case"name":return"Enter your name";case"email":return"Enter your email address";default:return`Please enter ${e.name}`}return e.type==="email"&&!qw(e.value)?"Invalid email address":null},Ma=({fields:e})=>{const t={};return e.forEach(n=>{const r=n.name,i=Qw({field:n});t[r]=i}),t},Jw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".inviteicon{fill: currentColor;}")),x.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"})),Xw=`
1258
1259
  .gh-portal-back-sitetitle {
1259
1260
  position: absolute;
1260
1261
  top: 35px;
@@ -1443,6 +1444,97 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
1443
1444
  color: var(--grey4);
1444
1445
  }
1445
1446
 
1447
+ .gh-portal-signup-terms {
1448
+ width: 100%;
1449
+ max-width: 420px;
1450
+ margin: 16px auto -8px;
1451
+ }
1452
+
1453
+ .gh-portal-signup-terms label {
1454
+ position: relative;
1455
+ display: flex;
1456
+ gap: 10px;
1457
+ cursor: pointer;
1458
+ }
1459
+
1460
+ .gh-portal-signup-terms input {
1461
+ position: absolute;
1462
+ top: 0;
1463
+ right: 0;
1464
+ bottom: 0;
1465
+ display: none;
1466
+ }
1467
+
1468
+ .gh-portal-signup-terms .checkbox {
1469
+ position: relative;
1470
+ top: 1px;
1471
+ flex-shrink: 0;
1472
+ display: inline-block;
1473
+ float: left;
1474
+ width: 18px;
1475
+ height: 18px;
1476
+ margin: 4px 0 0;
1477
+ background: var(--grey11);
1478
+ border: 1px solid var(--grey11);
1479
+ border-radius: 4px;
1480
+ transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
1481
+ }
1482
+
1483
+ .gh-portal-signup-terms label:hover input:not(:checked) + .checkbox {
1484
+ border-color: var(--grey9);
1485
+ }
1486
+
1487
+ .gh-portal-signup-terms .checkbox:before {
1488
+ content: "";
1489
+ position: absolute;
1490
+ top: 4px;
1491
+ left: 3px;
1492
+ width: 10px;
1493
+ height: 6px;
1494
+ border: 2px solid var(--white);
1495
+ border-top: none;
1496
+ border-right: none;
1497
+ opacity: 0;
1498
+ transition: opacity 0.15s ease-in-out;
1499
+ transform: rotate(-45deg);
1500
+ }
1501
+
1502
+ .gh-portal-signup-terms input:checked + .checkbox {
1503
+ border-color: var(--black);
1504
+ background: var(--black);
1505
+ }
1506
+
1507
+ .gh-portal-signup-terms input:checked + .checkbox:before {
1508
+ opacity: 1;
1509
+ }
1510
+
1511
+ .gh-portal-signup-terms.gh-portal-error .checkbox,
1512
+ .gh-portal-signup-terms.gh-portal-error label:hover input:not(:checked) + .checkbox {
1513
+ border: 1px solid var(--red);
1514
+ background: var(--white);
1515
+ box-shadow: 0 0 0 3px rgb(240, 37, 37, .15);
1516
+ }
1517
+
1518
+ .gh-portal-signup-terms.gh-portal-error input:checked + .checkbox {
1519
+ box-shadow: none;
1520
+ }
1521
+
1522
+ .gh-portal-signup-terms-content {
1523
+ color: var(--grey4);
1524
+ font-size: 1.5rem;
1525
+ line-height: 1.5em;
1526
+ }
1527
+
1528
+ .gh-portal-error .gh-portal-signup-terms-content {
1529
+ line-height: 1.5em;
1530
+ }
1531
+
1532
+ .gh-portal-signup-terms-content a {
1533
+ color: var(--brandcolor);
1534
+ font-weight: 500;
1535
+ text-decoration: none;
1536
+ }
1537
+
1446
1538
  @media (min-width: 480px) {
1447
1539
 
1448
1540
  }
@@ -1460,7 +1552,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
1460
1552
  transform: translateX(-50%);
1461
1553
  }
1462
1554
  }
1463
- `;class Sg extends q.Component{constructor(n){super(n);Z(this,"handleSelectPlan",(n,r)=>{n&&n.preventDefault(),this.timeoutId=setTimeout(()=>{this.setState(i=>({plan:r}))},5)});this.state={name:"",email:"",plan:"free",showNewsletterSelection:!1}}componentDidMount(){const{member:n}=this.context;n&&this.context.onAction("switchPage",{page:"accountHome"}),this.handleSelectedPlan()}componentDidUpdate(){this.handleSelectedPlan()}handleSelectedPlan(){const{site:n,pageQuery:r}=this.context,i=Oa({site:n,pageQuery:r}),o=this.getSelectedPriceId(i,this.state.plan);o!==this.state.plan&&this.setState({plan:o})}componentWillUnmount(){clearTimeout(this.timeoutId)}handleSignup(n){const{site:r,onAction:i}=this.context;n.preventDefault(),this.setState(o=>({errors:zi({fields:this.getInputFields({state:o})})}),()=>{const{name:o,email:a,plan:s,errors:l}=this.state;l&&Object.values(l).filter(d=>!!d).length>0||(Mi({site:r})?this.setState({showNewsletterSelection:!0,pageData:{name:o,email:a,plan:s},errors:{}}):(this.setState({errors:{}}),i("signup",{name:o,email:a,plan:s})))})}handleChooseSignup(n,r){n.preventDefault(),this.setState(i=>({errors:zi({fields:this.getInputFields({state:i})})}),()=>{const{onAction:i,site:o}=this.context,{name:a,email:s,errors:l}=this.state;l&&Object.values(l).filter(d=>!!d).length>0||(Mi({site:o})?this.setState({showNewsletterSelection:!0,pageData:{name:a,email:s,plan:r},errors:{}}):(i("signup",{name:a,email:s,plan:r}),this.setState({errors:{}})))})}handleInputChange(n,r){const i=r.name,o=n.target.value;this.setState({[i]:o})}onKeyDown(n){n.keyCode===13&&this.handleSignup(n)}getSelectedPriceId(n=[],r){return!n||n.length===0?"free":n.some(o=>o.id===r)?r:n[0].id||"free"}getInputFields({state:n,fieldNames:r}){const{site:{portal_name:i},t:o}=this.context,a=n.errors||{},s=[{type:"email",value:n.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",required:!0,tabindex:2,errorMessage:a.email||""}];return i&&s.unshift({type:"text",value:n.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,r&&r.length>0?s.filter(l=>r.includes(l.name)):s}renderSubmitButton(){const{action:n,site:r,brandColor:i,pageQuery:o,t:a}=this.context;if(at({site:r,pageQuery:o}))return null;let s=a("Continue");const l=o==="free"&&Pn({site:r});if(ka({site:r})||l)s=a("Sign up");else return null;let c=!1;n==="signup:running"&&(s=a("Sending..."),c=!0);let d=!1;return n==="signup:failed"&&(s=a("Retry"),d=!0),u(fe,{style:{width:"100%"},retry:d,onClick:f=>this.handleSignup(f),disabled:n==="signup:running",brandColor:i,label:s,isRunning:c,tabIndex:"3"})}renderProducts(){const{site:n,pageQuery:r}=this.context,i=Ca({site:n,pageQuery:r});return u(H,{children:u(wg,{handleChooseSignup:(...o)=>this.handleChooseSignup(...o),products:i,onPlanSelect:this.handleSelectPlan})})}renderFreeTrialMessage(){const{site:n,t:r}=this.context;return Pa({site:n})&&!at({site:n})?u("p",{className:"gh-portal-free-trial-notification","data-testid":"free-trial-notification-text",children:r("After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.")}):null}renderLoginMessage(){const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{children:[this.renderFreeTrialMessage(),b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{"data-test-button":"signin-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})]})}renderForm(){const n=this.getInputFields({state:this.state}),{site:r,pageQuery:i,t:o}=this.context;if(this.state.showNewsletterSelection)return u(Zc,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}});if(at({site:r,pageQuery:i}))return u("section",{children:b("div",{className:"gh-portal-section",children:[u("p",{className:"gh-portal-invite-only-notification","data-testid":"invite-only-notification-text",children:o("This site is invite-only, contact the owner for access.")}),this.renderLoginMessage()]})});const a=Jh({site:r}),s=Zh({site:r}),l=i==="free"&&Pn({site:r}),c=Na({site:r})||l,d=!l&&(a.length||s);return u("section",{className:"gh-portal-signup",children:b("div",{className:"gh-portal-section",children:[u("div",{className:"gh-portal-logged-out-form-container",children:u(ja,{fields:n,onChange:(p,f)=>this.handleInputChange(p,f),onKeyDown:p=>this.onKeyDown(p)})}),b("div",{children:[this.renderProducts(),c?u("div",{className:"gh-portal-btn-container"+(d?" sticky m24":""),children:b("div",{className:"gh-portal-logged-out-form-container",children:[this.renderSubmitButton(),this.renderLoginMessage()]})}):this.renderLoginMessage()]})]})})}renderSiteLogo(){const{site:n,pageQuery:r}=this.context,i=n.icon;return i?u("img",{className:"gh-portal-signup-logo",src:i,alt:n.title}):at({site:n,pageQuery:r})?u(Yw,{className:"gh-portal-icon gh-portal-icon-invitation"}):null}renderFormHeader(){const{site:n}=this.context,r=n.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title","data-testid":"site-title-text",children:r})]})}getClassNames(){const{site:n,pageQuery:r}=this.context,i=Oa({site:n,pageQuery:r}),o=this.getInputFields({state:this.state});let a="",s="";return(i.length<=1||at({site:n}))&&(i.length===1&&i[0].type==="free"||at({site:n,pageQuery:r})?(a=zb({site:n})?"singleplan":"noplan",o.length===1&&(a="single-field"),at({site:n})&&(s="invite-only",a="invite-only")):a="singleplan"),{sectionClass:a,footerClass:s}}render(){let{sectionClass:n}=this.getClassNames();return b(H,{children:[u("div",{className:"gh-portal-back-sitetitle",children:u(kg,{onBack:()=>{this.state.showNewsletterSelection?this.setState({showNewsletterSelection:!1}):this.context.onAction("closePopup")}})}),u(we,{}),b("div",{className:"gh-portal-content signup "+n,children:[this.renderFormHeader(),this.renderForm()]})]})}}Z(Sg,"contextType",R);const Ww=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;}")),x.createElement("rect",{className:"a",x:.75,y:4.5,width:22.5,height:15,rx:1.5,ry:1.5}),x.createElement("line",{className:"a",x1:15.687,y1:9.975,x2:19.5,y2:13.5}),x.createElement("line",{className:"a",x1:8.313,y1:9.975,x2:4.5,y2:13.5}),x.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"})),Vw=`
1555
+ `;class Cm extends q.Component{constructor(n){super(n);Z(this,"handleSelectPlan",(n,r)=>{n&&n.preventDefault(),this.timeoutId=setTimeout(()=>{this.setState(i=>({plan:r}))},5)});this.state={name:"",email:"",plan:"free",showNewsletterSelection:!1,termsCheckboxChecked:!1}}componentDidMount(){const{member:n}=this.context;n&&this.context.onAction("switchPage",{page:"accountHome"}),this.handleSelectedPlan()}componentDidUpdate(){this.handleSelectedPlan()}handleSelectedPlan(){const{site:n,pageQuery:r}=this.context,i=Ra({site:n,pageQuery:r}),o=this.getSelectedPriceId(i,this.state.plan);o!==this.state.plan&&this.setState({plan:o})}componentWillUnmount(){clearTimeout(this.timeoutId)}getFormErrors(n){const i=this.context.site.portal_signup_checkbox_required&&!n.termsCheckboxChecked;return{...Ma({fields:this.getInputFields({state:n})}),checkbox:i}}doSignup(){this.setState(n=>({errors:this.getFormErrors(n)}),()=>{const{site:n,onAction:r}=this.context,{name:i,email:o,plan:a,errors:s}=this.state;s&&Object.values(s).filter(c=>!!c).length>0||(Na({site:n})?this.setState({showNewsletterSelection:!0,pageData:{name:i,email:o,plan:a},errors:{}}):(this.setState({errors:{}}),r("signup",{name:i,email:o,plan:a})))})}handleSignup(n){n.preventDefault(),this.doSignup()}handleChooseSignup(n,r){n.preventDefault(),this.setState({plan:r},()=>{this.doSignup()})}handleInputChange(n,r){const i=r.name,o=n.target.value;this.setState({[i]:o})}onKeyDown(n){n.keyCode===13&&this.handleSignup(n)}getSelectedPriceId(n=[],r){return!n||n.length===0?"free":n.some(o=>o.id===r)?r:n[0].id||"free"}getInputFields({state:n,fieldNames:r}){const{site:{portal_name:i},t:o}=this.context,a=n.errors||{},s=[{type:"email",value:n.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",required:!0,tabindex:2,errorMessage:a.email||""}];return i&&s.unshift({type:"text",value:n.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,r&&r.length>0?s.filter(l=>r.includes(l.name)):s}renderSignupTerms(){var l;const{site:n}=this.context;if(n.portal_signup_terms_html===null||n.portal_signup_terms_html==="")return null;const r=c=>{this.setState({termsCheckboxChecked:c.target.checked})},i=u("div",{className:"gh-portal-signup-terms-content",dangerouslySetInnerHTML:{__html:n.portal_signup_terms_html}}),o=n.portal_signup_checkbox_required?b("label",{children:[u("input",{type:"checkbox",checked:!!this.state.termsCheckboxChecked,required:!0,onChange:r}),u("span",{class:"checkbox"}),i]}):i,s=`gh-portal-signup-terms ${(l=this.state.errors)!=null&&l.checkbox?"gh-portal-error":""}`;return u("div",{className:s,children:o})}renderSubmitButton(){const{action:n,site:r,brandColor:i,pageQuery:o,t:a}=this.context;if(at({site:r,pageQuery:o}))return null;let s=a("Continue");const l=o==="free"&&En({site:r});if(_a({site:r})||l)s=a("Sign up");else return null;let c=!1;n==="signup:running"&&(s=a("Sending..."),c=!0);let p=!1;return n==="signup:failed"&&(s=a("Retry"),p=!0),u(he,{style:{width:"100%"},retry:p,onClick:f=>this.handleSignup(f),disabled:n==="signup:running",brandColor:i,label:s,isRunning:c,tabIndex:"3"})}renderProducts(){const{site:n,pageQuery:r}=this.context,i=Ca({site:n,pageQuery:r});return u(Y,{children:u(km,{handleChooseSignup:(...o)=>this.handleChooseSignup(...o),products:i,onPlanSelect:this.handleSelectPlan})})}renderFreeTrialMessage(){const{site:n,t:r}=this.context;return Pa({site:n})&&!at({site:n})?u("p",{className:"gh-portal-free-trial-notification","data-testid":"free-trial-notification-text",children:r("After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.")}):null}renderLoginMessage(){const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{children:[this.renderFreeTrialMessage(),b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{"data-test-button":"signin-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})]})}renderForm(){const n=this.getInputFields({state:this.state}),{site:r,pageQuery:i,t:o}=this.context;if(this.state.showNewsletterSelection)return u(tu,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}});if(at({site:r,pageQuery:i}))return u("section",{children:b("div",{className:"gh-portal-section",children:[u("p",{className:"gh-portal-invite-only-notification","data-testid":"invite-only-notification-text",children:o("This site is invite-only, contact the owner for access.")}),this.renderLoginMessage()]})});const a=Zh({site:r}),s=tm({site:r}),l=i==="free"&&En({site:r}),c=Ta({site:r})||l,p=!l&&(a.length||s);return u("section",{className:"gh-portal-signup",children:b("div",{className:"gh-portal-section",children:[u("div",{className:"gh-portal-logged-out-form-container",children:u(Aa,{fields:n,onChange:(d,f)=>this.handleInputChange(d,f),onKeyDown:d=>this.onKeyDown(d)})}),b("div",{children:[this.renderProducts(),this.renderSignupTerms(),c?u("div",{className:"gh-portal-btn-container"+(p?" sticky m24":""),children:b("div",{className:"gh-portal-logged-out-form-container",children:[this.renderSubmitButton(),this.renderLoginMessage()]})}):this.renderLoginMessage()]})]})})}renderSiteLogo(){const{site:n,pageQuery:r}=this.context,i=n.icon;return i?u("img",{className:"gh-portal-signup-logo",src:i,alt:n.title}):at({site:n,pageQuery:r})?u(Jw,{className:"gh-portal-icon gh-portal-icon-invitation"}):null}renderFormHeader(){const{site:n}=this.context,r=n.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title","data-testid":"site-title-text",children:r})]})}getClassNames(){const{site:n,pageQuery:r}=this.context,i=Ra({site:n,pageQuery:r}),o=this.getInputFields({state:this.state});let a="",s="";return(i.length<=1||at({site:n}))&&(i.length===1&&i[0].type==="free"||at({site:n,pageQuery:r})?(a=Wb({site:n})?"singleplan":"noplan",o.length===1&&(a="single-field"),at({site:n})&&(s="invite-only",a="invite-only")):a="singleplan"),{sectionClass:a,footerClass:s}}render(){let{sectionClass:n}=this.getClassNames();return b(Y,{children:[u("div",{className:"gh-portal-back-sitetitle",children:u(Em,{onBack:()=>{this.state.showNewsletterSelection?this.setState({showNewsletterSelection:!1}):this.context.onAction("closePopup")}})}),u(we,{}),b("div",{className:"gh-portal-content signup "+n,children:[this.renderFormHeader(),this.renderForm()]})]})}}Z(Cm,"contextType",R);const Zw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;}")),x.createElement("rect",{className:"a",x:.75,y:4.5,width:22.5,height:15,rx:1.5,ry:1.5}),x.createElement("line",{className:"a",x1:15.687,y1:9.975,x2:19.5,y2:13.5}),x.createElement("line",{className:"a",x1:8.313,y1:9.975,x2:4.5,y2:13.5}),x.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"})),ex=`
1464
1556
  .gh-portal-icon-envelope {
1465
1557
  width: 44px;
1466
1558
  margin: 12px 0 10px;
@@ -1477,7 +1569,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
1477
1569
  text-align: center;
1478
1570
  margin-bottom: 30px;
1479
1571
  }
1480
- `;class Eg extends q.Component{renderFormHeader(){const{t}=this.context;let n=t("Now check your email!"),r=t("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 this.context.lastPage==="signup"&&(n=t("Now check your email!"),r=t("To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!")),b("section",{className:"gh-portal-inbox-notification",children:[b("header",{className:"gh-portal-header",children:[u(Ww,{className:"gh-portal-icon gh-portal-icon-envelope"}),u("h2",{className:"gh-portal-main-title",children:n})]}),u("p",{children:r})]})}renderLoginMessage(){const{t}=this.context;return u(H,{children:u("div",{style:{color:"#1d1d1d",fontWeight:"bold",cursor:"pointer"},onClick:()=>this.context.onAction("switchPage",{page:"signin"}),children:t("Back to Log in")})})}handleClose(t){this.context.onAction("closePopup")}renderCloseButton(){const{t}=this.context,n=t("Close");return u(fe,{style:{width:"100%"},onClick:r=>this.handleClose(r),brandColor:this.context.brandColor,label:n})}render(){return b("div",{className:"gh-portal-content",children:[u(we,{}),this.renderFormHeader(),this.renderCloseButton()]})}}Z(Eg,"contextType",R);const Kw=`
1572
+ `;class Pm extends q.Component{renderFormHeader(){const{t}=this.context;let n=t("Now check your email!"),r=t("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 this.context.lastPage==="signup"&&(n=t("Now check your email!"),r=t("To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!")),b("section",{className:"gh-portal-inbox-notification",children:[b("header",{className:"gh-portal-header",children:[u(Zw,{className:"gh-portal-icon gh-portal-icon-envelope"}),u("h2",{className:"gh-portal-main-title",children:n})]}),u("p",{children:r})]})}renderLoginMessage(){const{t}=this.context;return u(Y,{children:u("div",{style:{color:"#1d1d1d",fontWeight:"bold",cursor:"pointer"},onClick:()=>this.context.onAction("switchPage",{page:"signin"}),children:t("Back to Log in")})})}handleClose(t){this.context.onAction("closePopup")}renderCloseButton(){const{t}=this.context,n=t("Close");return u(he,{style:{width:"100%"},onClick:r=>this.handleClose(r),brandColor:this.context.brandColor,label:n})}render(){return b("div",{className:"gh-portal-content",children:[u(we,{}),this.renderFormHeader(),this.renderCloseButton()]})}}Z(Pm,"contextType",R);const tx=`
1481
1573
  .gh-portal-popupnotification {
1482
1574
  position: absolute;
1483
1575
  top: 8px;
@@ -1570,7 +1662,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
1570
1662
  opacity: 0;
1571
1663
  }
1572
1664
  }
1573
- `,qw=({hide:e=!1,onClose:t})=>e?null:u(Qc,{className:"closeicon",alt:"Close",onClick:t}),Qw=({message:e,site:t})=>{const r=`mailto:${Ra({site:t})}`;return e?u("p",{children:e}):b("p",{children:[" An unexpected error occured. Please try again or ",u("a",{href:r,onClick:()=>{r&&window.open(r)},children:"contact support"})," if the error persists."]})};class Cg extends q.Component{constructor(){super(),this.state={className:""}}onAnimationEnd(t){const{popupNotification:n}=this.context,{type:r}=n||{};t.animationName==="popupnotification-slideout"&&(r==="stripe:billing-update"&&ug(["stripe"]),this.context.onAction("clearPopupNotification"))}closeNotification(t){this.context.onAction("clearPopupNotification")}componentDidUpdate(){const{popupNotification:t}=this.context;t.count!==this.state.notificationCount&&(clearTimeout(this.timeoutId),this.handlePopupNotification({popupNotification:t}))}handlePopupNotification({popupNotification:t}){if(this.setState({notificationCount:t.count}),t.autoHide){const{duration:n=2600}=t;this.timeoutId=setTimeout(()=>{this.setState(r=>r.className!=="slideout"?{className:"slideout",notificationCount:t.count}:{})},n)}}componentDidMount(){const{popupNotification:t}=this.context;this.handlePopupNotification({popupNotification:t})}componentWillUnmount(){clearTimeout(this.timeoutId)}render(){const{popupNotification:t,site:n}=this.context,{className:r}=this.state,{type:i,status:o,closeable:a,message:s}=t,l=o?` ${o}`:"",c=r?` ${r}`:"";return b("div",{className:`gh-portal-popupnotification${l}${c}`,onAnimationEnd:d=>this.onAnimationEnd(d),children:[o==="error"?u(Jc,{className:"gh-portal-popupnotification-icon error",alt:""}):u(cg,{className:"gh-portal-popupnotification-icon success",alt:""}),u(Qw,{type:i,status:o,message:s,site:n}),u(qw,{hide:!a,onClose:d=>this.closeNotification(d)})]})}}Z(Cg,"contextType",R);const Jw=({site:e})=>`
1665
+ `,nx=({hide:e=!1,onClose:t})=>e?null:u(Xc,{className:"closeicon",alt:"Close",onClick:t}),rx=({message:e,site:t})=>{const r=`mailto:${Oa({site:t})}`;return e?u("p",{children:e}):b("p",{children:[" An unexpected error occured. Please try again or ",u("a",{href:r,onClick:()=>{r&&window.open(r)},children:"contact support"})," if the error persists."]})};class Nm extends q.Component{constructor(){super(),this.state={className:""}}onAnimationEnd(t){const{popupNotification:n}=this.context,{type:r}=n||{};t.animationName==="popupnotification-slideout"&&(r==="stripe:billing-update"&&pm(["stripe"]),this.context.onAction("clearPopupNotification"))}closeNotification(t){this.context.onAction("clearPopupNotification")}componentDidUpdate(){const{popupNotification:t}=this.context;t.count!==this.state.notificationCount&&(clearTimeout(this.timeoutId),this.handlePopupNotification({popupNotification:t}))}handlePopupNotification({popupNotification:t}){if(this.setState({notificationCount:t.count}),t.autoHide){const{duration:n=2600}=t;this.timeoutId=setTimeout(()=>{this.setState(r=>r.className!=="slideout"?{className:"slideout",notificationCount:t.count}:{})},n)}}componentDidMount(){const{popupNotification:t}=this.context;this.handlePopupNotification({popupNotification:t})}componentWillUnmount(){clearTimeout(this.timeoutId)}render(){const{popupNotification:t,site:n}=this.context,{className:r}=this.state,{type:i,status:o,closeable:a,message:s}=t,l=o?` ${o}`:"",c=r?` ${r}`:"";return b("div",{className:`gh-portal-popupnotification${l}${c}`,onAnimationEnd:p=>this.onAnimationEnd(p),children:[o==="error"?u(Zc,{className:"gh-portal-popupnotification-icon error",alt:""}):u(dm,{className:"gh-portal-popupnotification-icon success",alt:""}),u(rx,{type:i,status:o,message:s,site:n}),u(nx,{hide:!a,onClose:p=>this.closeNotification(p)})]})}}Z(Nm,"contextType",R);const ix=({site:e})=>`
1574
1666
  .gh-portal-offer {
1575
1667
  padding-bottom: 0;
1576
1668
  overflow: unset;
@@ -1695,7 +1787,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
1695
1787
  .gh-portal-cancel {
1696
1788
  white-space: nowrap;
1697
1789
  }
1698
- `;class Pg extends q.Component{constructor(t,n){var r,i;super(t,n),this.state={name:((r=n==null?void 0:n.member)==null?void 0:r.name)||"",email:((i=n==null?void 0:n.member)==null?void 0:i.email)||"",plan:"free",showNewsletterSelection:!1}}getInputFields({state:t,fieldNames:n}){const{portal_name:r}=this.context.site,{member:i,t:o}=this.context,a=t.errors||{},s=[{type:"email",value:(i==null?void 0:i.email)||t.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",disabled:!!i,required:!0,tabindex:2,errorMessage:a.email||""}];let l=!!r;return i&&!(i!=null&&i.name)&&(l=!1),l&&s.unshift({type:"text",value:(i==null?void 0:i.name)||t.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",disabled:!!i,required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,n&&n.length>0?s.filter(c=>n.includes(c.name)):s}onKeyDown(t){t.keyCode===13&&this.handleSignup(t)}handleSignup(t){t.preventDefault();const{pageData:n,site:r}=this.context;if(!n)return null;const i=wr({site:r,productId:n.tier.id}),o=n.cadence==="month"?i.monthlyPrice:i.yearlyPrice;this.setState(a=>({errors:zi({fields:this.getInputFields({state:a})})}),()=>{const{onAction:a}=this.context,{name:s,email:l,errors:c}=this.state;if(!(c&&Object.values(c).filter(p=>!!p).length>0)){const p={name:s,email:l,plan:o==null?void 0:o.id,offerId:n==null?void 0:n.id};Mi({site:r})?this.setState({showNewsletterSelection:!0,pageData:p,errors:{}}):(a("signup",p),this.setState({errors:{}}))}})}handleInputChange(t,n){const r=n.name,i=t.target.value;this.setState({[r]:i})}renderSiteLogo(){const{site:t}=this.context,n=t.icon;return n?u("img",{className:"gh-portal-signup-logo",src:n,alt:t.title}):null}renderFormHeader(){const{site:t}=this.context,n=t.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h2",{className:"gh-portal-main-title",children:n})]})}renderForm(){const t=this.getInputFields({state:this.state});return this.state.showNewsletterSelection?u(Zc,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}}):u("section",{children:u("div",{className:"gh-portal-section",children:u(ja,{fields:t,onChange:(n,r)=>this.handleInputChange(n,r),onKeyDown:n=>this.onKeyDown(n)})})})}renderSubmitButton(){const{action:t,brandColor:n,t:r}=this.context,{pageData:i}=this.context;let o=r("Continue");i.type==="trial"&&(o=r("Start {{amount}}-day free trial",{amount:i.amount}));let a=!1;t==="signup:running"&&(o=r("Sending..."),a=!0);let s=!1;return t==="signup:failed"&&(o=r("Retry"),s=!0),u(fe,{style:{width:"100%"},retry:s,onClick:c=>this.handleSignup(c),disabled:t==="signup:running",brandColor:n,label:o,isRunning:a,tabindex:"3",classes:"sticky bottom"})}renderLoginMessage(){const{member:t}=this.context;if(t)return null;const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})}renderOfferTag(){const{pageData:t}=this.context;return t.amount<=0?u(H,{}):t.type==="fixed"?b("h5",{className:"gh-portal-discount-label",children:[de(t.currency),t.amount/100," off"]}):t.type==="trial"?b("h5",{className:"gh-portal-discount-label",children:[t.amount," days free"]}):b("h5",{className:"gh-portal-discount-label",children:[t.amount,"% off"]})}renderBenefits({product:t}){const n=t.benefits||[];if(!(n!=null&&n.length))return;const r=n.map((i,o)=>b("div",{className:"gh-portal-product-benefit",children:[u(hg,{className:"gh-portal-benefit-checkmark"}),u("div",{className:"gh-portal-benefit-title",children:i.name})]},`${i.name}-${o}`));return u("div",{className:"gh-portal-product-benefits",children:r})}getOriginalPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=this.renderRoundedPrice(r.amount/100);return`${de(r.currency)}${i}/${t.cadence}`}getUpdatedPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=r.amount;let o;return t.type==="fixed"&&La(t.currency,r.currency)?(o=(i-t.amount)/100,o>0?o:0):t.type==="percent"?(o=(i-i*t.amount/100)/100,o):i/100}renderRoundedPrice(t){if(t%1!==0){const n=Math.round(t*100)/100;return Number(n).toFixed(2)}return t}getOffAmount({offer:t}){return t.type==="fixed"?`${de(t.currency)}${t.amount/100}`:t.type==="percent"?`${t.amount}%`:t.type==="trial"?t.amount:""}renderOfferMessage({offer:t,product:n,price:r}){const i=t.duration;let o="";const a=this.getOriginalPrice({offer:t,product:n});let s="";if(i==="once")o=`for first ${t.cadence}`,s=`Renews at ${a}.`;else if(i==="forever")o="forever";else if(i==="repeating"){const l=t.duration_in_months||"";l===1?o="for first month":o=`for first ${l} months`,s=`Renews at ${a}.`}return i==="trial"?b("p",{className:"footnote",children:["Try free for ",t.amount," days, then ",a,". ",u("span",{class:"gh-portal-cancel",children:"Cancel anytime."})]}):b("p",{className:"footnote",children:[this.getOffAmount({offer:t})," off ",o,". ",s]})}renderProductLabel({product:t,offer:n}){const{site:r,t:i}=this.context;return Sa({site:r})?b("h4",{className:"gh-portal-plan-name",children:[t.name," - ",n.cadence==="month"?i("Monthly"):i("Yearly")]}):u("h4",{className:"gh-portal-plan-name",children:n.cadence==="month"?i("Monthly"):i("Yearly")})}renderUpdatedTierPrice({offer:t,currencyClass:n,updatedPrice:r,price:i}){return t.type==="trial"?u("div",{className:"gh-portal-product-card-pricecontainer offer-type-trial",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:de(i.currency)}),u("span",{className:"amount",children:_r(this.renderRoundedPrice(r))})]})}):u("div",{className:"gh-portal-product-card-pricecontainer",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:de(i.currency)}),u("span",{className:"amount",children:_r(this.renderRoundedPrice(r))})]})})}renderOldTierPrice({offer:t,price:n}){return t.type==="trial"?null:b("div",{className:"gh-portal-offer-oldprice",children:[de(n.currency)," ",_r(n.amount/100)]})}renderProductCard({product:t,offer:n,currencyClass:r,updatedPrice:i,price:o,benefits:a}){const{t:s}=this.context;return this.state.showNewsletterSelection?null:b(H,{children:[u("div",{className:"gh-portal-product-card top",children:b("div",{className:"gh-portal-product-card-header",children:[b("h4",{className:"gh-portal-product-name",children:[t.name," - ",n.cadence==="month"?s("Monthly"):s("Yearly")]}),this.renderOldTierPrice({offer:n,price:o}),this.renderUpdatedTierPrice({offer:n,currencyClass:r,updatedPrice:i,price:o}),this.renderOfferMessage({offer:n,product:t,price:o})]})}),b("div",{children:[u("div",{className:"gh-portal-product-card bottom",children:b("div",{className:"gh-portal-product-card-detaildata",children:[t.description?u("div",{className:"gh-portal-product-description",children:t.description}):"",a.length?this.renderBenefits({product:t}):""]})}),u("div",{className:"gh-portal-btn-container sticky m32",children:this.renderSubmitButton()}),this.renderLoginMessage()]})]})}render(){const{pageData:t,site:n}=this.context;if(!t)return null;const r=wr({site:n,productId:t.tier.id});if(!r)return null;const i=t.cadence==="month"?r.monthlyPrice:r.yearlyPrice,o=this.getUpdatedPrice({offer:t,product:r}),a=r.benefits||[],s=de(i.currency).length>1?"long":"";return u(H,{children:b("div",{className:"gh-portal-content gh-portal-offer",children:[u(we,{}),this.renderFormHeader(),b("div",{className:"gh-portal-offer-bar",children:[b("div",{className:"gh-portal-offer-title",children:[t.display_title?u("h4",{children:t.display_title}):u("h4",{className:"placeholder",children:"Black Friday"}),this.renderOfferTag()]}),t.display_description?u("p",{children:t.display_description}):""]}),this.renderForm(),this.renderProductCard({product:r,offer:t,currencyClass:s,updatedPrice:o,price:i,benefits:a})]})})}}Z(Pg,"contextType",R);const Ng=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.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"})),Tg=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.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"})),Xw=e=>x.createElement("svg",{width:96,height:56,viewBox:"0 0 96 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M9.00004 34.973C9.66499 35.3085 10.3322 35.6418 11.0017 35.9729C23.3405 42.0995 22.7366 40.9062 33.3011 40.9062C37.7115 40.9062 39.954 38.0862 41.2567 33.9563V33.9296L44.4627 23.4164V23.3964C44.6151 22.9038 44.6477 22.3828 44.5578 21.8756C44.4679 21.3683 44.2581 20.8888 43.9453 20.4757C43.6324 20.0626 43.2253 19.7275 42.7565 19.4972C42.2878 19.2669 41.7706 19.1479 41.2466 19.1498H33.0026C32.489 19.1484 31.9825 19.0325 31.5211 18.8108C31.0598 18.5891 30.6558 18.2673 30.3394 17.8698C30.025 17.4718 29.8084 17.0078 29.7066 16.5141C29.6048 16.0203 29.6205 15.51 29.7525 15.0232L31.235 9.5266C31.3503 9.09972 31.3609 8.65208 31.2659 8.2204C31.171 7.78873 30.9732 7.38533 30.6888 7.0433C30.4078 6.70494 30.0511 6.43489 29.6465 6.2542C29.2418 6.07351 28.8002 5.98706 28.3559 6.00157C27.9117 6.01609 27.4769 6.13118 27.0854 6.33789C26.6938 6.5446 26.3562 6.83734 26.0987 7.19329L17.8784 19.6098C17.5652 20.0388 17.1527 20.3885 16.6749 20.6301C16.1971 20.8718 15.6678 20.9985 15.1304 20.9998H9.00004M9 17.6666L9 40.9997",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M86.2148 20.027C85.5499 19.6915 84.8826 19.3582 84.2132 19.0271C71.8743 12.9005 72.4782 14.0938 61.9137 14.0938C57.5034 14.0938 55.2609 16.9138 53.9581 21.0437V21.0704L50.7521 31.5836V31.6036C50.5997 32.0962 50.5672 32.6172 50.657 33.1244C50.7469 33.6317 50.9567 34.1112 51.2695 34.5243C51.5824 34.9374 51.9896 35.2725 52.4583 35.5028C52.927 35.7331 53.4442 35.8521 53.9683 35.8502H62.2123C62.7258 35.8516 63.2324 35.9675 63.6937 36.1892C64.155 36.4109 64.5591 36.7327 64.8754 37.1302C65.1899 37.5282 65.4064 37.9922 65.5082 38.4859C65.61 38.9797 65.5943 39.49 65.4624 39.9768L63.9798 45.4734C63.8646 45.9003 63.854 46.3479 63.9489 46.7796C64.0439 47.2113 64.2416 47.6147 64.526 47.9567C64.807 48.2951 65.1637 48.5651 65.5684 48.7458C65.973 48.9265 66.4147 49.0129 66.8589 48.9984C67.3031 48.9839 67.7379 48.8688 68.1295 48.6621C68.521 48.4554 68.8587 48.1627 69.1162 47.8067L77.3364 35.3902C77.6497 34.9612 78.0622 34.6115 78.5399 34.3699C79.0177 34.1282 79.547 34.0015 80.0844 34.0002H86.2148M86.2148 37.3334V14.0003",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}));class kt extends Error{static async fromApiResponse(t){if(t.status===400||t.status===429)try{const n=await t.json();if(n.errors&&Array.isArray(n.errors)&&n.errors.length>0&&n.errors[0].message)return new kt(n.errors[0].message)}catch{return!1}}static getMessageFromError(t,n){return t instanceof kt?t.message:n}}function Aa({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){const r="members/api";function i({type:l,resource:c}){if(l==="members")return`${e.replace(/\/$/,"")}/${r}/${c}/`}function o({resource:l,params:c=""}){return t&&n?`${t.replace(/\/$/,"")}/${l}/?key=${n}&limit=all${c}`:""}function a({url:l,method:c="GET",headers:d={},credentials:p=void 0,body:f=void 0}){return fetch(l,{method:c,headers:d,credentials:p,body:f})}const s={};return s.site={read(){const l=i({type:"members",resource:"site"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},newsletters(){const l=o({resource:"newsletters"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},tiers(){const l=o({resource:"tiers",params:"&include=monthly_price,yearly_price,benefits"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},settings(){const l=o({resource:"settings"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},offer({offerId:l}){const c=o({resource:`offers/${l}`});return a({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to fetch offer data")})}},s.feedback={async add({uuid:l,postId:c,score:d}){let p=i({type:"members",resource:"feedback"});p=p+`?uuid=${l}`;const y=await a({url:p,method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({feedback:[{post_id:c,score:d}]})});if(y.ok)return y.json();throw await kt.fromApiResponse(y)??new Error("Failed to save feedback")}},s.member={identity(){const l=i({type:"members",resource:"session"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const l=i({type:"members",resource:"member"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:l,subscribed:c,newsletters:d,enableCommentNotifications:p}){const f=i({type:"members",resource:"member"}),y={name:l,subscribed:c,newsletters:d};return p!==void 0&&(y.enable_comment_notifications=p),a({url:f,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(y)}).then(function(v){return v.ok?v.json():null})},deleteSuppression(){const l=i({type:"members",resource:"member/suppression"});return a({url:l,method:"DELETE"}).then(function(c){if(!c.ok)throw new Error("Your email has failed to resubscribe, please try again");return!0})},async sendMagicLink({email:l,emailType:c,labels:d,name:p,oldEmail:f,newsletters:y}){const v=i({type:"members",resource:"send-magic-link"}),k={name:p,email:l,newsletters:y,oldEmail:f,emailType:c,labels:d,requestSrc:"portal"},m=Da();m&&(k.urlHistory=m);const h=await a({url:v,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)});if(h.ok)return"Success";{const g=await kt.fromApiResponse(h);throw g||new Error("Failed to send magic link email")}},signout(){const l=i({type:"members",resource:"session"});return a({url:l,method:"DELETE"}).then(function(c){if(c.ok)return window.location.replace(e),"Success";throw new Error("Failed to signout")})},async newsletters({uuid:l}){let c=i({type:"members",resource:"member/newsletters"});return c=c+`?uuid=${l}`,a({url:c,credentials:"same-origin"}).then(function(d){return!d.ok||d.status===204?null:d.json()})},async updateNewsletters({uuid:l,newsletters:c,enableCommentNotifications:d}){let p=i({type:"members",resource:"member/newsletters"});p=p+`?uuid=${l}`;const f={newsletters:c};return d!==void 0&&(f.enable_comment_notifications=d),a({url:p,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(function(y){if(y.ok)return y.json();throw new Error("Failed to update email preferences")})},async updateEmailAddress({email:l}){const c=await s.member.identity(),d=i({type:"members",resource:"member/email"});return a({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,identity:c})}).then(function(f){if(f.ok)return"Success";throw new Error("Failed to send email address verification email")})},async checkoutPlan({plan:l,tierId:c,cadence:d,cancelUrl:p,successUrl:f,email:y,name:v,offerId:k,newsletters:m,metadata:h={}}={}){var O,L;const g=new URL(e),w=await s.member.identity(),_=i({type:"members",resource:"create-stripe-checkout-session"});if(!p){const N=window.location.href.startsWith(g.href)?new URL(window.location.href):new URL(e);N.searchParams.set("stripe","cancel"),p=N.href}const C={name:v,newsletters:JSON.stringify(m),requestSrc:"portal",fp_tid:(L=(O=window.FPROM||window.$FPROM)==null?void 0:O.data)==null?void 0:L.tid,urlHistory:Da(),...h},S={priceId:k?null:l,offerId:k,identity:w,metadata:C,successUrl:f,cancelUrl:p};return y&&(S.customerEmail=y),c&&d&&(delete S.priceId,S.tierId=k?null:c,S.cadence=k?null:d),a({url:_,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)}).then(async function(N){var z,Ye;if(!N.ok){const te=await N.json(),ne=((Ye=(z=te==null?void 0:te.errors)==null?void 0:z[0])==null?void 0:Ye.message)||"Failed to signup, please try again.";throw new Error(ne)}return N.json()}).then(function(N){return N.url?window.location.assign(N.url):window.Stripe(N.publicKey).redirectToCheckout({sessionId:N.sessionId}).then(function(Ye){if(Ye.error)throw new Error(Ye.error.message)})})},async editBilling({successUrl:l,cancelUrl:c,subscriptionId:d}={}){const p=new URL(e),f=await s.member.identity(),y=i({type:"members",resource:"create-stripe-update-session"});if(!l){const v=new URL(e);v.searchParams.set("stripe","billing-update-success"),l=v.href}if(!c){const v=window.location.href.startsWith(p.href)?new URL(window.location.href):new URL(e);v.searchParams.set("stripe","billing-update-cancel"),c=v.href}return a({url:y,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:f,subscription_id:d,successUrl:l,cancelUrl:c})}).then(function(v){if(!v.ok)throw new Error("Unable to create stripe checkout session");return v.json()}).then(function(v){return window.Stripe(v.publicKey).redirectToCheckout({sessionId:v.sessionId})}).then(function(v){if(v.error)throw new Error(v.error.message)}).catch(function(v){throw v})},async updateSubscription({subscriptionId:l,tierId:c,cadence:d,planId:p,smartCancel:f,cancelAtPeriodEnd:y,cancellationReason:v}){const k=await s.member.identity(),m=i({type:"members",resource:"subscriptions"})+l+"/",h={smart_cancel:f,cancel_at_period_end:y,cancellation_reason:v,identity:k,priceId:p};return c&&d&&(delete h.priceId,h.tierId=c,h.cadence=d),a({url:m,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)})}},s.init=async()=>{let[l]=await Promise.all([s.member.sessionData()]),c={},d=[],p=[],f={};try{[{settings:f},{tiers:p},{newsletters:d}]=await Promise.all([s.site.settings(),s.site.tiers(),s.site.newsletters()]),c={...f,newsletters:d,tiers:Zb({tiers:p})}}catch{}return c=Fb({site:c}),{site:c,member:l}},s}class Og extends q.Component{render(){return u("div",{style:{display:"flex",flexDirection:"column",color:"#313131"},children:u("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",height:"50px"},children:u(Fi,{className:"gh-portal-loadingicon dark"})})})}}const Zw=`
1790
+ `;class Tm extends q.Component{constructor(t,n){var r,i;super(t,n),this.state={name:((r=n==null?void 0:n.member)==null?void 0:r.name)||"",email:((i=n==null?void 0:n.member)==null?void 0:i.email)||"",plan:"free",showNewsletterSelection:!1}}getInputFields({state:t,fieldNames:n}){const{portal_name:r}=this.context.site,{member:i,t:o}=this.context,a=t.errors||{},s=[{type:"email",value:(i==null?void 0:i.email)||t.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",disabled:!!i,required:!0,tabindex:2,errorMessage:a.email||""}];let l=!!r;return i&&!(i!=null&&i.name)&&(l=!1),l&&s.unshift({type:"text",value:(i==null?void 0:i.name)||t.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",disabled:!!i,required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,n&&n.length>0?s.filter(c=>n.includes(c.name)):s}onKeyDown(t){t.keyCode===13&&this.handleSignup(t)}handleSignup(t){t.preventDefault();const{pageData:n,site:r}=this.context;if(!n)return null;const i=br({site:r,productId:n.tier.id}),o=n.cadence==="month"?i.monthlyPrice:i.yearlyPrice;this.setState(a=>({errors:Ma({fields:this.getInputFields({state:a})})}),()=>{const{onAction:a}=this.context,{name:s,email:l,errors:c}=this.state;if(!(c&&Object.values(c).filter(d=>!!d).length>0)){const d={name:s,email:l,plan:o==null?void 0:o.id,offerId:n==null?void 0:n.id};Na({site:r})?this.setState({showNewsletterSelection:!0,pageData:d,errors:{}}):(a("signup",d),this.setState({errors:{}}))}})}handleInputChange(t,n){const r=n.name,i=t.target.value;this.setState({[r]:i})}renderSiteLogo(){const{site:t}=this.context,n=t.icon;return n?u("img",{className:"gh-portal-signup-logo",src:n,alt:t.title}):null}renderFormHeader(){const{site:t}=this.context,n=t.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h2",{className:"gh-portal-main-title",children:n})]})}renderForm(){const t=this.getInputFields({state:this.state});return this.state.showNewsletterSelection?u(tu,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}}):u("section",{children:u("div",{className:"gh-portal-section",children:u(Aa,{fields:t,onChange:(n,r)=>this.handleInputChange(n,r),onKeyDown:n=>this.onKeyDown(n)})})})}renderSubmitButton(){const{action:t,brandColor:n,t:r}=this.context,{pageData:i}=this.context;let o=r("Continue");i.type==="trial"&&(o=r("Start {{amount}}-day free trial",{amount:i.amount}));let a=!1;t==="signup:running"&&(o=r("Sending..."),a=!0);let s=!1;return t==="signup:failed"&&(o=r("Retry"),s=!0),u(he,{style:{width:"100%"},retry:s,onClick:c=>this.handleSignup(c),disabled:t==="signup:running",brandColor:n,label:o,isRunning:a,tabindex:"3",classes:"sticky bottom"})}renderLoginMessage(){const{member:t}=this.context;if(t)return null;const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})}renderOfferTag(){const{pageData:t}=this.context;return t.amount<=0?u(Y,{}):t.type==="fixed"?b("h5",{className:"gh-portal-discount-label",children:[fe(t.currency),t.amount/100," off"]}):t.type==="trial"?b("h5",{className:"gh-portal-discount-label",children:[t.amount," days free"]}):b("h5",{className:"gh-portal-discount-label",children:[t.amount,"% off"]})}renderBenefits({product:t}){const n=t.benefits||[];if(!(n!=null&&n.length))return;const r=n.map((i,o)=>b("div",{className:"gh-portal-product-benefit",children:[u(gm,{className:"gh-portal-benefit-checkmark"}),u("div",{className:"gh-portal-benefit-title",children:i.name})]},`${i.name}-${o}`));return u("div",{className:"gh-portal-product-benefits",children:r})}getOriginalPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=this.renderRoundedPrice(r.amount/100);return`${fe(r.currency)}${i}/${t.cadence}`}getUpdatedPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=r.amount;let o;return t.type==="fixed"&&Da(t.currency,r.currency)?(o=(i-t.amount)/100,o>0?o:0):t.type==="percent"?(o=(i-i*t.amount/100)/100,o):i/100}renderRoundedPrice(t){if(t%1!==0){const n=Math.round(t*100)/100;return Number(n).toFixed(2)}return t}getOffAmount({offer:t}){return t.type==="fixed"?`${fe(t.currency)}${t.amount/100}`:t.type==="percent"?`${t.amount}%`:t.type==="trial"?t.amount:""}renderOfferMessage({offer:t,product:n,price:r}){const i=t.duration;let o="";const a=this.getOriginalPrice({offer:t,product:n});let s="";if(i==="once")o=`for first ${t.cadence}`,s=`Renews at ${a}.`;else if(i==="forever")o="forever";else if(i==="repeating"){const l=t.duration_in_months||"";l===1?o="for first month":o=`for first ${l} months`,s=`Renews at ${a}.`}return i==="trial"?b("p",{className:"footnote",children:["Try free for ",t.amount," days, then ",a,". ",u("span",{class:"gh-portal-cancel",children:"Cancel anytime."})]}):b("p",{className:"footnote",children:[this.getOffAmount({offer:t})," off ",o,". ",s]})}renderProductLabel({product:t,offer:n}){const{site:r,t:i}=this.context;return Sa({site:r})?b("h4",{className:"gh-portal-plan-name",children:[t.name," - ",n.cadence==="month"?i("Monthly"):i("Yearly")]}):u("h4",{className:"gh-portal-plan-name",children:n.cadence==="month"?i("Monthly"):i("Yearly")})}renderUpdatedTierPrice({offer:t,currencyClass:n,updatedPrice:r,price:i}){return t.type==="trial"?u("div",{className:"gh-portal-product-card-pricecontainer offer-type-trial",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:fe(i.currency)}),u("span",{className:"amount",children:xr(this.renderRoundedPrice(r))})]})}):u("div",{className:"gh-portal-product-card-pricecontainer",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:fe(i.currency)}),u("span",{className:"amount",children:xr(this.renderRoundedPrice(r))})]})})}renderOldTierPrice({offer:t,price:n}){return t.type==="trial"?null:b("div",{className:"gh-portal-offer-oldprice",children:[fe(n.currency)," ",xr(n.amount/100)]})}renderProductCard({product:t,offer:n,currencyClass:r,updatedPrice:i,price:o,benefits:a}){const{t:s}=this.context;return this.state.showNewsletterSelection?null:b(Y,{children:[u("div",{className:"gh-portal-product-card top",children:b("div",{className:"gh-portal-product-card-header",children:[b("h4",{className:"gh-portal-product-name",children:[t.name," - ",n.cadence==="month"?s("Monthly"):s("Yearly")]}),this.renderOldTierPrice({offer:n,price:o}),this.renderUpdatedTierPrice({offer:n,currencyClass:r,updatedPrice:i,price:o}),this.renderOfferMessage({offer:n,product:t,price:o})]})}),b("div",{children:[u("div",{className:"gh-portal-product-card bottom",children:b("div",{className:"gh-portal-product-card-detaildata",children:[t.description?u("div",{className:"gh-portal-product-description",children:t.description}):"",a.length?this.renderBenefits({product:t}):""]})}),u("div",{className:"gh-portal-btn-container sticky m32",children:this.renderSubmitButton()}),this.renderLoginMessage()]})]})}render(){const{pageData:t,site:n}=this.context;if(!t)return null;const r=br({site:n,productId:t.tier.id});if(!r)return null;const i=t.cadence==="month"?r.monthlyPrice:r.yearlyPrice,o=this.getUpdatedPrice({offer:t,product:r}),a=r.benefits||[],s=fe(i.currency).length>1?"long":"";return u(Y,{children:b("div",{className:"gh-portal-content gh-portal-offer",children:[u(we,{}),this.renderFormHeader(),b("div",{className:"gh-portal-offer-bar",children:[b("div",{className:"gh-portal-offer-title",children:[t.display_title?u("h4",{children:t.display_title}):u("h4",{className:"placeholder",children:"Black Friday"}),this.renderOfferTag()]}),t.display_description?u("p",{children:t.display_description}):""]}),this.renderForm(),this.renderProductCard({product:r,offer:t,currencyClass:s,updatedPrice:o,price:i,benefits:a})]})})}}Z(Tm,"contextType",R);const $m=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.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"})),Rm=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.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"})),ox=e=>x.createElement("svg",{width:96,height:56,viewBox:"0 0 96 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M9.00004 34.973C9.66499 35.3085 10.3322 35.6418 11.0017 35.9729C23.3405 42.0995 22.7366 40.9062 33.3011 40.9062C37.7115 40.9062 39.954 38.0862 41.2567 33.9563V33.9296L44.4627 23.4164V23.3964C44.6151 22.9038 44.6477 22.3828 44.5578 21.8756C44.4679 21.3683 44.2581 20.8888 43.9453 20.4757C43.6324 20.0626 43.2253 19.7275 42.7565 19.4972C42.2878 19.2669 41.7706 19.1479 41.2466 19.1498H33.0026C32.489 19.1484 31.9825 19.0325 31.5211 18.8108C31.0598 18.5891 30.6558 18.2673 30.3394 17.8698C30.025 17.4718 29.8084 17.0078 29.7066 16.5141C29.6048 16.0203 29.6205 15.51 29.7525 15.0232L31.235 9.5266C31.3503 9.09972 31.3609 8.65208 31.2659 8.2204C31.171 7.78873 30.9732 7.38533 30.6888 7.0433C30.4078 6.70494 30.0511 6.43489 29.6465 6.2542C29.2418 6.07351 28.8002 5.98706 28.3559 6.00157C27.9117 6.01609 27.4769 6.13118 27.0854 6.33789C26.6938 6.5446 26.3562 6.83734 26.0987 7.19329L17.8784 19.6098C17.5652 20.0388 17.1527 20.3885 16.6749 20.6301C16.1971 20.8718 15.6678 20.9985 15.1304 20.9998H9.00004M9 17.6666L9 40.9997",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M86.2148 20.027C85.5499 19.6915 84.8826 19.3582 84.2132 19.0271C71.8743 12.9005 72.4782 14.0938 61.9137 14.0938C57.5034 14.0938 55.2609 16.9138 53.9581 21.0437V21.0704L50.7521 31.5836V31.6036C50.5997 32.0962 50.5672 32.6172 50.657 33.1244C50.7469 33.6317 50.9567 34.1112 51.2695 34.5243C51.5824 34.9374 51.9896 35.2725 52.4583 35.5028C52.927 35.7331 53.4442 35.8521 53.9683 35.8502H62.2123C62.7258 35.8516 63.2324 35.9675 63.6937 36.1892C64.155 36.4109 64.5591 36.7327 64.8754 37.1302C65.1899 37.5282 65.4064 37.9922 65.5082 38.4859C65.61 38.9797 65.5943 39.49 65.4624 39.9768L63.9798 45.4734C63.8646 45.9003 63.854 46.3479 63.9489 46.7796C64.0439 47.2113 64.2416 47.6147 64.526 47.9567C64.807 48.2951 65.1637 48.5651 65.5684 48.7458C65.973 48.9265 66.4147 49.0129 66.8589 48.9984C67.3031 48.9839 67.7379 48.8688 68.1295 48.6621C68.521 48.4554 68.8587 48.1627 69.1162 47.8067L77.3364 35.3902C77.6497 34.9612 78.0622 34.6115 78.5399 34.3699C79.0177 34.1282 79.547 34.0015 80.0844 34.0002H86.2148M86.2148 37.3334V14.0003",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}));class _t extends Error{static async fromApiResponse(t){if(t.status===400||t.status===429)try{const n=await t.json();if(n.errors&&Array.isArray(n.errors)&&n.errors.length>0&&n.errors[0].message)return new _t(n.errors[0].message)}catch{return!1}}static getMessageFromError(t,n){return t instanceof _t?t.message:n}}function za({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){const r="members/api";function i({type:l,resource:c}){if(l==="members")return`${e.replace(/\/$/,"")}/${r}/${c}/`}function o({resource:l,params:c=""}){return t&&n?`${t.replace(/\/$/,"")}/${l}/?key=${n}&limit=all${c}`:""}function a({url:l,method:c="GET",headers:p={},credentials:d=void 0,body:f=void 0}){return fetch(l,{method:c,headers:p,credentials:d,body:f})}const s={};return s.site={read(){const l=i({type:"members",resource:"site"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},newsletters(){const l=o({resource:"newsletters"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},tiers(){const l=o({resource:"tiers",params:"&include=monthly_price,yearly_price,benefits"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},settings(){const l=o({resource:"settings"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},offer({offerId:l}){const c=o({resource:`offers/${l}`});return a({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(p){if(p.ok)return p.json();throw new Error("Failed to fetch offer data")})}},s.feedback={async add({uuid:l,postId:c,score:p}){let d=i({type:"members",resource:"feedback"});d=d+`?uuid=${l}`;const y=await a({url:d,method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({feedback:[{post_id:c,score:p}]})});if(y.ok)return y.json();throw await _t.fromApiResponse(y)??new Error("Failed to save feedback")}},s.member={identity(){const l=i({type:"members",resource:"session"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const l=i({type:"members",resource:"member"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:l,subscribed:c,newsletters:p,enableCommentNotifications:d}){const f=i({type:"members",resource:"member"}),y={name:l,subscribed:c,newsletters:p};return d!==void 0&&(y.enable_comment_notifications=d),a({url:f,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(y)}).then(function(v){return v.ok?v.json():null})},deleteSuppression(){const l=i({type:"members",resource:"member/suppression"});return a({url:l,method:"DELETE"}).then(function(c){if(!c.ok)throw new Error("Your email has failed to resubscribe, please try again");return!0})},async sendMagicLink({email:l,emailType:c,labels:p,name:d,oldEmail:f,newsletters:y,redirect:v}){const _=i({type:"members",resource:"send-magic-link"}),g={name:d,email:l,newsletters:y,oldEmail:f,emailType:c,labels:p,requestSrc:"portal",redirect:v},h=La();h&&(g.urlHistory=h);const m=await a({url:_,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)});if(m.ok)return"Success";{const w=await _t.fromApiResponse(m);throw w||new Error("Failed to send magic link email")}},signout(){const l=i({type:"members",resource:"session"});return a({url:l,method:"DELETE"}).then(function(c){if(c.ok)return window.location.replace(e),"Success";throw new Error("Failed to signout")})},async newsletters({uuid:l}){let c=i({type:"members",resource:"member/newsletters"});return c=c+`?uuid=${l}`,a({url:c,credentials:"same-origin"}).then(function(p){return!p.ok||p.status===204?null:p.json()})},async updateNewsletters({uuid:l,newsletters:c,enableCommentNotifications:p}){let d=i({type:"members",resource:"member/newsletters"});d=d+`?uuid=${l}`;const f={newsletters:c};return p!==void 0&&(f.enable_comment_notifications=p),a({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(function(y){if(y.ok)return y.json();throw new Error("Failed to update email preferences")})},async updateEmailAddress({email:l}){const c=await s.member.identity(),p=i({type:"members",resource:"member/email"});return a({url:p,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,identity:c})}).then(function(f){if(f.ok)return"Success";throw new Error("Failed to send email address verification email")})},async checkoutPlan({plan:l,tierId:c,cadence:p,cancelUrl:d,successUrl:f,email:y,name:v,offerId:_,newsletters:g,metadata:h={}}={}){var $,O;const m=new URL(e),w=await s.member.identity(),k=i({type:"members",resource:"create-stripe-checkout-session"});if(!d){const N=window.location.href.startsWith(m.href)?new URL(window.location.href):new URL(e);N.searchParams.set("stripe","cancel"),d=N.href}const C={name:v,newsletters:JSON.stringify(g),requestSrc:"portal",fp_tid:(O=($=window.FPROM||window.$FPROM)==null?void 0:$.data)==null?void 0:O.tid,urlHistory:La(),...h},S={priceId:_?null:l,offerId:_,identity:w,metadata:C,successUrl:f,cancelUrl:d};return y&&(S.customerEmail=y),c&&p&&(delete S.priceId,S.tierId=_?null:c,S.cadence=_?null:p),a({url:k,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)}).then(async function(N){var F,He;if(!N.ok){const te=await N.json(),re=((He=(F=te==null?void 0:te.errors)==null?void 0:F[0])==null?void 0:He.message)||"Failed to signup, please try again.";throw new Error(re)}return N.json()}).then(function(N){return N.url?window.location.assign(N.url):window.Stripe(N.publicKey).redirectToCheckout({sessionId:N.sessionId}).then(function(He){if(He.error)throw new Error(He.error.message)})})},async editBilling({successUrl:l,cancelUrl:c,subscriptionId:p}={}){const d=new URL(e),f=await s.member.identity(),y=i({type:"members",resource:"create-stripe-update-session"});if(!l){const v=new URL(e);v.searchParams.set("stripe","billing-update-success"),l=v.href}if(!c){const v=window.location.href.startsWith(d.href)?new URL(window.location.href):new URL(e);v.searchParams.set("stripe","billing-update-cancel"),c=v.href}return a({url:y,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:f,subscription_id:p,successUrl:l,cancelUrl:c})}).then(function(v){if(!v.ok)throw new Error("Unable to create stripe checkout session");return v.json()}).then(function(v){return window.Stripe(v.publicKey).redirectToCheckout({sessionId:v.sessionId})}).then(function(v){if(v.error)throw new Error(v.error.message)}).catch(function(v){throw v})},async updateSubscription({subscriptionId:l,tierId:c,cadence:p,planId:d,smartCancel:f,cancelAtPeriodEnd:y,cancellationReason:v}){const _=await s.member.identity(),g=i({type:"members",resource:"subscriptions"})+l+"/",h={smart_cancel:f,cancel_at_period_end:y,cancellation_reason:v,identity:_,priceId:d};return c&&p&&(delete h.priceId,h.tierId=c,h.cadence=p),a({url:g,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)})}},s.init=async()=>{let[l]=await Promise.all([s.member.sessionData()]),c={},p=[],d=[],f={};try{[{settings:f},{tiers:d},{newsletters:p}]=await Promise.all([s.site.settings(),s.site.tiers(),s.site.newsletters()]),c={...f,newsletters:p,tiers:ow({tiers:d})}}catch{}return c=Gb({site:c}),{site:c,member:l}},s}class Om extends q.Component{render(){return u("div",{style:{display:"flex",flexDirection:"column",color:"#313131"},children:u("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",height:"50px"},children:u(Fi,{className:"gh-portal-loadingicon dark"})})})}}const ax=`
1699
1791
  .gh-portal-feedback {
1700
1792
 
1701
1793
  }
@@ -1849,8 +1941,8 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
1849
1941
  }
1850
1942
  }
1851
1943
  }
1852
- `;function ex({error:e}){const{onAction:t}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(Xw,{})}),u("h1",{className:"gh-portal-main-title",children:"Sorry, that didn’t work."}),u("div",{children:u("p",{className:"gh-portal-text-center",children:e})}),u(fe,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})}const tx=({onConfirm:e,loading:t,initialScore:n})=>{const{onAction:r,brandColor:i,t:o}=x.useContext(R),[a,s]=x.useState(n),l=y=>{y.stopPropagation()},c=()=>{r("closePopup")},d=async y=>{y.stopPropagation(),await e(a)},p=y=>{const v="gh-feedback-button";return y===a?`${v} gh-feedback-button-selected`:v},f=y=>y===a?{color:i}:{};return b("div",{className:"gh-portal-confirm-dialog",onMouseDown:l,children:[u("h1",{className:"gh-portal-confirm-title",children:o("Give feedback on this post")}),b("div",{className:"gh-feedback-buttons-group",children:[b("button",{className:p(1),style:f(1),onClick:()=>s(1),children:[u(Tg,{}),o("More like this")]}),b("button",{className:p(0),style:f(0),onClick:()=>s(0),children:[u(Ng,{}),o("Less like this")]})]}),u(fe,{classes:"gh-portal-confirm-button",retry:!1,onClick:d,disabled:!1,brandColor:i,label:o("Submit feedback"),isRunning:t,tabindex:"3"}),u(we,{close:()=>c()})]})};async function nx({siteUrl:e,uuid:t,postId:n,score:r}){await Aa({siteUrl:e}).feedback.add({uuid:t,postId:n,score:r})}const rx=({action:e,score:t})=>(x.useEffect(()=>{e(t)}),u(Og,{})),ix=({positive:e})=>{const{onAction:t,brandColor:n,t:r}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback",children:[u(we,{}),u("div",{className:"gh-feedback-icon",children:e?u(Tg,{}):u(Ng,{})}),u("h1",{className:"gh-portal-main-title",children:r("Thanks for the feedback!")}),u("p",{className:"gh-portal-text-center",children:r("Your input helps shape what gets published.")}),u(fe,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:n,label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})};function ox(){const{site:e,pageData:t,member:n}=x.useContext(R),{uuid:r,postId:i,score:o}=t,[a,s]=x.useState(o),l=a===1,c=!!n,[d,p]=x.useState(c),[f,y]=x.useState(c),[v,k]=x.useState(null),m=async g=>{y(!0);try{await nx({siteUrl:e.url,uuid:r,postId:i,score:g}),s(g)}catch(w){const _=kt.getMessageFromError(w,"There was a problem submitting your feedback. Please try again a little later.");k(_)}y(!1)},h=async g=>{await m(g),p(!0)};if(v)return u(ex,{error:v});if(d){if(f)return u(rx,{action:m,score:a})}else return u(tx,{onConfirm:h,loading:f,initialScore:a});return u(ix,{positive:l})}const ax=`.gh-email-suppressed-page-title{margin-bottom:14px}.gh-email-suppressed-page-icon{display:block;width:38px;height:38px;margin:0 auto 18px}.gh-email-suppressed-page-text{padding:0 14px;text-align:center;color:var(--grey6)}.gh-email-faq-footer-text{color:var(--grey8)}.gh-portal-list-detail.email-newsletter .gh-email-faq-page-button{display:block;margin-top:3px}.accountEmail .gh-email-faq-page-button{margin-left:4px}.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:calc(6vmin - 14px)}.emailReceivingFAQ .gh-portal-closeicon-container{right:calc(6vmin - 20px)}@media (max-width: 480px){.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:16px}.emailReceivingFAQ .gh-portal-closeicon-container{right:24px}}.gh-email-faq-page-button{color:var(--brandcolor);cursor:pointer;background:none;transition:color linear .1s;font-size:1.45rem}
1853
- `,sx="",lx="",cx=`
1944
+ `;function sx({error:e}){const{onAction:t}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(ox,{})}),u("h1",{className:"gh-portal-main-title",children:"Sorry, that didn’t work."}),u("div",{children:u("p",{className:"gh-portal-text-center",children:e})}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})}const lx=({onConfirm:e,loading:t,initialScore:n})=>{const{onAction:r,brandColor:i,t:o}=x.useContext(R),[a,s]=x.useState(n),l=y=>{y.stopPropagation()},c=()=>{r("closePopup")},p=async y=>{y.stopPropagation(),await e(a)},d=y=>{const v="gh-feedback-button";return y===a?`${v} gh-feedback-button-selected`:v},f=y=>y===a?{color:i}:{};return b("div",{className:"gh-portal-confirm-dialog",onMouseDown:l,children:[u("h1",{className:"gh-portal-confirm-title",children:o("Give feedback on this post")}),b("div",{className:"gh-feedback-buttons-group",children:[b("button",{className:d(1),style:f(1),onClick:()=>s(1),children:[u(Rm,{}),o("More like this")]}),b("button",{className:d(0),style:f(0),onClick:()=>s(0),children:[u($m,{}),o("Less like this")]})]}),u(he,{classes:"gh-portal-confirm-button",retry:!1,onClick:p,disabled:!1,brandColor:i,label:o("Submit feedback"),isRunning:t,tabindex:"3"}),u(we,{close:()=>c()})]})};async function cx({siteUrl:e,uuid:t,postId:n,score:r}){await za({siteUrl:e}).feedback.add({uuid:t,postId:n,score:r})}const ux=({action:e,score:t})=>(x.useEffect(()=>{e(t)}),u(Om,{})),dx=({positive:e})=>{const{onAction:t,brandColor:n,t:r}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback",children:[u(we,{}),u("div",{className:"gh-feedback-icon",children:e?u(Rm,{}):u($m,{})}),u("h1",{className:"gh-portal-main-title",children:r("Thanks for the feedback!")}),u("p",{className:"gh-portal-text-center",children:r("Your input helps shape what gets published.")}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:n,label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})};function px(){const{site:e,pageData:t,member:n}=x.useContext(R),{uuid:r,postId:i,score:o}=t,[a,s]=x.useState(o),l=a===1,c=!!n,[p,d]=x.useState(c),[f,y]=x.useState(c),[v,_]=x.useState(null),g=async m=>{y(!0);try{await cx({siteUrl:e.url,uuid:r,postId:i,score:m}),s(m)}catch(w){const k=_t.getMessageFromError(w,"There was a problem submitting your feedback. Please try again a little later.");_(k)}y(!1)},h=async m=>{await g(m),d(!0)};if(v)return u(sx,{error:v});if(p){if(f)return u(ux,{action:g,score:a})}else return u(lx,{onConfirm:h,loading:f,initialScore:a});return u(dx,{positive:l})}const fx=`.gh-email-suppressed-page-title{margin-bottom:14px}.gh-email-suppressed-page-icon{display:block;width:38px;height:38px;margin:0 auto 18px}.gh-email-suppressed-page-text{padding:0 14px;text-align:center;color:var(--grey6)}.gh-email-faq-footer-text{color:var(--grey8)}.gh-portal-list-detail.email-newsletter .gh-email-faq-page-button{display:block;margin-top:3px}.accountEmail .gh-email-faq-page-button{margin-left:4px}.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:calc(6vmin - 14px)}.emailReceivingFAQ .gh-portal-closeicon-container{right:calc(6vmin - 20px)}@media (max-width: 480px){.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:16px}.emailReceivingFAQ .gh-portal-closeicon-container{right:24px}}.gh-email-faq-page-button{color:var(--brandcolor);cursor:pointer;background:none;transition:color linear .1s;font-size:1.45rem}
1945
+ `,hx="",mx="",gx=`
1854
1946
  .gh-portal-main-title {
1855
1947
  text-align: center;
1856
1948
  color: var(--grey0);
@@ -2624,7 +2716,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
2624
2716
  .pl10 { padding-left: 40px; }
2625
2717
 
2626
2718
  .hidden { display: none !important; }
2627
- `,ux=`
2719
+ `,yx=`
2628
2720
  @media (max-width: 1440px) {
2629
2721
  .gh-portal-popup-container:not(.full-size):not(.large-size):not(.preview) {
2630
2722
  width: 480px;
@@ -2816,7 +2908,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
2816
2908
  font-size: 16px !important;
2817
2909
  }
2818
2910
  }
2819
- `,px=`
2911
+ `,vx=`
2820
2912
  .gh-portal-popup-wrapper.multiple-products .gh-portal-input-section {
2821
2913
  max-width: 420px;
2822
2914
  margin: 0 auto;
@@ -3016,11 +3108,11 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
3016
3108
  .gh-portal-hide {
3017
3109
  display: none;
3018
3110
  }
3019
- `;function dx({site:e}){return Bc+cx+fw+Pw+$w+gw({site:e})+dw+lw+pw+Wh+Vw+Gw+Jw({site:e})+Kw+ux+px+Zw+ax+sx+lx}class Rg extends q.Component{constructor(t){super(t),this.state={email:""}}componentDidMount(){const{member:t}=this.context;t&&this.context.onAction("switchPage",{page:"accountHome"})}handleSignin(t){t.preventDefault(),this.setState(n=>({errors:zi({fields:this.getInputFields({state:n})})}),async()=>{const{email:n,errors:r}=this.state;r&&Object.values(r).filter(o=>!!o).length>0||this.context.onAction("signin",{email:n})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}onKeyDown(t){t.keyCode===13&&this.handleSignin(t)}getInputFields({state:t}){const{t:n}=this.context,r=t.errors||{};return[{type:"email",value:t.email,placeholder:"jamie@example.com",label:n("Email"),name:"email",required:!0,errorMessage:r.email||"",autoFocus:!0}]}renderSubmitButton(){const{action:t,t:n}=this.context;let r=!1;const i=t==="signin:running";let o=n(i?"Sending login link...":"Continue");const a=!!i;return t==="signin:failed"&&(o=n("Retry"),r=!0),u(fe,{dataTestId:"signin",retry:r,style:{width:"100%"},onClick:s=>this.handleSignin(s),disabled:a,brandColor:this.context.brandColor,label:o,isRunning:i})}renderSignupMessage(){const{brandColor:t,t:n}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:n("Don't have an account?")}),u("button",{"data-test-button":"signup-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:t},onClick:()=>this.context.onAction("switchPage",{page:"signup"}),children:u("span",{children:n("Sign up")})})]})}renderForm(){return u("section",{children:u("div",{className:"gh-portal-section",children:u(ja,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})})}renderSiteLogo(){const t=this.context.site.icon;return t?u("img",{className:"gh-portal-signup-logo",src:t,alt:this.context.site.title}):null}renderFormHeader(){const{t}=this.context;return b("header",{className:"gh-portal-signin-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title",children:t("Sign in")})]})}render(){return b(H,{children:[u(we,{}),b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-content signin",children:[this.renderFormHeader(),this.renderForm()]}),b("footer",{className:"gh-portal-signin-footer",children:[this.renderSubmitButton(),this.renderSignupMessage()]})]})]})}}Z(Rg,"contextType",R);const fx=({onClose:e,handleSignout:t,supportAddress:n=""})=>{const r=`mailto:${n}`;return b("footer",{className:"gh-portal-account-footer",children:[u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("button",{"data-test-button":"footer-signout",className:"gh-portal-btn",name:"logout","aria-label":"logout",onClick:i=>t(i),children:"Sign out"})})}),u("div",{className:"gh-portal-account-footerright",children:u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("a",{"data-test-link":"footer-support",className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Contact support"})})})})]})},hx=()=>{const{member:e,brandColor:t,t:n}=x.useContext(R),r=e.avatar_image;return b("header",{className:"gh-portal-account-header",children:[u(Uc,{gravatar:r,style:{userIcon:{color:t,width:"56px",height:"56px",padding:"2px"}}}),u("h2",{className:"gh-portal-main-title",children:n("Your account")})]})},gx=()=>{const{site:e,action:t,brandColor:n,onAction:r}=x.useContext(R),{is_stripe_configured:i}=e;if(!i||ka({site:e}))return null;const o=["checkoutPlan:running"].includes(t),a=()=>{r("switchPage",{page:"accountPlan",lastPage:"accountHome"})};return u(fe,{dataTestId:"view-plans",isRunning:o,label:"View plans",onClick:()=>a(),brandColor:n,style:{width:"100%"}})},mx=()=>{const{member:e,site:t}=x.useContext(R),{is_stripe_configured:n}=t;if(!n||ka({site:t}))return null;const r=Qe({member:e}),i=vr({member:e});if(i&&!r)return null;if(r){const o=r==null?void 0:r.current_period_end;if(i&&Yc({member:e})){const a=Yc({member:e}),s=xt(a);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",s]})})}if(r!=null&&r.cancel_at_period_end)return null;if(Wc({sub:r})){const a=xt(r.trial_end_at);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will start on ",a]})})}return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will renew on ",xt(o)]})})}return b("div",{className:"gh-portal-section",children:[u("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."}),u(gx,{})]})},yx=()=>{const{member:e,onAction:t,action:n,brandColor:r}=x.useContext(R),i=Qe({member:e});if(!i||!i.cancel_at_period_end)return null;const o=i.cancel_at_period_end?"Continue subscription":"Cancel subscription",a=["cancelSubscription:running"].includes(n),s=!!a,l=!!i.cancel_at_period_end;return b("div",{className:"gh-portal-cancelcontinue-container",children:[u(()=>{if(!i.cancel_at_period_end)return null;const d=i.current_period_end;return b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",xt(d)]})},{}),u(fe,{onClick:d=>{t("continueSubscription",{subscriptionId:i.id})},isRunning:a,disabled:s,isPrimary:l,brandColor:r,label:o,style:{width:"100%"}})]})},vx=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}")),x.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"}),x.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"})),bx=()=>{const{member:e,site:t,onAction:n}=x.useContext(R),r=()=>{const p=Qe({member:e});n("editBilling",{subscriptionId:p.id})},i=()=>{const{is_stripe_configured:p}=t;p&&n("switchPage",{page:"accountPlan",lastPage:"accountHome"})},o=({price:p,isComplimentary:f,subscription:y})=>{const{offer:v,start_date:k}=y||{};let m="";if(p){const{amount:S=0,currency:O,interval:L}=p;m=`${Intl.NumberFormat("en",{currency:O,style:"currency"}).format(S/100)}/${L}`}let h=xx({price:p,offer:v,subscriptionStartDate:k});const g=Yc({member:e});f&&(g?m=`Complimentary - Expires ${g}`:m=m?`Complimentary (${m})`:"Complimentary");let w="";h&&(w="gh-portal-account-old-price");const _=()=>h?b("p",{className:"gh-portal-account-discountcontainer",children:[u(vx,{className:"gh-portal-account-tagicon"}),u("span",{children:h})]}):null,C=Wc({sub:y});return C&&(w="gh-portal-account-old-price"),C?b(H,{children:[u("p",{className:w,children:m}),u(wx,{subscription:y})]}):b(H,{children:[u("p",{className:w,children:m}),u(_,{})]})},a=({isComplimentary:p})=>(Ai({member:e})?!1:p)||ka({site:t})?null:u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:y=>i(),"data-test-button":"change-plan",children:"Change"}),s=({defaultCardLast4:p})=>{if(p){const f=`**** **** **** ${p}`;return u("p",{children:f})}return null},l=({defaultCardLast4:p,isComplimentary:f})=>{const{action:y}=x.useContext(R),v=y==="editBilling:running"?u(Fi,{className:"gh-portal-billing-button-loader"}):"Update";return f?null:b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:"Billing info"}),u(s,{defaultCardLast4:p})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:k=>r(),"data-test-button":"update-billing",children:v})]})},c=Qe({member:e}),d=vr({member:e});if(c||d){const{price:p,default_payment_card_last4:f}=c||{};let y="Plan";return Sa({site:t})&&qh({member:e})&&(y=qh({member:e})),b(H,{children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:y}),u(o,{price:p,isComplimentary:d,subscription:c})]}),u(a,{isComplimentary:d})]}),u(l,{isComplimentary:d,defaultCardLast4:f})]})}return null};function wx({subscription:e,priceLabel:t}){if(Wc({sub:e})){const n=xt(e.trial_end_at);return u("p",{className:"gh-portal-account-discountcontainer",children:u("div",{children:b("span",{children:["Free Trial – Ends ",n]})})})}return null}function xx({offer:e,price:t,subscriptionStartDate:n}){let r="";if((e==null?void 0:e.type)==="trial"||(e==null?void 0:e.duration)==="once")return"";if(e){const i=e.duration;let o="";if(i==="forever")o="Forever";else if(i==="repeating"){const a=e.duration_in_months||0;let s=new Date(n),l=new Date(s.setMonth(s.getMonth()+a));if(tg(l))return"";o=`Ends ${xt(l)}`}r=`${Kb({offer:e,price:t,useFormatted:!0})}/${t.interval}${o?` — ${o}`:""}`}return r}function _x(){const{member:e,site:t,onAction:n}=x.useContext(R);let{newsletters:r}=e;const i=!!(r!=null&&r.length);let o=i?"Subscribed":"Unsubscribed";const a=(s,l)=>{var p;s.preventDefault();const c=xr({site:t}),d=(p=e==null?void 0:e.newsletters)!=null&&p.length?[]:c;n("updateNewsletterPreference",{newsletters:d})};return b("section",{children:[b("div",{className:"gh-portal-list-detail email-newsletter",children:[u("h3",{children:"Email newsletter"}),b("p",{children:[o," ",Vc({member:e})&&i&&u("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>n("switchPage",{page:"emailReceivingFAQ",lastPage:"accountHome"}),children:"Not receiving emails?"})]})]}),u("div",{children:u(Ia,{dataTestId:"default-newsletter-toggle",id:"default-newsletter-toggle",onToggle:s=>{a(s)},checked:i})})]})}const Lg=e=>x.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e},x.createElement("path",{d:"m12.79 12.376 4.08 4.079m-4.08 0 4.08-4.08",stroke:"red",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"m10.439 17.994-2.664-2.652-2.86 1.478.111-4.239m0 0L1.677 9.232a1.344 1.344 0 0 1-.366-1.222 1.369 1.369 0 0 1 .904-1.05l13.111-4.374a1.369 1.369 0 0 1 1.76 1.758L15 10m-9.974 2.581 11.67-9.727",stroke:"#A3A3A3",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}));function kx(){const{onAction:e,member:t,t:n}=x.useContext(R),r=eg({member:t}),i=r?"emailSuppressed":"accountEmail";return b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:n("Emails")}),r?b("p",{className:"gh-portal-email-notice",children:[u(Lg,{className:"gh-portal-email-notice-icon"}),b("span",{children:["You're ",u("span",{className:"gh-mobile-shortener",children:"currently "}),"not receiving emails"]})]}):u("p",{children:n("Update your preferences")})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:o=>{e("switchPage",{page:i,lastPage:"accountHome"})},"data-test-button":"manage-newsletters",children:n("Manage")})]})}const Sx=()=>{const{member:e,onAction:t,site:n}=x.useContext(R),{name:r,email:i}=e,o=()=>{t("switchPage",{page:"accountProfile",lastPage:"accountHome"})},a=Mi({site:n})||Qh({site:n})||eg({member:e});return u("div",{children:b("div",{className:"gh-portal-list",children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r||"Account"}),u("p",{children:i})]}),u("button",{"data-test-button":"edit-profile",className:"gh-portal-btn gh-portal-btn-list",onClick:s=>o(),children:"Edit"})]}),u(bx,{}),a?u(kx,{}):u(_x,{})]})})},Ex=()=>b("div",{className:"gh-portal-content gh-portal-account-main",children:[u(we,{}),u(hx,{}),b("section",{className:"gh-portal-account-data",children:[u(mx,{}),u(yx,{}),u(Sx,{})]})]});class Dg extends q.Component{componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin"})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}render(){const{member:t,site:n}=this.context,r=Ra({site:n});return t?b("div",{className:"gh-portal-account-wrapper",children:[u(Ex,{}),u(fx,{onClose:()=>this.context.onAction("closePopup"),handleSignout:i=>this.handleSignout(i),supportAddress:r})]}):null}}Z(Dg,"contextType",R);class Ig extends q.Component{constructor(t,n){super(t,n);const{name:r="",email:i=""}=n.member||{};this.state={name:r,email:i}}componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin"})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}onBack(t){this.context.onAction("back")}onProfileSave(t){t.preventDefault(),this.setState(n=>({errors:zi({fields:this.getInputFields({state:n})})}),()=>{const{email:n,name:r,errors:i}=this.state;i&&Object.values(i).filter(a=>!!a).length>0||(this.context.onAction("clearPopupNotification"),this.context.onAction("updateProfile",{email:n,name:r}))})}renderSaveButton(){const{t}=this.context,n=this.context.action==="updateProfile:running";let r=t("Save");return this.context.action==="updateProfile:failed"&&(r=t("Retry")),u(fe,{dataTestId:"save-button",isRunning:n,onClick:o=>this.onProfileSave(o),disabled:!!n,brandColor:this.context.brandColor,label:r,style:{width:"100%"}})}renderDeleteAccountButton(){const{t}=this.context;return u("div",{style:{cursor:"pointer",color:"red"},role:"button",children:t("Delete account")})}renderAccountFooter(){return u("footer",{className:"gh-portal-action-footer",children:this.renderSaveButton()})}renderHeader(){const{t}=this.context;return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:this.context.brandColor,hidden:!this.context.lastPage,onClick:n=>this.onBack(n)}),u("h3",{className:"gh-portal-main-title",children:t("Account settings")})]})}renderUserAvatar(){const t=this.context.member&&this.context.member.avatar_image;return u("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:u(Uc,{gravatar:t,style:{userIcon:{color:"black",width:"56px",height:"56px"}}})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}getInputFields({state:t,fieldNames:n}){const{t:r}=this.context,i=t.errors||{},o=[{type:"text",value:t.name,placeholder:"Jamie Larson",label:r("Name"),name:"name",required:!0,errorMessage:i.name||""},{type:"email",value:t.email,placeholder:"jamie@example.com",label:r("Email"),name:"email",required:!0,errorMessage:i.email||""}];return n&&n.length>0?o.filter(a=>n.includes(a.name)):o}onKeyDown(t){t.keyCode===13&&this.onProfileSave(t)}renderProfileData(){return u("div",{className:"gh-portal-section",children:u(ja,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})}render(){const{member:t}=this.context;return t?b(H,{children:[b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),this.renderHeader(),u("div",{className:"gh-portal-section",children:this.renderProfileData()})]}),this.renderAccountFooter()]}):null}}Z(Ig,"contextType",R);const Cx=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}
3020
- `)),x.createElement("title",null,"check-circle-1"),x.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"}),x.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25}));function Px(){const{brandColor:e,lastPage:t,onAction:n,t:r}=x.useContext(R);return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:i=>{n("back")}}),u("h3",{className:"gh-portal-main-title",children:r("Email preferences")})]})}function $g({show:e,checked:t}){let n=[];return e&&n.push("gh-portal-checkmark-show"),t&&n.push("gh-portal-toggle-checked"),n.push("gh-portal-checkmark-container"),u("div",{className:n.join(" "),children:u(Cx,{className:"gh-portal-checkmark-icon",alt:""})})}function Nx({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(l=>l.id===(e==null?void 0:e.id)),[i,o]=x.useState(!1),[a,s]=x.useState(null);return b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:e.name}),u("p",{children:e==null?void 0:e.description})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u($g,{show:i,checked:r}),u(Ia,{id:e.id,onToggle:(l,c)=>{let d=[];if(c){d=t.filter(f=>f.id!==e.id).concat(e),o(!0),clearTimeout(a);let p=setTimeout(()=>{o(!1)},2e3);s(p)}else{d=t.filter(f=>f.id!==e.id),o(!0),clearTimeout(a);let p=setTimeout(()=>{o(!1)},2e3);s(p)}n(d)},checked:r})]})]})}function Tx({updateCommentNotifications:e,isCommentsEnabled:t,enableCommentNotifications:n}){const{t:r}=x.useContext(R),i=!!n,[o,a]=x.useState(!1),[s,l]=x.useState(null);return t?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r("Comments")}),u("p",{children:r("Get notified when someone replies to your comment")})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u($g,{show:o,checked:i}),u(Ia,{id:"comments",onToggle:(c,d)=>{a(!0),clearTimeout(s);let p=setTimeout(()=>{a(!1)},2e3);l(p),e(d)},checked:i})]})]}):null}function Ox({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return xr({site:n}).map(i=>u(Nx,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function Rx({site:e,isPaid:t}){const{t:n}=x.useContext(R);return t?u("p",{style:{textAlign:"center",marginTop:"12px",marginBottom:"0",color:"var(--grey6)"},children:n("Unsubscribing from emails will not cancel your paid subscription to {{title}}",{title:e==null?void 0:e.title})}):null}function jg({notification:e,subscribedNewsletters:t,updateSubscribedNewsletters:n,updateCommentNotifications:r,unsubscribeAll:i,isPaidMember:o,isCommentsEnabled:a,enableCommentNotifications:s}){const{brandColor:l,onAction:c,member:d,site:p,t:f}=x.useContext(R),y=!(t!=null&&t.length)&&(a&&!s||!a);return b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),u(Px,{}),u(e||(()=>null),{}),u("div",{className:"gh-portal-section flex",children:b("div",{className:"gh-portal-list",children:[u(Ox,{subscribedNewsletters:t,setSubscribedNewsletters:m=>{let h=m.map(g=>({id:g.id}));n(h)}}),u(Tx,{isCommentsEnabled:a,enableCommentNotifications:s,updateCommentNotifications:r})]})}),b("footer",{className:"gh-portal-action-footer"+(Vc({member:d})?" gh-feature-suppressions":""),children:[b("div",{style:{width:"100%"},children:[u(fe,{isRunning:!1,onClick:m=>{i()},disabled:y,brandColor:l,isPrimary:!1,label:f("Unsubscribe from all emails"),isDestructive:!0,style:{width:"100%"},dataTestId:"unsubscribe-from-all-emails"}),u(Rx,{isPaid:o,site:p})]}),Vc({member:d})&&!y&&b("div",{className:"gh-portal-footer-secondary",children:[u("span",{className:"gh-portal-footer-secondary-light",children:f("Not receiving emails?")}),b("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>c("switchPage",{page:"emailReceivingFAQ"}),children:[f("Get help")," →"]})]})]})]})}function Lx(){const{member:e,onAction:t,site:n,t:r}=x.useContext(R);x.useEffect(()=>{e||t("switchPage",{page:"signin"})},[e,t]);const i=[...(e==null?void 0:e.newsletters)||[]],[o,a]=x.useState(i),{comments_enabled:s}=n,{enable_comment_notifications:l}=e||{};return x.useEffect(()=>{a((e==null?void 0:e.newsletters)||[])},[e==null?void 0:e.newsletters]),u(jg,{notification:null,subscribedNewsletters:o,updateSubscribedNewsletters:c=>{a(c),t("updateNewsletterPreference",{newsletters:c})},updateCommentNotifications:async c=>{t("updateNewsletterPreference",{enableCommentNotifications:c})},unsubscribeAll:()=>{a([]),t("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const c={newsletters:[]};s&&(c.enableCommentNotifications=!1),t("updateNewsletterPreference",c)},isPaidMember:_t({member:e}),isCommentsEnabled:s!=="off",enableCommentNotifications:l})}function Dx(){const{site:e}=x.useContext(R),t=e.icon;return t?u("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:e.title}):null}function Ix(){const{site:e}=x.useContext(R),t=e.title||"";return b("header",{className:"gh-portal-header",children:[u(Dx,{}),u("h2",{className:"gh-portal-publication-title",children:t})]})}async function eu({api:e,memberUuid:t,newsletters:n,enableCommentNotifications:r}){try{return await e.member.updateNewsletters({uuid:t,newsletters:n,enableCommentNotifications:r})}catch{}}function $x(){const{site:e,pageData:t,onAction:n,t:r}=x.useContext(R),i=Aa({siteUrl:e.url}),[o,a]=x.useState(),s=xr({site:e}),l=s.filter(g=>g.subscribe_on_signup),[c,d]=x.useState(!1),[p,f]=x.useState(l),[y,v]=x.useState(!1),{comments_enabled:k}=e,{enable_comment_notifications:m=!1}=o||{};return x.useEffect(()=>{const g=Aa({siteUrl:e.url});(async()=>{const w=await g.member.newsletters({uuid:t.uuid});a(w);const _=(w==null?void 0:w.newsletters)||[];if(f(_),(s==null?void 0:s.length)===1&&!k){const C=await eu({api:g,memberUuid:t.uuid,newsletters:[]});f(C.newsletters)}else if(t.newsletterUuid){const C=await eu({api:g,memberUuid:t.uuid,newsletters:_==null?void 0:_.filter(S=>S.uuid!==t.newsletterUuid)});f(C.newsletters)}else if(t.comments&&k){const C=await eu({api:g,memberUuid:t.uuid,enableCommentNotifications:!1});a(C)}})()},[k,t.uuid,t.newsletterUuid,t.comments,e.url,s==null?void 0:s.length]),o===null?b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(Jc,{})}),u("h1",{className:"gh-portal-main-title",children:r("That didn't go to plan")}),u("div",{children:u("p",{className:"gh-portal-text-center",children:r("We couldn't unsubscribe you as the email address was not found. Please contact the site owner.")})}),u(fe,{style:{width:"100%"},retry:!1,onClick:()=>n("closePopup"),disabled:!1,brandColor:"#000000",label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]}):(s==null?void 0:s.length)===1&&!k&&!y?b("div",{className:"gh-portal-content gh-portal-unsubscribe with-footer",children:[u(we,{}),u(Ix,{}),u("h1",{className:"gh-portal-main-title",children:r("Successfully unsubscribed")}),b("div",{children:[b("p",{className:"gh-portal-text-center",children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive this newsletter."]}),b("p",{className:"gh-portal-text-center",children:["Didn't mean to do this? Manage your preferences",u("button",{className:"gh-portal-btn-link gh-portal-btn-branded gh-portal-btn-inline",onClick:()=>{v(!0)},children:"here"}),"."]})]})]}):u(jg,{notification:()=>{if(t.comments&&k)return u(H,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive emails when someone replies to your comments."]})});const g=s==null?void 0:s.find(_=>_.uuid===t.newsletterUuid);return u(H,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive ",u("strong",{children:g==null?void 0:g.name})," newsletter."]})})},subscribedNewsletters:p,updateSubscribedNewsletters:async g=>{f(g),d(!0),await i.member.updateNewsletters({uuid:t.uuid,newsletters:g})},updateCommentNotifications:async g=>{const w=await i.member.updateNewsletters({uuid:t.uuid,enableCommentNotifications:g});a(w)},unsubscribeAll:async()=>{d(!0),f([]),n("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const g=await i.member.updateNewsletters({uuid:t.uuid,newsletters:[],enableCommentNotifications:!1});a(g)},isPaidMember:(o==null?void 0:o.status)!=="free",isCommentsEnabled:k!=="off",enableCommentNotifications:m})}function jx(){const{brandColor:e,lastPage:t,onAction:n,action:r,site:i,t:o}=x.useContext(R);x.useEffect(()=>{["removeEmailFromSuppressionList:success"].includes(r)&&n("refreshMemberData"),["removeEmailFromSuppressionList:failed","refreshMemberData:failed"].includes(r)&&n("back"),["refreshMemberData:success"].includes(r)&&(Mi({site:i})||Qh({site:i})?(n("switchPage",{page:"accountEmail",lastPage:"accountHome"}),n("showPopupNotification",{message:o("You have been successfully resubscribed")})):n("back"))},[r,n,i,o]);const a=["removeEmailFromSuppressionList:running","refreshMemberData:running"].includes(r),s=()=>{n("removeEmailFromSuppressionList")};return b("div",{className:"gh-email-suppressed-page",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:()=>{n("back")}}),u(we,{})]}),u(Lg,{className:"gh-email-suppressed-page-icon"}),b("div",{className:"gh-email-suppressed-page-text",children:[u("h3",{className:"gh-portal-main-title gh-email-suppressed-page-title",children:o("Emails disabled")}),u("p",{children:o("You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.")})]}),u(fe,{dataTestId:"resubscribe-email",classes:"gh-portal-confirm-button",onClick:s,disabled:a,brandColor:e,label:o("Re-enable emails"),isRunning:a})]})}function Ax(){const{brandColor:e,onAction:t,site:n}=x.useContext(R),r=`mailto:${Ra({site:n})}`;return b("div",{className:"gh-email-suppression-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{t("switchPage",{page:"emailSuppressed",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Why has my email been disabled?"}),u("p",{children:"Newsletters can be disabled on your account for two reasons: A previous email was marked as spam, or attempting to send an email resulted in a permanent failure (bounce)."}),u("h4",{children:"Spam complaints"}),u("p",{children:"If a newsletter is flagged as spam, emails are automatically disabled for that address to make sure you no longer receive any unwanted messages."}),u("p",{children:"If the spam complaint was accidental, or you would like to begin receiving emails again, you can resubscribe to emails by clicking the button on the previous screen."}),u("p",{children:"Once resubscribed, if you still don't see emails in your inbox, check your spam folder. Some inbox providers keep a record of previous spam complaints and will continue to flag emails. If this happens, mark the latest newsletter as 'Not spam' to move it back to your primary inbox."}),u("h4",{children:"Permanent failure (bounce)"}),u("p",{children:"When an inbox fails to accept an email it is commonly called a bounce. In many cases, this can be temporary. However, in some cases, a bounced email can be returned as a permanent failure when an email address is invalid or non-existent."}),u("p",{children:"In the event a permanent failure is received when attempting to send a newsletter, emails will be disabled on the account."}),u("p",{children:"If you would like to start receiving emails again, the best next steps are to check your email address on file for any issues and then click resubscribe on the previous screen."}),u("p",{children:u("a",{className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Need more help? Contact support"})})]})]})}function Mx(){const{brandColor:e,onAction:t,site:n,lastPage:r,member:i}=x.useContext(R),o=Ra({site:n}),a=`mailto:${o}`,s=Wb({site:n});return b("div",{className:"gh-email-receiving-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{r?t("switchPage",{page:"accountHome"}):t("switchPage",{page:"accountEmail",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Help! I'm not receiving emails"}),u("p",{children:"If you're not receiving the email newsletter you've subscribed to, here are few things to check."}),u("h4",{children:"Verify your email address is correct"}),b("p",{children:["The email address we have for you is ",u("strong",{children:i.email})," — if that's not correct, you can update it in your ",u("button",{className:"gh-portal-btn-text",onClick:()=>t("switchPage",{lastPage:"emailReceivingFAQ",page:"accountProfile"}),children:"account settings area"}),"."]}),u("h4",{children:"Check spam & promotions folders"}),u("p",{children:`Make sure emails aren't accidentally ending up in the Spam or Promotions folders of your inbox. If they are, click on "Mark as not spam" and/or "Move to inbox".`}),u("h4",{children:"Create a new contact"}),b("p",{children:["In your email client add ",u("strong",{children:s})," to your contacts list. This signals to your mail provider that emails sent from this address should be trusted."]}),u("h4",{children:"Send an email and say hi!"}),b("p",{children:["Send an email to ",u("strong",{children:s})," and say hello. This can also help signal to your mail provider that emails to-and-from this address should be trusted."]}),u("h4",{children:"Check with your mail provider"}),b("p",{children:["If you have a corporate or government email account, reach out to your IT department and ask them to allow emails to be received from ",u("strong",{children:s})]}),u("h4",{children:"Get in touch for help"}),b("p",{children:["If you've completed all these checks and you're still not receiving emails, you can reach out to get support by contacting ",u("a",{href:a,onClick:()=>{a&&window.open(a)},children:o}),"."]})]})]})}const tu={signin:Rg,signup:Sg,accountHome:Dg,accountPlan:_g,accountProfile:Ig,accountEmail:Lx,signupNewsletter:Zc,unsubscribe:$x,magiclink:Eg,loading:Og,offer:Pg,feedback:ox,emailSuppressed:jx,emailSuppressionFAQ:Ax,emailReceivingFAQ:Mx},nu=function({page:e}){return Object.keys(tu).includes(e)?e:"signup"},Fx=function({page:e}){return e.includes("account")},zx=function({page:e}){return e.includes("offer")},Ux=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}));class ru extends q.Component{render(){const{t}=this.context;return b("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:()=>{window.open("https://ghost.org","_blank")},children:[u(Ux,{}),t("Powered by Ghost")]})}}Z(ru,"contextType",R);const Ag=({member:e})=>({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 Bx({message:e}){return yr()?u("div",{className:"gh-portal-cookiebanner",children:e}):null}class Mg extends q.Component{componentDidMount(){this.node&&!K(["preview"])&&!this.props.isMobile&&(this.node.focus(),this.keyUphandler=t=>{t.key==="Escape"&&this.dismissPopup(t)},this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler),this.node.ownerDocument.addEventListener("keyup",this.keyUphandler)),this.sendContainerHeightChangeEvent()}dismissPopup(t){var i;const n=t.target&&t.target.tagName;(n!=="INPUT"||n==="INPUT"&&!((i=t==null?void 0:t.target)!=null&&i.value))&&this.context.onAction("closePopup")}sendContainerHeightChangeEvent(){var t,n;this.node&&K(["preview"])&&((t=this.node)==null?void 0:t.clientHeight)!==this.lastContainerHeight&&(this.lastContainerHeight=(n=this.node)==null?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}},"*"))}componentDidUpdate(){this.sendContainerHeightChangeEvent()}componentWillUnmount(){this.node&&this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler)}handlePopupClose(t){K(["preview"])||(t.preventDefault(),t.target===t.currentTarget&&this.context.onAction("closePopup"))}renderActivePage(){const{page:t}=this.context;nu({page:t});const n=tu[t];return u(n,{})}renderPopupNotification(){const{popupNotification:t}=this.context;return!t||!t.type?null:u(Cg,{})}render(){const{page:t,pageQuery:n,site:r,customSiteUrl:i}=this.context,a=Ca({site:r}).length;nu({page:t});const l={...Ag({page:t}).page[t]};let c="",d="regular",p="",f=t;switch(t){case"signup":p="Cookies must be enabled in your browser to sign up.";break;case"signin":p="Cookies must be enabled in your browser to sign in.";break;case"accountHome":f="account-home";break;case"accountProfile":f="account-profile";break;case"accountPlan":f="account-plan";break;default:p="Cookies must be enabled in your browser.",f=t;break}a>1&&!at({site:r,pageQuery:n})&&t==="signup"&&(f+=" full-size",d="full");const y=Pn({site:r});(y&&a>2||!y&&a>1)&&t==="accountPlan"&&(f+=" full-size",d="full"),(t==="emailSuppressionFAQ"||t==="emailReceivingFAQ")&&(f+=" large-size");let v="gh-portal-popup-container";K(["preview"])&&(f+=" preview"),K(["preview"],{customSiteUrl:i})&&!r.disableBackground&&(v+=" preview"),K(["dev"])&&(v+=" dev");const k=`${v} ${c} ${f}`;return b(H,{children:[u("div",{className:"gh-portal-popup-wrapper "+f,onClick:m=>this.handlePopupClose(m),children:b("div",{className:k,style:l,ref:m=>this.node=m,tabIndex:-1,children:[u(Bx,{message:p}),this.renderPopupNotification(),this.renderActivePage(),d==="full"?u("div",{className:"gh-portal-powered inside "+(K(["preview"])?"hidden ":"")+f,children:u(ru,{})}):""]})}),u("div",{className:"gh-portal-powered outside "+(K(["preview"])?"hidden ":"")+f,children:u(ru,{})})]})}}Z(Mg,"contextType",R);class Fg extends q.Component{constructor(t){super(t),this.state={height:null}}renderCurrentPage(t){const n=tu[t];return u(n,{})}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.onAction("closePopup")}renderFrameStyles(){const{site:t}=this.context,n=dx({site:t}),r=`
3111
+ `;function bx({site:e}){return Hc+gx+ww+Lw+Bw+kw({site:e})+bw+mw+vw+Kh+ex+Xw+ix({site:e})+tx+yx+vx+ax+fx+hx+mx}class Dm extends q.Component{constructor(t){super(t),this.state={email:""}}componentDidMount(){const{member:t}=this.context;t&&this.context.onAction("switchPage",{page:"accountHome"})}handleSignin(t){t.preventDefault(),this.setState(n=>({errors:Ma({fields:this.getInputFields({state:n})})}),async()=>{const{email:n,errors:r}=this.state,{redirect:i}=this.context.pageData??{};r&&Object.values(r).filter(a=>!!a).length>0||this.context.onAction("signin",{email:n,redirect:i})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}onKeyDown(t){t.keyCode===13&&this.handleSignin(t)}getInputFields({state:t}){const{t:n}=this.context,r=t.errors||{};return[{type:"email",value:t.email,placeholder:"jamie@example.com",label:n("Email"),name:"email",required:!0,errorMessage:r.email||"",autoFocus:!0}]}renderSubmitButton(){const{action:t,t:n}=this.context;let r=!1;const i=t==="signin:running";let o=n(i?"Sending login link...":"Continue");const a=!!i;return t==="signin:failed"&&(o=n("Retry"),r=!0),u(he,{dataTestId:"signin",retry:r,style:{width:"100%"},onClick:s=>this.handleSignin(s),disabled:a,brandColor:this.context.brandColor,label:o,isRunning:i})}renderSignupMessage(){const{brandColor:t,t:n}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:n("Don't have an account?")}),u("button",{"data-test-button":"signup-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:t},onClick:()=>this.context.onAction("switchPage",{page:"signup"}),children:u("span",{children:n("Sign up")})})]})}renderForm(){return u("section",{children:u("div",{className:"gh-portal-section",children:u(Aa,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})})}renderSiteLogo(){const t=this.context.site.icon;return t?u("img",{className:"gh-portal-signup-logo",src:t,alt:this.context.site.title}):null}renderFormHeader(){const{t}=this.context;return b("header",{className:"gh-portal-signin-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title",children:t("Sign in")})]})}render(){return b(Y,{children:[u(we,{}),b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-content signin",children:[this.renderFormHeader(),this.renderForm()]}),b("footer",{className:"gh-portal-signin-footer",children:[this.renderSubmitButton(),this.renderSignupMessage()]})]})]})}}Z(Dm,"contextType",R);const wx=({onClose:e,handleSignout:t,supportAddress:n=""})=>{const r=`mailto:${n}`;return b("footer",{className:"gh-portal-account-footer",children:[u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("button",{"data-test-button":"footer-signout",className:"gh-portal-btn",name:"logout","aria-label":"logout",onClick:i=>t(i),children:"Sign out"})})}),u("div",{className:"gh-portal-account-footerright",children:u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("a",{"data-test-link":"footer-support",className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Contact support"})})})})]})},xx=()=>{const{member:e,brandColor:t,t:n}=x.useContext(R),r=e.avatar_image;return b("header",{className:"gh-portal-account-header",children:[u(Yc,{gravatar:r,style:{userIcon:{color:t,width:"56px",height:"56px",padding:"2px"}}}),u("h2",{className:"gh-portal-main-title",children:n("Your account")})]})},kx=()=>{const{site:e,action:t,brandColor:n,onAction:r}=x.useContext(R),{is_stripe_configured:i}=e;if(!i||_a({site:e}))return null;const o=["checkoutPlan:running"].includes(t),a=()=>{r("switchPage",{page:"accountPlan",lastPage:"accountHome"})};return u(he,{dataTestId:"view-plans",isRunning:o,label:"View plans",onClick:()=>a(),brandColor:n,style:{width:"100%"}})},_x=()=>{const{member:e,site:t}=x.useContext(R),{is_stripe_configured:n}=t;if(!n||_a({site:t}))return null;const r=Qe({member:e}),i=yr({member:e});if(i&&!r)return null;if(r){const o=r==null?void 0:r.current_period_end;if(i&&Wc({member:e})){const a=Wc({member:e}),s=xt(a);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",s]})})}if(r!=null&&r.cancel_at_period_end)return null;if(Kc({sub:r})){const a=xt(r.trial_end_at);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will start on ",a]})})}return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will renew on ",xt(o)]})})}return b("div",{className:"gh-portal-section",children:[u("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."}),u(kx,{})]})},Sx=()=>{const{member:e,onAction:t,action:n,brandColor:r}=x.useContext(R),i=Qe({member:e});if(!i||!i.cancel_at_period_end)return null;const o=i.cancel_at_period_end?"Continue subscription":"Cancel subscription",a=["cancelSubscription:running"].includes(n),s=!!a,l=!!i.cancel_at_period_end;return b("div",{className:"gh-portal-cancelcontinue-container",children:[u(()=>{if(!i.cancel_at_period_end)return null;const p=i.current_period_end;return b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",xt(p)]})},{}),u(he,{onClick:p=>{t("continueSubscription",{subscriptionId:i.id})},isRunning:a,disabled:s,isPrimary:l,brandColor:r,label:o,style:{width:"100%"}})]})},Ex=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}")),x.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"}),x.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"})),Cx=()=>{const{member:e,site:t,onAction:n}=x.useContext(R),r=()=>{const d=Qe({member:e});n("editBilling",{subscriptionId:d.id})},i=()=>{const{is_stripe_configured:d}=t;d&&n("switchPage",{page:"accountPlan",lastPage:"accountHome"})},o=({price:d,isComplimentary:f,subscription:y})=>{const{offer:v,start_date:_}=y||{};let g="";if(d){const{amount:S=0,currency:$,interval:O}=d;g=`${Intl.NumberFormat("en",{currency:$,style:"currency"}).format(S/100)}/${O}`}let h=Nx({price:d,offer:v,subscriptionStartDate:_});const m=Wc({member:e});f&&(m?g=`Complimentary - Expires ${m}`:g=g?`Complimentary (${g})`:"Complimentary");let w="";h&&(w="gh-portal-account-old-price");const k=()=>h?b("p",{className:"gh-portal-account-discountcontainer",children:[u(Ex,{className:"gh-portal-account-tagicon"}),u("span",{children:h})]}):null,C=Kc({sub:y});return C&&(w="gh-portal-account-old-price"),C?b(Y,{children:[u("p",{className:w,children:g}),u(Px,{subscription:y})]}):b(Y,{children:[u("p",{className:w,children:g}),u(k,{})]})},a=({isComplimentary:d})=>(zi({member:e})?!1:d)||_a({site:t})?null:u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:y=>i(),"data-test-button":"change-plan",children:"Change"}),s=({defaultCardLast4:d})=>{if(d){const f=`**** **** **** ${d}`;return u("p",{children:f})}return null},l=({defaultCardLast4:d,isComplimentary:f})=>{const{action:y}=x.useContext(R),v=y==="editBilling:running"?u(Fi,{className:"gh-portal-billing-button-loader"}):"Update";return f?null:b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:"Billing info"}),u(s,{defaultCardLast4:d})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:_=>r(),"data-test-button":"update-billing",children:v})]})},c=Qe({member:e}),p=yr({member:e});if(c||p){const{price:d,default_payment_card_last4:f}=c||{};let y="Plan";return Sa({site:t})&&Jh({member:e})&&(y=Jh({member:e})),b(Y,{children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:y}),u(o,{price:d,isComplimentary:p,subscription:c})]}),u(a,{isComplimentary:p})]}),u(l,{isComplimentary:p,defaultCardLast4:f})]})}return null};function Px({subscription:e,priceLabel:t}){if(Kc({sub:e})){const n=xt(e.trial_end_at);return u("p",{className:"gh-portal-account-discountcontainer",children:u("div",{children:b("span",{children:["Free Trial – Ends ",n]})})})}return null}function Nx({offer:e,price:t,subscriptionStartDate:n}){let r="";if((e==null?void 0:e.type)==="trial"||(e==null?void 0:e.duration)==="once")return"";if(e){const i=e.duration;let o="";if(i==="forever")o="Forever";else if(i==="repeating"){const a=e.duration_in_months||0;let s=new Date(n),l=new Date(s.setMonth(s.getMonth()+a));if(rm(l))return"";o=`Ends ${xt(l)}`}r=`${ew({offer:e,price:t,useFormatted:!0})}/${t.interval}${o?` — ${o}`:""}`}return r}function Tx(){const{member:e,site:t,onAction:n}=x.useContext(R);let{newsletters:r}=e;const i=!!(r!=null&&r.length);let o=i?"Subscribed":"Unsubscribed";const a=(s,l)=>{var d;s.preventDefault();const c=wr({site:t}),p=(d=e==null?void 0:e.newsletters)!=null&&d.length?[]:c;n("updateNewsletterPreference",{newsletters:p})};return b("section",{children:[b("div",{className:"gh-portal-list-detail email-newsletter",children:[u("h3",{children:"Email newsletter"}),b("p",{children:[o," ",qc({member:e})&&i&&u("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>n("switchPage",{page:"emailReceivingFAQ",lastPage:"accountHome"}),children:"Not receiving emails?"})]})]}),u("div",{children:u(ja,{dataTestId:"default-newsletter-toggle",id:"default-newsletter-toggle",onToggle:s=>{a(s)},checked:i})})]})}const Lm=e=>x.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e},x.createElement("path",{d:"m12.79 12.376 4.08 4.079m-4.08 0 4.08-4.08",stroke:"red",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"m10.439 17.994-2.664-2.652-2.86 1.478.111-4.239m0 0L1.677 9.232a1.344 1.344 0 0 1-.366-1.222 1.369 1.369 0 0 1 .904-1.05l13.111-4.374a1.369 1.369 0 0 1 1.76 1.758L15 10m-9.974 2.581 11.67-9.727",stroke:"#A3A3A3",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}));function $x(){const{onAction:e,member:t,t:n}=x.useContext(R),r=nm({member:t}),i=r?"emailSuppressed":"accountEmail";return b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:n("Emails")}),r?b("p",{className:"gh-portal-email-notice",children:[u(Lm,{className:"gh-portal-email-notice-icon"}),b("span",{children:["You're ",u("span",{className:"gh-mobile-shortener",children:"currently "}),"not receiving emails"]})]}):u("p",{children:n("Update your preferences")})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:o=>{e("switchPage",{page:i,lastPage:"accountHome"})},"data-test-button":"manage-newsletters",children:n("Manage")})]})}const Rx=()=>{const{member:e,onAction:t,site:n}=x.useContext(R),{name:r,email:i}=e,o=()=>{t("switchPage",{page:"accountProfile",lastPage:"accountHome"})},a=Na({site:n})||Xh({site:n})||nm({member:e});return u("div",{children:b("div",{className:"gh-portal-list",children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r||"Account"}),u("p",{children:i})]}),u("button",{"data-test-button":"edit-profile",className:"gh-portal-btn gh-portal-btn-list",onClick:s=>o(),children:"Edit"})]}),u(Cx,{}),a?u($x,{}):u(Tx,{})]})})},Ox=()=>b("div",{className:"gh-portal-content gh-portal-account-main",children:[u(we,{}),u(xx,{}),b("section",{className:"gh-portal-account-data",children:[u(_x,{}),u(Sx,{}),u(Rx,{})]})]});class jm extends q.Component{componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin",pageData:{redirect:window.location.href}})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}render(){const{member:t,site:n}=this.context,r=Oa({site:n});return t?b("div",{className:"gh-portal-account-wrapper",children:[u(Ox,{}),u(wx,{onClose:()=>this.context.onAction("closePopup"),handleSignout:i=>this.handleSignout(i),supportAddress:r})]}):null}}Z(jm,"contextType",R);class Im extends q.Component{constructor(t,n){super(t,n);const{name:r="",email:i=""}=n.member||{};this.state={name:r,email:i}}componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin"})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}onBack(t){this.context.onAction("back")}onProfileSave(t){t.preventDefault(),this.setState(n=>({errors:Ma({fields:this.getInputFields({state:n})})}),()=>{const{email:n,name:r,errors:i}=this.state;i&&Object.values(i).filter(a=>!!a).length>0||(this.context.onAction("clearPopupNotification"),this.context.onAction("updateProfile",{email:n,name:r}))})}renderSaveButton(){const{t}=this.context,n=this.context.action==="updateProfile:running";let r=t("Save");return this.context.action==="updateProfile:failed"&&(r=t("Retry")),u(he,{dataTestId:"save-button",isRunning:n,onClick:o=>this.onProfileSave(o),disabled:!!n,brandColor:this.context.brandColor,label:r,style:{width:"100%"}})}renderDeleteAccountButton(){const{t}=this.context;return u("div",{style:{cursor:"pointer",color:"red"},role:"button",children:t("Delete account")})}renderAccountFooter(){return u("footer",{className:"gh-portal-action-footer",children:this.renderSaveButton()})}renderHeader(){const{t}=this.context;return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:this.context.brandColor,hidden:!this.context.lastPage,onClick:n=>this.onBack(n)}),u("h3",{className:"gh-portal-main-title",children:t("Account settings")})]})}renderUserAvatar(){const t=this.context.member&&this.context.member.avatar_image;return u("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:u(Yc,{gravatar:t,style:{userIcon:{color:"black",width:"56px",height:"56px"}}})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}getInputFields({state:t,fieldNames:n}){const{t:r}=this.context,i=t.errors||{},o=[{type:"text",value:t.name,placeholder:"Jamie Larson",label:r("Name"),name:"name",required:!0,errorMessage:i.name||""},{type:"email",value:t.email,placeholder:"jamie@example.com",label:r("Email"),name:"email",required:!0,errorMessage:i.email||""}];return n&&n.length>0?o.filter(a=>n.includes(a.name)):o}onKeyDown(t){t.keyCode===13&&this.onProfileSave(t)}renderProfileData(){return u("div",{className:"gh-portal-section",children:u(Aa,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})}render(){const{member:t}=this.context;return t?b(Y,{children:[b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),this.renderHeader(),u("div",{className:"gh-portal-section",children:this.renderProfileData()})]}),this.renderAccountFooter()]}):null}}Z(Im,"contextType",R);const Dx=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}
3112
+ `)),x.createElement("title",null,"check-circle-1"),x.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"}),x.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25}));function Lx(){const{brandColor:e,lastPage:t,onAction:n,t:r}=x.useContext(R);return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:i=>{n("back")}}),u("h3",{className:"gh-portal-main-title",children:r("Email preferences")})]})}function Am({show:e,checked:t}){let n=[];return e&&n.push("gh-portal-checkmark-show"),t&&n.push("gh-portal-toggle-checked"),n.push("gh-portal-checkmark-container"),u("div",{className:n.join(" "),children:u(Dx,{className:"gh-portal-checkmark-icon",alt:""})})}function jx({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(l=>l.id===(e==null?void 0:e.id)),[i,o]=x.useState(!1),[a,s]=x.useState(null);return b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:e.name}),u("p",{children:e==null?void 0:e.description})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u(Am,{show:i,checked:r}),u(ja,{id:e.id,onToggle:(l,c)=>{let p=[];if(c){p=t.filter(f=>f.id!==e.id).concat(e),o(!0),clearTimeout(a);let d=setTimeout(()=>{o(!1)},2e3);s(d)}else{p=t.filter(f=>f.id!==e.id),o(!0),clearTimeout(a);let d=setTimeout(()=>{o(!1)},2e3);s(d)}n(p)},checked:r})]})]})}function Ix({updateCommentNotifications:e,isCommentsEnabled:t,enableCommentNotifications:n}){const{t:r}=x.useContext(R),i=!!n,[o,a]=x.useState(!1),[s,l]=x.useState(null);return t?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r("Comments")}),u("p",{children:r("Get notified when someone replies to your comment")})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u(Am,{show:o,checked:i}),u(ja,{id:"comments",onToggle:(c,p)=>{a(!0),clearTimeout(s);let d=setTimeout(()=>{a(!1)},2e3);l(d),e(p)},checked:i})]})]}):null}function Ax({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return wr({site:n}).map(i=>u(jx,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function Mx({site:e,isPaid:t}){const{t:n}=x.useContext(R);return t?u("p",{style:{textAlign:"center",marginTop:"12px",marginBottom:"0",color:"var(--grey6)"},children:n("Unsubscribing from emails will not cancel your paid subscription to {{title}}",{title:e==null?void 0:e.title})}):null}function Mm({notification:e,subscribedNewsletters:t,updateSubscribedNewsletters:n,updateCommentNotifications:r,unsubscribeAll:i,isPaidMember:o,isCommentsEnabled:a,enableCommentNotifications:s}){const{brandColor:l,onAction:c,member:p,site:d,t:f}=x.useContext(R),y=!(t!=null&&t.length)&&(a&&!s||!a);return b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),u(Lx,{}),u(e||(()=>null),{}),u("div",{className:"gh-portal-section flex",children:b("div",{className:"gh-portal-list",children:[u(Ax,{subscribedNewsletters:t,setSubscribedNewsletters:g=>{let h=g.map(m=>({id:m.id}));n(h)}}),u(Ix,{isCommentsEnabled:a,enableCommentNotifications:s,updateCommentNotifications:r})]})}),b("footer",{className:"gh-portal-action-footer"+(qc({member:p})?" gh-feature-suppressions":""),children:[b("div",{style:{width:"100%"},children:[u(he,{isRunning:!1,onClick:g=>{i()},disabled:y,brandColor:l,isPrimary:!1,label:f("Unsubscribe from all emails"),isDestructive:!0,style:{width:"100%"},dataTestId:"unsubscribe-from-all-emails"}),u(Mx,{isPaid:o,site:d})]}),qc({member:p})&&!y&&b("div",{className:"gh-portal-footer-secondary",children:[u("span",{className:"gh-portal-footer-secondary-light",children:f("Not receiving emails?")}),b("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>c("switchPage",{page:"emailReceivingFAQ"}),children:[f("Get help")," →"]})]})]})]})}function zx(){const{member:e,onAction:t,site:n,t:r}=x.useContext(R);x.useEffect(()=>{e||t("switchPage",{page:"signin"})},[e,t]);const i=[...(e==null?void 0:e.newsletters)||[]],[o,a]=x.useState(i),{comments_enabled:s}=n,{enable_comment_notifications:l}=e||{};return x.useEffect(()=>{a((e==null?void 0:e.newsletters)||[])},[e==null?void 0:e.newsletters]),u(Mm,{notification:null,subscribedNewsletters:o,updateSubscribedNewsletters:c=>{a(c),t("updateNewsletterPreference",{newsletters:c})},updateCommentNotifications:async c=>{t("updateNewsletterPreference",{enableCommentNotifications:c})},unsubscribeAll:()=>{a([]),t("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const c={newsletters:[]};s&&(c.enableCommentNotifications=!1),t("updateNewsletterPreference",c)},isPaidMember:kt({member:e}),isCommentsEnabled:s!=="off",enableCommentNotifications:l})}function Fx(){const{site:e}=x.useContext(R),t=e.icon;return t?u("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:e.title}):null}function Ux(){const{site:e}=x.useContext(R),t=e.title||"";return b("header",{className:"gh-portal-header",children:[u(Fx,{}),u("h2",{className:"gh-portal-publication-title",children:t})]})}async function nu({api:e,memberUuid:t,newsletters:n,enableCommentNotifications:r}){try{return await e.member.updateNewsletters({uuid:t,newsletters:n,enableCommentNotifications:r})}catch{}}function Bx(){const{site:e,pageData:t,onAction:n,t:r}=x.useContext(R),i=za({siteUrl:e.url}),[o,a]=x.useState(),s=wr({site:e}),l=s.filter(m=>m.subscribe_on_signup),[c,p]=x.useState(!1),[d,f]=x.useState(l),[y,v]=x.useState(!1),{comments_enabled:_}=e,{enable_comment_notifications:g=!1}=o||{};return x.useEffect(()=>{const m=za({siteUrl:e.url});(async()=>{const w=await m.member.newsletters({uuid:t.uuid});a(w);const k=(w==null?void 0:w.newsletters)||[];if(f(k),(s==null?void 0:s.length)===1&&!_){const C=await nu({api:m,memberUuid:t.uuid,newsletters:[]});f(C.newsletters)}else if(t.newsletterUuid){const C=await nu({api:m,memberUuid:t.uuid,newsletters:k==null?void 0:k.filter(S=>S.uuid!==t.newsletterUuid)});f(C.newsletters)}else if(t.comments&&_){const C=await nu({api:m,memberUuid:t.uuid,enableCommentNotifications:!1});a(C)}})()},[_,t.uuid,t.newsletterUuid,t.comments,e.url,s==null?void 0:s.length]),o===null?b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(Zc,{})}),u("h1",{className:"gh-portal-main-title",children:r("That didn't go to plan")}),u("div",{children:u("p",{className:"gh-portal-text-center",children:r("We couldn't unsubscribe you as the email address was not found. Please contact the site owner.")})}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>n("closePopup"),disabled:!1,brandColor:"#000000",label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]}):(s==null?void 0:s.length)===1&&!_&&!y?b("div",{className:"gh-portal-content gh-portal-unsubscribe with-footer",children:[u(we,{}),u(Ux,{}),u("h1",{className:"gh-portal-main-title",children:r("Successfully unsubscribed")}),b("div",{children:[b("p",{className:"gh-portal-text-center",children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive this newsletter."]}),b("p",{className:"gh-portal-text-center",children:["Didn't mean to do this? Manage your preferences",u("button",{className:"gh-portal-btn-link gh-portal-btn-branded gh-portal-btn-inline",onClick:()=>{v(!0)},children:"here"}),"."]})]})]}):u(Mm,{notification:()=>{if(t.comments&&_)return u(Y,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive emails when someone replies to your comments."]})});const m=s==null?void 0:s.find(k=>k.uuid===t.newsletterUuid);return u(Y,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive ",u("strong",{children:m==null?void 0:m.name})," newsletter."]})})},subscribedNewsletters:d,updateSubscribedNewsletters:async m=>{f(m),p(!0),await i.member.updateNewsletters({uuid:t.uuid,newsletters:m})},updateCommentNotifications:async m=>{const w=await i.member.updateNewsletters({uuid:t.uuid,enableCommentNotifications:m});a(w)},unsubscribeAll:async()=>{p(!0),f([]),n("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const m=await i.member.updateNewsletters({uuid:t.uuid,newsletters:[],enableCommentNotifications:!1});a(m)},isPaidMember:(o==null?void 0:o.status)!=="free",isCommentsEnabled:_!=="off",enableCommentNotifications:g})}function Yx(){const{brandColor:e,lastPage:t,onAction:n,action:r,site:i,t:o}=x.useContext(R);x.useEffect(()=>{["removeEmailFromSuppressionList:success"].includes(r)&&n("refreshMemberData"),["removeEmailFromSuppressionList:failed","refreshMemberData:failed"].includes(r)&&n("back"),["refreshMemberData:success"].includes(r)&&(Na({site:i})||Xh({site:i})?(n("switchPage",{page:"accountEmail",lastPage:"accountHome"}),n("showPopupNotification",{message:o("You have been successfully resubscribed")})):n("back"))},[r,n,i,o]);const a=["removeEmailFromSuppressionList:running","refreshMemberData:running"].includes(r),s=()=>{n("removeEmailFromSuppressionList")};return b("div",{className:"gh-email-suppressed-page",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:()=>{n("back")}}),u(we,{})]}),u(Lm,{className:"gh-email-suppressed-page-icon"}),b("div",{className:"gh-email-suppressed-page-text",children:[u("h3",{className:"gh-portal-main-title gh-email-suppressed-page-title",children:o("Emails disabled")}),u("p",{children:o("You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.")})]}),u(he,{dataTestId:"resubscribe-email",classes:"gh-portal-confirm-button",onClick:s,disabled:a,brandColor:e,label:o("Re-enable emails"),isRunning:a})]})}function Hx(){const{brandColor:e,onAction:t,site:n}=x.useContext(R),r=`mailto:${Oa({site:n})}`;return b("div",{className:"gh-email-suppression-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{t("switchPage",{page:"emailSuppressed",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Why has my email been disabled?"}),u("p",{children:"Newsletters can be disabled on your account for two reasons: A previous email was marked as spam, or attempting to send an email resulted in a permanent failure (bounce)."}),u("h4",{children:"Spam complaints"}),u("p",{children:"If a newsletter is flagged as spam, emails are automatically disabled for that address to make sure you no longer receive any unwanted messages."}),u("p",{children:"If the spam complaint was accidental, or you would like to begin receiving emails again, you can resubscribe to emails by clicking the button on the previous screen."}),u("p",{children:"Once resubscribed, if you still don't see emails in your inbox, check your spam folder. Some inbox providers keep a record of previous spam complaints and will continue to flag emails. If this happens, mark the latest newsletter as 'Not spam' to move it back to your primary inbox."}),u("h4",{children:"Permanent failure (bounce)"}),u("p",{children:"When an inbox fails to accept an email it is commonly called a bounce. In many cases, this can be temporary. However, in some cases, a bounced email can be returned as a permanent failure when an email address is invalid or non-existent."}),u("p",{children:"In the event a permanent failure is received when attempting to send a newsletter, emails will be disabled on the account."}),u("p",{children:"If you would like to start receiving emails again, the best next steps are to check your email address on file for any issues and then click resubscribe on the previous screen."}),u("p",{children:u("a",{className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Need more help? Contact support"})})]})]})}function Gx(){const{brandColor:e,onAction:t,site:n,lastPage:r,member:i}=x.useContext(R),o=Oa({site:n}),a=`mailto:${o}`,s=Xb({site:n});return b("div",{className:"gh-email-receiving-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{r?t("switchPage",{page:"accountHome"}):t("switchPage",{page:"accountEmail",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Help! I'm not receiving emails"}),u("p",{children:"If you're not receiving the email newsletter you've subscribed to, here are few things to check."}),u("h4",{children:"Verify your email address is correct"}),b("p",{children:["The email address we have for you is ",u("strong",{children:i.email})," — if that's not correct, you can update it in your ",u("button",{className:"gh-portal-btn-text",onClick:()=>t("switchPage",{lastPage:"emailReceivingFAQ",page:"accountProfile"}),children:"account settings area"}),"."]}),u("h4",{children:"Check spam & promotions folders"}),u("p",{children:`Make sure emails aren't accidentally ending up in the Spam or Promotions folders of your inbox. If they are, click on "Mark as not spam" and/or "Move to inbox".`}),u("h4",{children:"Create a new contact"}),b("p",{children:["In your email client add ",u("strong",{children:s})," to your contacts list. This signals to your mail provider that emails sent from this address should be trusted."]}),u("h4",{children:"Send an email and say hi!"}),b("p",{children:["Send an email to ",u("strong",{children:s})," and say hello. This can also help signal to your mail provider that emails to-and-from this address should be trusted."]}),u("h4",{children:"Check with your mail provider"}),b("p",{children:["If you have a corporate or government email account, reach out to your IT department and ask them to allow emails to be received from ",u("strong",{children:s})]}),u("h4",{children:"Get in touch for help"}),b("p",{children:["If you've completed all these checks and you're still not receiving emails, you can reach out to get support by contacting ",u("a",{href:a,onClick:()=>{a&&window.open(a)},children:o}),"."]})]})]})}const ru={signin:Dm,signup:Cm,accountHome:jm,accountPlan:Sm,accountProfile:Im,accountEmail:zx,signupNewsletter:tu,unsubscribe:Bx,magiclink:Pm,loading:Om,offer:Tm,feedback:px,emailSuppressed:Yx,emailSuppressionFAQ:Hx,emailReceivingFAQ:Gx},iu=function({page:e}){return Object.keys(ru).includes(e)?e:"signup"},Wx=function({page:e}){return e.includes("account")},Vx=function({page:e}){return e.includes("offer")},Kx=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}));class ou extends q.Component{render(){const{t}=this.context;return b("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:()=>{window.open("https://ghost.org","_blank")},children:[u(Kx,{}),t("Powered by Ghost")]})}}Z(ou,"contextType",R);const zm=({member:e})=>({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 qx({message:e}){return gr()?u("div",{className:"gh-portal-cookiebanner",children:e}):null}class Fm extends q.Component{componentDidMount(){this.node&&!K(["preview"])&&!this.props.isMobile&&(this.node.focus(),this.keyUphandler=t=>{t.key==="Escape"&&this.dismissPopup(t)},this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler),this.node.ownerDocument.addEventListener("keyup",this.keyUphandler)),this.sendContainerHeightChangeEvent()}dismissPopup(t){var i;const n=t.target&&t.target.tagName;(n!=="INPUT"||n==="INPUT"&&!((i=t==null?void 0:t.target)!=null&&i.value))&&this.context.onAction("closePopup")}sendContainerHeightChangeEvent(){var t,n;this.node&&K(["preview"])&&((t=this.node)==null?void 0:t.clientHeight)!==this.lastContainerHeight&&(this.lastContainerHeight=(n=this.node)==null?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}},"*"))}componentDidUpdate(){this.sendContainerHeightChangeEvent()}componentWillUnmount(){this.node&&this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler)}handlePopupClose(t){K(["preview"])||t.target===t.currentTarget&&this.context.onAction("closePopup")}renderActivePage(){const{page:t}=this.context;iu({page:t});const n=ru[t];return u(n,{})}renderPopupNotification(){const{popupNotification:t}=this.context;return!t||!t.type?null:u(Nm,{})}render(){const{page:t,pageQuery:n,site:r,customSiteUrl:i}=this.context,a=Ca({site:r}).length;iu({page:t});const l={...zm({page:t}).page[t]};let c="",p="regular",d="",f=t;switch(t){case"signup":d="Cookies must be enabled in your browser to sign up.";break;case"signin":d="Cookies must be enabled in your browser to sign in.";break;case"accountHome":f="account-home";break;case"accountProfile":f="account-profile";break;case"accountPlan":f="account-plan";break;default:d="Cookies must be enabled in your browser.",f=t;break}a>1&&!at({site:r,pageQuery:n})&&t==="signup"&&(f+=" full-size",p="full");const y=En({site:r});(y&&a>2||!y&&a>1)&&t==="accountPlan"&&(f+=" full-size",p="full"),(t==="emailSuppressionFAQ"||t==="emailReceivingFAQ")&&(f+=" large-size");let v="gh-portal-popup-container";K(["preview"])&&(f+=" preview"),K(["preview"],{customSiteUrl:i})&&!r.disableBackground&&(v+=" preview"),K(["dev"])&&(v+=" dev");const _=`${v} ${c} ${f}`;return b(Y,{children:[u("div",{className:"gh-portal-popup-wrapper "+f,onClick:g=>this.handlePopupClose(g),children:b("div",{className:_,style:l,ref:g=>this.node=g,tabIndex:-1,children:[u(qx,{message:d}),this.renderPopupNotification(),this.renderActivePage(),p==="full"?u("div",{className:"gh-portal-powered inside "+(K(["preview"])?"hidden ":"")+f,children:u(ou,{})}):""]})}),u("div",{className:"gh-portal-powered outside "+(K(["preview"])?"hidden ":"")+f,children:u(ou,{})})]})}}Z(Fm,"contextType",R);class Um extends q.Component{constructor(t){super(t),this.state={height:null}}renderCurrentPage(t){const n=ru[t];return u(n,{})}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.onAction("closePopup")}renderFrameStyles(){const{site:t}=this.context,n=bx({site:t}),r=`
3021
3113
  :root {
3022
3114
  --brandcolor: ${this.context.brandColor}
3023
3115
  }
3024
- `+n;return b(H,{children:[u("style",{dangerouslySetInnerHTML:{__html:r}}),u("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const{member:t,site:n,customSiteUrl:r}=this.context,i=Ag({member:t}),o=window.innerWidth<480,a={...i.frame.common};let s="gh-portal-popup-background";return K(["preview"])&&(i.modalContainer.zIndex="3999997"),K(["preview"],{customSiteUrl:r})&&!n.disableBackground&&(s+=" preview"),K(["dev"])&&(s+=" dev"),u("div",{style:i.modalContainer,children:b(Fc,{style:a,title:"portal-popup",head:this.renderFrameStyles(),dataTestId:"portal-popup-frame",children:[u("div",{className:s,onClick:l=>this.handlePopupClose(l)}),u(Mg,{isMobile:o})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}Z(Fg,"contextType",R),Ma({products:iu({numOfProducts:1})});function Se(){return(new Date().getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,function(){return(Math.random()*16|0).toString(16)}).toLowerCase()}function Ma({title:e="The Blueprint",description:t="Thoughts, stories and ideas.",logo:n="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:r="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",url:i="https://portal.localhost",plans:o={monthly:5e3,yearly:15e4,currency:"USD"},products:a=iu({numOfProducts:1}),portalProducts:s=a.map(O=>O.id),accentColor:l="#45C32E",portalPlans:c=["free","monthly","yearly"],allowSelfSignup:d=!0,membersSignupAccess:p="all",freePriceName:f="Free",freePriceDescription:y="Free preview",isStripeConfigured:v=!0,portalButton:k=!0,portalName:m=!0,portalButtonIcon:h="icon-1",portalButtonSignupText:g="Subscribe now",portalButtonStyle:w="icon-and-text",membersSupportAddress:_="support@example.com",newsletters:C=[],commentsEnabled:S}={}){return{title:e,description:t,logo:n,icon:r,accent_color:l,url:i,plans:o,products:a,portal_products:s,allow_self_signup:d,members_signup_access:p,free_price_name:f,free_price_description:y,is_stripe_configured:v,portal_button:k,portal_name:m,portal_plans:c,portal_button_icon:h,portal_button_signup_text:g,portal_button_style:w,members_support_address:_,comments_enabled:!!S,newsletters:C}}function zg({name:e="Black Friday",code:t="black-friday",displayTitle:n="Black Friday Sale!",displayDescription:r="Special deal for Black Friday. Subscribe now for only $15 per month and get additional benefits like accessing our podcast.",type:i="percent",cadence:o="month",amount:a=50,duration:s="repeating",durationInMonths:l=null,currencyRestriction:c=!1,currency:d=null,status:p="active",tierId:f="",tierName:y="Basic"}={}){return{id:`offer_${Se()}`,name:e,code:t,display_title:n,display_description:r,type:i,cadence:o,amount:a,duration:s,duration_in_months:l,currency_restriction:c,currency:d,status:p,tier:{id:`${f}`,name:y}}}function Je({name:e="Jamie Larson",email:t="jamie@example.com",firstname:n="Jamie",subscriptions:r=[],paid:i=!1,avatarImage:o="",subscribed:a=!0,email_suppression:s={suppressed:!1,info:null}}={}){return{uuid:`member_${Se()}`,email:t,name:e,firstname:n,paid:i,subscribed:a,avatar_image:o,subscriptions:r,email_suppression:s}}function iu({numOfProducts:e=3}={}){const n=[Er({name:"Bronze",description:"Access to all members articles",monthlyPrice:He({interval:"month",amount:700}),yearlyPrice:He({interval:"year",amount:7e3}),numOfBenefits:2}),Er({name:"Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:He({interval:"month",amount:1200}),yearlyPrice:He({interval:"year",amount:12e3}),numOfBenefits:3}),Er({name:"Friends of the Blueprint",description:"Get access to everything and lock in early adopter pricing for life + listen to my podcast",monthlyPrice:He({interval:"month",amount:18e3}),yearlyPrice:He({interval:"year",amount:17e3}),numOfBenefits:4})].slice(0,e),r=Ug({});return[...n,r]}function Er({type:e="paid",name:t="Basic",description:n="",id:r=`product_${Se()}`,monthlyPrice:i=He(),yearlyPrice:o=He({interval:"year"}),numOfBenefits:a=2}){return{id:r,name:t,description:n,monthlyPrice:e==="free"?null:i,yearlyPrice:e==="free"?null:o,type:e,benefits:Bg({numOfBenefits:a})}}function Ug({name:e="Free tier",description:t="Free tier description",id:n=`product_${Se()}`,numOfBenefits:r=2}){return{id:n,name:e,type:"free",description:t,benefits:Bg({numOfBenefits:r})}}function Bg({numOfBenefits:e}){return[Fa({name:"Limited early adopter pricing"}),Fa({name:"Latest gear reviews"}),Fa({name:"Weekly email newsletter"}),Fa({name:"Listen to my podcast"})].slice(0,e)}function Fa({id:e=`benefit_${Se()}`,name:t="Benefit"}){return{id:e,name:t}}function He({interval:e="month",amount:t=e==="month"?500:5e3,nickname:n=e==="month"?"Monthly":"Yearly",description:r=null,currency:i="usd",active:o=!0,id:a=`price_${Se()}`}={}){return{id:a,active:o,nickname:n,currency:i,amount:t,interval:e,description:r,stripe_price_id:`price_${Se()}`,stripe_product_id:`prod_${Se()}`,type:"recurring"}}function Tn({id:e=`sub_${Se()}`,status:t="active",currency:n="USD",interval:r="year",amount:i=r==="month"?500:5e3,nickname:o=r==="month"?"Monthly":"Yearly",cardLast4:a="4242",offer:s=Yx,priceId:l=`price_${Se()}`,startDate:c="2021-10-05T03:18:30.000Z",currentPeriodEnd:d="2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:p=!1}={}){return{id:e,customer:{id:`cus_${Se()}`,name:"Jamie",email:"jamie@example.com"},plan:{id:`price_${Se()}`,nickname:o,amount:i,interval:r,currency:n},offer:s,status:t,start_date:c,default_payment_card_last4:a,cancel_at_period_end:p,cancellation_reason:null,current_period_end:d,price:{id:`stripe_price_${Se()}`,price_id:l,nickname:o,amount:i,interval:r,type:"recurring",currency:n,product:{id:`stripe_prod_${Se()}`,product_id:`prod_${Se()}`}}}}function Hg(){const e=iu({numOfProducts:1}),t=e.map(r=>r.id);return Ma({products:e,portalPlans:["free","monthly","yearly"],portalProducts:t})}Hg();const Hx=Ma({products:[Er({numOfBenefits:2,type:"free"})]}),Yx=zg({tierId:(vm=Hx.products[0])==null?void 0:vm.id});Je(),Je({paid:!0,subscriptions:[Tn()]}),Je({paid:!0,subscriptions:[]}),Je({paid:!0,subscriptions:[Tn({amount:0})]}),Je({paid:!0,subscriptions:[Tn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]}),Hg();const za=[Ug({name:"Free",description:"Free tier description which is actually a pretty long description",numOfBenefits:2}),Er({name:"The Blueprint",description:"",monthlyPrice:He({interval:"month",amount:500}),yearlyPrice:He({interval:"year",amount:5e3}),numOfBenefits:3}),Er({name:"Friends of the Blueprint Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:He({interval:"month",amount:1200}),yearlyPrice:He({interval:"year",amount:11e3}),numOfBenefits:4})],Cr=Ma({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:za,portalProducts:za.map(e=>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}]}),Yg=zg({tierId:(bm=Cr.products[1])==null?void 0:bm.id}),Ua={free:Je({name:"Jamie Larson",email:"jamie@example.com",firstname:"Jamie",subscriptions:[],paid:!1,avatarImage:"",subscribed:!0}),paid:Je({paid:!0,subscriptions:[Tn({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:Je({paid:!0,subscriptions:[]}),complimentaryWithSubscription:Je({paid:!0,subscriptions:[Tn({amount:0})]}),preview:Je({paid:!0,subscriptions:[Tn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]})};function Gx(){var n;if(!za||!za[1])return null;let e=(n=Cr==null?void 0:Cr.products)==null?void 0:n[1].monthlyPrice,t=Je({paid:!0,subscriptions:[Tn({offer:null,priceId:e==null?void 0:e.id,status:"active",currency:e==null?void 0:e.currency,interval:e==null?void 0:e.interval,amount:e==null?void 0:e.amount,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]});return{site:Cr,member:t}}function Wx({data:e,state:t}){return{page:e.page,popupNotification:null,lastPage:e.lastPage||null,pageData:e.pageData||t.pageData}}function Vx({state:e}){return{showPopup:!e.showPopup}}function Kx({data:e}){return{showPopup:!0,page:e.page,...e.pageQuery?{pageQuery:e.pageQuery}:{},...e.pageData?{pageData:e.pageData}:{}}}function qx({state:e}){return e.lastPage?{page:e.lastPage}:Gg({state:e})}function Gg({state:e}){return Hc(),{showPopup:!1,lastPage:null,pageQuery:"",popupNotification:null,page:e.page==="magiclink"?"":e.page}}function Qx({data:e}){return{showNotification:!0,...e}}function Jx({state:e}){return{showNotification:!1}}async function Xx({api:e,state:t}){try{return await e.member.signout(),{action:"signout:success"}}catch{return{action:"signout:failed",popupNotification:X({type:"signout:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to log out, please try again"})}}}async function Zx({data:e,api:t,state:n}){try{return await t.member.sendMagicLink({...e,emailType:"signin"}),{page:"magiclink",lastPage:"signin"}}catch(r){return{action:"signin:failed",popupNotification:X({type:"signin:failed",autoHide:!1,closeable:!0,state:n,status:"error",message:kt.getMessageFromError(r,"Failed to log in, please try again")})}}}async function e_({data:e,state:t,api:n}){try{let{plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}=e;if(r.toLowerCase()==="free")await n.member.sendMagicLink({emailType:"signup",...e});else return i&&o?await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}):({tierId:i,cadence:o}=Nn({site:t==null?void 0:t.site,priceId:r}),await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c})),{page:"loading"};return{page:"magiclink",lastPage:"signup"}}catch(r){const i=(r==null?void 0:r.message)||"Failed to sign up, please try again";return{action:"signup:failed",popupNotification:X({type:"signup:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:i})}}}async function t_({data:e,state:t,api:n}){try{let{plan:r,offerId:i,tierId:o,cadence:a}=e;(!o||!a)&&({tierId:o,cadence:a}=Nn({site:t==null?void 0:t.site,priceId:r})),await n.member.checkoutPlan({plan:r,tierId:o,cadence:a,offerId:i,metadata:{checkoutType:"upgrade"}})}catch{return{action:"checkoutPlan:failed",popupNotification:X({type:"checkoutPlan:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to process checkout, please try again"})}}}async function n_({data:e,state:t,api:n}){try{const{plan:r,planId:i,subscriptionId:o,cancelAtPeriodEnd:a}=e,{tierId:s,cadence:l}=Nn({site:t==null?void 0:t.site,priceId:i});await n.member.updateSubscription({planName:r,tierId:s,cadence:l,subscriptionId:o,cancelAtPeriodEnd:a,planId:i});const c=await n.member.sessionData(),d="updateSubscription:success";return{action:d,popupNotification:X({type:d,autoHide:!0,closeable:!0,state:t,status:"success",message:"Subscription plan updated successfully"}),page:"accountHome",member:c}}catch{return{action:"updateSubscription:failed",popupNotification:X({type:"updateSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update subscription, please try again"})}}}async function r_({data:e,state:t,api:n}){try{const{subscriptionId:r,cancellationReason:i}=e;return await n.member.updateSubscription({subscriptionId:r,smartCancel:!0,cancellationReason:i}),{action:"cancelSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"cancelSubscription:failed",popupNotification:X({type:"cancelSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function i_({data:e,state:t,api:n}){try{const{subscriptionId:r}=e;return await n.member.updateSubscription({subscriptionId:r,cancelAtPeriodEnd:!1}),{action:"continueSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"continueSubscription:failed",popupNotification:X({type:"continueSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function o_({data:e,state:t,api:n}){try{await n.member.editBilling(e)}catch{return{action:"editBilling:failed",popupNotification:X({type:"editBilling:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update billing information, please try again"})}}}async function a_(){return{popupNotification:null}}async function s_({data:e,state:t}){let{action:n,message:r=""}=e;return n=n||"showPopupNotification:success",{popupNotification:X({type:n,autoHide:!0,closeable:!0,state:t,status:"success",message:r})}}async function l_({data:e,state:t,api:n}){try{const{newsletters:r,enableCommentNotifications:i}=e;if(!r&&i===void 0)return{};const o={};return r&&(o.newsletters=r),i!==void 0&&(o.enableCommentNotifications=i),{action:"updateNewsletterPref:success",member:await n.member.update(o)}}catch{return{action:"updateNewsletterPref:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function c_({state:e,api:t}){try{return await t.member.deleteSuppression(),{action:"removeEmailFromSuppressionList:success",popupNotification:X({type:"removeEmailFromSuppressionList:success",autoHide:!0,closeable:!0,state:e,status:"success",message:"You have been successfully resubscribed"})}}catch{return{action:"removeEmailFromSuppressionList:failed",popupNotification:X({type:"removeEmailFromSuppressionList:failed",autoHide:!0,closeable:!0,state:e,status:"error",message:"Your email has failed to resubscribe, please try again"})}}}async function u_({data:e,state:t,api:n}){try{const{subscribed:r}=e,i=await n.member.update({subscribed:r});if(!i)throw new Error("Failed to update newsletter");const o="updateNewsletter:success";return{action:o,member:i,popupNotification:X({type:o,autoHide:!0,closeable:!0,state:t,status:"success",message:"Email newsletter settings updated"})}}catch{return{action:"updateNewsletter:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function p_({data:e,state:t,api:n}){const{email:r}=e,i=Hb({member:t.member});if(r!==i)try{return await n.member.updateEmailAddress({email:r}),{success:!0}}catch(o){return{success:!1,error:o}}return null}async function d_({data:e,state:t,api:n}){const{name:r}=e;if(Gb({member:t.member})!==r)try{const o=await n.member.update({name:r});if(!o)throw new Error("Failed to update member");return{member:o,success:!0}}catch(o){return{success:!1,error:o}}return null}async function f_({state:e,api:t}){if(e.member)try{const n=await t.member.sessionData();return n?{member:n,success:!0,action:"refreshMemberData:success"}:null}catch(n){return{success:!1,error:n,action:"refreshMemberData:failed"}}return null}async function h_({data:e,state:t,api:n}){const[r,i]=await Promise.all([d_({data:e,state:t,api:n}),p_({data:e,state:t,api:n})]);if(r&&i){if(i.success)return{action:"updateProfile:success",...r.success?{member:r.member}:{},page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Check your inbox to verify email update"})};const o=r.success?"Failed to send verification email":"Failed to update account data";return{action:"updateProfile:failed",...r.success?{member:r.member}:{},popupNotification:X({type:"updateProfile:failed",autoHide:!0,closeable:!0,status:"error",message:o,state:t})}}else if(r){const o=r.success?"updateProfile:success":"updateProfile:failed",a=r.success?"success":"error",s=r.success?"Account details updated successfully":"Failed to update account details";return{action:o,...r.success?{member:r.member}:{},...r.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:r.success,closeable:!0,status:a,state:t,message:s})}}else if(i){const o=i.success?"updateProfile:success":"updateProfile:failed",a=i.success?"success":"error",s=i.success?"Check your inbox to verify email update":"Failed to send verification email";return{action:o,...i.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:i.success,closeable:!0,status:a,state:t,message:s})}}return{action:"updateProfile:success",page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Account details updated successfully"})}}const g_={togglePopup:Vx,openPopup:Kx,closePopup:Gg,switchPage:Wx,openNotification:Qx,closeNotification:Jx,back:qx,signout:Xx,signin:Zx,signup:e_,updateSubscription:n_,cancelSubscription:r_,continueSubscription:i_,updateNewsletter:u_,updateProfile:h_,refreshMemberData:f_,clearPopupNotification:a_,editBilling:o_,checkoutPlan:t_,updateNewsletterPreference:l_,showPopupNotification:s_,removeEmailFromSuppressionList:c_};async function m_({action:e,data:t,state:n,api:r}){const i=g_[e];return i?await i({data:t,state:n,api:r})||{}:{}}const nk="";function y_({event:e,form:t,errorEl:n,siteUrl:r,submitHandler:i}){var k;t.removeEventListener("submit",i),e.preventDefault(),n&&(n.innerText=""),t.classList.remove("success","invalid","error");let o=e.target.querySelector("input[data-members-email]"),a=e.target.querySelector("input[data-members-name]"),s=((k=t==null?void 0:t.dataset)==null?void 0:k.membersAutoredirect)||"true",l=o==null?void 0:o.value,c=a&&a.value||void 0,d,p=[],f=e.target.querySelectorAll("input[data-members-label]")||[];for(let m=0;m<f.length;++m)p.push(f[m].value);t.dataset.membersForm&&(d=t.dataset.membersForm),t.classList.add("loading");const y=Da(),v={email:l,emailType:d,labels:p,name:c,autoRedirect:s==="true"};y&&(v.urlHistory=y),fetch(`${r}/members/api/send-magic-link/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(function(m){if(t.addEventListener("submit",i),t.classList.remove("loading"),m.ok)t.classList.add("success");else return kt.fromApiResponse(m).then(h=>{throw h})}).catch(m=>{n&&(n.innerText=kt.getMessageFromError(m,"There was an error sending the email, please try again")),t.classList.add("error")})}function v_({event:e,el:t,errorEl:n,siteUrl:r,site:i,member:o,clickHandler:a}){t.removeEventListener("click",a),e.preventDefault();let s=t.dataset.membersPlan,l=Ab(i,s.toLowerCase()),c=t.dataset.membersSuccess,d=t.dataset.membersCancel,p,f;c&&(p=new URL(c,window.location.href).href),d&&(f=new URL(d,window.location.href).href),n&&(n.innerText=""),t.classList.add("loading");const y=o?{checkoutType:"upgrade"}:{},v=Da();return v&&(y.urlHistory=v),fetch(`${r}/members/api/session`,{credentials:"same-origin"}).then(function(k){return k.ok?k.text():null}).then(function(k){return fetch(`${r}/members/api/create-stripe-checkout-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,identity:k,successUrl:p,cancelUrl:f,metadata:y})}).then(function(m){if(!m.ok)throw new Error("Could not create stripe checkout session");return m.json()})}).then(function(k){return k.url?window.location.assign(k.url):window.Stripe(k.publicKey).redirectToCheckout({sessionId:k.sessionId}).then(function(h){if(h.error)throw new Error(h.error.message)})}).catch(function(k){console.error(k),t.addEventListener("click",a),t.classList.remove("loading"),n&&(n.innerText=k.message),t.classList.add("error")})}function b_({siteUrl:e,site:t,member:n}){e&&(e=e.replace(/\/$/,""),Array.prototype.forEach.call(document.querySelectorAll("form[data-members-form]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){y_({event:a,errorEl:i,form:r,siteUrl:e,submitHandler:o})}r.addEventListener("submit",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-plan]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){v_({el:r,event:a,errorEl:i,member:n,site:t,siteUrl:e,clickHandler:o})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-edit-billing]"),function(r){let i=r.querySelector("[data-members-error]"),o=r.dataset.membersSuccess,a=r.dataset.membersCancel,s,l;o&&(s=new URL(o,window.location.href).href),a&&(l=new URL(a,window.location.href).href);function c(d){r.removeEventListener("click",c),d.preventDefault(),i&&(i.innerText=""),r.classList.add("loading"),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(p){return p.ok?p.text():null}).then(function(p){return fetch(`${e}/members/api/create-stripe-update-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:p,successUrl:s,cancelUrl:l})}).then(function(f){if(!f.ok)throw new Error("Could not create stripe checkout session");return f.json()})}).then(function(p){return window.Stripe(p.publicKey).redirectToCheckout({sessionId:p.sessionId})}).then(function(p){if(p.error)throw new Error(p.error.message)}).catch(function(p){console.error(p),r.addEventListener("click",c),r.classList.remove("loading"),i&&(i.innerText=p.message),r.classList.add("error")})}r.addEventListener("click",c)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-signout]"),function(r){function i(o){r.removeEventListener("click",i),o.preventDefault(),r.classList.remove("error"),r.classList.add("loading"),fetch(`${e}/members/api/session`,{method:"DELETE"}).then(function(a){a.ok?window.location.replace(e):(r.addEventListener("click",i),r.classList.remove("loading"),r.classList.add("error"))})}r.addEventListener("click",i)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-cancel-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersCancelSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,smart_cancel:!0})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error cancelling your subscription, please try again."))})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-continue-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersContinueSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,cancel_at_period_end:!1})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error continuing your subscription, please try again."))})}r.addEventListener("click",o)}))}var ou={},w_={get exports(){return ou},set exports(e){ou=e}};const x_={"{{discount}}% discount":"{{discount}}% afslag","{{trialDays}} days free":"{{trialDays}} dae gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"'n Aanmeldingskakel is na u inboks gestuur. As dit nie binne 3 minute aankom nie, maak seker om u spam-velde te kyk.",Account:"Rekening","Account settings":"Rekening instellings","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na die gratis proefperiode, sal gewone prys vir die opsie wat jy gekies het betaal. Jy kan altyd voor die tyd kanselleer.","Already a member?":"Reeds 'n lid?",Back:"Terug","Back to Log in":"Terug na aanmelding","Cancel subscription":"Kanseleer subskripsie","Cancellation reason":"Rede vir kansellasie","Choose a different plan":"Kies 'n ander plan","Choose your newsletters":"Kies jou nuusbriewe",Close:"Maak toe",Comments:"Kommentaar",Confirm:"Bevestig",Continue:"Gaan voort","Delete account":"Sluit rekening","Don't have an account?":"Nog nie 'n rekening nie?",Email:"Epos","Email preference updated.":"Epos instellings opgedateer.","Email preferences":"Epos instellings",Emails:"Eposse","Emails disabled":"Eposse afgeskakel","Get help":"Kry hulp","Get notified when someone replies to your comment":"Ontvang kennisgewing wanneer iemand op jou kommentaar reageer","Give feedback on this post":"Gee terugvoering oor hierdie berig","Less like this":"Minder soos hierdie",Manage:"Beheer",Monthly:"Maandeliks","More like this":"Meer soos hierdie",Name:"Naam","Not receiving emails?":"Ontvang nie eposse nie?","Now check your email!":"Kyk nou na u epos!","Powered by Ghost":"Aangedryf deur Ghost",Price:"Prys","Re-enable emails":"Her-aktiveer eposse",Retry:"Probeer weer",Save:"Stoor","Sending login link...":"Stuur aanmeldingskakel...","Sending...":"Besig om te stuur...","Sign in":"Skakel in","Sign up":"Meld aan","Start {{amount}}-day free trial":"Begin {{amount}}-dae gratis proefperiode","Submit feedback":"Stuur terugvoering","Successfully unsubscribed":"Suksesvol afgeskakel","Thanks for the feedback!":"Dankie vir die terugvoering!","That didn't go to plan":"Dit het soos die plan nie verloop nie","This site is invite-only, contact the owner for access.":"Die webwerf is net vir uitnodigings, kontak die eienaar vir toegang.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Om aanmelding te voltooi, klik op die bevestigingskakel in jou inboks. As dit nie binne 3 minute aankom nie, kyk na jou spam-velde!","Unsubscribe from all emails":"Skakel van alle eposse af","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Deur van eposse af te skakel, sal nie jou betaalde subskripsie van {{title}} kanselleer nie","Update your preferences":"Opdateer jou voorkeure","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ons kon nie jou afskakel nie, omdat die eposadres nie gevind is nie. Kontak asseblief die webwerf eienaar.",Yearly:"Jaarliks","You have been successfully resubscribed":"Jy is suksesvol her-aangeskakel","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Jy kry nie eposse nie, omdat jy onlangs 'n boodskap as spam gemerk het, of omdat boodskappe nie na die epos adres wat jy verskaf het gestuur kon word nie.","Your account":"Jou rekening","Your input helps shape what gets published.":"Jou invoer help om te bepaal wat gepubliseer word."},__={"{{discount}}% discount":"{{discount}}% Rabatt","{{trialDays}} days free":"{{trialDays}} Tage kostenlos","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Ein Login-Link wurde an Deine E-Mail-Adresse gesendet. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner.",Account:"Benutzerkonto","Account settings":"Benutzerkonto-Einstellungen","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Wenn das kostenlose Testabo endet, wirst Du den regulären Preis für den gewählten Tarif bezahlen. Du kannst das Abonnement jederzeit kündigen.","Already a member?":"Bereits Mitglied?",Back:"Zurück","Back to Log in":"Zurück zur Anmeldung","Cancel subscription":"Abonnierung kündigen","Cancellation reason":"Kündigungsgrund","Choose a different plan":"Wähle einen anderen Plan","Choose your newsletters":"Wähle Deine Newsletter",Close:"Schließen",Comments:"Kommmentare",Confirm:"Bestätigen",Continue:"Weiter","Delete account":"Konto löschen","Don't have an account?":"Noch kein Konto?",Email:"Email","Email preference updated.":"Email Einstellungen aktualisiert.","Email preferences":"Email Einstellungen",Emails:"Emails","Emails disabled":"Emails deaktiviert","Get help":"Hilfe erhalten","Get notified when someone replies to your comment":"Erhalte eine Benachrichtigung, wenn jemand auf Deinen Kommentar antwortet","Give feedback on this post":"Gebe Feedback zu diesem Beitrag","Less like this":"Weniger davon",Manage:"Verwalten",Monthly:"Monatlich","More like this":"Mehr davon",Name:"Name","Not receiving emails?":"Keine Emails erhalten?","Now check your email!":"Überprüfe jetzt Deine E-Mails!","Powered by Ghost":"Powered by Ghost",Price:"Preis","Re-enable emails":"Emails wieder aktivieren",Retry:"Nochmals versuchen",Save:"Speichern","Sending login link...":"Sende Login-Link...","Sending...":"Sende...","Sign in":"Einloggen","Sign up":"Registrieren","Start {{amount}}-day free trial":"Starte {{amount}}-tägiges kostenloses Testabo","Submit feedback":"Feedback senden","Successfully unsubscribed":"Erfolgreich abgemeldet","Thanks for the feedback!":"Danke für das Feedback!","That didn't go to plan":"Das verlief nicht nach Plan","This site is invite-only, contact the owner for access.":"Diese Seite ist nur nach Einladung zugänglich. Bitte kontaktiere den Seitenbetreiber.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Um die Registrierung abzuschließen, klicke auf den Bestätigungslink in Deinem E-Mail Postfach. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner!","Unsubscribe from all emails":"Von allen Emails abmelden","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wenn Du Dich von Emails abmeldest, wird Dein bezahltes Abonnement bei {{title}} nicht gekündigt","Update your preferences":"Aktualisiere Deine Einstellungen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Wir konnten Dich nicht abmelden, da die E-Mail-Adresse nicht gefunden wurde. Bitte kontaktiere den Seitenbetreiber.",Yearly:"Jährlich","You have been successfully resubscribed":"Du wurdest erfolgreich wieder angemeldet","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du erhältst keine Emails, da Du entweder eine kürzlich empfangene Nachricht als Spam markiert hast oder weil Nachrichten nicht an Deine angegebene E-Mail-Adresse zugestellt werden konnten.","Your account":"Dein Konto","Your input helps shape what gets published.":"Deine Eingaben helfen dabei, was veröffentlicht wird."},k_={"{{discount}}% discount":"","{{trialDays}} days free":"","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"",Account:"","Account settings":"","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"","Already a member?":"",Back:"","Back to Log in":"","Cancel subscription":"","Cancellation reason":"","Choose a different plan":"","Choose your newsletters":"",Close:"",Comments:"",Confirm:"",Continue:"","Delete account":"","Don't have an account?":"",Email:"","Email preference updated.":"","Email preferences":"",Emails:"","Emails disabled":"","Get help":"","Get notified when someone replies to your comment":"","Give feedback on this post":"","Less like this":"",Manage:"",Monthly:"","More like this":"",Name:"","Not receiving emails?":"","Now check your email!":"","Powered by Ghost":"",Price:"","Re-enable emails":"",Retry:"",Save:"","Sending login link...":"","Sending...":"","Sign in":"","Sign up":"","Start {{amount}}-day free trial":"","Submit feedback":"","Successfully unsubscribed":"","Thanks for the feedback!":"","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"","Unsubscribe from all emails":"","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"","Update your preferences":"","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"",Yearly:"","You have been successfully resubscribed":"","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"","Your account":"","Your input helps shape what gets published.":""},S_={"{{discount}}% discount":"{{discount}}% de réduction","{{trialDays}} days free":"{{trialDays}} jours gratuits","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un lien de connexion a été envoyé à ta boîte de réception. S'il n'arrive pas dans les 3 minutes, vérifie ton dossier spam.",Account:"Compte","Account settings":"Paramètres du compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"À la fin de la période d'essai gratuite, le prix normal de l'abonnement choisi sera facturé. Tu peux toujours annuler d'ici là.","Already a member?":"Déjà membre ?",Back:"Retour","Back to Log in":"Retour à Connexion","Cancel subscription":"Annuler abonnement","Cancellation reason":"Raison pour l'annulation","Choose a different plan":"Choisir un autre abonnement","Choose your newsletters":"Choisir les newsletters",Close:"Fermer",Comments:"Commentaires",Confirm:"Confirmer",Continue:"Continuer","Delete account":"Fermer le compte","Don't have an account?":"Tu n'as pas encore de compte ?",Email:"E-mail","Email preference updated.":"Préférences d'e-mail mises à jour.","Email preferences":"Préférences d'e-mail",Emails:"E-mails","Emails disabled":"E-mails désactivés","Get help":"Obtenir de l'aide","Get notified when someone replies to your comment":"Être notifié lorsque quelqu'un répond à ton commentaire","Give feedback on this post":"Donner ton avis sur cet article","Less like this":"Moins de ça",Manage:"Gérer",Monthly:"Mensuel","More like this":"Plus de ça",Name:"Nom","Not receiving emails?":"Tu n'as pas reçu d'e-mail ?","Now check your email!":"Maintenant, vérifie ta boite de réception.","Powered by Ghost":"Créé avec Ghost",Price:"Prix","Re-enable emails":"Ré-activer les e-mails",Retry:"Réesayer",Save:"Sauvegarder","Sending login link...":"Envoi du lien de connexion...","Sending...":"Envoi...","Sign in":"Se connecter","Sign up":"S'enregistrer","Start {{amount}}-day free trial":"Commencer l'essai gratuit de {{amount}} jours","Submit feedback":"Envoyer ton avis","Successfully unsubscribed":"Désabonnement réussi","Thanks for the feedback!":"Merci pour ton avis !","That didn't go to plan":"Cela n'a pas fonctionné comme prévu","This site is invite-only, contact the owner for access.":"Ce site est réservé aux invités, contacte le propriétaire pour y accéder.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pour confirmer ton inscription, clique sur le lien de confirmation envoyé dans ta boite de réception. S'il ne te parvient pas dans les 3 minutes, vérifie ton dossier spam.","Unsubscribe from all emails":"Se désinscrire de tous les -mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"La désinscription des e-mails n'annulera ton abonnement payant à {{title}}","Update your preferences":"Mettre à jour tes préférences","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"La désinscription n'a pas fonctionné car ton adresse e-mail n'a pas été trouvée. Merci de contacter le propriétaire du site.",Yearly:"Annuel","You have been successfully resubscribed":"Tu as été réinscrit avec succès","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Tu ne reçois pas d'e-mails parce que tu as marqué un message récent comme spam, ou parce que les messages n'ont pas pu être livrés à l'adresse e-mail que tu as indiquée.","Your account":"Ton compte","Your input helps shape what gets published.":"Ton avis aide à améliorer ce qui est publié."},E_={"{{discount}}% discount":"{{discount}}% хямдрал","{{trialDays}} days free":"{{trialDays}} өдөр үнэгүй","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Таны имэйл рүү нэвтрэх холбоосыг илгээлээ. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу.",Account:"Бүртгэл","Account settings":"Бүртгэлийн тохиргоо","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Үнэгүй туршилтын хугацаа дуусахад таны данснаас сонгосон багцын үнэ хасагдана. Гэвч та өмнө нь цуцлах боломжтой.","Already a member?":"Бүртгэлтэй юу?",Back:"Буцах","Back to Log in":"Нэвтрэх хэсэг рүү буцах","Cancel subscription":"Захиалгаа цуцлах","Cancellation reason":"Цуцалсан шалтгаан","Choose a different plan":"Өөр багц сонгох","Choose your newsletters":"Товхимолоо сонгох",Close:"Хаах",Comments:"Сэтгэгдлүүд",Confirm:"Баталгаажуулах",Continue:"Үргэлжлүүлэх","Delete account":"Бүртгэлээ устгах","Don't have an account?":"Бүргэлгүй юу?",Email:"Имэйл","Email preference updated.":"Имэйлийн тохиргоо шинэчлэгдлээ.","Email preferences":"Имэйлийн тохиргоо",Emails:"Имэйлүүд","Emails disabled":"Имэйлийг идэхгүй болгосон","Get help":"Тусламж","Get notified when someone replies to your comment":"Хэн нэгэн таны сэтгэгдэлд хариу бичих үед мэдэгдэх","Give feedback on this post":"Энэ нийтлэлд саналаа өгөх","Less like this":"Таалагдсангүй",Manage:"Удирдах",Monthly:"Сарын","More like this":"Таалагдлаа",Name:"Нэр","Not receiving emails?":"Имэйл ирээгүй юу?","Now check your email!":"Одоо имэйлээ шалгана уу!","Powered by Ghost":"Ghost дээр суурилав",Price:"Үнэ","Re-enable emails":"Имэйлийг дахин идэвхжүүлэх",Retry:"Дахин оролдох",Save:"Хадгалах","Sending login link...":"Нэвтрэх холбоосыг илгээж байна...","Sending...":"Илгээж байна...","Sign in":"Нэвтрэх","Sign up":"Бүртгүүлэх","Start {{amount}}-day free trial":"{{amount}} өдрийн үнэгүй туршилтыг эхлүүлэх","Submit feedback":"Саналаа илгээх","Successfully unsubscribed":"Захиалгыг амжилттай цуцаллаа","Thanks for the feedback!":"Саналаа илгээсэнд баярлалаа!","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"Энэхүү сайт руу зөвхөн урилгаар нэвтрэх боломжтой тул та админд нь хандана уу.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Тан руу илгээсэн баталгаажуулах холбоос дээр дарж бүртгэлээ дуусгана уу. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу!","Unsubscribe from all emails":"Бүх имэйлийг зогсоох","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Имэйлийг зогсоосон ч таны {{title}} төлбөртэй захиалга цуцлагдахгүй","Update your preferences":"Тохиргоогоо шинэчлэх","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Энэхүү имэйл хаяг олдоогүй учир захиалгыг цуцлах боломжгүй. Та сайтын админд хандана уу.",Yearly:"Жилийн","You have been successfully resubscribed":"Таны захиалга амжилттай дахин идэвхжлээ","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Таны имэйл хүлээж авахгүй байгаа шалтгаан нь нэг бол та аль нэг имэйлийг спам гэж тэмдэглэсэн, эсвэл таны хаяг имэйл хүлээж авах боломжгүй байна.","Your account":"Таны бүртгэл","Your input helps shape what gets published.":"Таны санал дараа дараагийн нийтлэлийг илүү чанартай болгоход туслана"},C_={"{{discount}}% discount":"{{discount}}% korting","{{trialDays}} days free":"{{trialDays}} dagen gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Er werd een e-mail met een inloglink naar je verzonden. Kijk zeker jouw spamfolder na als hij niet binnen de 3 minuten aankomt.",Account:"Account","Account settings":"Account instellingen","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Nadat jouw gratis proefperiode eindigt, zal het normale tarief in rekening gebracht worden voor het door jou gekozen abonnement.","Already a member?":"Al een lid?",Back:"Terug","Back to Log in":"Terug naar inloggen","Cancel subscription":"Abonnement opzeggen","Cancellation reason":"Reden tot opzeg","Choose a different plan":"Kies een ander abonnement","Choose your newsletters":"Kies jouw nieuwsbrieven",Close:"Sluiten",Comments:"Opmerkingen",Confirm:"Bevestigen",Continue:"Doorgaan","Delete account":"Account verwijderen","Don't have an account?":"Heb je nog geen account?",Email:"E-mail","Email preference updated.":"E-mailinstellingen aanpassen","Email preferences":"E-mailinstellingen",Emails:"E-mails","Emails disabled":"E-mails zijn uitgeschakeld","Get help":"Hulp krijgen","Get notified when someone replies to your comment":"Blijf op de hoogte als iemand op jouw opmerking reageert","Give feedback on this post":"Deel je mening over dit artikel","Less like this":"Minder van dit",Manage:"Beheer",Monthly:"Maandelijks","More like this":"Meer van dit",Name:"Naam","Not receiving emails?":"Ontvang je geen e-mails?","Now check your email!":"Bekijk nu jouw e-mails!","Powered by Ghost":"Powered by Ghost",Price:"Prijs","Re-enable emails":"E-mails terug inschakelen",Retry:"Opnieuw proberen",Save:"Opslaan","Sending login link...":"Inloglink versturen...","Sending...":"Versturen...","Sign in":"Inloggen","Sign up":"Registreren","Start {{amount}}-day free trial":"Start gratis proefperiode van {{amount}} dagen","Submit feedback":"Mening insturen","Successfully unsubscribed":"Succesvol uitgeschreven","Thanks for the feedback!":"Bedankt voor jouw mening!","That didn't go to plan":"Dat liep niet zoals het zou moeten","This site is invite-only, contact the owner for access.":"Deze site is enkel bereikbaar op uitnodiging, contacteer de eigenaar om toegang te krijgen.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Klik op de link in de e-mail om jouw registratie te vervolledigen. Kijk jouw spamfolder na als hij niet binnen de 3 minuten aankomt.","Unsubscribe from all emails":"Uitschrijven voor alle e-mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Jouw betaald abonnement voor {{title}} zal niet geannuleerd worden als je je uitschrijft voor e-mails","Update your preferences":"Voorkeuren aanpassen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Het is niet gelukt om jou uit te schrijven omdat jouw e-mailadres niet gevonden werd. Gelieve de eigenaar te contacteren.",Yearly:"Jaarlijks","You have been successfully resubscribed":"Je bent succesvol terug geabonneerd","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Je ontvangt geen e-mails omdat je ofwel een recent bericht als spam had gemarkeerd of omdat de berichten niet afgeleverd konden worden aan jouw e-mailadres.","Your account":"Jouw account","Your input helps shape what gets published.":"Jouw mening helpt te bepalen wat er gepubliceerd wordt."},P_={"{{discount}}% discount":"{{discount}}% kedvezmény","{{trialDays}} days free":"{{trialDays}} nap ingyen","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"A bejelentkezéshez szükséges linket elküldtük a megadott email címre. Ha nem érkezne meg 3 percen belül, kérjük ellenőrizze a spam mappát!",Account:"Fiók","Account settings":"Fiók beállítások","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Az ingyenes próbaidőszak lejárta után a kiválasztott csomag normál díját fogjuk felszámolni. A feliratkozás bármikor ingyenesen lemondható a próbaidőszak alatt.","Already a member?":"Már van fiókja?",Back:"Vissza","Back to Log in":"Vissza a bejelentkezéshez","Cancel subscription":"Feliratkozás megszűntetése","Cancellation reason":"A megszűntetés oka","Choose a different plan":"Válasszon másik csomagot","Choose your newsletters":"Válassza ki a hírleveleket",Close:"Bezár",Comments:"Kommentek",Confirm:"Jóváhgyás",Continue:"Folytatás","Delete account":"Fiók törlése","Don't have an account?":"Még nincs fiókja?",Email:"Email","Email preference updated.":"Email beállítások elmentve","Email preferences":"Email beállítások",Emails:"Email-ek","Emails disabled":"Email-ek kikapcsolva","Get help":"Kérjen segítséget","Get notified when someone replies to your comment":"Értesítést kérek ha valaki válaszol a kommentemre","Give feedback on this post":"Hogy tetszett ez a cikk?","Less like this":"Kevesebb ilyet",Manage:"Kezelés",Monthly:"Havi","More like this":"Több ilyet",Name:"Név","Not receiving emails?":"Nem érkeznek meg az email-ek?","Now check your email!":"Ellenőrizze az postafiókját","Powered by Ghost":"Powered by Ghost",Price:"Ár","Re-enable emails":"Email-ek aktiválása",Retry:"Újra",Save:"Mentés","Sending login link...":"Bejelenkezési link küldése...","Sending...":"Küldés...","Sign in":"Bejelentkezés","Sign up":"Regisztráció","Start {{amount}}-day free trial":"{{amount}} napos próbaidőszak kezdése","Submit feedback":"Visszajelzés küldése","Successfully unsubscribed":"Sikeres leiratkozás","Thanks for the feedback!":"Köszönjük a visszajelzést","That didn't go to plan":"Hiba történt","This site is invite-only, contact the owner for access.":"A website csak meghívóval látogatható. Meghívóért lépjen kapcsolatba az oldal tulajdonosával!","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"A regisztráció befejezéséhez kérjük kattintson az email-ben kapott linkre. Ha a link nem érkezne meg 3 percen belül kérjük ellenőrizze a spam mappát.","Unsubscribe from all emails":"Leiratkozás minden email-ről","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Az email-ről történő leiratkozás nem szűnteti meg a fiókját","Update your preferences":"Beállítások mentése","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ehhez az email-hez nem tartozik fiók. Kérjük lépjen kapcsolatba az oldal tulajdonosával.",Yearly:"Éves","You have been successfully resubscribed":"Sikeres feliratkozás","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Azért nem kap email-t mert vagy spam-nek jelölt egy tőlünk kapott hírlevelet, vagy azért mert a megadott email cím nem tud üzeneteket fogadni.","Your account":"Fiók","Your input helps shape what gets published.":"A visszajelzése segít abban, hogy mit publikáljunk"};var Wg;function Vg(){return Wg||(Wg={"/i18n/locales/af/portal.json":function(){return x_},"/i18n/locales/de/portal.json":function(){return __},"/i18n/locales/en/portal.json":function(){return k_},"/i18n/locales/fr/portal.json":function(){return S_},"/i18n/locales/mn/portal.json":function(){return E_},"/i18n/locales/nl/portal.json":function(){return C_},"/i18n/locales/hu/portal.json":function(){return P_}})}function N_(e){function t(n){var r=Kg(n,e);if(r!==null)return Vg()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Kg(n,e);return r!==null?r:require.resolve(n)},t}function Kg(e,t){var n=T_(e);e=Ba(e);var r;e[0]==="/"&&(t="");for(var i=Vg(),o=["",".js",".json"];n?r=Ba(t+"/node_modules/"+e):r=Ba(t+"/"+e),!r.endsWith("/..");){for(var a=0;a<o.length;a++){var s=r+o[a];if(i[s])return s}if(!n)break;var l=Ba(t+"/..");if(l===t)break;t=l}return null}function T_(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function Ba(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Ha={},O_={get exports(){return Ha},set exports(e){Ha=e}},Pr={},R_={get exports(){return Pr},set exports(e){Pr=e}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(R_);var au={},L_={get exports(){return au},set exports(e){au=e}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(L_);var su={},D_={get exports(){return su},set exports(e){su=e}},Ya={},I_={get exports(){return Ya},set exports(e){Ya=e}},lu={},$_={get exports(){return lu},set exports(e){lu=e}};(function(e){var t=Pr.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})($_),function(e){var t=Pr.default,n=lu;function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(I_),function(e){var t=Ya;function n(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,a){return o&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(D_);var Ga={},j_={get exports(){return Ga},set exports(e){Ga=e}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(j_);var cu={},A_={get exports(){return cu},set exports(e){cu=e}},uu={},M_={get exports(){return uu},set exports(e){uu=e}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(M_),function(e){var t=uu;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(A_);var pu={},F_={get exports(){return pu},set exports(e){pu=e}};(function(e){var t=Pr.default,n=Ga;function r(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(F_);var du={},z_={get exports(){return du},set exports(e){du=e}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(z_);var fu={},U_={get exports(){return fu},set exports(e){fu=e}};(function(e){var t=Ya;function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(U_);var hu={},B_={get exports(){return hu},set exports(e){hu=e}},gu={},H_={get exports(){return gu},set exports(e){gu=e}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(H_);var mu={},Y_={get exports(){return mu},set exports(e){mu=e}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Y_);var yu={},G_={get exports(){return yu},set exports(e){yu=e}},vu={},W_={get exports(){return vu},set exports(e){vu=e}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(W_),function(e){var t=vu;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(G_);var bu={},V_={get exports(){return bu},set exports(e){bu=e}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3025
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(V_),function(e){var t=gu,n=mu,r=yu,i=bu;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(B_);var K_=Pr,q_=au,Q_=su,J_=Ga,X_=cu,Z_=pu,e2=du,t2=fu,n2=hu;function St(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ui=St(K_),st=St(q_),lt=St(Q_),On=St(J_),Wa=St(X_),Bi=St(Z_),nn=St(e2),rn=St(t2),r2=St(n2);function qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var i2={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},o2=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.init(t,n)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||i2,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,Qg(Qg({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),ct=new o2,on=function(){function e(){st.default(this,e),this.observers={}}return lt.default(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Hi(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function Jg(e){return e==null?"":""+e}function a2(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function wu(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function Xg(e,t,n){var r=wu(e,t,Object),i=r.obj,o=r.k;i[o]=n}function s2(e,t,n,r){var i=wu(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function Va(e,t){var n=wu(e,t),r=n.obj,i=n.k;if(r)return r[i]}function l2(e,t,n){var r=Va(e,n);return r!==void 0?r:Va(t,n)}function Zg(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Zg(e[r],t[r],n):e[r]=t[r]);return e}function Nr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var c2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function u2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return c2[t]}):e}var Ka=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,p2=[" ",",","?","!",";"];function d2(e,t,n){t=t||"",n=n||"";var r=p2.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function qa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?qa(l,c,n):void 0}i=i[r[o]]}return i}}function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?em(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f2(e){var t=h2();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function h2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g2=function(e){Wa.default(n,e);var t=f2(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return st.default(this,n),i=t.call(this),Ka&&on.call(On.default(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return lt.default(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[i,o];a&&typeof a!="string"&&(d=d.concat(a)),a&&typeof a=="string"&&(d=d.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(d=i.split("."));var p=Va(this.data,d);return p||!c||typeof a!="string"?p:qa(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var d=[i,o];a&&(d=d.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(d=i.split("."),s=o,o=d[1]),this.addNamespaces(o),Xg(this.data,d,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[i,o];i.indexOf(".")>-1&&(d=i.split("."),s=a,a=o,o=d[1]),this.addNamespaces(o);var p=Va(this.data,d)||{};s?Zg(p,a,l):p=Qa(Qa({},p),a),Xg(this.data,d,p),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Qa(Qa({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(on),tm={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m2(e){var t=y2();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function y2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var rm={},im=function(e){Wa.default(n,e);var t=m2(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return st.default(this,n),i=t.call(this),Ka&&on.call(On.default(i)),a2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,On.default(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=ct.create("translator"),i}return lt.default(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!d2(i,a,s);if(c&&!d){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:l};var f=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(Ui.default(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(i[i.length-1],o),p=d.key,f=d.namespaces,y=f[f.length-1],v=o.lng||this.language,k=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(k){var m=o.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(y).concat(m).concat(p),usedKey:p,exactUsedKey:p,usedLng:v,usedNS:y}:"".concat(y).concat(m).concat(p)}return l?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:y}:p}var h=this.resolve(i,o),g=h&&h.res,w=h&&h.usedKey||p,_=h&&h.exactUsedKey||p,C=Object.prototype.toString.apply(g),S=["[object Number]","[object Function]","[object RegExp]"],O=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(L&&g&&N&&S.indexOf(C)<0&&!(typeof O=="string"&&C==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,g,Ee(Ee({},o),{},{ns:f})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return l?(h.res=z,h):z}if(c){var Ye=C==="[object Array]",te=Ye?[]:{},ne=Ye?_:w;for(var Ze in g)if(Object.prototype.hasOwnProperty.call(g,Ze)){var pt="".concat(ne).concat(c).concat(Ze);te[Ze]=this.translate(pt,Ee(Ee({},o),{joinArrays:!1,ns:f})),te[Ze]===pt&&(te[Ze]=g[Ze])}g=te}}else if(L&&typeof O=="string"&&C==="[object Array]")g=g.join(O),g&&(g=this.extendTranslation(g,i,o,a));else{var dt=!1,Ct=!1,Or=o.count!==void 0&&typeof o.count!="string",Rn=n.hasDefaultValue(o),ku=Or?this.pluralResolver.getSuffix(v,o.count,o):"",P=o["defaultValue".concat(ku)]||o.defaultValue;!this.isValidLookup(g)&&Rn&&(dt=!0,g=P),this.isValidLookup(g)||(Ct=!0,g=p);var D=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=D&&Ct?void 0:g,U=Rn&&P!==g&&this.options.updateMissing;if(Ct||dt||U){if(this.logger.log(U?"updateKey":"missingKey",v,y,p,U?P:g),c){var re=this.resolve(p,Ee(Ee({},o),{},{keySeparator:!1}));re&&re.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ie=[],Ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ge&&Ge[0])for(var Pt=0;Pt<Ge.length;Pt++)Ie.push(Ge[Pt]);else this.options.saveMissingTo==="all"?Ie=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ie.push(o.lng||this.language);var Nt=function(Rr,Eu,wm){var xm=Rn&&wm!==g?wm:j;s.options.missingKeyHandler?s.options.missingKeyHandler(Rr,y,Eu,xm,U,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Rr,y,Eu,xm,U,o),s.emit("missingKey",Rr,y,Eu,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Or?Ie.forEach(function(Su){s.pluralResolver.getSuffixes(Su,o).forEach(function(Rr){Nt([Su],p+Rr,o["defaultValue".concat(Rr)]||P)})}):Nt(Ie,p,P))}g=this.extendTranslation(g,i,o,h,a),Ct&&g===p&&this.options.appendNamespaceToMissingKey&&(g="".concat(y,":").concat(p)),(Ct||dt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(y,":").concat(p):p,dt?g:void 0):g=this.options.parseMissingKeyHandler(g))}return l?(h.res=g,h):g}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ee(Ee({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Ee(Ee({},a),{interpolation:Ee(Ee({},this.options.interpolation),a.interpolation)}));var d=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(d){var f=i.match(this.interpolator.nestingRegexp);p=f&&f.length}var y=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(y=Ee(Ee({},this.options.interpolation.defaultVariables),y)),i=this.interpolator.interpolate(i,y,a.lng||this.language,a),d){var v=i.match(this.interpolator.nestingRegexp),k=v&&v.length;p<k&&(a.nest=!1)}a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var g=arguments.length,w=new Array(g),_=0;_<g;_++)w[_]=arguments[_];return l&&l[0]===w[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(o[0])),null):c.translate.apply(c,w.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var m=a.postProcess||this.options.postProcess,h=typeof m=="string"?[m]:m;return i!=null&&h&&h.length&&a.applyPostProcessor!==!1&&(i=tm.handle(h,i,o,this.options&&this.options.postProcessPassResolved?Ee({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,d,p;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!o.isValidLookup(s)){var y=o.extractFromKey(f,a),v=y.key;l=v;var k=y.namespaces;o.options.fallbackNS&&(k=k.concat(o.options.fallbackNS));var m=a.count!==void 0&&typeof a.count!="string",h=m&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),g=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",w=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);k.forEach(function(_){o.isValidLookup(s)||(p=_,!rm["".concat(w[0],"-").concat(_)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(rm["".concat(w[0],"-").concat(_)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(p,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(C){if(!o.isValidLookup(s)){d=C;var S=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(S,v,C,_,a);else{var O;m&&(O=o.pluralResolver.getSuffix(C,a.count,a));var L="".concat(o.options.pluralSeparator,"zero");if(m&&(S.push(v+O),h&&S.push(v+L)),g){var N="".concat(v).concat(o.options.contextSeparator).concat(a.context);S.push(N),m&&(S.push(N+O),h&&S.push(N+L))}}for(var z;z=S.pop();)o.isValidLookup(s)||(c=z,s=o.getResource(C,_,z,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:d,usedNS:p}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(on);function xu(e){return e.charAt(0).toUpperCase()+e.slice(1)}var om=function(){function e(t){st.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create("languageUtils")}return lt.default(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=xu(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=xu(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=xu(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),v2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],b2={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},w2=["v1","v2","v3"],am={zero:0,one:1,two:2,few:3,many:4,other:5};function x2(){var e={};return v2.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:b2[t.fc]}})}),e}var _2=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.languageUtils=t,this.options=n,this.logger=ct.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=x2()}return lt.default(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return am[a]-am[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!w2.includes(this.options.compatibilityJSON)}}]),e}();function sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=l2(e,t,n);return!o&&i&&typeof n=="string"&&(o=qa(e,n,r),o===void 0&&(o=qa(t,n,r))),o}var k2=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return lt.default(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:u2,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Nr(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Nr(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Nr(r.nestingPrefix):r.nestingPrefixEscaped||Nr("$t("),this.nestingSuffix=r.nestingSuffix?Nr(r.nestingSuffix):r.nestingSuffixEscaped||Nr(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(m){return m.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(a.formatSeparator)<0){var g=lm(r,d,h,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(g,void 0,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:h})):g}var w=h.split(a.formatSeparator),_=w.shift().trim(),C=w.join(a.formatSeparator).trim();return a.format(lm(r,d,_,a.options.keySeparator,a.options.ignoreJSONStructure),C,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:_}))};this.resetRegExp();var y=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,k=[{regex:this.regexpUnescape,safeValue:function(h){return p(h)}},{regex:this.regexp,safeValue:function(h){return a.escapeValue?p(a.escape(h)):p(h)}}];return k.forEach(function(m){for(c=0;s=m.regex.exec(n);){var h=s[1].trim();if(l=f(h),l===void 0)if(typeof y=="function"){var g=y(n,s,o);l=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,h))l="";else if(v){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=Jg(l));var w=m.safeValue(l);if(n=n.replace(s[0],w),v?(m.regex.lastIndex+=l.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function c(y,v){var k=this.nestingOptionsSeparator;if(y.indexOf(k)<0)return y;var m=y.split(new RegExp("".concat(k,"[ ]*{"))),h="{".concat(m[1]);y=m[0],h=this.interpolate(h,l);var g=h.match(/'/g),w=h.match(/"/g);(g&&g.length%2===0&&!w||w.length%2!==0)&&(h=h.replace(/'/g,'"'));try{l=JSON.parse(h),v&&(l=Xe(Xe({},v),l))}catch(_){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),_),"".concat(y).concat(k).concat(h)}return delete l.defaultValue,y}for(;a=this.nestingRegexp.exec(n);){var d=[];l=Xe({},o),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var p=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var f=a[1].split(this.formatSeparator).map(function(y){return y.trim()});a[1]=f.shift(),d=f,p=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Jg(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),p&&(s=d.reduce(function(y,v){return i.format(y,v,o.lng,Xe(Xe({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S2(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=r2.default(s),c=l[0],d=l.slice(1),p=d.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=p),p==="false"&&(n[c.trim()]=!1),p==="true"&&(n[c.trim()]=!0),isNaN(p)||(n[c.trim()]=parseInt(p,10))}})}}return{formatName:t,formatOptions:n}}function Tr(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var E2=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("formatter"),this.options=t,this.formats={number:Tr(function(n,r){var i=new Intl.NumberFormat(n,Et({},r));return function(o){return i.format(o)}}),currency:Tr(function(n,r){var i=new Intl.NumberFormat(n,Et(Et({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Tr(function(n,r){var i=new Intl.DateTimeFormat(n,Et({},r));return function(o){return i.format(o)}}),relativetime:Tr(function(n,r){var i=new Intl.RelativeTimeFormat(n,Et({},r));return function(o){return i.format(o,r.range||"day")}}),list:Tr(function(n,r){var i=new Intl.ListFormat(n,Et({},r));return function(o){return i.format(o)}})},this.init(t)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Tr(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,d){var p=S2(d),f=p.formatName,y=p.formatOptions;if(o.formats[f]){var v=c;try{var k=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},m=k.locale||k.lng||a.locale||a.lng||i;v=o.formats[f](c,m,Et(Et(Et({},y),a),k))}catch(h){o.logger.warn(h)}return v}else o.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?um(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C2(e){var t=P2();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function P2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var T2=function(e){Wa.default(n,e);var t=C2(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return st.default(this,n),a=t.call(this),Ka&&on.call(On.default(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=ct.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return lt.default(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},d={},p={},f={};return i.forEach(function(y){var v=!0;o.forEach(function(k){var m="".concat(y,"|").concat(k);!a.reload&&l.store.hasResourceBundle(y,k)?l.state[m]=2:l.state[m]<0||(l.state[m]===1?d[m]===void 0&&(d[m]=!0):(l.state[m]=1,v=!1,d[m]===void 0&&(d[m]=!0),c[m]===void 0&&(c[m]=!0),f[k]===void 0&&(f[k]=!0)))}),v||(p[y]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var d={};this.queue.forEach(function(p){s2(p.loaded,[l],c),N2(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(f){d[f]||(d[f]={});var y=p.loaded[f];y.length&&y.forEach(function(v){d[f][v]===void 0&&(d[f][v]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(p){return!p.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:d});return}this.readingCalls++;var p=function(k,m){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(k&&m&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,d)},c);return}d(k,m)},f=this.backend[a].bind(this.backend);if(f.length===2){try{var y=f(i,o);y&&typeof y.then=="function"?y.then(function(v){return p(null,v)}).catch(p):p(null,y)}catch(v){p(v)}return}return f(i,o,p)}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(d){a.loadOne(d)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(d,p){d&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),d),!d&&p&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),p),o.loaded(i,d,p)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var p=pm(pm({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var y;f.length===5?y=f(i,o,a,s,p):y=f(i,o,a,s),y&&typeof y.then=="function"?y.then(function(v){return d(null,v)}).catch(d):d(null,y)}catch(v){d(v)}else f(i,o,a,s,d,p)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),n}(on);function dm(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ui.default(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ui.default(t[2])==="object"||Ui.default(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function fm(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O2(e){var t=R2();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function R2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ja(){}function L2(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Xa=function(e){Wa.default(n,e);var t=O2(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(st.default(this,n),r=t.call(this),Ka&&on.call(On.default(r)),r.options=fm(i),r.services={},r.logger=ct,r.modules={external:[]},L2(On.default(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Bi.default(r,On.default(r));setTimeout(function(){r.init(i,o)},0)}return r}return lt.default(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=dm();this.options=ut(ut(ut({},s),this.options),fm(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ut(ut({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?ct.init(l(this.modules.logger),this.options):ct.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=E2);var d=new om(this.options);this.store=new g2(this.options.resources,this.options);var p=this.services;p.logger=ct,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new _2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(p.formatter=l(c),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new k2(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new T2(l(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var g=arguments.length,w=new Array(g>1?g-1:0),_=1;_<g;_++)w[_-1]=arguments[_];i.emit.apply(i,[h].concat(w))}),this.modules.languageDetector&&(p.languageDetector=l(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=l(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new im(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,w=new Array(g>1?g-1:0),_=1;_<g;_++)w[_-1]=arguments[_];i.emit.apply(i,[h].concat(w))}),this.modules.external.forEach(function(h){h.init&&h.init(i)})}if(this.format=this.options.interpolation.format,a||(a=Ja),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var y=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];y.forEach(function(h){i[h]=function(){var g;return(g=i.store)[h].apply(g,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(h){i[h]=function(){var g;return(g=i.store)[h].apply(g,arguments),i}});var k=Hi(),m=function(){var g=function(_,C){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),k.resolve(C),a(_,C)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return g(null,i.t.bind(i));i.changeLanguage(i.options.lng,g)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),k}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ja,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],d=function(y){if(y){var v=o.services.languageUtils.toResolveHierarchy(y);v.forEach(function(k){c.indexOf(k)<0&&c.push(k)})}};if(l)d(l);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(f){return d(f)})}this.options.preload&&this.options.preload.forEach(function(f){return d(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Hi();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Ja),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&tm.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Hi();this.emit("languageChanging",i);var l=function(f){a.language=f,a.languages=a.services.languageUtils.toResolveHierarchy(f),a.resolvedLanguage=void 0,a.setResolvedLanguage(f)},c=function(f,y){y?(l(y),a.translator.changeLanguage(y),a.isLanguageChangingTo=void 0,a.emit("languageChanged",y),a.logger.log("languageChanged",y)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(f,function(){return a.t.apply(a,arguments)})},d=function(f){!i&&!f&&a.services.languageDetector&&(f=[]);var y=typeof f=="string"?f:a.services.languageUtils.getBestMatchFromCodes(f);y&&(a.language||l(y),a.translator.language||a.translator.changeLanguage(y),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(y)),a.loadResources(y,function(v){c(v,y)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(d,p){var f;if(Ui.default(p)!=="object"){for(var y=arguments.length,v=new Array(y>2?y-2:0),k=2;k<y;k++)v[k-2]=arguments[k];f=s.options.overloadTranslationOptionHandler([d,p].concat(v))}else f=ut({},p);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||a||c.keyPrefix;var m=s.options.keySeparator||".",h;return f.keyPrefix&&Array.isArray(d)?h=d.map(function(g){return"".concat(f.keyPrefix).concat(m).concat(g)}):h=f.keyPrefix?"".concat(f.keyPrefix).concat(m).concat(d):d,s.t(h,f)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var d=function(y,v){var k=o.services.backendConnector.state["".concat(y,"|").concat(v)];return k===-1||k===2};if(a.precheck){var p=a.precheck(this,d);if(p!==void 0)return p}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,i)&&(!l||d(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Hi();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Hi();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new om(dm());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ja,s=ut(ut(ut({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(d){l[d]=i[d]}),l.services=ut({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new im(l.services,l.options),l.translator.on("*",function(d){for(var p=arguments.length,f=new Array(p>1?p-1:0),y=1;y<p;y++)f[y-1]=arguments[y];l.emit.apply(l,[d].concat(f))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(on);rn.default(Xa,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Xa(e,t)});var gm=Xa.createInstance();gm.createInstance=Xa.createInstance;var D2=gm;const I2=D2,mm=["af","de","en","fr","mn","nl","hu"];O_.exports=(e="en",t="portal")=>{const n=I2.createInstance();return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:t,defaultNS:t,resources:mm.reduce((r,i)=>(r[i]={[t]:N_("/i18n/lib")(`../locales/${i}/${t}.json`)},r),{})}),n},Ha.SUPPORTED_LOCALES=mm,function(e){e.exports=Ha}(w_);const $2=$e(ou),j2={showPopup:!0,site:Cr,member:Ua.free,page:"accountEmail",...Gx(),pageData:Yg};function A2({site:e,children:t}){const{portal_sentry:n}=e||{};return n&&n.dsn?u(_a,{children:t}):u(H,{children:t})}class M2 extends q.Component{constructor(t){super(t),this.setupCustomTriggerButton(t),this.state={site:null,member:null,page:"loading",showPopup:!1,action:"init:running",initStatus:"running",lastPage:null,customSiteUrl:t.customSiteUrl}}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,i,o;if(n.showPopup!==this.state.showPopup){this.handleCustomTriggerClassUpdate();try{this.state.showPopup?(this.bodyScroll=(o=(i=(r=window.document)==null?void 0:r.body)==null?void 0:i.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}}if(this.state.initStatus==="success"&&n.initStatus!==this.state.initStatus){const{siteUrl:a}=this.props,s=this.getContextFromState();this.sendPortalReadyEvent(),b_({siteUrl:a,site:s.site,member:s.member})}}componentWillUnmount(){clearTimeout(this.timeoutId),this.customTriggerButtons&&this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler)}),window.removeEventListener("hashchange",this.hashHandler,!1)}sendPortalReadyEvent(){window.self!==window.parent&&window.parent.postMessage({type:"portal-ready",payload:{}},"*")}setupCustomTriggerButton(){this.clickHandler=r=>{r.preventDefault();const i=r.currentTarget,o=i&&i.dataset.portal,{page:a,pageQuery:s}=this.getPageFromLinkPath(o)||{};this.state.initStatus==="success"&&(s&&s!=="free"?this.handleSignupQuery({site:this.state.site,pageQuery:s}):this.dispatchAction("openPopup",{page:a,pageQuery:s}))};const t="[data-portal]",n="gh-portal-close";this.customTriggerButtons=document.querySelectorAll(t)||[],this.customTriggerButtons.forEach(r=>{r.classList.add(n),r.removeEventListener("click",this.clickHandler),r.addEventListener("click",this.clickHandler)})}handleCustomTriggerClassUpdate(){var r;const t="gh-portal-open",n="gh-portal-close";(r=this.customTriggerButtons)==null||r.forEach(i=>{const o=this.state.showPopup?t:n,a=this.state.showPopup?n:t;i.classList.add(o),i.classList.remove(a)})}async initSetup(){try{const{site:t,member:n,page:r,showPopup:i,popupNotification:o,lastPage:a,pageQuery:s,pageData:l}=await this.fetchData(),c=this.props.siteI18nEnabled?t.locale:"en",d=$2(c,"portal"),p={site:t,member:n,page:r,lastPage:a,pageQuery:s,showPopup:i,pageData:l,popupNotification:o,t:d.t,action:"init:success",initStatus:"success"};this.handleSignupQuery({site:t,pageQuery:s,member:n}),this.setState(p),this.hashHandler=()=>{this.updateStateForPreviewLinks()},window.addEventListener("hashchange",this.hashHandler,!1)}catch(t){console.error("[Portal] Failed to initialize:",t),this.setState({action:"init:failed",initStatus:"failed"})}}async fetchData(){const{site:t,member:n}=await this.fetchApiData(),{site:r,...i}=this.fetchDevData(),{site:o,...a}=this.fetchLinkData(),{site:s,...l}=this.fetchPreviewData(),{site:c,...d}=this.fetchNotificationData();return{member:n,page:"",site:{...t,...o,...s,...c,...r,plans:{...(r||{}).plans,...(t||{}).plans,...(s||{}).plans}},...i,...a,...d,...l}}fetchDevData(){return K(["dev"])&&!this.state.customSiteUrl?j2:K(["test"])?{showPopup:this.props.showPopup!==void 0?this.props.showPopup:!0}:{}}fetchOfferQueryStrData(t=""){const n=new URLSearchParams(t),r={};for(let i of n.entries()){const o=i[0],a=decodeURIComponent(i[1]);o==="name"?r.name=a||"":o==="code"?r.code=a||"":o==="display_title"?r.display_title=a||"":o==="display_description"?r.display_description=a||"":o==="type"?r.type=a||"":o==="cadence"?r.cadence=a||"":o==="duration"?r.duration=a||"":o==="duration_in_months"&&!isNaN(Number(a))?r.duration_in_months=Number(a):o==="amount"&&!isNaN(Number(a))?r.amount=Number(a):o==="currency"?r.currency=a||"":o==="status"?r.status=a||"":o==="tier_id"&&(r.tier={id:a||Yg.tier.id})}return{page:"offer",pageData:r}}fetchQueryStrData(t=""){const n=new URLSearchParams(t),r={site:{plans:{}}},i=[];let o,a=null,s,l,c;for(let d of n.entries()){const p=d[0],f=decodeURIComponent(d[1]);if(p==="button")r.site.portal_button=JSON.parse(f);else if(p==="name")r.site.portal_name=JSON.parse(f);else if(p==="isFree"&&JSON.parse(f))i.push("free");else if(p==="isMonthly"&&JSON.parse(f))i.push("monthly");else if(p==="isYearly"&&JSON.parse(f))i.push("yearly");else if(p==="portalPrices")o=f?f.split(","):[];else if(p==="portalProducts")a=f?f.split(","):[];else if(p==="page"&&f)r.page=f;else if(p==="accentColor"&&(f===""||f))r.site.accent_color=f;else if(p==="buttonIcon"&&f)r.site.portal_button_icon=f;else if(p==="signupButtonText")r.site.portal_button_signup_text=f||"";else if(p==="buttonStyle"&&f)r.site.portal_button_style=f;else if(p==="monthlyPrice"&&!isNaN(Number(f)))r.site.plans.monthly=Number(f),s=Number(f);else if(p==="yearlyPrice"&&!isNaN(Number(f)))r.site.plans.yearly=Number(f),l=Number(f);else if(p==="currency"&&f){const y=f.toUpperCase();r.site.plans.currency=y,r.site.plans.currency_symbol=de(y),c=y}else p==="disableBackground"?r.site.disableBackground=JSON.parse(f):p==="allowSelfSignup"?r.site.allow_self_signup=JSON.parse(f):p==="membersSignupAccess"&&f&&(r.site.members_signup_access=f)}return r.site.portal_plans=i,r.site.portal_products=a,o?r.site.portal_plans=o:s&&l&&c&&(r.site.prices=[{id:"monthly",stripe_price_id:"dummy_stripe_monthly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Monthly",currency:c,amount:s,type:"recurring",interval:"month"},{id:"yearly",stripe_price_id:"dummy_stripe_yearly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Yearly",currency:c,amount:l,type:"recurring",interval:"year"}]),r}fetchNotificationData(){const{type:t,status:n,duration:r,autoHide:i,closeable:o}=pg({billingOnly:!0})||{};return["stripe:billing-update"].includes(t)?n==="success"?{showPopup:!0,popupNotification:X({type:t,status:n,duration:r,closeable:o,autoHide:i,state:this.state,message:n==="success"?"Billing info updated successfully":""})}:{showPopup:!0}:{}}fetchLinkData(){const t=new URLSearchParams(window.location.search);if(t.get("uuid")&&t.get("action")==="unsubscribe")return{showPopup:!0,page:"unsubscribe",pageData:{uuid:t.get("uuid"),newsletterUuid:t.get("newsletter"),comments:t.get("comments")}};const[n,r]=window.location.hash.substr(1).split("?"),i=new URLSearchParams(r??""),o=/^(?:(\w+?))?\/monthly$/,a=/^(?:(\w+?))?\/yearly$/,s=/^offers\/(\w+?)\/?$/,l=/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/,c=/^\/feedback\/(\w+?)\/(\w+?)\/?$/;if(n&&c.test(n)&&i.get("uuid")){const[,d,p]=n.match(c),f=parseInt(p);if(f===1||f===0)return{showPopup:!0,page:"feedback",pageData:{uuid:i.get("uuid"),postId:d,score:f}}}if(n&&l.test(n)){const[,d]=n.match(l),{page:p,pageQuery:f}=this.getPageFromLinkPath(d)||{},y=["accountPlan","accountProfile"].includes(p)?"accountHome":null;return{showPopup:!(["monthly","yearly"].includes(f)||o.test(f)||a.test(f)||s.test(f)),...p?{page:p}:{},...f?{pageQuery:f}:{},...y?{lastPage:y}:{}}}return{}}fetchPreviewData(){const[,t]=window.location.hash.substr(1).split("?");if(K(["preview"])){let n={};return K(["offerPreview"])?n=this.fetchOfferQueryStrData(t):n=this.fetchQueryStrData(t),{...n,showPopup:!0}}return{}}getColorOverride(){const t=document.querySelector("script[data-ghost]");return t&&t.dataset.accentColor?t.dataset.accentColor:!1}async fetchApiData(){const{siteUrl:t,customSiteUrl:n,apiUrl:r,apiKey:i}=this.props;try{this.GhostApi=this.props.api||Aa({siteUrl:t,apiUrl:r,apiKey:i});const{site:o,member:a}=await this.GhostApi.init(),s=this.getColorOverride();return s&&(o.accent_color=s),this.setupFirstPromoter({site:o,member:a}),this.setupSentry({site:o}),{site:o,member:a}}catch(o){if(K(["dev","test"],{customSiteUrl:n}))return{};throw o}}setupSentry({site:t}){if(K(["test"]))return null;const{portal_sentry:n,portal_version:r,version:i}=t,a=`portal@2.26.0|ghost@${i}`;n&&n.dsn&&fb({dsn:n.dsn,environment:n.env||"development",release:a,beforeSend:s=>Rb({event:s})?s:null,allowUrls:[/https?:\/\/((www)\.)?unpkg\.com\/@tryghost\/portal/]})}setupFirstPromoter({site:t,member:n}){if(K(["test"]))return null;const r=Yb({site:t});let i=Kc({site:t});if(i=i==null?void 0:i.replace(/^(\S*\.)?(\S*\.\S*)$/i,".$2"),r&&i){const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://cdn.firstpromoter.com/fprom.js",o.onload=o.onreadystatechange=function(){let s=this.readyState;if(!s||s==="complete"||s==="loaded")try{if(window.$FPROM.init(r,i),n){const l=n.email,c=n.uuid;if(window.$FPROM)window.$FPROM.trackSignup({email:l,uid:c});else{const d=window._fprom||[];window._fprom=d,d.push(["event","signup"]),d.push(["email",l]),d.push(["uid",c])}}}catch{}};const a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}async dispatchAction(t,n){clearTimeout(this.timeoutId),this.setState({action:`${t}:running`});try{const r=await m_({action:t,data:n,state:this.state,api:this.GhostApi});this.setState(r),r&&r.action&&!r.action.includes(":failed")&&(this.timeoutId=setTimeout(()=>{this.setState({action:""})},2e3))}catch(r){const i=X({type:`${t}:failed`,autoHide:!0,closeable:!0,status:"error",state:this.state,meta:{error:r}});this.setState({action:`${t}:failed`,popupNotification:i})}}updateStateForPreviewLinks(){const{site:t,...n}=this.fetchPreviewData(),{site:r,...i}=this.fetchLinkData(),o={site:{...this.state.site,...r||{},...t||{},plans:{...this.state.site&&this.state.site.plans,...(r||{}).plans,...(t||{}).plans}},...i,...n};this.handleSignupQuery({site:o.site,pageQuery:o.pageQuery}),this.setState(o)}async handleOfferQuery({site:t,offerId:n,member:r=this.state.member}){const{portal_button:i}=t;if(Hc(),!_t({member:r}))try{const o=await this.GhostApi.site.offer({offerId:n}),a=o==null?void 0:o.offers[0];if(qb({site:t,offer:a}))if(i)this.dispatchAction("openPopup",{page:"offer",pageData:o==null?void 0:o.offers[0]});else{const s=wr({site:t,productId:a.tier.id}),l=a.cadence==="month"?s.monthlyPrice:s.yearlyPrice;if(this.dispatchAction("openPopup",{page:"loading"}),r){const{tierId:c,cadence:d}=Nn({site:t,priceId:l.id});this.dispatchAction("checkoutPlan",{plan:l.id,offerId:n,tierId:c,cadence:d})}else{const{tierId:c,cadence:d}=Nn({site:t,priceId:l.id});this.dispatchAction("signup",{plan:l.id,offerId:n,tierId:c,cadence:d})}}}catch{}}handleSignupQuery({site:t,pageQuery:n,member:r}){const i=/^offers\/(\w+?)\/?$/;let o=n;if(i.test(n||"")){const[,s]=n.match(i);this.handleOfferQuery({site:t,offerId:s,member:r});return}rg({site:t,pageQuery:n})&&(o=rg({site:t,pageQuery:n}));const a=Mb({site:t,priceId:o});if(n&&n!=="free"){Hc();const s=(a==null?void 0:a.id)||o;s!=="free"&&this.dispatchAction("openPopup",{page:"loading"});const{tierId:l,cadence:c}=Nn({site:t,priceId:s});this.dispatchAction("signup",{plan:s,tierId:l,cadence:c})}}getPageFromLinkPath(t){const n=/^signup\/?(?:\/(\w+?))?\/?$/,r=/^signup\/?(?:\/(\w+?))\/monthly\/?$/,i=/^signup\/?(?:\/(\w+?))\/yearly\/?$/;if(/^offers\/(\w+?)\/?$/.test(t))return{pageQuery:t};if(t==="signup")return{page:"signup"};if(r.test(t)){const[,a]=t.match(r);return{page:"signup",pageQuery:`${a}/monthly`}}else if(i.test(t)){const[,a]=t.match(i);return{page:"signup",pageQuery:`${a}/yearly`}}else if(n.test(t)){const[,a]=t.match(n);return{page:"signup",pageQuery:a}}else{if(t==="signup/free")return{page:"signup",pageQuery:"free"};if(t==="signup/monthly")return{page:"signup",pageQuery:"monthly"};if(t==="signup/yearly")return{page:"signup",pageQuery:"yearly"};if(t==="signin")return{page:"signin"};if(t==="account")return{page:"accountHome"};if(t==="account/plans")return{page:"accountPlan"};if(t==="account/profile")return{page:"accountProfile"};if(t==="account/newsletters")return{page:"accountEmail"}}return{}}getAccentColor(){const{accent_color:t}=this.state.site||{};return t}getContextPage({site:t,page:n,member:r}){if(!n){const i=at({site:t})?"signin":"signup";n=r?"accountHome":i}return n==="accountPlan"&&vr({member:r})&&!Ai({member:r})&&(n="accountHome"),nu({page:n})}getContextMember({page:t,member:n,customSiteUrl:r}){return K(["dev","preview"],{customSiteUrl:r})?Fx({page:t})||zx({page:t})?K(["dev"],{customSiteUrl:r})?n||Ua.free:K(["preview"])?Ua.preview:Ua.paid:null:n}getContextFromState(){const{site:t,member:n,action:r,page:i,lastPage:o,showPopup:a,pageQuery:s,pageData:l,popupNotification:c,customSiteUrl:d,t:p}=this.state,f=this.getContextPage({site:t,page:i,member:n}),y=this.getContextMember({page:f,member:n,customSiteUrl:d});return{site:t,action:r,brandColor:this.getAccentColor(),page:f,pageQuery:s,pageData:l,member:y,lastPage:o,showPopup:a,popupNotification:c,customSiteUrl:d,t:p,onAction:(v,k)=>this.dispatchAction(v,k)}}render(){return this.state.initStatus==="success"?u(A2,{site:this.state.site,children:b(R.Provider,{value:this.getContextFromState(),children:[u(Fg,{}),u(lg,{}),u(fg,{})]})}):null}}const ym="ghost-portal-root";function F2(){const e=document.createElement("div");e.id=ym,document.body.appendChild(e)}function z2(){const e=document.querySelector("script[data-ghost]");if(e){const t=e.dataset.i18n==="true",n=e.dataset.ghost,r=e.dataset.key,i=e.dataset.api;return{siteUrl:n,apiKey:r,apiUrl:i,siteI18nEnabled:t}}return{}}function U2(){const e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}function B2({siteUrl:e}){F2(),U2()}function H2(){const{siteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r}=z2(),i=e||window.location.origin;B2({siteUrl:i}),L0.render(u(q.StrictMode,{children:u(M2,{siteUrl:i,customSiteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r})}),document.getElementById(ym))}H2()});
3116
+ `+n;return b(Y,{children:[u("style",{dangerouslySetInnerHTML:{__html:r}}),u("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const{member:t,site:n,customSiteUrl:r}=this.context,i=zm({member:t}),o=window.innerWidth<480,a={...i.frame.common};let s="gh-portal-popup-background";return K(["preview"])&&(i.modalContainer.zIndex="3999997"),K(["preview"],{customSiteUrl:r})&&!n.disableBackground&&(s+=" preview"),K(["dev"])&&(s+=" dev"),u("div",{style:i.modalContainer,children:b(Uc,{style:a,title:"portal-popup",head:this.renderFrameStyles(),dataTestId:"portal-popup-frame",children:[u("div",{className:s,onClick:l=>this.handlePopupClose(l)}),u(Fm,{isMobile:o})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}Z(Um,"contextType",R),Fa({products:au({numOfProducts:1})});function Se(){return(new Date().getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,function(){return(Math.random()*16|0).toString(16)}).toLowerCase()}function Fa({title:e="The Blueprint",description:t="Thoughts, stories and ideas.",logo:n="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:r="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",url:i="https://portal.localhost",plans:o={monthly:5e3,yearly:15e4,currency:"USD"},products:a=au({numOfProducts:1}),portalProducts:s=a.map($=>$.id),accentColor:l="#45C32E",portalPlans:c=["free","monthly","yearly"],allowSelfSignup:p=!0,membersSignupAccess:d="all",freePriceName:f="Free",freePriceDescription:y="Free preview",isStripeConfigured:v=!0,portalButton:_=!0,portalName:g=!0,portalButtonIcon:h="icon-1",portalButtonSignupText:m="Subscribe now",portalButtonStyle:w="icon-and-text",membersSupportAddress:k="support@example.com",newsletters:C=[],commentsEnabled:S}={}){return{title:e,description:t,logo:n,icon:r,accent_color:l,url:i,plans:o,products:a,portal_products:s,allow_self_signup:p,members_signup_access:d,free_price_name:f,free_price_description:y,is_stripe_configured:v,portal_button:_,portal_name:g,portal_plans:c,portal_button_icon:h,portal_button_signup_text:m,portal_button_style:w,members_support_address:k,comments_enabled:!!S,newsletters:C}}function Bm({name:e="Black Friday",code:t="black-friday",displayTitle:n="Black Friday Sale!",displayDescription:r="Special deal for Black Friday. Subscribe now for only $15 per month and get additional benefits like accessing our podcast.",type:i="percent",cadence:o="month",amount:a=50,duration:s="repeating",durationInMonths:l=null,currencyRestriction:c=!1,currency:p=null,status:d="active",tierId:f="",tierName:y="Basic"}={}){return{id:`offer_${Se()}`,name:e,code:t,display_title:n,display_description:r,type:i,cadence:o,amount:a,duration:s,duration_in_months:l,currency_restriction:c,currency:p,status:d,tier:{id:`${f}`,name:y}}}function Je({name:e="Jamie Larson",email:t="jamie@example.com",firstname:n="Jamie",subscriptions:r=[],paid:i=!1,avatarImage:o="",subscribed:a=!0,email_suppression:s={suppressed:!1,info:null}}={}){return{uuid:`member_${Se()}`,email:t,name:e,firstname:n,paid:i,subscribed:a,avatar_image:o,subscriptions:r,email_suppression:s}}function au({numOfProducts:e=3}={}){const n=[Sr({name:"Bronze",description:"Access to all members articles",monthlyPrice:Ye({interval:"month",amount:700}),yearlyPrice:Ye({interval:"year",amount:7e3}),numOfBenefits:2}),Sr({name:"Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:Ye({interval:"month",amount:1200}),yearlyPrice:Ye({interval:"year",amount:12e3}),numOfBenefits:3}),Sr({name:"Friends of the Blueprint",description:"Get access to everything and lock in early adopter pricing for life + listen to my podcast",monthlyPrice:Ye({interval:"month",amount:18e3}),yearlyPrice:Ye({interval:"year",amount:17e3}),numOfBenefits:4})].slice(0,e),r=Ym({});return[...n,r]}function Sr({type:e="paid",name:t="Basic",description:n="",id:r=`product_${Se()}`,monthlyPrice:i=Ye(),yearlyPrice:o=Ye({interval:"year"}),numOfBenefits:a=2}){return{id:r,name:t,description:n,monthlyPrice:e==="free"?null:i,yearlyPrice:e==="free"?null:o,type:e,benefits:Hm({numOfBenefits:a})}}function Ym({name:e="Free tier",description:t="Free tier description",id:n=`product_${Se()}`,numOfBenefits:r=2}){return{id:n,name:e,type:"free",description:t,benefits:Hm({numOfBenefits:r})}}function Hm({numOfBenefits:e}){return[Ua({name:"Limited early adopter pricing"}),Ua({name:"Latest gear reviews"}),Ua({name:"Weekly email newsletter"}),Ua({name:"Listen to my podcast"})].slice(0,e)}function Ua({id:e=`benefit_${Se()}`,name:t="Benefit"}){return{id:e,name:t}}function Ye({interval:e="month",amount:t=e==="month"?500:5e3,nickname:n=e==="month"?"Monthly":"Yearly",description:r=null,currency:i="usd",active:o=!0,id:a=`price_${Se()}`}={}){return{id:a,active:o,nickname:n,currency:i,amount:t,interval:e,description:r,stripe_price_id:`price_${Se()}`,stripe_product_id:`prod_${Se()}`,type:"recurring"}}function Pn({id:e=`sub_${Se()}`,status:t="active",currency:n="USD",interval:r="year",amount:i=r==="month"?500:5e3,nickname:o=r==="month"?"Monthly":"Yearly",cardLast4:a="4242",offer:s=Jx,priceId:l=`price_${Se()}`,startDate:c="2021-10-05T03:18:30.000Z",currentPeriodEnd:p="2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:d=!1}={}){return{id:e,customer:{id:`cus_${Se()}`,name:"Jamie",email:"jamie@example.com"},plan:{id:`price_${Se()}`,nickname:o,amount:i,interval:r,currency:n},offer:s,status:t,start_date:c,default_payment_card_last4:a,cancel_at_period_end:d,cancellation_reason:null,current_period_end:p,price:{id:`stripe_price_${Se()}`,price_id:l,nickname:o,amount:i,interval:r,type:"recurring",currency:n,product:{id:`stripe_prod_${Se()}`,product_id:`prod_${Se()}`}}}}function Gm(){const e=au({numOfProducts:1}),t=e.map(r=>r.id);return Fa({products:e,portalPlans:["free","monthly","yearly"],portalProducts:t})}Gm();const Qx=Fa({products:[Sr({numOfBenefits:2,type:"free"})]}),Jx=Bm({tierId:(wg=Qx.products[0])==null?void 0:wg.id});Je(),Je({paid:!0,subscriptions:[Pn()]}),Je({paid:!0,subscriptions:[]}),Je({paid:!0,subscriptions:[Pn({amount:0})]}),Je({paid:!0,subscriptions:[Pn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]}),Gm();const Ba=[Ym({name:"Free",description:"Free tier description which is actually a pretty long description",numOfBenefits:2}),Sr({name:"The Blueprint",description:"",monthlyPrice:Ye({interval:"month",amount:500}),yearlyPrice:Ye({interval:"year",amount:5e3}),numOfBenefits:3}),Sr({name:"Friends of the Blueprint Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:Ye({interval:"month",amount:1200}),yearlyPrice:Ye({interval:"year",amount:11e3}),numOfBenefits:4})],Er=Fa({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:Ba,portalProducts:Ba.map(e=>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}]}),Wm=Bm({tierId:(xg=Er.products[1])==null?void 0:xg.id}),Ya={free:Je({name:"Jamie Larson",email:"jamie@example.com",firstname:"Jamie",subscriptions:[],paid:!1,avatarImage:"",subscribed:!0}),paid:Je({paid:!0,subscriptions:[Pn({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:Je({paid:!0,subscriptions:[]}),complimentaryWithSubscription:Je({paid:!0,subscriptions:[Pn({amount:0})]}),preview:Je({paid:!0,subscriptions:[Pn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]})};function Xx(){var n;if(!Ba||!Ba[1])return null;let e=(n=Er==null?void 0:Er.products)==null?void 0:n[1].monthlyPrice,t=Je({paid:!0,subscriptions:[Pn({offer:null,priceId:e==null?void 0:e.id,status:"active",currency:e==null?void 0:e.currency,interval:e==null?void 0:e.interval,amount:e==null?void 0:e.amount,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]});return{site:Er,member:t}}function Zx({data:e,state:t}){return{page:e.page,popupNotification:null,lastPage:e.lastPage||null,pageData:e.pageData||t.pageData}}function ek({state:e}){return{showPopup:!e.showPopup}}function tk({data:e}){return{showPopup:!0,page:e.page,...e.pageQuery?{pageQuery:e.pageQuery}:{},...e.pageData?{pageData:e.pageData}:{}}}function nk({state:e}){return e.lastPage?{page:e.lastPage}:Vm({state:e})}function Vm({state:e}){return Gc(),{showPopup:!1,lastPage:null,pageQuery:"",popupNotification:null,page:e.page==="magiclink"?"":e.page}}function rk({data:e}){return{showNotification:!0,...e}}function ik({state:e}){return{showNotification:!1}}async function ok({api:e,state:t}){try{return await e.member.signout(),{action:"signout:success"}}catch{return{action:"signout:failed",popupNotification:X({type:"signout:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to log out, please try again"})}}}async function ak({data:e,api:t,state:n}){try{return await t.member.sendMagicLink({...e,emailType:"signin"}),{page:"magiclink",lastPage:"signin"}}catch(r){return{action:"signin:failed",popupNotification:X({type:"signin:failed",autoHide:!1,closeable:!0,state:n,status:"error",message:_t.getMessageFromError(r,"Failed to log in, please try again")})}}}async function sk({data:e,state:t,api:n}){try{let{plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}=e;if(r.toLowerCase()==="free")await n.member.sendMagicLink({emailType:"signup",...e});else return i&&o?await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}):({tierId:i,cadence:o}=Cn({site:t==null?void 0:t.site,priceId:r}),await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c})),{page:"loading"};return{page:"magiclink",lastPage:"signup"}}catch(r){const i=(r==null?void 0:r.message)||"Failed to sign up, please try again";return{action:"signup:failed",popupNotification:X({type:"signup:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:i})}}}async function lk({data:e,state:t,api:n}){try{let{plan:r,offerId:i,tierId:o,cadence:a}=e;(!o||!a)&&({tierId:o,cadence:a}=Cn({site:t==null?void 0:t.site,priceId:r})),await n.member.checkoutPlan({plan:r,tierId:o,cadence:a,offerId:i,metadata:{checkoutType:"upgrade"}})}catch{return{action:"checkoutPlan:failed",popupNotification:X({type:"checkoutPlan:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to process checkout, please try again"})}}}async function ck({data:e,state:t,api:n}){try{const{plan:r,planId:i,subscriptionId:o,cancelAtPeriodEnd:a}=e,{tierId:s,cadence:l}=Cn({site:t==null?void 0:t.site,priceId:i});await n.member.updateSubscription({planName:r,tierId:s,cadence:l,subscriptionId:o,cancelAtPeriodEnd:a,planId:i});const c=await n.member.sessionData(),p="updateSubscription:success";return{action:p,popupNotification:X({type:p,autoHide:!0,closeable:!0,state:t,status:"success",message:"Subscription plan updated successfully"}),page:"accountHome",member:c}}catch{return{action:"updateSubscription:failed",popupNotification:X({type:"updateSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update subscription, please try again"})}}}async function uk({data:e,state:t,api:n}){try{const{subscriptionId:r,cancellationReason:i}=e;return await n.member.updateSubscription({subscriptionId:r,smartCancel:!0,cancellationReason:i}),{action:"cancelSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"cancelSubscription:failed",popupNotification:X({type:"cancelSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function dk({data:e,state:t,api:n}){try{const{subscriptionId:r}=e;return await n.member.updateSubscription({subscriptionId:r,cancelAtPeriodEnd:!1}),{action:"continueSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"continueSubscription:failed",popupNotification:X({type:"continueSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function pk({data:e,state:t,api:n}){try{await n.member.editBilling(e)}catch{return{action:"editBilling:failed",popupNotification:X({type:"editBilling:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update billing information, please try again"})}}}async function fk(){return{popupNotification:null}}async function hk({data:e,state:t}){let{action:n,message:r=""}=e;return n=n||"showPopupNotification:success",{popupNotification:X({type:n,autoHide:!0,closeable:!0,state:t,status:"success",message:r})}}async function mk({data:e,state:t,api:n}){try{const{newsletters:r,enableCommentNotifications:i}=e;if(!r&&i===void 0)return{};const o={};return r&&(o.newsletters=r),i!==void 0&&(o.enableCommentNotifications=i),{action:"updateNewsletterPref:success",member:await n.member.update(o)}}catch{return{action:"updateNewsletterPref:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function gk({state:e,api:t}){try{return await t.member.deleteSuppression(),{action:"removeEmailFromSuppressionList:success",popupNotification:X({type:"removeEmailFromSuppressionList:success",autoHide:!0,closeable:!0,state:e,status:"success",message:"You have been successfully resubscribed"})}}catch{return{action:"removeEmailFromSuppressionList:failed",popupNotification:X({type:"removeEmailFromSuppressionList:failed",autoHide:!0,closeable:!0,state:e,status:"error",message:"Your email has failed to resubscribe, please try again"})}}}async function yk({data:e,state:t,api:n}){try{const{subscribed:r}=e,i=await n.member.update({subscribed:r});if(!i)throw new Error("Failed to update newsletter");const o="updateNewsletter:success";return{action:o,member:i,popupNotification:X({type:o,autoHide:!0,closeable:!0,state:t,status:"success",message:"Email newsletter settings updated"})}}catch{return{action:"updateNewsletter:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function vk({data:e,state:t,api:n}){const{email:r}=e,i=qb({member:t.member});if(r!==i)try{return await n.member.updateEmailAddress({email:r}),{success:!0}}catch(o){return{success:!1,error:o}}return null}async function bk({data:e,state:t,api:n}){const{name:r}=e;if(Jb({member:t.member})!==r)try{const o=await n.member.update({name:r});if(!o)throw new Error("Failed to update member");return{member:o,success:!0}}catch(o){return{success:!1,error:o}}return null}async function wk({state:e,api:t}){if(e.member)try{const n=await t.member.sessionData();return n?{member:n,success:!0,action:"refreshMemberData:success"}:null}catch(n){return{success:!1,error:n,action:"refreshMemberData:failed"}}return null}async function xk({data:e,state:t,api:n}){const[r,i]=await Promise.all([bk({data:e,state:t,api:n}),vk({data:e,state:t,api:n})]);if(r&&i){if(i.success)return{action:"updateProfile:success",...r.success?{member:r.member}:{},page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Check your inbox to verify email update"})};const o=r.success?"Failed to send verification email":"Failed to update account data";return{action:"updateProfile:failed",...r.success?{member:r.member}:{},popupNotification:X({type:"updateProfile:failed",autoHide:!0,closeable:!0,status:"error",message:o,state:t})}}else if(r){const o=r.success?"updateProfile:success":"updateProfile:failed",a=r.success?"success":"error",s=r.success?"Account details updated successfully":"Failed to update account details";return{action:o,...r.success?{member:r.member}:{},...r.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:r.success,closeable:!0,status:a,state:t,message:s})}}else if(i){const o=i.success?"updateProfile:success":"updateProfile:failed",a=i.success?"success":"error",s=i.success?"Check your inbox to verify email update":"Failed to send verification email";return{action:o,...i.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:i.success,closeable:!0,status:a,state:t,message:s})}}return{action:"updateProfile:success",page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Account details updated successfully"})}}const kk={togglePopup:ek,openPopup:tk,closePopup:Vm,switchPage:Zx,openNotification:rk,closeNotification:ik,back:nk,signout:ok,signin:ak,signup:sk,updateSubscription:ck,cancelSubscription:uk,continueSubscription:dk,updateNewsletter:yk,updateProfile:xk,refreshMemberData:wk,clearPopupNotification:fk,editBilling:pk,checkoutPlan:lk,updateNewsletterPreference:mk,showPopupNotification:hk,removeEmailFromSuppressionList:gk};async function _k({action:e,data:t,state:n,api:r}){const i=kk[e];return i?await i({data:t,state:n,api:r})||{}:{}}const v2="";function Sk({event:e,form:t,errorEl:n,siteUrl:r,submitHandler:i}){var _;t.removeEventListener("submit",i),e.preventDefault(),n&&(n.innerText=""),t.classList.remove("success","invalid","error");let o=e.target.querySelector("input[data-members-email]"),a=e.target.querySelector("input[data-members-name]"),s=((_=t==null?void 0:t.dataset)==null?void 0:_.membersAutoredirect)||"true",l=o==null?void 0:o.value,c=a&&a.value||void 0,p,d=[],f=e.target.querySelectorAll("input[data-members-label]")||[];for(let g=0;g<f.length;++g)d.push(f[g].value);t.dataset.membersForm&&(p=t.dataset.membersForm),t.classList.add("loading");const y=La(),v={email:l,emailType:p,labels:d,name:c,autoRedirect:s==="true"};y&&(v.urlHistory=y),fetch(`${r}/members/api/send-magic-link/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(function(g){if(t.addEventListener("submit",i),t.classList.remove("loading"),g.ok)t.classList.add("success");else return _t.fromApiResponse(g).then(h=>{throw h})}).catch(g=>{n&&(n.innerText=_t.getMessageFromError(g,"There was an error sending the email, please try again")),t.classList.add("error")})}function Ek({event:e,el:t,errorEl:n,siteUrl:r,site:i,member:o,clickHandler:a}){t.removeEventListener("click",a),e.preventDefault();let s=t.dataset.membersPlan,l=Yb(i,s.toLowerCase()),c=t.dataset.membersSuccess,p=t.dataset.membersCancel,d,f;c&&(d=new URL(c,window.location.href).href),p&&(f=new URL(p,window.location.href).href),n&&(n.innerText=""),t.classList.add("loading");const y=o?{checkoutType:"upgrade"}:{},v=La();return v&&(y.urlHistory=v),fetch(`${r}/members/api/session`,{credentials:"same-origin"}).then(function(_){return _.ok?_.text():null}).then(function(_){return fetch(`${r}/members/api/create-stripe-checkout-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,identity:_,successUrl:d,cancelUrl:f,metadata:y})}).then(function(g){if(!g.ok)throw new Error("Could not create stripe checkout session");return g.json()})}).then(function(_){return _.url?window.location.assign(_.url):window.Stripe(_.publicKey).redirectToCheckout({sessionId:_.sessionId}).then(function(h){if(h.error)throw new Error(h.error.message)})}).catch(function(_){console.error(_),t.addEventListener("click",a),t.classList.remove("loading"),n&&(n.innerText=_.message),t.classList.add("error")})}function Ck({siteUrl:e,site:t,member:n}){e&&(e=e.replace(/\/$/,""),Array.prototype.forEach.call(document.querySelectorAll("form[data-members-form]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){Sk({event:a,errorEl:i,form:r,siteUrl:e,submitHandler:o})}r.addEventListener("submit",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-plan]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){Ek({el:r,event:a,errorEl:i,member:n,site:t,siteUrl:e,clickHandler:o})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-edit-billing]"),function(r){let i=r.querySelector("[data-members-error]"),o=r.dataset.membersSuccess,a=r.dataset.membersCancel,s,l;o&&(s=new URL(o,window.location.href).href),a&&(l=new URL(a,window.location.href).href);function c(p){r.removeEventListener("click",c),p.preventDefault(),i&&(i.innerText=""),r.classList.add("loading"),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(d){return d.ok?d.text():null}).then(function(d){return fetch(`${e}/members/api/create-stripe-update-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:d,successUrl:s,cancelUrl:l})}).then(function(f){if(!f.ok)throw new Error("Could not create stripe checkout session");return f.json()})}).then(function(d){return window.Stripe(d.publicKey).redirectToCheckout({sessionId:d.sessionId})}).then(function(d){if(d.error)throw new Error(d.error.message)}).catch(function(d){console.error(d),r.addEventListener("click",c),r.classList.remove("loading"),i&&(i.innerText=d.message),r.classList.add("error")})}r.addEventListener("click",c)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-signout]"),function(r){function i(o){r.removeEventListener("click",i),o.preventDefault(),r.classList.remove("error"),r.classList.add("loading"),fetch(`${e}/members/api/session`,{method:"DELETE"}).then(function(a){a.ok?window.location.replace(e):(r.addEventListener("click",i),r.classList.remove("loading"),r.classList.add("error"))})}r.addEventListener("click",i)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-cancel-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersCancelSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,smart_cancel:!0})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error cancelling your subscription, please try again."))})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-continue-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersContinueSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,cancel_at_period_end:!1})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error continuing your subscription, please try again."))})}r.addEventListener("click",o)}))}var su={},Pk={get exports(){return su},set exports(e){su=e}};const Nk={"{{discount}}% discount":"{{discount}}% afslag","{{trialDays}} days free":"{{trialDays}} dae gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"'n Aanmeldingskakel is na u inboks gestuur. As dit nie binne 3 minute aankom nie, maak seker om u spam-velde te kyk.",Account:"Rekening","Account settings":"Rekening instellings","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na die gratis proefperiode, sal gewone prys vir die opsie wat jy gekies het betaal. Jy kan altyd voor die tyd kanselleer.","Already a member?":"Reeds 'n lid?",Back:"Terug","Back to Log in":"Terug na aanmelding","Cancel subscription":"Kanseleer subskripsie","Cancellation reason":"Rede vir kansellasie","Choose a different plan":"Kies 'n ander plan","Choose your newsletters":"Kies jou nuusbriewe",Close:"Maak toe",Comments:"Kommentaar",Confirm:"Bevestig",Continue:"Gaan voort","Delete account":"Sluit rekening","Don't have an account?":"Nog nie 'n rekening nie?",Email:"Epos","Email preference updated.":"Epos instellings opgedateer.","Email preferences":"Epos instellings",Emails:"Eposse","Emails disabled":"Eposse afgeskakel","Get help":"Kry hulp","Get notified when someone replies to your comment":"Ontvang kennisgewing wanneer iemand op jou kommentaar reageer","Give feedback on this post":"Gee terugvoering oor hierdie berig","Less like this":"Minder soos hierdie",Manage:"Beheer",Monthly:"Maandeliks","More like this":"Meer soos hierdie",Name:"Naam","Not receiving emails?":"Ontvang nie eposse nie?","Now check your email!":"Kyk nou na u epos!","Powered by Ghost":"Aangedryf deur Ghost",Price:"Prys","Re-enable emails":"Her-aktiveer eposse",Retry:"Probeer weer",Save:"Stoor","Sending login link...":"Stuur aanmeldingskakel...","Sending...":"Besig om te stuur...","Sign in":"Skakel in","Sign up":"Meld aan","Start {{amount}}-day free trial":"Begin {{amount}}-dae gratis proefperiode","Submit feedback":"Stuur terugvoering","Successfully unsubscribed":"Suksesvol afgeskakel","Thanks for the feedback!":"Dankie vir die terugvoering!","That didn't go to plan":"Dit het soos die plan nie verloop nie","This site is invite-only, contact the owner for access.":"Die webwerf is net vir uitnodigings, kontak die eienaar vir toegang.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Om aanmelding te voltooi, klik op die bevestigingskakel in jou inboks. As dit nie binne 3 minute aankom nie, kyk na jou spam-velde!","Unsubscribe from all emails":"Skakel van alle eposse af","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Deur van eposse af te skakel, sal nie jou betaalde subskripsie van {{title}} kanselleer nie","Update your preferences":"Opdateer jou voorkeure","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ons kon nie jou afskakel nie, omdat die eposadres nie gevind is nie. Kontak asseblief die webwerf eienaar.",Yearly:"Jaarliks","You have been successfully resubscribed":"Jy is suksesvol her-aangeskakel","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Jy kry nie eposse nie, omdat jy onlangs 'n boodskap as spam gemerk het, of omdat boodskappe nie na die epos adres wat jy verskaf het gestuur kon word nie.","Your account":"Jou rekening","Your input helps shape what gets published.":"Jou invoer help om te bepaal wat gepubliseer word."},Tk={"{{discount}}% discount":"{{discount}}% de descompte","{{trialDays}} days free":"{{trialDays}} dies de franc","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"S'ha enviat un enllaç d'inici de sessió al teu correu electrònic. Si no t'arriba en 3 minuts, reivsa la teva carpeta de correu brossa.",Account:"Compte","Account settings":"Configuració del compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Després que finalitzi el període de prova gratuït, se't cobrarà el preu regular del nivell que hagis triat. Sempre pots cancel·lar abans d'això.","Already a member?":"Ja ets membre?",Back:"Tornar enrere","Back to Log in":"TOrnar al inici de sessió","Cancel subscription":"Cancel·la la subscripció","Cancellation reason":"Motiu de la cancel·lació","Choose a different plan":"Seleccioneu un pla diferent","Choose your newsletters":"Selecciona els teus butlletins",Close:"Tancar",Comments:"Comentaris",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Esborra compte","Don't have an account?":"No tens un compte?",Email:"Correu electrònic","Email preference updated.":"Preferència del correu electrònic actualitzada","Email preferences":"Preferència del correu electrònic",Emails:"Correus electrònics","Emails disabled":"Correus electrònics desactivats","Get help":"Demanar ajuda","Get notified when someone replies to your comment":"Rep notificacions quan algú et respongui al teu comentari","Give feedback on this post":"Enviar comentaris sobre aquesta publicació","Less like this":"Menys com aquesta",Manage:"Gestionar",Monthly:"Mensual","More like this":"Més com aquesta",Name:"Nom","Not receiving emails?":"No reps els correus electrònics?","Now check your email!":"Revisar ara el teu correu electrònic!","Powered by Ghost":"Impulsat per Ghost",Price:"Preu","Re-enable emails":"Torna a activar els correus electrònics",Retry:"Torna-ho a provar",Save:"Desa","Sending login link...":"Enviant enllaç d'inici de sesió...","Sending...":"Enviant","Sign in":"Inici de sesió","Sign up":"Registrar-se","Start {{amount}}-day free trial":"Comença el període de proves de {{amount}} dies","Submit feedback":"Enviar comentaris","Successfully unsubscribed":"T'has donat de baixa correctament","Thanks for the feedback!":"Gràcies pels teus comentaris!","That didn't go to plan":"Això no ha anat com estava previst","This site is invite-only, contact the owner for access.":"Aquest llog és només per invitació, contacta amb el propietari per obtenir accés.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Per completar el registre, fes clic sobre l'enllaç de confirmació al teu correu electrònic. Si no t'arria en 3 minuts, revisa la teva carpeta de correu brossa!","Unsubscribe from all emails":"Cancel·la les subscripcions a tots els correus electrònics","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancel·lar la subscripció al teu correu electrònic no cancel·larà la teva subscripció de pagament a {{title}}","Update your preferences":"Actualitza les preferències","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"No hem pogut cancel·lar la teva subscripció ja que no s'ha trobar la direcció de correu electrònic. Si us plau, contacta amb el propietari del lloc web.",Yearly:"Anual","You have been successfully resubscribed":"T'has tornat a subscribir amb èxit","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"No estas reben correus electrònics perquè has marcat recentment com SPAM o perque no s'han pogut entregar els missatges a la direcció de correu electrònic proporcionada.","Your account":"El teu copte","Your input helps shape what gets published.":"La teva opinió ajuda a definir el que es publica."},$k={"{{discount}}% discount":"{{discount}}% sleva","{{trialDays}} days free":"{{trialDays}} dní zdarma","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Odkaz pro přihlášení byl odeslán do vaší e-mailové schránky. Pokud nepřijde do 3 minut, zkontrolujte prosím svou složku nevyžádaných zpráv (spam).",Account:"Účet","Account settings":"Nastavení účtu","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Po skončení zkušební doby vám bude účtována běžná cena pro vybranou úroveň. Vždy můžete předtím zrušit odběr.","Already a member?":"Již jste členem?",Back:"Zpět","Back to Log in":"Zpět na přihlášení","Cancel subscription":"Zrušit odběr","Cancellation reason":"Důvod zrušení","Choose a different plan":"Vybrat jiný plán","Choose your newsletters":"Vyberte si newsletter",Close:"Zavřít",Comments:"Komentáře",Confirm:"Potvrdit",Continue:"Pokračovat","Delete account":"Smazat účet","Don't have an account?":"Nemáte účet?",Email:"E-mail","Email preference updated.":"Předvolby e-mailu byly aktualizovány.","Email preferences":"Předvolby e-mailu",Emails:"E-maily","Emails disabled":"E-maily vypnuty","Get help":"Získat pomoc","Get notified when someone replies to your comment":"Dostávat upozornění, když někdo odpoví na váš komentář","Give feedback on this post":"Dát zpětnou vazbu k tomuto příspěvku","Less like this":"Méně podobných",Manage:"Spravovat",Monthly:"Měsíčně","More like this":"Víc podobných",Name:"Jméno","Not receiving emails?":"Nepřicházejí vám e-maily?","Now check your email!":"Zkontrolujte svou e-mailovou schránku!","Powered by Ghost":"Používá technologii Ghost",Price:"Cena","Re-enable emails":"Znovu povolit e-maily",Retry:"Zkusit znovu",Save:"Uložit","Sending login link...":"Odesílání přihlašovacího odkazu...","Sending...":"Odesílání...","Sign in":"Přihlásit se","Sign up":"Registrovat se","Start {{amount}}-day free trial":"Začít {{amount}}denní zkušební verzi zdarma","Submit feedback":"Odeslat zpětnou vazbu","Successfully unsubscribed":"Úspěšné odhlášení","Thanks for the feedback!":"Děkujeme za zpětnou vazbu!","That didn't go to plan":"Něco se nepovedlo","This site is invite-only, contact the owner for access.":"Tento web je pouze pro pozvané, kontaktujte provozovatele pro přístup.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pro dokončení registrace klikněte na potvrzovací odkaz ve vaší e-mailové schránce. Pokud nepřijde do 3 minut, zkontrolujte prosím složku nevyžádaných zpráv (spam)!","Unsubscribe from all emails":"Odhlásit se od všech e-mailů","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Odhlášení ze newsletterů nezruší váš placený odběr {{title}}","Update your preferences":"Aktualizovat předvolby","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nemohli jsme vás odhlásit, protože e-mailová adresa nebyla nalezena. Kontaktujte prosím provozovatele webu.",Yearly:"Ročně","You have been successfully resubscribed":"Úspěšně jste se opět přihlásili k odběru","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Nepřicházejí vám e-maily, protože jste buď označili nedávnou zprávu jako spam, nebo doručování zpráv na vámi zadaný e-mail nefunguje.","Your account":"Váš účet","Your input helps shape what gets published.":"Vaše připomínky pomáhají spoluvytvářet obsah webu."},Rk={"{{discount}}% discount":"{{discount}}% Rabatt","{{trialDays}} days free":"{{trialDays}} Tage kostenlos","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Ein Login-Link wurde an Deine E-Mail-Adresse gesendet. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner.",Account:"Benutzerkonto","Account settings":"Benutzerkonto-Einstellungen","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Wenn das kostenlose Testabo endet, wirst Du den regulären Preis für den gewählten Tarif bezahlen. Du kannst das Abonnement jederzeit kündigen.","Already a member?":"Bereits Mitglied?",Back:"Zurück","Back to Log in":"Zurück zur Anmeldung","Cancel subscription":"Abonnierung kündigen","Cancellation reason":"Kündigungsgrund","Choose a different plan":"Wähle einen anderen Plan","Choose your newsletters":"Wähle Deine Newsletter",Close:"Schließen",Comments:"Kommentare",Confirm:"Bestätigen",Continue:"Weiter","Delete account":"Konto löschen","Don't have an account?":"Noch kein Konto?",Email:"Email","Email preference updated.":"Email Einstellungen aktualisiert.","Email preferences":"Email Einstellungen",Emails:"Emails","Emails disabled":"Emails deaktiviert","Get help":"Hilfe erhalten","Get notified when someone replies to your comment":"Erhalte eine Benachrichtigung, wenn jemand auf Deinen Kommentar antwortet","Give feedback on this post":"Gebe Feedback zu diesem Beitrag","Less like this":"Weniger davon",Manage:"Verwalten",Monthly:"Monatlich","More like this":"Mehr davon",Name:"Name","Not receiving emails?":"Keine Emails erhalten?","Now check your email!":"Überprüfe jetzt Deine E-Mails!","Powered by Ghost":"Powered by Ghost",Price:"Preis","Re-enable emails":"Emails wieder aktivieren",Retry:"Nochmals versuchen",Save:"Speichern","Sending login link...":"Sende Login-Link...","Sending...":"Sende...","Sign in":"Einloggen","Sign up":"Registrieren","Start {{amount}}-day free trial":"Starte {{amount}}-tägiges kostenloses Testabo","Submit feedback":"Feedback senden","Successfully unsubscribed":"Erfolgreich abgemeldet","Thanks for the feedback!":"Danke für das Feedback!","That didn't go to plan":"Das verlief nicht nach Plan","This site is invite-only, contact the owner for access.":"Diese Seite ist nur nach Einladung zugänglich. Bitte kontaktiere den Seitenbetreiber.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Um die Registrierung abzuschließen, klicke auf den Bestätigungslink in Deinem E-Mail Postfach. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner!","Unsubscribe from all emails":"Von allen Emails abmelden","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wenn Du Dich von Emails abmeldest, wird Dein bezahltes Abonnement bei {{title}} nicht gekündigt","Update your preferences":"Aktualisiere Deine Einstellungen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Wir konnten Dich nicht abmelden, da die E-Mail-Adresse nicht gefunden wurde. Bitte kontaktiere den Seitenbetreiber.",Yearly:"Jährlich","You have been successfully resubscribed":"Du wurdest erfolgreich wieder angemeldet","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du erhältst keine Emails, da Du entweder eine kürzlich empfangene Nachricht als Spam markiert hast oder weil Nachrichten nicht an Deine angegebene E-Mail-Adresse zugestellt werden konnten.","Your account":"Dein Konto","Your input helps shape what gets published.":"Deine Eingaben helfen dabei, was veröffentlicht wird."},Ok={"{{discount}}% discount":"","{{trialDays}} days free":"","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"",Account:"","Account settings":"","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"","Already a member?":"",Back:"","Back to Log in":"","Cancel subscription":"","Cancellation reason":"","Choose a different plan":"","Choose your newsletters":"",Close:"",Comments:"",Confirm:"",Continue:"","Delete account":"","Don't have an account?":"",Email:"","Email preference updated.":"","Email preferences":"",Emails:"","Emails disabled":"","Get help":"","Get notified when someone replies to your comment":"","Give feedback on this post":"","Less like this":"",Manage:"",Monthly:"","More like this":"",Name:"","Not receiving emails?":"","Now check your email!":"","Powered by Ghost":"",Price:"","Re-enable emails":"",Retry:"",Save:"","Sending login link...":"","Sending...":"","Sign in":"","Sign up":"","Start {{amount}}-day free trial":"","Submit feedback":"","Successfully unsubscribed":"","Thanks for the feedback!":"","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"","Unsubscribe from all emails":"","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"","Update your preferences":"","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"",Yearly:"","You have been successfully resubscribed":"","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"","Your account":"","Your input helps shape what gets published.":""},Dk={"{{discount}}% discount":"{{discount}}% rabato","{{trialDays}} days free":"{{trialDays}} tagoj senpagaj","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Sendis ensalutan ligilon al via enirkesto. Se ĝi ne alvenas post 3 minutoj, nepre kontrolu vian trudmesaĝdosieron.",Account:"Konto","Account settings":"Kontagordoj","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Post senpaga provo finiĝos, vi pagos la regulan prezon por la nivelo, kiun vi elektis. Vi ĉiam povas nuligi antaŭ tiam.","Already a member?":"Ĉu membro jam?",Back:"Reen","Back to Log in":"Reen al Ensaluto","Cancel subscription":"Nuligu abonon","Cancellation reason":"Nuliga kialo","Choose a different plan":"Elektu alian planon","Choose your newsletters":"Elektu viajn bultenojn",Close:"Fermu",Comments:"Komentoj",Confirm:"Konfirmu",Continue:"Daŭrigu","Delete account":"Forigu konton","Don't have an account?":"Ĉu ne havas konton?",Email:"Retadreso","Email preference updated.":"Retpoŝta agordo ĝisdatigita.","Email preferences":"Retpoŝtaj agordoj",Emails:"Retpoŝtoj","Emails disabled":"Retpoŝtoj malŝaltitaj","Get help":"Ricevi helpon","Get notified when someone replies to your comment":"Estu sciiga kiam iu respondos al via komento","Give feedback on this post":"Donu komentojn pri ĉi tiu afiŝo","Less like this":"Malpli tiel",Manage:"Administru",Monthly:"Monate","More like this":"Pli kiel ĉi tio",Name:"Nomo","Not receiving emails?":"","Now check your email!":"Bonvolu kontroli vian retpoŝton nun!","Powered by Ghost":"Funkciigita de Ghost",Price:"Kosto","Re-enable emails":"Reŝalti retpoŝtojn",Retry:"Reprovu",Save:"Konservi","Sending login link...":"Sendanta ensaluta ligilo...","Sending...":"Sendante...","Sign in":"Ensalutu","Sign up":"Aliĝu","Start {{amount}}-day free trial":"Komencu senpaga {{amount}}-taga provo","Submit feedback":"Sendu rimarkojn","Successfully unsubscribed":"Sukcese malabonita","Thanks for the feedback!":"Dankon pro la rimarkoj!","That didn't go to plan":"Tio ne iris laŭ la intenco","This site is invite-only, contact the owner for access.":"Ĉi tiu retejo estas nur por invitiĝuloj, kontaktu la proprietulo por alireblo.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Por kompletigi aliĝon, premu la konfirman ligilon en via enirkesto. Se ĝi ne alvenas ene de 3 minutoj, kontrolu vian trudmesaĝdosieron!","Unsubscribe from all emails":"Malabonu de ĉiuj retpoŝtoj","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Malabonigi de retpoŝtoj ne nuligos vian pagitan abonon al {{title}}","Update your preferences":"Ĝisdatigu viajn agordojn","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ni ne povis malaboni vin ĉar la retadreso ne estis trovita. Bonvolu kontakti la proprietulo de la retejo",Yearly:"Jare","You have been successfully resubscribed":"Vi sukcese reaboniĝis","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Vi ne ricevas retpoŝtojn ĉar vi aŭ markis lastatempan mesaĝon kiel trudmesaĝo, aŭ ĉar mesaĝoj ne povis liveri al via provizita retadreso.","Your account":"Via konto","Your input helps shape what gets published.":"Via enigo helpas formi kio estas aperigita."},Lk={"{{discount}}% discount":"{{discount}}% de descuento","{{trialDays}} days free":"{{trialDays}} días gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Se ha enviado un enlace de inicio de sesión a tu correo. Si no llega en 3 minutos, revisa tu carpeta de spam.",Account:"Cuenta","Account settings":"Configuración de la cuenta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Después de que finalice el período de prueba gratuito, se te cobrará el precio regular del nivel que hayas elegido. Siempre puedes cancelar antes de eso.","Already a member?":"¿Ya eres miembro?",Back:"Atrás","Back to Log in":"Volver al inicio de sesión","Cancel subscription":"Cancelar suscripción","Cancellation reason":"Razón de cancelación","Choose a different plan":"Elige un plan diferente","Choose your newsletters":"Elige tus boletines",Close:"Cerrar",Comments:"Comentarios",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Eliminar cuenta","Don't have an account?":"¿No tienes una cuenta?",Email:"Correo electrónico","Email preference updated.":"Preferencia de correo electrónico actualizada.","Email preferences":"Preferencias de correo electrónico",Emails:"Correos electrónicos","Emails disabled":"Correos electrónicos desactivados","Get help":"Obtener ayuda","Get notified when someone replies to your comment":"Recibe notificaciones cuando alguien responda a tu comentario","Give feedback on this post":"Envía comentarios sobre esta publicación","Less like this":"Menos como esto",Manage:"Administrar",Monthly:"Mensual","More like this":"Más como esto",Name:"Nombre","Not receiving emails?":"¿No recibes correos electrónicos?","Now check your email!":"¡Ahora revisa tu correo electrónico!","Powered by Ghost":"Desarrollado por Ghost",Price:"Precio","Re-enable emails":"Reactivar correos electrónicos",Retry:"Reintentar",Save:"Guardar","Sending login link...":"Enviando enlace de inicio de sesión...","Sending...":"Enviando...","Sign in":"Iniciar sesión","Sign up":"Registrarse","Start {{amount}}-day free trial":"Comienza el período de prueba gratuito de {{amount}} días","Submit feedback":"Enviar comentarios","Successfully unsubscribed":"Te has dado de baja correctamente","Thanks for the feedback!":"¡Gracias por tus comentarios!","That didn't go to plan":"Eso no salió según lo planeado","This site is invite-only, contact the owner for access.":"Este sitio es solo por invitación, contacta al propietario para obtener acceso.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Para completar el registro, haz clic en el enlace de confirmación en tu correo electrónico. Si no llega en 3 minutos, ¡revisa tu carpeta de spam!","Unsubscribe from all emails":"Cancelar suscripción a todos los correos electrónicos","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancelar la suscripción a los correos electrónicos no cancelará tu suscripción de pago a {{title}}","Update your preferences":"Actualiza tus preferencias","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"No pudimos cancelar tu suscripción ya que no se encontró la dirección de correo electrónico. Por favor, contacta al propietario del sitio.",Yearly:"Anual","You have been successfully resubscribed":"Te has vuelto a suscribir con éxito","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"No estás recibiendo correos electrónicos porque marcaste un mensaje reciente como spam o porque no se pudieron entregar los mensajes a la dirección de correo electrónico proporcionada.","Your account":"Tu cuenta","Your input helps shape what gets published.":"Tu opinión ayuda a definir lo que se publica."},jk={"{{discount}}% discount":"{{discount}}% de réduction","{{trialDays}} days free":"{{trialDays}} jours gratuits","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un lien de connexion a été envoyé à ta boîte de réception. S'il n'arrive pas dans les 3 minutes, vérifie ton dossier spam.",Account:"Compte","Account settings":"Paramètres du compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"À la fin de la période d'essai gratuite, le prix normal de l'abonnement choisi sera facturé. Tu peux toujours annuler d'ici là.","Already a member?":"Déjà membre ?",Back:"Retour","Back to Log in":"Retour à Connexion","Cancel subscription":"Annuler abonnement","Cancellation reason":"Raison pour l'annulation","Choose a different plan":"Choisir un autre abonnement","Choose your newsletters":"Choisir les newsletters",Close:"Fermer",Comments:"Commentaires",Confirm:"Confirmer",Continue:"Continuer","Delete account":"Fermer le compte","Don't have an account?":"Tu n'as pas encore de compte ?",Email:"E-mail","Email preference updated.":"Préférences d'e-mail mises à jour.","Email preferences":"Préférences d'e-mail",Emails:"E-mails","Emails disabled":"E-mails désactivés","Get help":"Obtenir de l'aide","Get notified when someone replies to your comment":"Être notifié lorsque quelqu'un répond à ton commentaire","Give feedback on this post":"Donner ton avis sur cet article","Less like this":"Moins de ça",Manage:"Gérer",Monthly:"Mensuel","More like this":"Plus de ça",Name:"Nom","Not receiving emails?":"Tu n'as pas reçu d'e-mail ?","Now check your email!":"Maintenant, vérifie ta boite de réception.","Powered by Ghost":"Créé avec Ghost",Price:"Prix","Re-enable emails":"Ré-activer les e-mails",Retry:"Réesayer",Save:"Sauvegarder","Sending login link...":"Envoi du lien de connexion...","Sending...":"Envoi...","Sign in":"Se connecter","Sign up":"S'enregistrer","Start {{amount}}-day free trial":"Commencer l'essai gratuit de {{amount}} jours","Submit feedback":"Envoyer ton avis","Successfully unsubscribed":"Désabonnement réussi","Thanks for the feedback!":"Merci pour ton avis !","That didn't go to plan":"Cela n'a pas fonctionné comme prévu","This site is invite-only, contact the owner for access.":"Ce site est réservé aux invités, contacte le propriétaire pour y accéder.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pour confirmer ton inscription, clique sur le lien de confirmation envoyé dans ta boite de réception. S'il ne te parvient pas dans les 3 minutes, vérifie ton dossier spam.","Unsubscribe from all emails":"Se désinscrire de tous les -mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"La désinscription des e-mails n'annulera ton abonnement payant à {{title}}","Update your preferences":"Mettre à jour tes préférences","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"La désinscription n'a pas fonctionné car ton adresse e-mail n'a pas été trouvée. Merci de contacter le propriétaire du site.",Yearly:"Annuel","You have been successfully resubscribed":"Tu as été réinscrit avec succès","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Tu ne reçois pas d'e-mails parce que tu as marqué un message récent comme spam, ou parce que les messages n'ont pas pu être livrés à l'adresse e-mail que tu as indiquée.","Your account":"Ton compte","Your input helps shape what gets published.":"Ton avis aide à améliorer ce qui est publié."},Ik={"{{discount}}% discount":"{{discount}}% kedvezmény","{{trialDays}} days free":"{{trialDays}} nap ingyen","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"A bejelentkezéshez szükséges linket elküldtük a megadott email címre. Ha nem érkezne meg 3 percen belül, kérjük ellenőrizze a spam mappát!",Account:"Fiók","Account settings":"Fiók beállítások","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Az ingyenes próbaidőszak lejárta után a kiválasztott csomag normál díját fogjuk felszámolni. A feliratkozás bármikor ingyenesen lemondható a próbaidőszak alatt.","Already a member?":"Már van fiókja?",Back:"Vissza","Back to Log in":"Vissza a bejelentkezéshez","Cancel subscription":"Feliratkozás megszűntetése","Cancellation reason":"A megszűntetés oka","Choose a different plan":"Válasszon másik csomagot","Choose your newsletters":"Válassza ki a hírleveleket",Close:"Bezár",Comments:"Kommentek",Confirm:"Jóváhgyás",Continue:"Folytatás","Delete account":"Fiók törlése","Don't have an account?":"Még nincs fiókja?",Email:"Email","Email preference updated.":"Email beállítások elmentve","Email preferences":"Email beállítások",Emails:"Email-ek","Emails disabled":"Email-ek kikapcsolva","Get help":"Kérjen segítséget","Get notified when someone replies to your comment":"Értesítést kérek ha valaki válaszol a kommentemre","Give feedback on this post":"Hogy tetszett ez a cikk?","Less like this":"Kevesebb ilyet",Manage:"Kezelés",Monthly:"Havi","More like this":"Több ilyet",Name:"Név","Not receiving emails?":"Nem érkeznek meg az email-ek?","Now check your email!":"Ellenőrizze az postafiókját","Powered by Ghost":"Powered by Ghost",Price:"Ár","Re-enable emails":"Email-ek aktiválása",Retry:"Újra",Save:"Mentés","Sending login link...":"Bejelenkezési link küldése...","Sending...":"Küldés...","Sign in":"Bejelentkezés","Sign up":"Regisztráció","Start {{amount}}-day free trial":"{{amount}} napos próbaidőszak kezdése","Submit feedback":"Visszajelzés küldése","Successfully unsubscribed":"Sikeres leiratkozás","Thanks for the feedback!":"Köszönjük a visszajelzést","That didn't go to plan":"Hiba történt","This site is invite-only, contact the owner for access.":"A website csak meghívóval látogatható. Meghívóért lépjen kapcsolatba az oldal tulajdonosával!","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"A regisztráció befejezéséhez kérjük kattintson az email-ben kapott linkre. Ha a link nem érkezne meg 3 percen belül kérjük ellenőrizze a spam mappát.","Unsubscribe from all emails":"Leiratkozás minden email-ről","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Az email-ről történő leiratkozás nem szűnteti meg a fiókját","Update your preferences":"Beállítások mentése","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ehhez az email-hez nem tartozik fiók. Kérjük lépjen kapcsolatba az oldal tulajdonosával.",Yearly:"Éves","You have been successfully resubscribed":"Sikeres feliratkozás","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Azért nem kap email-t mert vagy spam-nek jelölt egy tőlünk kapott hírlevelet, vagy azért mert a megadott email cím nem tud üzeneteket fogadni.","Your account":"Fiók","Your input helps shape what gets published.":"A visszajelzése segít abban, hogy mit publikáljunk"},Ak={"{{discount}}% discount":"{{discount}}% sconto","{{trialDays}} days free":"{{trialDays}} giorni gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un link di accesso è stato inviato alla tua casella di posta. Se non la ricevi entro 3 minuti, controllare la cartella della posta indesiderata.",Account:"Account","Account settings":"Impostazioni Account","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Al termine della prova gratuita, ti verrà addebitato il prezzo normale per il livello che hai scelto. Puoi sempre annullare prima della fine della prova gratuita.","Already a member?":"Sei già un membro?",Back:"Indietro","Back to Log in":"Torna al Log-in","Cancel subscription":"Cancella la tua iscrizione","Cancellation reason":"Motivo della cancellazione","Choose a different plan":"Scegli un piano differente","Choose your newsletters":"Scegli la tua newsletter",Close:"Chiudi",Comments:"Commenti",Confirm:"Conferma",Continue:"Continua","Delete account":"Cancella account","Don't have an account?":"Non hai un account?",Email:"Email","Email preference updated.":"Impostazioni Email aggiornate","Email preferences":"Impostazioni Email",Emails:"Email","Emails disabled":"Email disattivate","Get help":"Chiedi aiuto","Get notified when someone replies to your comment":"Ricevi una notifica quando qualcuno risponde al tuo commento","Give feedback on this post":"Manda un feedback per questo post","Less like this":"Meno come questo",Manage:"",Monthly:"Mensile","More like this":"Più come questo",Name:"Nome","Not receiving emails?":"Non ricevi email?","Now check your email!":"Ora controlla la tua email!","Powered by Ghost":"Creato con Ghost",Price:"Prezzo","Re-enable emails":"Attiva di nuovo le email",Retry:"Riprova",Save:"Salva","Sending login link...":"Invio link di accesso...","Sending...":"Invia...","Sign in":"Accedi","Sign up":"Iscriviti","Start {{amount}}-day free trial":"Inizia {{amount}}-giorni di prova","Submit feedback":"Invia feedback","Successfully unsubscribed":"Hai cancellato la tua iscrizione con successo","Thanks for the feedback!":"Grazie per i feedback","That didn't go to plan":"Non è andato come previsto","This site is invite-only, contact the owner for access.":"Questo sito é accessibile solo su invito, contatta il proprietario per accedere.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Per completare l'accesso, clicca il link di conferma nella tua email. Se non la ricevi entro 3 minuti, controllare la cartella della posta indesiderata!","Unsubscribe from all emails":"Cancella l'iscrizione da tutte le email","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"L'annullamento dell'iscrizione alle e-mail non annullerà l'abbonamento a pagamento a {{title}}","Update your preferences":"Aggiorna le tue preferenze","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Non è stato possibile annullare l'iscrizione poiché l'indirizzo e-mail non è stato trovato. Si prega di contattare il proprietario del sito.",Yearly:"Annuale","You have been successfully resubscribed":"Sei stato nuovamente iscritt* con successo","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Non ricevi email perché hai contrassegnato un messaggio recente come spam o perché non è stato possibile recapitare i messaggi all'indirizzo email fornito.","Your account":"Il tuo account","Your input helps shape what gets published.":"Il tuo contributo aiuta a dare forma a ciò che viene pubblicato."},Mk={"{{discount}}% discount":"{{discount}}% хямдрал","{{trialDays}} days free":"{{trialDays}} өдөр үнэгүй","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Таны имэйл рүү нэвтрэх холбоосыг илгээлээ. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу.",Account:"Бүртгэл","Account settings":"Бүртгэлийн тохиргоо","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Үнэгүй туршилтын хугацаа дуусахад таны данснаас сонгосон багцын үнэ хасагдана. Гэвч та өмнө нь цуцлах боломжтой.","Already a member?":"Бүртгэлтэй юу?",Back:"Буцах","Back to Log in":"Нэвтрэх хэсэг рүү буцах","Cancel subscription":"Захиалгаа цуцлах","Cancellation reason":"Цуцалсан шалтгаан","Choose a different plan":"Өөр багц сонгох","Choose your newsletters":"Товхимолоо сонгох",Close:"Хаах",Comments:"Сэтгэгдлүүд",Confirm:"Баталгаажуулах",Continue:"Үргэлжлүүлэх","Delete account":"Бүртгэлээ устгах","Don't have an account?":"Бүргэлгүй юу?",Email:"Имэйл","Email preference updated.":"Имэйлийн тохиргоо шинэчлэгдлээ.","Email preferences":"Имэйлийн тохиргоо",Emails:"Имэйлүүд","Emails disabled":"Имэйлийг идэхгүй болгосон","Get help":"Тусламж","Get notified when someone replies to your comment":"Хэн нэгэн таны сэтгэгдэлд хариу бичих үед мэдэгдэх","Give feedback on this post":"Энэ нийтлэлд саналаа өгөх","Less like this":"Таалагдсангүй",Manage:"Удирдах",Monthly:"Сарын","More like this":"Таалагдлаа",Name:"Нэр","Not receiving emails?":"Имэйл ирээгүй юу?","Now check your email!":"Одоо имэйлээ шалгана уу!","Powered by Ghost":"Ghost дээр суурилав",Price:"Үнэ","Re-enable emails":"Имэйлийг дахин идэвхжүүлэх",Retry:"Дахин оролдох",Save:"Хадгалах","Sending login link...":"Нэвтрэх холбоосыг илгээж байна...","Sending...":"Илгээж байна...","Sign in":"Нэвтрэх","Sign up":"Бүртгүүлэх","Start {{amount}}-day free trial":"{{amount}} өдрийн үнэгүй туршилтыг эхлүүлэх","Submit feedback":"Саналаа илгээх","Successfully unsubscribed":"Захиалгыг амжилттай цуцаллаа","Thanks for the feedback!":"Саналаа илгээсэнд баярлалаа!","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"Энэхүү сайт руу зөвхөн урилгаар нэвтрэх боломжтой тул та админд нь хандана уу.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Тан руу илгээсэн баталгаажуулах холбоос дээр дарж бүртгэлээ дуусгана уу. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу!","Unsubscribe from all emails":"Бүх имэйлийг зогсоох","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Имэйлийг зогсоосон ч таны {{title}} төлбөртэй захиалга цуцлагдахгүй","Update your preferences":"Тохиргоогоо шинэчлэх","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Энэхүү имэйл хаяг олдоогүй учир захиалгыг цуцлах боломжгүй. Та сайтын админд хандана уу.",Yearly:"Жилийн","You have been successfully resubscribed":"Таны захиалга амжилттай дахин идэвхжлээ","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Таны имэйл хүлээж авахгүй байгаа шалтгаан нь нэг бол та аль нэг имэйлийг спам гэж тэмдэглэсэн, эсвэл таны хаяг имэйл хүлээж авах боломжгүй байна.","Your account":"Таны бүртгэл","Your input helps shape what gets published.":"Таны санал дараа дараагийн нийтлэлийг илүү чанартай болгоход туслана"},zk={"{{discount}}% discount":"{{discount}}% korting","{{trialDays}} days free":"{{trialDays}} dagen gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Je hebt een email met een login link ontvangen. Check je spamfolder als hij niet binnen de 3 minuten aankomt.",Account:"Account","Account settings":"Gegevens","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na de proefperiode zal het normale tarief in rekening worden gebracht voor het door jou gekozen abonnement.","Already a member?":"Al lid?",Back:"Terug","Back to Log in":"Terug naar inloggen","Cancel subscription":"Abonnement opzeggen","Cancellation reason":"Reden voor opzegging","Choose a different plan":"Kies een ander abonnement","Choose your newsletters":"Kies jouw nieuwsbrieven",Close:"Sluiten",Comments:"Reacties",Confirm:"Bevestigen",Continue:"Doorgaan","Delete account":"Account verwijderen","Don't have an account?":"Heb je nog geen account?",Email:"E-mail","Email preference updated.":"E-mailinstellingen aanpassen","Email preferences":"E-mailinstellingen",Emails:"E-mails","Emails disabled":"E-mails zijn uitgeschakeld","Get help":"Lees meer","Get notified when someone replies to your comment":"Blijf op de hoogte als iemand op jouw reactie reageert","Give feedback on this post":"Deel je mening over dit artikel","Less like this":"Minder hiervan",Manage:"Beheer",Monthly:"Maandelijks","More like this":"Meer hiervan",Name:"Naam","Not receiving emails?":"Ontvang je geen e-mails?","Now check your email!":"Bekijk nu jouw e-mails!","Powered by Ghost":"Powered by Ghost",Price:"Prijs","Re-enable emails":"E-mails weer inschakelen",Retry:"Opnieuw proberen",Save:"Opslaan","Sending login link...":"Inloglink versturen...","Sending...":"Versturen...","Sign in":"Inloggen","Sign up":"Registreren","Start {{amount}}-day free trial":"Start gratis je {{amount}}-daagse proefperiode","Submit feedback":"Deel je feedback","Successfully unsubscribed":"Succesvol uitgeschreven","Thanks for the feedback!":"Bedankt voor je feedback!","That didn't go to plan":"Er ging iets mis","This site is invite-only, contact the owner for access.":"Deze site is alleen toegankelijk op uitnodiging, neem contact op met de eigenaar.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Klik op de bevestigingslink in de e-mail om je registratie af te ronden. Check ook je spamfolder als hij niet binnen de 3 minuten aankomt.","Unsubscribe from all emails":"Uitschrijven voor alles","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Je betaalde abonnement voor {{title}} wordt niet geannuleerd als je je uitschrijft voor e-mails","Update your preferences":"Voorkeuren aanpassen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Het is niet gelukt om je uit te schrijven, omdat je e-mailadres niet is gevonden. Neem contact met ons op.",Yearly:"Jaarlijks","You have been successfully resubscribed":"Je bent weer succesvol geabonneerd","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Je ontvangt geen e-mails omdat je ofwel een recent bericht als spam had gemarkeerd, of omdat de berichten niet verzonden konden worden naar jouw e-mailadres.","Your account":"Jouw account","Your input helps shape what gets published.":"Jouw mening helpt bepalen wat er gepubliceerd wordt."},Fk={"{{discount}}% discount":"Rabat {{discount}}%","{{trialDays}} days free":"{{trialDays}} darmowych dni","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Link do logowania został wysłany do twojej skrzynki odbiorczej. Jeśli nie dotrze w ciągu 3 minut, sprawdź swój folder spamu.",Account:"Konto","Account settings":"Ustawienia konta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Po zakończeniu okresu próbnego zostanie naliczona regularna opłata za wybrany poziom subskrypcji. Zawsze możesz anulować subskrypcję zanim to nastąpi.","Already a member?":"Masz już konto?",Back:"Wstecz","Back to Log in":"Wróć do logowania","Cancel subscription":"Anuluj subskrypcję","Cancellation reason":"Powód anulowania","Choose a different plan":"Wybierz inny plan","Choose your newsletters":"Wybierz swoje newslettery",Close:"Zamknij",Comments:"Komentarze",Confirm:"Potwierdź",Continue:"Dalej","Delete account":"Skasuj konto","Don't have an account?":"Nie masz jeszcze konta?",Email:"Email","Email preference updated.":"Ustawienia email zaktualizowane","Email preferences":"Ustawienia email",Emails:"Emaile","Emails disabled":"Wysyłanie emaili zablokowane","Get help":"Uzyskaj pomoc","Get notified when someone replies to your comment":"Otrzymaj powiadomienie gdy ktoś odpowie na twój komentarz","Give feedback on this post":"Oceń ten wpis","Less like this":"Mniej podobnych",Manage:"Zarządzaj",Monthly:"Miesięcznie","More like this":"Więcej podobnych",Name:"Imię i nazwisko","Not receiving emails?":"Nie dostajesz emaili?","Now check your email!":"Teraz sprawdź swoją pocztę!","Powered by Ghost":"Oparto na Ghost",Price:"Cena","Re-enable emails":"Włącz ponownie emaile",Retry:"Powtórz",Save:"Zapisz","Sending login link...":"Wysyłanie linku do logowania...","Sending...":"Wysyłanie...","Sign in":"Zaloguj się","Sign up":"Zarejestruj się","Start {{amount}}-day free trial":"Rozpocznij {{amount}}-dniowy okres próbny","Submit feedback":"Wyślij ocenę","Successfully unsubscribed":"Wypisanie udane","Thanks for the feedback!":"Dziękujemy za ocenę!","That didn't go to plan":"Coś poszło nie tak","This site is invite-only, contact the owner for access.":"Ta strona jest tylko na zaproszenie, skontaktuj się z właścicielem aby uzyskać dostęp.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Aby dokończyć rejestrację, kliknij w link przesłany na twoją skrzynkę pocztową. Jeśli nie dotrze on w ciągu 3 minut, sprawdź folder spamu!","Unsubscribe from all emails":"Wypisz się w wszystkich emaili","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wypisanie się z otrzymywania emaili nie powoduje anulowania płatnej subskrypcji {{title}}","Update your preferences":"Zaktualizuj preferencje","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nie udało się wypisać, bo nie znaleziono adresu email. Skontaktuj się w właścicielem strony.",Yearly:"Rocznie","You have been successfully resubscribed":"Zostałeś ponownie zapisany","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Nie otrzymujesz powiadomień email, ponieważ oznaczyłeś ostatnią wiadomość jako spam lub nie udało się dostarczyć wiadomości na podany adres email.","Your account":"Twoje konto","Your input helps shape what gets published.":"Twoja ocena pomoże nam lepiej kształtować nasz publikacje."},Uk={"{{discount}}% discount":"{{discount}}% de desconto","{{trialDays}} days free":"{{trialDays}} dias grátis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Um link de acesso foi enviado para o seu email. Se a mensagem não chegar dentro de 3 minutos, verifique sua pasta de spam.",Account:"Conta","Account settings":"Configurações de conta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Quando o teste grátis acabar, será cobrado o preço normal do plano que você escolheu. Você sempre pode cancelar antes.","Already a member?":"Já é membro?",Back:"Voltar","Back to Log in":"Voltar para login","Cancel subscription":"Cancelar inscrição","Cancellation reason":"Motivo do cancelamento","Choose a different plan":"Escolher plano diferente","Choose your newsletters":"Escolher suas newsletters",Close:"Fechar",Comments:"Comentários",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Excluir conta","Don't have an account?":"Não tem uma conta?",Email:"Email","Email preference updated.":"Preferências de email atualizadas.","Email preferences":"Preferências de email",Emails:"Emails","Emails disabled":"Emails desativados","Get help":"Obter ajuda","Get notified when someone replies to your comment":"Receber notificação quando alguém responder seu comentário","Give feedback on this post":"Enviar feedback sobre esta postagem","Less like this":"Menos como este",Manage:"Gerenciar",Monthly:"Mensal","More like this":"Mais como este",Name:"Nome","Not receiving emails?":"Não está recebendo emails?","Now check your email!":"Agora veja seu email!","Powered by Ghost":"Powered by Ghost",Price:"Preço","Re-enable emails":"Reativar emails",Retry:"Tentar de novo",Save:"Salvar","Sending login link...":"Enviando link de acesso...","Sending...":"Enviando...","Sign in":"Entrar","Sign up":"Cadastrar","Start {{amount}}-day free trial":"Começar teste grátis de {{amount}} dias","Submit feedback":"Enviar avaliação","Successfully unsubscribed":"Inscrição cancelada com sucesso","Thanks for the feedback!":"Obrigado pela avaliação!","That didn't go to plan":"Algo não saiu como planejado","This site is invite-only, contact the owner for access.":"Este site é apenas para convidados. Contate o proprietário para obter acesso.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Para completar o cadastro, clique no link de confirmação enviado para sua caixa de entrada. Se o link não chegar detro de 3 minutos, confira a pasta de spam!","Unsubscribe from all emails":"Cancelar inscrição em todos os emails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancelar a inscrição nos emails não cancelará sua assinatura paga em {{title}}","Update your preferences":"Atualizar preferências","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Não conseguimos cancelar sua inscrição já que o email não foi encontrado. Por favor, entre em contato com o proprietário do site.",Yearly:"Anualmente","You have been successfully resubscribed":"Você foi reinscrito com sucesso","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Você não está recebendo emails porque, ou classificou uma mensagem recente como spam, ou as mensagens não puderam ser entregues no endereço de email que você forneceu.","Your account":"Sua conta","Your input helps shape what gets published.":"Sua resposta ajuda a moldar o que será publicado."},Bk={"{{discount}}% discount":"{{discount}}% rabatt","{{trialDays}} days free":"{{trialDays}} dagar gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"En inloggningslänk har skickats till din inkorg. Om den inte anländer inom 3 minuter, kontrollera din skräppostmapp.",Account:"Konto","Account settings":"Kontoinställningar","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Efter att en gratis provperiod avslutas debiteras du det ordinarie priset för den nivå du har valt. Du kan alltid avbryta innan dess.","Already a member?":"Redan medlem?",Back:"Tillbaka","Back to Log in":"Tillbaka till inloggning","Cancel subscription":"Avbryt prenumeration","Cancellation reason":"Anledning till avslut","Choose a different plan":"Välj en annan prenumeration","Choose your newsletters":"Välj dina nyhetsbrev",Close:"Stäng",Comments:"Kommentarer",Confirm:"Bekräfta",Continue:"Fortsätt","Delete account":"Radera konto","Don't have an account?":"Har du inget konto?",Email:"E-post","Email preference updated.":"Inställningar för e-post uppdaterade.","Email preferences":"E-postinställningar",Emails:"E-postmeddelanden","Emails disabled":"E-post inaktiverad","Get help":"Få hjälp","Get notified when someone replies to your comment":"Få en avisering när någon svarar på din kommentar","Give feedback on this post":"Ge feedback på det här inlägget","Less like this":"Mindre sånt här",Manage:"Hantera",Monthly:"Månadsvis","More like this":"Mer sånt här",Name:"Namn","Not receiving emails?":"Får du inga e-postmeddelanden?","Now check your email!":"Kolla nu din e-post!","Powered by Ghost":"Drivs av Ghost",Price:"Pris","Re-enable emails":"Återaktivera e-post",Retry:"Försök igen",Save:"Spara","Sending login link...":"Skickar inloggningslänk...","Sending...":"Skickar...","Sign in":"Logga in","Sign up":"Registrera dig","Start {{amount}}-day free trial":"Starta {{amount}}-dagars gratis testperiod","Submit feedback":"Skicka feedback","Successfully unsubscribed":"Prenumerationen avslutades framgångsrikt","Thanks for the feedback!":"Tack för din feedback!","That didn't go to plan":"Det där fungerade inte som tänkt","This site is invite-only, contact the owner for access.":"Den här sidan är endast för inbjudna, kontakta ägaren för åtkomst.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"För att slutföra registreringen, klicka på bekräftelselänken i din inkorg. Om den inte kommer fram inom 3 minuter, kolla din skräppostmapp!","Unsubscribe from all emails":"Avregistrera från alla e-postutskick","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Avregistrering från e-postmeddelanden kommer inte att avbryta din betalda prenumeration på {{title}}","Update your preferences":"Uppdatera dina inställningar","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Vi kunde inte avsluta din prenumeration eftersom e-postadressen inte hittades. Vänligen kontakta webbplatsens ägare.",Yearly:"Årligen","You have been successfully resubscribed":"Du har nu prenumererat igen","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du får inte e-postmeddelanden eftersom du antingen markerade ett nyligt meddelande som skräppost, eller för att meddelanden inte kunde levereras till din angivna e-postadress.","Your account":"Ditt konto","Your input helps shape what gets published.":"Din åsikt hjälper till att forma vad som publiceras."},Yk={"{{discount}}% discount":"Giảm {{discount}}%","{{trialDays}} days free":"{{trialDays}} ngày miễn phí còn lại","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Liên kết đăng nhập đã được gửi đến hộp thư của bạn. Nếu trong vòng 3 phút bạn vẫn chưa thấy, hãy kiểm tra thư hộp thư rác của bạn.",Account:"Tài khoản","Account settings":"Cài đặt","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Sau khi kết thúc thời gian dùng thử miễn phí, bạn sẽ được tính giá thường cho gói dịch vụ mà bạn đã chọn. Bạn có thể hủy trước khi thời gian dùng thử kết thúc.","Already a member?":"Bạn đã là thành viên?",Back:"Quay về","Back to Log in":"Quay về đăng nhập","Cancel subscription":"Hủy thuê bao","Cancellation reason":"Lý do hủy thuê bao","Choose a different plan":"Chọn gói dịch vụ khác","Choose your newsletters":"Chọn bản tin bạn muốn nhận",Close:"Đóng",Comments:"Bình luận",Confirm:"Xác nhận",Continue:"Tiếp tục","Delete account":"Xóa tài khoản","Don't have an account?":"Bạn chưa có tài khoản?",Email:"Email","Email preference updated.":"Cập nhật email","Email preferences":"Cài đặt email",Emails:"Emails","Emails disabled":"Tắt chức năng email","Get help":"Trợ giúp","Get notified when someone replies to your comment":"Nhận thông báo khi có ai đó trả lời bình luận","Give feedback on this post":"Phản hồi bài viết này","Less like this":"Không thích lắm",Manage:"Quản lý",Monthly:"Mỗi tháng","More like this":"Thích bài viết dạng này",Name:"Tên","Not receiving emails?":"Bạn không nhận được email?","Now check your email!":"Kiểm tra email ngay bây giờ!","Powered by Ghost":"Cung cấp bởi Ghost",Price:"Giá","Re-enable emails":"Kích hoạt lại email nhận",Retry:"Thử lại",Save:"Lưu","Sending login link...":"Đang gửi liên kết đăng nhập","Sending...":"Đang gửi","Sign in":"Đăng nhập","Sign up":"Đăng ký","Start {{amount}}-day free trial":"Bắt đầu dùng thử {{amount}} ngày","Submit feedback":"Gửi phản hồi","Successfully unsubscribed":"Đã hủy đăng ký thành công","Thanks for the feedback!":"Cám ơn phản hồi của bạn!","That didn't go to plan":"Không thực hiện được","This site is invite-only, contact the owner for access.":"Trang web này chỉ dành cho những người được mời, hãy liên hệ với chủ sở hữu để có quyền truy cập.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Để hoàn tất đăng ký, hãy nhấp vào liên kết xác nhận trong hộp thư đến của bạn. Nếu nó không đến trong vòng 3 phút, hãy kiểm tra thư mục thư rác của bạn!","Unsubscribe from all emails":"Hủy theo dõi tất cả email","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Việc hủy đăng ký nhận email sẽ không hủy gói đăng ký trả phí của bạn đối với {{title}}","Update your preferences":"Cập nhật cài đặt","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Chúng tôi không thể hủy đăng ký bạn vì không tìm thấy địa chỉ email. Vui lòng liên hệ với chủ sở hữu trang web.",Yearly:"Mỗi năm","You have been successfully resubscribed":"Bạn đã đăng ký lại thành công","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Bạn không nhận được email vì bạn đã đánh dấu thư gần đây là thư rác, hoặc vì không thể gửi thư đến địa chỉ email bạn đã cung cấp.","Your account":"Tài khoản của bạn","Your input helps shape what gets published.":"Thông tin của bạn giúp định hình nội dung được xuất bản."};var Km;function qm(){return Km||(Km={"/i18n/locales/af/portal.json":function(){return Nk},"/i18n/locales/ca/portal.json":function(){return Tk},"/i18n/locales/cs/portal.json":function(){return $k},"/i18n/locales/de/portal.json":function(){return Rk},"/i18n/locales/en/portal.json":function(){return Ok},"/i18n/locales/eo/portal.json":function(){return Dk},"/i18n/locales/es/portal.json":function(){return Lk},"/i18n/locales/fr/portal.json":function(){return jk},"/i18n/locales/hu/portal.json":function(){return Ik},"/i18n/locales/it/portal.json":function(){return Ak},"/i18n/locales/mn/portal.json":function(){return Mk},"/i18n/locales/nl/portal.json":function(){return zk},"/i18n/locales/pl/portal.json":function(){return Fk},"/i18n/locales/pt-br/portal.json":function(){return Uk},"/i18n/locales/sv/portal.json":function(){return Bk},"/i18n/locales/vi/portal.json":function(){return Yk}})}function Hk(e){function t(n){var r=Qm(n,e);if(r!==null)return qm()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Qm(n,e);return r!==null?r:require.resolve(n)},t}function Qm(e,t){var n=Gk(e);e=Ha(e);var r;e[0]==="/"&&(t="");for(var i=qm(),o=["",".js",".json"];n?r=Ha(t+"/node_modules/"+e):r=Ha(t+"/"+e),!r.endsWith("/..");){for(var a=0;a<o.length;a++){var s=r+o[a];if(i[s])return s}if(!n)break;var l=Ha(t+"/..");if(l===t)break;t=l}return null}function Gk(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function Ha(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Ga={},Wk={get exports(){return Ga},set exports(e){Ga=e}},Cr={},Vk={get exports(){return Cr},set exports(e){Cr=e}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vk);var lu={},Kk={get exports(){return lu},set exports(e){lu=e}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kk);var cu={},qk={get exports(){return cu},set exports(e){cu=e}},Wa={},Qk={get exports(){return Wa},set exports(e){Wa=e}},uu={},Jk={get exports(){return uu},set exports(e){uu=e}};(function(e){var t=Cr.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Jk),function(e){var t=Cr.default,n=uu;function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Qk),function(e){var t=Wa;function n(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,a){return o&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(qk);var Va={},Xk={get exports(){return Va},set exports(e){Va=e}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Xk);var du={},Zk={get exports(){return du},set exports(e){du=e}},pu={},e_={get exports(){return pu},set exports(e){pu=e}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e_),function(e){var t=pu;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Zk);var fu={},t_={get exports(){return fu},set exports(e){fu=e}};(function(e){var t=Cr.default,n=Va;function r(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(t_);var hu={},n_={get exports(){return hu},set exports(e){hu=e}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n_);var mu={},r_={get exports(){return mu},set exports(e){mu=e}};(function(e){var t=Wa;function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(r_);var gu={},i_={get exports(){return gu},set exports(e){gu=e}},yu={},o_={get exports(){return yu},set exports(e){yu=e}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(o_);var vu={},a_={get exports(){return vu},set exports(e){vu=e}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a_);var bu={},s_={get exports(){return bu},set exports(e){bu=e}},wu={},l_={get exports(){return wu},set exports(e){wu=e}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(l_),function(e){var t=wu;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s_);var xu={},c_={get exports(){return xu},set exports(e){xu=e}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3117
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c_),function(e){var t=yu,n=vu,r=bu,i=xu;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(i_);var u_=Cr,d_=lu,p_=cu,f_=Va,h_=du,m_=fu,g_=hu,y_=mu,v_=gu;function St(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ui=St(u_),st=St(d_),lt=St(p_),Nn=St(f_),Ka=St(h_),Bi=St(m_),nn=St(g_),rn=St(y_),b_=St(v_);function Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var w_={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},x_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.init(t,n)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||w_,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,Xm(Xm({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),ct=new x_,on=function(){function e(){st.default(this,e),this.observers={}}return lt.default(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Yi(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function Zm(e){return e==null?"":""+e}function k_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function ku(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function eg(e,t,n){var r=ku(e,t,Object),i=r.obj,o=r.k;i[o]=n}function __(e,t,n,r){var i=ku(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function qa(e,t){var n=ku(e,t),r=n.obj,i=n.k;if(r)return r[i]}function S_(e,t,n){var r=qa(e,n);return r!==void 0?r:qa(t,n)}function tg(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):tg(e[r],t[r],n):e[r]=t[r]);return e}function Pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var E_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function C_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return E_[t]}):e}var Qa=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P_=[" ",",","?","!",";"];function N_(e,t,n){t=t||"",n=n||"";var r=P_.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ja(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?Ja(l,c,n):void 0}i=i[r[o]]}return i}}function ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ng(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_(e){var t=$_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function $_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var R_=function(e){Ka.default(n,e);var t=T_(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return st.default(this,n),i=t.call(this),Qa&&on.call(Nn.default(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return lt.default(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,p=[i,o];a&&typeof a!="string"&&(p=p.concat(a)),a&&typeof a=="string"&&(p=p.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(p=i.split("."));var d=qa(this.data,p);return d||!c||typeof a!="string"?d:Ja(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var p=[i,o];a&&(p=p.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(p=i.split("."),s=o,o=p[1]),this.addNamespaces(o),eg(this.data,p,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},p=[i,o];i.indexOf(".")>-1&&(p=i.split("."),s=a,a=o,o=p[1]),this.addNamespaces(o);var d=qa(this.data,p)||{};s?tg(d,a,l):d=Xa(Xa({},d),a),eg(this.data,p,d),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Xa(Xa({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(on),rg={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ig(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O_(e){var t=D_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function D_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var og={},ag=function(e){Ka.default(n,e);var t=O_(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return st.default(this,n),i=t.call(this),Qa&&on.call(Nn.default(i)),k_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Nn.default(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=ct.create("translator"),i}return lt.default(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!N_(i,a,s);if(c&&!p){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(Ui.default(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=this.extractFromKey(i[i.length-1],o),d=p.key,f=p.namespaces,y=f[f.length-1],v=o.lng||this.language,_=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(_){var g=o.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(y).concat(g).concat(d),usedKey:d,exactUsedKey:d,usedLng:v,usedNS:y}:"".concat(y).concat(g).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:v,usedNS:y}:d}var h=this.resolve(i,o),m=h&&h.res,w=h&&h.usedKey||d,k=h&&h.exactUsedKey||d,C=Object.prototype.toString.apply(m),S=["[object Number]","[object Function]","[object RegExp]"],$=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(O&&m&&N&&S.indexOf(C)<0&&!(typeof $=="string"&&C==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,m,Ee(Ee({},o),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(h.res=F,h):F}if(c){var He=C==="[object Array]",te=He?[]:{},re=He?k:w;for(var Ze in m)if(Object.prototype.hasOwnProperty.call(m,Ze)){var dt="".concat(re).concat(c).concat(Ze);te[Ze]=this.translate(dt,Ee(Ee({},o),{joinArrays:!1,ns:f})),te[Ze]===dt&&(te[Ze]=m[Ze])}m=te}}else if(O&&typeof $=="string"&&C==="[object Array]")m=m.join($),m&&(m=this.extendTranslation(m,i,o,a));else{var pt=!1,Ct=!1,Tr=o.count!==void 0&&typeof o.count!="string",Tn=n.hasDefaultValue(o),Eu=Tr?this.pluralResolver.getSuffix(v,o.count,o):"",P=o["defaultValue".concat(Eu)]||o.defaultValue;!this.isValidLookup(m)&&Tn&&(pt=!0,m=P),this.isValidLookup(m)||(Ct=!0,m=d);var D=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,I=D&&Ct?void 0:m,U=Tn&&P!==m&&this.options.updateMissing;if(Ct||pt||U){if(this.logger.log(U?"updateKey":"missingKey",v,y,d,U?P:m),c){var ie=this.resolve(d,Ee(Ee({},o),{},{keySeparator:!1}));ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Le=[],Ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ge&&Ge[0])for(var Pt=0;Pt<Ge.length;Pt++)Le.push(Ge[Pt]);else this.options.saveMissingTo==="all"?Le=this.languageUtils.toResolveHierarchy(o.lng||this.language):Le.push(o.lng||this.language);var Nt=function($r,Pu,kg){var _g=Tn&&kg!==m?kg:I;s.options.missingKeyHandler?s.options.missingKeyHandler($r,y,Pu,_g,U,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing($r,y,Pu,_g,U,o),s.emit("missingKey",$r,y,Pu,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Tr?Le.forEach(function(Cu){s.pluralResolver.getSuffixes(Cu,o).forEach(function($r){Nt([Cu],d+$r,o["defaultValue".concat($r)]||P)})}):Nt(Le,d,P))}m=this.extendTranslation(m,i,o,h,a),Ct&&m===d&&this.options.appendNamespaceToMissingKey&&(m="".concat(y,":").concat(d)),(Ct||pt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(y,":").concat(d):d,pt?m:void 0):m=this.options.parseMissingKeyHandler(m))}return l?(h.res=m,h):m}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ee(Ee({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Ee(Ee({},a),{interpolation:Ee(Ee({},this.options.interpolation),a.interpolation)}));var p=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(p){var f=i.match(this.interpolator.nestingRegexp);d=f&&f.length}var y=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(y=Ee(Ee({},this.options.interpolation.defaultVariables),y)),i=this.interpolator.interpolate(i,y,a.lng||this.language,a),p){var v=i.match(this.interpolator.nestingRegexp),_=v&&v.length;d<_&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(a.lng=s.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var m=arguments.length,w=new Array(m),k=0;k<m;k++)w[k]=arguments[k];return l&&l[0]===w[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(o[0])),null):c.translate.apply(c,w.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var g=a.postProcess||this.options.postProcess,h=typeof g=="string"?[g]:g;return i!=null&&h&&h.length&&a.applyPostProcessor!==!1&&(i=rg.handle(h,i,o,this.options&&this.options.postProcessPassResolved?Ee({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,p,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!o.isValidLookup(s)){var y=o.extractFromKey(f,a),v=y.key;l=v;var _=y.namespaces;o.options.fallbackNS&&(_=_.concat(o.options.fallbackNS));var g=a.count!==void 0&&typeof a.count!="string",h=g&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),m=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",w=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);_.forEach(function(k){o.isValidLookup(s)||(d=k,!og["".concat(w[0],"-").concat(k)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(og["".concat(w[0],"-").concat(k)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(C){if(!o.isValidLookup(s)){p=C;var S=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(S,v,C,k,a);else{var $;g&&($=o.pluralResolver.getSuffix(C,a.count,a));var O="".concat(o.options.pluralSeparator,"zero");if(g&&(S.push(v+$),h&&S.push(v+O)),m){var N="".concat(v).concat(o.options.contextSeparator).concat(a.context);S.push(N),g&&(S.push(N+$),h&&S.push(N+O))}}for(var F;F=S.pop();)o.isValidLookup(s)||(c=F,s=o.getResource(C,k,F,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:p,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(on);function _u(e){return e.charAt(0).toUpperCase()+e.slice(1)}var sg=function(){function e(t){st.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create("languageUtils")}return lt.default(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_u(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_u(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=_u(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),L_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],j_={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},I_=["v1","v2","v3"],lg={zero:0,one:1,two:2,few:3,many:4,other:5};function A_(){var e={};return L_.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:j_[t.fc]}})}),e}var M_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.languageUtils=t,this.options=n,this.logger=ct.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=A_()}return lt.default(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return lg[a]-lg[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!I_.includes(this.options.compatibilityJSON)}}]),e}();function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ug(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=S_(e,t,n);return!o&&i&&typeof n=="string"&&(o=Ja(e,n,r),o===void 0&&(o=Ja(t,n,r))),o}var z_=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return lt.default(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:C_,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Pr(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Pr(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Pr(r.nestingPrefix):r.nestingPrefixEscaped||Pr("$t("),this.nestingSuffix=r.nestingSuffix?Pr(r.nestingSuffix):r.nestingSuffixEscaped||Pr(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(g){return g.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(a.formatSeparator)<0){var m=ug(r,p,h,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(m,void 0,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:h})):m}var w=h.split(a.formatSeparator),k=w.shift().trim(),C=w.join(a.formatSeparator).trim();return a.format(ug(r,p,k,a.options.keySeparator,a.options.ignoreJSONStructure),C,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:k}))};this.resetRegExp();var y=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,_=[{regex:this.regexpUnescape,safeValue:function(h){return d(h)}},{regex:this.regexp,safeValue:function(h){return a.escapeValue?d(a.escape(h)):d(h)}}];return _.forEach(function(g){for(c=0;s=g.regex.exec(n);){var h=s[1].trim();if(l=f(h),l===void 0)if(typeof y=="function"){var m=y(n,s,o);l=typeof m=="string"?m:""}else if(o&&Object.prototype.hasOwnProperty.call(o,h))l="";else if(v){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=Zm(l));var w=g.safeValue(l);if(n=n.replace(s[0],w),v?(g.regex.lastIndex+=l.length,g.regex.lastIndex-=s[0].length):g.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function c(y,v){var _=this.nestingOptionsSeparator;if(y.indexOf(_)<0)return y;var g=y.split(new RegExp("".concat(_,"[ ]*{"))),h="{".concat(g[1]);y=g[0],h=this.interpolate(h,l);var m=h.match(/'/g),w=h.match(/"/g);(m&&m.length%2===0&&!w||w.length%2!==0)&&(h=h.replace(/'/g,'"'));try{l=JSON.parse(h),v&&(l=Xe(Xe({},v),l))}catch(k){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),k),"".concat(y).concat(_).concat(h)}return delete l.defaultValue,y}for(;a=this.nestingRegexp.exec(n);){var p=[];l=Xe({},o),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var f=a[1].split(this.formatSeparator).map(function(y){return y.trim()});a[1]=f.shift(),p=f,d=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Zm(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),d&&(s=p.reduce(function(y,v){return i.format(y,v,o.lng,Xe(Xe({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F_(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=b_.default(s),c=l[0],p=l.slice(1),d=p.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function Nr(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var U_=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("formatter"),this.options=t,this.formats={number:Nr(function(n,r){var i=new Intl.NumberFormat(n,Et({},r));return function(o){return i.format(o)}}),currency:Nr(function(n,r){var i=new Intl.NumberFormat(n,Et(Et({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Nr(function(n,r){var i=new Intl.DateTimeFormat(n,Et({},r));return function(o){return i.format(o)}}),relativetime:Nr(function(n,r){var i=new Intl.RelativeTimeFormat(n,Et({},r));return function(o){return i.format(o,r.range||"day")}}),list:Nr(function(n,r){var i=new Intl.ListFormat(n,Et({},r));return function(o){return i.format(o)}})},this.init(t)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Nr(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,p){var d=F_(p),f=d.formatName,y=d.formatOptions;if(o.formats[f]){var v=c;try{var _=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=_.locale||_.lng||a.locale||a.lng||i;v=o.formats[f](c,g,Et(Et(Et({},y),a),_))}catch(h){o.logger.warn(h)}return v}else o.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B_(e){var t=Y_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function Y_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var G_=function(e){Ka.default(n,e);var t=B_(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return st.default(this,n),a=t.call(this),Qa&&on.call(Nn.default(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=ct.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return lt.default(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},p={},d={},f={};return i.forEach(function(y){var v=!0;o.forEach(function(_){var g="".concat(y,"|").concat(_);!a.reload&&l.store.hasResourceBundle(y,_)?l.state[g]=2:l.state[g]<0||(l.state[g]===1?p[g]===void 0&&(p[g]=!0):(l.state[g]=1,v=!1,p[g]===void 0&&(p[g]=!0),c[g]===void 0&&(c[g]=!0),f[_]===void 0&&(f[_]=!0)))}),v||(d[y]=!0)}),(Object.keys(c).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(p),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var p={};this.queue.forEach(function(d){__(d.loaded,[l],c),H_(d,i),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){p[f]||(p[f]={});var y=d.loaded[f];y.length&&y.forEach(function(v){p[f][v]===void 0&&(p[f][v]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,p=arguments.length>5?arguments[5]:void 0;if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:p});return}this.readingCalls++;var d=function(_,g){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(_&&g&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,p)},c);return}p(_,g)},f=this.backend[a].bind(this.backend);if(f.length===2){try{var y=f(i,o);y&&typeof y.then=="function"?y.then(function(v){return d(null,v)}).catch(d):d(null,y)}catch(v){d(v)}return}return f(i,o,d)}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(p){a.loadOne(p)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(p,d){p&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),p),!p&&d&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(i,p,d)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var d=fg(fg({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var y;f.length===5?y=f(i,o,a,s,d):y=f(i,o,a,s),y&&typeof y.then=="function"?y.then(function(v){return p(null,v)}).catch(p):p(null,y)}catch(v){p(v)}else f(i,o,a,s,p,d)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),n}(on);function hg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ui.default(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ui.default(t[2])==="object"||Ui.default(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W_(e){var t=V_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function V_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Za(){}function K_(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var es=function(e){Ka.default(n,e);var t=W_(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(st.default(this,n),r=t.call(this),Qa&&on.call(Nn.default(r)),r.options=mg(i),r.services={},r.logger=ct,r.modules={external:[]},K_(Nn.default(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Bi.default(r,Nn.default(r));setTimeout(function(){r.init(i,o)},0)}return r}return lt.default(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=hg();this.options=ut(ut(ut({},s),this.options),mg(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ut(ut({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?ct.init(l(this.modules.logger),this.options):ct.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=U_);var p=new sg(this.options);this.store=new R_(this.options.resources,this.options);var d=this.services;d.logger=ct,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new M_(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new z_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new G_(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var m=arguments.length,w=new Array(m>1?m-1:0),k=1;k<m;k++)w[k-1]=arguments[k];i.emit.apply(i,[h].concat(w))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new ag(this.services,this.options),this.translator.on("*",function(h){for(var m=arguments.length,w=new Array(m>1?m-1:0),k=1;k<m;k++)w[k-1]=arguments[k];i.emit.apply(i,[h].concat(w))}),this.modules.external.forEach(function(h){h.init&&h.init(i)})}if(this.format=this.options.interpolation.format,a||(a=Za),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var y=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];y.forEach(function(h){i[h]=function(){var m;return(m=i.store)[h].apply(m,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(h){i[h]=function(){var m;return(m=i.store)[h].apply(m,arguments),i}});var _=Yi(),g=function(){var m=function(k,C){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),_.resolve(C),a(k,C)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return m(null,i.t.bind(i));i.changeLanguage(i.options.lng,m)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),_}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],p=function(y){if(y){var v=o.services.languageUtils.toResolveHierarchy(y);v.forEach(function(_){c.indexOf(_)<0&&c.push(_)})}};if(l)p(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return p(f)})}this.options.preload&&this.options.preload.forEach(function(f){return p(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Yi();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Za),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&rg.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Yi();this.emit("languageChanging",i);var l=function(f){a.language=f,a.languages=a.services.languageUtils.toResolveHierarchy(f),a.resolvedLanguage=void 0,a.setResolvedLanguage(f)},c=function(f,y){y?(l(y),a.translator.changeLanguage(y),a.isLanguageChangingTo=void 0,a.emit("languageChanged",y),a.logger.log("languageChanged",y)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(f,function(){return a.t.apply(a,arguments)})},p=function(f){!i&&!f&&a.services.languageDetector&&(f=[]);var y=typeof f=="string"?f:a.services.languageUtils.getBestMatchFromCodes(f);y&&(a.language||l(y),a.translator.language||a.translator.changeLanguage(y),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(y)),a.loadResources(y,function(v){c(v,y)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(p,d){var f;if(Ui.default(d)!=="object"){for(var y=arguments.length,v=new Array(y>2?y-2:0),_=2;_<y;_++)v[_-2]=arguments[_];f=s.options.overloadTranslationOptionHandler([p,d].concat(v))}else f=ut({},d);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||a||c.keyPrefix;var g=s.options.keySeparator||".",h;return f.keyPrefix&&Array.isArray(p)?h=p.map(function(m){return"".concat(f.keyPrefix).concat(g).concat(m)}):h=f.keyPrefix?"".concat(f.keyPrefix).concat(g).concat(p):p,s.t(h,f)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var p=function(y,v){var _=o.services.backendConnector.state["".concat(y,"|").concat(v)];return _===-1||_===2};if(a.precheck){var d=a.precheck(this,p);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(s,i)&&(!l||p(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Yi();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Yi();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new sg(hg());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,s=ut(ut(ut({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(p){l[p]=i[p]}),l.services=ut({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new ag(l.services,l.options),l.translator.on("*",function(p){for(var d=arguments.length,f=new Array(d>1?d-1:0),y=1;y<d;y++)f[y-1]=arguments[y];l.emit.apply(l,[p].concat(f))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(on);rn.default(es,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new es(e,t)});var yg=es.createInstance();yg.createInstance=es.createInstance;var q_=yg;const Q_=q_,vg=["af","ca","cs","de","en","eo","es","fr","hu","it","mn","nl","pl","pt-br","sv","vi"];Wk.exports=(e="en",t="portal")=>{const n=Q_.createInstance();return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:t,defaultNS:t,resources:vg.reduce((r,i)=>(r[i]={[t]:Hk("/i18n/lib")(`../locales/${i}/${t}.json`)},r),{})}),n},Ga.SUPPORTED_LOCALES=vg,function(e){e.exports=Ga}(Pk);const J_=je(su),X_={showPopup:!0,site:Er,member:Ya.free,page:"accountEmail",...Xx(),pageData:Wm};function Z_({site:e,children:t}){const{portal_sentry:n}=e||{};return n&&n.dsn?u(Mi,{children:t}):u(Y,{children:t})}class e2 extends q.Component{constructor(t){super(t),this.setupCustomTriggerButton(t),this.state={site:null,member:null,page:"loading",showPopup:!1,action:"init:running",initStatus:"running",lastPage:null,customSiteUrl:t.customSiteUrl}}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,i,o;if(n.showPopup!==this.state.showPopup){this.handleCustomTriggerClassUpdate();try{this.state.showPopup?(this.bodyScroll=(o=(i=(r=window.document)==null?void 0:r.body)==null?void 0:i.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}}if(this.state.initStatus==="success"&&n.initStatus!==this.state.initStatus){const{siteUrl:a}=this.props,s=this.getContextFromState();this.sendPortalReadyEvent(),Ck({siteUrl:a,site:s.site,member:s.member})}}componentWillUnmount(){clearTimeout(this.timeoutId),this.customTriggerButtons&&this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler)}),window.removeEventListener("hashchange",this.hashHandler,!1)}sendPortalReadyEvent(){window.self!==window.parent&&window.parent.postMessage({type:"portal-ready",payload:{}},"*")}setupCustomTriggerButton(){this.clickHandler=r=>{r.preventDefault();const i=r.currentTarget,o=i&&i.dataset.portal,{page:a,pageQuery:s}=this.getPageFromLinkPath(o)||{};this.state.initStatus==="success"&&(s&&s!=="free"?this.handleSignupQuery({site:this.state.site,pageQuery:s}):this.dispatchAction("openPopup",{page:a,pageQuery:s}))};const t="[data-portal]",n="gh-portal-close";this.customTriggerButtons=document.querySelectorAll(t)||[],this.customTriggerButtons.forEach(r=>{r.classList.add(n),r.removeEventListener("click",this.clickHandler),r.addEventListener("click",this.clickHandler)})}handleCustomTriggerClassUpdate(){var r;const t="gh-portal-open",n="gh-portal-close";(r=this.customTriggerButtons)==null||r.forEach(i=>{const o=this.state.showPopup?t:n,a=this.state.showPopup?n:t;i.classList.add(o),i.classList.remove(a)})}async initSetup(){try{const{site:t,member:n,page:r,showPopup:i,popupNotification:o,lastPage:a,pageQuery:s,pageData:l}=await this.fetchData(),c=this.props.siteI18nEnabled?t.locale:"en",p=J_(c,"portal"),d={site:t,member:n,page:r,lastPage:a,pageQuery:s,showPopup:i,pageData:l,popupNotification:o,t:p.t,action:"init:success",initStatus:"success"};this.handleSignupQuery({site:t,pageQuery:s,member:n}),this.setState(d),this.hashHandler=()=>{this.updateStateForPreviewLinks()},window.addEventListener("hashchange",this.hashHandler,!1)}catch(t){console.error("[Portal] Failed to initialize:",t),this.setState({action:"init:failed",initStatus:"failed"})}}async fetchData(){const{site:t,member:n}=await this.fetchApiData(),{site:r,...i}=this.fetchDevData(),{site:o,...a}=this.fetchLinkData(),{site:s,...l}=this.fetchPreviewData(),{site:c,...p}=this.fetchNotificationData();return{member:n,page:"",site:{...t,...o,...s,...c,...r,plans:{...(r||{}).plans,...(t||{}).plans,...(s||{}).plans}},...i,...a,...p,...l}}fetchDevData(){return K(["dev"])&&!this.state.customSiteUrl?X_:K(["test"])?{showPopup:this.props.showPopup!==void 0?this.props.showPopup:!0}:{}}fetchOfferQueryStrData(t=""){const n=new URLSearchParams(t),r={};for(let i of n.entries()){const o=i[0],a=decodeURIComponent(i[1]);o==="name"?r.name=a||"":o==="code"?r.code=a||"":o==="display_title"?r.display_title=a||"":o==="display_description"?r.display_description=a||"":o==="type"?r.type=a||"":o==="cadence"?r.cadence=a||"":o==="duration"?r.duration=a||"":o==="duration_in_months"&&!isNaN(Number(a))?r.duration_in_months=Number(a):o==="amount"&&!isNaN(Number(a))?r.amount=Number(a):o==="currency"?r.currency=a||"":o==="status"?r.status=a||"":o==="tier_id"&&(r.tier={id:a||Wm.tier.id})}return{page:"offer",pageData:r}}fetchQueryStrData(t=""){const n=new URLSearchParams(t),r={site:{plans:{}}},i=[];let o,a=null,s,l,c;for(let p of n.entries()){const d=p[0],f=decodeURIComponent(p[1]);if(d==="button")r.site.portal_button=JSON.parse(f);else if(d==="name")r.site.portal_name=JSON.parse(f);else if(d==="isFree"&&JSON.parse(f))i.push("free");else if(d==="isMonthly"&&JSON.parse(f))i.push("monthly");else if(d==="isYearly"&&JSON.parse(f))i.push("yearly");else if(d==="portalPrices")o=f?f.split(","):[];else if(d==="portalProducts")a=f?f.split(","):[];else if(d==="page"&&f)r.page=f;else if(d==="accentColor"&&(f===""||f))r.site.accent_color=f;else if(d==="buttonIcon"&&f)r.site.portal_button_icon=f;else if(d==="signupButtonText")r.site.portal_button_signup_text=f||"";else if(d==="signupTermsHtml")r.site.portal_signup_terms_html=f||"";else if(d==="signupCheckboxRequired")r.site.portal_signup_checkbox_required=JSON.parse(f);else if(d==="buttonStyle"&&f)r.site.portal_button_style=f;else if(d==="monthlyPrice"&&!isNaN(Number(f)))r.site.plans.monthly=Number(f),s=Number(f);else if(d==="yearlyPrice"&&!isNaN(Number(f)))r.site.plans.yearly=Number(f),l=Number(f);else if(d==="currency"&&f){const y=f.toUpperCase();r.site.plans.currency=y,r.site.plans.currency_symbol=fe(y),c=y}else d==="disableBackground"?r.site.disableBackground=JSON.parse(f):d==="allowSelfSignup"?r.site.allow_self_signup=JSON.parse(f):d==="membersSignupAccess"&&f&&(r.site.members_signup_access=f)}return r.site.portal_plans=i,r.site.portal_products=a,o?r.site.portal_plans=o:s&&l&&c&&(r.site.prices=[{id:"monthly",stripe_price_id:"dummy_stripe_monthly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Monthly",currency:c,amount:s,type:"recurring",interval:"month"},{id:"yearly",stripe_price_id:"dummy_stripe_yearly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Yearly",currency:c,amount:l,type:"recurring",interval:"year"}]),r}fetchNotificationData(){const{type:t,status:n,duration:r,autoHide:i,closeable:o}=fm({billingOnly:!0})||{};return["stripe:billing-update"].includes(t)?n==="success"?{showPopup:!0,popupNotification:X({type:t,status:n,duration:r,closeable:o,autoHide:i,state:this.state,message:n==="success"?"Billing info updated successfully":""})}:{showPopup:!0}:{}}fetchLinkData(){const t=new URLSearchParams(window.location.search);if(t.get("uuid")&&t.get("action")==="unsubscribe")return{showPopup:!0,page:"unsubscribe",pageData:{uuid:t.get("uuid"),newsletterUuid:t.get("newsletter"),comments:t.get("comments")}};const[n,r]=window.location.hash.substr(1).split("?"),i=new URLSearchParams(r??""),o=/^(?:(\w+?))?\/monthly$/,a=/^(?:(\w+?))?\/yearly$/,s=/^offers\/(\w+?)\/?$/,l=/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/,c=/^\/feedback\/(\w+?)\/(\w+?)\/?$/;if(n&&c.test(n)&&i.get("uuid")){const[,p,d]=n.match(c),f=parseInt(d);if(f===1||f===0)return{showPopup:!0,page:"feedback",pageData:{uuid:i.get("uuid"),postId:p,score:f}}}if(n&&l.test(n)){const[,p]=n.match(l),{page:d,pageQuery:f}=this.getPageFromLinkPath(p)||{},y=["accountPlan","accountProfile"].includes(d)?"accountHome":null;return{showPopup:!(["monthly","yearly"].includes(f)||o.test(f)||a.test(f)||s.test(f)),...d?{page:d}:{},...f?{pageQuery:f}:{},...y?{lastPage:y}:{}}}return{}}fetchPreviewData(){const[,t]=window.location.hash.substr(1).split("?");if(K(["preview"])){let n={};return K(["offerPreview"])?n=this.fetchOfferQueryStrData(t):n=this.fetchQueryStrData(t),{...n,showPopup:!0}}return{}}getColorOverride(){const t=document.querySelector("script[data-ghost]");return t&&t.dataset.accentColor?t.dataset.accentColor:!1}async fetchApiData(){const{siteUrl:t,customSiteUrl:n,apiUrl:r,apiKey:i}=this.props;try{this.GhostApi=this.props.api||za({siteUrl:t,apiUrl:r,apiKey:i});const{site:o,member:a}=await this.GhostApi.init(),s=this.getColorOverride();return s&&(o.accent_color=s),this.setupFirstPromoter({site:o,member:a}),this.setupSentry({site:o}),{site:o,member:a}}catch(o){if(K(["dev","test"],{customSiteUrl:n}))return{};throw o}}setupSentry({site:t}){if(K(["test"]))return null;const{portal_sentry:n,portal_version:r,version:i}=t,a=`portal@2.28.0|ghost@${i}`;n&&n.dsn&&vb({dsn:n.dsn,environment:n.env||"development",release:a,beforeSend:s=>Ab({event:s})?s:null,allowUrls:[/https?:\/\/((www)\.)?unpkg\.com\/@tryghost\/portal/]})}setupFirstPromoter({site:t,member:n}){if(K(["test"]))return null;const r=Qb({site:t});let i=Qc({site:t});if(i=i==null?void 0:i.replace(/^(\S*\.)?(\S*\.\S*)$/i,".$2"),r&&i){const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://cdn.firstpromoter.com/fprom.js",o.onload=o.onreadystatechange=function(){let s=this.readyState;if(!s||s==="complete"||s==="loaded")try{if(window.$FPROM.init(r,i),aw({member:n})){const l=n.email,c=n.uuid;if(window.$FPROM)window.$FPROM.trackSignup({email:l,uid:c});else{const p=window._fprom||[];window._fprom=p,p.push(["event","signup"]),p.push(["email",l]),p.push(["uid",c])}}}catch{}};const a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}async dispatchAction(t,n){clearTimeout(this.timeoutId),this.setState({action:`${t}:running`});try{const r=await _k({action:t,data:n,state:this.state,api:this.GhostApi});this.setState(r),r&&r.action&&!r.action.includes(":failed")&&(this.timeoutId=setTimeout(()=>{this.setState({action:""})},2e3))}catch(r){const i=X({type:`${t}:failed`,autoHide:!0,closeable:!0,status:"error",state:this.state,meta:{error:r}});this.setState({action:`${t}:failed`,popupNotification:i})}}updateStateForPreviewLinks(){const{site:t,...n}=this.fetchPreviewData(),{site:r,...i}=this.fetchLinkData(),o={site:{...this.state.site,...r||{},...t||{},plans:{...this.state.site&&this.state.site.plans,...(r||{}).plans,...(t||{}).plans}},...i,...n};this.handleSignupQuery({site:o.site,pageQuery:o.pageQuery}),this.setState(o)}async handleOfferQuery({site:t,offerId:n,member:r=this.state.member}){const{portal_button:i}=t;if(Gc(),!kt({member:r}))try{const o=await this.GhostApi.site.offer({offerId:n}),a=o==null?void 0:o.offers[0];if(tw({site:t,offer:a}))if(i)this.dispatchAction("openPopup",{page:"offer",pageData:o==null?void 0:o.offers[0]});else{const s=br({site:t,productId:a.tier.id}),l=a.cadence==="month"?s.monthlyPrice:s.yearlyPrice;if(this.dispatchAction("openPopup",{page:"loading"}),r){const{tierId:c,cadence:p}=Cn({site:t,priceId:l.id});this.dispatchAction("checkoutPlan",{plan:l.id,offerId:n,tierId:c,cadence:p})}else{const{tierId:c,cadence:p}=Cn({site:t,priceId:l.id});this.dispatchAction("signup",{plan:l.id,offerId:n,tierId:c,cadence:p})}}}catch{}}handleSignupQuery({site:t,pageQuery:n,member:r}){const i=/^offers\/(\w+?)\/?$/;let o=n;if(i.test(n||"")){const[,s]=n.match(i);this.handleOfferQuery({site:t,offerId:s,member:r});return}om({site:t,pageQuery:n})&&(o=om({site:t,pageQuery:n}));const a=Hb({site:t,priceId:o});if(n&&n!=="free"){Gc();const s=(a==null?void 0:a.id)||o;s!=="free"&&this.dispatchAction("openPopup",{page:"loading"});const{tierId:l,cadence:c}=Cn({site:t,priceId:s});this.dispatchAction("signup",{plan:s,tierId:l,cadence:c})}}getPageFromLinkPath(t){const n=/^signup\/?(?:\/(\w+?))?\/?$/,r=/^signup\/?(?:\/(\w+?))\/monthly\/?$/,i=/^signup\/?(?:\/(\w+?))\/yearly\/?$/;if(/^offers\/(\w+?)\/?$/.test(t))return{pageQuery:t};if(t==="signup")return{page:"signup"};if(r.test(t)){const[,a]=t.match(r);return{page:"signup",pageQuery:`${a}/monthly`}}else if(i.test(t)){const[,a]=t.match(i);return{page:"signup",pageQuery:`${a}/yearly`}}else if(n.test(t)){const[,a]=t.match(n);return{page:"signup",pageQuery:a}}else{if(t==="signup/free")return{page:"signup",pageQuery:"free"};if(t==="signup/monthly")return{page:"signup",pageQuery:"monthly"};if(t==="signup/yearly")return{page:"signup",pageQuery:"yearly"};if(t==="signin")return{page:"signin"};if(t==="account")return{page:"accountHome"};if(t==="account/plans")return{page:"accountPlan"};if(t==="account/profile")return{page:"accountProfile"};if(t==="account/newsletters")return{page:"accountEmail"}}return{}}getAccentColor(){const{accent_color:t}=this.state.site||{};return t}getContextPage({site:t,page:n,member:r}){if(!n){const i=at({site:t})?"signin":"signup";n=r?"accountHome":i}return n==="accountPlan"&&yr({member:r})&&!zi({member:r})&&(n="accountHome"),iu({page:n})}getContextMember({page:t,member:n,customSiteUrl:r}){return K(["dev","preview"],{customSiteUrl:r})?Wx({page:t})||Vx({page:t})?K(["dev"],{customSiteUrl:r})?n||Ya.free:K(["preview"])?Ya.preview:Ya.paid:null:n}getContextFromState(){const{site:t,member:n,action:r,page:i,lastPage:o,showPopup:a,pageQuery:s,pageData:l,popupNotification:c,customSiteUrl:p,t:d}=this.state,f=this.getContextPage({site:t,page:i,member:n}),y=this.getContextMember({page:f,member:n,customSiteUrl:p});return{site:t,action:r,brandColor:this.getAccentColor(),page:f,pageQuery:s,pageData:l,member:y,lastPage:o,showPopup:a,popupNotification:c,customSiteUrl:p,t:d,onAction:(v,_)=>this.dispatchAction(v,_)}}render(){return this.state.initStatus==="success"?u(Z_,{site:this.state.site,children:b(R.Provider,{value:this.getContextFromState(),children:[u(Um,{}),u(um,{}),u(mm,{})]})}):null}}const bg="ghost-portal-root";function t2(){const e=document.createElement("div");e.id=bg,document.body.appendChild(e)}function n2(){const e=document.querySelector("script[data-ghost]");if(e){const t=e.dataset.i18n==="true",n=e.dataset.ghost,r=e.dataset.key,i=e.dataset.api;return{siteUrl:n,apiKey:r,apiUrl:i,siteI18nEnabled:t}}return{}}function r2(){const e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}function i2({siteUrl:e}){t2(),r2()}function o2(){const{siteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r}=n2(),i=e||window.location.origin;i2({siteUrl:i}),L0.render(u(q.StrictMode,{children:u(e2,{siteUrl:i,customSiteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r})}),document.getElementById(bg))}o2()});
3026
3118
  //# sourceMappingURL=portal.min.js.map