@tryghost/portal 2.29.2 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/umd/portal.min.js +38 -30
- package/umd/portal.min.js.map +1 -1
package/umd/portal.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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(
|
|
2
|
+
(function(je){typeof define=="function"&&define.amd?define(je):je()})(function(){var Eu,wg,kg;"use strict";var u2=Object.defineProperty;var d2=(je,Te,an)=>Te in je?u2(je,Te,{enumerable:!0,configurable:!0,writable:!0,value:an}):je[Te]=an;var Z=(je,Te,an)=>(d2(je,typeof Te!="symbol"?Te+"":Te,an),an);function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Te={},an={get exports(){return Te},set exports(e){Te=e}},Rr={};/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
@@ -10,57 +10,57 @@ object-assign
|
|
|
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 ts=Tu,Tn=60103,Ru=60106;A.Fragment=60107,A.StrictMode=60108,A.Profiler=60114;var Ou=60109,Du=60110,
|
|
13
|
+
*/var ts=Tu,Tn=60103,Ru=60106;A.Fragment=60107,A.StrictMode=60108,A.Profiler=60114;var Ou=60109,Du=60110,Lu=60112;A.Suspense=60113;var ju=60115,Iu=60116;if(typeof Symbol=="function"&&Symbol.for){var We=Symbol.for;Tn=We("react.element"),Ru=We("react.portal"),A.Fragment=We("react.fragment"),A.StrictMode=We("react.strict_mode"),A.Profiler=We("react.profiler"),Ou=We("react.provider"),Du=We("react.context"),Lu=We("react.forward_ref"),A.Suspense=We("react.suspense"),ju=We("react.memo"),Iu=We("react.lazy")}var Au=typeof Symbol=="function"&&Symbol.iterator;function $g(e){return e===null||typeof e!="object"?null:(e=Au&&e[Au]||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 Mu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zu={};function Rn(e,t,n){this.props=e,this.context=t,this.refs=zu,this.updater=n||Mu}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 Fu(){}Fu.prototype=Rn.prototype;function ns(e,t,n){this.props=e,this.context=t,this.refs=zu,this.updater=n||Mu}var rs=ns.prototype=new Fu;rs.constructor=ns,ts(rs,Rn.prototype),rs.isPureReactComponent=!0;var is={current:null},Uu=Object.prototype.hasOwnProperty,Bu={key:!0,ref:!0,__self:!0,__source:!0};function Yu(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)Uu.call(t,r)&&!Bu.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:Tn,type:e,key:o,ref:a,props:i,_owner:is.current}}function Tg(e,t){return{$$typeof:Tn,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===Tn}function Rg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hu=/\/+/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 Tn:case Ru: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(Hu,"$&/")+"/"),Hi(i,t,n,"",function(c){return c})):i!=null&&(os(i)&&(i=Tg(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Hu,"$&/")+"/")+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=$g(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 Gu={current:null};function ft(){var e=Gu.current;if(e===null)throw Error(Or(321));return e}var Dg={ReactCurrentDispatcher:Gu,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)Uu.call(t,l)&&!Bu.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:Tn,type:e.type,key:i,ref:o,props:r,_owner:a}},A.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Du,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Ou,_context:e},e.Consumer=e},A.createElement=Yu,A.createFactory=function(e){var t=Yu.bind(null,e);return t.type=e,t},A.createRef=function(){return{current:null}},A.forwardRef=function(e){return{$$typeof:Lu,render:e}},A.isValidElement=os,A.lazy=function(e){return{$$typeof:Iu,_payload:{_status:-1,_result:e},_init:Og}},A.memo=function(e,t){return{$$typeof:ju,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(k);/** @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
|
|
20
|
+
*/var Lg=k,Wu=60103;if(Rr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Vu=Symbol.for;Wu=Vu("react.element"),Rr.Fragment=Vu("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 Ku(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:Wu,type:e,key:o,ref:a,props:i,_owner:jg.current}}Rr.jsx=Ku,Rr.jsxs=Ku,function(e){e.exports=Rr}(an);const U=Te.Fragment,u=Te.jsx,b=Te.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}},qu={};/** @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,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,x=w.port2;w.port1.onmessage=function(){if(_!==null){var P=e.unstable_now();m=P+h;try{_(!0,P)?x.postMessage(null):(v=!1,_=null)}catch(D){throw x.postMessage(null),D}}else v=!1},t=function(P){_=P,v||(v=!0,x.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 B=I-1>>>1,ie=P[B];if(ie!==void 0&&0<O(ie,D))P[B]=D,P[I]=ie,I=B;else break e}}function S(P){return P=P[0],P===void 0?null:P}function T(P){var D=P[0];if(D!==void 0){var I=P.pop();if(I!==D){P[0]=I;e:for(var B=0,ie=P.length;B<ie;){var
|
|
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,x=w.port2;w.port1.onmessage=function(){if(_!==null){var P=e.unstable_now();m=P+h;try{_(!0,P)?x.postMessage(null):(v=!1,_=null)}catch(D){throw x.postMessage(null),D}}else v=!1},t=function(P){_=P,v||(v=!0,x.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 B=I-1>>>1,ie=P[B];if(ie!==void 0&&0<O(ie,D))P[B]=D,P[I]=ie,I=B;else break e}}function S(P){return P=P[0],P===void 0?null:P}function T(P){var D=P[0];if(D!==void 0){var I=P.pop();if(I!==D){P[0]=I;e:for(var B=0,ie=P.length;B<ie;){var Le=2*(B+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[B]=Nt,P[Pt]=I,B=Pt):(P[B]=Ge,P[Le]=I,B=Le);else if(Nt!==void 0&&0>O(Nt,I))P[B]=Nt,P[Pt]=I,B=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)T(F);else if(D.startTime<=P)T(F),D.sortIndex=D.expirationTime,C(N,D);else break;D=S(F)}}function $r(P){if(pt=!1,Ct(P),!dt)if(S(N)!==null)dt=!0,t($n);else{var D=S(F);D!==null&&n($r,D.startTime-P)}}function $n(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 B=te.callback;if(typeof B=="function"){te.callback=null,re=te.priorityLevel;var ie=B(te.expirationTime<=D);D=e.unstable_now(),typeof ie=="function"?te.callback=ie:te===S(N)&&T(N),Ct(D)}else T(N);te=S(N)}if(te!==null)var Le=!0;else{var Ge=S(F);Ge!==null&&n($r,Ge.startTime-D),Le=!1}return Le}finally{te=null,re=I,Ze=!1}}var Cu=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($n))},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=Cu,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 B=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?B+I:B):I=B,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>B?(P.sortIndex=I,C(F,P),S(N)===null&&P===S(F)&&(pt?r():pt=!0,n($r,I-B))):(P.sortIndex=ie,C(N,P),dt||Ze||(dt=!0,t($n))),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}}}})(qu),function(e){e.exports=qu}(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=k,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,
|
|
34
|
+
*/var Wi=k,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]*$/,Ju=Object.prototype.hasOwnProperty,Xu={},Zu={};function Ug(e){return Ju.call(Zu,e)?!0:Ju.call(Xu,e)?!1:Fg.test(e)?Zu[e]=!0:(Xu[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 ke(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 ke(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 ke(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new ke(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 ke(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new ke(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ce[e]=new ke(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ce[e]=new ke(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ce[e]=new ke(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 ke(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 ke(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 ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)}),ce.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ce[e]=new ke(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,$t=60107,ds=60108,Ir=60114,ps=60109,fs=60110,Vi=60112,Ar=60113,Ki=60120,qi=60115,hs=60116,ms=60121,gs=60128,ed=60129,ys=60130,vs=60131;if(typeof Symbol=="function"&&Symbol.for){var se=Symbol.for;jr=se("react.element"),cn=se("react.portal"),$t=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"),ed=se("react.debug_trace_mode"),ys=se("react.offscreen"),vs=se("react.legacy_hidden")}var td=typeof Symbol=="function"&&Symbol.iterator;function Mr(e){return e===null||typeof e!="object"?null:(e=td&&e[td]||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
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{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 $t: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 Tt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function nd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e){var t=nd(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 rd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nd(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 ks(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tt(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 od(e,t){t=t.checked,t!=null&&us(e,"checked",t,!1)}function xs(e,t){od(e,t);var n=Tt(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,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ad(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 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=""+Tt(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 sd(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:Tt(n)}}function ld(e,t){var n=Tt(t.value),r=Tt(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 cd(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 ud(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"?ud(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,dd=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 pd(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 fd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=pd(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 $s(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 Ts(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rs=null,Ln=null,In=null;function hd(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 md(e){Ln?In?In.push(e):In=[e]:Ln=e}function gd(){if(Ln){var e=Ln,t=In;if(In=Ln=null,hd(e),t)for(e=0;e<t.length;e++)hd(t[e])}}function Os(e,t){return e(t)}function yd(e,t,n,r,i){return e(t,n,r,i)}function Ds(){}var vd=Os,un=!1,js=!1;function Ls(){(Ln!==null||In!==null)&&(Ds(),gd())}function qg(e,t,n){if(js)return e(t,n);js=!0;try{return vd(e,t,n)}finally{js=!1,Ls()}}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 bd(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 wd(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 wd(i),e;if(o===r)return wd(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 kd(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 _d,Ms,Sd,Ed,zs=!1,et=[],Rt=null,Ot=null,Dt=null,Gr=new Map,Wr=new Map,Vr=[],Cd="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 Pd(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=bd(n),t!==null){e.blockedOn=t,Ed(e.lanePriority,function(){ae.unstable_runWithPriority(e.priority,function(){Sd(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 Nd(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&&_d(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(Nd),Wr.forEach(Nd)}function qr(e,t){e.blockedOn===t&&(e.blockedOn=null,zs||(zs=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ry)))}function $d(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 Rd=io("animationend"),Od=io("animationiteration"),Dd=io("animationstart"),jd=io("transitionend"),Ld=new Map,Bs=new Map,iy=["abort","abort",Rd,"animationEnd",Od,"animationIteration",Dd,"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",jd,"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 Y=8;function Mn(e){if(1&e)return Y=15,1;if(2&e)return Y=14,2;if(4&e)return Y=13,4;var t=24&e;return t!==0?(Y=12,t):e&32?(Y=11,32):(t=192&e,t!==0?(Y=10,t):e&256?(Y=9,256):(t=3584&e,t!==0?(Y=8,t):e&4096?(Y=7,4096):(t=4186112&e,t!==0?(Y=6,t):(t=62914560&e,t!==0?(Y=5,t):e&67108864?(Y=4,67108864):e&134217728?(Y=3,134217728):(t=805306368&e,t!==0?(Y=2,t):1073741824&e?(Y=1,1073741824):(Y=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 Y=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)r=o,i=Y=15;else if(o=n&134217727,o!==0){var l=o&~a;l!==0?(r=Mn(l),i=Y):(s&=o,s!==0&&(r=Mn(s),i=Y))}else o=n&~a,o!==0?(r=Mn(o),i=Y):s!==0&&(r=Mn(s),i=Y);if(r===0)return 0;if(r=31-jt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(Mn(t),i<=Y)return t;Y=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function Id(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-jt(t),e[t]=n}var jt=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{yd(i,e,t,n,r)}finally{(un=o)||Ls()}}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<Cd.indexOf(e))e=Fs(null,e,t,n,r),et.push(e);else{var o=Ws(e,t,n,r);if(o===null)i&&Pd(e,r);else{if(i){if(-1<Cd.indexOf(e)){e=Fs(o,e,t,n,r),et.push(e);return}if(ty(o,e,t,n,r))return;Pd(e,r)}pp(e,t,r,null,n)}}}}function Ws(e,t,n,r){var i=Ts(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=bd(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 pp(e,t,r,i,n),null}var Lt=null,Vs=null,lo=null;function Ad(){if(lo)return lo;var e,t=Vs,n=t.length,r,i="value"in Lt?Lt.value:Lt.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 Md(){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:Md,this.isPropagationStopped=Md,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}}),zd=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),ky=W({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xy=Re(ky),_y=W({},Fn,{data:0}),Fd=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}}),$y=Re(Ny),Ty=W({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=Re(Ty),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}),jy=Re(Dy),Ly=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(Ly),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,Bd=ht&&(!Zs||Zr&&8<Zr&&11>=Zr),Yd=String.fromCharCode(32),Hd=!1;function Gd(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 Wd(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 Wd(t);case"keypress":return t.which!==32?null:(Hd=!0,Yd);case"textInput":return e=t.data,e===Yd&&Hd?null:e;default:return null}}function Fy(e,t){if(Un)return e==="compositionend"||!Zs&&Gd(e,t)?(e=Ad(),lo=Vs=Lt=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 Bd&&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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uy[e.type]:t==="textarea"}function Kd(e,t,n,r){md(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){sp(e,0)}function fo(e){var t=Wn(e);if(rd(t))return e}function Yy(e,t){if(e==="change")return t}var qd=!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;qd=el&&(!document.documentMode||9<document.documentMode)}function Jd(){ei&&(ei.detachEvent("onpropertychange",Xd),ti=ei=null)}function Xd(e){if(e.propertyName==="value"&&fo(ti)){var t=[];if(Kd(t,ti,e,Ts(e)),e=By,un)e(t);else{un=!0;try{Os(e,t)}finally{un=!1,Ls()}}}}function Hy(e,t,n){e==="focusin"?(Jd(),ei=t,ti=n,ei.attachEvent("onpropertychange",Xd)):e==="focusout"&&Jd()}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 Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ep(e,t){var n=Zd(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=Zd(n)}}function tp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function np(){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 rp(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 ip="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ol=0;ol<ip.length;ol++)Bs.set(ip[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(" "),op=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function ap(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zg(r,t,void 0,e),e.currentTarget=null}function sp(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;ap(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;ap(i,s,c),o=l}}}if(to)throw e=As,to=!1,As=null,e}function H(e,t){var n=vp(t),r=e+"__bubble";n.has(r)||(dp(t,e,2,!1),n.add(r))}var lp="_reactListening"+Math.random().toString(36).slice(2);function cp(e){e[lp]||(e[lp]=!0,Qu.forEach(function(t){op.has(t)||up(t,!1,e,null),up(t,!0,e,null)}))}function up(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&&op.has(e)){if(e!=="scroll")return;i|=2,o=r}var a=vp(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),dp(o,e,i,t),a.add(s))}function dp(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 pp(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=Ts(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=$y;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=zd;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 Rd:case Od:case Dd:y=wy;break;case jd:y=jy;break;case"scroll":y=my;break;case"wheel":y=Iy;break;case"copy":case"cut":case"paste":y=xy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ud}var _=(t&4)!==0,g=!_&&e==="scroll",h=_?f!==null?f+"Capture":null:f;_=[];for(var m=c,w;m!==null;){w=m;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,h!==null&&(x=Br(m,h),x!=null&&_.push(oi(m,x,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(_=zd,x="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(_=Ud,x="onPointerLeave",h="onPointerEnter",m="pointer"),g=y==null?f:Wn(y),w=v==null?f:Wn(v),f=new _(x,m+"leave",y,n,p),f.target=g,f.relatedTarget=w,x=null,pn(p)===c&&(_=new _(h,m+"enter",v,n,p),_.target=w,_.relatedTarget=g,x=_),g=x,y&&v)t:{for(_=y,h=v,m=0,w=_;w;w=Yn(w))m++;for(w=0,x=h;x;x=Yn(x))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&&fp(d,f,y,_,!1),v!==null&&g!==null&&fp(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(Vd(f))if(qd)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))){Kd(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":(Vd(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,rp(d,n,p);break;case"selectionchange":if(Qy)break;case"keydown":case"keyup":rp(d,n,p)}var T;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?Gd(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Bd&&n.locale!=="ko"&&(Un||O!=="onCompositionStart"?O==="onCompositionEnd"&&Un&&(T=Ad()):(Lt=p,Vs="value"in Lt?Lt.value:Lt.textContent,Un=!0)),S=ho(c,O),0<S.length&&(O=new Fd(O,e,null,n,p),d.push({event:O,listeners:S}),T?O.data=T:(T=Wd(n),T!==null&&(O.data=T)))),(T=My?zy(e,n):Fy(e,n))&&(c=ho(c,"onBeforeInput"),0<c.length&&(p=new Fd("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:c}),p.data=T))}sp(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 fp(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 hp(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 mp=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 gp(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,yp="__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=gp(e);e!==null;){if(n=e[It])return n;e=gp(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 vp(e){var t=e[yp];return t===void 0&&(t=e[yp]=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 bp(e,t,n){if(me.current!==Mt)throw Error(E(168));Q(me,t),Q(Ce,n)}function wp(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 kp(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=wp(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,ev=ae.unstable_shouldYield,xp=ae.unstable_requestPaint,ml=ae.unstable_now,tv=ae.unstable_getCurrentPriorityLevel,ko=ae.unstable_ImmediatePriority,_p=ae.unstable_UserBlockingPriority,Sp=ae.unstable_NormalPriority,Ep=ae.unstable_LowPriority,Cp=ae.unstable_IdlePriority,gl={},nv=xp!==void 0?xp:function(){},mt=null,xo=null,yl=!1,Pp=ml(),ge=1e4>Pp?ml:function(){return ml()-Pp};function qn(){switch(tv()){case ko:return 99;case _p:return 98;case Sp:return 97;case Ep:return 96;case Cp:return 95;default:throw Error(E(332))}}function Np(e){switch(e){case 99:return ko;case 98:return _p;case 97:return Sp;case 96:return Ep;case 95:return Cp;default:throw Error(E(332))}}function mn(e,t){return e=Np(e),Zy(e,t)}function si(e,t,n){return e=Np(e),fl(e,t,n)}function tt(){if(xo!==null){var e=xo;xo=null,hl(e)}$p()}function $p(){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(ko,tt),n}finally{yl=!1}}}var rv=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 Rp(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 Op(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 Dp(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 jp=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 Ip(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 Ap(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 kl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=jp,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===jp&&(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 $o(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 Mp(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,x){return h===null||h.tag!==7?(h=or(m,g.mode,w,x),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 Lr: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;$o(g,h)}return null}function f(g,h,m,w){var x=h!==null?h.key:null;if(typeof m=="string"||typeof m=="number")return x!==null?null:s(g,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Lr:return m.key===x?m.type===$t?p(g,h,m.props.children,w,x):l(g,h,m,w):null;case cn:return m.key===x?c(g,h,m,w):null}if(No(m)||Mr(m))return x!==null?null:p(g,h,m,w,null);$o(g,m)}return null}function y(g,h,m,w,x){if(typeof w=="string"||typeof w=="number")return g=g.get(m)||null,s(h,g,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Lr:return g=g.get(w.key===null?m:w.key)||null,w.type===$t?p(h,g,w.props.children,x,w.key):l(h,g,w,x);case cn:return g=g.get(w.key===null?m:w.key)||null,c(h,g,w,x)}if(No(w)||Mr(w))return g=g.get(m)||null,p(h,g,w,x,null);$o(h,w)}return null}function v(g,h,m,w){for(var x=null,C=null,S=h,T=h=0,O=null;S!==null&&T<m.length;T++){S.index>T?(O=S,S=null):O=S.sibling;var N=f(g,S,m[T],w);if(N===null){S===null&&(S=O);break}e&&S&&N.alternate===null&&t(g,S),h=o(N,h,T),C===null?x=N:C.sibling=N,C=N,S=O}if(T===m.length)return n(g,S),x;if(S===null){for(;T<m.length;T++)S=d(g,m[T],w),S!==null&&(h=o(S,h,T),C===null?x=S:C.sibling=S,C=S);return x}for(S=r(g,S);T<m.length;T++)O=y(S,g,T,m[T],w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?T:O.key),h=o(O,h,T),C===null?x=O:C.sibling=O,C=O);return e&&S.forEach(function(F){return t(g,F)}),x}function _(g,h,m,w){var x=Mr(m);if(typeof x!="function")throw Error(E(150));if(m=x.call(m),m==null)throw Error(E(151));for(var C=x=null,S=h,T=h=0,O=null,N=m.next();S!==null&&!N.done;T++,N=m.next()){S.index>T?(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,T),C===null?x=F:C.sibling=F,C=F,S=O}if(N.done)return n(g,S),x;if(S===null){for(;!N.done;T++,N=m.next())N=d(g,N.value,w),N!==null&&(h=o(N,h,T),C===null?x=N:C.sibling=N,C=N);return x}for(S=r(g,S);!N.done;T++,N=m.next())N=y(S,g,T,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?T:N.key),h=o(N,h,T),C===null?x=N:C.sibling=N,C=N);return e&&S.forEach(function(He){return t(g,He)}),x}return function(g,h,m,w){var x=typeof m=="object"&&m!==null&&m.type===$t&&m.key===null;x&&(m=m.props.children);var C=typeof m=="object"&&m!==null;if(C)switch(m.$$typeof){case Lr:e:{for(C=m.key,x=h;x!==null;){if(x.key===C){switch(x.tag){case 7:if(m.type===$t){n(g,x.sibling),h=i(x,m.props.children),h.return=g,g=h;break e}break;default:if(x.elementType===m.type){n(g,x.sibling),h=i(x,m.props),h.ref=ci(g,x,m),h.return=g,g=h;break e}}n(g,x);break}else t(g,x);x=x.sibling}m.type===$t?(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(x=m.key;h!==null;){if(h.key===x)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&&$o(g,m),typeof m>"u"&&!x)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 To=Mp(!0),zp=Mp(!1),ui={},nt=At(ui),di=At(ui),pi=At(ui);function gn(e){if(e===ui)throw Error(E(174));return e}function xl(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 Fp(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 Up(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 Bp(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(!Bp(e,t)){if(t=Hn(n.nextSibling),!t||!Bp(e,t)){e.flags=e.flags&-1025|2,rt=!1,gt=e;return}Up(gt,n)}gt=e,Bt=Hn(t.firstChild)}else e.flags=e.flags&-1025|2,rt=!1,gt=e}}function Yp(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 Yp(e),rt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ll(t,e.memoizedProps))for(t=Bt;t;)Up(e,t),t=Hn(t.nextSibling);if(Yp(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?ov:av,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=sv,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 Hp(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 Gp(e,t,n,r){var i=xe;if(i===null)throw Error(E(349));var o=t._getVersion,a=o(t._source),s=fi.current,l=s.useState(function(){return Hp(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-jt(m),x=1<<w;h[w]|=g,m&=~x}}},[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=Hp(i,t,n),l.memoizedState=l.baseState=p),p}function Wp(e,t,n){var r=vn();return Gp(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 jo(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 Vp(e){var t=yn();return e={current:e},t.memoizedState=e}function Lo(){return vn().memoizedState}function $l(e,t,n,r){var i=yn();ee.flags|=e,i.memoizedState=jo(1|t,n,void 0,r===void 0?null:r)}function Tl(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)){jo(t,n,o,r);return}}ee.flags|=e,i.memoizedState=jo(1|t,n,o,r)}function Kp(e,t){return $l(516,4,e,t)}function Io(e,t){return Tl(516,4,e,t)}function qp(e,t){return Tl(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 Jp(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,2,Qp.bind(null,t,e),n)}function Rl(){}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]:(n.memoizedState=[e,t],e)}function Zp(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 iv(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},ov={readContext:Me,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Kp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4,2,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(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:Vp,useState:vi,useDebugValue:Rl,useDeferredValue:function(e){var t=vi(e),n=t[0],r=t[1];return Kp(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=iv.bind(null,e[1]),Vp(e),[e,t]},useMutableSource:function(e,t,n){var r=yn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Gp(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,jo(5,function(){n("r:"+(ul++).toString(36))},void 0,null)),t}return t="r:"+(ul++).toString(36),vi(t),t},unstable_isNewReconciler:!1},av={readContext:Me,useCallback:Xp,useContext:Me,useEffect:Io,useImperativeHandle:Jp,useLayoutEffect:qp,useMemo:Zp,useReducer:gi,useRef:Lo,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[Lo().current,e]},useMutableSource:Wp,useOpaqueIdentifier:function(){return gi(it)[0]},unstable_isNewReconciler:!1},sv={readContext:Me,useCallback:Xp,useContext:Me,useEffect:Io,useImperativeHandle:Jp,useLayoutEffect:qp,useMemo:Zp,useReducer:yi,useRef:Lo,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[Lo().current,e]},useMutableSource:Wp,useOpaqueIdentifier:function(){return yi(it)[0]},unstable_isNewReconciler:!1},lv=ln.ReactCurrentOwner,Ke=!1;function $e(e,t,n,r){t.child=e===null?zp(t,null,n,r):To(t,e.child,n,r)}function ef(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,$e(e,t,r,i),t.child)}function tf(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,nf(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 nf(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 jl(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 $e(e,t,i,n),t.child}function rf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function jl(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,$e(e,t,n,i),t.child)}function of(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),Ip(t,n,r),kl(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)&&Ap(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,Rp(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)&&Ap(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 Ll(e,t,n,r,o,i)}function Ll(e,t,n,r,i,o){rf(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&kp(t,n,!1),yt(e,t,o);r=t.stateNode,lv.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):$e(e,t,s,o),t.memoizedState=r.state,i&&kp(t,n,!0),t.child}function af(e){var t=e.stateNode;t.pendingContext?bp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bp(e,t.context,!1),xl(e,t.containerInfo)}var Mo={dehydrated:null,retryLane:0};function sf(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=lf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,e):typeof r.unstable_expectedLoadTime=="number"?(e=lf(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=uf(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=cf(e,t,r.children,n),t.memoizedState=null,n):o?(r=uf(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=cf(e,t,r.children,n),t.memoizedState=null,n)}function lf(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 cf(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 uf(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 df(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 pf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if($e(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&&df(e,n);else if(e.tag===19)df(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 ff,Al,hf,mf;ff=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(){},hf=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=ks(e,i),r=ks(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"&&(jr.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"&&(jr.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)}},mf=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 cv(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)hf(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":id(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":sd(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]):jr.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&H("scroll",r));switch(n){case"input":Ji(r),ad(r,o,!0);break;case"textarea":Ji(r),cd(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=ud(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,ff(e,t,!1,!1),t.stateNode=e,a=$s(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":id(e,r),i=ks(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":sd(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"?fd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dd(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"&&(jr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&H("scroll",e):l!=null&&us(e,o,l,a))}switch(n){case"input":Ji(e),ad(e,r,!1);break;case"textarea":Ji(e),cd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tt(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=mo)}hp(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)mf(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),xe===null||!(wi&134217727)&&!(tr&134217727)||rr(xe,ve))),(r||n)&&(t.flags|=4),null);case 4:return Xn(),Al(t),e===null&&cp(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 uv(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=`
|
|
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 $t: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 Tt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function nd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e){var t=nd(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 rd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nd(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 ks(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tt(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 od(e,t){t=t.checked,t!=null&&us(e,"checked",t,!1)}function xs(e,t){od(e,t);var n=Tt(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,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ad(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=""+Tt(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 sd(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:Tt(n)}}function ld(e,t){var n=Tt(t.value),r=Tt(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 cd(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 ud(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"?ud(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,dd=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 pd(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 fd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=pd(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 $s(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 Ts(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 hd(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 md(e){jn?In?In.push(e):In=[e]:jn=e}function gd(){if(jn){var e=jn,t=In;if(In=jn=null,hd(e),t)for(e=0;e<t.length;e++)hd(t[e])}}function Os(e,t){return e(t)}function yd(e,t,n,r,i){return e(t,n,r,i)}function Ds(){}var vd=Os,un=!1,Ls=!1;function js(){(jn!==null||In!==null)&&(Ds(),gd())}function qg(e,t,n){if(Ls)return e(t,n);Ls=!0;try{return vd(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 bd(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 wd(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 wd(i),e;if(o===r)return wd(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 kd(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 _d,Ms,Sd,Ed,zs=!1,et=[],Rt=null,Ot=null,Dt=null,Gr=new Map,Wr=new Map,Vr=[],Cd="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 Pd(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=bd(n),t!==null){e.blockedOn=t,Ed(e.lanePriority,function(){ae.unstable_runWithPriority(e.priority,function(){Sd(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 Nd(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&&_d(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(Nd),Wr.forEach(Nd)}function qr(e,t){e.blockedOn===t&&(e.blockedOn=null,zs||(zs=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ry)))}function $d(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 Rd=io("animationend"),Od=io("animationiteration"),Dd=io("animationstart"),Ld=io("transitionend"),jd=new Map,Bs=new Map,iy=["abort","abort",Rd,"animationEnd",Od,"animationIteration",Dd,"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",Ld,"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),jd.set(r,i),sn(i,[r])}}var oy=ae.unstable_now;oy();var Y=8;function Mn(e){if(1&e)return Y=15,1;if(2&e)return Y=14,2;if(4&e)return Y=13,4;var t=24&e;return t!==0?(Y=12,t):e&32?(Y=11,32):(t=192&e,t!==0?(Y=10,t):e&256?(Y=9,256):(t=3584&e,t!==0?(Y=8,t):e&4096?(Y=7,4096):(t=4186112&e,t!==0?(Y=6,t):(t=62914560&e,t!==0?(Y=5,t):e&67108864?(Y=4,67108864):e&134217728?(Y=3,134217728):(t=805306368&e,t!==0?(Y=2,t):1073741824&e?(Y=1,1073741824):(Y=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 Y=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)r=o,i=Y=15;else if(o=n&134217727,o!==0){var l=o&~a;l!==0?(r=Mn(l),i=Y):(s&=o,s!==0&&(r=Mn(s),i=Y))}else o=n&~a,o!==0?(r=Mn(o),i=Y):s!==0&&(r=Mn(s),i=Y);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<=Y)return t;Y=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 Id(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{yd(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<Cd.indexOf(e))e=Fs(null,e,t,n,r),et.push(e);else{var o=Ws(e,t,n,r);if(o===null)i&&Pd(e,r);else{if(i){if(-1<Cd.indexOf(e)){e=Fs(o,e,t,n,r),et.push(e);return}if(ty(o,e,t,n,r))return;Pd(e,r)}pp(e,t,r,null,n)}}}}function Ws(e,t,n,r){var i=Ts(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=bd(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 pp(e,t,r,i,n),null}var jt=null,Vs=null,lo=null;function Ad(){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 Md(){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:Md,this.isPropagationStopped=Md,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}}),zd=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),ky=W({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xy=Re(ky),_y=W({},Fn,{data:0}),Fd=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}}),$y=Re(Ny),Ty=W({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=Re(Ty),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,Bd=ht&&(!Zs||Zr&&8<Zr&&11>=Zr),Yd=String.fromCharCode(32),Hd=!1;function Gd(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 Wd(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 Wd(t);case"keypress":return t.which!==32?null:(Hd=!0,Yd);case"textInput":return e=t.data,e===Yd&&Hd?null:e;default:return null}}function Fy(e,t){if(Un)return e==="compositionend"||!Zs&&Gd(e,t)?(e=Ad(),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 Bd&&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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uy[e.type]:t==="textarea"}function Kd(e,t,n,r){md(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){sp(e,0)}function fo(e){var t=Wn(e);if(rd(t))return e}function Yy(e,t){if(e==="change")return t}var qd=!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;qd=el&&(!document.documentMode||9<document.documentMode)}function Jd(){ei&&(ei.detachEvent("onpropertychange",Xd),ti=ei=null)}function Xd(e){if(e.propertyName==="value"&&fo(ti)){var t=[];if(Kd(t,ti,e,Ts(e)),e=By,un)e(t);else{un=!0;try{Os(e,t)}finally{un=!1,js()}}}}function Hy(e,t,n){e==="focusin"?(Jd(),ei=t,ti=n,ei.attachEvent("onpropertychange",Xd)):e==="focusout"&&Jd()}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 Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ep(e,t){var n=Zd(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=Zd(n)}}function tp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function np(){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 rp(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 ip="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ol=0;ol<ip.length;ol++)Bs.set(ip[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(" "),op=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function ap(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zg(r,t,void 0,e),e.currentTarget=null}function sp(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;ap(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;ap(i,s,c),o=l}}}if(to)throw e=As,to=!1,As=null,e}function H(e,t){var n=vp(t),r=e+"__bubble";n.has(r)||(dp(t,e,2,!1),n.add(r))}var lp="_reactListening"+Math.random().toString(36).slice(2);function cp(e){e[lp]||(e[lp]=!0,Qu.forEach(function(t){op.has(t)||up(t,!1,e,null),up(t,!0,e,null)}))}function up(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&&op.has(e)){if(e!=="scroll")return;i|=2,o=r}var a=vp(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),dp(o,e,i,t),a.add(s))}function dp(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 pp(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=Ts(n),d=[];e:{var f=jd.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=$y;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=zd;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 Rd:case Od:case Dd:y=wy;break;case Ld:y=Ly;break;case"scroll":y=my;break;case"wheel":y=Iy;break;case"copy":case"cut":case"paste":y=xy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ud}var _=(t&4)!==0,g=!_&&e==="scroll",h=_?f!==null?f+"Capture":null:f;_=[];for(var m=c,w;m!==null;){w=m;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,h!==null&&(x=Br(m,h),x!=null&&_.push(oi(m,x,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(_=zd,x="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(_=Ud,x="onPointerLeave",h="onPointerEnter",m="pointer"),g=y==null?f:Wn(y),w=v==null?f:Wn(v),f=new _(x,m+"leave",y,n,p),f.target=g,f.relatedTarget=w,x=null,pn(p)===c&&(_=new _(h,m+"enter",v,n,p),_.target=w,_.relatedTarget=g,x=_),g=x,y&&v)t:{for(_=y,h=v,m=0,w=_;w;w=Yn(w))m++;for(w=0,x=h;x;x=Yn(x))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&&fp(d,f,y,_,!1),v!==null&&g!==null&&fp(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(Vd(f))if(qd)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))){Kd(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":(Vd(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,rp(d,n,p);break;case"selectionchange":if(Qy)break;case"keydown":case"keyup":rp(d,n,p)}var T;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?Gd(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Bd&&n.locale!=="ko"&&(Un||O!=="onCompositionStart"?O==="onCompositionEnd"&&Un&&(T=Ad()):(jt=p,Vs="value"in jt?jt.value:jt.textContent,Un=!0)),S=ho(c,O),0<S.length&&(O=new Fd(O,e,null,n,p),d.push({event:O,listeners:S}),T?O.data=T:(T=Wd(n),T!==null&&(O.data=T)))),(T=My?zy(e,n):Fy(e,n))&&(c=ho(c,"onBeforeInput"),0<c.length&&(p=new Fd("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:c}),p.data=T))}sp(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 fp(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 hp(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 mp=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 gp(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,yp="__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=gp(e);e!==null;){if(n=e[It])return n;e=gp(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 vp(e){var t=e[yp];return t===void 0&&(t=e[yp]=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 bp(e,t,n){if(me.current!==Mt)throw Error(E(168));Q(me,t),Q(Ce,n)}function wp(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 kp(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=wp(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,ev=ae.unstable_shouldYield,xp=ae.unstable_requestPaint,ml=ae.unstable_now,tv=ae.unstable_getCurrentPriorityLevel,ko=ae.unstable_ImmediatePriority,_p=ae.unstable_UserBlockingPriority,Sp=ae.unstable_NormalPriority,Ep=ae.unstable_LowPriority,Cp=ae.unstable_IdlePriority,gl={},nv=xp!==void 0?xp:function(){},mt=null,xo=null,yl=!1,Pp=ml(),ge=1e4>Pp?ml:function(){return ml()-Pp};function qn(){switch(tv()){case ko:return 99;case _p:return 98;case Sp:return 97;case Ep:return 96;case Cp:return 95;default:throw Error(E(332))}}function Np(e){switch(e){case 99:return ko;case 98:return _p;case 97:return Sp;case 96:return Ep;case 95:return Cp;default:throw Error(E(332))}}function mn(e,t){return e=Np(e),Zy(e,t)}function si(e,t,n){return e=Np(e),fl(e,t,n)}function tt(){if(xo!==null){var e=xo;xo=null,hl(e)}$p()}function $p(){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(ko,tt),n}finally{yl=!1}}}var rv=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 Rp(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 Op(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 Dp(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 Lp=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 jp(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 Ip(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 Ap(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 kl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Lp,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===Lp&&(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 $o(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 Mp(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,x){return h===null||h.tag!==7?(h=or(m,g.mode,w,x),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;$o(g,h)}return null}function f(g,h,m,w){var x=h!==null?h.key:null;if(typeof m=="string"||typeof m=="number")return x!==null?null:s(g,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case jr:return m.key===x?m.type===$t?p(g,h,m.props.children,w,x):l(g,h,m,w):null;case cn:return m.key===x?c(g,h,m,w):null}if(No(m)||Mr(m))return x!==null?null:p(g,h,m,w,null);$o(g,m)}return null}function y(g,h,m,w,x){if(typeof w=="string"||typeof w=="number")return g=g.get(m)||null,s(h,g,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case jr:return g=g.get(w.key===null?m:w.key)||null,w.type===$t?p(h,g,w.props.children,x,w.key):l(h,g,w,x);case cn:return g=g.get(w.key===null?m:w.key)||null,c(h,g,w,x)}if(No(w)||Mr(w))return g=g.get(m)||null,p(h,g,w,x,null);$o(h,w)}return null}function v(g,h,m,w){for(var x=null,C=null,S=h,T=h=0,O=null;S!==null&&T<m.length;T++){S.index>T?(O=S,S=null):O=S.sibling;var N=f(g,S,m[T],w);if(N===null){S===null&&(S=O);break}e&&S&&N.alternate===null&&t(g,S),h=o(N,h,T),C===null?x=N:C.sibling=N,C=N,S=O}if(T===m.length)return n(g,S),x;if(S===null){for(;T<m.length;T++)S=d(g,m[T],w),S!==null&&(h=o(S,h,T),C===null?x=S:C.sibling=S,C=S);return x}for(S=r(g,S);T<m.length;T++)O=y(S,g,T,m[T],w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?T:O.key),h=o(O,h,T),C===null?x=O:C.sibling=O,C=O);return e&&S.forEach(function(F){return t(g,F)}),x}function _(g,h,m,w){var x=Mr(m);if(typeof x!="function")throw Error(E(150));if(m=x.call(m),m==null)throw Error(E(151));for(var C=x=null,S=h,T=h=0,O=null,N=m.next();S!==null&&!N.done;T++,N=m.next()){S.index>T?(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,T),C===null?x=F:C.sibling=F,C=F,S=O}if(N.done)return n(g,S),x;if(S===null){for(;!N.done;T++,N=m.next())N=d(g,N.value,w),N!==null&&(h=o(N,h,T),C===null?x=N:C.sibling=N,C=N);return x}for(S=r(g,S);!N.done;T++,N=m.next())N=y(S,g,T,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?T:N.key),h=o(N,h,T),C===null?x=N:C.sibling=N,C=N);return e&&S.forEach(function(He){return t(g,He)}),x}return function(g,h,m,w){var x=typeof m=="object"&&m!==null&&m.type===$t&&m.key===null;x&&(m=m.props.children);var C=typeof m=="object"&&m!==null;if(C)switch(m.$$typeof){case jr:e:{for(C=m.key,x=h;x!==null;){if(x.key===C){switch(x.tag){case 7:if(m.type===$t){n(g,x.sibling),h=i(x,m.props.children),h.return=g,g=h;break e}break;default:if(x.elementType===m.type){n(g,x.sibling),h=i(x,m.props),h.ref=ci(g,x,m),h.return=g,g=h;break e}}n(g,x);break}else t(g,x);x=x.sibling}m.type===$t?(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(x=m.key;h!==null;){if(h.key===x)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&&$o(g,m),typeof m>"u"&&!x)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 To=Mp(!0),zp=Mp(!1),ui={},nt=At(ui),di=At(ui),pi=At(ui);function gn(e){if(e===ui)throw Error(E(174));return e}function xl(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 Fp(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 Up(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 Bp(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(!Bp(e,t)){if(t=Hn(n.nextSibling),!t||!Bp(e,t)){e.flags=e.flags&-1025|2,rt=!1,gt=e;return}Up(gt,n)}gt=e,Bt=Hn(t.firstChild)}else e.flags=e.flags&-1025|2,rt=!1,gt=e}}function Yp(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 Yp(e),rt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ll(t,e.memoizedProps))for(t=Bt;t;)Up(e,t),t=Hn(t.nextSibling);if(Yp(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?ov:av,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=sv,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 Hp(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 Gp(e,t,n,r){var i=xe;if(i===null)throw Error(E(349));var o=t._getVersion,a=o(t._source),s=fi.current,l=s.useState(function(){return Hp(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),x=1<<w;h[w]|=g,m&=~x}}},[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=Hp(i,t,n),l.memoizedState=l.baseState=p),p}function Wp(e,t,n){var r=vn();return Gp(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 Vp(e){var t=yn();return e={current:e},t.memoizedState=e}function jo(){return vn().memoizedState}function $l(e,t,n,r){var i=yn();ee.flags|=e,i.memoizedState=Lo(1|t,n,void 0,r===void 0?null:r)}function Tl(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 Kp(e,t){return $l(516,4,e,t)}function Io(e,t){return Tl(516,4,e,t)}function qp(e,t){return Tl(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 Jp(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,2,Qp.bind(null,t,e),n)}function Rl(){}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]:(n.memoizedState=[e,t],e)}function Zp(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 iv(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},ov={readContext:Me,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Kp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4,2,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(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:Vp,useState:vi,useDebugValue:Rl,useDeferredValue:function(e){var t=vi(e),n=t[0],r=t[1];return Kp(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=iv.bind(null,e[1]),Vp(e),[e,t]},useMutableSource:function(e,t,n){var r=yn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Gp(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},av={readContext:Me,useCallback:Xp,useContext:Me,useEffect:Io,useImperativeHandle:Jp,useLayoutEffect:qp,useMemo:Zp,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:Wp,useOpaqueIdentifier:function(){return gi(it)[0]},unstable_isNewReconciler:!1},sv={readContext:Me,useCallback:Xp,useContext:Me,useEffect:Io,useImperativeHandle:Jp,useLayoutEffect:qp,useMemo:Zp,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:Wp,useOpaqueIdentifier:function(){return yi(it)[0]},unstable_isNewReconciler:!1},lv=ln.ReactCurrentOwner,Ke=!1;function $e(e,t,n,r){t.child=e===null?zp(t,null,n,r):To(t,e.child,n,r)}function ef(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,$e(e,t,r,i),t.child)}function tf(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,nf(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 nf(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 $e(e,t,i,n),t.child}function rf(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,$e(e,t,n,i),t.child)}function of(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),Ip(t,n,r),kl(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)&&Ap(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||jp(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,Rp(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)&&Ap(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||jp(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){rf(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&kp(t,n,!1),yt(e,t,o);r=t.stateNode,lv.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):$e(e,t,s,o),t.memoizedState=r.state,i&&kp(t,n,!0),t.child}function af(e){var t=e.stateNode;t.pendingContext?bp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bp(e,t.context,!1),xl(e,t.containerInfo)}var Mo={dehydrated:null,retryLane:0};function sf(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=lf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,e):typeof r.unstable_expectedLoadTime=="number"?(e=lf(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=uf(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=cf(e,t,r.children,n),t.memoizedState=null,n):o?(r=uf(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=cf(e,t,r.children,n),t.memoizedState=null,n)}function lf(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 cf(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 uf(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 df(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 pf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if($e(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&&df(e,n);else if(e.tag===19)df(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 ff,Al,hf,mf;ff=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(){},hf=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=ks(e,i),r=ks(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)}},mf=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 cv(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)hf(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":id(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":sd(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),ad(r,o,!0);break;case"textarea":Ji(r),cd(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=ud(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,ff(e,t,!1,!1),t.stateNode=e,a=$s(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":id(e,r),i=ks(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":sd(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"?fd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dd(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),ad(e,r,!1);break;case"textarea":Ji(e),cd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tt(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)}hp(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)mf(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),xe===null||!(wi&134217727)&&!(tr&134217727)||rr(xe,ve))),(r||n)&&(t.flags|=4),null);case 4:return Xn(),Al(t),e===null&&cp(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 uv(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 zl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dv=typeof WeakMap=="function"?WeakMap:Map;function gf(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 yf(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 pv=typeof WeakSet=="function"?WeakSet:Set;function vf(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 fv(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 hv(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&&(Df(n,e),xv(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&&Dp(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}Dp(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&hp(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&&$d(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function bf(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=pd("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 wf(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)Df(t,n);else{r=t;try{i()}catch(o){Vt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(vf(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:vf(t);break;case 4:Sf(e,t)}}function kf(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 _f(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 Sf(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(wf(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(wf(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&&od(n,r),$s(e,i),t=$s(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?fd(n,s):a==="dangerouslySetInnerHTML"?dd(n,s):a==="children"?Fr(n,s):us(n,a,s,t)}switch(e){case"input":xs(n,r);break;case"textarea":ld(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,$d(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Vl=ge(),bf(t.child,!0)),Ef(t);return;case 19:Ef(t);return;case 17:return;case 23:case 24:bf(t,t.memoizedState!==null);return}throw Error(E(163))}function Ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pv),t.forEach(function(r){var i=Ev.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mv(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var gv=Math.ceil,zo=ln.ReactCurrentDispatcher,Yl=ln.ReactCurrentOwner,j=0,xe=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 $=null,Uo=!1,ql=null,ot=null,Yt=!1,ki=null,xi=90,Ql=[],Jl=[],vt=null,_i=0,Xl=null,Bo=-1,bt=0,Yo=0,Si=null,Ho=!1;function Oe(){return j&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),rv.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(),j&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===xe&&(tr|=t,de===4&&rr(e,ve));var r=qn();t===1?j&8&&!(j&48)?Zl(e):(Fe(e,n),j===0&&(nr(),tt())):(!(j&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-jt(a),l=1<<s,c=o[s];if(c===-1){if(!(l&r)||l&i){c=t,Mn(l);var p=Y;o[s]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);a&=~l}if(r=Qr(e,e===xe?ve:0),t=Y,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],xo=fl(ko,$p)):mt.push(n),n=gl):t===14?n=si(99,Zl.bind(null,e)):(n=sy(t),n=si(n,Cf.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Cf(e){if(Bo=-1,Yo=bt=0,j&48)throw Error(E(327));var t=e.callbackNode;if(Wt()&&e.callbackNode!==t)return null;var n=Qr(e,e===xe?ve:0);if(n===0)return null;var r=n,i=j;j|=16;var o=Tf();(xe!==e||ve!==r)&&(nr(),ir(e,r));do try{bv();break}catch(s){$f(e,s)}while(1);if(vl(),zo.current=o,j=i,oe!==null?r=0:(xe=null,ve=0,r=de),er&tr)ir(e,0);else if(r!==0){if(r===2&&(j|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),n=Id(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=mp(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-jt(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*gv(n/1960))-n,10<n){e.timeoutHandle=mp(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?Cf.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-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Zl(e){if(j&48)throw Error(E(327));if(Wt(),e===xe&&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&&(j|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),t=Id(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 yv(){if(vt!==null){var e=vt;vt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fe(t,ge())})}tt()}function Pf(e,t){var n=j;j|=1;try{return e(t)}finally{j=n,j===0&&(nr(),tt())}}function Nf(e,t){var n=j;j&=-2,j|=8;try{return e(t)}finally{j=n,j===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}xe=e,oe=Kt(e.current,null),ve=bn=er=t,de=0,Fo=null,Gl=tr=wi=0}function $f(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 dv,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 x=Sv.bind(null,o,c,s);c.then(x,x)}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.
|
|
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 dv=typeof WeakMap=="function"?WeakMap:Map;function gf(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 yf(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 pv=typeof WeakSet=="function"?WeakSet:Set;function vf(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 fv(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 hv(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&&(Df(n,e),xv(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&&Dp(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}Dp(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&hp(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&&$d(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function bf(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=pd("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 wf(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)Df(t,n);else{r=t;try{i()}catch(o){Vt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(vf(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:vf(t);break;case 4:Sf(e,t)}}function kf(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 _f(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 Sf(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(wf(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(wf(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&&od(n,r),$s(e,i),t=$s(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?fd(n,s):a==="dangerouslySetInnerHTML"?dd(n,s):a==="children"?Fr(n,s):us(n,a,s,t)}switch(e){case"input":xs(n,r);break;case"textarea":ld(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,$d(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Vl=ge(),bf(t.child,!0)),Ef(t);return;case 19:Ef(t);return;case 17:return;case 23:case 24:bf(t,t.memoizedState!==null);return}throw Error(E(163))}function Ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pv),t.forEach(function(r){var i=Ev.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mv(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var gv=Math.ceil,zo=ln.ReactCurrentDispatcher,Yl=ln.ReactCurrentOwner,L=0,xe=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 $=null,Uo=!1,ql=null,ot=null,Yt=!1,ki=null,xi=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),rv.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===xe&&(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=Y;o[s]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);a&=~l}if(r=Qr(e,e===xe?ve:0),t=Y,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],xo=fl(ko,$p)):mt.push(n),n=gl):t===14?n=si(99,Zl.bind(null,e)):(n=sy(t),n=si(n,Cf.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Cf(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===xe?ve:0);if(n===0)return null;var r=n,i=L;L|=16;var o=Tf();(xe!==e||ve!==r)&&(nr(),ir(e,r));do try{bv();break}catch(s){$f(e,s)}while(1);if(vl(),zo.current=o,L=i,oe!==null?r=0:(xe=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=Id(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=mp(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*gv(n/1960))-n,10<n){e.timeoutHandle=mp(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?Cf.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===xe&&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=Id(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 yv(){if(vt!==null){var e=vt;vt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fe(t,ge())})}tt()}function Pf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Nf(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}xe=e,oe=Kt(e.current,null),ve=bn=er=t,de=0,Fo=null,Gl=tr=wi=0}function $f(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 dv,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 x=Sv.bind(null,o,c,s);c.then(x,x)}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.`)}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=gf(f,o,t);Op(f,C);break e;case 1:o=l;var S=f.type,T=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(ot===null||!ot.has(T)))){f.flags|=4096,t&=-t,f.lanes|=t;var O=yf(f,o,t);Op(f,O);break e}}f=f.return}while(f!==null)}Of(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=j;j|=16;var r=Tf();xe===e&&ve===t||ir(e,t);do try{vv();break}catch(i){$f(e,i)}while(1);if(vl(),j=n,zo.current=r,oe!==null)throw Error(E(261));return xe=null,ve=0,de}function vv(){for(;oe!==null;)Rf(oe)}function bv(){for(;oe!==null&&!ev();)Rf(oe)}function Rf(e){var t=Lf(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Of(e):oe=t,Yl.current=null}function Of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=uv(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=cv(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,wv.bind(null,e,t)),null}function wv(e,t){do Wt();while(ki!==null);if(j&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-jt(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===xe&&(oe=xe=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=j,j|=32,Yl.current=null,al=so,a=np(),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,$=r;do try{kv()}catch(N){if($===null)throw Error(E(330));Vt($,N),$=$.nextEffect}while($!==null);Si=null,$=r;do try{for(a=e;$!==null;){var m=$.flags;if(m&16&&Fr($.stateNode,""),m&128){var w=$.alternate;if(w!==null){var x=w.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(m&1038){case 2:_f($),$.flags&=-3;break;case 6:_f($),$.flags&=-3,Bl($.alternate,$);break;case 1024:$.flags&=-1025;break;case 1028:$.flags&=-1025,Bl($.alternate,$);break;case 4:Bl($.alternate,$);break;case 8:s=$,Sf(a,s);var C=s.alternate;kf(s),C!==null&&kf(C)}$=$.nextEffect}}catch(N){if($===null)throw Error(E(330));Vt($,N),$=$.nextEffect}while($!==null);if(x=sl,w=np(),m=x.focusedElem,a=x.selectionRange,w!==m&&m&&m.ownerDocument&&tp(m.ownerDocument.documentElement,m)){for(a!==null&&nl(m)&&(w=a.start,x=a.end,x===void 0&&(x=w),"selectionStart"in m?(m.selectionStart=w,m.selectionEnd=Math.min(x,m.value.length)):(x=(w=m.ownerDocument||document)&&w.defaultView||window,x.getSelection&&(x=x.getSelection(),s=m.textContent.length,C=Math.min(a.start,s),a=a.end===void 0?C:Math.min(a.end,s),!x.extend&&C>a&&(s=a,a=C,C=s),s=ep(m,C),o=ep(m,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),x.removeAllRanges(),C>a?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),x.addRange(w)))))),w=[],x=m;x=x.parentNode;)x.nodeType===1&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<w.length;m++)x=w[m],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}so=!!al,sl=al=null,e.current=n,$=r;do try{for(m=e;$!==null;){var S=$.flags;if(S&36&&hv(m,$.alternate,$),S&128){w=void 0;var T=$.ref;if(T!==null){var O=$.stateNode;switch($.tag){case 5:w=O;break;default:w=O}typeof T=="function"?T(w):T.current=w}}$=$.nextEffect}}catch(N){if($===null)throw Error(E(330));Vt($,N),$=$.nextEffect}while($!==null);$=null,nv(),j=i}else e.current=n;if(Yt)Yt=!1,ki=e,xi=t;else for($=r;$!==null;)t=$.nextEffect,$.nextEffect=null,$.flags&8&&(S=$,S.sibling=null,S.stateNode=null),$=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 j&8||tt(),null}function kv(){for(;$!==null;){var e=$.alternate;Ho||Si===null||($.flags&8?xd($,Si)&&(Ho=!0):$.tag===13&&mv(e,$)&&xd($,Si)&&(Ho=!0));var t=$.flags;t&256&&fv(e,$),!(t&512)||Yt||(Yt=!0,si(97,function(){return Wt(),null})),$=$.nextEffect}}function Wt(){if(xi!==90){var e=97<xi?97:xi;return xi=90,mn(e,_v)}return!1}function xv(e,t){Ql.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function Df(e,t){Jl.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function _v(){if(ki===null)return!1;var e=ki;if(ki=null,j&48)throw Error(E(331));var t=j;j|=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 j=t,tt(),!0}function jf(e,t,n){t=Ml(n,t),t=gf(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)jf(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){jf(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=yf(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 Sv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,xe===e&&(ve&n)===n&&(de===4||de===3&&(ve&62914560)===ve&&500>ge()-Vl?ir(e,0):Gl|=n),Fe(e,t)}function Ev(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:af(t),El();break;case 5:Fp(t);break;case 1:Pe(t.type)&&wo(t);break;case 4:xl(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?sf(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 pf(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,kl(t,r,e,n),t=Ll(null,t,r,!0,o,n)}else t.tag=0,$e(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=Pv(i),e=Ve(i,e),o){case 0:t=jl(null,t,i,e,n);break e;case 1:t=of(null,t,i,e,n);break e;case 11:t=ef(null,t,i,e,n);break e;case 14:t=tf(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),jl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),of(e,t,r,i,n);case 3:if(af(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,Rp(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=zp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else $e(e,t,r,n),El();t=t.child}return t;case 5:return Fp(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),rf(e,t),$e(e,t,a,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return sf(e,t,n);case 4:return xl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=To(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),ef(e,t,r,i,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(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}$e(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,$e(e,t,r,n),t.child;case 14:return i=t.type,o=Ve(i,t.pendingProps),o=Ve(i.type,o),tf(e,t,i,o,r,n);case 15:return nf(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),Ip(t,r,i),kl(t,r,i,n),Ll(null,t,r,!0,e,n);case 19:return pf(e,t,n);case 23:return Dl(e,t,n);case 24:return Dl(e,t,n)}throw Error(E(156,t.tag))};function Cv(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 Cv(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pv(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 $t:return or(n.children,i,o,t);case ed: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 Nv(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 $v(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=wp(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 If(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){If(e,t),(e=e.alternate)&&If(e,t)}function Tv(){return null}function sc(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Nv(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,cp(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 Rv(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=Rv(n,r),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var c=oc(a);l.call(c)}}Nf(function(){Ko(t,a,e,i)})}return oc(a)}_d=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)}},Sd=function(e){if(e.tag===13){var t=Oe(),n=Ht(e);Gt(e,n,t),ac(e,n)}},Ed=function(e,t){return t()},Rs=function(e,t,n){switch(t){case"input":if(xs(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));rd(r),xs(r,i)}}}break;case"textarea":ld(e,n);break;case"select":t=n.value,t!=null&&jn(e,!!n.multiple,t,!1)}},Os=Pf,yd=function(e,t,n,r,i){var o=j;j|=4;try{return mn(98,e.bind(null,t,n,r,i))}finally{j=o,j===0&&(nr(),tt())}},Ds=function(){!(j&49)&&(yv(),Wt())},vd=function(e,t){var n=j;j|=2;try{return e(t)}finally{j=n,j===0&&(nr(),tt())}};function Af(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ci(t))throw Error(E(200));return $v(e,t,null,n)}var Ov={Events:[ai,Wn,vo,md,gd,Wt,{current:!1}]},Pi={findFiberByHostInstance:pn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Dv={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=kd(e),e===null?null:e.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||Tv,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(Dv),hn=Qo}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ov,Ie.createPortal=Af,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=kd(t),e=e===null?null:e.stateNode,e},Ie.flushSync=function(e,t){var n=j;if(n&48)return e(t);j|=1;try{if(e)return mn(99,e.bind(null,t))}finally{j=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?(Nf(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1},Ie.unstable_batchedUpdates=Pf,Ie.unstable_createPortal=function(e,t){return Af(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 jv=Le(Dr),p2="",Mf=Object.prototype.toString;function lc(e){switch(Mf.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return lr(e,Error)}}function ar(e,t){return Mf.call(e)===`[object ${t}]`}function zf(e){return ar(e,"ErrorEvent")}function Ff(e){return ar(e,"DOMError")}function Lv(e){return ar(e,"DOMException")}function kn(e){return ar(e,"String")}function Uf(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 Iv(e){return typeof Element<"u"&&lr(e,Element)}function Av(e){return ar(e,"RegExp")}function uc(e){return!!(e&&e.then&&typeof e.then=="function")}function Mv(e){return sr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function zv(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 Fv=Ni(),Uv=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||Uv;for(;n&&o++<r&&(c=Bv(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 Bv(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&&kn(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 Yv(){try{return Fv.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 Hv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gv(e){return e==="http"||e==="https"}function $i(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 Wv(e){const t=Hv.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 Bf({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function Bf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Vv(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(!Gv(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 Yf(e){const t=typeof e=="string"?Wv(e):Bf(e);return Vv(t),t}const Kv="Sentry Logger ",Xo=["debug","info","warn","error","log","assert","trace"];function Hf(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 Gf(){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&&Hf(()=>{Be.console[n](`${Kv}[${n}]:`,...r)})}}):Xo.forEach(n=>{t[n]=()=>{}}),t}let L;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?L=dc("logger",Gf):L=Gf();function Ti(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Wf(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 qv(e,t,n=!1){return kn(e)?Av(t)?t.test(e):kn(t)?n?e===t:e.includes(t):!1:!1}function Zo(e,t=[],n=!1){return t.some(r=>qv(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{Vf(i,r)}catch{}e[t]=i}function fc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Vf(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,fc(e,"__sentry_original__",t)}function hc(e){return e.__sentry_original__}function Qv(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Kf(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:qf(e.target),currentTarget:qf(e.currentTarget),...Qf(e)};return typeof CustomEvent<"u"&&lr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qf(e){try{return Iv(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 Jv(e,t=40){const n=Object.keys(Kf(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 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 Jf=50,Xf=/\(error: (.*)\)/;function Zf(...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=Xf.test(s)?s.replace(Xf,"$1"):s;for(const c of t){const p=c(l);if(p){i.push(p);break}}if(i.length>=Jf)break}return Zv(i)}}function Xv(e){return Array.isArray(e)?Zf(...e):e}function Zv(e){if(!e.length)return[];const t=e.slice(0,Jf),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 eh(){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 e0(){if(!eh())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__)&&
|
|
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=gf(f,o,t);Op(f,C);break e;case 1:o=l;var S=f.type,T=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(ot===null||!ot.has(T)))){f.flags|=4096,t&=-t,f.lanes|=t;var O=yf(f,o,t);Op(f,O);break e}}f=f.return}while(f!==null)}Of(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();xe===e&&ve===t||ir(e,t);do try{vv();break}catch(i){$f(e,i)}while(1);if(vl(),L=n,zo.current=r,oe!==null)throw Error(E(261));return xe=null,ve=0,de}function vv(){for(;oe!==null;)Rf(oe)}function bv(){for(;oe!==null&&!ev();)Rf(oe)}function Rf(e){var t=jf(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Of(e):oe=t,Yl.current=null}function Of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=uv(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=cv(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,wv.bind(null,e,t)),null}function wv(e,t){do Wt();while(ki!==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===xe&&(oe=xe=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=np(),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,$=r;do try{kv()}catch(N){if($===null)throw Error(E(330));Vt($,N),$=$.nextEffect}while($!==null);Si=null,$=r;do try{for(a=e;$!==null;){var m=$.flags;if(m&16&&Fr($.stateNode,""),m&128){var w=$.alternate;if(w!==null){var x=w.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(m&1038){case 2:_f($),$.flags&=-3;break;case 6:_f($),$.flags&=-3,Bl($.alternate,$);break;case 1024:$.flags&=-1025;break;case 1028:$.flags&=-1025,Bl($.alternate,$);break;case 4:Bl($.alternate,$);break;case 8:s=$,Sf(a,s);var C=s.alternate;kf(s),C!==null&&kf(C)}$=$.nextEffect}}catch(N){if($===null)throw Error(E(330));Vt($,N),$=$.nextEffect}while($!==null);if(x=sl,w=np(),m=x.focusedElem,a=x.selectionRange,w!==m&&m&&m.ownerDocument&&tp(m.ownerDocument.documentElement,m)){for(a!==null&&nl(m)&&(w=a.start,x=a.end,x===void 0&&(x=w),"selectionStart"in m?(m.selectionStart=w,m.selectionEnd=Math.min(x,m.value.length)):(x=(w=m.ownerDocument||document)&&w.defaultView||window,x.getSelection&&(x=x.getSelection(),s=m.textContent.length,C=Math.min(a.start,s),a=a.end===void 0?C:Math.min(a.end,s),!x.extend&&C>a&&(s=a,a=C,C=s),s=ep(m,C),o=ep(m,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),x.removeAllRanges(),C>a?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),x.addRange(w)))))),w=[],x=m;x=x.parentNode;)x.nodeType===1&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<w.length;m++)x=w[m],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}so=!!al,sl=al=null,e.current=n,$=r;do try{for(m=e;$!==null;){var S=$.flags;if(S&36&&hv(m,$.alternate,$),S&128){w=void 0;var T=$.ref;if(T!==null){var O=$.stateNode;switch($.tag){case 5:w=O;break;default:w=O}typeof T=="function"?T(w):T.current=w}}$=$.nextEffect}}catch(N){if($===null)throw Error(E(330));Vt($,N),$=$.nextEffect}while($!==null);$=null,nv(),L=i}else e.current=n;if(Yt)Yt=!1,ki=e,xi=t;else for($=r;$!==null;)t=$.nextEffect,$.nextEffect=null,$.flags&8&&(S=$,S.sibling=null,S.stateNode=null),$=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 kv(){for(;$!==null;){var e=$.alternate;Ho||Si===null||($.flags&8?xd($,Si)&&(Ho=!0):$.tag===13&&mv(e,$)&&xd($,Si)&&(Ho=!0));var t=$.flags;t&256&&fv(e,$),!(t&512)||Yt||(Yt=!0,si(97,function(){return Wt(),null})),$=$.nextEffect}}function Wt(){if(xi!==90){var e=97<xi?97:xi;return xi=90,mn(e,_v)}return!1}function xv(e,t){Ql.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function Df(e,t){Jl.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function _v(){if(ki===null)return!1;var e=ki;if(ki=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 Lf(e,t,n){t=Ml(n,t),t=gf(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)Lf(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Lf(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=yf(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 Sv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,xe===e&&(ve&n)===n&&(de===4||de===3&&(ve&62914560)===ve&&500>ge()-Vl?ir(e,0):Gl|=n),Fe(e,t)}function Ev(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 jf;jf=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:af(t),El();break;case 5:Fp(t);break;case 1:Pe(t.type)&&wo(t);break;case 4:xl(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?sf(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 pf(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,kl(t,r,e,n),t=jl(null,t,r,!0,o,n)}else t.tag=0,$e(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=Pv(i),e=Ve(i,e),o){case 0:t=Ll(null,t,i,e,n);break e;case 1:t=of(null,t,i,e,n);break e;case 11:t=ef(null,t,i,e,n);break e;case 14:t=tf(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),of(e,t,r,i,n);case 3:if(af(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,Rp(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=zp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else $e(e,t,r,n),El();t=t.child}return t;case 5:return Fp(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),rf(e,t),$e(e,t,a,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return sf(e,t,n);case 4:return xl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=To(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),ef(e,t,r,i,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(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}$e(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,$e(e,t,r,n),t.child;case 14:return i=t.type,o=Ve(i,t.pendingProps),o=Ve(i.type,o),tf(e,t,i,o,r,n);case 15:return nf(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),Ip(t,r,i),kl(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return pf(e,t,n);case 23:return Dl(e,t,n);case 24:return Dl(e,t,n)}throw Error(E(156,t.tag))};function Cv(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 Cv(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pv(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 $t:return or(n.children,i,o,t);case ed: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 Nv(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 $v(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=wp(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 If(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){If(e,t),(e=e.alternate)&&If(e,t)}function Tv(){return null}function sc(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Nv(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,cp(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 Rv(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=Rv(n,r),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var c=oc(a);l.call(c)}}Nf(function(){Ko(t,a,e,i)})}return oc(a)}_d=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)}},Sd=function(e){if(e.tag===13){var t=Oe(),n=Ht(e);Gt(e,n,t),ac(e,n)}},Ed=function(e,t){return t()},Rs=function(e,t,n){switch(t){case"input":if(xs(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));rd(r),xs(r,i)}}}break;case"textarea":ld(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}},Os=Pf,yd=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)&&(yv(),Wt())},vd=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}};function Af(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ci(t))throw Error(E(200));return $v(e,t,null,n)}var Ov={Events:[ai,Wn,vo,md,gd,Wt,{current:!1}]},Pi={findFiberByHostInstance:pn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Dv={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=kd(e),e===null?null:e.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||Tv,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(Dv),hn=Qo}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ov,Ie.createPortal=Af,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=kd(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?(Nf(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1},Ie.unstable_batchedUpdates=Pf,Ie.unstable_createPortal=function(e,t){return Af(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 Lv=je(Dr),p2="",Mf=Object.prototype.toString;function lc(e){switch(Mf.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return lr(e,Error)}}function ar(e,t){return Mf.call(e)===`[object ${t}]`}function zf(e){return ar(e,"ErrorEvent")}function Ff(e){return ar(e,"DOMError")}function jv(e){return ar(e,"DOMException")}function kn(e){return ar(e,"String")}function Uf(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 Iv(e){return typeof Element<"u"&&lr(e,Element)}function Av(e){return ar(e,"RegExp")}function uc(e){return!!(e&&e.then&&typeof e.then=="function")}function Mv(e){return sr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function zv(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 Fv=Ni(),Uv=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||Uv;for(;n&&o++<r&&(c=Bv(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 Bv(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&&kn(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 Yv(){try{return Fv.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 Hv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gv(e){return e==="http"||e==="https"}function $i(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 Wv(e){const t=Hv.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 Bf({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function Bf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Vv(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(!Gv(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 Yf(e){const t=typeof e=="string"?Wv(e):Bf(e);return Vv(t),t}const Kv="Sentry Logger ",Xo=["debug","info","warn","error","log","assert","trace"];function Hf(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 Gf(){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&&Hf(()=>{Be.console[n](`${Kv}[${n}]:`,...r)})}}):Xo.forEach(n=>{t[n]=()=>{}}),t}let j;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?j=dc("logger",Gf):j=Gf();function Ti(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Wf(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 qv(e,t,n=!1){return kn(e)?Av(t)?t.test(e):kn(t)?n?e===t:e.includes(t):!1:!1}function Zo(e,t=[],n=!1){return t.some(r=>qv(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{Vf(i,r)}catch{}e[t]=i}function fc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Vf(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,fc(e,"__sentry_original__",t)}function hc(e){return e.__sentry_original__}function Qv(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Kf(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:qf(e.target),currentTarget:qf(e.currentTarget),...Qf(e)};return typeof CustomEvent<"u"&&lr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qf(e){try{return Iv(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 Jv(e,t=40){const n=Object.keys(Kf(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 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 Jf=50,Xf=/\(error: (.*)\)/;function Zf(...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=Xf.test(s)?s.replace(Xf,"$1"):s;for(const c of t){const p=c(l);if(p){i.push(p);break}}if(i.length>=Jf)break}return Zv(i)}}function Xv(e){return Array.isArray(e)?Zf(...e):e}function Zv(e){if(!e.length)return[];const t=e.slice(0,Jf),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 eh(){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 e0(){if(!eh())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 t0(){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={},th={};function n0(e){if(!th[e])switch(th[e]=!0,e){case"console":r0();break;case"dom":d0();break;case"xhr":a0();break;case"fetch":i0();break;case"history":s0();break;case"error":p0();break;case"unhandledrejection":f0();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),n0(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
45
|
Name: ${qt(n)}
|
|
46
46
|
Error:`,r)}}function r0(){"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 i0(){e0()&&pe(V,"fetch",function(e){return function(...t){const{method:n,url:r}=o0(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 nh(e){return typeof e=="string"?e:e?wc(e,"url")?e.url:e.toString?e.toString():"":""}function o0(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:nh(n),method:wc(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:nh(t),method:wc(t,"method")?String(t.method).toUpperCase():"GET"}}function a0(){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:kn(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};kn(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 s0(){if(!t0())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 l0=1e3;let na,ra;function c0(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function u0(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 rh(e,t=!1){return n=>{if(!n||ra===n||u0(n))return;const r=n.type==="keypress"?"input":n.type;na===void 0?(e({event:n,name:r,global:t}),ra=n):c0(ra,n)&&(e({event:n,name:r,global:t}),ra=n),clearTimeout(na),na=V.setTimeout(()=>{na=void 0},l0)}}function d0(){if(!("document"in V))return;const e=qe.bind(null,"dom"),t=rh(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=rh(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 p0(){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 f0(){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 h0(){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 ih(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=ih(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function kc(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=ih(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 oh(e){if(e&&e.__sentry_captured__)return!0;try{fc(e,"__sentry_captured__",!0)}catch{}return!1}function ah(e){return Array.isArray(e)?e:[e]}function m0(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function g0(){return"npm"}function sh(){return!m0()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function y0(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 lh(e,t=3,n=100*1024){const r=Xt(e,t);return k0(r)>n?lh(e,t-1,n):r}function xc(e,t,n=1/0,r=1/0,i=h0()){const[o,a]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!zv(t))return t;const s=v0(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 p=Array.isArray(t)?[]:{};let d=0;const f=Kf(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]=xc(y,v,l-1,r,i),d++}return a(t),p}function v0(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]":Mv(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 ${b0(t)}]`}catch(n){return`**non-serializable** (${n})`}}function b0(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function w0(e){return~-encodeURI(e).split(/%..|./).length}function k0(e){return w0(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 xn(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 x0(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=>{xn(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 _0=["fatal","error","warning","log","info","debug"];function S0(e){return e==="warn"?"warning":_0.includes(e)?e:"log"}const ch=Ni(),Sc={nowSeconds:()=>Date.now()/1e3};function E0(){const{performance:e}=ch;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function C0(){try{return y0(module,"perf_hooks").performance}catch{return}}const Ec=sh()?C0():E0(),uh=Ec===void 0?Sc:{nowSeconds:()=>(Ec.timeOrigin+Ec.now())/1e3},sa=Sc.nowSeconds.bind(Sc),dh=uh.nowSeconds.bind(uh);(()=>{const{performance:e}=ch;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 P0(e,t){const[n,r]=e;return[n,[...r,t]]}function ph(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 N0(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:$0(i)}function $0(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 T0(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 R0={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 fh(e){return R0[e]}function hh(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function O0(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:$i(r)},...e.type==="transaction"&&i&&{trace:mc({...i})}}}function D0(e,t,n){const r=[{type:"client_report"},{timestamp:n||sa(),discarded_events:e}];return Di(t?{dsn:t}:{},[r])}const j0=60*1e3;function L0(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?j0:r-t}function I0(e,t){return e[t]||e.all||0}function A0(e,t,n=Date.now()){return I0(e,t)>n}function M0(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+L0(a,r):t===429&&(i.all=r+60*1e3);return i}const mh="production";function z0(e){const t=dh(),n={sid:cr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>U0(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||dh(),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 F0(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ur(e,n)}function U0(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 B0=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:B0;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([...gh(),...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&&L.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?ah(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function gh(){return dc("globalEventProcessors",()=>[])}function Pc(e){gh().push(e)}const Nc=4,Y0=100;class $c{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=Y0}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:sa(),...t},c=o?Hf(()=>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=yh(this);try{t(this)}finally{yh(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.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&&F0(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=mh}=r&&r.getOptions()||{},{userAgent:a}=Be.navigator||{},s=z0({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__)&&L.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function la(){return Be.__SENTRY__=Be.__SENTRY__||{extensions:{},hub:void 0},Be}function yh(e){const t=la(),n=en(t);return Tc(t,e),n}function ne(){const e=la();return(!vh(e)||en(e).isOlderThan(Nc))&&Tc(e,new $c),sh()?H0(e):en(e)}function H0(e){try{const t=la().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return en(e);if(!vh(n)||en(n).isOlderThan(Nc)){const r=en(e).getStackTop();Tc(n,new $c(r.client,Zt.clone(r.scope)))}return en(n)}catch{return en(e)}}function vh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function en(e){return dc("hub",()=>new $c,e)}function Tc(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function bh(e,t){return ne().captureException(e,{captureContext:t})}function wh(e){ne().withScope(e)}const G0="7";function kh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function W0(e){return`${kh(e)}${e.projectId}/envelope/`}function V0(e,t){return Qv({sentry_key:e.publicKey,sentry_version:G0,...t&&{sentry_client:`${t.name}/${t.version}`}})}function K0(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${W0(e)}?${V0(e,r)}`}function q0(e,t){const n=Yf(e),r=`${kh(n)}embed/error-page/`;let i=`dsn=${$i(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 Q0(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 J0(e,t,n,r){const i=hh(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:$i(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Di(o,[a])}function X0(e,t,n,r){const i=hh(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Q0(e,n&&n.sdk);const a=O0(e,i,r,t);return delete e.sdkProcessingMetadata,Di(a,[[{type:o},e]])}const xh=[];function Z0(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=ah(n(t)):r=t;const i=Z0(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&&_h(n,t)}),t}function _h(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__)&&L.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=xn(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:mh),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 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 Sh="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=Yf(t.dsn);const n=K0(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(oh(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.log(Sh);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=Uf(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&&oh(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.log(Sh);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__)&&L.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.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)):xn(!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__)&&L.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){_h(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=X0(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=P0(r,T0(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=J0(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__)&&L.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"?L.log(o.message):L.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=Ch(t),s=Eh(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__)&&
|
|
50
|
-
Event: ${Jt(e)}`),!0):m1(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
51
|
-
Event: ${Jt(e)}`),!0):g1(e,t.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
52
|
-
Event: ${Jt(e)}`),!0):y1(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
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:$0(i)}function $0(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 T0(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 R0={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 fh(e){return R0[e]}function hh(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function O0(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:$i(r)},...e.type==="transaction"&&i&&{trace:mc({...i})}}}function D0(e,t,n){const r=[{type:"client_report"},{timestamp:n||sa(),discarded_events:e}];return Di(t?{dsn:t}:{},[r])}const L0=60*1e3;function j0(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?L0:r-t}function I0(e,t){return e[t]||e.all||0}function A0(e,t,n=Date.now()){return I0(e,t)>n}function M0(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+j0(a,r):t===429&&(i.all=r+60*1e3);return i}const mh="production";function z0(e){const t=dh(),n={sid:cr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>U0(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||dh(),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 F0(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ur(e,n)}function U0(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 B0=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:B0;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([...gh(),...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?ah(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function gh(){return dc("globalEventProcessors",()=>[])}function Pc(e){gh().push(e)}const Nc=4,Y0=100;class $c{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=Y0}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:sa(),...t},c=o?Hf(()=>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=yh(this);try{t(this)}finally{yh(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&&F0(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=mh}=r&&r.getOptions()||{},{userAgent:a}=Be.navigator||{},s=z0({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 yh(e){const t=la(),n=en(t);return Tc(t,e),n}function ne(){const e=la();return(!vh(e)||en(e).isOlderThan(Nc))&&Tc(e,new $c),sh()?H0(e):en(e)}function H0(e){try{const t=la().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return en(e);if(!vh(n)||en(n).isOlderThan(Nc)){const r=en(e).getStackTop();Tc(n,new $c(r.client,Zt.clone(r.scope)))}return en(n)}catch{return en(e)}}function vh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function en(e){return dc("hub",()=>new $c,e)}function Tc(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function bh(e,t){return ne().captureException(e,{captureContext:t})}function wh(e){ne().withScope(e)}const G0="7";function kh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function W0(e){return`${kh(e)}${e.projectId}/envelope/`}function V0(e,t){return Qv({sentry_key:e.publicKey,sentry_version:G0,...t&&{sentry_client:`${t.name}/${t.version}`}})}function K0(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${W0(e)}?${V0(e,r)}`}function q0(e,t){const n=Yf(e),r=`${kh(n)}embed/error-page/`;let i=`dsn=${$i(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 Q0(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 J0(e,t,n,r){const i=hh(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:$i(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Di(o,[a])}function X0(e,t,n,r){const i=hh(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Q0(e,n&&n.sdk);const a=O0(e,i,r,t);return delete e.sdkProcessingMetadata,Di(a,[[{type:o},e]])}const xh=[];function Z0(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=ah(n(t)):r=t;const i=Z0(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&&_h(n,t)}),t}function _h(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=xn(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:mh),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 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 Sh="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=Yf(t.dsn);const n=K0(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(oh(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(Sh);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=Uf(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&&oh(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(Sh);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)):xn(!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){_h(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=X0(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=P0(r,T0(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=J0(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=Ch(t),s=Eh(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 Eh(t)&&r?r(t,n):Ch(t)&&i?i(t,n):t}function Eh(e){return e.type===void 0}function Ch(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 Ph(e,t,n=x0(e.bufferSize||d1)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(ph(a,(d,f)=>{const y=fh(f);if(A0(r,y)){const v=Nh(d,f);e.recordDroppedEvent("ratelimit_backoff",y,v)}else s.push(d)}),s.length===0)return xn();const l=Di(a[0],s),c=d=>{ph(l,(f,y)=>{const v=Nh(f,y);e.recordDroppedEvent(d,fh(y),v)})},p=()=>t({body:N0(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=M0(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"),xn();throw d})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function Nh(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const ca="7.47.0";let $h;class Li{constructor(){Li.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Li.id}setupOnce(){$h=Function.prototype.toString,Function.prototype.toString=function(...t){const n=hc(this)||this;return $h.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
53
|
Event: ${Jt(e)}.
|
|
54
|
-
Url: ${ua(e)}`),!0):v1(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
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
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__)&&L.error(`Cannot extract message for event ${Jt(e)}`),[]}return[]}function w1(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function k1(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?k1(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.error(`Cannot extract url for event ${Jt(e)}`),null}}const M=Be;let Rc=0;function Th(){return Rc>0}function x1(){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 x1(),wh(a=>{a.addEventProcessor(s=>(t.mechanism&&(kc(s,void 0,void 0),Oi(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),bh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Vf(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 Rh(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: ${Jv(t)}`}]},extra:{__serialized__:lh(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:[Rh(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=jc(e,t,i,r);return Oi(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),xn(o)}function N1(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=Lc(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),xn(a)}function jc(e,t,n,r,i){let o;if(zf(t)&&t.error)return Oc(e,t.error);if(Ff(t)||Lv(t)){const a=t;if("stack"in t)o=Oc(e,t);else{const s=a.name||(Ff(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=Lc(e,l,n,r),kc(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=Lc(e,t,n,r),kc(o,`${t}`,void 0),Oi(o,{synthetic:!0}),o)}function Lc(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,Oh="Breadcrumbs";class Li{static __initStatic(){this.id=Oh}__init(){this.name=Li.id}constructor(t){Li.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",T1),this.options.dom&&Qt("dom",$1(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})}}Li.__initStatic();function $1(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__)&&L.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=j1(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 T1(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:S0(e.level),message:Wf(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Wf(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 j1(e){return e&&!!e.target}function L1(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:$i(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||g0();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(Oh);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.warn("SDK not enabled, will not capture user feedback.");return}const n=L1(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__)&&L.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.log("Sending outcomes:",t);const n=D0(t,this._options.tunnel&&$i(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__)&&L.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 Ph(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 Ph(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]=Dh(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]=Dh(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=Zf(...[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}]]),Dh=(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]=Ih();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&&kn(i)?rb(i,o,a,s):jh(jc(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]=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(Th()||i&&i.__sentry_own_request__)return!0;const o=Uf(i)?nb(i):jc(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=zf(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),jh({exception:{values:[{type:a,value:o}]}},t,n,r)}function jh(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=kn(t)&&t.length>0?t:Yv();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__)&&L.log(`Global Handler attached: ${e}`)}function Lh(e,t,n,r){Oi(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ih(){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",Ah),this._options.setInterval&&pe(M,"setInterval",Ah),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 Ah(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=Mh(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function Mh(e,t,n,r,i=[]){if(!lr(n[r],Error)||i.length+1>=t)return i;const o=Rh(e,n[r]);return Mh(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__)&&L.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||!Fh(e,t)||!zh(e,t))}function hb(e,t){const n=Uh(t),r=Uh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Fh(e,t)||!zh(e,t))}function zh(e,t){let n=Bh(e),r=Bh(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 Fh(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 Uh(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Bh(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const mb=[new dr,new ji,new Ai,new Li,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:Xv(e.stackParser||Z1),integrations:e1(e),transport:e.transport||(eh()?F1:B1)};u1(A1,t),e.autoSessionTracking&&yb()}function Yh(e={},t=ne()){if(!M.document){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.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__)&&L.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=q0(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__)&&L.error("Not injecting report dialog. No injection point found in HTML")}function Hh(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function yb(){if(typeof M.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&L.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=ne();e.captureSession&&(Hh(e),Qt("history",({from:t,to:n})=>{t===void 0||t===n||Hh(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
|
+
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 k1(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?k1(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 x1(){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 x1(),wh(a=>{a.addEventProcessor(s=>(t.mechanism&&(kc(s,void 0,void 0),Oi(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),bh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Vf(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 Rh(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: ${Jv(t)}`}]},extra:{__serialized__:lh(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:[Rh(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),xn(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),xn(a)}function Lc(e,t,n,r,i){let o;if(zf(t)&&t.error)return Oc(e,t.error);if(Ff(t)||jv(t)){const a=t;if("stack"in t)o=Oc(e,t);else{const s=a.name||(Ff(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=jc(e,l,n,r),kc(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),kc(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,Oh="Breadcrumbs";class ji{static __initStatic(){this.id=Oh}__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",T1),this.options.dom&&Qt("dom",$1(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 $1(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 T1(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:S0(e.level),message:Wf(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Wf(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:$i(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||g0();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(Oh);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=D0(t,this._options.tunnel&&$i(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 Ph(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 Ph(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]=Dh(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]=Dh(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=Zf(...[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}]]),Dh=(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]=Ih();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&&kn(i)?rb(i,o,a,s):Lh(Lc(n,l||i,void 0,r,!1),o,a,s);c.level="error",jh(t,l,c,"onerror")})}function tb(){Qt("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(Th()||i&&i.__sentry_own_request__)return!0;const o=Uf(i)?nb(i):Lc(n,i,void 0,r,!0);o.level="error",jh(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=zf(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,p=isNaN(parseInt(n,10))?void 0:n,d=kn(t)&&t.length>0?t:Yv();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 jh(e,t,n,r){Oi(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ih(){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",Ah),this._options.setInterval&&pe(M,"setInterval",Ah),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 Ah(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=Mh(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function Mh(e,t,n,r,i=[]){if(!lr(n[r],Error)||i.length+1>=t)return i;const o=Rh(e,n[r]);return Mh(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||!Fh(e,t)||!zh(e,t))}function hb(e,t){const n=Uh(t),r=Uh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Fh(e,t)||!zh(e,t))}function zh(e,t){let n=Bh(e),r=Bh(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 Fh(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 Uh(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Bh(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:Xv(e.stackParser||Z1),integrations:e1(e),transport:e.transport||(eh()?F1:B1)};u1(A1,t),e.autoSessionTracking&&yb()}function Yh(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=q0(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 Hh(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&&(Hh(e),Qt("history",({from:t,to:n})=>{t===void 0||t===n||Hh(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
|
|
57
57
|
* react-is.production.min.js
|
|
58
58
|
*
|
|
59
59
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the MIT license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
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,ka=le?Symbol.for("react.memo"):60115,xa=le?Symbol.for("react.lazy"):60116,kb=le?Symbol.for("react.block"):60121,xb=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 xa:case ka:case ga:return e;default:return t}}case zc:return t}}}function Gh(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=xa,z.Memo=ka,z.Portal=zc,z.Profiler=ma,z.StrictMode=ha,z.Suspense=wa,z.isAsyncMode=function(e){return Gh(e)||De(e)===Fc},z.isConcurrentMode=Gh,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)===xa},z.isMemo=function(e){return De(e)===ka},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===xa||e.$$typeof===ka||e.$$typeof===ga||e.$$typeof===ya||e.$$typeof===ba||e.$$typeof===xb||e.$$typeof===_b||e.$$typeof===Sb||e.$$typeof===kb)},z.typeOf=De,function(e){e.exports=z}(bb);var Wh=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},Vh={};Vh[Wh.ForwardRef]=Eb,Vh[Wh.Memo]=Cb;function Pb(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Kh={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 k.Component{__init(){this.state=Kh}__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&&Yh({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;wh(s=>{if(Pb(k.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=bh(t,{contexts:{react:{componentStack:n}}});i&&i(t,n,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&Yh({...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(Kh)}}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,k.isValidElement(i)?i:(t&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
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,ka=le?Symbol.for("react.memo"):60115,xa=le?Symbol.for("react.lazy"):60116,kb=le?Symbol.for("react.block"):60121,xb=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 xa:case ka:case ga:return e;default:return t}}case zc:return t}}}function Gh(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=xa,z.Memo=ka,z.Portal=zc,z.Profiler=ma,z.StrictMode=ha,z.Suspense=wa,z.isAsyncMode=function(e){return Gh(e)||De(e)===Fc},z.isConcurrentMode=Gh,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)===xa},z.isMemo=function(e){return De(e)===ka},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===xa||e.$$typeof===ka||e.$$typeof===ga||e.$$typeof===ya||e.$$typeof===ba||e.$$typeof===xb||e.$$typeof===_b||e.$$typeof===Sb||e.$$typeof===kb)},z.typeOf=De,function(e){e.exports=z}(bb);var Wh=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},Vh={};Vh[Wh.ForwardRef]=Eb,Vh[Wh.Memo]=Cb;function Pb(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Kh={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 k.Component{__init(){this.state=Kh}__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&&Yh({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;wh(s=>{if(Pb(k.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=bh(t,{contexts:{react:{componentStack:n}}});i&&i(t,n,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&Yh({...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(Kh)}}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,k.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 k.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=>k.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},k.createElement("defs",null,k.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.8px;}")),k.createElement("circle",{className:"cls-1",cx:12,cy:9.75,r:5.25}),k.createElement("path",{className:"cls-1",d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0"}),k.createElement("circle",{className:"cls-1",cx:12,cy:12,r:11.25})),qh=`
|
|
64
64
|
.gh-portal-avatar {
|
|
65
65
|
position: relative;
|
|
66
66
|
display: flex;
|
|
@@ -83,7 +83,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
83
83
|
opacity: 1;
|
|
84
84
|
max-width: unset;
|
|
85
85
|
}
|
|
86
|
-
`,$b=({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=$b({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})}),Tb=e=>k.createElement("svg",{width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("g",{fill:"none",fillRule:"evenodd"},k.createElement("path",{stroke:"#FFF",strokeWidth:1.5,strokeLinecap:"round",d:"M12.5 2v20M2 12.5h20"}))),Ob=e=>k.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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=>k.createElement("svg",{width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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"})),
|
|
86
|
+
`,$b=({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=$b({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})}),Tb=e=>k.createElement("svg",{width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("g",{fill:"none",fillRule:"evenodd"},k.createElement("path",{stroke:"#FFF",strokeWidth:1.5,strokeLinecap:"round",d:"M12.5 2v20M2 12.5h20"}))),Ob=e=>k.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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=>k.createElement("svg",{width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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=>k.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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=`
|
|
87
87
|
/* Colors
|
|
88
88
|
/* ----------------------------------------------------- */
|
|
89
89
|
:root {
|
|
@@ -308,7 +308,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
308
308
|
display: none;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`,jb=Hc+`
|
|
312
312
|
.gh-portal-triggerbtn-wrapper {
|
|
313
313
|
display: inline-flex;
|
|
314
314
|
align-items: flex-start;
|
|
@@ -382,11 +382,11 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
382
382
|
width: 60px;
|
|
383
383
|
height: 60px;
|
|
384
384
|
}
|
|
385
|
-
`+qh,kt=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(xt({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 xt({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?kt(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 Jh({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 Jh({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 xt({member:e})?(e.subscriptions||[]).find(r=>r.id===t):null}function Xh({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=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 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 Zh({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 em({site:e}){const t=vr({site:e});return(t==null?void 0:t.benefits)||[]}function tm({site:e}){return $a({site:e})?"Free membership":"Free"}function nm({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 rm({member:e}){var t;return(t=e==null?void 0:e.email_suppression)==null?void 0:t.suppressed}function $a({site:e}){return Ca({site:e}).length===1&&En({site:e})}function Kc({sub:e}={}){return!!(e!=null&&e.trial_end_at&&!im(new Date(e==null?void 0:e.trial_end_at)))}function im(e){const t=new Date;return t.setHours(0,0,0,0),e<t}function om({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 Ta({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=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 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:tm({site:e}),...a})}return t==="free"&&En({site:e})||Ta({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}`},kr=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 am({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 ja(){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()||sm()},lw=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview"},sm=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview/offer"},cw={preview:sw,offerPreview:sm,dev:function({customSiteUrl:e=""}={}){return!1},test:function(){return!1}},K=(e=[],t={})=>e.some(n=>{const r=cw[n];return!!(r&&r(t))}),lm={"icon-1":Tb,"icon-2":Rb,"icon-3":Ob,"icon-4":Db,"icon-5":jb},cm=({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 um 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=cm({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(lm).includes(t)){const o=lm[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(um,"contextType",R);class dm 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
|
+
`+qh,kt=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(xt({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 xt({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?kt(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 Jh({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 Jh({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 xt({member:e})?(e.subscriptions||[]).find(r=>r.id===t):null}function Xh({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=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 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 Zh({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 em({site:e}){const t=vr({site:e});return(t==null?void 0:t.benefits)||[]}function tm({site:e}){return $a({site:e})?"Free membership":"Free"}function nm({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 rm({member:e}){var t;return(t=e==null?void 0:e.email_suppression)==null?void 0:t.suppressed}function $a({site:e}){return Ca({site:e}).length===1&&En({site:e})}function Kc({sub:e}={}){return!!(e!=null&&e.trial_end_at&&!im(new Date(e==null?void 0:e.trial_end_at)))}function im(e){const t=new Date;return t.setHours(0,0,0,0),e<t}function om({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 Ta({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=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 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:tm({site:e}),...a})}return t==="free"&&En({site:e})||Ta({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}`},kr=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 am({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()||sm()},lw=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview"},sm=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview/offer"},cw={preview:sw,offerPreview:sm,dev:function({customSiteUrl:e=""}={}){return!1},test:function(){return!1}},K=(e=[],t={})=>e.some(n=>{const r=cw[n];return!!(r&&r(t))}),lm={"icon-1":Tb,"icon-2":Rb,"icon-3":Ob,"icon-4":Db,"icon-5":Lb},cm=({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 um 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=cm({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(lm).includes(t)){const o=lm[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(um,"contextType",R);class dm 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=`
|
|
386
386
|
:root {
|
|
387
387
|
--brandcolor: ${this.context.brandColor}
|
|
388
388
|
}
|
|
389
|
-
`+
|
|
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={...cm({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(um,{isPopupOpen:n,updateWidth:a=>this.onWidthChange(a)})})}}Z(dm,"contextType",R);const uw=Hc+`
|
|
390
390
|
.gh-portal-notification-wrapper {
|
|
391
391
|
position: relative;
|
|
392
392
|
overflow: hidden;
|
|
@@ -679,7 +679,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
679
679
|
width: 38px !important;
|
|
680
680
|
height: 22px !important;
|
|
681
681
|
}
|
|
682
|
-
`;function
|
|
682
|
+
`;function ja({id:e,label:t="",onToggle:n,checked:r=!1,dataTestId:i="switch-input"}){const{action:o}=k.useContext(R),[a,s]=k.useState(r),l=["updateNewsletter:failed","updateNewsletter:success"].includes(o);return k.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
683
|
`;let we=(Eu=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(Eu,"contextType",R),Eu);const ym=e=>k.createElement("svg",{width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M1 6.89286L6.10714 12L13.9643 1",stroke:"#222222",strokeWidth:2}));function kw(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 xw=({site:e})=>`
|
|
684
684
|
.gh-portal-products {
|
|
685
685
|
display: flex;
|
|
@@ -1182,7 +1182,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
1182
1182
|
min-height: unset;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
`,_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(ym,{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 vm({price:e}){const{site:t}=k.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}=k.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 bm({product:e}){const{selectedInterval:t}=k.useContext(_r),{site:n}=k.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=kw(e.monthlyPrice.amount,e.yearlyPrice.amount),c=fe(a.currency);return Pa({site:n})?u(U,{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:kr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),u(Sw,{trialDays:o,discount:l,selectedInterval:t})]}),t==="year"?u(wm,{discount:l,trialDays:o}):"",u(vm,{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:kr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),t==="year"?u(wm,{discount:l}):""]}),u(vm,{price:s})]})}function Ew({products:e,handleChooseSignup:t,error:n}){const{site:r,action:i}=k.useContext(R),{selectedProduct:o,setSelectedProduct:a}=k.useContext(_r);let s=o==="free"?"gh-portal-product-card free checked":"gh-portal-product-card free";const l=vr({site:r});let c=nm({site:r}),p=i==="signup:running";gr()&&(p=!0);let d="$";e&&e[1]?d=fe(e[1].monthlyPrice.currency):d="$";const f=$a({site:r}),y=em({site:r});if(f){if(!c&&!y.length)return null;s+=" only-free"}return!c&&!y.length&&(c="Free preview"),u(U,{children:b("div",{className:s,onClick:v=>{v.stopPropagation(),a("free")},"data-test-tier":"free",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:tm({site:r})}),f?"":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:[c?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:c}):"",u(eu,{product:l})]}),f?"":b("div",{className:"gh-portal-btn-product",children:[u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",disabled:p,onClick:v=>{t(v,"free")},children:o==="free"&&p?u(Fi,{className:"gh-portal-loadingicon"}):"Choose"}),n&&u("div",{className:"gh-portal-error-message",children:n})]})]})]})})}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,error:i}){var y;const{selectedProduct:o,setSelectedProduct:a}=k.useContext(_r),{action:s}=k.useContext(R),l=e.trial_days,c=o===e.id?"gh-portal-product-card checked":"gh-portal-product-card",p=(y=t==null?void 0:t.filter(v=>v.type==="paid"))==null?void 0:y.length;let d=!!["signup:running","checkoutPlan:running"].includes(s);gr()&&(d=!0);let f=e.description;return(!e.benefits||!e.benefits.length)&&!f&&(f="Full access"),u(U,{children:b("div",{className:c,onClick:v=>{v.stopPropagation(),a(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(bm,{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:f}),u(eu,{product:e})]}),b("div",{className:"gh-portal-btn-product",children:[u("button",{"data-test-button":"select-tier",disabled:d,className:"gh-portal-btn",onClick:v=>{const _=tu({products:t,selectedInterval:n,selectedProduct:e.id});r(v,_.id)},children:u(Cw,{selectedProduct:o,product:e,disabled:d,noOfProducts:p,trialDays:l})}),i&&u("div",{className:"gh-portal-error-message",children:i})]})]})]},e.id)})}function Nw({product:e,products:t,selectedInterval:n,errors:r}){const i=tu({products:t,selectedInterval:n,selectedProduct:e.id});return i&&i.id&&r&&r[i.id]?r[i.id]:null}function $w({products:e,selectedInterval:t,handleChooseSignup:n,errors:r}){return e.map(i=>{const o=Nw({product:i,products:e,selectedInterval:t,errors:r});return i.id==="free"?u(Ew,{products:e,handleChooseSignup:n,error:o},i.id):u(Pw,{products:e,product:i,selectedInterval:t,handleChooseSignup:n,error:o},i.id)})}function wm({discount:e,trialDays:t}){const{site:n}=k.useContext(R),{portal_plans:r}=n;return e===0||!r.includes("monthly")?null:Pa({site:n})?u(U,{children:b("span",{className:"gh-portal-discount-label-trial",children:[e,"% discount"]})}):u(U,{children:b("span",{className:"gh-portal-discount-label",children:[e,"% discount"]})})}function km({products:e,selectedInterval:t,setSelectedInterval:n}){const{site:r,t:i}=k.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 tu({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 xm({onPlanSelect:e,products:t,type:n=null,handleChooseSignup:r,errors:i}){var h,m;const{site:o}=k.useContext(R),{portal_plans:a}=o,s=Ia({portalPlans:a}),l=t.length>0?t[0].id:"free",[c,p]=k.useState(s),[d,f]=k.useState(l),y=tu({products:t,selectedInterval:c,selectedProduct:d}),v=Ia({portalPlans:a,selectedInterval:c});if(k.useEffect(()=>{f(l)},[l]),k.useEffect(()=>{e(null,y.id)},[y.id,e]),!a.includes("monthly")&&!a.includes("yearly")||t.length===0)return null;let _="gh-portal-products";n==="upgrade"&&(_+=" gh-portal-upgrade-product");let g=((h=t.find(w=>w.id===d))==null?void 0:h.id)||((m=t.find(w=>w.type==="paid"))==null?void 0:m.id);return u(_r.Provider,{value:{selectedInterval:v,selectedProduct:g,setSelectedProduct:f},children:b("section",{className:_,children:[$a({site:o})?"":u(km,{products:t,selectedInterval:v,setSelectedInterval:p}),u("div",{className:"gh-portal-products-grid",children:u($w,{products:t,selectedInterval:v,handleChooseSignup:r,errors:i})})]})})}function Tw({onPlanSelect:e,selectedPlan:t,products:n,type:r=null}){var h;const{site:i,member:o}=k.useContext(R),{portal_plans:a}=i,s=Sn({member:o}),l=om({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]=k.useState(c),[y,v]=k.useState(p),_=Ia({portalPlans:a,selectedInterval:d});if(k.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(km,{selectedInterval:_,setSelectedInterval:f}),u("div",{className:"gh-portal-products-grid",children:u(Dw,{products:n,onPlanSelect:e})})]})})}function Rw({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 Ow({product:e,onPlanSelect:t}){const{member:n,site:r}=k.useContext(R),{selectedProduct:i,setSelectedProduct:o,selectedInterval:a}=k.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(bm,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[e.description?u(Rw,{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 Dw({products:e,onPlanSelect:t}){return e.map(n=>n.id==="free"?null:u(Ow,{product:n,onPlanSelect:t},n.id))}function jw({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(xm,{type:"upgrade",products:e,onPlanSelect:n,handleChooseSignup:(...a)=>{r(...a)}})})})}const Lw=`
|
|
1185
|
+
`,_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(ym,{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 vm({price:e}){const{site:t}=k.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}=k.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 bm({product:e}){const{selectedInterval:t}=k.useContext(_r),{site:n}=k.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=kw(e.monthlyPrice.amount,e.yearlyPrice.amount),c=fe(a.currency);return Pa({site:n})?u(U,{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:kr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),u(Sw,{trialDays:o,discount:l,selectedInterval:t})]}),t==="year"?u(wm,{discount:l,trialDays:o}):"",u(vm,{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:kr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),t==="year"?u(wm,{discount:l}):""]}),u(vm,{price:s})]})}function Ew({products:e,handleChooseSignup:t,error:n}){const{site:r,action:i}=k.useContext(R),{selectedProduct:o,setSelectedProduct:a}=k.useContext(_r);let s=o==="free"?"gh-portal-product-card free checked":"gh-portal-product-card free";const l=vr({site:r});let c=nm({site:r}),p=i==="signup:running";gr()&&(p=!0);let d="$";e&&e[1]?d=fe(e[1].monthlyPrice.currency):d="$";const f=$a({site:r}),y=em({site:r});if(f){if(!c&&!y.length)return null;s+=" only-free"}return!c&&!y.length&&(c="Free preview"),u(U,{children:b("div",{className:s,onClick:v=>{v.stopPropagation(),a("free")},"data-test-tier":"free",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:tm({site:r})}),f?"":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:[c?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:c}):"",u(eu,{product:l})]}),f?"":b("div",{className:"gh-portal-btn-product",children:[u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",disabled:p,onClick:v=>{t(v,"free")},children:o==="free"&&p?u(Fi,{className:"gh-portal-loadingicon"}):"Choose"}),n&&u("div",{className:"gh-portal-error-message",children:n})]})]})]})})}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,error:i}){var y;const{selectedProduct:o,setSelectedProduct:a}=k.useContext(_r),{action:s}=k.useContext(R),l=e.trial_days,c=o===e.id?"gh-portal-product-card checked":"gh-portal-product-card",p=(y=t==null?void 0:t.filter(v=>v.type==="paid"))==null?void 0:y.length;let d=!!["signup:running","checkoutPlan:running"].includes(s);gr()&&(d=!0);let f=e.description;return(!e.benefits||!e.benefits.length)&&!f&&(f="Full access"),u(U,{children:b("div",{className:c,onClick:v=>{v.stopPropagation(),a(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(bm,{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:f}),u(eu,{product:e})]}),b("div",{className:"gh-portal-btn-product",children:[u("button",{"data-test-button":"select-tier",disabled:d,className:"gh-portal-btn",onClick:v=>{const _=tu({products:t,selectedInterval:n,selectedProduct:e.id});r(v,_.id)},children:u(Cw,{selectedProduct:o,product:e,disabled:d,noOfProducts:p,trialDays:l})}),i&&u("div",{className:"gh-portal-error-message",children:i})]})]})]},e.id)})}function Nw({product:e,products:t,selectedInterval:n,errors:r}){const i=tu({products:t,selectedInterval:n,selectedProduct:e.id});return i&&i.id&&r&&r[i.id]?r[i.id]:null}function $w({products:e,selectedInterval:t,handleChooseSignup:n,errors:r}){return e.map(i=>{const o=Nw({product:i,products:e,selectedInterval:t,errors:r});return i.id==="free"?u(Ew,{products:e,handleChooseSignup:n,error:o},i.id):u(Pw,{products:e,product:i,selectedInterval:t,handleChooseSignup:n,error:o},i.id)})}function wm({discount:e,trialDays:t}){const{site:n}=k.useContext(R),{portal_plans:r}=n;return e===0||!r.includes("monthly")?null:Pa({site:n})?u(U,{children:b("span",{className:"gh-portal-discount-label-trial",children:[e,"% discount"]})}):u(U,{children:b("span",{className:"gh-portal-discount-label",children:[e,"% discount"]})})}function km({products:e,selectedInterval:t,setSelectedInterval:n}){const{site:r,t:i}=k.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 tu({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 xm({onPlanSelect:e,products:t,type:n=null,handleChooseSignup:r,errors:i}){var h,m;const{site:o}=k.useContext(R),{portal_plans:a}=o,s=Ia({portalPlans:a}),l=t.length>0?t[0].id:"free",[c,p]=k.useState(s),[d,f]=k.useState(l),y=tu({products:t,selectedInterval:c,selectedProduct:d}),v=Ia({portalPlans:a,selectedInterval:c});if(k.useEffect(()=>{f(l)},[l]),k.useEffect(()=>{e(null,y.id)},[y.id,e]),!a.includes("monthly")&&!a.includes("yearly")||t.length===0)return null;let _="gh-portal-products";n==="upgrade"&&(_+=" gh-portal-upgrade-product");let g=((h=t.find(w=>w.id===d))==null?void 0:h.id)||((m=t.find(w=>w.type==="paid"))==null?void 0:m.id);return u(_r.Provider,{value:{selectedInterval:v,selectedProduct:g,setSelectedProduct:f},children:b("section",{className:_,children:[$a({site:o})?"":u(km,{products:t,selectedInterval:v,setSelectedInterval:p}),u("div",{className:"gh-portal-products-grid",children:u($w,{products:t,selectedInterval:v,handleChooseSignup:r,errors:i})})]})})}function Tw({onPlanSelect:e,selectedPlan:t,products:n,type:r=null}){var h;const{site:i,member:o}=k.useContext(R),{portal_plans:a}=i,s=Sn({member:o}),l=om({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]=k.useState(c),[y,v]=k.useState(p),_=Ia({portalPlans:a,selectedInterval:d});if(k.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(km,{selectedInterval:_,setSelectedInterval:f}),u("div",{className:"gh-portal-products-grid",children:u(Dw,{products:n,onPlanSelect:e})})]})})}function Rw({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 Ow({product:e,onPlanSelect:t}){const{member:n,site:r}=k.useContext(R),{selectedProduct:i,setSelectedProduct:o,selectedInterval:a}=k.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(bm,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[e.description?u(Rw,{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 Dw({products:e,onPlanSelect:t}){return e.map(n=>n.id==="free"?null:u(Ow,{product:n,onPlanSelect:t},n.id))}function Lw({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(xm,{type:"upgrade",products:e,onPlanSelect:n,handleChooseSignup:(...a)=>{r(...a)}})})})}const jw=`
|
|
1186
1186
|
.account-plan.full-size .gh-portal-main-title {
|
|
1187
1187
|
font-size: 3.2rem;
|
|
1188
1188
|
margin-top: 44px;
|
|
@@ -1211,7 +1211,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
1211
1211
|
height: 62px;
|
|
1212
1212
|
padding: 6px 12px;
|
|
1213
1213
|
}
|
|
1214
|
-
`;function Iw({confirmationType:e}){if(e==="changePlan")return"Confirm subscription";if(e==="cancel")return"Cancel subscription";if(e==="subscribe")return"Subscribe"}const Aw=({onBack:e,showConfirmation:t,confirmationType:n})=>{const{member:r}=k.useContext(R);let i=xt({member:r})?"Change plan":"Choose a plan";return t&&(i=Iw({confirmationType:n})),u("header",{className:"gh-portal-detail-header",children:u("h3",{className:"gh-portal-main-title",children:i})})},Mw=({member:e,onCancelSubscription:t,action:n,brandColor:r})=>{const{site:i,t:o}=k.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%"}})})},zw=({plan:e,type:t,onConfirm:n})=>{const{site:r,action:i,member:o,brandColor:a,t:s}=k.useContext(R),[l,c]=k.useState(""),p=Qe({member:o}),d=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(i),f=s("Confirm");let y=kt(p.current_period_end);Sn({member:o}).id!==e.id&&(y="today");const _=kr(e.price),g=`${e.currency_symbol}${_}/${e.interval} – Starting ${y}`,h=om({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:kt(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"}})]})},Fw=({plans:e,selectedPlan:t,onPlanSelect:n,onCancelSubscription:r})=>{const{member:i,action:o,brandColor:a}=k.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(Mw,{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}=k.useContext(R),l=zb({site:a,member:s});return u(
|
|
1214
|
+
`;function Iw({confirmationType:e}){if(e==="changePlan")return"Confirm subscription";if(e==="cancel")return"Cancel subscription";if(e==="subscribe")return"Subscribe"}const Aw=({onBack:e,showConfirmation:t,confirmationType:n})=>{const{member:r}=k.useContext(R);let i=xt({member:r})?"Change plan":"Choose a plan";return t&&(i=Iw({confirmationType:n})),u("header",{className:"gh-portal-detail-header",children:u("h3",{className:"gh-portal-main-title",children:i})})},Mw=({member:e,onCancelSubscription:t,action:n,brandColor:r})=>{const{site:i,t:o}=k.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%"}})})},zw=({plan:e,type:t,onConfirm:n})=>{const{site:r,action:i,member:o,brandColor:a,t:s}=k.useContext(R),[l,c]=k.useState(""),p=Qe({member:o}),d=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(i),f=s("Confirm");let y=kt(p.current_period_end);Sn({member:o}).id!==e.id&&(y="today");const _=kr(e.price),g=`${e.currency_symbol}${_}/${e.interval} – Starting ${y}`,h=om({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:kt(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"}})]})},Fw=({plans:e,selectedPlan:t,onPlanSelect:n,onCancelSubscription:r})=>{const{member:i,action:o,brandColor:a}=k.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(Mw,{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}=k.useContext(R),l=zb({site:a,member:s});return u(Lw,{products:l,selectedPlan:n,changePlan:o,onPlanSelect:r,onPlanCheckout:i})}const Uw=({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})})})},Bw=({plans:e,selectedPlan:t,confirmationPlan:n,confirmationType:r,showConfirmation:i=!1,onPlanSelect:o,onPlanCheckout:a,onConfirm:s,onCancelSubscription:l})=>{const{member:c}=k.useContext(R),p=zi({member:c})&&yr({member:c});return!xt({member:c})||p?u(Uw,{plans:e,selectedPlan:t,onPlanSelect:o,onPlanCheckout:a}):i?u(zw,{plan:n,type:r,onConfirm:s}):u(Fw,{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(!xt({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=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!xt({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(xt({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=Jh({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(U,{children:b("div",{className:"gh-portal-content",children:[u(xr,{onClick:l=>this.onBack(l),hidden:!s&&!i}),u(we,{}),u(Aw,{onBack:l=>this.onBack(l),confirmationType:a,showConfirmation:i}),u(Bw,{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 Yw=`
|
|
1215
1215
|
.gh-portal-input {
|
|
1216
1216
|
-webkit-appearance: none;
|
|
1217
1217
|
-moz-appearance: none;
|
|
@@ -1272,7 +1272,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
1272
1272
|
.gh-portal-popup-container:not(.preview) .gh-portal-input:disabled::placeholder {
|
|
1273
1273
|
color: var(--grey9);
|
|
1274
1274
|
}
|
|
1275
|
-
`;function Hw({message:e,style:t}){return e?u("p",{style:{...t||{}},children:e}):null}function Gw({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 _=k.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="",x="";switch(t){case"input-email":m="off",w="off",x="off";break;case"input-name":m="off",w="off";break}return k.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(Hw,{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:x,"aria-label":n})]})}class Em extends q.Component{render(){const{t}=this.context;return u(U,{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 Ww=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},k.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},k.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 Vw({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(Ww,{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(
|
|
1275
|
+
`;function Hw({message:e,style:t}){return e?u("p",{style:{...t||{}},children:e}):null}function Gw({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 _=k.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="",x="";switch(t){case"input-email":m="off",w="off",x="off";break;case"input-name":m="off",w="off";break}return k.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(Hw,{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:x,"aria-label":n})]})}class Em extends q.Component{render(){const{t}=this.context;return u(U,{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 Ww=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},k.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},k.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 Vw({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(Ww,{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 Kw({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=k.useContext(R);return wr({site:n}).map(i=>u(Vw,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function nu({pageData:e,onBack:t}){const{brandColor:n,site:r,onAction:i,action:o,t:a}=k.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]=k.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(Kw,{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:x}=e;i("signup",{name:h,email:m,plan:w,newsletters:g,offerId:x})},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 qw=({field:e,onChange:t,onBlur:n=()=>{},onKeyDown:r=()=>{}})=>e?u(U,{children:u(Gw,{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 k.Component{constructor(t){super(t),this.state={}}render(){const{fields:t,onChange:n,onBlur:r,onKeyDown:i}=this.props,o=t.map(a=>u(qw,{field:a,onChange:n,onBlur:r,onKeyDown:i},a.name));return u(U,{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()),Jw=({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=Jw({field:n});t[r]=i}),t},Xw=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},k.createElement("defs",null,k.createElement("style",null,".inviteicon{fill: currentColor;}")),k.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"})),Zw=`
|
|
1276
1276
|
.gh-portal-back-sitetitle {
|
|
1277
1277
|
position: absolute;
|
|
1278
1278
|
top: 35px;
|
|
@@ -1811,7 +1811,15 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1811
1811
|
.gh-portal-cancel {
|
|
1812
1812
|
white-space: nowrap;
|
|
1813
1813
|
}
|
|
1814
|
-
`;class $m 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(nu,{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(U,{}):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(ym,{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:kr(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:kr(this.renderRoundedPrice(r))})]})})}renderOldTierPrice({offer:t,price:n}){return t.type==="trial"?null:b("div",{className:"gh-portal-offer-oldprice",children:[fe(n.currency)," ",kr(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(U,{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(U,{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($m,"contextType",R);const Tm=e=>k.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("defs",null,k.createElement("style",null,"path{stroke:currentColor;}")),k.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=>k.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("defs",null,k.createElement("style",null,"path{stroke:currentColor;}")),k.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"})),ak=e=>k.createElement("svg",{width:96,height:56,viewBox:"0 0 96 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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=ja();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 T,O;const m=new URL(e),w=await s.member.identity(),x=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=(T=window.FPROM||window.$FPROM)==null?void 0:T.data)==null?void 0:O.tid,urlHistory:ja(),...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:x,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 sk=`
|
|
1814
|
+
|
|
1815
|
+
.gh-portal-offer .gh-portal-signup-terms-wrapper {
|
|
1816
|
+
margin: 8px auto 16px;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
.gh-portal-offer .gh-portal-signup-terms.gh-portal-error {
|
|
1820
|
+
margin: 0;
|
|
1821
|
+
}
|
|
1822
|
+
`;class $m 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,termsCheckboxChecked:!1}}getFormErrors(t){const r=this.context.site.portal_signup_checkbox_required&&!t.termsCheckboxChecked;return{...Ma({fields:this.getInputFields({state:t})}),checkbox:r}}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}renderSignupTerms(){var l;const{site:t}=this.context;if(t.portal_signup_terms_html===null||t.portal_signup_terms_html==="")return null;const n=c=>{this.setState({termsCheckboxChecked:c.target.checked})},r=u("div",{className:"gh-portal-signup-terms-content",dangerouslySetInnerHTML:{__html:t.portal_signup_terms_html}}),i=t.portal_signup_checkbox_required?b("label",{children:[u("input",{type:"checkbox",checked:!!this.state.termsCheckboxChecked,required:!0,onChange:n}),u("span",{class:"checkbox"}),r]}):r,a=`gh-portal-signup-terms ${(l=this.state.errors)!=null&&l.checkbox?"gh-portal-error":""}`;return u("div",{className:a,onClick:c=>{c.target.tagName==="A"&&(c.preventDefault(),window.open(c.target.href,"_blank"))},children:i})}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:this.getFormErrors(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(nu,{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(U,{}):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(ym,{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:kr(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:kr(this.renderRoundedPrice(r))})]})})}renderOldTierPrice({offer:t,price:n}){return t.type==="trial"?null:b("div",{className:"gh-portal-offer-oldprice",children:[fe(n.currency)," ",kr(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(U,{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}):""]})}),b("div",{className:"gh-portal-btn-container sticky m32",children:[u("div",{className:"gh-portal-signup-terms-wrapper",children:this.renderSignupTerms()}),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(U,{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($m,"contextType",R);const Tm=e=>k.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("defs",null,k.createElement("style",null,"path{stroke:currentColor;}")),k.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=>k.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("defs",null,k.createElement("style",null,"path{stroke:currentColor;}")),k.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"})),ak=e=>k.createElement("svg",{width:96,height:56,viewBox:"0 0 96 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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 T,O;const m=new URL(e),w=await s.member.identity(),x=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=(T=window.FPROM||window.$FPROM)==null?void 0:T.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:x,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 sk=`
|
|
1815
1823
|
.gh-portal-feedback {
|
|
1816
1824
|
|
|
1817
1825
|
}
|
|
@@ -3140,11 +3148,11 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
3140
3148
|
.gh-portal-hide {
|
|
3141
3149
|
display: none;
|
|
3142
3150
|
}
|
|
3143
|
-
`;function wk({site:e}){return Hc+yk+ww+Lw+Yw+xw({site:e})+bw+mw+vw+qh+tk+Zw+ok({site:e})+nk+vk+bk+sk+hk+mk+gk}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(U,{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 kk=({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"})})})})]})},xk=()=>{const{member:e,brandColor:t,t:n}=k.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")})]})},_k=()=>{const{site:e,action:t,brandColor:n,onAction:r}=k.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%"}})},Sk=()=>{const{member:e,site:t}=k.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=kt(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=kt(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 ",kt(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(_k,{})]})},Ek=()=>{const{member:e,onAction:t,action:n,brandColor:r}=k.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 ",kt(p)]})},{}),u(he,{onClick:p=>{t("continueSubscription",{subscriptionId:i.id})},isRunning:a,disabled:s,isPrimary:l,brandColor:r,label:o,style:{width:"100%"}})]})},Ck=e=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("defs",null,k.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}")),k.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"}),k.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"})),Pk=()=>{const{member:e,site:t,onAction:n}=k.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:T,interval:O}=d;g=`${Intl.NumberFormat("en",{currency:T,style:"currency"}).format(S/100)}/${O}`}let h=$k({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 x=()=>h?b("p",{className:"gh-portal-account-discountcontainer",children:[u(Ck,{className:"gh-portal-account-tagicon"}),u("span",{children:h})]}):null,C=Kc({sub:y});return C&&(w="gh-portal-account-old-price"),C?b(U,{children:[u("p",{className:w,children:g}),u(Nk,{subscription:y})]}):b(U,{children:[u("p",{className:w,children:g}),u(x,{})]})},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}=k.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})&&Xh({member:e})&&(y=Xh({member:e})),b(U,{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 Nk({subscription:e,priceLabel:t}){if(Kc({sub:e})){const n=kt(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 $k({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(im(l))return"";o=`Ends ${kt(l)}`}r=`${ew({offer:e,price:t,useFormatted:!0})}/${t.interval}${o?` — ${o}`:""}`}return r}function Tk(){const{member:e,site:t,onAction:n}=k.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(La,{dataTestId:"default-newsletter-toggle",id:"default-newsletter-toggle",onToggle:s=>{a(s)},checked:i})})]})}const jm=e=>k.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e},k.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"}),k.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 Rk(){const{onAction:e,member:t,t:n}=k.useContext(R),r=rm({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(jm,{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 Ok=()=>{const{member:e,onAction:t,site:n}=k.useContext(R),{name:r,email:i}=e,o=()=>{t("switchPage",{page:"accountProfile",lastPage:"accountHome"})},a=Na({site:n})||Zh({site:n})||rm({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(Pk,{}),a?u(Rk,{}):u(Tk,{})]})})},Dk=()=>b("div",{className:"gh-portal-content gh-portal-account-main",children:[u(we,{}),u(xk,{}),b("section",{className:"gh-portal-account-data",children:[u(Sk,{}),u(Ek,{}),u(Ok,{})]})]});class Lm 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(Dk,{}),u(kk,{onClose:()=>this.context.onAction("closePopup"),handleSignout:i=>this.handleSignout(i),supportAddress:r})]}):null}}Z(Lm,"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(xr,{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(U,{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 jk=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},k.createElement("defs",null,k.createElement("style",null,`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}
|
|
3144
|
-
`)),k.createElement("title",null,"check-circle-1"),k.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"}),k.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25}));function Lk(){const{brandColor:e,lastPage:t,onAction:n,t:r}=k.useContext(R);return b("header",{className:"gh-portal-detail-header",children:[u(xr,{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(jk,{className:"gh-portal-checkmark-icon",alt:""})})}function Ik({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(l=>l.id===(e==null?void 0:e.id)),[i,o]=k.useState(!1),[a,s]=k.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(La,{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 Ak({updateCommentNotifications:e,isCommentsEnabled:t,enableCommentNotifications:n}){const{t:r}=k.useContext(R),i=!!n,[o,a]=k.useState(!1),[s,l]=k.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(La,{id:"comments",onToggle:(c,p)=>{a(!0),clearTimeout(s);let d=setTimeout(()=>{a(!1)},2e3);l(d),e(p)},checked:i})]})]}):null}function Mk({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=k.useContext(R);return wr({site:n}).map(i=>u(Ik,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function zk({site:e,isPaid:t}){const{t:n}=k.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}=k.useContext(R),y=!(t!=null&&t.length)&&(a&&!s||!a);return b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),u(Lk,{}),u(e||(()=>null),{}),u("div",{className:"gh-portal-section flex",children:b("div",{className:"gh-portal-list",children:[u(Mk,{subscribedNewsletters:t,setSubscribedNewsletters:g=>{let h=g.map(m=>({id:m.id}));n(h)}}),u(Ak,{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(zk,{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 Fk(){const{member:e,onAction:t,site:n,t:r}=k.useContext(R);k.useEffect(()=>{e||t("switchPage",{page:"signin"})},[e,t]);const i=[...(e==null?void 0:e.newsletters)||[]],[o,a]=k.useState(i),{comments_enabled:s}=n,{enable_comment_notifications:l}=e||{};return k.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:xt({member:e}),isCommentsEnabled:s!=="off",enableCommentNotifications:l})}function Uk(){const{site:e}=k.useContext(R),t=e.icon;return t?u("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:e.title}):null}function Bk(){const{site:e}=k.useContext(R),t=e.title||"";return b("header",{className:"gh-portal-header",children:[u(Uk,{}),u("h2",{className:"gh-portal-publication-title",children:t})]})}async function ru({api:e,memberUuid:t,newsletters:n,enableCommentNotifications:r}){try{return await e.member.updateNewsletters({uuid:t,newsletters:n,enableCommentNotifications:r})}catch{}}function Yk(){const{site:e,pageData:t,onAction:n,t:r}=k.useContext(R),i=za({siteUrl:e.url}),[o,a]=k.useState(),s=wr({site:e}),l=s.filter(m=>m.subscribe_on_signup),[c,p]=k.useState(!1),[d,f]=k.useState(l),[y,v]=k.useState(!1),{comments_enabled:_}=e,{enable_comment_notifications:g=!1}=o||{};return k.useEffect(()=>{const m=za({siteUrl:e.url});(async()=>{const w=await m.member.newsletters({uuid:t.uuid});a(w);const x=(w==null?void 0:w.newsletters)||[];if(f(x),(s==null?void 0:s.length)===1&&!_){const C=await ru({api:m,memberUuid:t.uuid,newsletters:[]});f(C.newsletters)}else if(t.newsletterUuid){const C=await ru({api:m,memberUuid:t.uuid,newsletters:x==null?void 0:x.filter(S=>S.uuid!==t.newsletterUuid)});f(C.newsletters)}else if(t.comments&&_){const C=await ru({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(Bk,{}),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(U,{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(x=>x.uuid===t.newsletterUuid);return u(U,{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 Hk(){const{brandColor:e,lastPage:t,onAction:n,action:r,site:i,t:o}=k.useContext(R);k.useEffect(()=>{["removeEmailFromSuppressionList:success"].includes(r)&&n("refreshMemberData"),["removeEmailFromSuppressionList:failed","refreshMemberData:failed"].includes(r)&&n("back"),["refreshMemberData:success"].includes(r)&&(Na({site:i})||Zh({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(xr,{brandColor:e,hidden:!t,onClick:()=>{n("back")}}),u(we,{})]}),u(jm,{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 Gk(){const{brandColor:e,onAction:t,site:n}=k.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(xr,{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 Wk(){const{brandColor:e,onAction:t,site:n,lastPage:r,member:i}=k.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(xr,{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 iu={signin:Dm,signup:Cm,accountHome:Lm,accountPlan:Sm,accountProfile:Im,accountEmail:Fk,signupNewsletter:nu,unsubscribe:Yk,magiclink:Pm,loading:Om,offer:$m,feedback:fk,emailSuppressed:Hk,emailSuppressionFAQ:Gk,emailReceivingFAQ:Wk},ou=function({page:e}){return Object.keys(iu).includes(e)?e:"signup"},Vk=function({page:e}){return e.includes("account")},Kk=function({page:e}){return e.includes("offer")},qk=e=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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 au extends q.Component{render(){return b("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:()=>{window.open("https://ghost.org","_blank")},children:[u(qk,{}),"Powered by Ghost"]})}}Z(au,"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 Qk({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;ou({page:t});const n=iu[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;ou({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(U,{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(Qk,{message:d}),this.renderPopupNotification(),this.renderActivePage(),p==="full"?u("div",{className:"gh-portal-powered inside "+(K(["preview"])?"hidden ":"")+f,children:u(au,{})}):""]})}),u("div",{className:"gh-portal-powered outside "+(K(["preview"])?"hidden ":"")+f,children:u(au,{})})]})}}Z(Fm,"contextType",R);class Um extends q.Component{constructor(t){super(t),this.state={height:null}}renderCurrentPage(t){const n=iu[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=wk({site:t}),r=`
|
|
3151
|
+
`;function wk({site:e}){return Hc+yk+ww+jw+Yw+xw({site:e})+bw+mw+vw+qh+tk+Zw+ok({site:e})+nk+vk+bk+sk+hk+mk+gk}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(U,{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 kk=({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"})})})})]})},xk=()=>{const{member:e,brandColor:t,t:n}=k.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")})]})},_k=()=>{const{site:e,action:t,brandColor:n,onAction:r}=k.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%"}})},Sk=()=>{const{member:e,site:t}=k.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=kt(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=kt(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 ",kt(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(_k,{})]})},Ek=()=>{const{member:e,onAction:t,action:n,brandColor:r}=k.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 ",kt(p)]})},{}),u(he,{onClick:p=>{t("continueSubscription",{subscriptionId:i.id})},isRunning:a,disabled:s,isPrimary:l,brandColor:r,label:o,style:{width:"100%"}})]})},Ck=e=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("defs",null,k.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}")),k.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"}),k.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"})),Pk=()=>{const{member:e,site:t,onAction:n}=k.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:T,interval:O}=d;g=`${Intl.NumberFormat("en",{currency:T,style:"currency"}).format(S/100)}/${O}`}let h=$k({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 x=()=>h?b("p",{className:"gh-portal-account-discountcontainer",children:[u(Ck,{className:"gh-portal-account-tagicon"}),u("span",{children:h})]}):null,C=Kc({sub:y});return C&&(w="gh-portal-account-old-price"),C?b(U,{children:[u("p",{className:w,children:g}),u(Nk,{subscription:y})]}):b(U,{children:[u("p",{className:w,children:g}),u(x,{})]})},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}=k.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})&&Xh({member:e})&&(y=Xh({member:e})),b(U,{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 Nk({subscription:e,priceLabel:t}){if(Kc({sub:e})){const n=kt(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 $k({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(im(l))return"";o=`Ends ${kt(l)}`}r=`${ew({offer:e,price:t,useFormatted:!0})}/${t.interval}${o?` — ${o}`:""}`}return r}function Tk(){const{member:e,site:t,onAction:n}=k.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=>k.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e},k.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"}),k.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 Rk(){const{onAction:e,member:t,t:n}=k.useContext(R),r=rm({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 Ok=()=>{const{member:e,onAction:t,site:n}=k.useContext(R),{name:r,email:i}=e,o=()=>{t("switchPage",{page:"accountProfile",lastPage:"accountHome"})},a=Na({site:n})||Zh({site:n})||rm({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(Pk,{}),a?u(Rk,{}):u(Tk,{})]})})},Dk=()=>b("div",{className:"gh-portal-content gh-portal-account-main",children:[u(we,{}),u(xk,{}),b("section",{className:"gh-portal-account-data",children:[u(Sk,{}),u(Ek,{}),u(Ok,{})]})]});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(Dk,{}),u(kk,{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(xr,{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(U,{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 Lk=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},k.createElement("defs",null,k.createElement("style",null,`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}
|
|
3152
|
+
`)),k.createElement("title",null,"check-circle-1"),k.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"}),k.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25}));function jk(){const{brandColor:e,lastPage:t,onAction:n,t:r}=k.useContext(R);return b("header",{className:"gh-portal-detail-header",children:[u(xr,{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(Lk,{className:"gh-portal-checkmark-icon",alt:""})})}function Ik({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(l=>l.id===(e==null?void 0:e.id)),[i,o]=k.useState(!1),[a,s]=k.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 Ak({updateCommentNotifications:e,isCommentsEnabled:t,enableCommentNotifications:n}){const{t:r}=k.useContext(R),i=!!n,[o,a]=k.useState(!1),[s,l]=k.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 Mk({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=k.useContext(R);return wr({site:n}).map(i=>u(Ik,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function zk({site:e,isPaid:t}){const{t:n}=k.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}=k.useContext(R),y=!(t!=null&&t.length)&&(a&&!s||!a);return b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),u(jk,{}),u(e||(()=>null),{}),u("div",{className:"gh-portal-section flex",children:b("div",{className:"gh-portal-list",children:[u(Mk,{subscribedNewsletters:t,setSubscribedNewsletters:g=>{let h=g.map(m=>({id:m.id}));n(h)}}),u(Ak,{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(zk,{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 Fk(){const{member:e,onAction:t,site:n,t:r}=k.useContext(R);k.useEffect(()=>{e||t("switchPage",{page:"signin"})},[e,t]);const i=[...(e==null?void 0:e.newsletters)||[]],[o,a]=k.useState(i),{comments_enabled:s}=n,{enable_comment_notifications:l}=e||{};return k.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:xt({member:e}),isCommentsEnabled:s!=="off",enableCommentNotifications:l})}function Uk(){const{site:e}=k.useContext(R),t=e.icon;return t?u("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:e.title}):null}function Bk(){const{site:e}=k.useContext(R),t=e.title||"";return b("header",{className:"gh-portal-header",children:[u(Uk,{}),u("h2",{className:"gh-portal-publication-title",children:t})]})}async function ru({api:e,memberUuid:t,newsletters:n,enableCommentNotifications:r}){try{return await e.member.updateNewsletters({uuid:t,newsletters:n,enableCommentNotifications:r})}catch{}}function Yk(){const{site:e,pageData:t,onAction:n,t:r}=k.useContext(R),i=za({siteUrl:e.url}),[o,a]=k.useState(),s=wr({site:e}),l=s.filter(m=>m.subscribe_on_signup),[c,p]=k.useState(!1),[d,f]=k.useState(l),[y,v]=k.useState(!1),{comments_enabled:_}=e,{enable_comment_notifications:g=!1}=o||{};return k.useEffect(()=>{const m=za({siteUrl:e.url});(async()=>{const w=await m.member.newsletters({uuid:t.uuid});a(w);const x=(w==null?void 0:w.newsletters)||[];if(f(x),(s==null?void 0:s.length)===1&&!_){const C=await ru({api:m,memberUuid:t.uuid,newsletters:[]});f(C.newsletters)}else if(t.newsletterUuid){const C=await ru({api:m,memberUuid:t.uuid,newsletters:x==null?void 0:x.filter(S=>S.uuid!==t.newsletterUuid)});f(C.newsletters)}else if(t.comments&&_){const C=await ru({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(Bk,{}),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(U,{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(x=>x.uuid===t.newsletterUuid);return u(U,{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 Hk(){const{brandColor:e,lastPage:t,onAction:n,action:r,site:i,t:o}=k.useContext(R);k.useEffect(()=>{["removeEmailFromSuppressionList:success"].includes(r)&&n("refreshMemberData"),["removeEmailFromSuppressionList:failed","refreshMemberData:failed"].includes(r)&&n("back"),["refreshMemberData:success"].includes(r)&&(Na({site:i})||Zh({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(xr,{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 Gk(){const{brandColor:e,onAction:t,site:n}=k.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(xr,{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 Wk(){const{brandColor:e,onAction:t,site:n,lastPage:r,member:i}=k.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(xr,{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 iu={signin:Dm,signup:Cm,accountHome:jm,accountPlan:Sm,accountProfile:Im,accountEmail:Fk,signupNewsletter:nu,unsubscribe:Yk,magiclink:Pm,loading:Om,offer:$m,feedback:fk,emailSuppressed:Hk,emailSuppressionFAQ:Gk,emailReceivingFAQ:Wk},ou=function({page:e}){return Object.keys(iu).includes(e)?e:"signup"},Vk=function({page:e}){return e.includes("account")},Kk=function({page:e}){return e.includes("offer")},qk=e=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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 au extends q.Component{render(){return b("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:()=>{window.open("https://ghost.org","_blank")},children:[u(qk,{}),"Powered by Ghost"]})}}Z(au,"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 Qk({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;ou({page:t});const n=iu[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;ou({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(U,{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(Qk,{message:d}),this.renderPopupNotification(),this.renderActivePage(),p==="full"?u("div",{className:"gh-portal-powered inside "+(K(["preview"])?"hidden ":"")+f,children:u(au,{})}):""]})}),u("div",{className:"gh-portal-powered outside "+(K(["preview"])?"hidden ":"")+f,children:u(au,{})})]})}}Z(Fm,"contextType",R);class Um extends q.Component{constructor(t){super(t),this.state={height:null}}renderCurrentPage(t){const n=iu[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=wk({site:t}),r=`
|
|
3145
3153
|
:root {
|
|
3146
3154
|
--brandcolor: ${this.context.brandColor}
|
|
3147
3155
|
}
|
|
3148
|
-
`+n;return b(U,{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:su({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=su({numOfProducts:1}),portalProducts:s=a.map(T=>T.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:x="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:x,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 su({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=Xk,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=su({numOfProducts:1}),t=e.map(r=>r.id);return Fa({products:e,portalPlans:["free","monthly","yearly"],portalProducts:t})}Gm();const Jk=Fa({products:[Sr({numOfBenefits:2,type:"free"})]}),Xk=Bm({tierId:(wg=Jk.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:(kg=Er.products[1])==null?void 0:kg.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 Zk(){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 ex({data:e,state:t}){return{page:e.page,popupNotification:null,lastPage:e.lastPage||null,pageData:e.pageData||t.pageData}}function tx({state:e}){return{showPopup:!e.showPopup}}function nx({data:e}){return{showPopup:!0,page:e.page,...e.pageQuery?{pageQuery:e.pageQuery}:{},...e.pageData?{pageData:e.pageData}:{}}}function rx({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 ix({data:e}){return{showNotification:!0,...e}}function ox({state:e}){return{showNotification:!1}}async function ax({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 sx({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 lx({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 cx({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 ux({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 dx({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 px({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 fx({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 hx(){return{popupNotification:null}}async function mx({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 gx({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 yx({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 vx({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 bx({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 wx({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 kx({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 xx({data:e,state:t,api:n}){const[r,i]=await Promise.all([wx({data:e,state:t,api:n}),bx({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 _x={togglePopup:tx,openPopup:nx,closePopup:Vm,switchPage:ex,openNotification:ix,closeNotification:ox,back:rx,signout:ax,signin:sx,signup:lx,updateSubscription:ux,cancelSubscription:dx,continueSubscription:px,updateNewsletter:vx,updateProfile:xx,refreshMemberData:kx,clearPopupNotification:hx,editBilling:fx,checkoutPlan:cx,updateNewsletterPreference:gx,showPopupNotification:mx,removeEmailFromSuppressionList:yx};async function Sx({action:e,data:t,state:n,api:r}){const i=_x[e];return i?await i({data:t,state:n,api:r})||{}:{}}const x2="";function Ex({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=ja(),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 Cx({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=ja();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 Px({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){Ex({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){Cx({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 lu={},Nx={get exports(){return lu},set exports(e){lu=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 Aanmeldskakel is na u epos gestuur. As dit nie binne 3 minute aankom nie, moet u asseblief u spam-vouer nagaan.",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 afloop van die gratis proeftydperk sal u die vasgestelde pry vir die vlak wat u gekies het, betaal. U kan altyd voor die tyd kanselleer.","Already a member?":"Is u reeds 'n lid?",Back:"Terug","Back to Log in":"Terug na aanmelding","Cancel subscription":"Kanselleer inskrywing","Cancellation reason":"Kansellasie rede","Choose a different plan":"Kies 'n ander plan","Choose your newsletters":"Kies u nuusbriefs",Close:"Sluit",Comments:"Kommentaar",Confirm:"Bevestig",Continue:"Gaan voort","Delete account":"Verwyder rekening","Don't have an account?":"Het u nie 'n rekening nie?",Email:"E-pos","Email preference updated.":"E-pos instellings opgedateer.","Email preferences":"E-pos instellings",Emails:"E-posse","Emails disabled":"E-posse afgeskakel","Get help":"Kry hulp","Get notified when someone replies to your comment":"Ontvang 'n kennisgewing wanneer iemand op u kommentaar reageer","Give feedback on this post":"Gee terugvoering oor hierdie pos","Less like this":"Minder soos hierdie",Manage:"Bestuur",Monthly:"Maandeliks","More like this":"Meer soos hierdie",Name:"Naam","Not receiving emails?":"Ontvang u nie e-posse nie?","Now check your email!":"Kyk nou u e-pos!",Price:"Prys","Re-enable emails":"Her-aktiveer eposse",Retry:"Probeer weer",Save:"Stoor","Sending login link...":"Stuur aanmeldskakel...","Sending...":"Stuur...","Sign in":"Meld aan","Sign up":"Registreer","Start {{amount}}-day free trial":"Begin {{amount}}-dag gratis proeftydperk","Submit feedback":"Stuur terugvoering","Successfully unsubscribed":"Suksesvol afgemeld","Thanks for the feedback!":"Dankie vir die terugvoering!","That didn't go to plan":"Dit het nie volgens plan verloop nie","This site is invite-only, contact the owner for access.":"Hierdie webwerf is slegs op uitnodiging, 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 die registrasie te voltooi, kliek op die bevestigingskakel in jou inboks. As dit nie binne 3 minute aankom nie, kontroleer asseblief jou spam-vouer!","Unsubscribe from all emails":"Meld af van alle e-posse","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Deur van eposse af te skakel, sal nie u betaalde subskripsie van {{title}} kanselleer nie","Update your preferences":"Opdateer u voorkeure","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ons kon u nie afskakel nie, omdat die e-pos adres nie gevind is nie. Kontak asseblief die webwerf eienaar.",Yearly:"Jaarliks","You have been successfully resubscribed":"U is suksesvol heringeskryf","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 ontvang nie e-posse nie, omdat u onlangs 'n boodskap as spam gemerk het, of omdat boodskappe nie na die e-pos adres wat u verskaf het gestuur kon word nie.","Your account":"U rekening","Your input helps shape what gets published.":"U insette help om te bepaal wat gepubliseer word."},Tx={"{{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!":"Провете си пощенската кутия!",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.":"Вашият принос помага да се оформи това, което се публикува."},Rx={"{{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!",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."},Ox={"{{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!",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."},Dx={"{{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!",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."},jx={"{{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!":"",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.":""},Lx={"{{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!",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."},Ix={"{{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!",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."},Ax={"{{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é dans votre boîte de réception. S’il n’arrive pas dans les 3 minutes, vérifiez votre 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é. Vous pouvez toujours annuler d’ici là.","Already a member?":"Déjà membre ?",Back:"Retour","Back to Log in":"Retour à Connexion","Cancel subscription":"Annuler l’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?":"Vous n’avez 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":"Soyez notifié lorsque quelqu’un répond à votre commentaire","Give feedback on this post":"Donnez votre 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?":"Vous n’avez pas reçu d’e-mails ?","Now check your email!":"Veuillez maintenant vérifier votre boite de réception.",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":"Envoyez votre avis","Successfully unsubscribed":"Désabonnement réussi","Thanks for the feedback!":"Merci pour votre 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, contactez 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 votre inscription, cliquez sur le lien de confirmation envoyé dans votre boite de réception. S’il ne vous parvient pas dans les 3 minutes, vérifiez votre dossier spam.","Unsubscribe from all emails":"Se désinscrire de tous les e-mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"La désinscription des e-mails n’annulera pas votre abonnement payant à {{title}}","Update your preferences":"Mettez à jour vos 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 votre adresse e-mail n’a pas été trouvée. Merci de contacter le propriétaire du site.",Yearly:"Annuel","You have been successfully resubscribed":"Vous avez é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.":"Vous ne recevez pas d’e-mails parce que vous avez marqué un message récent comme spam, ou parce que les messages n’ont pas pu être livrés à l’adresse e-mail que vous aviez indiquée.","Your account":"Votre compte","Your input helps shape what gets published.":"Votre avis aide à améliorer ce qui est publié."},Mx={"{{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",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"},zx={"{{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!",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."},Fx={"{{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!":"Одоо имэйлээ шалгана уу!",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.":"Таны санал дараа дараагийн нийтлэлийг илүү чанартай болгоход туслана"},Ux={"{{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!",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."},Bx={"{{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ę!",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."},Yx={"{{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!",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."},Hx={"{{discount}}% discount":"{{discount}}% popust","{{trialDays}} days free":"{{trialDays}} dni brezplačno","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Povezava za prijavo je bila poslana v vaš e-poštni predal. Če ne prispe v treh minutah, preverite mapo za neželeno pošto.",Account:"Račun","Account settings":"Nastavitve računa","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 koncu brezplačnega preizkusa se vam zaračuna redna cena za izbrano stopnjo. Pred tem jo lahko vedno prekličete.","Already a member?":"Ste že član?",Back:"Nazaj","Back to Log in":"Nazaj na prijavo","Cancel subscription":"Prekliči naročnino","Cancellation reason":"Razlog za preklic","Choose a different plan":"Izberite drug načrt","Choose your newsletters":"Izberite svoje novice",Close:"Zapri",Comments:"Komentarji",Confirm:"Potrdi",Continue:"Nadaljuj","Delete account":"Izbriši račun","Don't have an account?":"Nimate računa?",Email:"E-pošta","Email preference updated.":"E-poštne nastavitve posodobljene","Email preferences":"Nastavitve e-pošte",Emails:"E-pošta","Emails disabled":"E-pošta onemogočena","Get help":"Pomoč","Get notified when someone replies to your comment":"Prejmite obvestilo, ko nekdo odgovori na vaš komentar","Give feedback on this post":"Podajte povratne informacije o tej objavi","Less like this":"Ni mi všeč",Manage:"Upravljanje",Monthly:"Mesečno","More like this":"Všeč mi je",Name:"Ime","Not receiving emails?":"Ne prejemate e-poštnih sporočil?","Now check your email!":"Preverite svojo e-pošto!",Price:"Cena","Re-enable emails":"Ponovna vključitev e-poštnih sporočil",Retry:"Cena",Save:"Shrani","Sending login link...":"Pošiljanje povezave za prijavo...","Sending...":"Pošiljanje...","Sign in":"Prijava","Sign up":"Registracija","Start {{amount}}-day free trial":"Začetek {{amount}}-dnevnega brezplačnega preizkusa","Submit feedback":"Pošljite povratno informacijo","Successfully unsubscribed":"Uspešno ste se odjavili","Thanks for the feedback!":"Hvala za povratne informacije!","That didn't go to plan":"To ni šlo po načrtu","This site is invite-only, contact the owner for access.":"To spletno mesto je dostopno samo s povabilom, obrnite se na lastnika.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Za dokončanje prijave kliknite potrditveno povezavo, ki smo vam jo poslali na vaš e-poštni naslov. Če je ne prejmete v treh minutah, preverite mapo za neželeno pošto!","Unsubscribe from all emails":"Odjava od vseh e-poštnih sporočil","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Odjava od e-poštnih sporočil ne bo preklicala vaše plačane naročnine na {{title}}","Update your preferences":"Posodobite svoje nastavitve","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nismo vas mogli odjaviti, ker e-poštnega naslova nismo našli. Prosimo, da se obrnete na lastnika spletnega mesta.",Yearly:"Letno","You have been successfully resubscribed":"Uspešno ste bili ponovno naročeni","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.":"Ne prejemate e-poštnih sporočil, ker ste naše sporočilo nedavno označili kot neželeno pošto ali, ker sporočil ni bilo mogoče dostaviti na vaš e-poštni naslov.","Your account":"Vaš račun","Your input helps shape what gets published.":"Vaš prispevek se nam pomaga odločati, kaj objavimo."},Gx={"{{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!",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."},Wx={"{{discount}}% discount":"%{{discount}} indirim","{{trialDays}} days free":"{{trialDays}} gün ücretsiz","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Gelen kutuna bir giriş linki gönderildi. Eğer 3 dakika içinde ulaşmazsa spam klasörünü kontrol ettiğinden emin ol.",Account:"Hesap","Account settings":"Hesap ayarları","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Ücretsiz deneme süresi bittikten sonra seçtiğin kategorinin normal fiyatından ücretlendirileceksin. O zamana kadar her an iptal edebilirsin.","Already a member?":"Zaten üye misin?",Back:"Geri dön","Back to Log in":"Giriş ekranına geri dön","Cancel subscription":"Aboneliği iptal et","Cancellation reason":"İptal sebebi","Choose a different plan":"Farklı bir plan seç","Choose your newsletters":"Haber e-postanı seç",Close:"Kapat",Comments:"Yorumlar",Confirm:"Onayla",Continue:"Devam et","Delete account":"Hesabı sil","Don't have an account?":"Hesabın yok mu?",Email:"E-posta","Email preference updated.":"E-posta tercihi güncellendi.","Email preferences":"E-posta tercihleri",Emails:"E-postalar","Emails disabled":"E-postalar devre dışı","Get help":"Yardım al","Get notified when someone replies to your comment":"Birisi yorumuna cevap yazdığında bildirim al","Give feedback on this post":"Gönderiye geri bildirim ver","Less like this":"Bunun gibi daha az",Manage:"Yönet",Monthly:"Aylık","More like this":"Bunun gibi daha fazla",Name:"İsim","Not receiving emails?":"E-posta almıyor musun?","Now check your email!":"Şimdi e-posta kutunu kontrol et!",Price:"Fiyat","Re-enable emails":"E-postaları yeniden etkinleştir",Retry:"Tekrar dene",Save:"Kaydet","Sending login link...":"Giriş linki gönderiliyor...","Sending...":"Gönderiliyor...","Sign in":"Giriş yap","Sign up":"Kayıt ol","Start {{amount}}-day free trial":"{{amount}} gün ücretsiz deneme süresini başlat","Submit feedback":"Geri bildirim gönder","Successfully unsubscribed":"Abonelikten başarıyla çıkıldı","Thanks for the feedback!":"Geri bildirim için teşekkürler!","That didn't go to plan":"Bir şeyler ters gitti","This site is invite-only, contact the owner for access.":"Bu site sadece davetiyesi olanlar içindir, erişim için site sahibiyle iletişime geç.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Kaydını tamamlamak için gelen kutuna gönderilen onay linkine tıkla. Eğer 3 dakika içinde ulaşmazsa spam klasörünü kontrol et!","Unsubscribe from all emails":"Tüm e-postaların aboneliğinden çık","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"E-postaların aboneliğinden çıkmak, {{title}} sitesine olan ücretli aboneliğini iptal etmeyecek","Update your preferences":"Tercihlerini güncelle","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"E-posta adresi bulunamadığı için seni abonelikten çıkaramıyoruz. Lütfen site sahibiyle iletişime geç.",Yearly:"Yıllık","You have been successfully resubscribed":"Başarıyla yeniden abone oldun","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.":"E-postaları almıyorsun çünkü yakınlarda gönderilen bir mesajı spam olarak işaretledin ya da mesajlar verilen e-posta adresine teslim edilemedi.","Your account":"Hesabın","Your input helps shape what gets published.":"Yorumun yayımlanan içeriklerin şekillenmesine yardımcı olur."},Vx={"{{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ờ!",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 $x},"/i18n/locales/bg/portal.json":function(){return Tx},"/i18n/locales/ca/portal.json":function(){return Rx},"/i18n/locales/cs/portal.json":function(){return Ox},"/i18n/locales/de/portal.json":function(){return Dx},"/i18n/locales/en/portal.json":function(){return jx},"/i18n/locales/eo/portal.json":function(){return Lx},"/i18n/locales/es/portal.json":function(){return Ix},"/i18n/locales/fr/portal.json":function(){return Ax},"/i18n/locales/hu/portal.json":function(){return Mx},"/i18n/locales/it/portal.json":function(){return zx},"/i18n/locales/mn/portal.json":function(){return Fx},"/i18n/locales/nl/portal.json":function(){return Ux},"/i18n/locales/pl/portal.json":function(){return Bx},"/i18n/locales/pt-br/portal.json":function(){return Yx},"/i18n/locales/sl/portal.json":function(){return Hx},"/i18n/locales/sv/portal.json":function(){return Gx},"/i18n/locales/tr/portal.json":function(){return Wx},"/i18n/locales/vi/portal.json":function(){return Vx}})}function Kx(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=qx(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 qx(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={},Qx={get exports(){return Ga},set exports(e){Ga=e}},Cr={},Jx={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})(Jx);var cu={},Xx={get exports(){return cu},set exports(e){cu=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})(Xx);var uu={},Zx={get exports(){return uu},set exports(e){uu=e}},Wa={},e_={get exports(){return Wa},set exports(e){Wa=e}},du={},t_={get exports(){return du},set exports(e){du=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})(t_),function(e){var t=Cr.default,n=du;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}(e_),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}(Zx);var Va={},n_={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})(n_);var pu={},r_={get exports(){return pu},set exports(e){pu=e}},fu={},i_={get exports(){return fu},set exports(e){fu=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})(i_),function(e){var t=fu;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}(r_);var hu={},o_={get exports(){return hu},set exports(e){hu=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})(o_);var mu={},a_={get exports(){return mu},set exports(e){mu=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})(a_);var gu={},s_={get exports(){return gu},set exports(e){gu=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})(s_);var yu={},l_={get exports(){return yu},set exports(e){yu=e}},vu={},c_={get exports(){return vu},set exports(e){vu=e}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c_);var bu={},u_={get exports(){return bu},set exports(e){bu=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})(u_);var wu={},d_={get exports(){return wu},set exports(e){wu=e}},ku={},p_={get exports(){return ku},set exports(e){ku=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})(p_),function(e){var t=ku;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}(d_);var xu={},f_={get exports(){return xu},set exports(e){xu=e}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3149
|
-
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})(f_),function(e){var t=vu,n=bu,r=wu,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}(l_);var h_=Cr,m_=cu,g_=uu,y_=Va,v_=pu,b_=hu,w_=mu,k_=gu,x_=yu;function St(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ui=St(h_),st=St(m_),lt=St(g_),Nn=St(y_),Ka=St(v_),Bi=St(b_),nn=St(w_),rn=St(k_),__=St(x_);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 S_={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)}},E_=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||S_,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 E_,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 C_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function _u(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=_u(e,t,Object),i=r.obj,o=r.k;i[o]=n}function P_(e,t,n,r){var i=_u(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=_u(e,t),r=n.obj,i=n.k;if(r)return r[i]}function N_(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 $_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function T_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return $_[t]}):e}var Qa=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,R_=[" ",",","?","!",";"];function O_(e,t,n){t=t||"",n=n||"";var r=R_.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 D_(e){var t=j_();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 j_(){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 L_=function(e){Ka.default(n,e);var t=D_(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 I_(e){var t=A_();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 A_(){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=I_(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)),C_(["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&&!O_(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,x=h&&h.exactUsedKey||d,C=Object.prototype.toString.apply(m),S=["[object Number]","[object Function]","[object RegExp]"],T=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 T=="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?x: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 T=="string"&&C==="[object Array]")m=m.join(T),m&&(m=this.extendTranslation(m,i,o,a));else{var pt=!1,Ct=!1,$r=o.count!==void 0&&typeof o.count!="string",$n=n.hasDefaultValue(o),Cu=$r?this.pluralResolver.getSuffix(v,o.count,o):"",P=o["defaultValue".concat(Cu)]||o.defaultValue;!this.isValidLookup(m)&&$n&&(pt=!0,m=P),this.isValidLookup(m)||(Ct=!0,m=d);var D=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,I=D&&Ct?void 0:m,B=$n&&P!==m&&this.options.updateMissing;if(Ct||pt||B){if(this.logger.log(B?"updateKey":"missingKey",v,y,d,B?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 je=[],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++)je.push(Ge[Pt]);else this.options.saveMissingTo==="all"?je=this.languageUtils.toResolveHierarchy(o.lng||this.language):je.push(o.lng||this.language);var Nt=function(Tr,Nu,xg){var _g=$n&&xg!==m?xg:I;s.options.missingKeyHandler?s.options.missingKeyHandler(Tr,y,Nu,_g,B,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Tr,y,Nu,_g,B,o),s.emit("missingKey",Tr,y,Nu,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$r?je.forEach(function(Pu){s.pluralResolver.getSuffixes(Pu,o).forEach(function(Tr){Nt([Pu],d+Tr,o["defaultValue".concat(Tr)]||P)})}):Nt(je,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),x=0;x<m;x++)w[x]=arguments[x];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(x){o.isValidLookup(s)||(d=x,!og["".concat(w[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(og["".concat(w[0],"-").concat(x)]=!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,x,a);else{var T;g&&(T=o.pluralResolver.getSuffix(C,a.count,a));var O="".concat(o.options.pluralSeparator,"zero");if(g&&(S.push(v+T),h&&S.push(v+O)),m){var N="".concat(v).concat(o.options.contextSeparator).concat(a.context);S.push(N),g&&(S.push(N+T),h&&S.push(N+O))}}for(var F;F=S.pop();)o.isValidLookup(s)||(c=F,s=o.getResource(C,x,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 Su(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]=Su(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]=Su(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Su(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}(),M_=[{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}],z_={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}},F_=["v1","v2","v3"],lg={zero:0,one:1,two:2,few:3,many:4,other:5};function U_(){var e={};return M_.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:z_[t.fc]}})}),e}var B_=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=U_()}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!F_.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=N_(e,t,n);return!o&&i&&typeof n=="string"&&(o=Ja(e,n,r),o===void 0&&(o=Ja(t,n,r))),o}var Y_=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:T_,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),x=w.shift().trim(),C=w.join(a.formatSeparator).trim();return a.format(ug(r,p,x,a.options.keySeparator,a.options.ignoreJSONStructure),C,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:x}))};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(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),x),"".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 H_(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=__.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 G_=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=H_(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 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 K_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var q_=function(e){Ka.default(n,e);var t=W_(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){P_(d.loaded,[l],c),K_(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 Q_(e){var t=J_();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 J_(){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 X_(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=Q_(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:[]},X_(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=G_);var p=new sg(this.options);this.store=new L_(this.options.resources,this.options);var d=this.services;d.logger=ct,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new B_(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 Y_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new q_(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),x=1;x<m;x++)w[x-1]=arguments[x];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),x=1;x<m;x++)w[x-1]=arguments[x];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(x,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(x,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 Z_=yg;const e2=Z_,vg=["af","bg","ca","cs","de","en","eo","es","fr","hu","it","mn","nl","pl","pt-br","sl","sv","tr","vi"];Qx.exports=(e="en",t="portal")=>{const n=e2.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]:Kx("/i18n/lib")(`../locales/${i}/${t}.json`)},r),{})}),n},Ga.SUPPORTED_LOCALES=vg,function(e){e.exports=Ga}(Nx);const t2=Le(lu),n2={showPopup:!0,site:Er,member:Ya.free,page:"accountEmail",...Zk(),pageData:Wm};function r2({site:e,children:t}){const{portal_sentry:n}=e||{};return n&&n.dsn?u(Mi,{children:t}):u(U,{children:t})}class i2 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(),Px({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=t2(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?n2: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}=hm({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.29.2|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 Sx({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(),!xt({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}am({site:t,pageQuery:n})&&(o=am({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"),ou({page:n})}getContextMember({page:t,member:n,customSiteUrl:r}){return K(["dev","preview"],{customSiteUrl:r})?Vk({page:t})||Kk({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(r2,{site:this.state.site,children:b(R.Provider,{value:this.getContextFromState(),children:[u(Um,{}),u(dm,{}),u(gm,{})]})}):null}}const bg="ghost-portal-root";function o2(){const e=document.createElement("div");e.id=bg,document.body.appendChild(e)}function a2(){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 s2(){const e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}function l2({siteUrl:e}){o2(),s2()}function c2(){const{siteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r}=a2(),i=e||window.location.origin;l2({siteUrl:i}),jv.render(u(q.StrictMode,{children:u(i2,{siteUrl:i,customSiteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r})}),document.getElementById(bg))}c2()});
|
|
3156
|
+
`+n;return b(U,{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:su({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=su({numOfProducts:1}),portalProducts:s=a.map(T=>T.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:x="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:x,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 su({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=Xk,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=su({numOfProducts:1}),t=e.map(r=>r.id);return Fa({products:e,portalPlans:["free","monthly","yearly"],portalProducts:t})}Gm();const Jk=Fa({products:[Sr({numOfBenefits:2,type:"free"})]}),Xk=Bm({tierId:(wg=Jk.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:(kg=Er.products[1])==null?void 0:kg.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 Zk(){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 ex({data:e,state:t}){return{page:e.page,popupNotification:null,lastPage:e.lastPage||null,pageData:e.pageData||t.pageData}}function tx({state:e}){return{showPopup:!e.showPopup}}function nx({data:e}){return{showPopup:!0,page:e.page,...e.pageQuery?{pageQuery:e.pageQuery}:{},...e.pageData?{pageData:e.pageData}:{}}}function rx({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 ix({data:e}){return{showNotification:!0,...e}}function ox({state:e}){return{showNotification:!1}}async function ax({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 sx({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 lx({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 cx({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 ux({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 dx({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 px({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 fx({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 hx(){return{popupNotification:null}}async function mx({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 gx({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 yx({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 vx({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 bx({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 wx({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 kx({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 xx({data:e,state:t,api:n}){const[r,i]=await Promise.all([wx({data:e,state:t,api:n}),bx({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 _x={togglePopup:tx,openPopup:nx,closePopup:Vm,switchPage:ex,openNotification:ix,closeNotification:ox,back:rx,signout:ax,signin:sx,signup:lx,updateSubscription:ux,cancelSubscription:dx,continueSubscription:px,updateNewsletter:vx,updateProfile:xx,refreshMemberData:kx,clearPopupNotification:hx,editBilling:fx,checkoutPlan:cx,updateNewsletterPreference:gx,showPopupNotification:mx,removeEmailFromSuppressionList:yx};async function Sx({action:e,data:t,state:n,api:r}){const i=_x[e];return i?await i({data:t,state:n,api:r})||{}:{}}const x2="";function Ex({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 Cx({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 Px({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){Ex({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){Cx({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 lu={},Nx={get exports(){return lu},set exports(e){lu=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 Aanmeldskakel is na u epos gestuur. As dit nie binne 3 minute aankom nie, moet u asseblief u spam-vouer nagaan.",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 afloop van die gratis proeftydperk sal u die vasgestelde pry vir die vlak wat u gekies het, betaal. U kan altyd voor die tyd kanselleer.","Already a member?":"Is u reeds 'n lid?",Back:"Terug","Back to Log in":"Terug na aanmelding","Cancel subscription":"Kanselleer inskrywing","Cancellation reason":"Kansellasie rede","Choose a different plan":"Kies 'n ander plan","Choose your newsletters":"Kies u nuusbriefs",Close:"Sluit",Comments:"Kommentaar",Confirm:"Bevestig",Continue:"Gaan voort","Delete account":"Verwyder rekening","Don't have an account?":"Het u nie 'n rekening nie?",Email:"E-pos","Email preference updated.":"E-pos instellings opgedateer.","Email preferences":"E-pos instellings",Emails:"E-posse","Emails disabled":"E-posse afgeskakel","Get help":"Kry hulp","Get notified when someone replies to your comment":"Ontvang 'n kennisgewing wanneer iemand op u kommentaar reageer","Give feedback on this post":"Gee terugvoering oor hierdie pos","Less like this":"Minder soos hierdie",Manage:"Bestuur",Monthly:"Maandeliks","More like this":"Meer soos hierdie",Name:"Naam","Not receiving emails?":"Ontvang u nie e-posse nie?","Now check your email!":"Kyk nou u e-pos!",Price:"Prys","Re-enable emails":"Her-aktiveer eposse",Retry:"Probeer weer",Save:"Stoor","Sending login link...":"Stuur aanmeldskakel...","Sending...":"Stuur...","Sign in":"Meld aan","Sign up":"Registreer","Start {{amount}}-day free trial":"Begin {{amount}}-dag gratis proeftydperk","Submit feedback":"Stuur terugvoering","Successfully unsubscribed":"Suksesvol afgemeld","Thanks for the feedback!":"Dankie vir die terugvoering!","That didn't go to plan":"Dit het nie volgens plan verloop nie","This site is invite-only, contact the owner for access.":"Hierdie webwerf is slegs op uitnodiging, 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 die registrasie te voltooi, kliek op die bevestigingskakel in jou inboks. As dit nie binne 3 minute aankom nie, kontroleer asseblief jou spam-vouer!","Unsubscribe from all emails":"Meld af van alle e-posse","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Deur van eposse af te skakel, sal nie u betaalde subskripsie van {{title}} kanselleer nie","Update your preferences":"Opdateer u voorkeure","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ons kon u nie afskakel nie, omdat die e-pos adres nie gevind is nie. Kontak asseblief die webwerf eienaar.",Yearly:"Jaarliks","You have been successfully resubscribed":"U is suksesvol heringeskryf","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 ontvang nie e-posse nie, omdat u onlangs 'n boodskap as spam gemerk het, of omdat boodskappe nie na die e-pos adres wat u verskaf het gestuur kon word nie.","Your account":"U rekening","Your input helps shape what gets published.":"U insette help om te bepaal wat gepubliseer word."},Tx={"{{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!":"Провете си пощенската кутия!",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.":"Вашият принос помага да се оформи това, което се публикува."},Rx={"{{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!",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."},Ox={"{{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!",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."},Dx={"{{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!",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."},Lx={"{{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!":"",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.":""},jx={"{{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!",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."},Ix={"{{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!",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."},Ax={"{{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é dans votre boîte de réception. S’il n’arrive pas dans les 3 minutes, vérifiez votre 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é. Vous pouvez toujours annuler d’ici là.","Already a member?":"Déjà membre ?",Back:"Retour","Back to Log in":"Retour à Connexion","Cancel subscription":"Annuler l’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?":"Vous n’avez 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":"Soyez notifié lorsque quelqu’un répond à votre commentaire","Give feedback on this post":"Donnez votre 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?":"Vous n’avez pas reçu d’e-mails ?","Now check your email!":"Veuillez maintenant vérifier votre boite de réception.",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":"Envoyez votre avis","Successfully unsubscribed":"Désabonnement réussi","Thanks for the feedback!":"Merci pour votre 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, contactez 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 votre inscription, cliquez sur le lien de confirmation envoyé dans votre boite de réception. S’il ne vous parvient pas dans les 3 minutes, vérifiez votre dossier spam.","Unsubscribe from all emails":"Se désinscrire de tous les e-mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"La désinscription des e-mails n’annulera pas votre abonnement payant à {{title}}","Update your preferences":"Mettez à jour vos 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 votre adresse e-mail n’a pas été trouvée. Merci de contacter le propriétaire du site.",Yearly:"Annuel","You have been successfully resubscribed":"Vous avez é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.":"Vous ne recevez pas d’e-mails parce que vous avez marqué un message récent comme spam, ou parce que les messages n’ont pas pu être livrés à l’adresse e-mail que vous aviez indiquée.","Your account":"Votre compte","Your input helps shape what gets published.":"Votre avis aide à améliorer ce qui est publié."},Mx={"{{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",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"},zx={"{{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!",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."},Fx={"{{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!":"Одоо имэйлээ шалгана уу!",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.":"Таны санал дараа дараагийн нийтлэлийг илүү чанартай болгоход туслана"},Ux={"{{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!",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."},Bx={"{{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ę!",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."},Yx={"{{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!",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."},Hx={"{{discount}}% discount":"{{discount}}% popust","{{trialDays}} days free":"{{trialDays}} dni brezplačno","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Povezava za prijavo je bila poslana v vaš e-poštni predal. Če ne prispe v treh minutah, preverite mapo za neželeno pošto.",Account:"Račun","Account settings":"Nastavitve računa","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 koncu brezplačnega preizkusa se vam zaračuna redna cena za izbrano stopnjo. Pred tem jo lahko vedno prekličete.","Already a member?":"Ste že član?",Back:"Nazaj","Back to Log in":"Nazaj na prijavo","Cancel subscription":"Prekliči naročnino","Cancellation reason":"Razlog za preklic","Choose a different plan":"Izberite drug načrt","Choose your newsletters":"Izberite svoje novice",Close:"Zapri",Comments:"Komentarji",Confirm:"Potrdi",Continue:"Nadaljuj","Delete account":"Izbriši račun","Don't have an account?":"Nimate računa?",Email:"E-pošta","Email preference updated.":"E-poštne nastavitve posodobljene","Email preferences":"Nastavitve e-pošte",Emails:"E-pošta","Emails disabled":"E-pošta onemogočena","Get help":"Pomoč","Get notified when someone replies to your comment":"Prejmite obvestilo, ko nekdo odgovori na vaš komentar","Give feedback on this post":"Podajte povratne informacije o tej objavi","Less like this":"Ni mi všeč",Manage:"Upravljanje",Monthly:"Mesečno","More like this":"Všeč mi je",Name:"Ime","Not receiving emails?":"Ne prejemate e-poštnih sporočil?","Now check your email!":"Preverite svojo e-pošto!",Price:"Cena","Re-enable emails":"Ponovna vključitev e-poštnih sporočil",Retry:"Cena",Save:"Shrani","Sending login link...":"Pošiljanje povezave za prijavo...","Sending...":"Pošiljanje...","Sign in":"Prijava","Sign up":"Registracija","Start {{amount}}-day free trial":"Začetek {{amount}}-dnevnega brezplačnega preizkusa","Submit feedback":"Pošljite povratno informacijo","Successfully unsubscribed":"Uspešno ste se odjavili","Thanks for the feedback!":"Hvala za povratne informacije!","That didn't go to plan":"To ni šlo po načrtu","This site is invite-only, contact the owner for access.":"To spletno mesto je dostopno samo s povabilom, obrnite se na lastnika.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Za dokončanje prijave kliknite potrditveno povezavo, ki smo vam jo poslali na vaš e-poštni naslov. Če je ne prejmete v treh minutah, preverite mapo za neželeno pošto!","Unsubscribe from all emails":"Odjava od vseh e-poštnih sporočil","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Odjava od e-poštnih sporočil ne bo preklicala vaše plačane naročnine na {{title}}","Update your preferences":"Posodobite svoje nastavitve","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nismo vas mogli odjaviti, ker e-poštnega naslova nismo našli. Prosimo, da se obrnete na lastnika spletnega mesta.",Yearly:"Letno","You have been successfully resubscribed":"Uspešno ste bili ponovno naročeni","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.":"Ne prejemate e-poštnih sporočil, ker ste naše sporočilo nedavno označili kot neželeno pošto ali, ker sporočil ni bilo mogoče dostaviti na vaš e-poštni naslov.","Your account":"Vaš račun","Your input helps shape what gets published.":"Vaš prispevek se nam pomaga odločati, kaj objavimo."},Gx={"{{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!",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."},Wx={"{{discount}}% discount":"%{{discount}} indirim","{{trialDays}} days free":"{{trialDays}} gün ücretsiz","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Gelen kutuna bir giriş linki gönderildi. Eğer 3 dakika içinde ulaşmazsa spam klasörünü kontrol ettiğinden emin ol.",Account:"Hesap","Account settings":"Hesap ayarları","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Ücretsiz deneme süresi bittikten sonra seçtiğin kategorinin normal fiyatından ücretlendirileceksin. O zamana kadar her an iptal edebilirsin.","Already a member?":"Zaten üye misin?",Back:"Geri dön","Back to Log in":"Giriş ekranına geri dön","Cancel subscription":"Aboneliği iptal et","Cancellation reason":"İptal sebebi","Choose a different plan":"Farklı bir plan seç","Choose your newsletters":"Haber e-postanı seç",Close:"Kapat",Comments:"Yorumlar",Confirm:"Onayla",Continue:"Devam et","Delete account":"Hesabı sil","Don't have an account?":"Hesabın yok mu?",Email:"E-posta","Email preference updated.":"E-posta tercihi güncellendi.","Email preferences":"E-posta tercihleri",Emails:"E-postalar","Emails disabled":"E-postalar devre dışı","Get help":"Yardım al","Get notified when someone replies to your comment":"Birisi yorumuna cevap yazdığında bildirim al","Give feedback on this post":"Gönderiye geri bildirim ver","Less like this":"Bunun gibi daha az",Manage:"Yönet",Monthly:"Aylık","More like this":"Bunun gibi daha fazla",Name:"İsim","Not receiving emails?":"E-posta almıyor musun?","Now check your email!":"Şimdi e-posta kutunu kontrol et!",Price:"Fiyat","Re-enable emails":"E-postaları yeniden etkinleştir",Retry:"Tekrar dene",Save:"Kaydet","Sending login link...":"Giriş linki gönderiliyor...","Sending...":"Gönderiliyor...","Sign in":"Giriş yap","Sign up":"Kayıt ol","Start {{amount}}-day free trial":"{{amount}} gün ücretsiz deneme süresini başlat","Submit feedback":"Geri bildirim gönder","Successfully unsubscribed":"Abonelikten başarıyla çıkıldı","Thanks for the feedback!":"Geri bildirim için teşekkürler!","That didn't go to plan":"Bir şeyler ters gitti","This site is invite-only, contact the owner for access.":"Bu site sadece davetiyesi olanlar içindir, erişim için site sahibiyle iletişime geç.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Kaydını tamamlamak için gelen kutuna gönderilen onay linkine tıkla. Eğer 3 dakika içinde ulaşmazsa spam klasörünü kontrol et!","Unsubscribe from all emails":"Tüm e-postaların aboneliğinden çık","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"E-postaların aboneliğinden çıkmak, {{title}} sitesine olan ücretli aboneliğini iptal etmeyecek","Update your preferences":"Tercihlerini güncelle","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"E-posta adresi bulunamadığı için seni abonelikten çıkaramıyoruz. Lütfen site sahibiyle iletişime geç.",Yearly:"Yıllık","You have been successfully resubscribed":"Başarıyla yeniden abone oldun","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.":"E-postaları almıyorsun çünkü yakınlarda gönderilen bir mesajı spam olarak işaretledin ya da mesajlar verilen e-posta adresine teslim edilemedi.","Your account":"Hesabın","Your input helps shape what gets published.":"Yorumun yayımlanan içeriklerin şekillenmesine yardımcı olur."},Vx={"{{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ờ!",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 $x},"/i18n/locales/bg/portal.json":function(){return Tx},"/i18n/locales/ca/portal.json":function(){return Rx},"/i18n/locales/cs/portal.json":function(){return Ox},"/i18n/locales/de/portal.json":function(){return Dx},"/i18n/locales/en/portal.json":function(){return Lx},"/i18n/locales/eo/portal.json":function(){return jx},"/i18n/locales/es/portal.json":function(){return Ix},"/i18n/locales/fr/portal.json":function(){return Ax},"/i18n/locales/hu/portal.json":function(){return Mx},"/i18n/locales/it/portal.json":function(){return zx},"/i18n/locales/mn/portal.json":function(){return Fx},"/i18n/locales/nl/portal.json":function(){return Ux},"/i18n/locales/pl/portal.json":function(){return Bx},"/i18n/locales/pt-br/portal.json":function(){return Yx},"/i18n/locales/sl/portal.json":function(){return Hx},"/i18n/locales/sv/portal.json":function(){return Gx},"/i18n/locales/tr/portal.json":function(){return Wx},"/i18n/locales/vi/portal.json":function(){return Vx}})}function Kx(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=qx(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 qx(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={},Qx={get exports(){return Ga},set exports(e){Ga=e}},Cr={},Jx={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})(Jx);var cu={},Xx={get exports(){return cu},set exports(e){cu=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})(Xx);var uu={},Zx={get exports(){return uu},set exports(e){uu=e}},Wa={},e_={get exports(){return Wa},set exports(e){Wa=e}},du={},t_={get exports(){return du},set exports(e){du=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})(t_),function(e){var t=Cr.default,n=du;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}(e_),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}(Zx);var Va={},n_={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})(n_);var pu={},r_={get exports(){return pu},set exports(e){pu=e}},fu={},i_={get exports(){return fu},set exports(e){fu=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})(i_),function(e){var t=fu;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}(r_);var hu={},o_={get exports(){return hu},set exports(e){hu=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})(o_);var mu={},a_={get exports(){return mu},set exports(e){mu=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})(a_);var gu={},s_={get exports(){return gu},set exports(e){gu=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})(s_);var yu={},l_={get exports(){return yu},set exports(e){yu=e}},vu={},c_={get exports(){return vu},set exports(e){vu=e}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c_);var bu={},u_={get exports(){return bu},set exports(e){bu=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})(u_);var wu={},d_={get exports(){return wu},set exports(e){wu=e}},ku={},p_={get exports(){return ku},set exports(e){ku=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})(p_),function(e){var t=ku;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}(d_);var xu={},f_={get exports(){return xu},set exports(e){xu=e}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3157
|
+
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})(f_),function(e){var t=vu,n=bu,r=wu,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}(l_);var h_=Cr,m_=cu,g_=uu,y_=Va,v_=pu,b_=hu,w_=mu,k_=gu,x_=yu;function St(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ui=St(h_),st=St(m_),lt=St(g_),Nn=St(y_),Ka=St(v_),Bi=St(b_),nn=St(w_),rn=St(k_),__=St(x_);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 S_={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)}},E_=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||S_,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 E_,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 C_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function _u(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=_u(e,t,Object),i=r.obj,o=r.k;i[o]=n}function P_(e,t,n,r){var i=_u(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=_u(e,t),r=n.obj,i=n.k;if(r)return r[i]}function N_(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 $_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function T_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return $_[t]}):e}var Qa=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,R_=[" ",",","?","!",";"];function O_(e,t,n){t=t||"",n=n||"";var r=R_.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 D_(e){var t=L_();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 L_(){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 j_=function(e){Ka.default(n,e);var t=D_(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 I_(e){var t=A_();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 A_(){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=I_(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)),C_(["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&&!O_(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,x=h&&h.exactUsedKey||d,C=Object.prototype.toString.apply(m),S=["[object Number]","[object Function]","[object RegExp]"],T=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 T=="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?x: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 T=="string"&&C==="[object Array]")m=m.join(T),m&&(m=this.extendTranslation(m,i,o,a));else{var pt=!1,Ct=!1,$r=o.count!==void 0&&typeof o.count!="string",$n=n.hasDefaultValue(o),Cu=$r?this.pluralResolver.getSuffix(v,o.count,o):"",P=o["defaultValue".concat(Cu)]||o.defaultValue;!this.isValidLookup(m)&&$n&&(pt=!0,m=P),this.isValidLookup(m)||(Ct=!0,m=d);var D=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,I=D&&Ct?void 0:m,B=$n&&P!==m&&this.options.updateMissing;if(Ct||pt||B){if(this.logger.log(B?"updateKey":"missingKey",v,y,d,B?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(Tr,Nu,xg){var _g=$n&&xg!==m?xg:I;s.options.missingKeyHandler?s.options.missingKeyHandler(Tr,y,Nu,_g,B,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Tr,y,Nu,_g,B,o),s.emit("missingKey",Tr,y,Nu,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$r?Le.forEach(function(Pu){s.pluralResolver.getSuffixes(Pu,o).forEach(function(Tr){Nt([Pu],d+Tr,o["defaultValue".concat(Tr)]||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),x=0;x<m;x++)w[x]=arguments[x];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(x){o.isValidLookup(s)||(d=x,!og["".concat(w[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(og["".concat(w[0],"-").concat(x)]=!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,x,a);else{var T;g&&(T=o.pluralResolver.getSuffix(C,a.count,a));var O="".concat(o.options.pluralSeparator,"zero");if(g&&(S.push(v+T),h&&S.push(v+O)),m){var N="".concat(v).concat(o.options.contextSeparator).concat(a.context);S.push(N),g&&(S.push(N+T),h&&S.push(N+O))}}for(var F;F=S.pop();)o.isValidLookup(s)||(c=F,s=o.getResource(C,x,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 Su(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]=Su(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]=Su(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Su(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}(),M_=[{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}],z_={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}},F_=["v1","v2","v3"],lg={zero:0,one:1,two:2,few:3,many:4,other:5};function U_(){var e={};return M_.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:z_[t.fc]}})}),e}var B_=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=U_()}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!F_.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=N_(e,t,n);return!o&&i&&typeof n=="string"&&(o=Ja(e,n,r),o===void 0&&(o=Ja(t,n,r))),o}var Y_=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:T_,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),x=w.shift().trim(),C=w.join(a.formatSeparator).trim();return a.format(ug(r,p,x,a.options.keySeparator,a.options.ignoreJSONStructure),C,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:x}))};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(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),x),"".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 H_(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=__.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 G_=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=H_(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 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 K_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var q_=function(e){Ka.default(n,e);var t=W_(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){P_(d.loaded,[l],c),K_(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 Q_(e){var t=J_();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 J_(){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 X_(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=Q_(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:[]},X_(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=G_);var p=new sg(this.options);this.store=new j_(this.options.resources,this.options);var d=this.services;d.logger=ct,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new B_(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 Y_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new q_(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),x=1;x<m;x++)w[x-1]=arguments[x];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),x=1;x<m;x++)w[x-1]=arguments[x];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(x,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(x,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 Z_=yg;const e2=Z_,vg=["af","bg","ca","cs","de","en","eo","es","fr","hu","it","mn","nl","pl","pt-br","sl","sv","tr","vi"];Qx.exports=(e="en",t="portal")=>{const n=e2.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]:Kx("/i18n/lib")(`../locales/${i}/${t}.json`)},r),{})}),n},Ga.SUPPORTED_LOCALES=vg,function(e){e.exports=Ga}(Nx);const t2=je(lu),n2={showPopup:!0,site:Er,member:Ya.free,page:"accountEmail",...Zk(),pageData:Wm};function r2({site:e,children:t}){const{portal_sentry:n}=e||{};return n&&n.dsn?u(Mi,{children:t}):u(U,{children:t})}class i2 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(),Px({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=t2(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?n2: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}=hm({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.29.3|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 Sx({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(),!xt({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}am({site:t,pageQuery:n})&&(o=am({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"),ou({page:n})}getContextMember({page:t,member:n,customSiteUrl:r}){return K(["dev","preview"],{customSiteUrl:r})?Vk({page:t})||Kk({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(r2,{site:this.state.site,children:b(R.Provider,{value:this.getContextFromState(),children:[u(Um,{}),u(dm,{}),u(gm,{})]})}):null}}const bg="ghost-portal-root";function o2(){const e=document.createElement("div");e.id=bg,document.body.appendChild(e)}function a2(){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 s2(){const e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}function l2({siteUrl:e}){o2(),s2()}function c2(){const{siteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r}=a2(),i=e||window.location.origin;l2({siteUrl:i}),Lv.render(u(q.StrictMode,{children:u(i2,{siteUrl:i,customSiteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r})}),document.getElementById(bg))}c2()});
|
|
3150
3158
|
//# sourceMappingURL=portal.min.js.map
|