1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,658921,(e,t,n)=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},745560,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0}),e.r(658921),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},403368,(e,t,n)=>{"use strict";function r(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break}}function i(e){return 0===e.length?null:e[0]}function s(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,i=e.length,s=i>>>1;r<s;){var o=2*(r+1)-1,l=e[o],u=o+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[o]=n,r=o);else if(u<i&&0>a(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(n.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,l=performance;n.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();n.unstable_now=function(){return u.now()-c}}var d=[],f=[],h=1,p=null,g=3,v=!1,m=!1,_=!1,y=!1,b="function"==typeof setTimeout?setTimeout:null,w="function"==typeof clearTimeout?clearTimeout:null,S="u">typeof setImmediate?setImmediate:null;function k(e){for(var t=i(f);null!==t;){if(null===t.callback)s(f);else if(t.startTime<=e)s(f),t.sortIndex=t.expirationTime,r(d,t);else break;t=i(f)}}function x(e){if(_=!1,k(e),!m)if(null!==i(d))m=!0,E||(E=!0,o());else{var t=i(f);null!==t&&L(x,t.startTime-e)}}var E=!1,P=-1,C=5,T=-1;function O(){return!!y||!(n.unstable_now()-T<C)}function F(){if(y=!1,E){var e=n.unstable_now();T=e;var t=!0;try{e:{m=!1,_&&(_=!1,w(P),P=-1),v=!0;var r=g;try{t:{for(k(e),p=i(d);null!==p&&!(p.expirationTime>e&&O());){var a=p.callback;if("function"==typeof a){p.callback=null,g=p.priorityLevel;var l=a(p.expirationTime<=e);if(e=n.unstable_now(),"function"==typeof l){p.callback=l,k(e),t=!0;break t}p===i(d)&&s(d),k(e)}else s(d);p=i(d)}if(null!==p)t=!0;else{var u=i(f);null!==u&&L(x,u.startTime-e),t=!1}}break e}finally{p=null,g=r,v=!1}}}finally{t?o():E=!1}}}if("function"==typeof S)o=function(){S(F)};else if("u">typeof MessageChannel){var N=new MessageChannel,R=N.port2;N.port1.onmessage=F,o=function(){R.postMessage(null)}}else o=function(){b(F,0)};function L(e,t){P=b(function(){e(n.unstable_now())},t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return g},n.unstable_next=function(e){switch(g){case 1:case 2:case 3:var t=3;break;default:t=g}var n=g;g=t;try{return e()}finally{g=n}},n.unstable_requestPaint=function(){y=!0},n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=g;g=e;try{return t()}finally{g=n}},n.unstable_scheduleCallback=function(e,t,s){var a=n.unstable_now();switch(s="object"==typeof s&&null!==s&&"number"==typeof(s=s.delay)&&0<s?a+s:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=0x3fffffff;break;case 4:l=1e4;break;default:l=5e3}return l=s+l,e={id:h++,callback:t,priorityLevel:e,startTime:s,expirationTime:l,sortIndex:-1},s>a?(e.sortIndex=s,r(f,e),null===i(d)&&e===i(f)&&(_?(w(P),P=-1):_=!0,L(x,s-a))):(e.sortIndex=l,r(d,e),m||v||(m=!0,E||(E=!0,o()))),e},n.unstable_shouldYield=O,n.unstable_wrapCallback=function(e){var t=g;return function(){var n=g;g=t;try{return e.apply(this,arguments)}finally{g=n}}}},873141,(e,t,n)=>{"use strict";
1e.i(282693),t.exports=e.r(403368)},712658,(e,t,n)=>{"use strict";let r,i,s,a;e.i(282693),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"hydrate",{enumerable:!0,get:function(){return j}});let o=e.r(836437),l=e.r(812367);e.r(745560);let u=o._(e.r(337562)),c=o._(e.r(327158)),d=e.r(56810),f=e.r(826038),h=e.r(947415),p=e.r(888716),g=e.r(528889),v=e.r(239373),m=e.r(161172),_=o._(e.r(398476)),y=e.r(434730);e.r(229831);let b=e.r(755132),w=e.r(133608),S=e.r(318848),k=e.r(63175),x=d.createFromReadableStream,E=d.createFromFetch,P=document,C=self.__next_instant_test?self.__next_instant_test:void 0,T=new TextEncoder,O=!1,F=!1,N=null;function R(e){if(0===e[0])s=[];else if(1===e[0]){if(!s)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});a?a.enqueue(T.encode(e[1])):s.push(e[1])}else if(2===e[0])N=e[1];else if(3===e[0]){if(!s)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let n=atob(e[1]),r=new Uint8Array(n.length);for(var t=0;t<n.length;t++)r[t]=n.charCodeAt(t);a?a.enqueue(r):s.push(r)}}let L=function(){a&&!F&&(a.close(),F=!0,s=void 0),O=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",L,!1):setTimeout(L);let I=self.__next_f=self.__next_f||[];I.forEach(R),I.length=0,I.push=R;let M=new ReadableStream({start(e){s&&(s.forEach(t=>{e.enqueue("string"==typeof t?T.encode(t):t)}),O&&!F)&&(null===e.desiredSize||e.desiredSize<0?C||e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),F=!0,s=void 0),a=e}});if(C)i=Promise.resolve(E(C,{callServer:g.callServer,findSourceMapURL:v.findSourceMapURL,debugChannel:r,unstable_allowPartialStream:!0})).then(async e=>(0,b.createInitialRSCPayloadFromFallbackPrerender)(await C,e));else if(window.__NEXT_CLIENT_RESUME){let e=window.__NEXT_CLIENT_RESUME;i=Promise.resolve(E(e,{callServer:g.callServer,findSourceMapURL:v.findSourceMapURL,debugChannel:r})).then(async t=>(0,b.createInitialRSCPayloadFromFallbackPrerender)(await e,t))}else i=x(M,{callServer:g.callServer,findSourceMapURL:v.findSourceMapURL,debugChannel:r,startTime:0});function A({initialRSCPayload:e,actionQueue:t,webSocket:n,staticIndicatorState:r}){return(0,l.jsx)(_.default,{actionQueue:t,globalErrorState:e.G,webSocket:n,staticIndicatorState:r})}let D=c.default.StrictMode;function z({children:e}){return e}let $={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:h.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};async function j(e,t){let n,r,s=await i;s.b?(0,S.setNavigationBuildId)(s.b):(0,S.setNavigationBuildId)((0,w.getDeploymentId)()),(0,k.initializeRouterTransitionModules)(e);let a=Date.now(),o=(0,m.createMutableActionQueue)((0,y.createInitialRouterState)({navigatedAt:a,initialRSCPayload:s,initialFlightStreamForCache:null,location:window.location})),d=(0,l.jsx)(D,{children:(0,l.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,l.jsx)(z,{children:(0,l.jsx)(A,{initialRSCPayload:s,actionQueue:o,webSocket:r,staticIndicatorState:n})})})});"__next_error__"===document.documentElement.id?u.default.createRoot(P,$).render(d):c.default.startTransition(()=>{u.default.hydrateRoot(P,d,{...$,formState:N})})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},371336,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0}),e.r(542654);let r=e.r(97786);e.r(947415),window.next.turbopack=!0,self.__webpack_hash__="";let i=e.r(302947);(0,r.appBootstrap)(t=>{let{hydrate:n}=e.r(712658);n(i,t)}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
1dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},944672,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getAssetPrefix",{enumerable:!0,get:function(){return i}});let r=e.r(725344);function i(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw Object.defineProperty(new r.InvariantError(`Expected document.currentScript to be a <script> element. Received ${e} instead.`),"__NEXT_ERROR_CODE",{value:"E783",enumerable:!1,configurable:!0});let{pathname:t}=new URL(e.src),n=t.indexOf("/_next/");if(-1===n)throw Object.defineProperty(new r.InvariantError(`Expected document.currentScript src to contain '/_next/'. Received ${e.src} instead.`),"__NEXT_ERROR_CODE",{value:"E784",enumerable:!1,configurable:!0});return t.slice(0,n)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},229323,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},i=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[n,a]of Object.entries(t)){if(!t.hasOwnProperty(n)||i.includes(n)||void 0===a)continue;let o=r[n]||n.toLowerCase();"SCRIPT"===e.tagName&&s(o)?e[o]=!!a:e.setAttribute(o,String(a)),(!1===a||"SCRIPT"===e.tagName&&s(o)&&(!a||"false"===a))&&(e.setAttribute(o,""),e.removeAttribute(o))}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},97786,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"appBootstrap",{enumerable:!0,get:function(){return s}});let r=e.r(944672),i=e.r(229323);function s(e){var t,n;let s=(0,r.getAssetPrefix)();t=self.__next_s,n=()=>{e(s)},t&&t.length?t.reduce((e,[t,n])=>e.then(()=>new Promise((e,r)=>{let s=document.createElement("script");n&&(0,i.setAttributesFromProps)(s,n),t?(s.src=t,s.onload=()=>e(),s.onerror=r):n&&(s.innerHTML=n.children,setTimeout(e)),document.head.appendChild(s)})),Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}window.next={version:"16.3.3",appDir:!0},("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},382837,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AppRouterAnnouncer",{enumerable:!0,get:function(){return a}});let r=e.r(327158),i=e.r(160995),s="next-route-announcer";function a({tree:e}){let[t,n]=(0,r.useState)(null);(0,r.useEffect)(()=>(n(function(){let e=document.getElementsByName(s)[0];if(e?.shadowRoot?.childNodes[0])return e.shadowRoot.childNodes[0];{let e=document.createElement(s);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(s)[0];e?.isConnected&&document.body.removeChild(e)}),[]);let[o,l]=(0,r.useState)(""),u=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==u.current&&u.current!==e&&l(e),u.current=e},[e]),t?(0,i.createPortal)(o,t):null}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
1dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},398476,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return L}});let r=e.r(836437),i=e.r(56421),s=e.r(812367),a=i._(e.r(327158)),o=e.r(229831),l=e.r(5901),u=e.r(168267),c=e.r(111238),d=e.r(803155),f=e.r(907040),h=e.r(382837),p=e.r(429084),g=e.r(224870),v=e.r(300933),m=e.r(319927),_=e.r(594773),y=e.r(14186),b=e.r(70441),w=e.r(161172),S=e.r(330118),k=e.r(395775),x=e.r(796718),E=r._(e.r(740142)),P=r._(e.r(323135)),C=e.r(990595);e.r(133608);let T={};function O({appRouterState:e}){return(0,a.useInsertionEffect)(()=>{let{tree:t,pushRef:n,canonicalUrl:r,renderedSearch:i}=e,s={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:i}};n.pendingPush&&(0,u.createHrefFromUrl)(new URL(window.location.href))!==r?(n.pendingPush=!1,window.history.pushState(s,"",r)):window.history.replaceState(s,"",r),(0,f.setLastCommittedTree)(t)},[e]),(0,a.useEffect)(()=>{(0,x.pingVisibleLinks)(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function F(e){null==e&&(e={});let t=window.history.state,n=t?.__NA;n&&(e.__NA=n);let r=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N({headCacheNode:e}){let t=null!==e?e.head:null,n=null!==e?e.prefetchHead:null,r=null!==n?n:t;return(0,a.useDeferredValue)(t,r)}function R({actionQueue:e,globalError:t,webSocket:n,staticIndicatorState:r}){let i,u=(0,d.useActionQueue)(e),{canonicalUrl:f}=u,{searchParams:b,pathname:x}=(0,a.useMemo)(()=>{let e=new URL(f,"u"<typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,_.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[f]);(0,a.useEffect)(()=>{let e=(0,y.extractSourcePageFromFlightRouterState)(u.tree);void 0!==e?window.next.__internal_src_page=e:delete window.next.__internal_src_page},[u.tree]),(0,a.useEffect)(()=>{function e(e){e.persisted&&window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE&&(T.pendingMpaPath=void 0,(0,d.dispatchAppRouterAction)({type:l.ACTION_RESTORE,url:new URL(window.location.href),historyState:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,a.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,k.isRedirectError)(t)){e.preventDefault();let n=(0,S.getURLFromRedirectError)(t);"push"===(0,S.getRedirectTypeFromError)(t)?w.publicAppRouterInstance.push(n,{}):w.publicAppRouterInstance.replace(n,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:P}=u;if(P.mpaNavigation){if(T.pendingMpaPath!==f){let e=window.location;P.pendingPush?e.assign(f):e.replace(f),T.pendingMpaPath=f}throw v.unresolvedThenable}(0,a.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{let t=window.location.href,n=window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,a.startTransition)(()=>{(0,d.dispatchAppRouterAction)({type:l.ACTION_RESTORE,url:new URL(e??t,t),historyState:n})})};window.history.pushState=function(t,r,i){return t?.__NA||t?._N||(t=F(t),i&&n(i)),e(t,r,i)},window.history.replaceState=function(e,r,i){return e?.__NA||e?._N||(e=F(e),i&&n(i)),t(e,r,i)};let r=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,a.startTransition)(()=>{(0,w.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[]);let{cache:L,tree:I,nextUrl:M,focusAndScrollRef:A,previousNextUrl:D}=u,z=(0,a.useMemo)(()=>(0,g.findHeadInCache)(L,I[1]),[L,I]),$=(0,a.useMemo)(()=>(0,y.getSelectedParams)(I),[I]),j=(0,a.useMemo)(()=>({parentTree:I,parentCacheNode:L,parentSegmentPath:null,parentParam
1s:{},parentLoadingData:null,debugNameContext:"/",url:f,isActive:!0}),[I,L,f]),U=(0,a.useMemo)(()=>({tree:I,focusAndScrollRef:A,nextUrl:M,previousNextUrl:D}),[I,A,M,D]);if(null!==z){let[e,t,n]=z;i=(0,s.jsx)(N,{headCacheNode:e},"u"<typeof window?n:t)}else i=null;let B=(0,s.jsxs)(p.RedirectBoundary,{children:[i,(0,s.jsx)(C.RootLayoutBoundary,{children:L.rsc}),(0,s.jsx)(h.AppRouterAnnouncer,{tree:I})]});return B=(0,s.jsx)(E.default,{errorComponent:t[0],errorStyles:t[1],children:B}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O,{appRouterState:u}),null,(0,s.jsx)(c.NavigationPromisesContext.Provider,{value:null,children:(0,s.jsx)(c.PathParamsContext.Provider,{value:$,children:(0,s.jsx)(c.PathnameContext.Provider,{value:x,children:(0,s.jsx)(c.SearchParamsContext.Provider,{value:b,children:(0,s.jsx)(o.GlobalLayoutRouterContext.Provider,{value:U,children:(0,s.jsx)(o.AppRouterContext.Provider,{value:w.publicAppRouterInstance,children:(0,s.jsx)(o.LayoutRouterContext.Provider,{value:j,children:B})})})})})})})]})}function L({actionQueue:e,globalErrorState:t,webSocket:n,staticIndicatorState:r}){(0,b.useNavFailureHandler)();let i=(0,s.jsx)(R,{actionQueue:e,globalError:t,webSocket:n,staticIndicatorState:r});return(0,s.jsx)(E.default,{errorComponent:P.default,children:i})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},626361,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={GracefulDegradeBoundary:function(){return o},default:function(){return l}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(812367),a=e.r(327158);class o extends a.Component{constructor(e){super(e),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,a.createRef)()}static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(([t,n])=>{e.setAttribute(t,n)})}render(){let{hasError:e}=this.state;return("u">typeof window&&!this.rootHtml&&(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}(document.documentElement)),e)?(0,s.jsx)("html",{ref:this.htmlRef,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:this.rootHtml}}):this.props.children}}let l=o;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},740142,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let r=e.r(836437),i=e.r(812367);e.r(327158);let s=r._(e.r(626361)),a=e.r(879915),o=e.r(420060),l="u">typeof window&&(0,o.isBot)(window.navigator.userAgent);function u({children:e,errorComponent:t,errorStyles:n,errorScripts:r}){return l?(0,i.jsx)(s.default,{children:e}):(0,i.jsx)(a.ErrorBoundary,{errorComponent:t,errorStyles:n,errorScripts:r,children:e})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},434730,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createInitialRouterState",{enumerable:!0,get:function(){return f}});let r=e.r(168267),i=e.r(14186),s=e.r(755132),a=e.r(155050),o=e.r(431729),l=e.r(789220),u=e.r(18736),c=e.r(131732),d=e.r(39395);function f({navigatedAt:e,initialRSCPayload:t,initialFlightStreamForCache:n,location:h}){let{c:p,f:g,q:v,i:m,S:_,s:y,l:b,h:w,r:S,p:k,d:x}=t,E=p.join("/"),{tree:P,seedData:C,head:T}=(0,s.getFlightDataPartsFromPath)(g[0]),O=h?(0,r.createHrefFromUrl)(h):E,F={metadataVaryPath:null,treeDivergedFromBase:!1},N=(0,o.convertRootFlightRouterStateToRouteTree)(P,v,F),R=F.metadataVaryPath,L=(0,a.createInitialCacheNodeForHydration)(e,
1N,C,T,(0,u.computeDynamicStaleAt)(e,x??u.UnknownDynamicStaleTime));if(null!==h&&null!==R){if((0,d.discoverKnownRoute)(Date.now(),h.pathname,h.search,null,null,N,R,m,O,_,!1),null!==C&&void 0!==y)if(void 0!==b&&null!=n)Promise.resolve(b).then(async e=>{let t=await (0,c.decodeStageUntilBoundary)(n,e,void 0),r=Date.now(),i=await (0,o.resolveStaleAt)(r,t.s);(0,o.writePrerenderResponseIntoCache)(r,l.FetchStrategy.PPR,t.f,void 0,t.h,t.r??null,i,P,v,!0,o.segmentCacheMap)}).catch(()=>{});else{let e=Date.now();(0,o.resolveStaleAt)(e,y).then(t=>{(0,o.writePrerenderResponseIntoCache)(e,l.FetchStrategy.PPR,g,void 0,w,S??null,t,P,v,!1,o.segmentCacheMap)}).catch(()=>{}),n?.cancel()}else n?.cancel();null!=k&&(0,o.processRuntimePrefetchStream)(Date.now(),k,P,v).then(e=>{null!==e&&(0,o.writeDynamicRenderResponseIntoCache)(Date.now(),l.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.rootVaryParamsIterable,e.staleAt,e.navigationSeed,null,o.segmentCacheMap)}).catch(()=>{})}return{tree:L.route,cache:L.node,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{scrollRef:null,forceScroll:!1,onlyHashChange:!1,hashFragment:null},canonicalUrl:O,renderedSearch:v,nextUrl:((0,i.extractPathFromFlightRouterState)(P)||h?.pathname)??null,previousNextUrl:null,debugInfo:null}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},224870,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findHeadInCache",{enumerable:!0,get:function(){return s}});let r=e.r(567509),i=e.r(976354);function s(e,t){return function e(t,n,s,a){if(0===Object.keys(n).length)return[t,s,a];let o=Object.keys(n).filter(e=>"children"!==e);"children"in n&&o.unshift("children");let l=t.slots;if(null!==l)for(let t of o){let[a,o]=n[t];if(a===r.DEFAULT_SEGMENT_KEY)continue;let u=l[t];if(!u)continue;let c=e(u,o,s+"/"+(0,i.createRouterCacheKey)(a),s+"/"+(0,i.createRouterCacheKey)(a,!0));if(c)return c}return null}(e,t,"","")}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},888716,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0});var r={onCaughtError:function(){return f},onUncaughtError:function(){return h}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(836437),a=e.r(787013),o=e.r(699827),l=e.r(2909),u=e.r(879915),c=s._(e.r(323135)),d={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function f(e,t){let n,r=t.errorBoundary?.constructor;if(n=n||r===u.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===c.default)return h(e);(0,o.isBailoutToCSRError)(e)||(0,a.isNextRouterError)(e)||d.originConsoleError(e)}function h(e){(0,o.isBailoutToCSRError)(e)||(0,a.isNextRouterError)(e)||(0,l.reportGlobalError)(e)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},542654,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e.r(133608).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=r,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},217486,(e,t,n)=>{"use strict";var r,i=e.i(282693),s=e.r(873141),a=e.r(327158),o=e.r(160995);function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function c(e){for(var t=e,n=t;n&&!n.alternate;)0!=(4098&(t=n).flags)&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return 3===t.tag?e:null}function d(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function f(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function p(e,t,n,r,i,s){for(;null!==e;){if((5===e.tag||6===e.tag)&&n(e,r,i,s)||(22!==e.tag||null===e.memoizedState)&&(t||5!==e.tag)&&p(e.child,t,n,r,i,s))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;null!==e;){if(3===e.tag||5===e.tag)return e;e=e.return}return null}
vendor: 3,030 bytes, line 1
1function v(e){switch(e.tag){case 5:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var m=null,_=null;function y(e){return m=e,!0}function b(e,t,n){return e===n||e===t&&(m=e,!0)}function w(e,t,n){return e===n?(_=e,!1):e===t&&(null!==_&&(m=e),!0)}function S(e){if(null===e)return null;do e=null===e?null:e.return;while(e&&5!==e.tag&&27!==e.tag&&3!==e.tag)return e||null}function k(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var s=t;s;s=n(s))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||null!==t&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var x=Object.assign,E=Symbol.for("react.element"),P=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),R=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope");var z=Symbol.for("react.activity"),$=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var j=Symbol.for("react.memo_cache_sentinel"),U=Symbol.for("react.view_transition"),B=Symbol.for("react.recoverable"),H=Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}var q=Symbol.for("react.client.reference"),W=Array.isArray,G=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},K=[],X=-1;function J(e){return{current:e}}function Z(e){0>X||(e.current=K[X],K[X]=null,X--)}function ee(e,t){K[++X]=e.current,e.current=t}var et=J(null),en=J(null),er=J(null),ei=J(null);function es(e,t){switch(ee(er,t),ee(en,e),ee(et,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=cg(t=cp(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(et),ee(et,e)}function ea(){Z(et),Z(en),Z(er)}function eo(e){var t=e.memoizedState;null!==t&&(dC._currentValue=t.memoizedState,ee(ei,e));var n=cg(t=et.current,e.type);t!==n&&(ee(en,e),ee(et,n))}function el(e){en.current===e&&(Z(et),Z(en)),ei.current===e&&(Z(ei),dC._currentValue=Y)}function eu(e){if(void 0===tX)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);tX=t&&t[1]||"",tJ=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+tX+e+tJ}var ec=!1;function ed(e,t){if(!e||ec)return"";ec=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
1else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(void 0!==i?Object.defineProperty(e.prototype,"props",i):delete e.prototype.props)}}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=r.DetermineComponentFrameRoot(),a=s[0],o=s[1];if(a&&o){var l=a.split("\n"),u=o.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do if(r--,i--,0>i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=i)break}}}finally{ec=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eu(n):""}function ef(e){try{var t="",n=null;do t+=function(e,t){switch(e.tag){case 26:case 27:case 5:return eu(e.type);case 16:return eu("Lazy");case 13:return e.child!==t&&null!==t?eu("Suspense Fallback"):eu("Suspense");case 19:return eu("SuspenseList");case 0:case 15:return ed(e.type,!1);case 11:return ed(e.type.render,!1);case 1:return ed(e.type,!0);case 31:return eu("Activity");case 30:return eu("ViewTransition");default:return""}}(e,n),n=e,e=e.return;while(e)return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var eh=Object.prototype.hasOwnProperty,ep=s.unstable_scheduleCallback,eg=s.unstable_cancelCallback,ev=s.unstable_shouldYield,em=s.unstable_requestPaint,e_=s.unstable_now,ey=s.unstable_getCurrentPriorityLevel,eb=s.unstable_ImmediatePriority,ew=s.unstable_UserBlockingPriority,eS=s.unstable_NormalPriority,ek=s.unstable_LowPriority,ex=s.unstable_IdlePriority,eE=(s.log,s.unstable_setDisableYieldValue,null),eP=null,eC=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eT(e)/eO|0)|0},eT=Math.log,eO=Math.LN2,eF=256,eN=262144,eR=4194304;function eL(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eI(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,s=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var o=0x7ffffff&r;return 0!==o?0!=(r=o&~s)?i=eL(r):0!=(a&=o)?i=eL(a):n||0!=(n=o&~e)&&(i=eL(n)):0!=(o=r&~s)?i=eL(o):0!==a?i=eL(a):n||0!=(n=r&~e)&&(i=eL(n)),0===i?0:0!==t&&t!==i&&0==(t&s)&&((s=i&-i)>=(n=t&-t)||32===s&&0!=(4194048&n))?t:i}function eM(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function eA(){var e=eR;return 0==(0x3c00000&(eR<<=1))&&(eR=4194304),e}function eD(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ez(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function e$(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-eC(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|261930&n}function ej(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-eC(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function eU(e,t){var n=t&-t;return 0!=((n=0!=(42&n)?1:eB(n))&(e.suspendedLanes|t))?0:n}function eB(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 0x1000000:case 0x2000000:e=128;break;case 0x10000000:e=0x8000000;break;default:e=0}return e}function eH(e){return 2<(e&=-e)?8<e?0!=(0x7ffffff&e)?32:0x10000000:8:2}function eV(){var e=Q.p;return 0!==e?e:void 0===(e=window.event)?32:dB(e.type)}function eq(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var eW=Math.random().toString(36).slice(2),eG="__reactFiber$"+eW,eQ="__reactProps$"+eW,eY="__reactContainer$"+eW,eK="__reactEvents$"+eW,eX="__reactListeners$"+eW,eJ="__reactHandles$"+eW,eZ="__reactResources$"+eW,e0="__reactMarker$"+eW,e1="__reactLoad$"+eW;function e2(e){delete e[eG],delete e[eQ],delete e[eX],delete e[eJ]}function e3(e){var t;if(t=e[eG])return t;for(var n=e.parentNode;n;){if(t=n[eY]||n[eG]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=c2(e);null!==e;){if(n=e[eG])return n;e=c2(e)}return t}n=(e=n).parentNode}return null}function e4(e){if(e=e[eG]||e[eY]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function e5(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(l(33))}function e8(e){var t=e[eZ];return t||(t=e[eZ]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function e6(e){e[e0]=!0}function e7(e){e[e1]=void 0}var e9=new Set,te={};function tt(e,t){tn(e,t),tn(e+"Capture",t)}function tn(e,t){for(te[e]=t,e=0;e<t.length;e++)e9.add(t[e])}
1var tr=RegExp("^[: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]*$"),ti={},ts={},ta=!1;function to(){var e=ta;return ta=!1,e}function tl(e,t,n){if(eh.call(ts,t)||!eh.call(ti,t)&&(tr.test(t)?ts[t]=!0:(ti[t]=!0,!1)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,n)}}function tu(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function tc(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function td(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function th(e){if(!e._valueTracker){var t=tf(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var tg=/[\n"\\]/g;function tv(e){return e.replace(tg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function tm(e,t,n,r,i,s,a,o){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+td(t)):e.value!==""+td(t)&&(e.value=""+td(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?"number"===a&&e.value==t?ty(e,td(e.value)):ty(e,td(t)):null!=n?ty(e,td(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=s&&(e.defaultChecked=!!s),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.name=""+td(o):e.removeAttribute("name")}function t_(e,t,n,r,i,s,a,o){if(null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.type=s),null!=t||null!=n){if(("submit"===s||"reset"===s)&&null==t)return void th(e);n=null!=n?""+td(n):"",t=null!=t?""+td(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),th(e)}function ty(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function tb(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=""+td(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function tw(e,t,n){if(null!=t&&((t=""+td(t))!==e.value&&(e.value=t),null==n)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=null!=n?""+td(n):""}function tS(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(l(92));if(W(r)){if(1<r.length)throw Error(l(93));r=r[0]}n=r}null==n&&(n=""),t=n}e.defaultValue=n=td(t),(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),th(e)}function tk(e,t){if(t){var n=e.firstChild;
vendor: 4,179 bytes, line 1
1if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var tx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tE(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||tx.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tP(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(l(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="",ta=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(tE(e,i,r),ta=!0)}else for(var s in t)t.hasOwnProperty(s)&&tE(e,s,t[s])}function tC(e){if(-1===e.indexOf("-"))return!1;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}}var tT=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
1-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tO=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tF(e){return tO.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tN(){}var tR=null;function tL(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tI=null,tM=null;function tA(e){var t=e4(e);if(t&&(e=t.stateNode)){var n=e[eQ]||null;switch(e=t.stateNode,t.type){case"input":if(tm(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+tv(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[eQ]||null;if(!i)throw Error(l(90));tm(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&tp(r)}break;case"textarea":tw(e,n.value,n.defaultValue);break;case"select":null!=(t=n.value)&&tb(e,!!n.multiple,t,!1)}}}var tD=!1;function tz(e,t,n){if(tD)return e(t,n);tD=!0;try{return e(t)}finally{if(tD=!1,(null!==tI||null!==tM)&&(ua(),tI&&(t=tI,e=tM,tM=tI=null,tA(t),e)))for(t=0;t<e.length;t++)tA(e[t])}}function t$(e,t){var n=e.stateNode;if(null===n)return null;var r=n[eQ]||null;if(null===r)return null;switch(n=r[t],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)||(r="button"!==(e=e.type)&&"input"!==e&&"select"!==e&&"textarea"!==e),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var tj="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,tU=!1;if(tj)try{var tB={};Object.defineProperty(tB,"passive",{get:function(){tU=!0}}),window.addEventListener("test",tB,tB),window.removeEventListener("test",tB,tB)}catch(e){tU=!1}var tH=null,tV=null,tq=null;function tW(){if(tq)return tq;var e,t,n=tV,r=n.length,i="value"in tH?tH.value:tH.textContent,s=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[s-t];t++);return tq=i.slice(e,1<t?1-t:void 0)}function tG(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tQ(){return!0}function tY(){return!1}function tK(e){function t(t,n,r,i,s){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tQ:tY,this.isPropagationStopped=tY,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tQ)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tQ)},persist:function(){},isPersistent:tQ}),t}var tX,tJ,tZ,t0,t1,t2={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t3=tK(t2),t4=x({},t2,{view:0,detail:0}),t5=tK(t4),t8=x({},t4,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:no,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,389 bytes, line 1
1Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==t1&&(t1&&"mousemove"===e.type?(tZ=e.screenX-t1.screenX,t0=e.screenY-t1.screenY):t0=tZ=0,t1=e),tZ)},movementY:function(e){return"movementY"in e?e.movementY:t0}}),t6=tK(t8),t7=tK(x({},t8,{dataTransfer:0})),t9=tK(x({},t4,{relatedTarget:0})),ne=tK(x({},t2,{animationName:0,elapsedTime:0,pseudoElement:0})),nt=tK(x({},t2,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),nn=tK(x({},t2,{data:0})),nr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ni={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"},ns={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function na(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ns[e])&&!!t[e]}function no(){return na}var nl=tK(x({},t4,{key:function(e){if(e.key){var t=nr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tG(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ni[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:no,charCode:function(e){return"keypress"===e.type?tG(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tG(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),nu=tK(x({},t8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nc=tK(x({},t2,{submitter:0})),nd=tK(x({},t4,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:no})),nf=tK(x({},t2,{propertyName:0,elapsedTime:0,pseudoElement:0})),nh=tK(x({},t8,{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})),np=tK(x({},t2,{newState:0,oldState:0})),ng=[9,13,27,32],nv=tj&&"CompositionEvent"in window,nm=null;tj&&"documentMode"in document&&(nm=document.documentMode);var n_=tj&&"TextEvent"in window&&!nm,ny=tj&&(!nv||nm&&8<nm&&11>=nm),nb=!1;function nw(e,t){switch(e){case"keyup":return -1!==ng.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nS(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nk=!1,nx={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 nE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nx[e.type]:"textarea"===t}function nP(e,t,n,r){tI?tM?tM.push(r):tM=[r]:tI=r,0<(t=u9(t,"onChange")).length&&(n=new t3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nC=null,nT=null;function nO(e){u1(e,0)}function nF(e){if(tp(e5(e)))return e}function nN(e,t){if("change"===e)return t}var nR=!1;if(tj){if(tj){var nL="oninput"in document;if(!nL){var nI=document.createElement("div");nI.setAttribute("oninput","return;"),nL="function"==typeof nI.oninput}r=nL}else r=!1;nR=r&&(!document.documentMode||9<document.documentMode)}function nM(){nC&&(nC.detachEvent("onpropertychange",nA),nT=nC=null)}function nA(e){if("value"===e.propertyName&&nF(nT)){var t=[];nP(t,nT,e,tL(e)),tz(nO,t)}}function nD(e,t,n){"focusin"===e?(nM(),nC=t,nT=n,nC.attachEvent("onpropertychange",nA)):"focusout"===e&&nM()}function nz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nF(nT)}function n$(e,t){if("click"===e)return nF(t)}function nj(e,t){if("input"===e||"change"===e)return nF(t)}var nU="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nB(e,t){if(nU(e,t))return!0;
1if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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++){var i=n[r];if(!eh.call(t,i)||!nU(e[i],t[i]))return!1}return!0}function nH(e){if(void 0===(e=e||("u">typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function nV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nq(e,t){var n,r=nV(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nV(r)}}function nW(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=nH(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=nH(e.document)}return t}function nG(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nQ=tj&&"documentMode"in document&&11>=document.documentMode,nY=null,nK=null,nX=null,nJ=!1;function nZ(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nJ||null==nY||nY!==nH(r)||(r="selectionStart"in(r=nY)&&nG(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nX&&nB(nX,r)||(nX=r,0<(r=u9(nK,"onSelect")).length&&(t=new t3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nY)))}function n0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var n1={animationend:n0("Animation","AnimationEnd"),animationiteration:n0("Animation","AnimationIteration"),animationstart:n0("Animation","AnimationStart"),transitionrun:n0("Transition","TransitionRun"),transitionstart:n0("Transition","TransitionStart"),transitioncancel:n0("Transition","TransitionCancel"),transitionend:n0("Transition","TransitionEnd")},n2={},n3={};function n4(e){if(n2[e])return n2[e];if(!n1[e])return e;var t,n=n1[e];for(t in n)if(n.hasOwnProperty(t)&&t in n3)return n2[e]=n[t];return e}tj&&(n3=document.createElement("div").style,"AnimationEvent"in window||(delete n1.animationend.animation,delete n1.animationiteration.animation,delete n1.animationstart.animation),"TransitionEvent"in window||delete n1.transitionend.transition);var n5=n4("animationend"),n8=n4("animationiteration"),n6=n4("animationstart"),n7=n4("transitionrun"),n9=n4("transitionstart"),re=n4("transitioncancel"),rt=n4("transitionend"),rn=new Map,rr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ri(e,t){rn.set(e,t),tt(t,[e])}rr.push("scrollEnd");var rs=0;function ra(e,t){return null!=e.name&&"auto"!==e.name?e.name:null!==t.autoName?t.autoName:t.autoName=e="_"+(e=lJ.identifierPrefix)+"t_"+(rs++).toString(32)+"_"}function ro(e){if(null==e||"string"==typeof e)return e;var t=null,n=l8;if(null!==n)for(var r=0;r<n.length;r++){var i=e[n[r]];if(null!=i){if("none"===i)return"none";t=null==t?i:t+" "+i}}return null==t?e.default:t}function rl(e,t){return e=ro(e),null==(t=ro(t))?"auto"===e?null:e:"auto"===t?null:t}var ru="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof i.default&&"function"==typeof i.default.emit)return void i.default.emit("uncaughtException",e);console.error(e)},rc=[],rd=0,rf=0;function rh(){for(var e=rd,t=rf=rd=0;t<e;){var n=rc[t];rc[t++]=null;var r=rc[t];rc[t++]=null;
vendor: 4,795 bytes, line 1
1var i=rc[t];rc[t++]=null;var s=rc[t];if(rc[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==s&&rm(n,i,s)}}function rp(e,t,n,r){rc[rd++]=e,rc[rd++]=t,rc[rd++]=n,rc[rd++]=r,rf|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function rg(e,t,n,r){return rp(e,t,n,r),r_(e)}function rv(e,t){return rp(e,null,null,t),r_(e)}function rm(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,s=e.return;null!==s;)s.childLanes|=n,null!==(r=s.alternate)&&(r.childLanes|=n),22===s.tag&&(null===(e=s.stateNode)||1&e._visibility||(i=!0)),e=s,s=s.return;return 3===e.tag?(s=e.stateNode,i&&null!==t&&(i=31-eC(n),null===(r=(e=s.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=0x20000000|n),s):null}function r_(e){if(50<l6)throw l6=0,l7=null,Error(l(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var ry={};function rb(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.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rw(e,t,n,r){return new rb(e,t,n,r)}function rS(e){return!(!(e=e.prototype)||!e.isReactComponent)}function rk(e,t){var n=e.alternate;return null===n?((n=rw(e.tag,t,e.key,e.mode)).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.subtreeFlags=0,n.deletions=null),n.flags=0x47f00000&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function rx(e,t){e.flags&=0x47f00002;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,e.dependencies=null===(t=n.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function rE(e,t,n,r,i,s){var a=0;if("function"==typeof(r=e))rS(r)&&(a=1);else if("string"==typeof r)a=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,et.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(r){case z:return(e=rw(31,n,t,i)).elementType=z,e.lanes=s,e;case T:return rP(n.children,i,s,t);case O:a=8,i|=24;break;case F:return(e=rw(12,n,t,2|i)).elementType=F,e.lanes=s,e;case I:return(e=rw(13,n,t,i)).elementType=I,e.lanes=s,e;case M:return(e=rw(19,n,t,i)).elementType=M,e.lanes=s,e;case $:case U:return(e=rw(30,n,t,e=32|i)).elementType=U,e.lanes=s,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if("object"==typeof r&&null!==r)switch(r.$$typeof){case R:a=10;break e;case N:a=9;break e;case L:a=11;break e;case A:a=14;break e;case D:a=16,r=null;break e}a=29,n=Error(l(130,null===e?"null":typeof e,"")),r=null}return(t=rw(a,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function rP(e,t,n,r){return(e=rw(7,e,r,t)).lanes=n,e}function rC(e,t,n){return(e=rw(6,e,null,t)).lanes=n,e}function rT(e){var t=rw(18,null,null,0);return t.stateNode=e,t}function rO(e,t,n){return(t=rw(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rF=new WeakMap;function rN(e,t){if("object"==typeof e&&null!==e){var n=rF.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ef(t)},rF.set(e,t),t)}return{value:e,source:t,stack:ef(t)}}var rR=[],rL=0,rI=null,rM=0,rA=[],rD=0,rz=null,r$=1,rj="";function rU(e,t){rR[rL++]=rM,rR[rL++]=rI,rI=e,rM=t}function rB(e,t,n){rA[rD++]=r$,rA[rD++]=rj,rA[rD++]=rz,rz=e;var r=r$;e=rj;var i=32-eC(r)-1;r&=~(1<<i),n+=1;var s=32-eC(t)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,r$=1<<32-eC(t)+i|n<<i|r,rj=s+e}else r$=1<<s|n<<i|r,rj=e}
1function rH(e){null!==e.return&&(rU(e,1),rB(e,1,0))}function rV(e){for(;e===rI;)rI=rR[--rL],rR[rL]=null,rM=rR[--rL],rR[rL]=null;for(;e===rz;)rz=rA[--rD],rA[rD]=null,rj=rA[--rD],rA[rD]=null,r$=rA[--rD],rA[rD]=null}function rq(e,t){rA[rD++]=r$,rA[rD++]=rj,rA[rD++]=rz,r$=t.id,rj=t.overflow,rz=e}var rW=null,rG=null,rQ=!1,rY=null,rK=!1,rX=Error(l(519));function rJ(e){var t=Error(l(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML",""));throw r4(rN(t,e)),rX}function rZ(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[eG]=e,t[eQ]=r,n){case"dialog":u2("cancel",t),u2("close",t);break;case"iframe":case"object":case"embed":u2("load",t);break;case"video":case"audio":for(n=0;n<uZ.length;n++)u2(uZ[n],t);break;case"source":u2("error",t);break;case"img":case"image":case"link":u2("error",t),u2("load",t);break;case"details":u2("toggle",t);break;case"input":u2("invalid",t),t_(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":u2("invalid",t);break;case"textarea":u2("invalid",t),tS(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||cs(t.textContent,n)?(null!=r.popover&&(u2("beforetoggle",t),u2("toggle",t)),null!=r.onScroll&&u2("scroll",t),null!=r.onScrollEnd&&u2("scrollend",t),null!=r.onClick&&(t.onclick=tN),t=!0):t=!1,t||rJ(e,!0)}function r0(e){for(rW=e.return;rW;)switch(rW.tag){case 5:case 31:case 13:rK=!1;return;case 27:case 3:rK=!0;return;default:rW=rW.return}}function r1(e){if(e!==rW)return!1;if(!rQ)return r0(e),rQ=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t="form"===(t=e.type)||"button"===t||cv(e.type,e.memoizedProps)),t=!t),t&&rG&&rJ(e),r0(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));rG=c1(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));rG=c1(e)}else 27===n?(n=rG,ck(e.type)?(e=c0,c0=null,rG=e):rG=n):rG=rW?cZ(e.stateNode.nextSibling):null;return!0}function r2(){rG=rW=null,rQ=!1}function r3(){var e=rY;return null!==e&&(null===lV?lV=e:lV.push.apply(lV,e),rY=null),e}function r4(e){null===rY?rY=[e]:rY.push(e)}var r5=J(null),r8=null,r6=null;function r7(e,t,n){ee(r5,t._currentValue),t._currentValue=n}function r9(e){e._currentValue=r5.current,Z(r5)}function ie(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function it(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var s=i.dependencies;if(null!==s){var a=i.child;s=s.firstContext;e:for(;null!==s;){var o=s;s=i;for(var u=0;u<t.length;u++)if(o.context===t[u]){s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),ie(s.return,n,e),r||(a=null);break e}s=o.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(l(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ie(a,n,e),a=null}else 13===i.tag&&null!==i.memoizedState&&null===i.memoizedState.dehydrated?(i.lanes|=n,null!==(a=i.alternate)&&(a.lanes|=n),ie(i.return,n,e),a=null!==(a=i.child)?a.sibling:null):a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function ir(e,t,n,r){e=null;for(var i=t,s=!1;null!==i;){if(!s){if(0!=(524288&i.flags))s=!0;else if(0!=(262144&i.flags))break}if(10===i.tag){var a=i.alternate;if(null===a)throw Error(l(387));if(null!==(a=a.memoizedProps)){var o=i.type;nU(i.pendingProps.value,a.value)||(null!==e?e.push(o):e=[o])}}else if(i===ei.current){if(null===(a=i.alternate))throw Error(l(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(dC):e=[dC])}i=i.return}return null!==e&&it(t,e,n,r),t.flags|=262144,null!==e}function ii(e){for(e=e.firstContext;null!==e;){if(!nU(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
1function is(e){r8=e,r6=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function ia(e){return il(r8,e)}function io(e,t){return null===r8&&is(e),il(e,t)}function il(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===r6){if(null===e)throw Error(l(308));r6=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else r6=r6.next=t;return n}var iu="u">typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ic=s.unstable_scheduleCallback,id=s.unstable_NormalPriority,ih={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ip(){return{controller:new iu,data:new Map,refCount:0}}function ig(e){e.refCount--,0===e.refCount&&ic(id,function(){e.controller.abort()})}function iv(e,t){if(0!=(4194048&e.pendingLanes)){var n=e.transitionTypes;for(null===n&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];-1===n.indexOf(r)&&n.push(r)}}}var im=null,i_=null,iy=0,ib=0,iw=null;function iS(){if(0==--iy&&(im=null,null!==i_)){null!==iw&&(iw.status="fulfilled");var e=i_;i_=null,ib=0,iw=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var ik=G.S;G.S=function(e,t){if(lG=e_(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e){if(null===i_){var t=i_=[];iy=0,ib=uY(),iw={status:"pending",value:void 0,then:function(e){t.push(e)}}}iy++,e.then(iS,iS)}(t),null!==im)for(var n=uA;null!==n;)iv(n,im),n=n.next;if(null!==(n=e.types)){for(var r=uA;null!==r;)iv(r,n),r=r.next;if(0!==ib){null===(r=im)&&(r=im=[]);for(var i=0;i<n.length;i++){var s=n[i];-1===r.indexOf(s)&&r.push(s)}}}null!==ik&&ik(e,t)};var ix=J(null);function iE(){var e=ix.current;return null!==e?e:lT.pooledCache}function iP(e,t){null===t?ee(ix,ix.current):ee(ix,t.pool)}function iC(){var e=iE();return null===e?null:{parent:ih._currentValue,pool:e}}var iT=Error(l(460)),iO=Error(l(474)),iF=Error(l(542)),iN={then:function(){}};function iR(e){return"fulfilled"===(e=e.status)||"rejected"===e}function iL(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(tN,tN),t=n),t.status){case"fulfilled":return t.value;case"rejected":if(iD(e=t.reason),void 0===e&&!("reason"in t))throw Error(l(600));throw e;default:if("string"==typeof t.status)t.then(tN,tN);else{if(null!==(e=lT)&&100<e.shellSuspendCounter)throw Error(l(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw iD(e=t.reason),e}throw iM=t,iT}}function iI(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw iM=e,iT;throw e}}var iM=null;function iA(){if(null===iM)throw Error(l(459));var e=iM;return iM=null,e}function iD(e){if(e===iT||e===iF)throw Error(l(483))}var iz=null,i$=0;function ij(e){var t=i$;return i$+=1,null===iz&&(iz=[]),iL(iz,e,t)}function iU(e,t){e.ref=void 0!==(t=t.props.ref)?t:null}function iB(e,t){if(t.$$typeof===E)throw Error(l(525));throw Error(l(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iH(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null===e.key?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return(e=rk(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=0x8000002,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=0x8000002),t}function o(e,t,n,r){return null===t||6!==t.tag?(t=rC(n,e.mode,r)).return=e:(t=i(t,n)).return=e,t}function u(e,t,n,r){var s=n.type;return s===T?(iU(e=d(e,t,n.props.children,r,n.key),n),e):(null!==t&&(t.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===D&&iI(s)===t.type)?iU(t=i(t,n.props),n):iU(t=rE(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=rO(n,e.mode,r)).return=e:(t=i(t,n.children||[])).return=e,t}
1function d(e,t,n,r,s){return null===t||7!==t.tag?(t=rP(n,e.mode,r,s)).return=e:(t=i(t,n)).return=e,t}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=rC(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case P:return iU(n=rE(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case C:return(t=rO(t,e.mode,n)).return=e,t;case D:return f(e,t=iI(t),n)}if(W(t)||V(t))return(t=rP(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,ij(t),n);if(t.$$typeof===R)return f(e,io(e,t),n);iB(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:o(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case P:return n.key===i?u(e,t,n,r):null;case C:return n.key===i?c(e,t,n,r):null;case D:return h(e,t,n=iI(n),r)}if(W(n)||V(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return h(e,t,ij(n),r);if(n.$$typeof===R)return h(e,t,io(e,n),r);iB(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return o(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case P:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case D:return p(e,t,n,r=iI(r),i)}if(W(r)||V(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return p(e,t,n,ij(r),i);if(r.$$typeof===R)return p(e,t,n,io(t,r),i);iB(t,r)}return null}return function(o,u,c,d){try{i$=0;var g=function o(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===T&&null===d.key&&void 0===d.props.ref&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case P:e:{for(var v=d.key;null!==c;){if(c.key===v){if((v=d.type)===T){if(7===c.tag){n(u,c.sibling),iU(g=i(c,d.props.children),d),g.return=u,u=g;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===D&&iI(v)===c.type){n(u,c.sibling),iU(g=i(c,d.props),d),g.return=u,u=g;break e}n(u,c);break}t(u,c),c=c.sibling}d.type===T?iU(g=rP(d.props.children,u.mode,g,d.key),d):iU(g=rE(d.type,d.key,d.props,null,u.mode,g),d),g.return=u,u=g}return a(u);case C:e:{for(v=d.key;null!==c;){if(c.key===v)if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(u,c.sibling),(g=i(c,d.children||[])).return=u,u=g;break e}else{n(u,c);break}t(u,c),c=c.sibling}(g=rO(d,u.mode,g)).return=u,u=g}return a(u);case D:return o(u,c,d=iI(d),g)}if(W(d))return function(i,a,o,l){for(var u=null,c=null,d=a,g=a=0,v=null;null!==d&&g<o.length;g++){d.index>g?(v=d,d=null):v=d.sibling;var m=h(i,d,o[g],l);if(null===m){null===d&&(d=v);break}e&&d&&null===m.alternate&&t(i,d),a=s(m,a,g),null===c?u=m:c.sibling=m,c=m,d=v}if(g===o.length)return n(i,d),rQ&&rU(i,g),u;if(null===d){for(;g<o.length;g++)null!==(d=f(i,o[g],l))&&(a=s(d,a,g),null===c?u=d:c.sibling=d,c=d);return rQ&&rU(i,g),u}for(d=r(d);g<o.length;g++)null!==(v=p(d,i,g,o[g],l))&&(e&&null!==(m=v.alternate)&&d.delete(null===m.key?g:m.key),a=s(v,a,g),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(i,e)}),rQ&&rU(i,g),u}(u,c,d,g);if(V(d)){if("function"!=typeof(v=V(d)))throw Error(l(150));return function(i,a,o,u){if(null==o)throw Error(l(151));for(var c=null,d=null,g=a,v=a=0,m=null,_=o.next();null!==g&&!_.done;v++,_=o.next()){g.index>v?(m=g,g=null):m=g.sibling;var y=h(i,g,_.value,u);if(null===y){null===g&&(g=m);break}e&&g&&null===y.alternate&&t(i,g),a=s(y,a,v),null===d?c=y:d.sibling=y,d=y,g=m}if(_.done)return n(i,g),rQ&&rU(i,v),c;if(null===g){for(;!_.done;v++,_=o.next())null!==(_=f(i,_.value,u))&&(a=s(_,a,v),null===d?c=_:d.sibling=_,d=_);return rQ&&rU(i,v),c}for(g=r(g);!_.done;v++,_=o.next())null!==(_=p(g,i,v,_.value,u))&&(e&&null!==(m=_.alternate)&&g.delete(null===m.key?v:m.key),a=s(_,a,v),null===d?c=_:d.sibling=_,d=_);return e&&g.forEach(function(e){return t(i,e)}),rQ&&rU(i,v),c}(u,c,d=v.call(d),g)}if("function"==typeof d.then)return o(u,c,ij(d),g);if(d.$$typeof===R)return o(u,c,io(u,d),g);iB(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d||"bigint"==typeof d?(d=""+d,null!==c&&6===c.tag?(n(u,c.sibling),(g=i(c,d)).return=u):(n(u,c),(g=rC(d,u.mode,g)).return=u),a(u=g)):n(u,c)}(o,u,c,d);return iz=null,g}catch(e){if(e===iT||e===iF)throw e;var v=rw(29,e,null,o.mode);return v.lanes=d,v.return=o,v}finally{}}}var iV=iH(!0),iq=iH(!1),iW=!1;function iG(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iQ(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function iY(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function iK(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&lC)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=r_(e),rm(e,null,n),t}return rp(e,r,t,n),r_(e)}
1function iX(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194048&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ej(e,n)}}function iJ(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===s?i=s=a:s=s.next=a,n=n.next}while(null!==n)null===s?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var iZ=!1;function i0(){if(iZ){var e=iw;if(null!==e)throw e}}function i1(e,t,n,r){iZ=!1;var i=e.updateQueue;iW=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var l=o,u=l.next;l.next=null,null===a?s=u:a.next=u,a=l;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===o?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l)}if(null!==s){var d=i.baseState;for(a=0,c=u=l=null,o=s;;){var f=-0x20000001&o.lane,h=f!==o.lane;if(h?(lF&f)===f:(r&f)===f){0!==f&&f===ib&&(iZ=!0),null!==c&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var p=e,g=o;switch(f=t,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(n,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=g.payload)?p.call(n,d,f):p))break e;d=x({},d,f);break e;case 2:iW=!0}}null!==(f=o.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(o=o.next))if(null===(o=i.shared.pending))break;else o=(h=o).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===s&&(i.shared.lanes=0),lz|=a,e.lanes=a,e.memoizedState=d}}function i2(e,t){if("function"!=typeof e)throw Error(l(191,e));e.call(t)}function i3(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)i2(n[e],t)}var i4=J(null),i5=J(0);function i8(e,t){ee(i5,e=lA),ee(i4,t),lA=e|t.baseLanes}function i6(){ee(i5,lA),ee(i4,i4.current)}function i7(){lA=i5.current,Z(i4),Z(i5)}var i9=J(null),se=null;function st(e){var t=e.alternate;ee(sa,1&sa.current),ee(i9,e),null===se&&(null===t||null!==i4.current?se=e:null!==t.memoizedState&&(se=e))}function sn(e){ee(sa,sa.current),ee(i9,e),null===se&&(se=e)}function sr(e){22===e.tag?(ee(sa,sa.current),ee(i9,e),null===se&&(se=e)):si()}function si(){ee(sa,sa.current),ee(i9,i9.current)}function ss(e){Z(i9),se===e&&(se=null),Z(sa)}var sa=J(0);function so(e,t){ee(i9,i9.current),ee(sa,t)}function sl(e){Z(sa),Z(i9),se===e&&(se=null)}function su(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||cX(n)||cJ(n)))return t}else if(19===t.tag&&"independent"!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sc=0,sd=null,sf=null,sh=null,sp=!1,sg=!1,sv=!1,sm=0,s_=0,sy=null,sb=0;function sw(){throw Error(l(321))}function sS(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nU(e[n],t[n]))return!1;return!0}function sk(e,t,n,r,i,s){return sc=s,sd=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=null===e||null===e.memoizedState?aO:aF,sv=!1,s=n(r,i),sv=!1,sg&&(s=sE(t,n,r,i)),sx(e),s}function sx(e){G.H=aT;var t=null!==sf&&null!==sf.next;if(sc=0,sh=sf=sd=null,sp=!1,s_=0,sy=null,t)throw Error(l(300));null===e||aW||null!==(e=e.dependencies)&&ii(e)&&(aW=!0)}function sE(e,t,n,r){sd=e;var i=0;do{if(sg&&(sy=null),s_=0,sg=!1,25<=i)throw Error(l(301));if(i+=1,sh=sf=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}G.H=aN,s=t(n,r)}while(sg)return s}function sP(){var e=G.H,t=e.useState()[0];return t="function"==typeof t.then?sL(t):t,e=e.useState()[0],(null!==sf?sf.memoizedState:null)!==e&&(sd.flags|=1024),t}function sC(){var e=0!==sm;return sm=0,e}function sT(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sO(e){if(sp){for(e=e.memoizedState;null!==e;){var t=e.queue;
1null!==t&&(t.pending=null),e=e.next}sp=!1}sc=0,sh=sf=sd=null,sg=!1,s_=sm=0,sy=null}function sF(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sh?sd.memoizedState=sh=e:sh=sh.next=e,sh}function sN(){if(null===sf){var e=sd.alternate;e=null!==e?e.memoizedState:null}else e=sf.next;var t=null===sh?sd.memoizedState:sh.next;if(null!==t)sh=t,sf=e;else{if(null===e){if(null===sd.alternate)throw Error(l(467));throw Error(l(310))}e={memoizedState:(sf=e).memoizedState,baseState:sf.baseState,baseQueue:sf.baseQueue,queue:sf.queue,next:null},null===sh?sd.memoizedState=sh=e:sh=sh.next=e}return sh}function sR(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sL(e){var t=s_;return s_+=1,null===sy&&(sy=[]),e=iL(sy,e,t),t=sd,null===(null===sh?t.memoizedState:sh.next)&&(G.H=null===(t=t.alternate)||null===t.memoizedState?aO:aF),e}function sI(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return sL(e);if(e.$$typeof===B)return;if(e.$$typeof===R)return ia(e)}throw Error(l(438,String(e)))}function sM(e){var t=null,n=sd.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=sd.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n=sR(),sd.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=j;return t.index++,n}function sA(e,t){return"function"==typeof t?t(e):t}function sD(e){return sz(sN(),sf,e)}function sz(e,t,n){var r=e.queue;if(null===r)throw Error(l(311));r.lastRenderedReducer=n;var i=e.baseQueue,s=r.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}t.baseQueue=i=s,r.pending=null}if(s=e.baseState,null===i)e.memoizedState=s;else{t=i.next;var o=a=null,u=null,c=t,d=!1;do{var f=-0x20000001&c.lane;if(f!==c.lane?(lF&f)===f:(sc&f)===f){var h=c.revertLane;if(0===h)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===ib&&(d=!0);else if((sc&h)===h){c=c.next,h===ib&&(d=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(o=u=f,a=s):u=u.next=f,sd.lanes|=h,lz|=h;f=c.action,sv&&n(s,f),s=c.hasEagerState?c.eagerState:n(s,f)}else h={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(o=u=h,a=s):u=u.next=h,sd.lanes|=f,lz|=f;c=c.next}while(null!==c&&c!==t)if(null===u?a=s:u.next=o,!nU(s,e.memoizedState)&&(aW=!0,d&&null!==(n=iw)))throw n;e.memoizedState=s,e.baseState=a,e.baseQueue=u,r.lastRenderedState=s}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function s$(e){var t=sN(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do s=e(s,a.action),a=a.next;while(a!==i)nU(s,t.memoizedState)||(aW=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function sj(e,t,n){var r=sd,i=sN(),s=rQ;if(s){if(void 0===n)throw Error(l(407));n=n()}else n=t();var a=!nU((sf||i).memoizedState,n);if(a&&(i.memoizedState=n,aW=!0),i=i.queue,at(sH.bind(null,r,i,e),[e]),s8((e=i.getSnapshot!==t||a||null!==sh&&0!=(1&sh.memoizedState.tag))?9:8,{destroy:void 0},sB.bind(null,r,i,n,t),null),e){if(r.flags|=2048,null===lT)throw Error(l(349));s||0!=(127&sc)||sU(r,t,n)}return n}function sU(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sd.updateQueue)?(t=sR(),sd.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function sB(e,t,n,r){t.value=n,t.getSnapshot=r,sV(t)&&sq(e)}function sH(e,t,n){return n(function(){sV(t)&&sq(e)})}function sV(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nU(e,n)}catch(e){return!0}}function sq(e){var t=rv(e,2);null!==t&&un(t,e,2)}function sW(e){var t=sF();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sA,lastRenderedState:e},t}function sG(e,t,n,r){return e.baseState=n,sz(e,sf,"function"==typeof r?r:sA)}function sQ(e,t,n,r,i){if(aE(e))throw Error(l(485));if(null!==(e=t.action)){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){s.listeners.push(e)}};null!==G.T?n(!0):s.isTransition=!1,r(s),null===(n=t.pending)?(s.next=t.pending=s,sY(t,s)):(s.next=n.next,t.pending=n.next=s)}}function sY(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var s=G.T,a={};a.types=null!==s?s.types:null,G.T=a;try{var o=n(i,r),l=G.S;null!==l&&l(a,o),sK(e,t,o)}catch(n){sJ(e,t,n)}finally{null!==s&&null!==a.types&&(s.types=a.types),G.T=s}}else try{s=n(i,r),sK(e,t,s)}catch(n){sJ(e,t,n)}}function sK(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){sX(e,t,n)},function(n){return sJ(e,t,n)}):sX(e,t,n)}function sX(e,t,n){t.status="fulfilled",t.value=n,sZ(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,sY(e,n)))}function sJ(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do t.status="rejected",t.reason=n,sZ(t),t=t.next;while(t!==r)}e.action=null}function sZ(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function s0(e,t){return t}function s1(e,t){if(rQ){var n=lT.formState;if(null!==n){e:{var r=sd;if(rQ){if(rG){t:{for(var i=rG,s=rK;8!==i.nodeType;)if(!s||null===(i=cZ(i.nextSibling))){i=null;break t}i="F!"===(s=i.data)||"F"===s?i:null}if(i){rG=cZ(i.nextSibling),r="F!"===i.data;break e}}rJ(r)}r=!1}r&&(t=n[0])}}return(n=sF()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s0,lastRenderedState:t},n.queue=r,n=aS.bind(null,sd,r),r.dispatch=n,r=sW(!1),s=ax.bind(null,sd,!1,r.queue),r=sF(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=sQ.bind(null,sd,i,s,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function s2(e){return s3(sN(),sf,e)}function s3(e,t,n){if(t=sz(e,t,s0)[0],e=sD(sA)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=sL(t)}catch(e){if(e===iT)throw iF;throw e}else r=t;var i=(t=sN()).queue,s=i.dispatch;return n!==t.memoizedState&&(sd.flags|=2048,s8(9,{destroy:void 0},s4.bind(null,i,n),null)),[r,s,e]}function s4(e,t){e.action=t}function s5(e){var t=sN(),n=sf;if(null!==n)return s3(t,n,e);sN(),t=t.memoizedState;var r=(n=sN()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function s8(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=sd.updateQueue)&&(t=sR(),sd.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function s6(){return sN().memoizedState}function s7(e,t,n,r){var i=sF();sd.flags|=e,i.memoizedState=s8(1|t,{destroy:void 0},n,void 0===r?null:r)}function s9(e,t,n,r){var i=sN();r=void 0===r?null:r;var s=i.memoizedState.inst;null!==sf&&null!==r&&sS(r,sf.memoizedState.deps)?i.memoizedState=s8(t,s,n,r):(sd.flags|=e,i.memoizedState=s8(1|t,s,n,r))}function ae(e,t){s7(8390656,8,e,t)}function at(e,t){s9(2048,8,e,t)}function an(e){var t=sN().memoizedState,n={ref:t,nextImpl:e};sd.flags|=4;var r=sd.updateQueue;if(null===r)r=sR(),sd.updateQueue=r,r.events=[n];else{var i=r.events;null===i?r.events=[n]:i.push(n)}return function(){if(0!=(2&lC))throw Error(l(440));return t.impl.apply(void 0,arguments)}}function ar(e,t){return s9(4,2,e,t)}function ai(e,t){return s9(4,4,e,t)}function as(e,t){if("function"==typeof t){var n=t(e=e());return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.current=e=e(),function(){t.current=null}}
1function aa(e,t,n){n=null!=n?n.concat([e]):null,s9(4,4,as.bind(null,t,e),n)}function ao(){}function al(e,t){var n=sN();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&sS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function au(e,t){var n=sN();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&sS(t,r[1])?r[0]:(n.memoizedState=[r=e(),t],r)}function ac(e,t,n){return void 0===n||0!=(0x40000000&sc)&&0==(261930&lF)?e.memoizedState=t:(e.memoizedState=n,e=ue(),sd.lanes|=e,lz|=e,n)}function ad(e,t,n,r){return nU(n,t)?n:null!==i4.current?(nU(e=ac(e,n,r),t)||(aW=!0),e):0==(106&sc)||0!=(0x40000000&sc)&&0==(261930&lF)?(aW=!0,e.memoizedState=n):(e=ue(),sd.lanes|=e,lz|=e,t)}function af(e,t,n,r,i){var s=Q.p;Q.p=0!==s&&8>s?s:8;var a=G.T,o={};o.types=null!==a?a.types:null,G.T=o,ax(e,!1,t,n);try{var l=i(),u=G.S;if(null!==u&&u(o,l),null!==l&&"object"==typeof l&&"function"==typeof l.then){var c,d,f=(c=[],d={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},l.then(function(){d.status="fulfilled",d.value=r;for(var e=0;e<c.length;e++)(0,c[e])(r)},function(e){for(d.status="rejected",d.reason=e,e=0;e<c.length;e++)(0,c[e])(void 0)}),d);ak(e,t,f,l9())}else ak(e,t,r,l9())}catch(n){ak(e,t,{then:function(){},status:"rejected",reason:n},l9())}finally{Q.p=s,null!==a&&null!==o.types&&(a.types=o.types),G.T=a}}function ah(){}function ap(e,t,n,r){if(5!==e.tag)throw Error(l(476));var i=ag(e).queue;af(e,i,t,Y,null===n?ah:function(){return av(e),n(r)})}function ag(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sA,lastRenderedState:Y},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sA,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function av(e){var t=ag(e);null===t.next&&(t=e.alternate.memoizedState),ak(e,t.next.queue,{},l9())}function am(){return ia(dC)}function a_(){return sN().memoizedState}function ay(){return sN().memoizedState}function ab(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=l9(),r=iK(t,e=iY(n),n);null!==r&&(un(r,t,n),iX(r,t,n)),t={cache:ip()},e.payload=t;return}t=t.return}}function aw(e,t,n){var r=l9();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},aE(e)?aP(t,n):null!==(n=rg(e,t,n,r))&&(un(n,e,r),aC(n,t,r))}function aS(e,t,n){ak(e,t,n,l9())}function ak(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(aE(e))aP(t,i);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,o=s(a,n);if(i.hasEagerState=!0,i.eagerState=o,nU(o,a))return rp(e,t,i,0),null===lT&&rh(),!1}catch(e){}finally{}if(null!==(n=rg(e,t,i,r)))return un(n,e,r),aC(n,t,r),!0}return!1}function ax(e,t,n,r){if(r={lane:2,revertLane:uY(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},aE(e)){if(t)throw Error(l(479))}else null!==(t=rg(e,n,r,2))&&un(t,e,2)}function aE(e){var t=e.alternate;return e===sd||null!==t&&t===sd}function aP(e,t){sg=sp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aC(e,t,n){if(0!=(4194048&n)){var r=t.lanes;r&=e.pendingLanes,t.lanes=n|=r,ej(e,n)}}var aT={readContext:ia,use:sI,useCallback:sw,useContext:sw,useEffect:sw,useImperativeHandle:sw,useLayoutEffect:sw,useInsertionEffect:sw,useMemo:sw,useReducer:sw,useRef:sw,useState:sw,useDebugValue:sw,useDeferredValue:sw,useTransition:sw,useSyncExternalStore:sw,useId:sw,useHostTransitionStatus:sw,useFormState:sw,useActionState:sw,useOptimistic:sw,useMemoCache:sw,useCacheRefresh:sw,useEffectEvent:sw},aO={readContext:ia,use:sI,useCallback:function(e,t){return sF().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:ae,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,s7(4194308,4,as.bind(null,t,e),n)},useLayoutEffect:function(e,t){return s7(4194308,4,e,t)},useInsertionEffect:function(e,t){s7(4,2,e,t)},useMemo:function(e,t){var n=sF();t=void 0===t?null:t;var r=e();return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=sF();if(void 0!==n)var i=n(t);else i=t;
vendor: 4,441 bytes, line 1
1return r.memoizedState=r.baseState=i,r.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},e=e.dispatch=aw.bind(null,sd,e),[r.memoizedState,e]},useRef:function(e){return sF().memoizedState={current:e}},useState:function(e){var t=(e=sW(e)).queue,n=aS.bind(null,sd,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ao,useDeferredValue:function(e,t){return ac(sF(),e,t)},useTransition:function(){var e=sW(!1);return e=af.bind(null,sd,e.queue,!0,!1),sF().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=sd,i=sF();if(rQ){if(void 0===n)throw Error(l(407));n=n()}else{if(n=t(),null===lT)throw Error(l(349));0!=(127&lF)||sU(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ae(sH.bind(null,r,s,e),[e]),r.flags|=2048,s8(9,{destroy:void 0},sB.bind(null,r,s,n,t),null),n},useId:function(){var e=sF(),t=lT.identifierPrefix;if(rQ){var n=rj,r=r$;t="_"+t+"R_"+(n=(r&~(1<<32-eC(r)-1)).toString(32)+n),0<(n=sm++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=sb++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:am,useFormState:s1,useActionState:s1,useOptimistic:function(e){var t=sF();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ax.bind(null,sd,!0,n),n.dispatch=t,[e,t]},useMemoCache:sM,useCacheRefresh:function(){return sF().memoizedState=ab.bind(null,sd)},useEffectEvent:function(e){var t=sF(),n={impl:e};return t.memoizedState=n,function(){if(0!=(2&lC))throw Error(l(440));return n.impl.apply(void 0,arguments)}}},aF={readContext:ia,use:sI,useCallback:al,useContext:ia,useEffect:at,useImperativeHandle:aa,useInsertionEffect:ar,useLayoutEffect:ai,useMemo:au,useReducer:sD,useRef:s6,useState:function(){return sD(sA)},useDebugValue:ao,useDeferredValue:function(e,t){return ad(sN(),sf.memoizedState,e,t)},useTransition:function(){var e=sD(sA)[0],t=sN().memoizedState;return["boolean"==typeof e?e:sL(e),t]},useSyncExternalStore:sj,useId:a_,useHostTransitionStatus:am,useFormState:s2,useActionState:s2,useOptimistic:function(e,t){return sG(sN(),sf,e,t)},useMemoCache:sM,useCacheRefresh:ay,useEffectEvent:an},aN={readContext:ia,use:sI,useCallback:al,useContext:ia,useEffect:at,useImperativeHandle:aa,useInsertionEffect:ar,useLayoutEffect:ai,useMemo:au,useReducer:s$,useRef:s6,useState:function(){return s$(sA)},useDebugValue:ao,useDeferredValue:function(e,t){var n=sN();return null===sf?ac(n,e,t):ad(n,sf.memoizedState,e,t)},useTransition:function(){var e=s$(sA)[0],t=sN().memoizedState;return["boolean"==typeof e?e:sL(e),t]},useSyncExternalStore:sj,useId:a_,useHostTransitionStatus:am,useFormState:s5,useActionState:s5,useOptimistic:function(e,t){var n=sN();return null!==sf?sG(n,sf,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:sM,useCacheRefresh:ay,useEffectEvent:an};function aR(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:x({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var aL={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=l9(),i=iY(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=iK(e,i,r))&&(un(t,e,r),iX(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=l9(),i=iY(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=iK(e,i,r))&&(un(t,e,r),iX(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=l9(),r=iY(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=iK(e,r,n))&&(un(t,e,n),iX(t,e,n))}};function aI(e,t,n,r,i,s,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,a):!t.prototype||!t.prototype.isPureReactComponent||!nB(n,r)||!nB(i,s)}function aM(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&aL.enqueueReplaceState(t,t.state,null)}function aA(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=x({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function aD(e){ru(e)}function az(e){console.error(e)}function a$(e){ru(e)}function aj(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function aU(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}
vendor: 12,343 bytes, line 1
1function aB(e,t,n){return(n=iY(n)).tag=3,n.payload={element:null},n.callback=function(){aj(e,t)},n}function aH(e){return(e=iY(e)).tag=3,e}function aV(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var s=r.value;e.payload=function(){return i(s)},e.callback=function(){aU(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){aU(t,n,r),"function"!=typeof i&&(null===lK?lK=new Set([this]):lK.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var aq=Error(l(461)),aW=!1;function aG(e,t,n,r){t.child=null===e?iq(t,null,n,r):iV(t,e.child,n,r)}function aQ(e,t,n,r,i){n=n.render;var s=t.ref;if("ref"in r){var a={};for(var o in r)"ref"!==o&&(a[o]=r[o])}else a=r;return(is(t),r=sk(e,t,n,a,s,i),o=sC(),null===e||aW)?(rQ&&o&&rH(t),t.flags|=1,aG(e,t,r,i),t.child):(sT(e,t,i),oc(e,t,i))}function aY(e,t,n,r,i){if(null===e){var s=n.type;return"function"!=typeof s||rS(s)||void 0!==s.defaultProps||null!==n.compare?((e=rE(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,aK(e,t,s,r,i))}if(s=e.child,!od(e,i)){var a=s.memoizedProps;if((n=null!==(n=n.compare)?n:nB)(a,r)&&e.ref===t.ref)return oc(e,t,i)}return t.flags|=1,(e=rk(s,r)).ref=t.ref,e.return=t,t.child=e}function aK(e,t,n,r,i){if(null!==e){var s=e.memoizedProps;if(nB(s,r)&&e.ref===t.ref)if(aW=!1,t.pendingProps=r=s,!od(e,i))return t.lanes=e.lanes,oc(e,t,i);else 0!=(131072&e.flags)&&(aW=!0)}return a3(e,t,n,r,i)}function aX(e,t,n,r){var i=r.children,s=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!=(128&t.flags)){if(s=null!==s?s.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~s}else r=0,t.child=null;return aZ(e,t,s,n,r)}if(0==(0x20000000&n))return r=t.lanes=0x20000000,aZ(e,t,null!==s?s.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&iP(t,null!==s?s.cachePool:null),null!==s?i8(t,s):i6(),sr(t)}else null!==s?(iP(t,s.cachePool),i8(t,s),si(),t.memoizedState=null):(null!==e&&iP(t,null),i6(),si());return aG(e,t,i,n),t.child}function aJ(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function aZ(e,t,n,r,i){var s=iE();return t.memoizedState={baseLanes:n,cachePool:s=null===s?null:{parent:ih._currentValue,pool:s}},null!==e&&iP(t,null),i6(),sr(t),null!==e&&ir(e,t,r,!0),t.childLanes=i,null}function a0(e,t){return(t=on({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function a1(e,t,n){return iV(t,e.child,null,n),e=a0(t,t.pendingProps),e.flags|=2,ss(t),t.memoizedState=null,e}function a2(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(l(284));(null===e||e.ref!==n)&&(t.flags|=4194816)}}function a3(e,t,n,r,i){return(is(t),n=sk(e,t,n,r,void 0,i),r=sC(),null===e||aW)?(rQ&&r&&rH(t),t.flags|=1,aG(e,t,n,i),t.child):(sT(e,t,i),oc(e,t,i))}function a4(e,t,n,r,i,s){return(is(t),t.updateQueue=null,n=sE(t,r,n,i),sx(e),r=sC(),null===e||aW)?(rQ&&r&&rH(t),t.flags|=1,aG(e,t,n,s),t.child):(sT(e,t,s),oc(e,t,s))}function a5(e,t,n,r,i){if(is(t),null===t.stateNode){var s=ry,a=n.contextType;"object"==typeof a&&null!==a&&(s=ia(a)),t.memoizedState=null!==(s=new n(r,s)).state&&void 0!==s.state?s.state:null,s.updater=aL,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},iG(t),a=n.contextType,s.context="object"==typeof a&&null!==a?ia(a):ry,s.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(aR(t,n,a,r),s.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(a=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),a!==s.state&&aL.enqueueReplaceState(s,s.state,null),i1(t,r,s,i),i0(),s.state=t.memoizedState),"function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){s=t.stateNode;var o=t.memoizedProps,l=aA(n,o);s.props=l;var u=s.context,c=n.contextType;a=ry,"object"==typeof c&&null!==c&&(a=ia(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof s.getSnapshotBeforeUpdate,o=t.pendingProps!==o,c||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o||u!==a)&&aM(t,s,r,a),iW=!1;var f=t.memoizedState;s.state=f,i1(t,r,s,i),i0(),u=t.memoizedState,o||f!==u||iW?("function"==typeof d&&(aR(t,n,d,r),u=t.memoizedState),(l=iW||aI(t,n,l,r,f,u,a))?(c||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=a,r=l):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,iQ(e,t),c=aA(n,a=t.memoizedProps),s.props=c,d=t.pendingProps,f=s.context,u=n.contextType,l=ry,"object"==typeof u&&null!==u&&(l=ia(u)),(u="function"==typeof(o=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==d||f!==l)&&aM(t,s,r,l),iW=!1,f=t.memoizedState,s.state=f,i1(t,r,s,i),i0();var h=t.memoizedState;a!==d||f!==h||iW||null!==e&&null!==e.dependencies&&ii(e.dependencies)?("function"==typeof o&&(aR(t,n,o,r),h=t.memoizedState),(c=iW||aI(t,n,c,r,f,h,l)||null!==e&&null!==e.dependencies&&ii(e.dependencies))?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,h,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return s=r,a2(e,t),r=0!=(128&t.flags),s||r?(s=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:s.render(),t.flags|=1,null!==e&&r?(t.child=iV(t,e.child,null,i),t.child=iV(t,null,n,i)):aG(e,t,n,i),t.memoizedState=s.state,e=t.child):e=oc(e,t,i),e}function a8(e,t,n,r){return r2(),t.flags|=256,aG(e,t,n,r),t.child}var a6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function a7(e){return{baseLanes:e,cachePool:iC()}}function a9(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=lU),e}function oe(e,t,n){var r,i=t.pendingProps,s=!1,a=0!=(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&0!=(2&sa.current)),r&&(s=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(rQ){if(s?st(t):si(),(e=rG)?null!==(e=null!==(e=cK(e,rK))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==rz?{id:r$,overflow:rj}:null,retryLane:0x20000000,hydrationErrors:null},(n=rT(e)).return=t,t.child=n,rW=t,rG=null):e=null,null===e)throw rJ(t);return cJ(e)?t.lanes=32:t.lanes=0x20000000,null}return(a=i.children,i=i.fallback,s)?(si(),a=on({mode:"hidden",children:a},s=t.mode),i=rP(i,s,n,null),a.return=t,i.return=t,a.sibling=i,t.child=a,(i=t.child).memoizedState=a7(n),i.childLanes=a9(e,r,n),t.memoizedState=a6,aJ(null,i)):(st(t),ot(t,a))}var o=e.memoizedState;if(null!==o){var u=o.dehydrated;if(null!==u){var c=e,d=t,f=a,h=r,p=i,g=u,v=o,m=n;if(f)return 256&d.flags?(st(d),d.flags&=-257,or(c,d,m)):null!==d.memoizedState?(si(),d.child=c.child,d.flags|=128,null):(si(),g=p.fallback,v=d.mode,p=on({mode:"visible",children:p.children},v),g=rP(g,v,m,null),g.flags|=2,p.return=d,g.return=d,p.sibling=g,d.child=p,iV(d,c.child,null,m),(p=d.child).memoizedState=a7(m),p.childLanes=a9(c,h,m),d.memoizedState=a6,aJ(null,p));if(st(d),cJ(g)){if(h=g.nextSibling&&g.nextSibling.dataset)var _=h.dgst;return""!==(h=_)&&((p=Error(l(419))).stack="",p.digest=h,r4({value:p,source:null,stack:null})),or(c,d,m)}if(aW||ir(c,d,m,!1),h=0!=(m&c.childLanes),aW||h){if(null!==i4.current)return or(c,d,m);if(null!==(h=lT)&&0!==(p=eU(h,m))&&p!==v.retryLane)throw v.retryLane=p,rv(c,p),un(h,c,p),aq;return cX(g)||uh(),or(c,d,m)}return cX(g)?(d.flags|=192,d.child=c.child,null):(c=v.treeContext,rG=cZ(g.nextSibling),rW=d,rQ=!0,rY=null,rK=!1,null!==c&&rq(d,c),d=ot(d,p.children),d.flags|=0x8001000,d)}}return s?(si(),s=i.fallback,a=t.mode,u=(o=e.child).sibling,(i=rk(o,{mode:"hidden",children:i.children})).subtreeFlags=0x47f00000&o.subtreeFlags,null!==u?s=rk(u,s):(s=rP(s,a,n,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,aJ(null,i),i=t.child,null===(s=e.child.memoizedState)?s=a7(n):(null!==(a=s.cachePool)?(o=ih._currentValue,a=a.parent!==o?{parent:o,pool:o}:a):a=iC(),s={baseLanes:s.baseLanes|n,cachePool:a}),i.memoizedState=s,i.childLanes=a9(e,r,n),t.memoizedState=a6,aJ(e.child,i)):(st(t),e=(n=e.child).sibling,(n=rk(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ot(e,t){return(t=on({mode:"visible",children:t},e.mode)).return=e,e.child=t}function on(e,t){return(e=rw(22,e,null,t)).lanes=0,e}function or(e,t,n){return iV(t,e.child,null,n),e=ot(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ie(e.return,t,n)}function os(e){for(var t=null;null!==e;){var n=e.alternate;null!==n&&null===su(n)&&(t=e),e=e.sibling}return t}function oa(e,t,n,r,i,s){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:s}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=s)}function oo(e){var t=e.child;for(e.child=null;null!==t;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;r=r.children;var a=sa.current;if(128&t.flags)return so(t,a),null;var o=0!=(2&a);if(o?(a=1&a|2,t.flags|=128):a&=1,so(t,a),"backwards"===i&&null!==e?(oo(e),aG(e,t,r,n),oo(e)):aG(e,t,r,n),r=rQ?rM:0,!o&&null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oi(e,n,t);else if(19===e.tag)oi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":null===(n=os(t.child))?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,oo(t)),oa(t,!0,i,null,s,r);break;case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===su(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oa(t,!0,n,null,s,r);break;case"together":oa(t,!1,null,null,void 0,r);break;case"independent":t.memoizedState=null;break;default:null===(n=os(t.child))?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oa(t,!1,i,n,s,r)}return t.child}function ou(e,t,n){var r=t.pendingProps;return r7(t,t.type,r.value),aG(e,t,r.children,n),t.child}function oc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),lz|=t.lanes,0==(n&t.childLanes)){if(null===e)return null;else if(ir(e,t,n,!1),0==(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=rk(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=rk(e,e.pendingProps)).return=t;n.sibling=null}return t.child}
1function od(e,t){return 0!=(e.lanes&t)||!!(null!==(e=e.dependencies)&&ii(e))}function of(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)aW=!0;else{if(!od(e,n)&&0==(128&t.flags))return aW=!1,function(e,t,n){switch(t.tag){case 3:es(t,t.stateNode.containerInfo),r7(t,ih,e.memoizedState.cache),r2();break;case 27:case 5:eo(t);break;case 4:es(t,t.stateNode.containerInfo);break;case 10:r7(t,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,sn(t),null;break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return st(t),t.flags|=128,null;r=ir(e,t,n,!1);var i=t.child.childLanes;if(r||0!=(n&i))return oe(e,t,n);return st(t),null!==(e=oc(e,t,n))?e.sibling:null}st(t);break;case 19:if(128&t.flags)return ol(e,t,n);if(i=0!=(128&e.flags),(r=0!=(n&t.childLanes))||(ir(e,t,n,!1),r=0!=(n&t.childLanes)),i){if(r)return ol(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),so(t,sa.current),!r)return null;break;case 22:return t.lanes=0,aX(e,t,n,t.pendingProps);case 24:r7(t,ih,e.memoizedState.cache)}return oc(e,t,n)}(e,t,n);aW=0!=(131072&e.flags)}else aW=!1,rQ&&0!=(1048576&t.flags)&&rB(t,rM,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=iI(t.elementType),t.type=e,"function"==typeof e)rS(e)?(r=aA(e,r),t.tag=1,t=a5(null,t,e,r,n)):(t.tag=0,t=a3(null,t,e,r,n));else{if(null!=e){var i=e.$$typeof;if(i===L){t.tag=11,t=aQ(null,t,e,r,n);break e}if(i===A){t.tag=14,t=aY(null,t,e,r,n);break e}if(i===R){t.tag=10,t.type=e,t=ou(null,t,n);break e}}throw Error(l(306,t=function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===q?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case T:return"Fragment";case F:return"Profiler";case O:return"StrictMode";case I:return"Suspense";case M:return"SuspenseList";case z:return"Activity";case U:return"ViewTransition"}if("object"==typeof t)switch(t.$$typeof){case C:return"Portal";case R:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case L:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case A:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case D:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(e)||e,""))}}return t;case 0:return a3(e,t,t.type,t.pendingProps,n);case 1:return i=aA(r=t.type,t.pendingProps),a5(e,t,r,i,n);case 3:e:{if(es(t,t.stateNode.containerInfo),null===e)throw Error(l(387));r=t.pendingProps;var s=t.memoizedState;i=s.element,iQ(e,t),i1(t,r,null,n);var a=t.memoizedState;if(r7(t,ih,r=a.cache),r!==s.cache&&it(t,[ih],n,!0),i0(),r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=a8(e,t,r,n);break e}else if(r!==i){r4(i=rN(Error(l(424)),t)),t=a8(e,t,r,n);break e}else for(rG=cZ((e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),rW=t,rQ=!0,rY=null,rK=!0,n=iq(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|0x8001000,n=n.sibling;else{if(r2(),r===i){t=oc(e,t,n);break e}aG(e,t,r,n)}t=t.child}return t;case 26:return a2(e,t),null===e?(n=dn(t.type,null,t.pendingProps,null))?t.memoizedState=n:rQ||(n=t.type,e=t.pendingProps,(r=ch(er.current).createElement(n))[eG]=t,r[eQ]=e,cl(r,n,e),e6(r),t.stateNode=r):t.memoizedState=dn(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eo(t),null===e&&rQ&&(r=t.stateNode=c3(t.type,t.pendingProps,er.current),rW=t,rK=!0,i=rG,ck(t.type)?(c0=i,rG=cZ(r.firstChild)):rG=i),aG(e,t,t.pendingProps.children,n),a2(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&rQ&&((i=r=rG)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[e0])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||i!==n.rel||e.getAttribute("href")!==(null==n.href||""===n.href?null:n.href)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute("title")!==(null==n.title?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==n.src?null:n.src)||e.getAttribute("type")!==(null==n.type?null:n.type)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}
1else{if("input"!==t||"hidden"!==e.type)return e;var i=null==n.name?null:""+n.name;if("hidden"===n.type&&e.getAttribute("name")===i)return e}if(null===(e=cZ(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,rK))?(t.stateNode=r,rW=t,rG=cZ(r.firstChild),rK=!1,i=!0):i=!1),i||rJ(t)),eo(t),i=t.type,s=t.pendingProps,a=null!==e?e.memoizedProps:null,r=s.children,cv(i,s)?r=null:null!==a&&cv(i,a)&&(t.flags|=32),null!==t.memoizedState&&(dC._currentValue=i=sk(e,t,sP,null,null,n)),a2(e,t),aG(e,t,r,n),t.child;case 6:return null===e&&rQ&&((e=n=rG)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=cZ(e.nextSibling)))return null;return e}(n,t.pendingProps,rK))?(t.stateNode=n,rW=t,rG=null,e=!0):e=!1),e||rJ(t)),null;case 13:return oe(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=iV(t,null,r,n):aG(e,t,r,n),t.child;case 11:return aQ(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,a2(e,t),aG(e,t,r,n),t.child;case 8:case 12:return aG(e,t,t.pendingProps.children,n),t.child;case 10:return ou(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,is(t),r=r(i=ia(i)),t.flags|=1,aG(e,t,r,n),t.child;case 14:return aY(e,t,t.type,t.pendingProps,n);case 15:return aK(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:var o=e,u=t,c=n,d=u.pendingProps,f=0!=(128&u.flags);if(u.flags&=-129,null===o){if(rQ){if("hidden"===d.mode)return o=a0(u,d),u.lanes=0x20000000,aJ(null,o);if(sn(u),(o=rG)?null!==(o=null!==(o=cK(o,rK))&&"&"===o.data?o:null)&&(u.memoizedState={dehydrated:o,treeContext:null!==rz?{id:r$,overflow:rj}:null,retryLane:0x20000000,hydrationErrors:null},(c=rT(o)).return=u,u.child=c,rW=u,rG=null):o=null,null===o)throw rJ(u);return u.lanes=0x20000000,null}return a0(u,d)}var h=o.memoizedState;if(null!==h){var p=h.dehydrated;if(sn(u),f)if(256&u.flags)u.flags&=-257,u=a1(o,u,c);else if(null!==u.memoizedState)u.child=o.child,u.flags|=128,u=null;else throw Error(l(558));else if(aW||ir(o,u,c,!1),f=0!=(c&o.childLanes),aW||f){if(null===i4.current){if(null!==(d=lT)&&0!==(p=eU(d,c))&&p!==h.retryLane)throw h.retryLane=p,rv(o,p),un(d,o,p),aq;uh()}u=a1(o,u,c)}else o=h.treeContext,rG=cZ(p.nextSibling),rW=u,rQ=!0,rY=null,rK=!1,null!==o&&rq(u,o),u=a0(u,d),u.flags|=0x8001000;return u}return(o=rk(o.child,{mode:d.mode,children:d.children})).ref=u.ref,u.child=o,o.return=u,o;case 22:return aX(e,t,n,t.pendingProps);case 24:return is(t),r=ia(ih),null===e?(null===(i=iE())&&(i=lT,s=ip(),i.pooledCache=s,s.refCount++,null!==s&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:r,cache:i},iG(t),r7(t,ih,i)):(0!=(e.lanes&n)&&(iQ(e,t),i1(t,null,null,n),i0()),i=e.memoizedState,s=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),r7(t,ih,r)):(r7(t,ih,r=s.cache),r!==i.cache&&it(t,[ih],n,!0))),aG(e,t,t.pendingProps.children,n),t.child;case 30:return null===t.stateNode&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),null!=(r=t.pendingProps).name&&"auto"!==r.name?t.flags|=null===e?0x1202000:0x1200000:rQ&&rH(t),null!==e&&e.memoizedProps.name!==r.name?t.flags|=4194816:a2(e,t),aG(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function oh(e){e.flags|=4}function op(e,t,n,r,i){var s;if((s=0!=(32&e.mode))&&(s=null===n?dv(t,r):dv(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),s){if(e.flags|=0x1000000,(0x13ffff40&i)===i)if(e.stateNode.complete)e.flags|=8192;else if(uc())e.flags|=8192;else throw iM=iN,iO}else e.flags&=-0x1000001}function og(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-0x1000001;else if(e.flags|=0x1000000,!dm(t))if(uc())e.flags|=8192;else throw iM=iN,iO}function ov(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?eA():0x20000000,e.lanes|=t,lB|=t)}function om(e,t){if(!rQ)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null}}function o_(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=0x47f00000&i.subtreeFlags,r|=0x47f00000&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oy(e,t){switch(rV(t),t.tag){case 3:r9(ih),ea();break;case 26:case 27:case 5:el(t);break;case 4:ea();break;case 31:null!==t.memoizedState&&ss(t);break;case 13:ss(t);break;case 19:sl(t);break;case 10:r9(t.type);break;case 22:case 23:ss(t),i7(),null!==e&&Z(ix);break;
1case 24:r9(ih)}}function ob(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var s=n.create;n.inst.destroy=r=s()}n=n.next}while(n!==i)}}catch(e){uF(t,t.return,e)}}function ow(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var s=i.next;r=s;do{if((r.tag&e)===e){var a=r.inst,o=a.destroy;if(void 0!==o){a.destroy=void 0,i=t;try{o()}catch(e){uF(i,n,e)}}}r=r.next}while(r!==s)}}catch(e){uF(t,t.return,e)}}function oS(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{i3(t,n)}catch(t){uF(e,e.return,t)}}}function ok(e,t,n){n.props=aA(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){uF(e,t,n)}}function ox(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,s=ra(e.memoizedProps,i);(null===i.ref||i.ref.name!==s)&&(i.ref=cL(s)),r=i.ref;break;case 7:if(null===e.stateNode){var a=new cI(e);p(e.child,!1,cW,a,void 0,void 0),e.stateNode=a}r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){uF(e,t,n)}}function oE(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){uF(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){uF(e,t,n)}else n.current=null}function oP(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){uF(e,e.return,t)}}function oC(e,t,n){try{var r=e.stateNode;(function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,a=null,o=null,u=null,c=null,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&null!=f)switch(p){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(p)||ca(e,t,p,null,r,f)}}for(var h in r){var p=r[h];if(f=n[h],r.hasOwnProperty(h)&&(null!=p||null!=f))switch(h){case"type":p!==f&&(ta=!0),s=p;break;case"name":p!==f&&(ta=!0),i=p;break;case"checked":p!==f&&(ta=!0),c=p;break;case"defaultChecked":p!==f&&(ta=!0),d=p;break;case"value":p!==f&&(ta=!0),a=p;break;case"defaultValue":p!==f&&(ta=!0),o=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(l(137,t));break;default:p!==f&&ca(e,t,h,p,r,f)}}tm(e,a,o,u,c,d,s,i);return;case"select":for(s in p=a=o=h=null,n)if(u=n[s],n.hasOwnProperty(s)&&null!=u)switch(s){case"value":break;case"multiple":p=u;default:r.hasOwnProperty(s)||ca(e,t,s,null,r,u)}for(i in r)if(s=r[i],u=n[i],r.hasOwnProperty(i)&&(null!=s||null!=u))switch(i){case"value":s!==u&&(ta=!0),h=s;break;case"defaultValue":s!==u&&(ta=!0),o=s;break;case"multiple":s!==u&&(ta=!0),a=s;default:s!==u&&ca(e,t,i,s,r,u)}t=o,n=a,r=p,null!=h?tb(e,!!n,h,!1):!!r!=!!n&&(null!=t?tb(e,!!n,t,!0):tb(e,!!n,n?[]:"",!1));return;case"textarea":for(o in p=h=null,n)if(i=n[o],n.hasOwnProperty(o)&&null!=i&&!r.hasOwnProperty(o))switch(o){case"value":case"children":break;default:ca(e,t,o,null,r,i)}for(a in r)if(i=r[a],s=n[a],r.hasOwnProperty(a)&&(null!=i||null!=s))switch(a){case"value":i!==s&&(ta=!0),h=i;break;case"defaultValue":i!==s&&(ta=!0),p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(l(91));break;default:i!==s&&ca(e,t,a,i,r,s)}tw(e,h,p);return;case"option":for(var g in n)h=n[g],n.hasOwnProperty(g)&&null!=h&&!r.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ca(e,t,g,null,r,h));for(u in r)h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(null!=h||null!=p)&&("selected"===u?(h!==p&&(ta=!0),e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h):ca(e,t,u,h,r,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)h=n[v],n.hasOwnProperty(v)&&null!=h&&!r.hasOwnProperty(v)&&ca(e,t,v,null,r,h);for(c in r)if(h=r[c],p=n[c],r.hasOwnProperty(c)&&h!==p&&(null!=h||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(l(137,t));break;default:ca(e,t,c,h,r,p)}return;default:if(tC(t)){for(var m in n)h=n[m],n.hasOwnProperty(m)&&void 0!==h&&!r.hasOwnProperty(m)&&co(e,t,m,void 0,r,h);
1for(d in r)h=r[d],p=n[d],r.hasOwnProperty(d)&&h!==p&&(void 0!==h||void 0!==p)&&co(e,t,d,h,r,p);return}}for(var _ in n)h=n[_],n.hasOwnProperty(_)&&null!=h&&!r.hasOwnProperty(_)&&ca(e,t,_,null,r,h);for(f in r)h=r[f],p=n[f],r.hasOwnProperty(f)&&h!==p&&(null!=h||null!=p)&&ca(e,t,f,h,r,p)})(r,e.type,n,t),r[eQ]=t}catch(t){uF(e,e.return,t)}}function oT(e,t){if((5===e.tag||6===e.tag)&&null===e.alternate&&null!==t)for(var n=0;n<t.length;n++)cQ(e.stateNode,t[n])}function oO(e){for(var t=e.return;null!==t;){if(oN(t)){var n=t.stateNode,r=e.stateNode;if(3!==r.nodeType){var i=n._eventListeners;if(null!==i)for(var s=0;s<i.length;s++){var a=i[s];r.removeEventListener(a.type,a.listener,a.optionsOrUseCapture)}null!=r.reactFragments&&r.reactFragments.delete(n)}}if(oF(t))break;t=t.return}}function oF(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&ck(e.type)||4===e.tag}function oN(e){return e&&7===e.tag&&null!==e.stateNode}function oR(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&ck(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function oL(e,t,n,r){var i=e.tag;if(5===i||6===i)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),oT(e,r),ta=!0;else if(4!==i&&(27===i&&ck(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(oL(e,t,n,r),e=e.sibling;null!==e;)oL(e,t,n,r),e=e.sibling}function oI(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);cl(t,r,n),t[eG]=e,t[eQ]=n}catch(t){uF(e,e.return,t)}}var oM=!1,oA=null;function oD(e){(30===e.tag||0!=(0x2000000&e.subtreeFlags))&&(oM=!0)}var oz=null;function o$(){var e=oz;return oz=null,e}var oj=0;function oU(e,t,n,r,i){return oj=0,function e(t,n,r,i,s){for(var a=!1;null!==t;){if(5===t.tag){var o=t.stateNode;if(null!==i){var l=cO(o);i.push(l),l.view&&(a=!0)}else a||cO(o).view&&(a=!0);oM=!0,cP(o,0===oj?n:n+"_"+oj,r),oj++}else(22!==t.tag||null===t.memoizedState)&&(30===t.tag&&s||e(t.child,n,r,i,s)&&(a=!0));t=t.sibling}return a}(e.child,t,n,r,i)}function oB(e,t){for(;null!==e;)5===e.tag?cC(e.stateNode,e.memoizedProps):(22!==e.tag||null===e.memoizedState)&&(30===e.tag&&t||oB(e.child,t)),e=e.sibling}function oH(e){if(0!=(0x1200000&e.subtreeFlags))for(e=e.child;null!==e;){if((22!==e.tag||null===e.memoizedState)&&(oH(e),30===e.tag&&0!=(0x1200000&e.flags)&&e.stateNode.paired)){var t=e.memoizedProps;if(null==t.name||"auto"===t.name)throw Error(l(544));var n=t.name;"none"!==(t=rl(t.default,t.share))&&(oU(e,n,t,null,!1)||oB(e.child,!1))}e=e.sibling}}function oV(e,t){if(30===e.tag){var n=e.stateNode,r=e.memoizedProps,i=ra(r,n),s=rl(r.default,n.paired?r.share:r.enter);"none"!==s?oU(e,i,s,null,!1)?(oH(e),n.paired||t||ut(e,r.onEnter)):oB(e.child,!1):oH(e)}else if(0!=(0x2000000&e.subtreeFlags))for(e=e.child;null!==e;)oV(e,t),e=e.sibling;else oH(e)}function oq(e){if(null!==oA&&0!==oA.size){var t=oA;if(0!=(0x1200000&e.subtreeFlags))for(e=e.child;null!==e;){if(22!==e.tag||null===e.memoizedState){if(30===e.tag&&0!=(0x1200000&e.flags)){var n=e.memoizedProps,r=n.name;if(null!=r&&"auto"!==r){var i=t.get(r);if(void 0!==i){var s=rl(n.default,n.share);if("none"!==s&&(oU(e,r,s,null,!1)?(i.paired=s=e.stateNode,s.paired=i,ut(e,n.onShare)):oB(e.child,!1)),t.delete(r),0===t.size)break}}}oq(e)}e=e.sibling}}}function oW(e){if(30===e.tag){var t=e.memoizedProps,n=ra(t,e.stateNode),r=null!==oA?oA.get(n):void 0,i=rl(t.default,void 0!==r?t.share:t.exit);"none"!==i&&(oU(e,n,i,null,!1)?void 0!==r?(r.paired=i=e.stateNode,i.paired=r,oA.delete(n),ut(e,t.onShare)):ut(e,t.onExit):oB(e.child,!1)),null!==oA&&oq(e)}else if(0!=(0x2000000&e.subtreeFlags))for(e=e.child;null!==e;)oW(e),e=e.sibling;else null!==oA&&oq(e)}function oG(e){if(0!=(0x1200000&e.subtreeFlags))for(e=e.child;null!==e;){if(22!==e.tag||null===e.memoizedState){if(30===e.tag&&0!=(0x1200000&e.flags)){var t=e.stateNode;null!==t.paired&&(t.paired=null,oB(e.child,!1))}oG(e)}e=e.sibling}}function oQ(e){if(30===e.tag)e.stateNode.paired=null,oB(e.child,!1),oG(e);else if(0!=(0x2000000&e.subtreeFlags))for(e=e.child;null!==e;)oQ(e),e=e.sibling;else oG(e)}function oY(e,t,n,r,i,s,a){for(var o=!1;null!==t;){if(5===t.tag){var l=t.stateNode;if(null!==s&&oj<s.length){var u,c=s[oj],d=cO(l);
1if((c.view||d.view)&&(o=!0),u=0==(4&e.flags))if(d.clip)u=!0;else{u=c.rect;var f=d.rect;u=u.y!==f.y||u.x!==f.x||u.height!==f.height||u.width!==f.width}u&&(e.flags|=4),d.abs?d=!c.abs:(c=c.rect,d=d.rect,d=c.height!==d.height||c.width!==d.width),d&&(e.flags|=32)}else e.flags|=32;0!=(4&e.flags)&&cP(l,0===oj?n:n+"_"+oj,i),o&&0!=(4&e.flags)||(null===oz&&(oz=[]),oz.push(l,0===oj?r:r+"_"+oj,t.memoizedProps)),oj++}else(22!==t.tag||null===t.memoizedState)&&(30===t.tag&&a?e.flags|=32&t.flags:oY(e,t.child,n,r,i,s,a)&&(o=!0));t=t.sibling}return o}var oK=!1,oX=!1,oJ=!1,oZ=!1,o0="function"==typeof WeakSet?WeakSet:Set,o1=null,o2=!1,o3=!1,o4=!1,o5=!1;function o8(e){for(;null!==o1;){var t=o1,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&i)&&null!==r){n=void 0,i=r.memoizedProps,r=r.memoizedState;var s=t.stateNode;try{var a=aA(t.type,i);n=s.getSnapshotBeforeUpdate(a,r),s.__reactInternalSnapshotBeforeUpdate=n}catch(e){uF(t,t.return,e)}}break;case 3:if(0!=(1024&i)){if(9===(n=(r=t.stateNode.containerInfo).nodeType))cY(r);else if(1===n)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":cY(r);break;default:r.textContent=""}}break;case 30:n&&null!==r&&(n=ra(r.memoizedProps,r.stateNode),"none"!==(i=rl((i=t.memoizedProps).default,i.update))&&oU(r,n,i,r.memoizedState=[],!0));break;default:if(0!=(1024&i))throw Error(l(163))}if(null!==(r=t.sibling)){r.return=t.return,o1=r;break}o1=t.return}}function o6(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:lf(e,n),4&r&&ob(5,n);break;case 1:if(lf(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){uF(n,n.return,e)}else{var i=aA(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){uF(n,n.return,e)}}64&r&&oS(n),512&r&&ox(n,n.return);break;case 3:if(lf(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{i3(e,t)}catch(e){uF(n,n.return,e)}}break;case 27:null===t&&4&r&&oI(n);case 26:case 5:lf(e,n),null===t&&4&r&&oP(n),512&r&&ox(n,n.return);break;case 12:lf(e,n);break;case 31:lf(e,n),4&r&&lr(e,n);break;case 13:lf(e,n),4&r&&li(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=uI.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||oK)){var s=null!==t&&null!==t.memoizedState||oX;t=oK,i=oX,oK=r,(oX=s)&&!i?(r=2,0!=(8772&n.subtreeFlags)&&(r|=1),function e(t,n,r){for(r=0!=(8772&n.subtreeFlags)?r:-2&r,n=n.child;null!==n;){var i=n.alternate,s=t,a=n,o=a.flags,l=0!=(1&r);switch(a.tag){case 0:case 11:case 15:e(s,a,r),ob(4,a);break;case 1:if(e(s,a,r),"function"==typeof(s=(i=a).stateNode).componentDidMount)try{s.componentDidMount()}catch(e){uF(i,i.return,e)}if(null!==(s=(i=a).updateQueue)){var u=i.stateNode;try{var c=s.shared.hiddenCallbacks;if(null!==c)for(s.shared.hiddenCallbacks=null,s=0;s<c.length;s++)i2(c[s],u)}catch(e){uF(i,i.return,e)}}l&&64&o&&oS(a),ox(a,a.return);break;case 27:0!=(2&r)&&oI(a);case 26:case 5:if(5===a.tag){u=a;for(var d=u.return;null!==d&&(oN(d)&&cQ(u.stateNode,d.stateNode),!oF(d));)d=d.return}e(s,a,r),l&&null===i&&4&o&&oP(a),ox(a,a.return);break;case 12:e(s,a,r);break;case 31:e(s,a,r),l&&4&o&&lr(s,a);break;case 13:e(s,a,r),l&&4&o&&li(s,a);break;case 22:null===a.memoizedState&&e(s,a,r),ox(a,a.return);break;case 30:e(s,a,r),ox(a,a.return);break;case 7:ox(a,a.return);default:e(s,a,r)}n=n.sibling}}(e,n,r)):lf(e,n),oK=t,oX=i}break;case 30:lf(e,n),512&r&&ox(n,n.return);break;case 7:512&r&&ox(n,n.return);default:lf(e,n)}}function o7(e,t){for(e=e.child;null!==e;)(function e(t,n){switch(t.tag){case 5:case 26:try{var r=t.stateNode;if(n){var i=r.style;"function"==typeof i.setProperty?i.setProperty("display","none","important"):i.display="none"}else{var s=t.stateNode,a=t.memoizedProps.style,o=null!=a&&a.hasOwnProperty("display")?a.display:null;s.style.display=null==o||"boolean"==typeof o?"":(""+o).trim()}}catch(e){uF(t,t.return,e)}!function t(n,r){if(0x4000000&n.subtreeFlags)for(n=n.child;null!==n;){e:{var i=n;switch(i.tag){case 4:e(i,r);break e;case 22:null===i.memoizedState&&t(i,r);break e;default:t(i,r)}}n=n.sibling}}(t,n);break;case 6:try{t.stateNode.nodeValue=n?"":t.memoizedProps,ta=!0}catch(e){uF(t,t.return,e)}break;case 18:try{var l=t.stateNode;n?cE(l,!0):cE(t.stateNode,!1)}catch(e){uF(t,t.return,e)}break;case 22:case 23:null===t.memoizedState&&o7(t,n);break;default:o7(t,n)}})(e,t),e=e.sibling}var o9=null,le=!1;function lt(e,t,n){for(n=n.child;null!==n;)ln(e,t,n),n=n.sibling}
1function ln(e,t,n){if(eP&&"function"==typeof eP.onCommitFiberUnmount)try{eP.onCommitFiberUnmount(eE,n)}catch(e){}switch(n.tag){case 26:oX||oE(n,t),lt(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:oX||oE(n,t);var r=o9,i=le;ck(n.type)&&(o9=n.stateNode,le=!1),lt(e,t,n),c4(n.stateNode,n.type,n.memoizedProps),o9=r,le=i;break;case 5:oX||oE(n,t),5!==n.tag&&6!==n.tag||oO(n);case 6:if(r=o9,i=le,o9=null,lt(e,t,n),o9=r,le=i,null!==o9)if(le)try{(9===o9.nodeType?o9.body:"HTML"===o9.nodeName?o9.ownerDocument.body:o9).removeChild(n.stateNode),ta=!0}catch(e){uF(n,t,e)}else try{o9.removeChild(n.stateNode),ta=!0}catch(e){uF(n,t,e)}break;case 18:null!==o9&&(le?(cx(9===(e=o9).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),d8(e)):cx(o9,n.stateNode));break;case 4:r=o9,i=le,o9=n.stateNode.containerInfo,le=!0,lt(e,t,n),o9=r,le=i;break;case 0:case 11:case 14:case 15:ow(2,n,t),oX||ow(4,n,t),lt(e,t,n);break;case 1:oX||(oE(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ok(n,t,r)),lt(e,t,n);break;case 21:default:lt(e,t,n);break;case 22:oX=(r=oX)||null!==n.memoizedState,lt(e,t,n),oX=r;break;case 30:oE(n,t),lt(e,t,n);break;case 7:oX||oE(n,t),lt(e,t,n)}}function lr(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{d8(e)}catch(e){uF(t,t.return,e)}}}function li(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{d8(e)}catch(e){uF(t,t.return,e)}}function ls(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new o0),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new o0),t;default:throw Error(l(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=uM.bind(null,e,t);t.then(r,r)}})}function la(e,t,n){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var s=r[i],a=e,o=t,u=o;e:for(;null!==u;){switch(u.tag){case 27:if(ck(u.type)){o9=u.stateNode,le=!1;break e}break;case 5:o9=u.stateNode,le=!1;break e;case 3:case 4:o9=u.stateNode.containerInfo,le=!0;break e}u=u.return}if(null===o9)throw Error(l(160));ln(a,o,s),o9=null,le=!1,null!==(a=s.alternate)&&(a.return=null),s.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)ll(t,e,n),t=t.sibling}var lo=null;function ll(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(4&i&&null!==(r=null!==(r=e.updateQueue)?r.events:null))for(var s=0;s<r.length;s++){var a=r[s];a.ref.impl=a.nextImpl}la(t,e,n),lu(e),4&i&&(ow(3,e,e.return),ob(3,e),ow(5,e,e.return));break;case 1:la(t,e,n),lu(e),512&i&&(oX||null===r||oE(r,r.return)),64&i&&oK&&null!==(e=e.updateQueue)&&null!==(t=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?t:n.concat(t));break;case 26:if(s=lo,la(t,e,n),lu(e),512&i&&(oX||null===r||oE(r,r.return)),4&i)if(n=null!==r?r.memoizedState:null,t=e.memoizedState,null===r)if(null===t)if(null===e.stateNode){e:{t=e.type,n=e.memoizedProps,r=s.ownerDocument||s;t:switch(t){case"title":(!(i=r.getElementsByTagName("title")[0])||i[e0]||i[eG]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=r.createElement(t),r.head.insertBefore(i,r.querySelector("head > title"))),cl(i,t,n),i[eG]=e,e6(i),t=i;break e;case"link":if(s=dp("link","href",r).get(t+(n.href||""))){for(a=0;a<s.length;a++)if((i=s[a]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(a,1);break t}}cl(i=r.createElement(t),t,n),r.head.appendChild(i);break;case"meta":if(s=dp("meta","content",r).get(t+(n.content||""))){for(a=0;a<s.length;a++)if((i=s[a]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(a,1);break t}}cl(i=r.createElement(t),t,n),r.head.appendChild(i);break;default:throw Error(l(468,t))}i[eG]=e,e6(i),t=i}e.stateNode=t}else dg(s,e.type,e.stateNode);else e.stateNode=du(s,t,e.memoizedProps);else n!==t?(null===n?null!==r.stateNode&&(n=r.stateNode).parentNode.removeChild(n):n.count--,null===t?dg(s,e.type,e.stateNode):du(s,t,e.memoizedProps)):null===t&&null!==e.stateNode&&oC(e,e.memoizedProps,r.memoizedProps);break;case 27:la(t,e,n),lu(e),512&i&&(oX||null===r||oE(r,r.return)),null!==r&&4&i&&oC(e,e.memoizedProps,r.memoizedProps);break;case 5:if(s=oJ,oJ=!1,la(t,e,n),oJ=s,lu(e),512&i&&(oX||null===r||oE(r,r.return)),32&e.flags){t=e.stateNode;try{tk(t,""),ta=!0}catch(t){uF(e,e.return,t)}}4&i&&null!=e.stateNode&&(t=e.memoizedProps,oC(e,t,null!==r?r.memoizedProps:t)),1024&i&&(oZ=!0);break;case 6:if(la(t,e,n),lu(e),4&i){if(null===e.stateNode)throw Error(l(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ta=!0}catch(t){uF(e,e.return,t)}}break;
1case 3:if(ta=!1,dh=null,s=lo,lo=c7(t.containerInfo),la(t,e,n),lo=s,lu(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{d8(t.containerInfo)}catch(t){uF(e,e.return,t)}oZ&&(oZ=!1,function e(t){if(1024&t.subtreeFlags)for(t=t.child;null!==t;){var n=t;e(n),5===n.tag&&1024&n.flags&&(n=n.stateNode,dM=!0,n.reset(),dM=!1),t=t.sibling}}(e)),ta=!1;break;case 4:r=oJ,oJ=oK,i=to(),s=lo,lo=c7(e.stateNode.containerInfo),la(t,e,n),lu(e),lo=s,ta&&o3&&(o4=!0),ta=i,oJ=r;break;case 12:la(t,e,n),lu(e);break;case 31:case 19:la(t,e,n),lu(e),4&i&&null!==(t=e.updateQueue)&&(e.updateQueue=null,ls(e,t));break;case 13:la(t,e,n),lu(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==r&&null!==r.memoizedState)&&(lW=e_()),4&i&&null!==(t=e.updateQueue)&&(e.updateQueue=null,ls(e,t));break;case 22:s=null!==e.memoizedState,a=null!==r&&null!==r.memoizedState;var o=oK,u=oX,c=oJ;oK=o||s,oJ=c||s,oX=u||a,la(t,e,n),oX=u,oJ=c,oK=o,lu(e),8192&i&&((t=e.stateNode)._visibility=s?-2&t._visibility:1|t._visibility,s&&(null===r||a||oK||oX||function e(t,n){for(t=t.child;null!==t;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:ow(4,r,r.return),e(r,n);break;case 1:oE(r,r.return);var i=r.stateNode;"function"==typeof i.componentWillUnmount&&ok(r,r.return,i),e(r,n);break;case 27:0!=(2&n)&&c4(r.stateNode,r.type,r.memoizedProps);case 26:case 5:oE(r,r.return),5!==r.tag&&6!==r.tag||oO(r),e(r,n);break;case 22:null===r.memoizedState&&e(r,n);break;case 30:oE(r,r.return),e(r,n);break;case 7:oE(r,r.return);default:e(r,n)}t=t.sibling}}(e,2)),!s&&oJ||o7(e,s)),4&i&&null!==(t=e.updateQueue)&&null!==(n=t.retryQueue)&&(t.retryQueue=null,ls(e,n));break;case 30:512&i&&(oX||null===r||oE(r,r.return)),i=to(),s=o3,a=(0x13ffff00&n)===n,o=e.memoizedProps,o3=a&&"none"!==rl(o.default,o.update),la(t,e,n),lu(e),a&&null!==r&&ta&&(e.flags|=4),o3=s,ta=i;break;case 21:break;case 7:r&&null!==r.stateNode&&(r.stateNode._fragmentFiber=e);default:la(t,e,n),lu(e)}}function lu(e){var t=e.flags;if(2&t){try{for(var n,r=null,i=e.return;null!==i;){if(oN(i)){var s=i.stateNode;null===r?r=[s]:r.push(s)}if(oF(i)){n=i;break}i=i.return}if(null==n)throw Error(l(160));switch(n.tag){case 27:var a=n.stateNode,o=oR(e);oL(e,o,a,r);break;case 5:var u=n.stateNode;32&n.flags&&(tk(u,""),n.flags&=-33);var c=oR(e);oL(e,c,u,r);break;case 3:case 4:var d=n.stateNode.containerInfo,f=oR(e);!function e(t,n,r,i){var s=t.tag;if(5===s||6===s)s=t.stateNode,n?(9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).insertBefore(s,n):((n=9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).appendChild(s),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=tN)),oT(t,i),ta=!0;else if(4!==s&&(27===s&&ck(t.type)&&(r=t.stateNode,n=null),null!==(t=t.child)))for(e(t,n,r,i),t=t.sibling;null!==t;)e(t,n,r,i),t=t.sibling}(e,f,d,r);break;default:throw Error(l(161))}}catch(t){uF(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function lc(e,t){if(9270&t.subtreeFlags)for(t=t.child;null!==t;)ld(t,e),t=t.sibling;else!function e(t,n){for(t=t.child;null!==t;){if(30===t.tag){var r=t.memoizedProps,i=t.stateNode,s=ra(r,i),a=rl(r.default,r.update);if(n)var o=null===(i=i.clones)?null:i.map(cF);else o=t.memoizedState,t.memoizedState=null;i=t;var l=t.child;oj=0,s=oY(i,l,s,s,a,o,!1),0!=(4&t.flags)&&s&&(n||ut(t,r.onUpdate))}else 0!=(0x2000000&t.subtreeFlags)&&e(t,n);t=t.sibling}}(t,!1)}function ld(e,t){var n=e.alternate;if(null===n)oV(e,!1);else switch(e.tag){case 3:if(o5=o2=!1,o$(),lc(t,e),!o2&&!o4){if(null!==(e=oz))for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];cC(n,e[r+2]),null!==(n=n.ownerDocument.documentElement)&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}null!==(e=9===(e=t.containerInfo).nodeType?e.documentElement:e.ownerDocument.documentElement)&&""===e.style.viewTransitionName&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),o5=!0}oz=null;break;case 5:default:lc(t,e);break;case 4:r=o2,o2=!1,lc(t,e),o2&&(o4=!0),o2=r;break;case 22:null===e.memoizedState&&(null!==n.memoizedState?oV(e,!1):lc(t,e));break;case 30:r=o2,i=o$(),o2=!1,lc(t,e),o2&&(e.flags|=4);var s=e.memoizedProps,a=e.stateNode;t=ra(s,a),a=ra(n.memoizedProps,a);var o=rl(s.default,s.update);
1"none"===o?t=!1:(s=n.memoizedState,n.memoizedState=null,n=e.child,oj=0,t=oY(e,n,t,a,o,s,!0),oj!==(null===s?0:s.length)&&(e.flags|=32)),0!=(4&e.flags)&&t?(ut(e,e.memoizedProps.onUpdate),oz=i):null!==i&&(i.push.apply(i,oz),oz=i),o2=0!=(32&e.flags)||r}}function lf(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)o6(e,t.alternate,t),t=t.sibling}function lh(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&ig(n))}function lp(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&ig(e))}function lg(e,t,n,r){var i=(0x13ffff00&n)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;null!==t;)lv(e,t,n,r),t=t.sibling;else i&&function e(t){for(t=t.child;null!==t;)30===t.tag?oB(t.child,!1):0!=(0x2000000&t.subtreeFlags)&&e(t),t=t.sibling}(t)}function lv(e,t,n,r){var i=(0x13ffff00&n)===n;i&&null===t.alternate&&null!==t.return&&null!==t.return.alternate&&oQ(t);var s=t.flags;switch(t.tag){case 0:case 11:case 15:lg(e,t,n,r),2048&s&&ob(9,t);break;case 1:case 31:case 13:default:lg(e,t,n,r);break;case 3:lg(e,t,n,r),i&&o5&&("root"===(e=9===(e=e.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).style.viewTransitionName&&(e.style.viewTransitionName=""),null!==(e=e.ownerDocument.documentElement)&&"none"===e.style.viewTransitionName&&(e.style.viewTransitionName="")),2048&s&&(s=null,null!==t.alternate&&(s=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==s&&(t.refCount++,null!=s&&ig(s)));break;case 12:if(2048&s){lg(e,t,n,r),s=t.stateNode;try{var a=t.memoizedProps,o=a.id,l=a.onPostCommit;"function"==typeof l&&l(o,null===t.alternate?"mount":"update",s.passiveEffectDuration,-0)}catch(e){uF(t,t.return,e)}}else lg(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,null!==t.memoizedState?(i&&null!==o&&null===o.memoizedState&&oQ(o),2&a._visibility?lg(e,t,n,r):lm(e,t)):(i&&null!==o&&null!==o.memoizedState&&oQ(t),2&a._visibility?lg(e,t,n,r):(a._visibility|=2,function e(t,n,r,i,s){for(s=s&&0!=(10256&n.subtreeFlags),n=n.child;null!==n;){var a=n,o=a.flags;switch(a.tag){case 0:case 11:case 15:e(t,a,r,i,s),ob(8,a);break;case 23:break;case 22:var l=a.stateNode;null!==a.memoizedState?2&l._visibility?e(t,a,r,i,s):lm(t,a):(l._visibility|=2,e(t,a,r,i,s)),s&&2048&o&&lh(a.alternate,a);break;case 24:e(t,a,r,i,s),s&&2048&o&&lp(a.alternate,a);break;default:e(t,a,r,i,s)}n=n.sibling}}(e,t,n,r,0!=(10256&t.subtreeFlags)))),2048&s&&lh(o,t);break;case 24:lg(e,t,n,r),2048&s&&lp(t.alternate,t);break;case 30:i&&null!==(s=t.alternate)&&(oB(s.child,!0),oB(t.child,!0)),lg(e,t,n,r)}}function lm(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=t,r=n.flags;switch(n.tag){case 22:lm(e,n),2048&r&&lh(n.alternate,n);break;case 24:lm(e,n),2048&r&&lp(n.alternate,n);break;default:lm(e,n)}t=t.sibling}}var l_=8192;function ly(e,t,n){if(e.subtreeFlags&l_)for(e=e.child;null!==e;)lb(e,t,n),e=e.sibling}function lb(e,t,n){switch(e.tag){case 26:ly(e,t,n),e.flags&l_&&(null!==e.memoizedState?function(e,t,n,r){if("stylesheet"===n.type&&("string"!=typeof r.media||!1!==matchMedia(r.media).matches)&&0==(4&n.state.loading)){if(null===n.instance){var i=dr(r.href),s=t.querySelector(di(i));if(s){null!==(t=s._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=dS.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,e6(s);return}s=t.ownerDocument||t,r=ds(r),(i=c8.get(i))&&dd(r,i),e6(s=s.createElement("link"));var a=s;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),cl(s,"link",r),n.instance=s}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0==(3&n.state.loading)&&(e.count++,n=dS.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,lo,e.memoizedState,e.memoizedProps):(e=e.stateNode,(0x13ffff40&t)===t&&dy(n,e)));break;case 5:ly(e,t,n),e.flags&l_&&(e=e.stateNode,(0x13ffff40&t)===t&&dy(n,e));break;case 3:case 4:var r=lo;
1lo=c7(e.stateNode.containerInfo),ly(e,t,n),lo=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=l_,l_=0x1000000,ly(e,t,n),l_=r):ly(e,t,n));break;case 30:if(0!=(e.flags&l_)&&null!=(r=e.memoizedProps.name)&&"auto"!==r){var i=e.stateNode;i.paired=null,null===oA&&(oA=new Map),oA.set(r,i)}ly(e,t,n);break;default:ly(e,t,n)}}function lw(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(null!==e)}}function lS(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];o1=r,lx(r,e)}lw(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lk(e),e=e.sibling}function lk(e){switch(e.tag){case 0:case 11:case 15:lS(e),2048&e.flags&&ow(9,e,e.return);break;case 3:case 12:default:lS(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,function e(t){var n=t.deletions;if(0!=(16&t.flags)){if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];o1=i,lx(i,t)}lw(t)}for(t=t.child;null!==t;){switch((n=t).tag){case 0:case 11:case 15:ow(8,n,n.return),e(n);break;case 22:2&(r=n.stateNode)._visibility&&(r._visibility&=-3,e(n));break;default:e(n)}t=t.sibling}}(e)):lS(e)}}function lx(e,t){for(;null!==o1;){var n=o1;switch(n.tag){case 0:case 11:case 15:ow(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:ig(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,o1=r;else for(n=e;null!==o1;){var i=(r=o1).sibling,s=r.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&e2(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(r),r===n){o1=null;break}if(null!==i){i.return=s,o1=i;break}o1=s}}}var lE={getCacheForType:function(e){var t=ia(ih),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ia(ih).controller.signal}},lP="function"==typeof WeakMap?WeakMap:Map,lC=0,lT=null,lO=null,lF=0,lN=0,lR=null,lL=!1,lI=!1,lM=!1,lA=0,lD=0,lz=0,l$=0,lj=0,lU=0,lB=0,lH=null,lV=null,lq=!1,lW=0,lG=0,lQ=1/0,lY=null,lK=null,lX=0,lJ=null,lZ=null,l0=0,l1=0,l2=null,l3=null,l4=null,l5=null,l8=null,l6=0,l7=null;function l9(){return 0!=(2&lC)&&0!==lF?lF&-lF:null!==G.T?uY():eV()}function ue(){if(0===lU)if(0==(0x20000000&lF)||rQ){var e=eN;0==(3932160&(eN<<=1))&&(eN=262144),lU=e}else lU=0x20000000;return null!==(e=i9.current)&&(e.flags|=32),lU}function ut(e,t){if(null!=t){var n=e.stateNode,r=n.ref;null===r&&(r=n.ref=cL(ra(e.memoizedProps,n))),null===l5&&(l5=[]),l5.push(t.bind(null,r))}}function un(e,t,n){(e===lT&&(2===lN||9===lN)||null!==e.cancelPendingCommit)&&(ul(e,0),us(e,lF,lU,!1)),ez(e,n),(0==(2&lC)||e!==lT)&&(e===lT&&(0==(2&lC)&&(l$|=n),4===lD&&us(e,lF,lU,!1)),uB(e))}function ur(e,t,n){if(0!=(6&lC))throw Error(l(327));for(var r=!n&&0==(127&t)&&0==(t&e.expiredLanes)||eM(e,t),i=r?function(e,t){var n=lC;lC|=2;var r=ud(),i=uf();lT!==e||lF!==t?(lY=null,lQ=e_()+500,ul(e,t)):lI=eM(e,t);e:for(;;)try{if(0!==lN&&null!==lO){t=lO;var s=lR;t:switch(lN){case 1:lN=0,lR=null,um(e,t,s,1);break;case 2:case 9:if(iR(s)){lN=0,lR=null,uv(t);break}t=function(){2!==lN&&9!==lN||lT!==e||(lN=7),uB(e)},s.then(t,t);break e;case 3:lN=7;break e;case 4:lN=5;break e;case 7:iR(s)?(lN=0,lR=null,uv(t)):(lN=0,lR=null,um(e,t,s,7));break;case 5:var a=null;switch(lO.tag){case 26:a=lO.memoizedState;case 5:case 27:var o=lO;if(a?dm(a):o.stateNode.complete){lN=0,lR=null;var u=o.sibling;if(null!==u)lO=u;else{var c=o.return;null!==c?(lO=c,u_(c)):lO=null}break t}}lN=0,lR=null,um(e,t,s,5);break;case 6:lN=0,lR=null,um(e,t,s,6);break;case 8:uo(),lD=6;break e;default:throw Error(l(462))}}for(;null!==lO&&!ev();)ug(lO);break}catch(t){uu(e,t)}return(r6=r8=null,G.H=r,G.A=i,lC=n,null!==lO)?0:(lT=null,lF=0,rh(),lD)}(e,t):up(e,t,!0),s=r;;){if(0===i)lI&&!r&&us(e,t,0,!1);else{if(n=e.current.alternate,s&&!function(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!nU(s(),i))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(n)){i=up(e,t,!1),s=!1;continue}if(2===i){if(s=t,e.errorRecoveryDisabledLanes&s)var a=0;else a=0!=(a=-0x20000001&e.pendingLanes)?a:0x20000000&a?0x20000000:0;if(0!==a){t=a;e:{i=lH;var o=e.current.memoizedState.isDehydrated;if(o&&(ul(e,a).flags|=256),2!==(a=up(e,a,!1))&&6!==a){if(lM&&!o){e.errorRecoveryDisabledLanes|=s,l$|=s,i=4;break e}
1s=lV,lV=i,null!==s&&(null===lV?lV=s:lV.push.apply(lV,s))}i=a}if(s=!1,2!==i)continue}}if(1===i){ul(e,0),us(e,t,0,!0);break}e:{switch(r=e,s=i){case 0:case 1:throw Error(l(345));case 4:if((4194048&t)!==t&&(0x3c00000&t)!==t)break;case 6:us(r,t,lU,!lL);break e;case 2:lV=null;break;case 3:case 5:break;default:throw Error(l(329))}if((0x3c00000&t)===t&&10<(i=lW+300-e_())){if(us(r,t,lU,!lL),0!==eI(r,0,!0))break e;l0=t,r.timeoutHandle=c_(ui.bind(null,r,n,lV,lY,lq,t,lU,l$,lB,lL,s,"Throttled",-0,0),i);break e}ui(r,n,lV,lY,lq,t,lU,l$,lB,lL,s,null,-0,0)}}break}uB(e)}function ui(e,t,n,r,i,s,a,o,l,u,c,d,f,h){e.timeoutHandle=-1;var p,g,v=t.subtreeFlags,m=(0x13ffff00&s)===s;if(d=null,(m||8192&v||0x1002000==(0x1002000&v))&&(oA=null,lb(t,s,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tN}),m&&(v=d,null!=(m=(9===(m=e.containerInfo).nodeType?m:m.ownerDocument).__reactViewTransition)&&(v.count++,v.waitingForViewTransition=!0,v=dS.bind(v),m.finished.then(v,v))),null!==(p=d,g=v=(0x3c00000&s)===s?lW-e_():(4194048&s)===s?lG-e_():0,p.stylesheets&&0===p.count&&dE(p,p.stylesheets),v=0<p.count||0<p.imgCount?function(e){var t=setTimeout(function(){if(p.stylesheets&&dE(p,p.stylesheets),p.unsuspend){var e=p.unsuspend;p.unsuspend=null,e()}},6e4+g);0<p.imgBytes&&0===db&&(db=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],s=i.transferSize,a=i.initiatorType,o=i.duration;if(s&&o&&cc(a)){for(a=0,o=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>o)break;var c=l.transferSize,d=l.initiatorType;c&&cc(d)&&(a+=c*((l=l.responseEnd)<o?1:(o-u)/(l-u)))}if(--r,t+=8*(s+a)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var n=setTimeout(function(){if(p.waitingForImages=!1,0===p.count&&(p.stylesheets&&dE(p,p.stylesheets),p.unsuspend)){var e=p.unsuspend;p.unsuspend=null,e()}},(p.imgBytes>db?50:800)+g);return p.unsuspend=e,function(){p.unsuspend=null,clearTimeout(t),clearTimeout(n)}}:null))){l0=s,e.cancelPendingCommit=v(ub.bind(null,e,t,s,n,r,i,a,o,l,u,c,d,null,f,h)),us(e,s,a,!u);return}ub(e,t,s,n,r,i,a,o,l,u,c,d)}function us(e,t,n,r){t&=~lj,t&=~l$,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var s=31-eC(i),a=1<<s;r[s]=-1,i&=~a}0!==n&&e$(e,n,t)}function ua(){return 0!=(6&lC)||(uH(0,!1),!1)}function uo(){if(null!==lO){if(0===lN)var e=lO.return;else e=lO,r6=r8=null,sO(e),iz=null,i$=0,e=lO;for(;null!==e;)oy(e.alternate,e),e=e.return;lO=null}}function ul(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,cy(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),l0=0,uo(),lT=e,lO=n=rk(e.current,null),lF=t,lN=0,lR=null,lL=!1,lI=eM(e,t),lM=!1,lB=lU=lj=l$=lz=lD=0,lV=lH=null,lq=!1,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-eC(r),s=1<<i;t|=e[i],r&=~s}return lA=t,rh(),n}function uu(e,t){sd=null,G.H=aT,t===iT||t===iF?(t=iA(),lN=3):t===iO?(t=iA(),lN=4):lN=t===aq?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,lR=t,null===lO&&(lD=1,aj(e,rN(t,e.current)))}function uc(){var e=i9.current;return null===e||((4194048&lF)===lF?null===se:((0x3c00000&lF)===lF||0!=(0x20000000&lF))&&e===se)}function ud(){var e=G.H;return G.H=aT,null===e?aT:e}function uf(){var e=G.A;return G.A=lE,e}function uh(){lD=4,lL||(4194048&lF)!==lF&&null!==i9.current||(lI=!0),0==(0x7ffffff&lz)&&0==(0x7ffffff&l$)||null===lT||us(lT,lF,lU,!1)}function up(e,t,n){var r=lC;lC|=2;var i=ud(),s=uf();(lT!==e||lF!==t)&&(lY=null,ul(e,t)),t=!1;var a=lD;e:for(;;)try{if(0!==lN&&null!==lO){var o=lO,l=lR;switch(lN){case 8:uo(),a=6;break e;case 3:case 2:case 9:case 6:null===i9.current&&(t=!0);var u=lN;if(lN=0,lR=null,um(e,o,l,u),n&&lI){a=0;break e}break;default:u=lN,lN=0,lR=null,um(e,o,l,u)}}(function(){for(;null!==lO;)ug(lO)})(),a=lD;break}catch(t){uu(e,t)}return t&&e.shellSuspendCounter++,r6=r8=null,lC=r,G.H=i,G.A=s,null===lO&&(lT=null,lF=0,rh()),a}function ug(e){var t=of(e.alternate,e,lA);e.memoizedProps=e.pendingProps,null===t?u_(e):lO=t}function uv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=a4(n,t,t.pendingProps,t.type,void 0,lF);break;case 11:t=a4(n,t,t.pendingProps,t.type.render,t.ref,lF);break;
1case 5:sO(t);var r=t;r===rW&&(rQ?(r0(r),5===r.tag&&null!=r.stateNode&&(rG=r.stateNode)):(r0(r),rQ=!0));default:oy(n,t),t=of(n,t=lO=rx(t,lA),lA)}e.memoizedProps=e.pendingProps,null===t?u_(e):lO=t}function um(e,t,n,r){r6=r8=null,sO(t),iz=null,i$=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&ir(t,n,i,!0),null!==(n=i9.current)){switch(n.tag){case 31:case 13:case 19:return null===se?uh():null===n.alternate&&0===lD&&(lD=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===iN?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),uN(e,r,i)),!1;case 22:return n.flags|=65536,r===iN?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),uN(e,r,i)),!1}throw Error(l(435,n.tag))}return uN(e,r,i),uh(),!1}if(rQ)return null!==(t=i9.current)?(0==(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==rX&&r4(rN(e=Error(l(422),{cause:r}),n))):(r!==rX&&r4(rN(t=Error(l(423),{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=rN(r,n),i=aB(e.stateNode,r,i),iJ(e,i),4!==lD&&(lD=2)),!1;var s=Error(l(520),{cause:r});if(s=rN(s,n),null===lH?lH=[s]:lH.push(s),4!==lD&&(lD=2),null===t)return!0;r=rN(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=aB(n.stateNode,r,e),iJ(n,e),!1;case 1:if(t=n.type,s=n.stateNode,0==(128&n.flags)&&("function"==typeof t.getDerivedStateFromError||null!==s&&"function"==typeof s.componentDidCatch&&(null===lK||!lK.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,aV(i=aH(i),e,n,r),iJ(n,i),!1;break;case 22:if(null!==n.memoizedState)return n.flags|=65536,!1}n=n.return}while(null!==n)return!1}(e,i,t,n,lF)){lD=1,aj(e,rN(n,e.current)),lO=null;return}}catch(t){if(null!==i)throw lO=i,t;lD=1,aj(e,rN(n,e.current)),lO=null;return}32768&t.flags?(rQ||1===r?e=!0:lI||0!=(0x20000000&lF)?e=!1:(lL=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=i9.current)&&13===r.tag&&(r.flags|=16384)),uy(t,e)):u_(t)}function u_(e){var t=e;do{if(0!=(32768&t.flags))return void uy(t,lL);e=t.return;var n=function(e,t,n){var r=t.pendingProps;switch(rV(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return o_(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),r9(ih),ea(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(r1(t)?oh(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,r3())),o_(t),null;case 26:var i=t.type,s=t.memoizedState;return null===e?(oh(t),null!==s?(o_(t),og(t,s)):(o_(t),op(t,i,null,r,n))):s?s!==e.memoizedState?(oh(t),o_(t),og(t,s)):(o_(t),t.flags&=-0x1000001):((e=e.memoizedProps)!==r&&oh(t),o_(t),op(t,i,e,r,n)),null;case 27:if(el(t),n=er.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&oh(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return o_(t),t.subtreeFlags&=-0x2000001,null}e=et.current,r1(t)?rZ(t):(t.stateNode=e=c3(i,r,n),oh(t))}return o_(t),t.subtreeFlags&=-0x2000001,null;case 5:if(el(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&oh(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return o_(t),t.subtreeFlags&=-0x2000001,null}if(s=et.current,r1(t))rZ(t);else{var a=ch(er.current);switch(s){case 1:s=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(s=a.createElement("div")).innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s="string"==typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?s.multiple=!0:r.size&&(s.size=r.size);break;default:s="string"==typeof r.is?a.createElement(i,{is:r.is}):a.createElement(i)}}s[eG]=t,s[eQ]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)s.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(t.stateNode=s,cl(s,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&oh(t)}}return o_(t),t.subtreeFlags&=-0x2000001,op(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&oh(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));if(e=er.current,r1(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=rW))switch(i.tag){case 27:case 5:r=i.memoizedProps}
1e[eG]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cs(e.nodeValue,n)))||rJ(t,!0)}else(e=ch(e).createTextNode(r))[eG]=t,t.stateNode=e}return o_(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=r1(t),null!==n){if(null===e){if(!r)throw Error(l(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(l(557));e[eG]=t}else r2(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;o_(t),e=!1}else n=r3(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return ss(t),t;return ss(t),null}if(0!=(128&t.flags))throw Error(l(558))}return o_(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=r1(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(l(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(l(317));i[eG]=t}else r2(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;o_(t),i=!1}else i=r3(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i){if(256&t.flags)return ss(t),t;return ss(t),null}}if(ss(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,i=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),s=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(s=r.memoizedState.cachePool.pool),s!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ov(t,t.updateQueue),o_(t),null;case 4:return ea(),null===e&&u5(t.stateNode.containerInfo),t.flags|=0x4000000,o_(t),null;case 10:return r9(t.type),o_(t),null;case 19:if(sl(t),null===(r=t.memoizedState))return o_(t),null;if(i=0!=(128&t.flags),null===(s=r.rendering))if(i)om(r,!1);else{if(0!==lD||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=su(e))){for(t.flags|=128,om(r,!1),t.updateQueue=e=s.updateQueue,ov(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rx(n,e),n=n.sibling;return so(t,1&sa.current|2),rQ&&rU(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&e_()>lQ&&(t.flags|=128,i=!0,om(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=su(s))){if(t.flags|=128,i=!0,t.updateQueue=e=e.updateQueue,ov(t,e),om(r,!0),null===r.tail&&"collapsed"!==r.tailMode&&"visible"!==r.tailMode&&!s.alternate&&!rQ)return o_(t),null}else 2*e_()-r.renderingStartTime>lQ&&0x20000000!==n&&(t.flags|=128,i=!0,om(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=r.last)?e.sibling=s:t.child=s,r.last=s)}if(null!==r.tail){e=r.tail;e:{for(n=e;null!==n;){if(null!==n.alternate){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=e_(),e.sibling=null,s=sa.current,s=i?1&s|2:1&s,"visible"===r.tailMode||"collapsed"===r.tailMode||!n||rQ?so(t,s):(n=s,ee(i9,t),ee(sa,n),null===se&&(se=t)),rQ&&rU(t,r.treeForkCount),e}return o_(t),null;case 22:case 23:return ss(t),i7(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(o_(t),6&t.subtreeFlags&&(t.flags|=8192)):o_(t),null!==(n=t.updateQueue)&&ov(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&Z(ix),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),r9(ih),o_(t),null;case 25:return null;case 30:return t.flags|=0x2000000,o_(t),null}throw Error(l(156,t.tag))}(t.alternate,t,lA);if(null!==n){lO=n;return}if(null!==(t=t.sibling)){lO=t;return}lO=t=e}while(null!==t)0===lD&&(lD=5)}function uy(e,t){do{var n=function(e,t){switch(rV(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return r9(ih),ea(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return el(t),null;case 31:if(null!==t.memoizedState){if(ss(t),null===t.alternate)throw Error(l(340));r2()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ss(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));r2()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return sl(t),65536&(e=t.flags)?(t.flags=-65537&e|128,null!==(e=t.memoizedState)&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ea(),null;case 10:return r9(t.type),null;case 22:case 23:return ss(t),i7(),null!==e&&Z(ix),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return r9(ih),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,lO=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
1ons=null),!t&&null!==(e=e.sibling)){lO=e;return}lO=e=n}while(null!==e)lD=6,lO=null}function ub(e,t,n,r,i,s,a,o,u,c,d,f){e.cancelPendingCommit=null;do uC();while(0!==lX)if(0!=(6&lC))throw Error(l(327));if(null!==t){if(t===e.current)throw Error(l(177));e===lT&&(lO=lT=null,lF=0),lZ=t,lJ=e,l0=n,l2=i,l3=r,function(e,t,n,r,i,s,a){var o,l=t.lanes|t.childLanes;if(l1=l,!function(e,t,n,r,i,s){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-eC(n),d=1<<c;o[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];null!==h&&(h.lane&=-0x20000001)}n&=~d}0!==r&&e$(e,r,0),0!==s&&0===i&&0!==e.tag&&(e.suspendedLanes|=s&~(a&~t))}(e,n,l|=rf,r,i,s),l5=null,(0x13ffff00&n)===n?(o=e.transitionTypes,e.transitionTypes=null,l8=o,r=10262):(l8=null,r=10256),0!=(t.subtreeFlags&r)||0!=(t.flags&r)?(e.callbackNode=null,e.callbackPriority=0,ep(eS,function(){return uT(),null})):(e.callbackNode=null,e.callbackPriority=0),oM=!1,r=0!=(13878&t.flags),0!=(13878&t.subtreeFlags)||r){r=G.T,G.T=null,i=Q.p,Q.p=2,s=lC,lC|=4;try{!function(e,t,n){if(e=e.containerInfo,cd=dM,nG(e=nW(e))){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var s,a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch(e){r=null;break e}var l=0,u=-1,c=-1,d=0,f=0,h=e,p=null;t:for(;;){for(;h!==r||0!==a&&3!==h.nodeType||(u=l+a),h!==o||0!==i&&3!==h.nodeType||(c=l+i),3===h.nodeType&&(l+=h.nodeValue.length),null!==(s=h.firstChild);)p=h,h=s;for(;;){if(h===e)break t;if(p===r&&++d===a&&(u=l),p===o&&++f===i&&(c=l),null!==(s=h.nextSibling))break;
1p=(h=p).parentNode}h=s}r=-1===u||-1===c?null:{start:u,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(cf={focusedElem:e,selectionRange:r},dM=!1,n=(0x13ffff00&n)===n,o1=t,t=n?9270:1024;null!==o1;){if(e=o1,n&&null!==(r=e.deletions))for(a=0;a<r.length;a++)n&&oW(r[a]);if(null===e.alternate&&0!=(2&e.flags))n&&oD(e),o8(n);else{if(22===e.tag){if(r=e.alternate,null!==e.memoizedState){null!==r&&null===r.memoizedState&&n&&oW(r),o8(n);continue}else if(null!==r&&null!==r.memoizedState){n&&oD(e),o8(n);continue}}r=e.child,0!=(e.subtreeFlags&t)&&null!==r?(r.return=e,o1=r):(n&&function e(t){for(t=t.child;null!==t;){if(30===t.tag){var n=t.memoizedProps,r=ra(n,t.stateNode);n=rl(n.default,n.update),t.flags&=-5,"none"!==n&&oU(t,r,n,t.memoizedState=[],!1)}else 0!=(0x2000000&t.subtreeFlags)&&e(t);t=t.sibling}}(e),o8(n))}}oA=null}(e,t,n)}finally{lC=s,Q.p=i,G.T=r}}lX=1,oM?l4=function(e,t,n,r,i,s,a,o,l){var u=9===t.nodeType?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var t=u.defaultView,n=t.navigation&&t.navigation.transition,a=u.fonts.status;r();var o=[];if("loaded"===a&&(u.documentElement.clientHeight,"loading"===u.fonts.status&&o.push(u.fonts.ready)),a=o.length,null!==e)for(var l=e.suspenseyImages,c=0,d=0;d<l.length;d++){var f=l[d];if(!f.complete){var h=f.getBoundingClientRect();if(0<h.bottom&&0<h.right&&h.top<t.innerHeight&&h.left<t.innerWidth){if((c+=d_(f))>db){o.length=a;break}f=new Promise(cN.bind(f)),o.push(f)}}}return 0<o.length?(t=Promise.race([Promise.all(o),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(s,s)):(i(),n)?n.finished.then(s,s):void s()},types:n});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var e=u.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(null!=i&&i.startsWith("::view-transition")){d.push(n),n=r.getKeyframes();for(var s=i=void 0,o=!0,l=0;l<n.length;l++){var c=n[l],f=c.width;if(void 0===i)i=f;else if(i!==f){o=!1;break}if(f=c.height,void 0===s)s=f;else if(s!==f){o=!1;break}delete c.width,delete c.height,"none"===c.transform&&delete c.transform}o&&void 0!==i&&void 0!==s&&(r.setKeyframes(n),(o=getComputedStyle(r.target,r.pseudoElement)).width!==i||o.height!==s)&&((o=n[0]).width=i,o.height=s,(o=n[n.length-1]).width=i,o.height=s,r.setKeyframes(n))}}a()},function(e){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{"object"==typeof e&&null!==e&&"InvalidStateError"===e.name&&("View transition was skipped because document visibility state is hidden."===e.message||"Skipping view transition because document visibility state has become hidden."===e.message||"Skipping view transition because viewport size changed."===e.message||"Transition was aborted because of invalid state"===e.message)&&(e=null),null!==e&&l(e)}finally{r(),i(),a()}}),c.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),o()}),c}catch(e){return r(),i(),a(),null}}(a,e.containerInfo,l8,uk,ux,uS,uE,uT,uw):(uk(),ux(),uE())}(e,t,n,a,o,u,f)}}function uw(e){0!==lX&&(0,lJ.onRecoverableError)(e,{componentStack:null})}function uS(){3===lX&&(lX=0,ld(lZ,lJ),lX=4)}function uk(){if(1===lX){lX=0;var e=lJ,t=lZ,n=l0,r=0!=(13878&t.flags);if(0!=(13878&t.subtreeFlags)||r){r=G.T,G.T=null;var i=Q.p;Q.p=2;var s=lC;lC|=4;try{o3=o4=!1,ll(t,e,n),n=cf;var a=nW(e.containerInfo),o=n.focusedElem,l=n.selectionRange;if(a!==o&&o&&o.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(o.ownerDocument.documentElement,o)){if(null!==l&&nG(o)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),p=o.textContent.length,g=Math.min(l.start,p),v=void 0===l.end?g:Math.min(l.end,p);!h.extend&&g>v&&(a=v,v=g,g=a);var m=nq(o,g),_=nq(o,v);if(m&&_&&(1!==h.rangeCount||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==_.n
1ode||h.focusOffset!==_.offset)){var y=d.createRange();y.setStart(m.node,m.offset),h.removeAllRanges(),g>v?(h.addRange(y),h.extend(_.node,_.offset)):(y.setEnd(_.node,_.offset),h.addRange(y))}}}}for(d=[],h=o;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof o.focus&&o.focus(),o=0;o<d.length;o++){var b=d[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dM=!!cd,cf=cd=null}finally{lC=s,Q.p=i,G.T=r}}e.current=t,lX=2}}function ux(){if(2===lX){lX=0;var e=lJ,t=lZ,n=0!=(8772&t.flags);if(0!=(8772&t.subtreeFlags)||n){n=G.T,G.T=null;var r=Q.p;Q.p=2;var i=lC;lC|=4;try{o6(e,t.alternate,t)}finally{lC=i,Q.p=r,G.T=n}}lX=3}}function uE(){if(4===lX||3===lX){lX=0;var e=l4;l4=null,em();var t=lJ,n=lZ,r=l0,i=l3,s=(0x13ffff00&r)===r?10262:10256;if(0!=(n.subtreeFlags&s)||0!=(n.flags&s)?lX=5:(lX=0,lZ=lJ=null,uP(t,t.pendingLanes)),0===(s=t.pendingLanes)&&(lK=null),eH(r),n=n.stateNode,eP&&"function"==typeof eP.onCommitFiberRoot)try{eP.onCommitFiberRoot(eE,n,void 0,128==(128&n.current.flags))}catch(e){}if(null!==i){n=G.T,s=Q.p,Q.p=2,G.T=null;try{for(var a=t.onRecoverableError,o=0;o<i.length;o++){var l=i[o];a(l.value,{componentStack:l.stack})}}finally{G.T=n,Q.p=s}}if(i=l5,a=l8,l8=null,null!==i&&(l5=null,null===a&&(a=[]),null!==e))for(l=0;l<i.length;l++)void 0!==(n=(0,i[l])(a))&&e.finished.finally(n);0!=(3&l0)&&uC(),uB(t),s=t.pendingLanes,0!=(261930&r)&&0!=(42&s)?t===l7?l6++:(l6=0,l7=t):(l6=0,l7=null),uH(0,!1)}}function uP(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,ig(t))}function uC(){return null!==l4&&(l4.skipTransition(),l4=null),uk(),ux(),uE(),uT()}function uT(){if(5!==lX)return!1;var e=lJ,t=l1;l1=0;var n=eH(l0),r=G.T,i=Q.p;try{Q.p=32>n?32:n,G.T=null,n=l2,l2=null;var s=lJ,a=l0;if(lX=0,lZ=lJ=null,l0=0,0!=(6&lC))throw Error(l(331));var o=lC;if(lC|=4,lk(s.current),lv(s,s.current,a,n),lC=o,uH(0,!1),eP&&"function"==typeof eP.onPostCommitFiberRoot)try{eP.onPostCommitFiberRoot(eE,s)}catch(e){}return!0}finally{Q.p=i,G.T=r,uP(e,t)}}function uO(e,t,n){t=rN(n,t),t=aB(e.stateNode,t,2),null!==(e=iK(e,t,2))&&(ez(e,2),uB(e))}function uF(e,t,n){if(3===e.tag)uO(e,e,n);else for(;null!==t;){if(3===t.tag){uO(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===lK||!lK.has(r))){e=rN(n,e),null!==(r=iK(t,n=aH(2),2))&&(aV(n,r,t,e),ez(r,2),uB(r));break}}t=t.return}}function uN(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new lP;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(lM=!0,i.add(n),e=uR.bind(null,e,t,n),t.then(e,e))}function uR(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,lT===e&&(lF&n)===n&&((4===lD||3===lD&&(0x3c00000&lF)===lF&&300>e_()-lW)&&0==(2&lC)?ul(e,0):lj|=n,lB===lF&&(lB=0)),uB(e)}function uL(e,t){0===t&&(t=eA()),null!==(e=rv(e,t))&&(ez(e,t),uB(e))}function uI(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),uL(e,n)}function uM(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}null!==r&&r.delete(t),uL(e,n)}var uA=null,uD=null,uz=!1,u$=!1,uj=!1,uU=0;function uB(e){e!==uD&&null===e.next&&(null===uD?uA=uD=e:uD=uD.next=e),u$=!0,uz||(uz=!0,cw(function(){0!=(6&lC)?ep(eb,uV):uq()}))}function uH(e,t){if(!uj&&u$){uj=!0;do for(var n=!1,r=uA;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var s=0;else{var a=r.suspendedLanes,o=r.pingedLanes;s=0xc000095&(s=(1<<31-eC(42|e)+1)-1&(i&~(a&~o)))?0xc000095&s|1:s?2|s:0}0!==s&&(n=!0,uQ(r,s))}else s=lF,0==(3&(s=eI(r,r===lT?s:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eM(r,s)||(n=!0,uQ(r,s));r=r.next}while(n)uj=!1}}function uV(){uq()}function uq(){u$=uz=!1;var e,t=0;
10===uU||((e=window.event)&&"popstate"===e.type?e===cm||(cm=e,0):(cm=null,1))||(t=uU);for(var n=e_(),r=null,i=uA;null!==i;){var s=i.next,a=uW(i,n);0===a?(i.next=null,null===r?uA=s:r.next=s,null===s&&(uD=r)):(r=i,(0!==t||0!=(3&a))&&(u$=!0)),i=s}0!==lX&&5!==lX||uH(t,!1),0!==uU&&(uU=0)}function uW(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=-0x3c00001&e.pendingLanes;0<s;){var a=31-eC(s),o=1<<a,l=i[a];-1===l?(0==(o&n)||0!=(o&r))&&(i[a]=function(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}if(t=lT,n=lF,n=eI(e,e===t?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===lN||9===lN)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&eg(r),e.callbackNode=null,e.callbackPriority=0;if(0==(3&n)||eM(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&eg(r),eH(n)){case 2:case 8:n=ew;break;case 32:default:n=eS;break;case 0x10000000:n=ex}return n=ep(n,r=uG.bind(null,e)),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&eg(r),e.callbackPriority=2,e.callbackNode=null,2}function uG(e,t){if(0!==lX&&5!==lX)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uC()&&e.callbackNode!==n)return null;var r=lF;return 0===(r=eI(e,e===lT?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(ur(e,r,t),uW(e,e_()),null!=e.callbackNode&&e.callbackNode===n?uG.bind(null,e):null)}function uQ(e,t){if(uC())return null;ur(e,t,!0)}function uY(){if(0===uU){var e=ib;0===e&&(e=eF,0==(261888&(eF<<=1))&&(eF=256)),uU=e}return uU}function uK(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:tF(e)}for(var uX=0;uX<rr.length;uX++){var uJ=rr[uX];ri(uJ.toLowerCase(),"on"+(uJ[0].toUpperCase()+uJ.slice(1)))}ri(n5,"onAnimationEnd"),ri(n8,"onAnimationIteration"),ri(n6,"onAnimationStart"),ri("dblclick","onDoubleClick"),ri("focusin","onFocus"),ri("focusout","onBlur"),ri(n7,"onTransitionRun"),ri(n9,"onTransitionStart"),ri(re,"onTransitionCancel"),ri(rt,"onTransitionEnd"),tn("onMouseEnter",["mouseout","mouseover"]),tn("onMouseLeave",["mouseout","mouseover"]),tn("onPointerEnter",["pointerout","pointerover"]),tn("onPointerLeave",["pointerout","pointerover"]),tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uZ="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),u0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uZ));function u1(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var o=r[a],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;s=o,i.currentTarget=u;try{s(i)}catch(e){ru(e)}i.currentTarget=null,s=l}else for(a=0;a<r.length;a++){if(l=(o=r[a]).instance,u=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;s=o,i.currentTarget=u;try{s(i)}catch(e){ru(e)}i.currentTarget=null,s=l}}}}function u2(e,t){var n=t[eK];void 0===n&&(n=t[eK]=new Set);var r=e+"__bubble";n.has(r)||(u8(t,e,2,!1),n.add(r))}function u3(e,t,n){var r=0;t&&(r|=4),u8(n,e,r,t)}var u4="_reactListening"+Math.random().toString(36).slice(2);function u5(e){if(!e[u4]){e[u4]=!0,e9.forEach(function(t){"selectionchange"!==t&&(u0.has(t)||u3(t,!1,e),u3(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[u4]||(t[u4]=!0,u3("selectionchange",!1,t))}}function u8(e,t,n,r){switch(dB(t)){case 2:var i=dA;break;case 8:i=dD;break;default:i=dz}n=i.bind(null,t,n,e),i=void 0,tU&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function u6(e,t,n,r,i){var s=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var o=r.stateNode.containerInfo;
1if(o===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&a.stateNode.containerInfo===i)return;a=a.return}for(;null!==o;){if(null===(a=e3(o)))return;if(5===(l=a.tag)||6===l||26===l||27===l){r=s=a;continue e}o=o.parentNode}}r=r.return}tz(function(){var r=s,i=tL(n),a=[];e:{var o=rn.get(e);if(void 0!==o){var l=t3,u=e;switch(e){case"keypress":if(0===tG(n))break e;case"keydown":case"keyup":l=nl;break;case"focusin":u="focus",l=t9;break;case"focusout":u="blur",l=t9;break;case"beforeblur":case"afterblur":l=t9;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=t6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=t7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=nd;break;case n5:case n8:case n6:l=ne;break;case rt:l=nf;break;case"scroll":case"scrollend":l=t5;break;case"wheel":l=nh;break;case"copy":case"cut":case"paste":l=nt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=nu;break;case"submit":l=nc;break;case"toggle":case"beforetoggle":l=np}var d=0!=(4&t),f=!d&&("scroll"===e||"scrollend"===e),h=d?null!==o?o+"Capture":null:o;d=[];for(var p,g=r;null!==g;){var v=g;if(p=v.stateNode,5!==(v=v.tag)&&26!==v&&27!==v||null===p||null===h||null!=(v=t$(g,h))&&d.push(u7(g,v,p)),f)break;g=g.return}0<d.length&&(o=new l(o,u,null,n,i),a.push({event:o,listeners:d}))}}if(0==(7&t)){l="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e,!(l&&n!==tR&&(u=n.relatedTarget||n.fromElement)&&(e3(u)||u[eY]))&&(o||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,o?(l=n.relatedTarget||n.toElement,o=r,null!==(l=l?e3(l):null)&&(f=c(l),d=l.tag,l!==f||5!==d&&27!==d&&6!==d)&&(l=null)):(o=null,l=r),o!==l&&(d=t6,v="onMouseLeave",h="onMouseEnter",g="mouse",("pointerout"===e||"pointerover"===e)&&(d=nu,v="onPointerLeave",h="onPointerEnter",g="pointer"),f=null==o?u:e5(o),p=null==l?u:e5(l),(u=new d(v,g+"leave",o,n,i)).target=f,u.relatedTarget=p,v=null,e3(i)===r&&((d=new d(h,g+"enter",l,n,i)).target=p,d.relatedTarget=f,v=d),f=v,d=o&&l?k(o,l,ce):null,null!==o&&ct(a,u,o,d,!1),null!==l&&null!==f&&ct(a,f,l,d,!0)));e:{if("select"===(l=(o=r?e5(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var m,_=nN;else if(nE(o))if(nR)_=nj;else{_=nz;var y=nD}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)?_=n$:r&&tC(r.elementType)&&(_=nN);if(_&&(_=_(e,r))){nP(a,_,n,i);break e}y&&y(e,o,r)}switch(y=r?e5(r):window,e){case"focusin":(nE(y)||"true"===y.contentEditable)&&(nY=y,nK=r,nX=null);break;case"focusout":nX=nK=nY=null;break;case"mousedown":nJ=!0;break;case"contextmenu":case"mouseup":case"dragend":nJ=!1,nZ(a,n,i);break;case"selectionchange":if(nQ)break;case"keydown":case"keyup":nZ(a,n,i)}if(nv)t:{switch(e){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else nk?nw(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(ny&&"ko"!==n.locale&&(nk||"onCompositionStart"!==b?"onCompositionEnd"===b&&nk&&(m=tW()):(tV="value"in(tH=i)?tH.value:tH.textContent,nk=!0)),0<(y=u9(r,b)).length&&(b=new nn(b,e,null,n,i),a.push({event:b,listeners:y}),m?b.data=m:null!==(m=nS(n))&&(b.data=m))),(m=n_?function(e,t){switch(e){case"compositionend":return nS(t);case"keypress":if(32!==t.which)return null;return nb=!0," ";case"textInput":return" "===(e=t.data)&&nb?null:e;default:return null}}(e,n):function(e,t){if(nk)return"compositionend"===e||!nv&&nw(e,t)?(e=tW(),tq=tV=tH=null,nk=!1,e):null;switch(e){case"paste":default: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 ny&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(b=u9(r,"onBeforeInput")).length&&(y=new nn("onBeforeInput","beforeinput",null,n,i),a.push({event:y,listeners:b}),y.data=m);var w=e;if("submit"===w&&r&&r.stateNode===i){var S=uK((i[eQ]||null).action),x=n.submitter;x&&null!==(w=(w=x[eQ]||null)?uK(w.formAction):x.getAttribute("formAction"))&&(S=w,x=null);var E=new t3("action","action",null,n,i);a.push({event:E,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==uU){var e=new FormData(i,x);ap(r,{pending:!0,data:e,method:i.method,action:S},null,e)}}else"function"==typeof S&&(E.preventDefault(),ap(r,{pending:!0,data:e=new FormData(i,x),method:i.method,action:S},S,e))},currentTarget:i}]})}}u1(a,t)})}function u7(e,t,n){return{instance:e,listener:t,currentTarget:n}}function u9(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,s=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===s||(null!=(i=t$(e,n))&&r.unshift(u7(e,i,s)),null!=(i=t$(e,t))&&r.push(u7(e,i,s))),3===e.tag)return r;e=e.return}return[]}function ce(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag)return e||null}function ct(e,t,n,r,i){for(var s=t._reactName,a=[];null!==n&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,null!==l&&l===r)break;5!==o&&26!==o&&27!==o||null===u||(l=u,i?null!=(u=t$(n,s))&&a.unshift(u7(n,u,l)):i||null!=(u=t$(n,s))&&a.push(u7(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var cn=/\r\n?/g,cr=/\u0000|\uFFFD/g;function ci(e){return("string"==typeof e?e:""+e).replace(cn,"\n").replace(cr,"")}function cs(e,t){return t=ci(t),ci(e)===t}function ca(e,t,n,r,i,s){switch(n){case"children":if("string"==typeof r)"body"===t||"textarea"===t&&""===r||tk(e,r);else{if("number"!=typeof r&&"bigint"!=typeof r)return;"body"!==t&&tk(e,""+r)}break;case"className":tu(e,"class",r);break;case"tabIndex":tu(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":tu(e,n,r);break;case"style":tP(e,r,s);return;case"data":if("object"!==t){tu(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)||null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=tF(r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof s&&("formAction"===n?("input"!==t&&ca(e,t,"name",i.name,i,null),ca(e,t,"formEncType",i.formEncType,i,null),ca(e,t,"formMethod",i.formMethod,i,null),ca(e,t,"formTarget",i.formTarget,i,null)):(ca(e,t,"encType",i.encType,i,null),ca(e,t,"method",i.method,i,null),ca(e,t,"target",i.target,i,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=tF(r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=tN);return;case"onScroll":null!=r&&u2("scroll",e);return;case"onScrollEnd":null!=r&&u2("scrollend",e);return;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(l(60));(null!=s?s.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=tF(r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
1ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":u2("beforetoggle",e),u2("toggle",e),tl(e,"popover",r);break;case"xlinkActuate":tc(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":tc(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":tc(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":tc(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":tc(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":tc(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":tc(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":tc(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":tc(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tl(e,"is",r);break;case"innerText":case"textContent":return;default:if(2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1]))return;tl(e,n=tT.get(n)||n,r)}ta=!0}function co(e,t,n,r,i,s){switch(n){case"style":tP(e,r,s);return;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(l(60));(null!=s?s.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"children":if("string"==typeof r)tk(e,r);else{if("number"!=typeof r&&"bigint"!=typeof r)return;tk(e,""+r)}break;case"onScroll":null!=r&&u2("scroll",e);return;case"onScrollEnd":null!=r&&u2("scrollend",e);return;case"onClick":null!=r&&(e.onclick=tN);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":return;default:if(!te.hasOwnProperty(n))e:{if("o"===n[0]&&"n"===n[1]&&(i=n.endsWith("Capture"),s=n.slice(2,i?n.length-7:void 0),"function"==typeof(t=null!=(t=e[eQ]||null)?t[n]:null)&&e.removeEventListener(s,t,i),"function"==typeof r)){"function"!=typeof t&&null!==t&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(s,r,i);break e}ta=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,""):tl(e,n,r)}return}ta=!0}function cl(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":u2("error",e),u2("load",e);var r,i=!1,s=!1;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(null!=a)switch(r){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:ca(e,t,r,a,n,null)}}s&&ca(e,t,"srcSet",n.srcSet,n,null),i&&ca(e,t,"src",n.src,n,null);return;case"input":u2("invalid",e);var o=r=a=s=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":s=d;break;case"type":a=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":o=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(l(137,t));break;default:ca(e,t,i,d,n,null)}}t_(e,r,o,u,c,a,s,!1);return;case"select":for(s in u2("invalid",e),i=a=r=null,n)if(n.hasOwnProperty(s)&&null!=(o=n[s]))switch(s){case"value":r=o;break;case"defaultValue":a=o;break;case"multiple":i=o;default:ca(e,t,s,o,n,null)}t=r,n=a,e.multiple=!!i,null!=t?tb(e,!!i,t,!1):null!=n&&tb(e,!!i,n,!0);return;case"textarea":for(a in u2("invalid",e),r=s=i=null,n)if(n.hasOwnProperty(a)&&null!=(o=n[a]))switch(a){case"value":i=o;break;case"defaultValue":s=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(l(91));break;default:ca(e,t,a,o,n,null)}tS(e,i,s,r);return;case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:ca(e,t,u,i,n,null));return;case"dialog":u2("beforetoggle",e),u2("toggle",e),u2("cancel",e),u2("close",e);break;case"iframe":case"object":u2("load",e);break;case"video":case"audio":for(i=0;i<uZ.length;i++)u2(uZ[i],e);break;case"image":u2("error",e),u2("load",e);break;case"details":u2("toggle",e);break;case"embed":case"source":case"link":u2("error",e),u2("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:ca(e,t,c,i,n,null)}return;default:if(tC(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&co(e,t,d,i,n,void 0);return}}for(o in n)n.hasOwnProperty(o)&&null!=(i=n[o])&&ca(e,t,o,i,n,null)}var cu={};function cc(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var cd=null,cf=null;
1function ch(e){return 9===e.nodeType?e:e.ownerDocument}function cp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cg(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function cv(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cm=null,c_="function"==typeof setTimeout?setTimeout:void 0,cy="function"==typeof clearTimeout?clearTimeout:void 0,cb="function"==typeof Promise?Promise:void 0,cw="function"==typeof queueMicrotask?queueMicrotask:void 0!==cb?function(e){return cb.resolve(null).then(e).catch(cS)}:c_;function cS(e){setTimeout(function(){throw e})}function ck(e){return"head"===e}function cx(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r){e.removeChild(i),d8(t);return}r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)c5(e.ownerDocument.documentElement);else if("head"===n){c5(n=e.ownerDocument.head);for(var s=n.firstChild;s;){var a=s.nextSibling,o=s.nodeName;s[e0]||"SCRIPT"===o||"STYLE"===o||"LINK"===o&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=a}}else"body"===n&&c5(e.ownerDocument.body);n=i}while(n)d8(t)}function cE(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data))if(0===e)break;else e--;else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function cP(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,null!=n&&(e.style.viewTransitionClass=n),"inline"===(n=getComputedStyle(e)).display){if(1===(t=e.getClientRects()).length)var r=1;else for(var i=r=0;i<t.length;i++){var s=t[i];0<s.width&&0<s.height&&r++}1===r&&((e=e.style).display=1===t.length?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function cC(e,t){e=e.style;var n=null!=(t=t.style)?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=null==n||"boolean"==typeof n?"":(""+n).trim(),n=null!=t?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=null==n||"boolean"==typeof n?"":(""+n).trim(),"inline-block"===e.display&&(null==t?e.display=e.margin="":(n=t.display,e.display=null==n||"boolean"==typeof n?"":n,null!=(n=t.margin)?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=null==n||"boolean"==typeof n?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=null==t||"boolean"==typeof t?"":t)))}function cT(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:"absolute"===t.position||"fixed"===t.position,clip:"none"!==t.clipPath||"visible"!==t.overflow||"none"!==t.filter||"none"!==t.mask||"none"!==t.mask||"0px"!==t.borderRadius,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function cO(e){return cT(e.getBoundingClientRect(),getComputedStyle(e),e)}function cF(e){var t=e.getBoundingClientRect();return cT(t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height),getComputedStyle(e),e)}function cN(e){this.addEventListener("load",e),this.addEventListener("error",e)}function cR(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}function cL(e){return{name:e,group:new cR("group",e),imagePair:new cR("image-pair",e),old:new cR("old",e),new:new cR("new",e)}}function cI(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function cM(e,t,n,r){return v(e).addEventListener(t,n,r),!1}function cA(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function cD(e){return null==e?"0":"boolean"==typeof e?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function cz(e,t,n,r){if(0===e.length)return -1;r=cD(r);for(var i=0;i<e.length;i++){var s=e[i];if(s.type===t&&s.listener===n&&cD(s.optionsOrUseCapture)===r)return i}return -1}function c$(e,t){return 6!==e.tag&&function(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focu
1s).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return r}(e=v(e),t)}function cj(e,t){return t.push(e),!1}function cU(e,t){return 6!==e.tag&&!!((e=v(e))===t||e.contains(t))&&(t.blur(),!0)}function cB(e,t){return 6!==e.tag&&(e=v(e),t.observe(e),!1)}function cH(e,t){return 6!==e.tag&&(e=v(e),t.unobserve(e),!1)}function cV(e,t){if(6===e.tag){var n=(e=e.stateNode).ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}function cq(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function cW(e,t){return cG(e=v(e),t),!1}function cG(e,t){null==e.reactFragments&&(e.reactFragments=new Set),e.reactFragments.add(t)}function cQ(e,t){if(3!==e.nodeType){var n=t._eventListeners;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.listener,i.optionsOrUseCapture)}null!==t._observers&&t._observers.forEach(function(t){t.observe(e)}),cG(e,t)}}function cY(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cY(n),e2(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function cK(e,t){for(;8!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=cZ(e.nextSibling)))return null;return e}function cX(e){return"$?"===e.data||"$~"===e.data}function cJ(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function cZ(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}cR.prototype.animate=function(e,t){return(t="number"==typeof t?{duration:t}:x({},t)).pseudoElement=this._selector,this._scope.animate(e,t)},cR.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var s=n[i].effect;null!==s&&s.target===e&&s.pseudoElement===t&&r.push(n[i])}return r},cR.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)},cI.prototype.addEventListener=function(e,t,n){null===this._eventListeners&&(this._eventListeners=[]);var r=this._eventListeners;-1===cz(r,e,t,n)&&(r.push({type:e,listener:t,optionsOrUseCapture:n}),p(this._fragmentFiber.child,!1,cM,e,t,n)),this._eventListeners=r},cI.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;null!=r&&0<r.length&&(p(this._fragmentFiber.child,!1,cA,e,t,n),e=cz(r,e,t,n),null!==this._eventListeners&&this._eventListeners.splice(e,1))},cI.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(null===t)return!0;t=v(t);var n=this._eventListeners;if(null!==n&&0<n.length||!e.bubbles){var r=document.createTextNode("");if(n)for(var i=0;i<n.length;i++){var s=n[i];r.addEventListener(s.type,s.listener,s.optionsOrUseCapture)}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)s=n[i],r.removeEventListener(s.type,s.listener,s.optionsOrUseCapture);return t.removeChild(r),e}return t.dispatchEvent(e)},cI.prototype.focus=function(e){p(this._fragmentFiber.child,!0,c$,e,void 0,void 0)},cI.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,cj,t,void 0,void 0);for(var n=t.length-1;0<=n&&!c$(t[n],e);n--);},cI.prototype.blur=function(){var e=g(this._fragmentFiber);if(null!==e){var t=ch(e=v(e)).activeElement;null!==t&&e.contains(t)&&p(this._fragmentFiber.child,!1,cU,t,void 0,void 0)}},cI.prototype.observeUsing=function(e){null===this._observers&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,cB,e,void 0,void 0)},cI.prototype.unobserveUsing=function(e){var t=this._observers;null!==t&&t.has(e)&&(t.delete(e),p(this._fragmentFiber.child,!1,cH,e,void 0,void 0))},cI.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,cV,e,void 0,void 0),e},cI.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return null===t?this:v(t).getRootNode(e)},cI.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(null===t)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,cj,n,void 0,void 0);var r=v(t);if(0===n.length){n=this._fragmentFiber;var i=r.compareDocumentPosition(e);return t=i,r===e?t=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(p(n.sibling,!1,y),n=m,m=null,t=null===n?Node.DOCUMENT_POSITION_PRECEDING:0===(e=v(n).compareDocumentPosition(e))||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING),t|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);for(var s=!1,a=this._fragmentFiber.return;null!==a&&(4===a.tag&&(s=!0),3!==a.tag&&5!==a.tag);)a=a.return;if(null==(s=s?t.parentElement:r))return Node.DOCUMENT_POSITION_DISCONNECTED;r=s.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,s=s.compareDocumentPosition(i)&No
1de.DOCUMENT_POSITION_CONTAINED_BY,a=t.compareDocumentPosition(e);var o=i.compareDocumentPosition(e),l=a&Node.DOCUMENT_POSITION_CONTAINED_BY||o&Node.DOCUMENT_POSITION_CONTAINED_BY;return o=r&&s&&a&Node.DOCUMENT_POSITION_FOLLOWING&&o&Node.DOCUMENT_POSITION_PRECEDING,(t=r&&t===e||s&&i===e||l||o?Node.DOCUMENT_POSITION_CONTAINED_BY:(r||t!==e)&&(s||i!==e)?a:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||function(e,t,n,r,i){var s=e3(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!s)e:{for(;null!==s;){if(7===s.tag&&(s===t||s.alternate===t)){n=!0;break e}s=s.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(null===s)return s=i.ownerDocument,i===s||i===s.body;e:{for(s=t,t=g(t);null!==s;){if((5===s.tag||3===s.tag)&&(s===t||s.alternate===t)){s=!0;break e}s=s.return}s=!1}return s}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!s)&&!(t=s===n)&&(null===(t=k(n,s,S))?t=!1:(p(t,!0,b,s,n),s=m,m=null,t=null!==s)),t):!!(e&Node.DOCUMENT_POSITION_FOLLOWING)&&((t=!!s)&&!(t=s===r)&&(null===(t=k(r,s,S))?t=!1:(p(t,!0,w,s,r),s=m,_=m=null,t=null!==s)),t)}(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC},cI.prototype.scrollIntoView=function(e){if("object"==typeof e)throw Error(l(566));var t=[];p(this._fragmentFiber.child,!1,cj,t,void 0,void 0);var n=!1!==e;if(0===t.length){var r=this._fragmentFiber,i=[null,null],s=g(r);if(null!==s&&function e(t,n,r){for(var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];null!==r;){if(r===n)if(i=!0,!r.sibling)return!0;else r=r.sibling;if(5===r.tag||6===r.tag){if(i)return t[1]=r,!0;t[0]=r}else if((22!==r.tag||null===r.memoizedState)&&e(t,n,r.child,i))return!0;r=r.sibling}return!1}(i,r,s.child),null===(r=n?i[1]||i[0]||g(this._fragmentFiber):i[0]||i[1]))return;if(6===r.tag)return void cq(e=v(r),n);if(9!==(r=v(r)).nodeType){if(11===r.nodeType){null!==(n="host"in r?r.host:null)&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);)6===(i=t[r]).tag?cq(i=v(i),n):v(i).scrollIntoView(e),r+=n?-1:1};var c0=null;function c1(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return cZ(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function c2(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function c3(e,t,n){switch(t=ch(n),e){case"html":if(!(e=t.documentElement))throw Error(l(452));return e;case"head":if(!(e=t.head))throw Error(l(453));return e;case"body":if(!(e=t.body))throw Error(l(454));return e;default:throw Error(l(451))}}function c4(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&null!=i&&ca(e,t,r,null,cu,i)}null!=n.dangerouslySetInnerHTML&&(e.textContent=""),e.onclick===tN&&(e.onclick=null),e2(e)}function c5(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);e2(e)}var c8=new Map,c6=new Set;function c7(e){if("function"==typeof e.getRootNode){var t=e.getRootNode();if(9===t.nodeType||11===t.nodeType)return t}return 9===e.nodeType?e:e.ownerDocument}var c9=Q.d;Q.d={f:function(){var e=c9.f(),t=ua();return e||t},r:function(e){var t=e4(e);null!==t&&5===t.tag&&"form"===t.type?av(t):c9.r(e)},D:function(e){c9.D(e),dt("dns-prefetch",e,null)},C:function(e,t){c9.C(e,t),dt("preconnect",e,t)},L:function(e,t,n){if(c9.L(e,t,n),de&&e&&t){var r='link[rel="preload"][as="'+tv(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+tv(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(r+='[imagesizes="'+tv(n.imageSizes)+'"]')):r+='[href="'+tv(e)+'"]';var i=r;switch(t){case"style":i=dr(e);break;case"script":i=da(e)}if(!(c8.has(i)||(e=x({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),c8.set(i,e),null!==de.querySelector(r)||"style"===t&&de.querySelector(di(i))||"script"===t&&de.querySelector(dl(i))))){var s=de.createElement("link");cl(s,"link",e),"style"===t&&(s[e1]=!0,s.onload=s.onerror=function(){e7(s)}),e6(s),de.head.appendChild(s)}}},m:function(e,t){if(c9.m(e,t),de&&e){var n=t&&"string"==typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+tv(n)+'"][href="'+tv(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=da(e)}if(!c8.has(i)&&(e=x({rel:"modulepreload",href:e},t),c8.set(i,e),null===de.querySelector(r))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(de.querySelector(dl(i)))return}cl(n=de.createElement("link"),"link",e),e6(n),de.head.appendChild(n)}}},X:function(e,t){if(c9.X(e,t),de&&e){var n=e8(de).hoistableScripts,r=da(e),i=n.get(r);i||((i=de.querySelector(dl(r)))||(e=x({src:e,async:!0},t),(t=c8.get(r))&&df(e,t),e6(i=de.createElement("script")),cl(i,"link",e),de.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,n){if(c9.S(e,t,n),de&&e){var r=e8(de).hoistableStyles,i=dr(e);t=t||"default";var s=r.get(i);if(!s){var a={loading:0,preload:null};
1if(s=de.querySelector(di(i)))a.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=c8.get(i))&&dd(e,n);var o=s=de.createElement("link");e6(o),cl(o,"link",e),o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),o.addEventListener("load",function(){a.loading|=1}),o.addEventListener("error",function(){a.loading|=2}),a.loading|=4,dc(s,t,de)}s={type:"stylesheet",instance:s,count:1,state:a},r.set(i,s)}}},M:function(e,t){if(c9.M(e,t),de&&e){var n=e8(de).hoistableScripts,r=da(e),i=n.get(r);i||((i=de.querySelector(dl(r)))||(e=x({src:e,async:!0,type:"module"},t),(t=c8.get(r))&&df(e,t),e6(i=de.createElement("script")),cl(i,"link",e),de.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var de="u"<typeof document?null:document;function dt(e,t,n){if(de&&"string"==typeof t&&t){var r=tv(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof n&&(r+='[crossorigin="'+n+'"]'),c6.has(r)||(c6.add(r),e={rel:e,crossOrigin:n,href:t},null===de.querySelector(r)&&(cl(t=de.createElement("link"),"link",e),e6(t),de.head.appendChild(t)))}}function dn(e,t,n,r){var i=(i=er.current)?c7(i):null;if(!i)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=dr(n.href),(r=(t=e8(i).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=dr(n.href);var s=e8(i).hoistableStyles,a=s.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,a),(s=i.querySelector(di(e)))?s._p||(a.instance=s,a.state.loading=5):((s=c8.get(e))||(s={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},c8.set(e,s)),function(e,t,n,r){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(!0!==t[e1]){r.loading=1;return}}else(t=e.createElement("link"))[e1]=!0,t.onload=t.onerror=e7.bind(null,t),cl(t,"link",n),e6(t),e.head.appendChild(t);r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2})}(i,e,s,a.state))),t&&null===r)throw Error(l(528,""));return a}if(t&&null!==r)throw Error(l(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(n=da(n),(r=(t=e8(i).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function dr(e){return'href="'+tv(e)+'"'}function di(e){return'link[rel="stylesheet"]['+e+"]"}function ds(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function da(e){return'[src="'+tv(e)+'"]'}function dl(e){return"script[async]"+e}function du(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+tv(n.href)+'"]');if(r)return t.instance=r,e6(r),r;var i=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return e6(r=(e.ownerDocument||e).createElement("style")),cl(r,"style",i),dc(r,n.precedence,e),t.instance=r;case"stylesheet":i=dr(n.href);var s=e.querySelector(di(i));if(s)return t.state.loading|=4,t.instance=s,e6(s),s;r=ds(n),(i=c8.get(i))&&dd(r,i),e6(s=(e.ownerDocument||e).createElement("link"));var a=s;return a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),cl(s,"link",r),t.state.loading|=4,dc(s,n.precedence,e),t.instance=s;case"script":if(s=da(n.src),i=e.querySelector(dl(s)))return t.instance=i,e6(i),i;return r=n,(i=c8.get(s))&&df(r=x({},n),i),e6(i=(e=e.ownerDocument||e).createElement("script")),cl(i,"link",r),e.head.appendChild(i),t.instance=i;case"void":return null;default:throw Error(l(443,t.type))}return"stylesheet"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,dc(r,n.precedence,e)),t.instance}function dc(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,
vendor: 5,771 bytes, line 1
1s=i,a=0;a<r.length;a++){var o=r[a];if(o.dataset.precedence===t)s=o;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function dd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function df(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var dh=null;function dp(e,t,n){if(null===dh){var r=new Map,i=dh=new Map;i.set(n,r)}else(r=(i=dh).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[e0]||s[eG]||"link"===e&&"stylesheet"===s.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==s.namespaceURI){var a=s.getAttribute(t)||"";a=e+a;var o=r.get(a);o?o.push(s):r.set(a,[s])}}return r}function dg(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function dv(e,t){return"img"===e&&null!=t.src&&""!==t.src&&null==t.onLoad&&"lazy"!==t.loading}function dm(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}function d_(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function dy(e,t){"function"==typeof t.decode&&(e.imgCount++,t.complete||(e.imgBytes+=d_(t),e.suspenseyImages.push(t)),e=dk.bind(e),t.decode().then(e,e))}var db=0;function dw(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages)){if(e.stylesheets)dE(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function dS(){this.count--,dw(this)}function dk(){this.imgCount--,dw(this)}var dx=null;function dE(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,dx=new Map,t.forEach(dP,e),dx=null,dS.call(e))}function dP(e,t){if(!(4&t.state.loading)){var n=dx.get(e);if(n)var r=n.get(null);else{n=new Map,dx.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var a=i[s];("LINK"===a.nodeName||"not all"!==a.getAttribute("media"))&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(s=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=dS.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),s?s.parentNode.insertBefore(i,s.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var dC={$$typeof:R,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function dT(e,t,n,r,i,s,a,o,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=eD(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eD(0),this.hiddenUpdates=eD(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function dO(e,t,n,r,i,s,a,o,l,u,c,d){return e=new dT(e,t,n,a,l,u,c,d,o),t=1,!0===s&&(t|=24),s=rw(3,null,null,t),e.current=s,s.stateNode=e,t=ip(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},iG(s),e}function dF(e,t,n,r,i,s){i=i?ry:ry,null===r.context?r.context=i:r.pendingContext=i,(r=iY(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=iK(e,r,t))&&(un(n,e,t),iX(n,e,t))}function dN(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function dR(e,t){dN(e,t),(e=e.alternate)&&dN(e,t)}function dL(e){if(13===e.tag||31===e.tag){var t=rv(e,0x4000000);null!==t&&un(t,e,0x4000000),dR(e,0x4000000)}}function dI(e){if(13===e.tag||31===e.tag){var t=l9(),n=rv(e,t=eB(t));null!==n&&un(n,e,t),dR(e,t)}}var dM=!0;function dA(e,t,n,r){var i=G.T;G.T=null;var s=Q.p;try{Q.p=2,dz(e,t,n,r)}finally{Q.p=s,G.T=i}}function dD(e,t,n,r){var i=G.T;G.T=null;var s=Q.p;try{Q.p=8,dz(e,t,n,r)}finally{Q.p=s,G.T=i}}function dz(e,t,n,r){if(dM){var i=d$(r);if(null===i)u6(e,t,r,dj,n),dX(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return dV=dJ(dV,e,t,n,r,i),!0;case"dragenter":return dq=dJ(dq,e,t,n,r,i),!0;case"mouseover":return dW=dJ(dW,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return dG.set(s,dJ(dG.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,dQ.set(s,dJ(dQ.get(s)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(dX(e,r),4&t&&-1<dK.indexOf(e)){for(;null!==i;){var s=e4(i);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var a=eL(s.pendingLanes);if(0!==a){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;a;){var l=1<<31-eC(a);o.entanglements[1]|=l,a&=~l}uB(s),0==(6&lC)&&(lQ=e_()+500,uH(0,!1))}}break;case 31:case 13:null!==(o=rv(s,2))&&un(o,s,2),ua(),dR(s,2)}if(null===(s=d$(r))&&u6(e,t,r,dj,n),s===i)break;i=s}null!==i&&r.stopPropagation()}else u6(e,t,r,null,n)}}function d$(e){return dU(e=tL(e))}var dj=null;function dU(e){if(dj=null,null!==(e=e3(e))){var t=c(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=d(t)))return e;e=null}else if(31===n){if(null!==(e=f(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return dj=e,null}function dB(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 7,056 bytes, line 1
1:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ey()){case eb:return 2;case ew:return 8;case eS:case ek:return 32;case ex:return 0x10000000;default:return 32}default:return 32}}var dH=!1,dV=null,dq=null,dW=null,dG=new Map,dQ=new Map,dY=[],dK="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".split(" ");function dX(e,t){switch(e){case"focusin":case"focusout":dV=null;break;case"dragenter":case"dragleave":dq=null;break;case"mouseover":case"mouseout":dW=null;break;case"pointerover":case"pointerout":dG.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dQ.delete(t.pointerId)}}function dJ(e,t,n,r,i,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},null!==t&&null!==(t=e4(t))&&dL(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function dZ(e){var t=e3(e.target);if(null!==t){var n=c(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=d(n))){e.blockedOn=t,eq(e.priority,function(){dI(n)});return}}else if(31===t){if(null!==(t=f(n))){e.blockedOn=t,eq(e.priority,function(){dI(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function d0(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=d$(e.nativeEvent);if(null!==n)return null!==(t=e4(n))&&dL(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tR=r,n.target.dispatchEvent(r),tR=null,t.shift()}return!0}function d1(e,t,n){d0(e)&&n.delete(t)}function d2(){dH=!1,null!==dV&&d0(dV)&&(dV=null),null!==dq&&d0(dq)&&(dq=null),null!==dW&&d0(dW)&&(dW=null),dG.forEach(d1),dQ.forEach(d1)}function d3(e,t){e.blockedOn===t&&(e.blockedOn=null,dH||(dH=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,d2)))}var d4=null;function d5(e){d4!==e&&(d4=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){d4===e&&(d4=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!=typeof r)if(null===dU(r||n))continue;else break;var s=e4(n);null!==s&&(e.splice(t,3),t-=3,ap(s,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function d8(e){function t(t){return d3(t,e)}null!==dV&&d3(dV,e),null!==dq&&d3(dq,e),null!==dW&&d3(dW,e),dG.forEach(t),dQ.forEach(t);for(var n=0;n<dY.length;n++){var r=dY[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<dY.length&&null===(n=dY[0]).blockedOn;)dZ(n),null===n.blockedOn&&dY.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],s=n[r+1],a=i[eQ]||null;if("function"==typeof s)a||d5(n);else if(a){var o=null;if(s&&s.hasAttribute("formAction")){if(i=s,a=s[eQ]||null)o=a.formAction;else if(null!==dU(i))continue}else o=a.action;"function"==typeof o?n[r+1]=o:(n.splice(r,3),r-=3),d5(n)}}}function d6(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function d7(e){this._internalRoot=e}function d9(e){this._internalRoot=e}d9.prototype.render=d7.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(l(409));dF(t.current,l9(),e,t,null,null)},d9.prototype.unmount=d7.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dF(e.current,2,null,e,null,null),ua(),t[eY]=null}},d9.prototype.unstable_scheduleHydration=function(e){if(e){var t=eV();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dY.length&&0!==t&&t<dY[n].priority;n++);dY.splice(n,0,e),0===n&&dZ(e)}};var fe=a.version;if("19.3.0-canary-cbb046ab-20260731"!==fe)throw Error(l(527,fe,"19.3.0-canary-cbb046ab-20260731"));if(Q.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,e=Object.keys(e).join(",")))}return null===(e=null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=c(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return h(i),e;if(s===r)return h(i),t;s=s.sibling}throw Error(l(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,o=i.child;o;){if(o===n){a=!0,n=i,r=s;break}if(o===r){a=!0,r=i,n=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===n){a=!0,n=s,r=i;break}if(o===r){a=!0,r=s,n=i;break}o=o.sibling}if(!a)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(t))?function e(t){var n=t.tag;if(5===n||26===n||27===n||6===n)return t;for(t=t.child;null!==t;){if(null!==(n=e(t)))return n;t=t.sibling}return null}(e):null)?null:e.stateNode},"u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ft=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ft.isDisabled&&ft.supportsFiber)try{eE=ft.inject({bundleType:0,version:"19.3.0-canary-cbb046ab-20260731",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.3.0-canary-cbb046ab-20260731"}),eP=ft}catch(e){}}n.createRoot=function(e,t){if(!u(e))throw Error(l(299));
1var n=!1,r="",i=aD,s=az,a=a$;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=dO(e,1,!1,null,null,n,r,null,i,s,a,d6),e[eY]=t.current,u5(e),new d7(t)},n.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var r,i=!1,s="",a=aD,o=az,c=a$,d=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(o=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(d=n.formState)),(t=dO(e,1,!0,t,null!=n?n:null,i,s,d,a,o,c,d6)).context=(r=null,ry),n=t.current,(s=iY(i=eB(i=l9()))).callback=null,iK(n,s,i),n=i,t.current.lanes=n,ez(t,n),uB(t),e[eY]=t.current,u5(e),new d9(t)},n.version="19.3.0-canary-cbb046ab-20260731"},337562,(e,t,n)=>{"use strict";e.i(282693),!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(217486)},306737,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={getObjectClassLabel:function(){return s},isPlainObject:function(){return a}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});function s(e){return Object.prototype.toString.call(e)}function a(e){if("[object Object]"!==s(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},44249,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return a},getProperError:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(306737);function a(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){let t;return a(e)?e:Object.defineProperty(Error((0,s.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,(e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}return n})):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},2909,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},947415,(e,t,n)=>{"use strict";e.i(282693),Object.defineProperty(n,"__esModule",{value:!0});var r={isRecoverableError:function(){return c},onRecoverableError:function(){return d}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(836437),a=e.r(699827),o=s._(e.r(44249)),l=e.r(2909),u=new WeakSet;function c(e){return u.has(e)}let d=e=>{let t=(0,o.default)(e)&&"cause"in e?e.cause:e;(0,a.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},964227,(e,t,n)=>{if(e.i(282693),/(?:^|;\s)__vercel_toolbar=1(?:;|$)/.test(document.cookie)){var r=document.createElement("script");r.src="https://vercel.live/_next-live/feedback/feedback.js",r.setAttribute("data-explicit-opt-in","true"),r.setAttribute("data-cookie-opt-in","true"),r.setAttribute("data-deployment-id",globalThis.NEXT_DEPLOYMENT_ID),(document.head||document.documentElement).appendChild(r)}},28401,e=>{"use strict";var t,n,r,i="u">typeof window?window:void 0,s="u">typeof globalThis?globalThis:i;"u"<typeof self&&(s.self=s),"u"<typeof File&&(s.File=function(){});var a=null==s?void 0:s.navigator,o=null==s?void 0:s.document,l=null==s?void 0:s.location,u=null==s?void 0:s.fetch,c=null!=s&&s.XMLHttpRequest&&"withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:void 0,d=null==s?void 0:s.AbortController,f=null==s?void 0:s.CompressionStream,h=null==a?void 0:a.userAgent,p=null!=i?i:{};function g(){return!(!i||!1===i.navigator.onLine)}var v="1.399.2",m={DEBUG:!1,LIB_VERSION:v,LIB_NAME:"web",JS_SDK_VERSION:v};function _(e,t,n,r,i,s,a){try{var o=e[s](a),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(r,i)}function y(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function a(e){_(s,r,i,a,o,"next",e)}function o(e){_(s,r,i,a,o,"throw",e)}a(void 0)})}}function b(){return(b=Object.assign.bind()).apply(null,arguments)}function w(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var S=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}};function k(e){return"string"==typeof e||e}function x(e){return"string"==typeof e?e:void 0}var E,P,C,T,O=((E={}).AnonymousId="anonymous_id",E.DistinctId="distinct_id",E.Props="props",E.EnablePersonProcessing="enable_person_processing",E.PersonMode="person_mode",E.FeatureFlagDetails="feature_flag_details",E.FeatureFlags="feature_flags",E.FeatureFlagPayloads="feature_flag_payloads",E.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",E.BootstrapFeatureFlags="bootstrap_feature_flags",E.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",E.OverrideFeatureFlags="override_feature_flags",E.Queue="queue",E.LogsQueue="logs_queue",E.OptedOut="opted_out",E.SessionId="session_id",E.SessionStartTimestamp="session_start_timestamp",E.SessionLastTimestamp="session_timestamp",E.PersonProperties="person_properties",E.GroupProperties="group_properties",E.InstalledAppBuild="installed_app_build",E.InstalledAppVersion="installed_app_version",E.SessionReplay="session_replay",E.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",E.SurveyLastSeenDate="survey_last_seen_date",E.SurveysSeen="surveys_seen",E.Surveys="surveys",E.RemoteConfig="remote_config",E.FlagsEndpointWasHit="flags_endpoint_was_hit",E.DeviceId="device_id",E),F=((P={}).GZipJS="gzip-js",P.Base64="base64",P),N=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],R=["token"],L="NativeGzipValidationError",I=e=>e.length>=2&&31===e[0]&&139===e[1],M=(e,t)=>e===F.GZipJS||t===F.GZipJS||"gzip"===t,A=e=>!(!e||"object"!=typeof e)&&"NotReadableError"===("name"in e?String(e.name):""),D=e=>
1{var t=Error("Native gzip produced invalid output: "+e);throw t.name=L,t},z=(C=y(function*(e,t){18>e.size&&D("too-short");var n=new Uint8Array((yield e.slice(0,10).arrayBuffer()));I(n)&&8===n[2]||D("invalid-header");var r=new DataView((yield e.slice(e.size-8).arrayBuffer()));r.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(T)return T;T=[];for(var e=0;256>e;e++){for(var t=e,n=0;8>n;n++)t=1&t?0xedb88320^t>>>1:t>>>1;T[e]=t>>>0}return T})(),n=0xffffffff,r=0;e.length>r;r++)n=t[255&(n^e[r])]^n>>>8;return(0xffffffff^n)>>>0})(t)&&D("invalid-crc");var i=t.length>>>0;r.getUint32(4,!0)!==i&&D("invalid-size")}),function(e,t){return C.apply(this,arguments)});function $(){return($=y(function*(e,t,n){void 0===t&&(t=!0);try{var r,i=(new TextEncoder).encode(e),s=new CompressionStream("gzip"),a=s.writable.getWriter(),o=a.write(i).then(()=>a.close()).catch((r=y(function*(e){try{yield a.abort(e)}catch(e){}throw e}),function(e){return r.apply(this,arguments)})),l=new Response(s.readable).blob(),[u]=yield Promise.all([l,o]);return yield z(u,i),u}catch(e){if(null!=n&&n.rethrow)throw e;return t&&console.error("Failed to gzip compress data",e),null}})).apply(this,arguments)}var j=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],U=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var n=e.toLowerCase();return j.concat(t).some(e=>{var t=e.toLowerCase();return -1!==n.indexOf(t)})};function B(e,t){return -1!==e.indexOf(t)}var H=function(e){return e.trim()},V=function(e){return e.replace(/^\$/,"")},q=Object.prototype,W=q.hasOwnProperty,G=q.toString,Q=Array.isArray||function(e){return"[object Array]"===G.call(e)},Y=e=>"function"==typeof e,K=e=>e===Object(e)&&!Q(e),X=e=>{if(K(e)){for(var t in e)if(W.call(e,t))return!1;return!0}return!1},J=e=>void 0===e,Z=e=>"[object String]"==G.call(e),ee=e=>Z(e)&&0===e.trim().length,et=e=>null===e,en=e=>J(e)||et(e),er=e=>"[object Number]"==G.call(e)&&e==e,ei=e=>er(e)&&e>0,es=e=>"[object Boolean]"===G.call(e),ea=e=>B(N,e),eo=e=>B(R,e);function el(e){return null===e||"object"!=typeof e}function eu(e,t){return({}).toString.call(e)==="[object "+t+"]"}function ec(e){return"u">typeof Event&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var ed=[!0,"true",1,"1","yes"],ef=[!1,"false",0,"0","no"];function eh(e,t,n,r,i){return t>n&&(r.warn("min cannot be greater than max."),t=n),er(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t>e?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),eh(i||n,t,n,r))}class ep{constructor(e){this.Ee={},this.Pe=e.Pe,this.Fe=eh(e.bucketSize,0,100,e.Ae),this.De=eh(e.refillRate,0,this.Fe,e.Ae),this.$e=eh(e.refillInterval,0,864e5,e.Ae)}Ne(e,t){var n=Math.floor((t-e.lastAccess)/this.$e);n>0&&(e.tokens=Math.min(e.tokens+n*this.De,this.Fe),e.lastAccess=e.lastAccess+n*this.$e)}consumeRateLimit(e){var t,n=Date.now(),r=String(e),i=this.Ee[r];return i?this.Ne(i,n):this.Ee[r]=i={tokens:this.Fe,lastAccess:n},0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.Pe)||t.call(this,e)),0===i.tokens)}stop(){this.Ee={}}}var eg="Mobile",ev="Android",em="Tablet",e_=ev+" "+em,ey="iPad",eb="Apple",ew=eb+" Watch",eS="Safari",ek="BlackBerry",ex="Samsung",eE=ex+"Browser",eP=ex+" Internet",eC="Chrome",eT=eC+" OS",eO=eC+" iOS",eF="Internet Explorer",eN=eF+" "+eg,eR="Opera",eL=eR+" Mini",eI="Edge",eM="Microsoft "+eI,eA="Firefox",eD=eA+" iOS",ez="Nintendo",e$="PlayStation",ej="Xbox",eU=ev+" "+eg,eB=eg+" "+eS,eH="Windows",eV=eH+" Phone",eq="Nokia",eW="Ouya",eG="Generic",eQ=eG+" "+eg.toLowerCase(),eY=eG+" "+em.toLowerCase(),eK="Konqueror",eX="Oculus Browser",eJ="Vivaldi",eZ="Yandex",e0="Whale",e1="DuckDuckGo",e2="Pale Moon",e3="Waterfox",e4="Brave",e5="Google Search App",e8="(\\d+(\\.\\d+)?)",e6=RegExp("Version/"+e8),e7=RegExp(ej,"i"),e9=RegExp(e$+" \\w+","i"),te=RegExp(ez+" \\w+","i"),tt=RegExp(ek+"|PlayBook|BB10","i"),tn={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},tr=function(e,t,n,r){var i;return t=t||"",(null!=n&&n.brave?e4:null)||(null!=r&&r.detectGoogleSearchApp&&B(e,"GSA/")?e5:B(e," OPR/")&&B(e,"Mini")?eL:B(e," OPR/")?eR:tt.test(e)?ek:B(e,"IE"+eg)||B(e,"WPDesktop")?eN:B(e,"OculusBrowser")?eX:B(e,eE)?eP:B(e,eI)||B(e,"Edg/")?eM:B(e,eJ+"/")?eJ:B(e,"YaBrowser/")?eZ:B(e,e0+"/")?e0:B(e,e1+"/")||B(e,"Ddg/")?e1:B(e,"FBIOS")?"Facebook "+eg:B(e,"UCWEB")||B(e,"UCBrowser")?"UC Browser":B(e,"CriOS")?eO:B(e,"CrMo")||B(e,eC
1)?eC:B(e,ev)&&B(e,eS)?eU:B(e,"FxiOS")?eD:B(e.toLowerCase(),eK.toLowerCase())?eK:B(e,e4+"/")?e4:(i=t)&&B(i,eb)||B(e,eS)&&!B(e,eC)&&!B(e,ev)?B(e,eg)?eB:eS:B(e,"PaleMoon/")?e2:B(e,e3+"/")?e3:B(e,eA)?eA:B(e,"MSIE")||B(e,"Trident/")?eF:B(e,"Gecko")?eA:"")},ti={[eN]:[RegExp("rv:"+e8)],[eM]:[RegExp(eI+"?\\/"+e8)],[eC]:[RegExp("("+eC+"|CrMo)\\/"+e8)],[eO]:[RegExp("CriOS\\/"+e8)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+e8)],[eS]:[e6],[eB]:[e6],[eR]:[RegExp("(Opera|OPR)\\/"+e8)],[eA]:[RegExp(eA+"\\/"+e8)],[eD]:[RegExp("FxiOS\\/"+e8)],[eK]:[RegExp("Konqueror[:/]?"+e8,"i")],[ek]:[RegExp(ek+" "+e8),e6],[eU]:[RegExp("android\\s"+e8,"i")],[eP]:[RegExp(eE+"\\/"+e8)],[eX]:[RegExp("OculusBrowser\\/"+e8)],[eJ]:[RegExp(eJ+"\\/"+e8)],[eZ]:[RegExp("YaBrowser\\/"+e8)],[e0]:[RegExp(e0+"\\/"+e8)],[e4]:[RegExp(e4+"\\/"+e8)],[e1]:[RegExp("(DuckDuckGo|Ddg)\\/"+e8)],[e2]:[RegExp("PaleMoon\\/"+e8)],[e3]:[RegExp(e3+"\\/"+e8)],[e5]:[RegExp("GSA\\/"+e8)],[eF]:[RegExp("(rv:|MSIE )"+e8)],Mozilla:[RegExp("rv:"+e8)]},ts=function(e,t,n,r){var i=ti[tr(e,t,n,r)];if(J(i))return null;for(var s=0;i.length>s;s++){var a=e.match(i[s]);if(a)return parseFloat(a[a.length-2])}return null},ta=[[RegExp(ej+"; "+ej+" (.*?)[);]","i"),e=>[ej,e&&e[1]||""]],[RegExp(ez,"i"),[ez,""]],[RegExp(e$,"i"),[e$,""]],[tt,[ek,""]],[RegExp(eH,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[eV,""];if(new RegExp(eg).test(t)&&!/IEMobile\b/.test(t))return[eH+" "+eg,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=tn[n[1]]||"";return/arm/i.test(t)&&(r="RT"),[eH,r]}return[eH,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=J(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+ev+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ev+")","i"),e=>e&&e[2]?[ev,[e[2],e[3],e[4]||"0"].join(".")]:[ev,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[eT,""]],[/Linux|debian/i,["Linux",""]]],to=function(e){return te.test(e)?ez:e9.test(e)?e$:e7.test(e)?ej:RegExp(eW,"i").test(e)?eW:RegExp("("+eV+"|WPDesktop)","i").test(e)?eV:/iPad/.test(e)?ey:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?ew:tt.test(e)?ek:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(eq,"i").test(e)?eq:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(eg).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ev:e_:RegExp("(pda|"+eg+")","i").test(e)?eQ:RegExp(em,"i").test(e)&&!RegExp(em+" pc","i").test(e)?eY:""},tl=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tu(e,t){return"string"==typeof e&&tl.test(e)?e:t()}function tc(e){return e?e.split("#")[0]:e}function td(e,t){var n=setTimeout(e,t);return(null==n?void 0:n.unref)&&(null==n||n.unref()),n}var tf=e=>e instanceof Error,th={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},tp=th.info;function tg(e){var t=[];for(var n in e){var r=e[n];et(r)||J(r)||t.push({key:n,value:function e(t){if(es(t))return{boolValue:t};if("number"==typeof t)return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if("string"==typeof t)return{stringValue:t};if(Q(t))return{arrayValue:{values:t.map(t=>e(t))}};try{return{stringValue:JSON.stringify(t)}}catch(e){return{stringValue:String(t)}}}(r)})}return t}function tv(e,t,n){return b({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":n})}function tm(e,t,n,r){return{resourceLogs:[{resource:{attributes:tg(t)},scopeLogs:[{scope:{name:n,version:r},logRecords:e}]}]}}let t_=class{constructor(e,t,n,r,i,s,a){var o;void 0===s&&(s=()=>Promise.resolve()),this._instance=e,this.Se=t,this.Ae=n,this.qe=r,this.Be=i,this.je=s,this.He=a,this.Ue=null,this.ze=0,this.Ve=0,this.We=0,this.Ge=0,this.Ze=!1,this.Qe=t.maxBufferSize,this.Je=Math.max(null!=(o=t.maxQueueSize)?o:t.maxBufferSize,t.maxBufferSize),this.Ke=t.flushIntervalMs,this.Ye=t.maxBatchRecordsPerPost,this.Xe=t.rateCapWindowMs,this.et=t.maxLogsPerInterval}reset(){this.tt(),this.Ue=null,this.We=0,this.Ge=0,this.Ze=!1,this.ze=0,this.Ve=0,this.Ye=this.Se.maxBatchRecordsPerPost}onReconnect(){this.Ve=0,this.rt()}captureLog(e){if(!this._instance.isDisabled&&!this._instance.optedOut&&null!=e&&e.body){var t=this.it(e);
1if(null!==t)if(t.body){if(this.nt()){var n={record:function(e,t){var{text:n,number:r}=th[e.level||"info"]||tp,i=String(Date.now())+"000000",s={};t.distinctId&&(s.posthogDistinctId=t.distinctId),t.sessionId&&(s.sessionId=t.sessionId),t.windowId&&(s["window.id"]=t.windowId),en(t.sessionStartTimestamp)||(s.sessionStartTimestamp=String(t.sessionStartTimestamp)),en(t.lastActivityTimestamp)||(s.lastActivityTimestamp=String(t.lastActivityTimestamp)),t.currentUrl&&(s["url.full"]=t.currentUrl),t.screenName&&(s["screen.name"]=t.screenName),t.appState&&(s["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(s.feature_flags=t.activeFeatureFlags);var a=b({},s,e.attributes||{}),o={timeUnixNano:i,observedTimeUnixNano:i,severityNumber:r,severityText:n,body:{stringValue:e.body},attributes:tg(a)};return e.trace_id&&(o.traceId=e.trace_id),e.span_id&&(o.spanId=e.span_id),J(e.trace_flags)||(o.flags=e.trace_flags),o}(t,this.qe())};this.Be(()=>this.st(n))}}else this.Ae.info("Log was rejected in beforeSend function")}}it(e){var t=this.Se.beforeSend;if(!t)return e;var n=Q(t)?t:[t],r=e;for(var i of n)try{var s=i(r);if(!s)return this.Ae.info("Log was rejected in beforeSend function"),null;r=s}catch(e){return this.Ae.error("Error in beforeSend function for log:",e),null}return r}nt(){if(void 0===this.et)return!0;var e=Date.now(),t=e-this.We;return this.Xe>t&&t>=0||(this.We=e,this.Ge=0,this.Ze=!1),this.et>this.Ge?(this.Ge++,!0):(this.Ze||(this.Ae.warn("captureLog dropping logs: exceeded "+this.et+" logs per "+this.Xe+"ms"),this.Ze=!0),!1)}flush(){var e=this;return y(function*(){if(!e._instance.isDisabled)return e.Ue||(e.Ue=e.ot().finally(()=>{e.Ue=null})),e.Ue})()}ot(){var e=this;return y(function*(){e.tt();var t=null!=(i=e._instance.getPersistedProperty(O.LogsQueue))?i:[];if(0!==t.length)for(var n=t.length,r=0;t.length>0&&n>r;){e.ze=0;var i,s,a,o=Math.min(t.length,e.Ye),l=t.slice(0,o),u=tm(l.map(e=>e.record),e.ut(),null!=(s=e.He)?s:e._instance.getLibraryId(),e._instance.getLibraryVersion()),c=yield e._instance.ht(u);if("too-large"===c.kind&&l.length>1)e.Ye=Math.max(1,Math.floor(l.length/2)),e.Ae.warn("Received 413 when sending logs batch of size "+l.length+", reducing batch size to "+e.Ye);else if("retry-later"===c.kind||("too-large"===c.kind?e.Ae.warn("Dropping a single log record after 413 with batch size 1 — the record is larger than the server cap and cannot be split further."):"ok"===c.kind&&e.Se.maxBatchRecordsPerPost>e.Ye&&(e.Ye=Math.min(e.Se.maxBatchRecordsPerPost,e.Ye+1)),yield e.dt(l.length),t=null!=(a=e._instance.getPersistedProperty(O.LogsQueue))?a:[],r+=l.length,"fatal"===c.kind))throw c.error}})()}dt(e){var t=this;return y(function*(){var n,r=Math.max(0,e-t.ze),i=null!=(n=t._instance.getPersistedProperty(O.LogsQueue))?n:[];t._instance.setPersistedProperty(O.LogsQueue,i.slice(r)),yield t.je()})()}ut(){return tv(this.Se,this._instance.getLibraryId(),this._instance.getLibraryVersion())}st(e){var t;if(!this._instance.optedOut){var n=null!=(t=this._instance.getPersistedProperty(O.LogsQueue))?t:[];this.Je>n.length||(n.shift(),this.ze++,this.Ae.info("Logs queue is full, dropping oldest record.")),n.push(e),this._instance.setPersistedProperty(O.LogsQueue,n),this.Qe>n.length?this.ct():this.rt()}}ct(e){void 0===e&&(e=this.Ke),this.vt||(this.vt=td(()=>{this.vt=void 0,this.rt()},e))}ft(){var e=Math.min(Math.max(0,this.Ve-1),6);return this.Ke*Math.pow(2,e)}yt(){var e=this._instance.getPersistedProperty(O.LogsQueue);return!!e&&e.length>0}shutdown(e){var t=this;return y(function*(){t.tt();var n=t.flush().catch(()=>{});void 0!==e?yield Promise.race([n,new Promise(t=>td(t,e))]):yield n})()}flushWithTimeout(e){var t=this;return y(function*(){var n=!1,r=t.flush(),i=new Promise(t=>td(()=>{n=!0,t()},e));try{yield Promise.race([r,i])}finally{n&&r.catch(()=>{})}})()}rt(){this.flush().then(()=>{this.Ve=0},e=>{this.Ve++,this.Ae.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.yt()&&this.ct(this.ft())})}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}};var ty=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function tb(e){return String(e)+"000000"}function tw(e,t,n,r){var i="";return r&&(i=Object.keys(r).sort().map(e=>JSON.stringify(e)+":"+JSON.stringify(r[e])).join(",")),e+"\0"+t+"\0"+(null!=n?n:"")+"\0"+i}let tS=class{constructor(e,t,n){this._instance=e,this.Se=t,this.Ae=n,this.bt=new Map,this.Ue=null,this._t=!1,this.wt=new Map,this.xt=new Set}count(e,t,n){void 0===t&&(t=1),this.kt({name:e,type:"count",value:t,unit:null==n?void 0:n.unit,attributes:null==n?void 0:n.attributes})}
1gauge(e,t,n){this.kt({name:e,type:"gauge",value:t,unit:null==n?void 0:n.unit,attributes:null==n?void 0:n.attributes})}histogram(e,t,n){this.kt({name:e,type:"histogram",value:t,unit:null==n?void 0:n.unit,attributes:null==n?void 0:n.attributes})}flush(){var e,t=this,n=this.Ue,r=(e=y(function*(){n&&(yield n.catch(()=>{})),yield t.St()}),function(){return e.apply(this,arguments)})().finally(()=>{this.Ue===r&&(this.Ue=null)});return this.Ue=r,r}drainWindow(){if(0===this.bt.size)return null;var e=this.bt;return this.bt=new Map,this._t=!1,this.wt=new Map,this.xt=new Set,this.Ct(e)}reset(){this.tt(),this.bt=new Map,this.Ue=null,this._t=!1,this.wt=new Map,this.xt=new Set}kt(e){if(!this._instance.isDisabled&&!this._instance.optedOut){var t=this.it(e);if(null!==t)if(t.name&&"string"==typeof t.name)if("number"==typeof t.value&&Number.isFinite(t.value))if("count"===t.type&&0>t.value)this.Ae.warn("Dropping count '"+t.name+"': counters are monotonic, value must be >= 0");else{var n=this.wt.get(t.name);void 0===n?this.wt.set(t.name,t.type):n===t.type||this.xt.has(t.name)||(this.xt.add(t.name),this.Ae.warn("Metric name '"+t.name+"' is already used as a "+n+"; recording it as a "+t.type+" too will blend both series in charts. Use a distinct name."));var r=tw(t.type,t.name,t.unit,t.attributes),i=this.bt.get(r);if(!i){if(this.bt.size>=this.Se.maxSeriesPerFlush)return void(this._t||(this._t=!0,this.Ae.warn("Metric series cap reached ("+this.Se.maxSeriesPerFlush+" per flush window); dropping new series until the next flush. Reduce attribute cardinality.")));i={name:t.name,type:t.type,unit:t.unit,attributes:t.attributes?b({},t.attributes):void 0,windowStartMs:Date.now()},this.bt.set(r,i)}this.It(i,t.value),this.ct()}else this.Ae.warn("Dropping metric '"+t.name+"': value must be a finite number");else this.Ae.warn("Dropping metric with empty name")}}It(e,t){var n;switch(e.type){case"count":e.total=(null!=(n=e.total)?n:0)+t;break;case"gauge":e.last=t;break;case"histogram":e.hist||(e.hist={count:0,sum:0,min:t,max:t,bucketCounts:Array(ty.length+1).fill(0)});var r=e.hist;r.count+=1,r.sum+=t,r.min=Math.min(r.min,t),r.max=Math.max(r.max,t),r.bucketCounts[function(e,t){for(var n=0;t.length>n;n++)if(t[n]>=e)return n;return t.length}(t,ty)]+=1}}it(e){var t=this.Se.beforeSend;if(!t)return e;var n=Q(t)?t:[t],r=e;for(var i of n)try{var s=i(r);if(!s)return this.Ae.info("Metric was rejected in beforeSend function"),null;r=s}catch(e){return this.Ae.error("Error in beforeSend function for metric:",e),null}return r}ct(){this.vt||(this.vt=td(()=>{this.vt=void 0,this.flush().catch(()=>{})},this.Se.flushIntervalMs))}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}St(){var e=this;return y(function*(){if(0!==e.bt.size){var t=e.bt;e.bt=new Map,e._t=!1,e.wt=new Map,e.xt=new Set;var n=yield e._instance.Tt(e.Ct(t));switch(n.kind){case"ok":return;case"retry-later":return e.Mt(t),void e.ct();case"too-large":return void e.Ae.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void e.Ae.error("Failed to send metrics batch:",n.error)}}})()}Ct(e){var t,n,r,i,s,a,o;return i=this.Et(e),t=this.Se,n=this._instance.getLibraryId(),r=this._instance.getLibraryVersion(),s=b({},t.resourceAttributes,{"service.name":t.serviceName||"unknown_service"},t.environment&&{"deployment.environment":t.environment},t.serviceVersion&&{"service.version":t.serviceVersion},{"telemetry.sdk.name":n,"telemetry.sdk.version":r}),a=this._instance.getLibraryId(),o=this._instance.getLibraryVersion(),{resourceMetrics:[{resource:{attributes:tg(s)},scopeMetrics:[{scope:{name:a,version:o},metrics:i}]}]}}Et(e){var t=tb(Date.now()),n=new Map;for(var r of e.values()){var i,s=tw(r.type,r.name,r.unit,void 0),a=n.get(s);a||(a=b({name:r.name},r.unit&&{unit:r.unit}),"count"===r.type?a.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:"gauge"===r.type?a.gauge={dataPoints:[]}:a.histogram={aggregationTemporality:1,dataPoints:[]},n.set(s,a));var o=tg(null!=(i=r.attributes)?i:{}),l=tb(r.windowStartMs);if("count"===r.type){var u,c={attributes:o,startTimeUnixNano:l,timeUnixNano:t,asDouble:null!=(u=r.total)?u:0};a.sum.dataPoints.push(c)}else if("gauge"===r.type){var d,f={attributes:o,timeUnixNano:t,asDouble:null!=(d=r.last)?d:0};a.gauge.dataPoints.push(f)}else r.hist&&a.histogram.dataPoints.push({attributes:o,startTimeUnixNano:l,timeUnixNano:t,count:r.hist.count,sum:r.hist.sum,min:r.hist.min,max:r.hist.max,bucketCounts:r.hist.bucketCounts,explicitBounds:ty})}return Array.from(n.values())}Mt(e){var t,n;for(var[r,i]of e){var s=this.bt.get(r);if(s)switch(s.windowStartMs=Math.min(s.windowStartMs,i.windowStartMs),s.type){case"count":s.total=(null!=(t=s.total)?t:0)+(null!=(n=i.total)?n:0);break;case"gauge":break;case"histogram":if(i.hist)if(s.hist){s.hist.count+=i.hist.count,s.hist.sum+=i.hist.sum,s.hist.min=Math.min(s.hist.min,i.hist.min),s.hist.max=Math.max(s.hist.max,i.hist.max);for(var a=0;s.hist.bucketCounts.length>a;a++)s.hist.bucketCounts[a]+=i.hist.bucketCounts[a]}else s.hist=i.hist}else this.bt.set(r,i)}}};class tk{constructor(e,t,n){void 0===n&&(n=[]),this.coercers=e,this.stackParser=t,this.modifiers=n}buildFromUnknown(e,t){void 0===t&&(t={});var n=t&&t.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,t,0).apply(e),i=this.buildParsingContext(t),s=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(s,n),$exception_level:"error"}}modifyFrames(e){var t=this;return y(function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&Q(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var n,r;return null!=e.cause&&(n=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.ski
1pFirstLines:0),t.chunkIdMap)),b({},e,{cause:n,stack:r})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return y(function*(){var n=e;for(var r of t.modifiers)n=yield r(n);return n})()}convertToExceptionList(e,t){var n,r,i,s={type:e.type,value:e.value,mechanism:{type:null!=(n=t.type)?n:"generic",handled:null==(r=t.handled)||r,synthetic:null!=(i=e.synthetic)&&i}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var a=[s];return null!=e.cause&&a.push(...this.convertToExceptionList(e.cause,b({},t,{handled:!0}))),a}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return ra&&n.length===rs||(rs=n.length,ra=n.reduce((n,r)=>{ri||(ri={});var i=ri[r];if(i)n[i[0]]=i[1];else for(var s=e(r),a=s.length-1;a>=0;a--){var o=s[a],l=null==o?void 0:o.filename,u=t[r];if(l&&u){n[l]=u,ri[r]=[l,u];break}}return n},{})),ra}}(this.stackParser),skipFirstLines:null!=(t=e.skipFirstLines)?t:1}}buildCoercingContext(e,t,n){void 0===n&&(n=0);var r=(n,r)=>{if(4>=r){var i=this.buildCoercingContext(e,t,r);return this.applyCoercers(n,i)}};return b({},t,{syntheticException:0==n?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,n),next:e=>r(e,n+1)})}}function tx(e,t,n,r,i){var s={platform:e,filename:t,function:"<anonymous>"===n?"?":n,in_app:!0};return J(r)||(s.lineno=r),J(i)||(s.colno=i),s}var tE=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},tP=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tT=/\((\S*)(?::(\d+))(?::(\d+))\)/,tO=(e,t)=>{var n=tP.exec(e);if(n){var[,r,i,s]=n;return tx(t,r,"?",+i,+s)}var a=tC.exec(e);if(a){if(a[2]&&0===a[2].indexOf("eval")){var o=tT.exec(a[2]);o&&(a[2]=o[1],a[3]=o[2],a[4]=o[3])}var[l,u]=tE(a[1]||"?",a[2]);return tx(t,u,l,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}},tF=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tR=(e,t)=>{var n=tF.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=tN.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],s=n[1]||"?";return[s,i]=tE(s,i),tx(t,i,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},tL=/\(error: (.*)\)/;class tI{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=Z(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return eu(e,"DOMException")}isDOMError(e){return eu(e,"DOMError")}}class tM{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return String(n.error&&"string"==typeof n.error.message?n.error.message:n)}getStack(e){return e.stacktrace||e.stack||void 0}}class tA{match(e){return eu(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var n;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}var tD=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class tz{match(e){return"string"==typeof e}coerce(e,t){var n,[r,i]=this.getInfos(e);return{type:null!=r?r:"Error",value:null!=i?i:e,stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}getInfos(e){var t="Error",n=e,r=e.match(tD);return r&&(t=r[1],n=r[2]),[t,n]}}var t$=["fatal","error","warning","log","info","debug"];function tj(e,t){void 0===t&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");
1if(t>=i.length)return r===n.length?i:i.length>t?i.slice(0,t)+"...":i}return""}class tU{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var n,r=this.getErrorPropertyFromObject(e);return r?t.apply(r):{type:this.getType(e),value:this.getValue(e),stack:null==(n=t.syntheticException)?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return ec(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var n=this.getObjectClassName(e);return(n&&"Object"!==n?"'"+n+"'":"Object")+" captured as exception with keys: "+tj(e)}isSeverityLevel(e){return Z(e)&&!ee(e)&&t$.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(({}).hasOwnProperty.call(e,t)){var n=e[t];if(tf(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class tB{match(e){return ec(e)}coerce(e,t){var n,r=e.constructor.name;return{type:r,value:r+" captured as exception with keys: "+tj(e),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}class tH{match(e){return el(e)}coerce(e,t){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}class tV{match(e){return eu(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!ec(e))return!1;try{var t=e.detail;return null!=t&&"object"==typeof t&&"reason"in t}catch(e){return!1}}coerce(e,t){var n,r=this.getUnhandledRejectionReason(e);return el(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}:t.apply(r)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&null!=e.detail&&"object"==typeof e.detail&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var tq="$message",tW="$timestamp",tG=new Set([tq,tW]),tQ={enabled:!0,max_bytes:32768};function tY(e){var t;return e?{enabled:null!=(t=e.enabled)?t:tQ.enabled,max_bytes:function(e,t){if(!er(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}(e.max_bytes,tQ.max_bytes)}:b({},tQ)}class tK{constructor(e){this.Pt=[],this.Rt=0,this.Se=tY(e)}setConfig(e){this.Se=tY(e),this.Ot()}add(e){var t=function(e){var t,n,r;try{r=[],t=null!=(n=JSON.stringify(e,function(e,t){if("bigint"==typeof t)return t.toString();if("function"!=typeof t&&"symbol"!=typeof t){if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t&&"object"==typeof t){for(;r.length>0&&r[r.length-1]!==this;)r.pop();if(r.includes(t))return"[Circular]";r.push(t)}return t}}))?n:"null"}catch(e){return}try{var i=JSON.parse(t);if(!K(i))return;var s=i[tq],a=i[tW];if(!Z(s)||0===s.trim().length||!Z(a)&&!er(a))return;return{step:i,json:t}}catch(e){return}}(e);if(t){var n=function(e){if("u">typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=encodeURIComponent(e),n=0,r=0;t.length>r;r++)"%"===t[r]?(n+=1,r+=2):n+=1;return n}(t.json);n>this.Se.max_bytes||(this.Pt.push({step:t.step,bytes:n}),this.Rt+=n,this.Ot())}}getAttachable(){return this.Pt.map(e=>e.step)}clear(){this.Pt=[],this.Rt=0}size(){return this.Pt.length}Ot(){for(;this.Rt>this.Se.max_bytes&&this.Pt.length>0;){var e=this.Pt.shift();e&&(this.Rt-=e.bytes)}}}var tX=function(e,t){var{debugEnabled:n}=void 0===t?{}:t,r={k(t){if(i&&(m.DEBUG||p.POSTHOG_DEBUG||n)&&!J(i.console)&&i.console){for(var r=("__rrweb_original__"in i.console[t])?i.console[t].__rrweb_original__:i.console[t],s=arguments.length,a=Array(s>1?s-1:0),o=1;s>o;o++)a[o-1]=arguments[o];r(e,...a)}},debug(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k("debug",...t)},info(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k("log",...t)},warn(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k("warn",...t)},error(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k("error",...t)},critical(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];console.error(e,...n)},uninitializedWarning(e){r.error("You must initialize PostHog before calling "+e)},createLogger:(t,n)=>tX(e+" "+t,n)};return r},tJ=tX("[PostHog.js]"),tZ=tJ.createLogger,t0=tZ("[ExternalScriptsLoader]"),t1=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return t0.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=null==o?void 0:o.querySelectorAll("script");
1if(r){for(var i,s=0;r.length>s;s++)if(i=function(){if(r[s].src===t){var e=r[s];return e.__posthog_loading_callback_fired?{v:n()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,n(void 0,t)}),e.onerror=e=>n(e),{v:void 0})}}())return i.v}var a=()=>{if(!o)return n("document not found");var r=o.createElement("script");if(r.type="text/javascript",r.crossOrigin="anonymous",r.src=t,r.onload=e=>{r.__posthog_loading_callback_fired=!0,n(void 0,e)},r.onerror=e=>n(e),e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return n("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)o.head.appendChild(r);else{var i,s=o.querySelectorAll("body > script");s.length>0?null==(i=s[0].parentNode)||i.insertBefore(r,s[0]):o.body.appendChild(r)}};null!=o&&o.body?a():null==o||o.addEventListener("DOMContentLoaded",a)};p.__PosthogExtensions__=p.__PosthogExtensions__||{},p.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if("remote-config"!==t){var r;if(e.config.strict_script_versioning)r=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var i="/static/"+t+".js?v="+e.version;"toolbar"===t&&(i=i+"&t="+3e5*Math.floor(Date.now()/3e5)),r=e.requestRouter.endpointFor("assets",i)}t1(e,r,n)}else{var s=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");t1(e,s,n)}},p.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);t1(e,r,n)};var t2="$people_distinct_id",t3="$device_id",t4="$device_model",t5="__alias",t8="__timers",t6="$autocapture_disabled_server_side",t7="$heatmaps_enabled_server_side",t9="$exception_capture_enabled_server_side",ne="$error_tracking_suppression_rules",nt="$error_tracking_capture_extension_exceptions",nn="$web_vitals_enabled_server_side",nr="$dead_clicks_enabled_server_side",ni="$product_tours_enabled_server_side",ns="$web_vitals_allowed_metrics",na="$session_recording_remote_config",no="$replay_sample_rate",nl="$replay_override_sampling",nu="$replay_override_linked_flag",nc="$replay_override_url_trigger",nd="$replay_override_event_trigger",nf="$sesid",nh="$session_is_sampled",np="$enabled_feature_flags",ng="$active_feature_flags",nv="$early_access_features",nm="$feature_flag_details",n_="$feature_flag_payloads",ny="$feature_flag_request_id",nb="$override_feature_flags",nw="$override_feature_flag_payloads",nS="$stored_person_properties",nk="$stored_group_properties",nx="$surveys",nE="$surveys_loaded_at",nP="$surveys_activated",nC="ph_product_tours",nT="$flag_call_reported",nO="$flag_call_reported_session_id",nF="$feature_flag_errors",nN="$feature_flag_evaluated_at",nR="$user_state",nL="$client_session_props",nI="$capture_rate_limit",nM="$initial_campaign_params",nA="$initial_referrer_info",nD="$initial_person_info",nz="$epp",n$="__POSTHOG_TOOLBAR__",nj="$posthog_cookieless",nU="$sdk_debug_extensions_init_method",nB="$sdk_debug_extensions_init_time_ms",nH="$sdk_debug_recording_script_not_loaded",nV="PostHog loadExternalDependency extension not found.",nq="on_reject",nW="always",nG="anonymous",nQ="identified",nY="identified_only",nK="visibilitychange",nX="beforeunload",nJ="$pageview",nZ="$pageleave",n0="$identify",n1="$groupidentify";function n2(e,t){Q(e)&&e.forEach(t)}function n3(e,t){if(!en(e))if(Q(e))e.forEach(t);else if(e instanceof FormData)e.forEach((e,n)=>t(e,n));else for(var n in e)W.call(e,n)&&t(e[n],n)}var n4=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var i of n)for(var s in i)void 0!==i[s]&&(e[s]=i[s]);return e};function n5(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var n8=function(e){try{return e()}catch(e){return}},n6=function(e){return function(){try{for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){tJ.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),tJ.critical(e)}}},n7=function(e){var t={};return n3(e,function(e,n){(Z(e)&&e.length>0||er(e))&&(t[n]=e)}),t},n9=["herokuapp.com","vercel.app","netlify.app"];function re(e,t,n,r){var{capture:i=!1,passive:s=!0}=null!=r?r:{};null==e||e.addEventListener(t,n,{capture:i,passive:s})}function rt(e){return"ph_toolbar_internal"===e.name}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return er(e)&&isFinite(e)&&Math.floor(e)===e});class rn{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,r){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||0>e||0>t||0>n||0>r||e>0xffffffffffff||t>4095||n>0x3fffffff||r>0xffffffff)throw RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/0x10000000000,i[1]=e/0x100000000,i[2]=e/0x1000000,i[3]=e/65536,i[4]=e/256,i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new rn(i)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new rn(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;16>t;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}class rr{constructor(){this.S=0,this.C=0,this.I=new ru}generate(){var e=this.generateOrAbort();if(J(e)){this.S=0;var t=this.generateOrAbort();if(J(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.M();else{if(this.S>=e+1e4)return;this.C++,this.C>0x3ffffffffff&&(this.S++,this.M())}return rn.fromFieldsV7(this.S,Math.trunc(this.C/0x40000000),0x3fffffff&this.C,this.I.nextUint32())}M(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var ri,rs,ra,ro,rl=e=>{if("u">typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};i&&!J(i.crypto)&&crypto.getRandomValues&&(rl=e=>crypto.getRandomValues(e));class ru{constructor(){this.R=new Uint32Array(8),this.O=1/0}nextUint32(){return this.R.length>this.O||(rl(this.R),this.O=0),this.R[this.O++]}}var rc=()=>rd().toString(),rd=()=>(ro||(ro=new rr)).generate(),rf="",rh=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,rp={N:()=>!!o,D(e){tJ.error("cookieStore error: "+e)}
1,A(e){if(o){try{for(var t=e+"=",n=o.cookie.split(";").filter(e=>e.length),r=0;n.length>r;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null}},F(e){var t;try{t=JSON.parse(rp.A(e))||{}}catch(e){}return t},q(e,t,n,r,i){if(!o)return!1;try{var s="",a="",l=function(e,t){if(t){var n=function(e,t){if(void 0===t&&(t=o),rf)return rf;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),r=Math.min(n.length,8),i="dmn_chk_"+rc();!rf&&r--;){var s=n.slice(r).join("."),a=i+"=1;domain=."+s+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(i)&&(t.cookie=a+";max-age=0",rf=s)}return rf}(e);if(!n){var r,i=(r=e.match(rh))?r[0]:"";i!==n&&tJ.info("Warning: cookie subdomain discovery mismatch",i,n),n=i}return n?"; domain=."+n:""}return""}(o.location.hostname,r);if(n){var u=new Date;u.setTime(u.getTime()+864e5*n),s="; expires="+u.toUTCString()}i&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+l+a;return c.length>3686.4&&tJ.warn("cookieStore warning: large cookie, len="+c.length),o.cookie=c,!0}catch(e){return!1}},P(e,t){if(null!=o&&o.cookie)try{rp.q(e,"",-1,t)}catch(e){return}}},rg=null,rv={N(){if(!et(rg))return rg;var e=!0;if(J(i))e=!1;else try{var t="__mplssupport__";rv.q(t,"xyz"),'"xyz"'!==rv.A(t)&&(e=!1),rv.P(t)}catch(t){e=!1}return e||tJ.error("localStorage unsupported; falling back to cookie store"),rg=e,e},D(e){tJ.error("localStorage error: "+e)},A(e){try{return null==i?void 0:i.localStorage.getItem(e)}catch(e){rv.D(e)}return null},F(e){try{return JSON.parse(rv.A(e))||{}}catch(e){}return null},q(e,t){try{return null==i||i.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){rv.D(e)}return!1},P(e){try{null==i||i.localStorage.removeItem(e)}catch(e){rv.D(e)}}},rm=[t3,"distinct_id",nf,nh,nz,nD,nR],r_={},ry={N:()=>!0,D(e){tJ.error("memoryStorage error: "+e)},A:e=>r_[e]||null,F:e=>r_[e]||null,q:(e,t)=>(r_[e]=t,!0),P(e){delete r_[e]}},rb=null,rw={N(){if(!et(rb))return rb;if(rb=!0,J(i))rb=!1;else try{var e="__support__";rw.q(e,"xyz"),'"xyz"'!==rw.A(e)&&(rb=!1),rw.P(e)}catch(e){rb=!1}return rb},D(e){tJ.error("sessionStorage error: ",e)},A(e){try{return null==i?void 0:i.sessionStorage.getItem(e)}catch(e){rw.D(e)}return null},F(e){try{return JSON.parse(rw.A(e))||null}catch(e){}return null},q(e,t){try{return null==i||i.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(e){rw.D(e)}return!1},P(e){try{null==i||i.sessionStorage.removeItem(e)}catch(e){rw.D(e)}}};class rS{constructor(e){this._instance=e}get Se(){return this._instance.config}get consent(){return this.Ft()?0:this.At}
1isOptedOut(){return this.Se.cookieless_mode===nW||this.isRejected()||-1===this.consent&&this.Se.cookieless_mode===nq}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return 0===this.consent}isRejected(){return 0===this.consent||-1===this.consent&&this.Se.opt_out_capturing_by_default}optInOut(e){this.Dt.q(this.$t,+!!e,this.Se.cookie_expiration,this.Se.cross_subdomain_cookie,this.Se.secure_cookie)}reset(){this.Dt.P(this.$t,this.Se.cross_subdomain_cookie)}get $t(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:"__ph_opt_in_out_"+e)}get At(){var e=this.Dt.A(this.$t);return B(ed,e)?1:B(ef,e)?0:-1}get Dt(){var e=this.Se.opt_out_capturing_persistence_type,t="localStorage"===e?rv:rp;if(!this.Nt||this.Nt!==t){this.Nt=t;var n="localStorage"===e?rp:rv;n.A(this.$t)&&(this.Nt.A(this.$t)||this.optInOut(B(ed,n.A(this.$t))),n.P(this.$t,this.Se.cross_subdomain_cookie))}return this.Nt}Ft(){return!!this.Se.respect_dnt&&[null==a?void 0:a.doNotTrack,null==a?void 0:a.msDoNotTrack,p.doNotTrack].some(e=>B(ed,e))}}function rk(e,t){var n,r=null==e||null==(n=e.config)?void 0:n.get_current_url;if(!Y(r))return t;try{var i=r(t);return Z(i)&&i?i:t}catch(e){return tJ.error("Error in get_current_url, falling back to window.location.href",e),t}}function rx(e){return e instanceof Element&&(e.id===n$||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function rE(e){return!!e&&1===e.nodeType}function rP(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function rC(e){return!!e&&3===e.nodeType}function rT(e){return!!e&&11===e.nodeType&&rE(e.host)}function rO(e){return e?H(e).split(/\s+/):[]}function rF(e,t){var n,r,s=J(r=null==i||null==(n=i.location)?void 0:n.href)?void 0:rk(t,r);return!!(s&&e&&e.some(e=>s.match(e)))}function rN(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return rO(t)}function rR(e){return en(e)?null:H(e).split(/(\s+)/).filter(e=>r1(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function rL(e){var t="";return rG(e)&&!rQ(e)&&e.childNodes&&e.childNodes.length&&n3(e.childNodes,function(e){var n;rC(e)&&e.textContent&&(t+=null!=(n=rR(e.textContent))?n:"")}),H(t)}function rI(e){var t;return J(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}var rM=["a","button","form","input","select","textarea","label"];function rA(e,t){if(J(t))return!0;var n,r=function(e){if(t.some(t=>(function(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;try{return!!n&&n.call(e,t)}catch(e){return!1}})(e,t)))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function rD(e){var t=e.parentNode;return!(!t||!rE(t))&&t}var rz=[".ph-no-autocapture","[data-ph-no-autocapture]"],r$=["next","previous","prev",">","<"],rj=[...r$,"+","-","−","–"],rU=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,rB=[".ph-no-rageclick",".ph-no-capture"],rH=["","text","search","email","password","url","tel","number"];function rV(e,t){if(!i||rq(e)||(es(t)?(r=!!t&&rB,s=void 0,a=!1):(r=null!=(o=null==t?void 0:t.css_selector_ignorelist)?o:rB,s=null==t?void 0:t.content_ignorelist,a=null!=(l=null==t?void 0:t.ignore_text_selection)&&l),!1===r)||a&&!(!(n=e)||!rE(n))&&(rP(n,"textarea")||(rP(n,"input")?B(rH,(n.getAttribute("type")||"").toLowerCase()):function(e){if(e.isContentEditable)return!0;var t=null==e.getAttribute?void 0:e.getAttribute("contenteditable");return"true"===t||""===t}(n))))return!1;var n,r,s,a,o,l,{targetElementList:u}=rW(e,!1);return!function(e,t){var n;if(!1===e||J(e))return!1;if(!0===e)n=r$;else{if(!Q(e))return!1;if(e.length>10)return tJ.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;n=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:r}=e;return n.some(e=>rU(t,e)||rU(r,e))})}(s,u.map(e=>{var t;return{safeText:rL(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!rA(u,r)}var rq=e=>!e||rP(e,"html")||!rE(e),rW=(e,t)=>{if(!i||rq(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],s=e;s.parentNode&&!rP(s,"body");)if(rT(s.parentNode))r.push(s.parentNode.host),s=s.parentNode.host;else{var a=rD(s);if(!a)break;if(t||rM.indexOf(a.tagName.toLowerCase())>-1)n=!0;else try{var o=i.getComputedStyle(a);o&&"pointer"===o.getPropertyValue("cursor")&&(n=!0)}catch(e){}r.push(a),s=a}return{parentIsUsefulElement:n,targetElementList:r}};function rG(e){for(var t=e;t.parentNode&&!rP(t,"body");t=t.parentNode){var n=rN(t);if(B(n,"ph-sensitive")||B(n,"ph-no-capture"))return!1}if(B(rN(e),"ph-include"))return!0;var r=e.type||"";if(Z(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}
1var i=e.name||e.id||"";return!Z(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function rQ(e){return!!(rP(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||rP(e,"select")||rP(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var rY="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",rK=RegExp("^(?:"+rY+")$"),rX=new RegExp(rY),rJ="\\d{3}-?\\d{2}-?\\d{4}",rZ=RegExp("^("+rJ+")$"),r0=RegExp("("+rJ+")");function r1(e,t){return void 0===t&&(t=!0),!(en(e)||Z(e)&&(e=H(e),(t?rK:rX).test((e||"").replace(/[- ]/g,""))||(t?rZ:r0).test(e)))&&!0}function r2(e){var t=rL(e);return r1(t=(t+" "+function e(t){var n="";return t&&t.childNodes&&t.childNodes.length&&n3(t.childNodes,function(t){var r;if(t&&"span"===(null==(r=t.tagName)?void 0:r.toLowerCase()))try{var i=rL(t);n=(n+" "+i).trim(),t.childNodes&&t.childNodes.length&&(n=(n+" "+e(t)).trim())}catch(e){tJ.error("[AutoCapture]",e)}}),n}(e)).trim())?t:""}function r3(e){return e.replace(/"|\\"/g,'\\"')}var r4=tZ("[Dead Clicks]"),r5=()=>!0,r8=e=>{var t,n=!(null==(t=e.instance.persistence)||!t.get_property(nr)),r=e.instance.config.capture_dead_clicks;return es(r)?r:!!K(r)||n};class r6{get lazyLoadedDeadClicksAutocapture(){return this.qt}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[nr]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.Bt(()=>{this.jt()}):this.stop()}Bt(e){var t,n;null!=(t=p.__PosthogExtensions__)&&t.initDeadClicksAutocapture?e():null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?r4.error("failed to load script",t):e()})}jt(){var e;if(o){if(!this.qt&&null!=(e=p.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=K(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.qt=p.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.qt.start(o),r4.info("starting...")}}else r4.error("`document` not found. Cannot start.")}stop(){this.qt&&(this.qt.stop(),this.qt=void 0,r4.info("stopping..."))}}var r7=tZ("[SegmentIntegration]"),r9="posthog-js";function ie(e,t){var{organization:n,projectId:r,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:a=!0}=void 0===t?{}:t;return t=>{if("*"!==s&&!s.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var o=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=o,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var l,u,c,d,f,h,p=(null==(l=t.exception)?void 0:l.values)||[],g=p.map(e=>b({},e,{stacktrace:e.stacktrace?b({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>b({},e,{platform:"web:javascript"}))}):void 0})),v={$exception_message:(null==(u=p[0])?void 0:u.value)||t.message,$exception_type:null==(c=p[0])?void 0:c.type,$exception_level:t.level,$exception_list:g,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(d=p[0])?void 0:d.value)||t.message,$sentry_exception_type:null==(f=p[0])?void 0:f.type,$sentry_tags:t.tags};return n&&r&&(v.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+t.event_id),a&&(null==(h=e.exceptions)||h.sendExceptionEvent(v)),t}}class it{constructor(e,t,n,r,i,s){this.name=r9,this.setupOnce=function(a){a(ie(e,{organization:t,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:null==s||s}))}}}class ir{constructor(e){this.Ht=(e,t,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength||n.crossTabAdoption)&&(tJ.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:n}),this.Ut=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.zt()}zt(){var e;this.Vt=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.Ht)}destroy(){var e;null==(e=this.Vt)||e.call(this),this.Vt=void 0}doPageView(e,t){var n,r=this.Wt(e,t);return this.Ut={pathname:null!=(n=null==i?void 0:i.location.pathname)?n:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),r}doPageLeave(e){var t;return this.Wt(e,null==(t=this.Ut)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Ut)?void 0:e.pageViewId}}Wt(e,t){var n=this.Ut;if(!n)return{$pageview_id:t};var r={$pageview_id:t,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:s,lastScrollY:a,maxScrollY:o,maxContentHeight:l,lastContentY:u,maxContentY:c}=i;
1if(!(J(s)||J(a)||J(o)||J(l)||J(u)||J(c))){s=Math.ceil(s),a=Math.ceil(a),o=Math.ceil(o),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c);var d=s>1?eh(a/s,0,1,tJ):1,f=s>1?eh(o/s,0,1,tJ):1,h=l>1?eh(u/l,0,1,tJ):1,p=l>1?eh(c/l,0,1,tJ):1;r=n4(r,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:o,$prev_pageview_max_scroll_percentage:f,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:h,$prev_pageview_max_content:c,$prev_pageview_max_content_percentage:p})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),r}}var ii=["flags","surveys"],is={[t2]:{exposure:"hidden"},[t5]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[t8]:{exposure:"hidden"},[t6]:{exposure:"event"},[t7]:{exposure:"hidden"},[t9]:{exposure:"event"},[ne]:{exposure:"hidden"},[nt]:{exposure:"event"},[nn]:{exposure:"event"},[nr]:{exposure:"event"},[ni]:{exposure:"hidden"},[ns]:{exposure:"event"},[na]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[nf]:{exposure:"hidden"},[nh]:{exposure:"event"},[no]:{exposure:"event",shouldSkipFromEventProperties:e=>et(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[np]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!K(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t["$feature/"+n[r]]=e[n[r]];return t}},[ng]:{exposure:"event",storageGroup:"flags"},[nv]:{exposure:"hidden"},[nm]:{exposure:"hidden",storageGroup:"flags"},[n_]:{exposure:"event",storageGroup:"flags"},[ny]:{exposure:"event",storageGroup:"flags",volatile:!0},[nb]:{exposure:"event"},[nw]:{exposure:"hidden"},[nS]:{exposure:"hidden"},[nk]:{exposure:"hidden"},[nx]:{exposure:"hidden",storageGroup:"surveys"},[nE]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[nP]:{exposure:"event"},[nC]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[nT]:{exposure:"hidden"},[nO]:{exposure:"hidden"},[nF]:{exposure:"hidden"},[nN]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[nR]:{exposure:"hidden"},[nL]:{exposure:"hidden"},[nI]:{exposure:"hidden"},[nM]:{exposure:"hidden"},[nA]:{exposure:"hidden"},[nD]:{exposure:"hidden"},[nz]:{exposure:"hidden"},[nl]:{exposure:"event"},[nu]:{exposure:"event"},[nc]:{exposure:"event"},[nd]:{exposure:"event"},[nU]:{exposure:"event"},[nB]:{exposure:"event"},[nH]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},ia=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],io=e=>{var t=is[e];if(t)return t;for(var[n,r]of ia)if(0===e.indexOf(n))return r},il=e=>{var t=null==o?void 0:o.createElement("a");return J(t)?null:(t.href=e,t)},iu=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;r.length>i;i++){var s=r[i].split("=");if(s[0]===t){n=s;break}}if(!Q(n)||2>n.length)return"";var a=n[1];try{a=decodeURIComponent(a)}catch(e){tJ.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},ic=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),i=r[1],s=(r[0]||"").split("?"),a=s[1],o=s[0],l=(a||"").split("&"),u=[],c=0;l.length>c;c++){var d=l[c].split("=");Q(d)&&(t.includes(d[0])?u.push(d[0]+"="+n):u.push(l[c]))}var f=o;return null!=a&&(f+="?"+u.join("&")),null!=i&&(f+="#"+i),f},id=function(e,t){var n=e.match(RegExp(t+"=([^&]*)"));
1return n?n[1]:null},ih=(e,t)=>e>=t&&g(),ip=(e,t,n,r)=>{if(0===e){if(g()){var i=t+1;return i===n&&r(),i}return t}return 0},ig="https?://(.*)",iv=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],im=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...iv],i_="<masked>",iy=["li_fat_id"];function ib(e,t,n){if(!o)return{};var r,i=t?[...iv,...n||[]]:[],s=iw(ic(o.URL,i,i_),e);return n4((r={},n3(iy,function(e){var t=rp.A(e);r[e]=t||null}),r),s)}function iw(e,t){var n=im.concat(t||[]),r={};return n3(n,function(t){var n=iu(e,t);r[t]=n||null}),r}function iS(e){var t=e?0===e.search(ig+"google.([^/?]*)")?"google":0===e.search(ig+"bing.com")?"bing":0===e.search(ig+"yahoo.com")?"yahoo":0===e.search(ig+"duckduckgo.com")?"duckduckgo":null:null,n={};if(!et(t)){n.$search_engine=t;var r=o?iu(o.referrer,"yahoo"!=t?"q":"p"):"";r.length&&(n.ph_keyword=r)}return n}function ik(){return navigator.language||navigator.userLanguage}var ix="$direct";function iE(){return(null==o?void 0:o.referrer)||ix}function iP(e,t,n){void 0===n&&(n=!1);var r=e?[...iv,...t||[]]:[],i=n?tc(null==l?void 0:l.href):null==l?void 0:l.href,s=null==i?void 0:i.substring(0,1e3);return{r:iE().substring(0,1e3),u:s?ic(s,r,i_):void 0}}function iC(e,t){void 0===t&&(t=!1);var n,{r:r,u:i}=e,s=t?tc(i):i,a={$referrer:r,$referring_domain:null==r?void 0:r==ix?ix:null==(n=il(r))?void 0:n.host};
1if(s){a.$current_url=s;var o=il(s);a.$host=null==o?void 0:o.host,a.$pathname=null==o?void 0:o.pathname,n4(a,iw(s))}return r&&n4(a,iS(r)),a}function iT(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var iO={flags:nN,surveys:nE},iF=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],iN="main";class iR{constructor(e,t,n){if(void 0===n&&(n=!0),this.Gt={},this.Zt=!1,this.Qt=!1,this.Se=e,this.Jt=n,this.props={},this.Kt=!1,this.Yt=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.Dt=this.Xt(e),this.Qt=this.er(e),this.load(),e.debug&&tJ.info("Persistence loaded",e.persistence,b({},this.props)),this.update_config(e,e,t),this.save(),i){var r=()=>this.flush();re(i,"beforeunload",r,{capture:!1}),re(i,"pagehide",r,{capture:!1})}}tr(){var e,t=null==(e=this.Se)?void 0:e.persistence_save_debounce_ms;return er(t)&&t>0?t:0}isDisabled(){return!!this.rr}Xt(e){-1===iF.indexOf(e.persistence.toLowerCase())&&(tJ.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,n,r,s,a=(t=e.cookie_persisted_properties||[],n=e.__preview_cookie_wins_on_conflict||!1,void 0===t&&(t=[]),void 0===n&&(n=!1),r=[...rm,...t],b({},rv,{F(e){try{var t={};try{t=rp.F(e)||{}}catch(e){}var r,i=JSON.parse(rv.A(e)||"{}");if(n){var s={};for(var a in t){var o=t[a];et(o)||""===o||(s[a]=o)}r=n4(i,s)}else r=n4(t,i);return rv.q(e,r),r}catch(e){}return null},q(e,t,n,i,s,a){var o=rv.q(e,t,void 0,void 0,a);try{var l={};r.forEach(e=>{t[e]&&(l[e]=t[e])}),Object.keys(l).length&&rp.q(e,l,n,i,s,a)}catch(e){rv.D(e)}return o},P(e,t){try{null==i||i.localStorage.removeItem(e),rp.P(e,t)}catch(e){rv.D(e)}}})),o=!1,l=e.persistence.toLowerCase();return"localstorage"===l&&rv.N()?(s=rv,o=!0):"localstorage+cookie"===l&&a.N()?(s=a,o=!0):"sessionstorage"===l&&rw.N()?s=rw:"memory"===l?s=ry:"cookie"===l?s=rp:a.N()?(s=a,o=!0):s=rp,this.Zt=o,s}ir(e){return this.Yt+"__"+e}er(e){return this.Zt&&!!e.split_storage}nr(e){var t=null!=e?e:this.Se.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var n=this.props[nN];return!n||"number"!=typeof n||Date.now()-n>t}properties(){var e={};return n3(this.props,(t,n)=>{var r=io(n);if("derived"===(null==r?void 0:r.exposure)){if(null!=r.shouldSkipFromEventProperties&&r.shouldSkipFromEventProperties(t,n===np?()=>this.nr():()=>!1))return;r.transformToEventProperties&&n4(e,r.transformToEventProperties(t))}else if(!r||"event"===r.exposure){if(null!=r&&null!=r.shouldSkipFromEventProperties&&r.shouldSkipFromEventProperties(t,()=>!1))return;e[n]=t}}),e}load(){if(!this.rr){var e=this.Dt.F(this.Yt);e&&(this.props=n4({},e)),this.Qt&&this.sr()}}sr(){for(var e of ii){var t=rv.F(this.ir(e));if(t&&!X(t)){var n=this.ar(e);n.persisted=!0,this.lr(e)||(n.fingerprint=this.ur(t,e)),this.hr(e,t)||n4(this.props,t)}}}lr(e){return Object.keys(this.props).some(t=>{var n;return(null==(n=io(t))?void 0:n.storageGroup)===e})}hr(e,t){var n=iO[e];if(!n)return!1;var r=t[n],i=this.props[n];return er(r)&&er(i)&&i>r}refreshKey(e){var t;if(!this.rr){var n=this.Qt?null==(t=io(e))?void 0:t.storageGroup:void 0,r=n?rv.F(this.ir(n)):this.Dt.F(this.Yt);if(r&&e in r)this.dr(e,r[e]);else{if(n){var i=this.Dt.F(this.Yt);if(i&&e in i)return void this.dr(e,i[e])}this.cr(e)}}}save(){if(!this.rr){var e=this.tr();e>0?J(this.vr)&&(this.vr=setTimeout(()=>{this.vr=void 0,this.pr()},e)):this.pr()}}flush(){J(this.vr)||(clearTimeout(this.vr),this.vr=void 0,this.pr())}pr(){this.rr||(this.Qt?this.gr():this.mr(this.Dt,this.Yt,this.props,iN))}gr(){var{main:e,groups:t}=this.yr();for(var n of(this.mr(this.Dt,this.Yt,e,iN),ii)){var r,i=t[n];(!X(i)||null!=(r=this.Gt[n])&&r.persisted)&&this.mr(rv,this.ir(n),i,n)}}yr(){var e={},t={};for(var n of ii)t[n]={};return n3(this.props,(n,r)=>{var i,s=null==(i=io(r))?void 0:i.storageGroup;s?t[s][r]=n:e[r]=n}),{main:e,groups:t}}ur(e,t){if(t===iN)return JSON.stringify(e)+"|"+this.br+"|"+this._r+"|"+this.wr;var n={};return n3(e,(e,t)=>{var r;n[t]=null!=(r=io(t))&&r.volatile?"__volatile__":e}),JSON.stringify(n)}mr(e,t,n,r){var i,s=this.ar(r);if(r===iN||s.dirty||J(s.fingerprint)){try{if((i=this.ur(n,r))===s.fingerprint)return void(s.dirty=!1)}catch(e){i=void 0}e.q(t,n,this.br,this._r,this.wr,this.Se.debug)?(s.dirty=!1,r!==iN&&(s.persisted=!0),J(i)||(s.fingerprint=i)):this.Se.debug&&tJ.warn('failed to persist storage entry "'+t+'"; will retry on next save')}}remove(e){var{keepGroupEntries:t=!1}=void 0===e?{}:e;if(J(this.vr)||(clearTimeout(this.vr),this.vr=void 0),this.Dt.P(this.Yt,!1),this.Dt.P(this.Yt,!0),!t&&this.Jt)for(var n of ii)rv.P(this.ir(n));
1t?delete this.Gt[iN]:this.Gt={}}clear(){this.remove(),this.props={}}register_once(e,t,n){if(K(e)){J(t)&&(t="None"),this.br=J(n)?this.kr:n;var r=!1;if(n3(e,(e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.dr(n,e),r=!0)}),r)return this.save(),!0}return!1}register(e,t){if(K(e)){this.br=J(t)?this.kr:t;var n=!1;if(n3(e,(t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.dr(r,t),n=!0)}),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.cr(e),this.save())}update_campaign_params(){if(!this.Kt){var e=ib(this.Se.custom_campaign_params,this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties);X(n7(e))||this.register(e),this.Kt=!0}}update_search_keyword(){var e;this.register((e=null==o?void 0:o.referrer)?iS(e):{})}update_referrer_info(){var e;this.register_once({$referrer:iE(),$referring_domain:null!=o&&o.referrer&&(null==(e=il(o.referrer))?void 0:e.host)||ix},void 0)}set_initial_person_info(){this.props[nM]||this.props[nA]||this.register_once({[nD]:iP(this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties,this.Se.disable_capture_url_hashes)},void 0)}get_initial_props(){var e,t,n,r={};n3([nA,nM],e=>{var t=this.props[e];t&&n3(t,function(e,t){r["$initial_"+V(t)]=e})});var i=this.props[nD];return i&&n4(r,(void 0===(e=this.Se.disable_capture_url_hashes)&&(e=!1),t=iC(i,e),n={},n3(t,function(e,t){n["$initial_"+V(t)]=e}),n)),r}safe_merge(e){return n3(this.props,function(t,n){n in e||(e[n]=t)}),e}update_config(e,t,n){this.kr=this.br=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var r=e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>e===r[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),i=r?this.Xt(e):this.Dt,s=this.er(e);if(r||s!==this.Qt){var a=this.props;this.clear(),this.Dt=i,this.Qt=s,this.props=a,this.save()}}set_disabled(e){this.rr=e,this.rr?this.remove():this.save()}set_cross_subdomain(e){e!==this._r&&(this._r=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.wr&&(this.wr=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){var n=this.props[t8]||{};n[e]=t,this.dr(t8,n),this.save()}remove_event_timer(e){var t=this.props[t8]||{},n=t[e];return J(n)||(delete t[e],this.dr(t8,t),this.save()),n}get_property(e){return this.props[e]}set_property(e,t){this.dr(e,t),this.save()}dr(e,t){var n;this.props[e]=t,null!=(n=io(e))&&n.volatile||this.Sr(e)}cr(e){delete this.props[e],this.Sr(e)}Sr(e){var t,n=null==(t=io(e))?void 0:t.storageGroup;n&&(this.ar(n).dirty=!0)}ar(e){return this.Gt[e]||(this.Gt[e]={})}}var iL="events",iI="cancelEvents",iM="survey shown",iA="survey dismissed",iD="survey sent",iz="popover",i$=tZ("[RateLimiter]");class ij{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{i$.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void i$.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,n,r,{captureEventsBurstLimit:i,captureEventsPerSecond:s}=this,a=(new Date).getTime(),o=null!=(t=null==(n=this.instance.persistence)?void 0:n.get_property(nI))?t:{tokens:i,last:a};o.tokens+=(a-o.last)/1e3*s,o.last=a,o.tokens>i&&(o.tokens=i);var l=1>o.tokens;return l||e||(o.tokens=Math.max(0,o.tokens-1)),!l||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+s+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,null==(r=this.instance.persistence)||r.set_property(nI,o),{isRateLimited:l,remainingTokens:o.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var iU=tZ("[RemoteConfig]");class iB{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=p._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Cr(e){var t,n;null!=(t=p.__PosthogExtensions__)&&t.loadExternalDependency?null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}Ir(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return iU.info("Using preloaded remote config",this.remoteConfig),this.Tr(this.remoteConfig),void this.Mr();if(this._instance.Er())return void iU.warn("Remote config is disabled. Falling back to local config.");this.Cr(e=>{e?(this.Tr(e),this.Mr()):(iU.info("No config found after loading remote JS config. Falling back to JSON."),this.Ir(e=>{this.Tr(e),this.Mr()}))})}catch(e){iU.error("Error loading remote config",e)}}stop(){this.Pr&&(clearInterval(this.Pr),this.Pr=void 0)}
vendor: 4,042 bytes, line 1
1refresh(){!this._instance.Er()&&o&&"hidden"!==o.visibilityState&&this._instance.reloadFeatureFlags()}Mr(){var e;if(!this.Pr){var t=null!=(e=this._instance.config.remote_config_refresh_interval_ms)?e:3e5;0!==t&&(this.Pr=setInterval(()=>{this.refresh()},t))}}Tr(e){var t;e||iU.error("Failed to fetch remote config from PostHog."),this._instance.Tr(null!=e?e:{}),!1!==(null==e?void 0:e.hasFeatureFlags)&&(this._instance.config.advanced_disable_feature_flags_on_first_load||null==(t=this._instance.featureFlags)||t.ensureFlagsLoaded())}}var iH="gzip-js",iV="base64",iq=Uint8Array,iW=Uint16Array,iG=Uint32Array,iQ=new iq([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),iY=new iq([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),iK=new iq([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),iX=function(e,t){for(var n=new iW(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var i=new iG(n[30]);for(r=1;30>r;++r)for(var s=n[r];n[r+1]>s;++s)i[s]=s-n[r]<<5|r;return[n,i]},iJ=iX(iQ,2),iZ=iJ[1];iJ[0][28]=258,iZ[258]=28;for(var i0=iX(iY,0)[1],i1=new iW(32768),i2=0;32768>i2;++i2){var i3=(43690&i2)>>>1|(21845&i2)<<1;i1[i2]=((65280&(i3=(61680&(i3=(52428&i3)>>>2|(13107&i3)<<2))>>>4|(3855&i3)<<4))>>>8|(255&i3)<<8)>>>1}var i4=function(e,t,n){for(var r=e.length,i=0,s=new iW(t);r>i;++i)++s[e[i]-1];var a,o=new iW(t);for(i=0;t>i;++i)o[i]=o[i-1]+s[i-1]<<1;if(n){a=new iW(1<<t);var l=15-t;for(i=0;r>i;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=o[e[i]-1]++<<c,f=d|(1<<c)-1;f>=d;++d)a[i1[d]>>>l]=u}else for(a=new iW(r),i=0;r>i;++i)a[i]=i1[o[e[i]-1]++]>>>15-e[i];return a},i5=new iq(288);for(i2=0;144>i2;++i2)i5[i2]=8;for(i2=144;256>i2;++i2)i5[i2]=9;for(i2=256;280>i2;++i2)i5[i2]=7;for(i2=280;288>i2;++i2)i5[i2]=8;var i8=new iq(32);for(i2=0;32>i2;++i2)i8[i2]=5;var i6=i4(i5,9,0),i7=i4(i8,5,0),i9=function(e){return(e/8|0)+(7&e&&1)},se=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof iW?iW:e instanceof iG?iG:iq)(n-t);return r.set(e.subarray(t,n)),r},st=function(e,t,n){var r=t/8|0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},sn=function(e,t,n){var r=t/8|0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},sr=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return[new iq(0),0];if(1==i){var a=new iq(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var o=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=i-1;)o=n[n[d].f>n[u].f?u++:d++],l=n[u!=c&&n[d].f>n[u].f?u++:d++],n[c++]={s:-1,f:o.f+l.f,l:o,r:l};var f=s[0].s;for(r=1;i>r;++r)s[r].s>f&&(f=s[r].s);var h=new iW(f+1),p=si(n[c-1],h,0);if(p>t){r=0;var g=0,v=p-t,m=1<<v;for(s.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});i>r;++r){var _=s[r].s;if(t>=h[_])break;g+=m-(1<<p-h[_]),h[_]=t}for(g>>>=v;g>0;){var y=s[r].s;t>h[y]?g-=1<<t-h[y]++-1:++r}for(;r>=0&&g;--r){var b=s[r].s;h[b]==t&&(--h[b],++g)}p=t}return[new iq(h),p]},si=function(e,t,n){return -1==e.s?Math.max(si(e.l,t,n+1),si(e.r,t,n+1)):t[e.s]=n},ss=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new iW(++t),r=0,i=e[0],s=1,a=function(e){n[r++]=e},o=1;t>=o;++o)if(e[o]==i&&o!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(i),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(i);s=1,i=e[o]}return[n.subarray(0,r),t]},sa=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},so=function(e,t,n){var r=n.length,i=i9(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;r>s;++s)e[i+s+4]=n[s];return 8*(i+4+r)},sl=function(e,t,n,r,i,s,a,o,l,u,c){st(t,c++,n),++i[256];for(var d=sr(i,15),f=d[0],h=d[1],p=sr(s,15),g=p[0],v=p[1],m=ss(f),_=m[0],y=m[1],b=ss(g),w=b[0],S=b[1],k=new iW(19),x=0;_.length>x;++x)k[31&_[x]]++;for(x=0;w.length>x;++x)k[31&w[x]]++;for(var E=sr(k,7),P=E[0],C=E[1],T=19;T>4&&!P[iK[T-1]];--T);var O,F,N,R,L=u+5<<3,I=sa(i,i5)+sa(s,i8)+a,M=sa(i,f)+sa(s,g)+a+14+3*T+sa(k,P)+(2*k[16]+3*k[17]+7*k[18]);if(I>=L&&M>=L)return so(t,c,e.subarray(l,l+u));if(st(t,c,1+(I>M)),c+=2,I>
1M){O=i4(f,h,0),F=f,N=i4(g,v,0),R=g;var A=i4(P,C,0);for(st(t,c,y-257),st(t,c+5,S-1),st(t,c+10,T-4),c+=14,x=0;T>x;++x)st(t,c+3*x,P[iK[x]]);c+=3*T;for(var D=[_,w],z=0;2>z;++z){var $=D[z];for(x=0;$.length>x;++x)st(t,c,A[j=31&$[x]]),c+=P[j],j>15&&(st(t,c,$[x]>>>5&127),c+=$[x]>>>12)}}else O=i6,F=i5,N=i7,R=i8;for(x=0;o>x;++x)if(r[x]>255){sn(t,c,O[257+(j=r[x]>>>18&31)]),c+=F[j+257],j>7&&(st(t,c,r[x]>>>23&31),c+=iQ[j]);var j,U=31&r[x];sn(t,c,N[U]),c+=R[U],U>3&&(sn(t,c,r[x]>>>5&8191),c+=iY[U])}else sn(t,c,O[r[x]]),c+=F[r[x]];return sn(t,c,O[256]),c+F[256]},su=new iG([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),sc=function(){for(var e=new iG(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&0xedb88320)^n>>>1;e[t]=n}return e}(),sd=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},sf=!!c||!!u,sh="text/plain",sp=!1,sg=(e,t)=>{var[n,r]=e.split("#"),[i,s]=n.split("?");if(!s)return e;var a=s.split("&").filter(e=>e.split("=")[0]!==t).join("&");return i+(a?"?"+a:"")+(r?"#"+r:"")},sv=function(e,t,n){void 0===n&&(n=!0);var r,i,s,a,o,[l,u]=e.split("?"),c=b({},t),d=null!=(o=null==u?void 0:u.split("&").map(e=>{var t,[r,i]=e.split("="),s=n&&null!=(t=c[r])?t:i;return delete c[r],r+"="+s}))?o:[],f=(void 0===r&&(r="&"),a=[],n3(c,function(e,t){J(e)||J(t)||"undefined"===t||(i=encodeURIComponent(e instanceof File?e.name:e.toString()),s=encodeURIComponent(t),a[a.length]=s+"="+i)}),a.join(r));return f&&d.push(f),l+"?"+d.join("&")},sm=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),s_=e=>{if(e.Lt)return e.Lt;var{data:t,compression:n}=e;if(t){if(n===iH){var r,i,s,a,o,l,u,c,d=(r=function(e){var t=e.length;if("u">typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new iq(e.length+(e.length>>>1)),r=0,i=function(e){n[r++]=e},s=0;t>s;++s){if(r+5>n.length){var a=new iq(r+8+(t-s<<1));a.set(n),n=a}var o=e.charCodeAt(s);128>o?i(o):(2048>o?i(192|o>>>6):(o>55295&&57344>o?(i(240|(o=65536+(1047552&o)|1023&e.charCodeAt(++s))>>>18),i(128|o>>>12&63)):i(224|o>>>12),i(128|o>>>6&63)),i(128|63&o))}return se(n,0,r)}(sm(t)),i={mtime:0},s=0xffffffff,a={p(e){for(var t=s,n=0;e.length>n;++n)t=sc[255&t^e[n]]^t>>>8;s=t},d:()=>0xffffffff^s},o=r.length,a.p(r),c=(l=10+(i.filename&&i.filename.length+1||0),u=function(e,t,n,r){var i=e.length,s=new iq(r+i+5*(1+Math.floor(i/7e3))+8),a=s.subarray(r,s.length-8),o=0;if(!t||8>i)for(var l=0;i>=l;l+=65535){var u=l+65535;i>u?o=so(a,o,e.subarray(l,u)):(a[l]=!0,o=so(a,o,e.subarray(l,i)))}else{for(var c=su[t-1],d=c>>>13,f=8191&c,h=(1<<n)-1,p=new iW(32768),g=new iW(h+1),v=Math.ceil(n/3),m=2*v,_=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<m)&h},y=new iG(25e3),b=new iW(288),w=new iW(32),S=0,k=0,x=(l=0,0),E=0,P=0;i>l;++l){var C=_(l),T=32767&l,O=g[C];if(p[T]=O,g[C]=T,l>=E){var F=i-l;if((S>7e3||x>24576)&&F>423){o=sl(e,a,0,y,b,w,k,x,P,l-P,o),x=S=k=0,P=l;for(var N=0;286>N;++N)b[N]=0;for(N=0;30>N;++N)w[N]=0}var R=2,L=0,I=f,M=T-O&32767;if(F>2&&C==_(l-M))for(var A=Math.min(d,F)-1,D=Math.min(32767,l),z=Math.min(258,F);D>=M&&--I&&T!=O;){if(e[l+R]==e[l+R-M]){for(var $=0;z>$&&e[l+$]==e[l+$-M];++$);if($>R){if(R=$,L=M,$>A)break;var j=Math.min(M,$-2),U=0;for(N=0;j>N;++N){var B=l-M+N+32768&32767,H=B-p[B]+32768&32767;H>U&&(U=H,O=B)}}}M+=(T=O)-(O=p[T])+32768&32767}if(L){y[x++]=0x10000000|iZ[R]<<18|i0[L];var V=31&iZ[R],q=31&i0[L];k+=iQ[V]+iY[q],++b[257+V],++w[q],E=l+R,++S}else y[x++]=e[l],++b[e[l]]}}o=sl(e,a,!0,y,b,w,k,x,P,l-P,o)}return se(s,0,r+i9(o)+8)}(r,null==i.level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+i.mem,l)).length,function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:2*(9==t.level),e[9]=3,0!=t.mtime&&sd(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;n.length>=r;++r)e[r+10]=n.charCodeAt(r)}}(u,i),sd(u,c-8,a.d()),sd(u,c-4,o),u);return{contentType:sh,body:d.buffer.slice(d.byteOffset,d.byteOffset+d.byteLength),estimatedSize:d.byteLength}}if(n===iV){let e;var f,h="data="+encodeURIComponent("string"==typeof(e=(f=sm(t))?btoa(encodeURIComponent(f).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))):f)?e:sm(e));return{contentType:"application/x-www-form-urlencoded",body:h,estimatedSize:new Blob([h]).size}}var p=sm(t);return{contentType:"application/json",body:p,estimatedSize:new Blob([p]).size}}},sy=e=>{var t,n,r=()=>({url:sg(e.url,"compression"),encodedBody:s_(b({},e,{compression:void 0,Lt:void 0}))});try{t=s_(e)}catch(t){if(M(e.compression,iu(e.url,"compression")))return tJ.error("Failed to gzip request body, sending uncompressed payload",t),r();throw t}return!(t&&M(e.compression,iu(e.url,"compression")))||((n=t.body)instanceof ArrayBuffer?I(new Uint8Array(n)):ArrayBuffer.isView(n)&&I(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)))?{url:e.url,encodedBody:t}:(sp=!0,r())},sb=e=>{try{return sy(e)}catch(t){return tJ.error(t),void(null==e.callback||e.callback({statusCode:0,error:t}))}},sw=(t=y(function*(e){var t=sm(e.data),n=yield function(e,t,n){return $.apply(this,arguments)}(t,m.DEBUG,{rethrow:!0});if(!n)return e;var r=yield n.arrayBuffer();return b({},e,{Lt:{contentType:sh,body:r,estimatedSize:r.byteLength}})}),function(e){return t.apply(this,arguments)}),sS=["/e/","/s/"],sk=(e,t)=>{var n,r,i,s=(i=(r=(null==(n=il(e))?void 0:n.pathname)||e.split(/[?#]/)[0])?"/"===r[0]?r:"/"+r:"/",sS.some(e=>
1i.slice(i.length-e.length)===e)),a=s?sg(e,"ver"):e;return sv(t===iH?sg(a,"compression"):a,b({_:(new Date).getTime().toString()},s?{}:{ver:m.JS_SDK_VERSION},t===iH?{}:{compression:t}))},sx=[];u&&sx.push({transport:"fetch",method(e){var t,n=sb(e);if(n){var{url:r,encodedBody:i}=n,{contentType:s,body:a,estimatedSize:o}=null!=i?i:{},l=new Headers;n3(e.headers,function(e,t){l.append(t,e)}),s&&l.append("Content-Type",s);var c=null,f=!1;if(d){var h=new d;c={signal:h.signal,timeout:setTimeout(()=>{var t,n;f=!0,h.abort(((n=Error("PostHog request timed out"+((t=e.timeout)?" after "+t+"ms":""))).name="AbortError",n))},e.timeout)}}u(r,b({method:(null==e?void 0:e.method)||"GET",headers:l,keepalive:"POST"===e.method&&52428.8>(o||0),body:a,signal:null==(t=c)?void 0:t.signal},e.fetchOptions)).then(t=>t.text().then(n=>{var r={statusCode:t.status,text:n};if(200===t.status)try{r.json=JSON.parse(n)}catch(e){tJ.error(e)}null==e.callback||e.callback(r)})).catch(t=>{f&&"AbortError"===(null==t?void 0:t.name)?tJ.warn(t):tJ.error(t),null==e.callback||e.callback({statusCode:0,error:t})}).finally(()=>c?clearTimeout(c.timeout):null)}}}),c&&sx.push({transport:"XHR",method(e){var t=sb(e);if(t){var n=new c,{url:r,encodedBody:i}=t;n.open(e.method||"GET",r,!0);var{contentType:s,body:a}=null!=i?i:{};n3(e.headers,function(e,t){n.setRequestHeader(t,e)}),s&&n.setRequestHeader("Content-Type",s),e.timeout&&(n.timeout=e.timeout),n.onreadystatechange=()=>{if(4===n.readyState){var t={statusCode:n.status,text:n.responseText};if(200===n.status)try{t.json=JSON.parse(n.responseText)}catch(e){}null==e.callback||e.callback(t)}},n.send(a)}}}),null!=a&&a.sendBeacon&&sx.push({transport:"sendBeacon",method(e){try{var{url:t,encodedBody:n}=sy(e),{contentType:r,body:i}=null!=n?n:{};if(!i)return;var s=i instanceof Blob?i:new Blob([i],{type:r});a.sendBeacon(t,s)}catch(e){}}});class sE{constructor(e,t){this.Rr=!0,this.Or=[],this.Lr=eh((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,tJ.createLogger("flush interval"),3e3),this.Fr=e}enqueue(e){this.Or.push(e),this.Ar||this.Dr()}unload(){this.$r();var e=Object.values(this.Or.length>0?this.Nr():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.qr(b({},e,{transport:"sendBeacon"}))})}enable(){this.Rr=!1,this.Dr()}Dr(){var e=this;this.Rr||(this.Ar=setTimeout(()=>{if(this.$r(),this.Or.length>0){var t=this.Nr();for(var n in t)!function(){var r=t[n],i=(new Date).getTime();r.data&&Q(r.data)&&n3(r.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.qr(r)}()}},this.Lr))}qr(e){try{this.Fr(e)}catch(e){tJ.error(e)}}$r(){clearTimeout(this.Ar),this.Ar=void 0}Nr(){var e={};return n3(this.Or,t=>{var n,r=(t?t.batchKey:null)||t.url;J(e[r])&&(e[r]=b({},t,{data:[]})),null==(n=e[r].data)||n.push(t.data)}),this.Or=[],e}}var sP=["retriesPerformedSoFar"];class sC{constructor(e){this.Br=!1,this.jr=3e3,this.Or=[],this._instance=e,this.Or=[],this.Hr=!0,!J(i)&&"onLine"in i.navigator&&(this.Hr=i.navigator.onLine,this.Ur=()=>{this.Hr=!0,this.zr()},this.Vr=()=>{this.Hr=!1},re(i,"online",this.Ur),re(i,"offline",this.Vr))}get length(){return this.Or.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=w(e,sP);ei(t)&&(n.url=sv(n.url,{retry_count:t})),this._instance._send_request(b({},n,{callback:e=>{if(200!==e.statusCode&&(400>e.statusCode||e.statusCode>=500)){if((0===e.statusCode?3:10)>(null!=t?t:0))return void this.st(b({retriesPerformedSoFar:t},n));0===e.statusCode&&tJ.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(null!=t?t:0)+" retries.")}null==n.callback||n.callback(e)}}))}st(e){var t,n,r=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=r+1;var i=Math.ceil((n=Math.min(18e5,t=3e3*Math.pow(2,r)))+(Math.random()-.5)*(n-t/2)),s=Date.now()+i;this.Or.push({retryAt:s,requestOptions:e});var a="Enqueued failed request for retry in "+i;navigator.onLine||(a+=" (Browser is offline)"),tJ.warn(a),this.Br||(this.Br=!0,this.Wr())}Wr(){(this.Gr&&clearTimeout(this.Gr),0===this.Or.length)?(this.Br=!1,this.Gr=void 0):this.Gr=setTimeout(()=>{this.Hr&&this.Or.length>0&&this.zr(),this.Wr()},this.jr)}zr(){var e=Date.now(),t=[],n=this.Or.filter(n=>e>n.retryAt||(t.push(n),!1));if(this.Or=t,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.Gr&&(clearTimeout(this.Gr),this.Gr=void 0),this.Br=!1,J(i)||(this.Ur&&(i.removeEventListener("online",this.Ur),this.Ur=void 0),this.Vr&&(i.removeEventListener("offline",this.Vr),this.Vr=void 0)),this.Or))try{this._instance._send_request(b({},e,{transport:"sendBeacon"}))}catch(e){tJ.error(e)}this.Or=[]}}class sT{constructor(e){this.Zr=()=>{this.Qr||(this.Qr={});var e,t,n,r,i=this.scrollElement(),s=this.scrollY(),a=i?Math.max(0,i.scrollHeight-i.clientHeight):0,o=s+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.Qr.lastScrollY=Math.ceil(s),this.Qr.maxScrollY=Math.max(s,null!=(e=this.Qr.maxScrollY)?e:0),this.Qr.maxScrollHeight=Math.max(a,null!=(t=this.Qr.maxScrollHeight)?t:0),this.Qr.lastContentY=o,this.Qr.maxContentY=Math.max(o,null!=(n=this.Qr.maxContentY)?n:0),this.Qr.maxContentHeight=Math.max(l,null!=(r=this.Qr.maxContentHeight)?r:0)},this._instance=e}get Jr(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var e=this.Qr;return setTimeout(this.Zr,0),e}startMeasuringScrollPosition(){re(i,"scroll",this.Zr,{capture:!0}),re(i,"scrollend",this.Zr,{capture:!0}),re(i,"resize",this.Zr)}scrollElement(){if(!this.Jr)return null==i?void 0:i.document.documentElement;for(var e of Q(this.Jr)?this.Jr:[this.Jr]){var t=null==i?void 0:i.document.querySelector(e);
1if(t)return t}}Kr(e){if(this.Jr){var t=this.scrollElement();return t&&t["y"===e?"scrollTop":"scrollLeft"]||0}return i?"y"===e?i.scrollY||i.pageYOffset||i.document.documentElement.scrollTop||0:i.scrollX||i.pageXOffset||i.document.documentElement.scrollLeft||0:0}scrollY(){return this.Kr("y")}scrollX(){return this.Kr("x")}}var sO=e=>iP(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties,null==e?void 0:e.config.disable_capture_url_hashes);class sF{constructor(e,t,n,r){this.Yr=e=>{var t=this.Xr();if(!t||t.sessionId!==e){var n={sessionId:e,props:this.ei(this._instance)};this.ti.register({[nL]:n})}},this._instance=e,this.ri=t,this.ti=n,this.ei=r||sO,this.ri.onSessionId(this.Yr)}Xr(){return this.ti.props[nL]}getSetOnceProps(){var e,t=null==(e=this.Xr())?void 0:e.props;return t?"r"in t?iC(t,this._instance.config.disable_capture_url_hashes):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return n3(n7(this.getSetOnceProps()),(t,n)=>{"$current_url"===n&&(n="url"),e["$session_entry_"+V(n)]=t}),e}}class sN{constructor(){this.ii={}}on(e,t){return this.ii[e]||(this.ii[e]=[]),this.ii[e].push(t),()=>{this.ii[e]=this.ii[e].filter(e=>e!==t)}}emit(e,t){for(var n of this.ii[e]||[])n(t);for(var r of this.ii["*"]||[])r(e,t)}}var sR=tZ("[SessionId]");class sL{on(e,t){return this.ni.on(e,t)}constructor(e,t,n){if(this.si=null,this.oi=[],this.ai=void 0,this.li=!1,this.ni=new sN,this.ui=(e,t)=>!(!ei(e)||!ei(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===nW)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Se=e.config,this.ti=e.persistence,this.hi=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ci=t||rc,this.vi=n||rc;var r,i=this.Se.persistence_name||this.Se.token;if(this._sessionTimeoutMs=1e3*eh(this.Se.session_idle_timeout_seconds||1800,60,36e3,sR.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.fi(),this.pi="ph_"+i+"_window_id",this.gi="ph_"+i+"_primary_window_exists",this.mi()){var s=rw.F(this.pi),a=rw.F(this.gi);s&&!a?this.hi=s:rw.P(this.pi),rw.q(this.gi,!0)}if(null!=(r=this.Se.bootstrap)&&r.sessionID)try{var o=(()=>{var e=this.Se.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw Error("Not a valid UUID");if("7"!==e[12])throw Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.yi(this.Se.bootstrap.sessionID,(new Date).getTime(),o)}catch(e){sR.error("Invalid sessionID in bootstrap",e)}this.bi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return J(this.oi)&&(this.oi=[]),this.oi.push(e),this.di&&e(this.di,this.hi),()=>{this.oi=this.oi.filter(t=>t!==e)}}mi(){return"memory"!==this.Se.persistence&&!this.ti.rr&&rw.N()}wi(e){e!==this.hi&&(this.hi=e,this.mi()&&rw.q(this.pi,e))}xi(){return this.hi?this.hi:this.mi()?rw.F(this.pi):null}ki(e){var t=this.si;return!et(t)&&!et(e)&&5e3>Math.abs(e-t)}yi(e,t,n){var r=t!==this._sessionActivityTimestamp,i=e===this.di&&n===this._sessionStartTimestamp;this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.di=e,i&&!r||i&&this.ki(t)||(this.si=t,this.ti.register({[nf]:[t,e,n]}))}Si(){var e,t=null==(e=this.Se)?void 0:e.persistence_save_debounce_ms;return ei(t)&&t>0}Ci(){this.Si()?this.ti.refreshKey(nf):(this.ti.flush(),this.ti.load())}Ii(){var e;if(!et(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.si){this.Ci();var[,t,n]=this.Ti();t===this.di&&n===this._sessionStartTimestamp&&(this.si=this._sessionActivityTimestamp,this.ti.register({[nf]:[this._sessionActivityTimestamp,null!=(e=this.di)?e:null,this._sessionStartTimestamp]}),this.ti.flush())}}Mi(){var[e]=this.Ti();return Math.max(ei(e)?e:0,ei(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0)}Ei(e){return this.Ci(),this.ui(e,this.Mi())}Ti(){var e=this.ti.props[nf];return Q(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.si=null,clearTimeout(this.Pi),this.Pi=void 0,this.yi(null,null,null)}destroy(){this.li=!0,this.Ii(),clearTimeout(this.Pi),this.Pi=void 0,this.ai&&i&&(i.removeEventListener(nX,this.ai,{capture:!1}),this.ai=void 0),this.oi=[]}bi(){this.ai=()=>{this.Ii(),this.mi()&&rw.P(this.gi)},re(i,nX,this.ai,{capture:!1})}
1checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),this.Se.cookieless_mode===nW)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=t||(new Date).getTime(),[,r,i]=this.Ti(),s=this.Mi(),a=this.xi(),o=ei(i)&&Math.abs(n-i)>864e5,l=!1,u=!1,c=!r,d=r,f=!c&&!e&&this.ui(n,s);f&&((f=this.Ei(n))||sR.info("cross-tab refresh kept the session alive",{sessionId:r}),[,r,i]=this.Ti()),c||f||o?(r=this.ci(),a=this.vi(),sR.info("new session ID generated",{sessionId:r,windowId:a,changeReason:{noSessionId:c,activityTimeout:f,sessionPastMaximumLength:o}}),i=n,l=!0):(a||(a=this.vi(),l=!0),(u=r!==d)&&(sR.info("adopted cross-tab session id",{sessionId:r,windowId:a}),l=!0));var h=ei(s)&&e&&!o?s:n,p=ei(i)?i:(new Date).getTime();this.wi(a),this.yi(r,h,p),e||this.fi();var g={noSessionId:c,activityTimeout:f,sessionPastMaximumLength:o,crossTabAdoption:u};return l&&this.oi.forEach(e=>e(r,a,g)),{sessionId:r,windowId:a,sessionStartTimestamp:p,changeReason:l?g:void 0,lastActivityTimestamp:s}}fi(){this.li||(clearTimeout(this.Pi),this.Pi=setTimeout(()=>{if(!this.li)if(this.Ei((new Date).getTime())){var e=this.di;this.resetSessionId(),this.ni.emit("forcedIdleReset",{idleSessionId:e})}else this.fi()},1.1*this.sessionTimeoutMs))}}var sI=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&U(n,t))return!0;try{var r=null==e?void 0:e.userAgentData;if(null!=r&&r.brands&&r.brands.some(e=>U(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver};function sM(){return(sM=y(function*(){var e=null==a?void 0:a.userAgentData;if(null!=e&&e.getHighEntropyValues)try{var t=yield e.getHighEntropyValues(["model"]),n=null==t?void 0:t.model;return Z(n)&&n.length>0?n:void 0}catch(e){return void tJ.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",e)}})).apply(this,arguments)}var sA=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function sD(e,t,n){return sm({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var sz={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>sA(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!sA(t,e))),icontains:(e,t)=>t.map(s$).some(t=>e.map(s$).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(s$).every(t=>e.map(s$).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var n=parseFloat(t);return!isNaN(n)&&e.some(e=>n>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var n=parseFloat(t);return!isNaN(n)&&e.some(e=>n<parseFloat(e))})},s$=e=>e.toLowerCase();function sj(e,t){return!e||Object.entries(e).every(e=>{var[n,r]=e,i=null==t?void 0:t[n];if(J(i)||et(i))return!1;var s=[String(i)],a=sz[r.operator];return!!a&&a(r.values,s)})}var sU="custom",sB="i.posthog.com",sH=/^\/static\//;class sV{constructor(e){this.Ri={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+sB,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ri[this.apiHost]||(this.Ri[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":sU),this.Ri[this.apiHost]}Oi(e){if(sH.test(e)){var t=this.instance.config.asset_host;if("string"==typeof t)return t.trim().replace(/\/$/,"")||void 0}}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if("assets"===e){var n=this.Oi(t);if(n)return""+n+t}if(this.region===sU)return this.apiHost+t;var r=sB+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var sq=tZ("[Surveys]"),sW="seenSurvey_",sG=e=>{try{var t,n=(t=""+sW+e.id,e.current_iteration&&e.current_iteration>0&&(t=""+sW+e.id+"_"+e.current_iteration),t);
1if(localStorage.getItem(n))return;localStorage.setItem(n,"true")}catch(e){sq.error("Failed to persist survey seen state",e)}},sQ=["popover","widget","api"],sY={ignoreConditions:!1,ignoreDelay:!1,displayType:iz},sK=tZ("[PostHog ExternalIntegrations]"),sX={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class sJ{constructor(e){this._instance=e}Bt(e,t){var n;null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,e,e=>{if(e)return sK.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this,n=function(e){var n,r,s;!i||null!=(n=p.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[e]||t.Bt(sX[e],()=>{var n;null==(n=p.__PosthogExtensions__)||null==(n=n.integrations)||null==(n=n[e])||n.start(t._instance)}),!i&&null!=(r=p.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[e]&&(null==(s=p.__PosthogExtensions__)||null==(s=s.integrations)||null==(s=s[e])||s.stop())};for(var[r,i]of Object.entries(null!=(e=this._instance.config.integrations)?e:{}))n(r)}}var sZ={},s0=0,s1=()=>{},s2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',s3="Surveys module not available",s4="sanitize_properties is deprecated. Use before_send instead",s5="Invalid value for property_denylist config: ",s8="posthog",s6=!sf&&-1===(null==h?void 0:h.indexOf("MSIE"))&&-1===(null==h?void 0:h.indexOf("Mozilla")),s7=e=>{var t;return b({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!Z(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of n9)if(n===r)return!1;return!0}(null==o?void 0:o.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:s1,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:l&&Z(null==l?void 0:l.search)&&-1!==l.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==i||null==(t=i.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){tJ.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:nY,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:s1},{rageclick:e&&e>="2026-05-30"?{content_ignorelist:rj,ignore_text_selection:!0}
1:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:e&&e>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:e&&e>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>="2026-05-30"?250:0,split_storage:!(!e||"2026-05-30">e),detect_google_search_app:!(!e||"2026-05-30">e),disable_capture_url_hashes:!(!e||"2026-06-25">e)})},s9=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],ae=e=>{var t={};for(var[n,r]of s9)J(e[n])||(t[r]=e[n]);var i=n4({},t,e),s=e.__preview_external_dependency_versioned_paths;return J(s)||(J(e.strict_script_versioning)&&(i.strict_script_versioning=!!s),Z(s)&&J(e.asset_host)&&(i.asset_host=s)),Q(e.property_blacklist)&&(J(e.property_denylist)?i.property_denylist=e.property_blacklist:Q(e.property_denylist)?i.property_denylist=[...e.property_blacklist,...e.property_denylist]:tJ.error(s5+e.property_denylist)),i};class at{constructor(){this.__forceAllowLocalhost=!1}get Li(){return this.__forceAllowLocalhost}set Li(e){tJ.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class an{Fi(e,t){if(e){var n=this.Ai.indexOf(e);-1!==n&&this.Ai.splice(n,1)}return this.Ai.push(t),null==t.initialize||t.initialize(),t}Di(){return this.config.cookieless_mode===nW||this.config.cookieless_mode===nq&&this.consent.isRejected()}get decideEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}get flagsEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}constructor(){this.webPerformance=new at,this.$i=!1,this.version=m.LIB_VERSION,this.Ni=new sN,this.Ai=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=s7(),this.SentryIntegration=it,this.sentryIntegration=e=>{var t;return t=ie(this,e),{name:r9,processEvent:e=>t(e)}},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.qi=!1,this.Bi=null,this.ji=null,this.Hi=null,this.scrollManager=new sT(this),this.pageViewManager=new ir(this),this.rateLimiter=new ij(this),this.requestRouter=new sV(this),this.consent=new rS(this),this.externalIntegrations=new sJ(this);var e,t=null!=(e=an.__defaultExtensionClasses)?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.metrics=t.metrics&&new t.metrics(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,n)=>{var r=Z(e)?{[e]:t}:e;this.setPersonProperties(r),null==n||n({})},set_once:(e,t,n)=>{var r=Z(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),null==n||n({})}},this.on("eventCaptured",e=>tJ.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,n){if(n&&n!==s8){var r,i=null!=(r=sZ[n])?r:new an;return i._init(e,t,n),sZ[n]=i,sZ[s8][n]=i,i}return this._init(e,t,n)}_init(e,t,n){void 0===t&&(t={});var r,s,a=Z(e)?e.trim():"";if(!a)return tJ.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Ui(t.debug),this.zi=t,this.Vi=[],t.person_profiles?this.ji=t.person_profiles:t.process_person&&(this.ji=t.process_person);var o=s7(t.defaults),l=ae(t),u=n4({},o,l,{name:n,token:a});K(o.rageclick)&&K(l.rageclick)&&(u.rageclick=n4({},o.rageclick,l.rageclick)),K(o.session_recording)&&K(l.session_recording)&&(u.session_recording=n4({},o.session_recording,l.session_recording)),this.set_config(u),this.config.on_xhr_error&&tJ.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:iH;var c=this.Wi();this.persistence=new iR(this.config,c),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new iR(b({},this.config,{persistence:"sessionStorage"}),c,!1);var d=b({},this.persistence.props),f=b({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Gi=new sE(e=>this.Zi(e),this.config.request_queue_config),this.Qi=new sC(this),this.__request_queue=[];var h=this.Di();if(h||(this.sessionManager=new sL(this),this.sessionPropsManager=new sF(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(tJ.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.Ji(h)},0)):(tJ.info("Initializing extensions synchronously"),this.Ji(h)),m.DEBUG=m.DEBUG||this.config.debug,m.DEBUG&&tJ.info("Starting in debug mode",{this:this,config:t,thisC:b({},this.config),p:d,s:f}),!this.config.identity_distinct_id||null!=(r=t.bootstrap)&&r.distinctID||(t.bootstrap=b({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0}
1)),void 0!==(null==(s=t.bootstrap)?void 0:s.distinctID)){var p=t.bootstrap.distinctID,g=this.get_distinct_id(),v=this.persistence.get_property(nR);if(t.bootstrap.isIdentifiedID&&null!=g&&g!==p&&v===nG)this.identify(p);else if(t.bootstrap.isIdentifiedID&&null!=g&&g!==p&&v===nQ)tJ.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var _=this.config.get_device_id(rc()),y=t.bootstrap.isIdentifiedID?_:p;this.persistence.set_property(nR,t.bootstrap.isIdentifiedID?nQ:nG),this.register({distinct_id:p,$device_id:y})}}if(h)this.register_once({distinct_id:nj,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(rc());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(nR,nG)}return re(i,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var r=n=>{var r=()=>n.anonymousId()||rc();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(nR,nQ)),t()},i=n.user();"then"in i&&Y(i.then)?i.then(r):r(i)}(e,()=>{var r;n.register(("u">typeof Promise&&Promise.resolve||r7.warn("This browser does not have Promise support, and can not use the segment integration"),r=(t,n)=>{if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(r7.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(r7.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var r=e.calculateEventProperties(n,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>r(e,e.event.event),page:e=>r(e,nJ),identify:e=>r(e,n0),screen:e=>r(e,"$screen")})).then(()=>{t()})})}(this,()=>this.Ki()):this.Ki(),Y(this.config._onCapture)&&this.config._onCapture!==s1&&(tJ.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&tJ.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||(function(){return sM.apply(this,arguments)})().then(e=>{e&&this.register({[t4]:e})}).catch(s1),this}Ji(e){var t,n,r,i,s,a,o,l,u=performance.now(),c=b({},an.__defaultExtensionClasses,this.config.__extensionClasses),d=[];c.featureFlags&&this.Ai.push(this.featureFlags=null!=(t=this.featureFlags)?t:new c.featureFlags(this)),c.exceptions&&this.Ai.push(this.exceptions=null!=(n=this.exceptions)?n:new c.exceptions(this)),c.historyAutocapture&&this.Ai.push(this.historyAutocapture=new c.historyAutocapture(this)),c.tracingHeaders&&this.Ai.push(this.tracingHeaders=new c.tracingHeaders(this)),c.siteApps&&this.Ai.push(this.siteApps=new c.siteApps(this)),c.sessionRecording&&!e&&this.Ai.push(this.sessionRecording=new c.sessionRecording(this)),this.config.disable_scroll_properties||d.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),c.autocapture&&this.Ai.push(this.autocapture=new c.autocapture(this)),c.surveys&&this.Ai.push(this.surveys=null!=(r=this.surveys)?r:new c.surveys(this)),c.logs&&this.Ai.push(this.logs=null!=(i=this.logs)?i:new c.logs(this)),c.metrics&&this.Ai.push(this.metrics=null!=(s=this.metrics)?s:new c.metrics(this)),c.conversations&&this.Ai.push(this.conversations=null!=(a=this.conversations)?a:new c.conversations(this)),c.productTours&&this.Ai.push(this.productTours=new c.productTours(this)),c.heatmaps&&this.Ai.push(this.heatmaps=new c.heatmaps(this)),c.webVitalsAutocapture&&this.Ai.push(this.webVitalsAutocapture=new c.webVitalsAutocapture(this)),c.exceptionObserver&&this.Ai.push(this.exceptionObserver=new c.exceptionObserver(this)),c.deadClicksAutocapture&&this.Ai.push(this.deadClicksAutocapture=new c.deadClicksAutocapture(this,r8)),c.toolbar&&this.Ai.push(this.toolbar=null!=(o=this.toolbar)?o:new c.toolbar(this)),c.experiments&&this.Ai.push(this.experiments=null!=(l=this.experiments)?l:new c.experiments(this)),this.Ai.forEac
1h(e=>{e.initialize&&d.push(()=>{null==e.initialize||e.initialize()})}),d.push(()=>{if(this.Yi){var e=this.Yi;this.Yi=void 0,this.Tr(e)}}),this.Xi(d,u)}Xi(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.Xi(e,t)},0);var n=e.shift();if(n)try{n()}catch(e){tJ.error("Error initializing extension:",e)}}var r=Math.round(performance.now()-t);this.register_for_session({[nU]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[nB]:r}),this.config.__preview_deferred_init_extensions&&tJ.info("PostHog extensions initialized ("+r+"ms)")}Tr(e){var t;o&&o.body?(this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.en=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=B(e.supportedCompression,iH)?iH:B(e.supportedCompression,iV)?iV:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.ji?this.ji:nY}),this.Ai.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))):(tJ.info("document not ready yet, trying again in 500 milliseconds..."),setTimeout(()=>{this.Tr(e)},500))}Ki(){try{this.config.loaded(this)}catch(e){tJ.critical("`loaded` function failed",e)}if(this.tn(),this.config.internal_or_test_user_hostname&&null!=l&&l.hostname){var e=l.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.Di())&&this.rn()},1),this.nn=new iB(this),this.nn.load()}tn(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Gi)||e.enable())}_dom_loaded(){this.is_capturing()&&n2(this.__request_queue,e=>this.Zi(e)),this.__request_queue=[],this.tn()}_handle_unload(){var e,t,n,r,i;null==(e=this.surveys)||null==e.handlePageUnload||e.handlePageUnload(),null==(t=this.metrics)||t.flush("sendBeacon"),this.config.request_batching?(this.sn()&&this.capture(nZ),null==(n=this.logs)||n.flushLogs("sendBeacon"),null==(r=this.Gi)||r.unload(),null==(i=this.Qi)||i.unload()):this.sn()&&this.capture(nZ,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded?s6?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=b({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,(J(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,n,r,i=b({},e);i.timeout=i.timeout||6e4,i.url=sk(i.url,i.compression);var s=null!=(t=i.transport)?t:"fetch",a=sx.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),o=null!=(n=null==(r=function(e){for(var t=0;e.length>t;t++)if(e[t].transport===s)return e[t]}(a))?void 0:r.method)?n:a[0].method;if(!o)throw Error("No available transport method");"sendBeacon"!==s&&i.data&&i.compression===iH&&f&&"u">typeof Promise&&!sp?sw(i).then(e=>{o(e)}).catch(t=>{A(t)?(sp=!0,o(b({},i,{compression:void 0,url:sk(e.url,void 0)}))):((e=>{if(!e||"object"!=typeof e)return!1;var t="name"in e?String(e.name):"";return A(e)||t===L})(t)&&(sp=!0),o(i))}):o(i)})(b({},e,{callback:t=>{var n,r;this.rateLimiter.checkForLimiting(t),400>t.statusCode||null==(n=(r=this.config).on_request_error)||n.call(r,t),null==e.callback||e.callback(t)}}))):e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:0}))}Zi(e){this.Qi?this.Qi.retriableRequest(e):this._send_request(e)}_execute_array(e){s0++;try{var t,n=[],r=[],i=[];n2(e,e=>{if(e)if(Q(t=e[0]))i.push(e);else if(Y(e))try{e.call(this)}catch(t){tJ.error("Error executing queued PostHog call",e,t)}else Q(e)&&"alias"===t?n.push(e):Q(e)&&-1!==t.indexOf("capture")&&Y(this[t])?i.push(e):r.push(e)});var s=function(e,t){n2(e,function(e){try{if(Q(e[0])){var n=t;n3(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else t[e[0]].apply(t,e.slice(1))}catch(t){tJ.error("Error executing queued PostHog call",e,t)}})};s(n,this),s(r,this),s(i,this)}finally{s0--}}push(e){if(s0>0&&Q(e)&&Z(e[0])){var t=an.prototype[e[0]];Y(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,n){var r,i,s,a,o;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Gi){if(this.is_capturing())if(!J(e)&&Z(e)){var l=!this.config.opt_out_useragent_filter&&this._is_bot();if(!l||this.config.__preview_capture_bot_pageviews){var u=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==u||!u.isRateLimited){null!=t&&t.$current_url&&!Z(null==t?void 0:t.$current_url)&&(tJ.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),"$exception"!==e||null!=n&&n.an||tJ.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var c=new Date,d=(null==n?void 0:n.timestamp)||c,f=tu(null==n?void 0:n.uuid,rc),h={uuid:f,event:e,properties:this.calculateEventProperties(e,t||{},d,f)};e===nJ&&this.config.__preview_capture_bot_pageviews&&l&&(h.event="$bot_pageview",h.properties.$browser_type="bot"),u&&(h.properties.$lib_rate_limit_remaining_tokens=u.remainingTokens),(null==n?void 0:n.$set)&&(h.$set=null==n?void 0:n.$set);var p=null==n?void 0:n.$unset;p&&(h.$unset=p);var g,v,m,_=this.ln(null==n?void 0:n.$set_once,e!==n1,e===n0);if(_&&(h.$set_once=_),null!=n&&n._noTruncate||(i=this.config.properties_string_max_length,s=h,a=e=>Z(e)?e.slice(0,i):e,o=new Set,h=function e(t,n){var r;return t!==Object(t)?a?a(t):t:o.has(t)?void 0:(o.add(t),Q(t)?(r=[],n2(t,t=>{r.push(e(t))})):(r={},n3(t,(t,n)=>{o.has(t)||(r[n]=e(t,n))})),r)}(s)),h.timestamp=d,J(null==n?void 0:n.timestamp)||(h.properties.$event_time_override_provided=!0,h.properties.$event_time_override_system_time=c),e===iA||e===iD){var y=null==t?void 0:t.$survey_id,w=null==t?void 0:t.$survey_iteration;sG({id:y,current_iteration:w}),h.$set=b({},h.$set,{[(g={id:y,current_iteration:w},m="$survey_"+(v=e===iD?"responded":"dismissed")+"/"+g.id,g.current_iteration&&g.current_iteration>0&&(m="$survey_"+v+"/"+g.id+"/"+g.current_iteration),m)]:!0})}else e===iM&&(h.$set=b({},h.$set,{$survey_last_seen_date:(new Date).toISOString()}));if("product tour shown"===e){var S=null==t?void 0:t.$product_tour_type;S&&(h.$set=b({},h.$set,{["$product_tour_last_seen_date/"+S]:(new Date).toISOString()}))}var k=b({},h.properties.$set,h.$set);if(X(k)||this.setPersonPropertiesForFlags(k),!en(this.config.before_send)){var x=this.it(h);if(!x)return;(h=x).uuid=tu(h.uuid,rc)}this.Ni.emit("eventCaptured",h);var E={method:"POST",url:null!=(r=null==n?void 0:n._url)?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:h,compression:"best-available",batchKey:null==n?void 0:n._batchKey,transport:null==n?void 0:n.transport};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this.Zi(E):this.Gi.enqueue(E),h}tJ.critical("This capture call is ignored due to client rate limiting.")}}else tJ.error("No event name provided to posthog.capture")}else tJ.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}
1calculateEventProperties(e,t,n,r,s){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;var a,u=s?void 0:this.persistence.remove_event_timer(e),c=b({},t);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Di()&&(c.$cookieless_mode=!0),"$snapshot"===e){var d=b({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Z(c.distinct_id)&&!er(c.distinct_id)||ee(c.distinct_id))&&tJ.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var f,p=function(e,t,n,r){if(void 0===r&&(r=!1),!h)return{};var s,a,o,u,c,d,f,p,g,v,_,y,b=e?[...iv,...t||[]]:[],[w,S]=function(e){for(var t=0;ta.length>t;t++){var[n,r]=ta[t],i=n.exec(e),s=i&&(Y(r)?r(i,e):r);if(s)return s}return["",""]}(h),k=null!=(c="u">typeof navigator?navigator:void 0)&&c.brave?{brave:!0}:{},x={detectGoogleSearchApp:n},E=n4(n7({$os:w,$os_version:S,$browser:tr(h,navigator.vendor,k,x),$device:to(h),$device_type:(f={userAgentDataPlatform:null==(s=navigator)||null==(s=s.userAgentData)?void 0:s.platform,maxTouchPoints:null==(a=navigator)?void 0:a.maxTouchPoints,screenWidth:null==i||null==(o=i.screen)?void 0:o.width,screenHeight:null==i||null==(u=i.screen)?void 0:u.height,devicePixelRatio:null==i?void 0:i.devicePixelRatio},(y=to(h))===ey||y===e_||"Kobo"===y||"Kindle Fire"===y||y===eY?em:y===ez||y===ej||y===e$||y===eW?"Console":y===ew?"Wearable":y?eg:"Android"===(null==f?void 0:f.userAgentDataPlatform)&&(null!=(p=null==f?void 0:f.maxTouchPoints)?p:0)>0?600>Math.min(null!=(g=null==f?void 0:f.screenWidth)?g:0,null!=(v=null==f?void 0:f.screenHeight)?v:0)/(null!=(_=null==f?void 0:f.devicePixelRatio)?_:1)?eg:em:"Desktop"),$timezone:iT(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:ic(r?tc(null==l?void 0:l.href):null==l?void 0:l.href,b,i_),$host:null==l?void 0:l.host,$pathname:null==l?void 0:l.pathname,$raw_user_agent:h.length>1e3?h.substring(0,997)+"...":h,$browser_version:ts(h,navigator.vendor,k,x),$browser_language:ik(),$browser_language_prefix:"string"==typeof(d=ik())?d.split("-")[0]:void 0,$screen_height:null==i?void 0:i.screen.height,$screen_width:null==i?void 0:i.screen.width,$viewport_height:null==i?void 0:i.innerHeight,$viewport_width:null==i?void 0:i.innerWidth,$lib:m.LIB_NAME,$lib_version:m.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return m.SDK_DIST_CHANNEL&&(E.$sdk_dist_channel=m.SDK_DIST_CHANNEL),E}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var{sessionId:g,windowId:v}=this.sessionManager.checkAndGetSessionAndWindowId(s,n.getTime());c.$session_id=g,c.$window_id=v}this.sessionPropsManager&&n4(c,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&n4(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=null==(a=this.Qi)?void 0:a.length}catch(e){c.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===sU&&(c.$lib_custom_api_host=this.config.api_host),f=e!==nJ||s?e!==nZ||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),c=n4(c,f),e===nJ&&o&&(c.title=o.title),!J(u)){var _=n.getTime()-u;c.$duration=parseFloat((_/1e3).toFixed(3))}h&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=n4({},p,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Q(this.config.property_denylist)?n3(this.config.property_denylist,function(e){delete c[e]}):tJ.error(s5+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var y=this.config.sanitize_properties;y&&(tJ.error(s4),c=y(c,e));var w=this.un();return c.$process_person_profile=w,w&&!s&&this.hn("_calculate_event_properties"),c}ln(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!1),!this.persistence||!this.un()||this.$i&&!n)return e;var r,i=n4({},this.persistence.get_initial_props(),(null==(r=this.sessionPropsManager)?void 0:r.getSetOnceProps())||{},e||{}),s=this.config.sanitize_properties;return s&&(tJ.error(s4),i=s(i,"$set_once")),t&&(this.$i=!0),X(i)?void 0:i}register(e,t){var n;null==(n=this.persistence)||n.register(e,t)}register_once(e,t,n){var r;null==(r=this.persistence)||r.register_once(e,t,n)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}dn(e,t){this.register({[e]:t})}getFeatureFlag(e,t){var n;return null==(n=this.featureFlags)?void 0:n.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return null==(t=this.featureFlags)?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var n;return null==(n=this.featureFlags)?void 0:n.getFeatureFlagResult(e,t)}getAllFeatureFlags(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.getAllFeatureFlags())?e:[]}isFeatureEnabled(e,t){var n;return null==(n=this.featureFlags)?void 0:n.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;null==(e=this.featureFlags)||e.reloadFeatureFlags()}
1updateFlags(e,t,n){var r;null==(r=this.featureFlags)||r.updateFlags(e,t,n)}updateEarlyAccessFeatureEnrollment(e,t,n){var r;null==(r=this.featureFlags)||r.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){var r;return void 0===t&&(t=!1),null==(r=this.featureFlags)?void 0:r.getEarlyAccessFeatures(e,t,n)}on(e,t){return this.Ni.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:s3}),()=>{})}onSessionId(e){var t,n;return null!=(t=null==(n=this.sessionManager)?void 0:n.onSessionId(e))?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:s3})}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:s3})}renderSurvey(e,t){var n;null==(n=this.surveys)||n.renderSurvey(e,t)}displaySurvey(e,t){var n;void 0===t&&(t=sY),null==(n=this.surveys)||n.displaySurvey(e,t)}cancelPendingSurvey(e){var t;null==(t=this.surveys)||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,n;return null!=(t=null==(n=this.surveys)?void 0:n.canRenderSurvey(e))?t:{visible:!1,disabledReason:s3}}canRenderSurveyAsync(e,t){var n,r;return void 0===t&&(t=!1),null!=(n=null==(r=this.surveys)?void 0:r.canRenderSurveyAsync(e,t))?n:Promise.resolve({visible:!1,disabledReason:s3})}cn(e){return!e||ee(e)?(tJ.critical("Unique user id has not been set in posthog.identify"),!1):e===nj?(tJ.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(tJ.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,t,n){if(!this.__loaded||!this.persistence)return tJ.uninitializedWarning("posthog.identify");if(er(e)&&(e=e.toString(),tJ.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.cn(e)&&this.hn("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:e}),this.get_property(t3)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),e!==r&&e!==this.get_property(t5)&&(this.unregister(t5),this.register({distinct_id:e}));var i,s=(this.persistence.get_property(nR)||nG)===nG;e!==r&&s?(this.persistence.set_property(nR,nQ),this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!1),this.capture(n0,{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.Hi=sD(e,t,n),null==(i=this.featureFlags)||i.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(nT))}}setPersonProperties(e,t){if((e||t)&&this.hn("posthog.setPersonProperties")){var n=sD(this.get_distinct_id(),e,t);this.Hi!==n?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Hi=n):tJ.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var t,n=(Q(e)?e:[e]).filter(e=>Z(e)&&e.length>0);0!==n.length&&this.hn("posthog.unsetPersonProperties")&&(null==(t=this.featureFlags)||t.unsetPersonPropertiesForFlags(n,!0),this.capture("$set",{$unset:n}),this.Hi=null)}group(e,t,n){if(e&&t){var r=this.getGroups(),i=r[e]!==t;if(i&&this.resetGroupPropertiesForFlags(e),this.register({$groups:b({},r,{[e]:t})}),i||n){var s={$group_type:e,$group_key:t};n&&(s.$group_set=n),this.capture(n1,s)}n&&this.setGroupPropertiesForFlags({[e]:n}),i&&!n&&this.reloadFeatureFlags()}else tJ.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var n;void 0===t&&(t=!0),null==(n=this.featureFlags)||n.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(e){var t;void 0===e&&(e=!0),null==(t=this.featureFlags)||t.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,t){var n;void 0===t&&(t=!0),this.hn("posthog.setGroupPropertiesForFlags")&&(null==(n=this.featureFlags)||n.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;null==(t=this.featureFlags)||t.resetGroupPropertiesForFlags(e)}reset(e){if(tJ.info("reset"),!this.__loaded)return tJ.uninitializedWarning("posthog.reset");var t,n,r,i,s,a,o,l,u,c,d,f=this.get_property(t3),h=this.get_property(t4),p=this.get_property(na);if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(n=this.sessionPersistence)||n.clear(),J(p)||null==(d=this.persistence)||d.register({[na]:p}),null==(r=this.surveys)||r.reset(),null==(i=this.nn)||i.stop(),null==(s=this.featureFlags)||s.reset(),null==(a=this.conversations)||a.reset(),null==(o=this.logs)||o.reset(),null==(l=this.metrics)||l.reset(),null==(u=this.persistence)||u.set_property(nR,nG),null==(c=this.sessionManager)||c.resetSessionId(),this.Hi=null,this.config.cookieless_mode===nW)this.register_once({distinct_id:nj,$device_id:null},"");else{var g=this.config.get_device_id(rc());this.register_once({distinct_id:g,$device_id:e?g:f},""),e||J(h)||this.register({[t4]:h})}this.register({$last_posthog_reset:(new Date).toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}shutdown(e){var t=this;return y(function*(){var e,n,r,i,s;t.__loaded?(null==(e=t.logs)||e.flushLogs("sendBeacon"),null==(n=t.metrics)||n.flush("sendBeacon"),null==(r=t.Gi)||r.unload(),null==(i=t.Qi)||i.unload(),null==(s=t.featureFlags)||s.destroy()):tJ.uninitializedWarning("posthog.shutdown")})()}setIdentity(e,t){var n;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),null==(n=this.conversations)||n.vn()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,null==(e=this.conversations)||e.fn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&n){var i,s=null!=(i=e.timestampLookBack)?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor(((new Date).getTime()-n)/1e3)-s,0)}return r}alias(e,t){return e===this.get_property(t2)?(tJ.critical("Attempting to create alias for existing People user - aborting."),-2):this.hn("posthog.alias")?(J(t)&&(t=this.get_distinct_id()),e!==t?(this.dn(t5,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(tJ.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=b({},this.config);if(K(e)){n4(this.config,ae(e));var n,r,i,s,a,o,l,u,c,d,f,h=this.Wi();null==(n=this.persistence)||n.update_config(this.config,t,h),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new iR(b({},this.config,{persistence:"sessionStorage"}),h,!1);var p=this.Ui(this.config.debug);es(p)&&(this.config.debug=p),es(this.config.debug)&&(this.config.debug?(m.DEBUG=!0,rv.N()&&rv.q("ph_debug",!0),tJ.info("set_config",{config:e,oldConfig:t,newConfig:b({},this.config)})):(m.DEBUG=!1,rv.N()&&rv.P("ph_debug"))),null==(r=this.exceptionObserver)||r.onConfigChange(),null==(i=this.exceptions)||i.onConfigChange(),null==(s=this.sessionRecording)||s.startIfEnabledOrStop(),null==(a=this.tracingHeaders)||a.startIfEnabledOrStop(),null==(o=this.autocapture)||o.startIfEnabled(),null==(l=this.heatmaps)||l.startIfEnabled(),null==(u=this.exceptionObserver)||u.startIfEnabledOrStop(),null==(c=this.deadClicksAutocapture)||
1c.startIfEnabledOrStop(),null==(d=this.surveys)||d.loadIfEnabled(),this.pn(),null==(f=this.externalIntegrations)||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){m.LIB_NAME=e,m.LIB_VERSION=t}startSessionRecording(e){var t,n,r,i,s,a=!0===e,o={sampling:a||!(null==e||!e.sampling),linked_flag:a||!(null==e||!e.linked_flag),url_trigger:a||!(null==e||!e.url_trigger),event_trigger:a||!(null==e||!e.event_trigger)};Object.values(o).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),o.sampling&&(null==(n=this.sessionRecording)||n.overrideSampling()),o.linked_flag&&(null==(r=this.sessionRecording)||r.overrideLinkedFlag()),o.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),o.event_trigger&&(null==(s=this.sessionRecording)||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){if(this.exceptions){var n=Error("PostHog syntheticException"),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(b({},r,t))}}addExceptionStep(e,t){var n;null==(n=this.exceptions)||n.addExceptionStep(e,t)}captureLog(e){var t;null==(t=this.logs)||t.captureLog(e)}get logger(){var e,t;return null!=(e=null==(t=this.logs)?void 0:t.logger)?e:an.gn}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,n;return null!=(t=null==(n=this.toolbar)?void 0:n.loadToolbar(e))&&t}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!=(e=this.config.name)?e:s8;return t!==s8&&(t=s8+"."+t),t}_isIdentified(){var e,t;return(null==(e=this.persistence)?void 0:e.get_property(nR))===nQ||(null==(t=this.sessionPersistence)?void 0:t.get_property(nR))===nQ}un(){var e,t;return!("never"===this.config.person_profiles||this.config.person_profiles===nY&&!this._isIdentified()&&X(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[t5])&&(null==(t=this.persistence)||null==(t=t.props)||!t[nz]))}sn(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.un()||this.hn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.hn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}hn(e){return"never"===this.config.person_profiles?(tJ.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.dn(nz,!0),!0)}Wi(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==nq)}pn(){var e,t,n,r,i=this.Wi();return(null==(e=this.persistence)?void 0:e.rr)!==i&&(null==(n=this.persistence)||n.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.rr)!==i&&(null==(r=this.sessionPersistence)||r.set_disabled(i)),i}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==nW){if(this.Di()){this.reset(!0),null==(i=this.sessionManager)||i.destroy(),null==(s=this.pageViewManager)||s.destroy(),this.sessionManager=new sL(this),this.pageViewManager=new ir(this),this.persistence&&(this.sessionPropsManager=new sF(this,this.sessionManager,this.persistence));var n,r,i,s,a,o,l,u,c=null!=(a=null==(o=this.config.__extensionClasses)?void 0:o.sessionRecording)?a:null==(l=an.__defaultExtensionClasses)?void 0:l.sessionRecording;c&&(this.sessionRecording=this.Fi(this.sessionRecording,new c(this)),this.en&&(null==(u=this.sessionRecording)||null==u.onRemoteConfig||u.onRemoteConfig(this.en)))}this.consent.optInOut(!0),this.pn(),this.tn(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),this.config.cookieless_mode==nq&&(null==(n=this.surveys)||n.loadIfEnabled()),(J(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!=(r=null==e?void 0:e.captureEventName)?r:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.rn()}else tJ.warn(s2)}opt_out_capturing(){var e,t,n;this.config.cookieless_mode!==nW?(this.config.cookieless_mode===nq&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.pn(),this.config.cookieless_mode===nq&&(this.register({distinct_id:nj,$device_id:null}),null==(e=this.sessionRecording)||e.stopRecording(),this.sessionRecording=void 0,null==(t=this.sessionManager)||t.destroy(),null==(n=this.pageViewM
1anager)||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.rn(),this.tn())):tJ.warn(s2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return 1===e?"granted":0===e?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===nW||(this.config.cookieless_mode===nq?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.pn()}_is_bot(){return a?sI(a,this.config.custom_blocked_useragents):void 0}rn(){o&&("visible"===o.visibilityState?this.qi||(this.qi=!0,this.capture(nJ,{title:o.title},{send_instantly:!0}),this.Bi&&(o.removeEventListener(nK,this.Bi),this.Bi=null)):this.Bi||(this.Bi=this.rn.bind(this),re(o,nK,this.Bi)))}debug(e){!1===e?(null==i||i.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==i||i.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Er(){var e,t,n,r,i=this.zi||{};return"advanced_disable_flags"in i?!!i.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(tJ.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(t="advanced_disable_decide",n=(e="advanced_disable_flags")in i&&!en(i[e]),r=t in i&&!en(i[t]),n?i[e]:!!r&&(tJ&&tJ.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),i[t]))}it(e){if(en(this.config.before_send))return e;var t,n=Object.keys(null!=(t=e.properties)?t:{}).filter(eo),r=Q(this.config.before_send)?this.config.before_send:[this.config.before_send],i=e;for(var s of r){if(en(i=s(i))){var a="Event '"+e.event+"' was rejected in beforeSend function";return ea(e.event)?tJ.warn(a+". This can cause unexpected behavior."):tJ.info(a),null}i.properties&&!X(i.properties)||tJ.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}for(var o of n)if(i.properties&&en(i.properties[o]))return tJ.warn("Event '"+e.event+"' had its '"+o+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return i}getPageViewId(){var e;return null==(e=this.pageViewManager.Ut)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}Ui(e){var t=es(e)&&!e,n=rv.N()&&"true"===rv.A("ph_debug");return!t&&(!!n||e)}}an.__defaultExtensionClasses={},an.gn={trace:n=()=>{},debug:n,info:n,warn:n,error:n,fatal:n},function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=n6(e.prototype[t[n]])}(an,["identify"]);class ar{constructor(e){this.disabled=!1===e;var t=K(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:e,y:t,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}var ai="$copy_autocapture",as=tZ("[AutoCapture]");function aa(e,t){return t.length>e?t.slice(0,e)+"...":t}var ao=tZ("[ExceptionAutocapture]"),al=()=>{},au=tZ("[TracingHeaders]"),ac=tZ("[Web Vitals]"),ad="disabled",af="lazy_loading",ah="awaiting_config",ap="missing_config";tZ("[SessionRecording]"),tZ("[SessionRecording]");var ag="[SessionRecording]",av=tZ(ag),am=tZ("[Heatmaps]");function a_(e){return K(e)&&"clientX"in e&&"clientY"in e&&er(e.clientX)&&er(e.clientY)}var ay=tZ("[Product Tours]"),ab=e=>{var t;return!e.config.disable_product_tours&&!(null==(t=e.persistence)||!t.get_property(ni))},aw=["$set_once","$set"],aS=tZ("[SiteApps]"),ak="Error while initializing PostHog app with config id ";
vendor: 3,544 bytes, line 1
1function ax(e,t,n){if(en(e))return!1;switch(n){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class aE{constructor(e){this.mn=new sN,this.yn=(e,t)=>this.bn(e,t)&&this._n(e,t)&&this.wn(e,t)&&this.xn(e,t),this.bn=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.kn=new Set,this.Sn=new Set}init(){var e,t;J(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,n;if(!J(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,n;null==(t=this.Sn)||t.add(e),null==(n=e.steps)||n.forEach(e=>{var t;null==(t=this.kn)||t.add((null==e?void 0:e.event)||"")})}),null!=(n=this._instance)&&n.autocapture)){var r,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(r=this._instance)||r.autocapture.setElementSelectors(i)}}on(e,t){var n;null!=t&&0!=e.length&&(this.kn.has(e)||this.kn.has(null==t?void 0:t.event))&&this.Sn&&(null==(n=this.Sn)?void 0:n.size)>0&&this.Sn.forEach(e=>{this.Cn(t,e)&&this.mn.emit("actionCaptured",e.name)})}In(e){this.onAction("actionCaptured",t=>e(t))}Cn(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var n of t.steps)if(this.yn(e,n))return!0;return!1}onAction(e,t){return this.mn.on(e,t)}_n(e,t){if(null!=t&&t.url){var n,r=null==e||null==(n=e.properties)?void 0:n.$current_url;if(!r||"string"!=typeof r||!ax(r,t.url,t.url_matching||"contains"))return!1}return!0}wn(e,t){return!!this.Tn(e,t)&&!!this.Mn(e,t)&&!!this.En(e,t)}Tn(e,t){if(null==t||!t.href)return!0;var n=this.Pn(e);if(n.length>0)return n.some(e=>ax(e.href,t.href,t.href_matching||"exact"));var r,i,s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!s&&ax((i=s.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}Mn(e,t){if(null==t||!t.text)return!0;var n=this.Pn(e);if(n.length>0)return n.some(e=>ax(e.text,t.text,t.text_matching||"exact")||ax(e.$el_text,t.text,t.text_matching||"exact"));var r,i,s,a,o=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!o&&(i=function(e){for(var t,n=[],r=/(?::|")text="(.*?)"/g;!en(t=r.exec(e));)n.includes(t[1])||n.push(t[1]);return n}(o),s=t.text,a=t.text_matching||"exact",i.some(e=>ax(e,s,a)))}En(e,t){if(null==t||!t.selector)return!0;var n,r,i=null==e||null==(n=e.properties)?void 0:n.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";if(t.selector_regex&&s)try{return new RegExp(t.selector_regex).test(s)}catch(e){}return!1}Pn(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}xn(e,t){return null==t||!t.properties||0===t.properties.length||sj(t.properties.reduce((e,t)=>{var n=Q(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:n,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class aP{constructor(e){this.Rn=[],this._instance=e,this.On=new Map,this.Ln=new Map,this.Fn=new Map}An(e,t){return!!e&&sj(e.propertyFilters,null==t?void 0:t.properties)}Dn(e,t){var n=new Map;return e.forEach(e=>{var r;null==(r=e.conditions)||null==(r=r[t])||null==(r=r.values)||r.forEach(t=>{if(null!=t&&t.name){var r=n.get(t.name)||[];r.push(e.id),n.set(t.name,r)}})}),n}
1$n(e,t,n){var r=(n===iL?this.On:this.Ln).get(e),i=[];return this.Nn(e=>{i=e.filter(e=>null==r?void 0:r.includes(e.id))}),i.filter(r=>{var i,s=null==(i=r.conditions)||null==(i=i[n])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.An(s,t)})}register(e){var t;J(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.qn(e),this.Bn(e))}Bn(e){var t=e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0});0!==t.length&&(null==this.jn&&(this.jn=new aE(this._instance),this.jn.init(),this.jn.In(e=>{this.onAction(e)})),t.forEach(e=>{var t,n,r,i,s;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(n=e.conditions)&&null!=(n=n.actions)&&n.values&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0&&(null==(i=this.jn)||i.register(e.conditions.actions.values),null==(s=e.conditions)||null==(s=s.actions)||null==(s=s.values)||s.forEach(t=>{if(t&&t.name){var n=this.Fn.get(t.name);n&&n.push(e.id),this.Fn.set(t.name,n||[e.id])}}))}))}qn(e){var t,n=e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.events)&&(null==(n=e.conditions)||null==(n=n.events)||null==(n=n.values)?void 0:n.length)>0}),r=e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(n=e.conditions)||null==(n=n.cancelEvents)||null==(n=n.values)?void 0:n.length)>0});0===n.length&&0===r.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.On=this.Dn(e,iL),this.Ln=this.Dn(e,iI))}onEvent(e,t){var n,r,i=this.Hn(),s=(null==t||null==(n=t.properties)?void 0:n.$survey_id)||(null==t||null==(r=t.properties)?void 0:r.$product_tour_id);if(s&&this.getActivatedIds().includes(s)){var a=this.Un(e,s);if("consume"===a)return i.info("event consumed activated item, removing it",{event:e,itemId:s}),void this.zn([s]);if("persist"===a)return i.info("shown item promoted to persisted activation",{event:e,itemId:s}),void this.Vn(s)}if(this.Ln.has(e)){var o=this.$n(e,t,iI);o.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:o.map(e=>e.id)}),this.zn(o.map(e=>e.id)),o.forEach(e=>this.Wn(e.id)))}if(this.On.has(e)){i.info("event name matched",{event:e,eventPayload:t,items:this.On.get(e)});var l=this.$n(e,t,iL);this.Gn(l.map(e=>e.id))}}onAction(e){this.Fn.has(e)&&this.Gn(this.Fn.get(e)||[])}Gn(e){0!==e.length&&(this.Rn=[...new Set([...this.Rn,...e])],this.Hn().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Vn(e){this.Rn=this.Rn.filter(t=>t!==e);var t=this.Zn();t.includes(e)||this.Qn([...t,e])}zn(e){var t=new Set(e);this.Rn=this.Rn.filter(e=>!t.has(e));var n=this.Zn(),r=n.filter(e=>!t.has(e));r.length!==n.length&&this.Qn(r)}Zn(){var e,t=this.Jn();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getActivatedIds(){return[...new Set([...this.Zn(),...this.Rn])].filter(e=>!this.Kn(e))}reset(){this.Rn=[],this.Zn().length>0&&this.Qn([])}getEventToItemsMap(){return this.On}Yn(){return this.jn}}class aC extends aP{constructor(e){super(e)}Jn(){return nP}Xn(){return iM}Nn(e){var t;null==(t=this._instance)||t.getSurveys(e)}Wn(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}Hn(){return sq}Qn(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[nP]:e})}Kn(){return!1}Un(e,t){var n,r,i,s,a,o;return this.Nn(e=>{o=e.find(e=>e.id===t)}),!o||(a=(null!=(r=null==(i=(n=o).conditions)||null==(i=i.events)||null==(i=i.values)?void 0:i.length)?r:0)>0,"always"===n.schedule||null!=(s=n.conditions)&&null!=(s=s.events)&&s.repeatedActivation&&a)?e===iM?"consume":"ignore":e===iM?"persist":e===iA||e===iD?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var aT="SDK is not enabled or survey functionality is not yet loaded",aO="Disabled. Not loading surveys.",aF=null!=i&&i.location?id(i.location.hash,"__posthog")||id(location.hash,"state"):null,aN="_postHogToolbarParams",aR=tZ("[Toolbar]"),aL=tZ("[FeatureFlags]"),aI=tZ("[FeatureFlags]",{debugEnabled:!0}),aM="\" failed. Feature flags didn't load in time.",aA=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},aD=e=>{var t={};for(var[n,r]of n5(e||{}))r&&(t[n]=r);return t},az=tZ("[Error tracking]"),a$="Refusing to render web experiment since the viewer is a likely bot",aj={icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>-1===t.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>sA(t,e),not_regex:(e,t)=>!sA(t,e),exact:(e,t)=>
1t===e,is_not:(e,t)=>t!==e};class aU{get Se(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{aU.es("retrieved web experiments from the server"),t.ts=new Map,e.forEach(e=>{if(e.feature_flag_key){t.ts&&(aU.es("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(n=t.ts)||n.set(e.feature_flag_key,e));var n,r=t._instance.getFeatureFlag(e.feature_flag_key);Z(r)&&e.variants[r]&&t.rs(e.name,r,e.variants[r].transforms)}else if(e.variants)for(var i in e.variants){var s=e.variants[i];aU.ns(s,t._instance)&&t.rs(e.name,i,s.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}initialize(){}onFeatureFlags(e){if(this._is_bot())aU.es(a$);else if(!this.Se.disable_web_experiments){if(en(this.ts))return this.ts=new Map,this.loadIfEnabled(),void this.previewWebExperiment();aU.es("applying feature flags",e),e.forEach(e=>{var t;if(this.ts&&null!=(t=this.ts)&&t.has(e)){var n,r=this._instance.getFeatureFlag(e),i=null==(n=this.ts)?void 0:n.get(e);r&&null!=i&&i.variants[r]&&this.rs(i.name,r,i.variants[r].transforms)}})}}previewWebExperiment(){var e=aU.getWindowLocation();if(null!=e&&e.search){var t=iu(null==e?void 0:e.search,"__experiment_id"),n=iu(null==e?void 0:e.search,"__experiment_variant");t&&n&&(aU.es("previewing web experiments "+t+" && "+n),this.getWebExperiments(e=>{this.ss(parseInt(t),n,e)},!1,!0))}}loadIfEnabled(){this.Se.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this.Se.disable_web_experiments&&!n)return e([]);var r=this._instance.get_property("$web_experiments");if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Se.token),method:"GET",callback:t=>e(200===t.statusCode&&t.json&&t.json.experiments||[])})}ss(e,t,n){var r=n.filter(t=>t.id===e);r&&r.length>0&&(aU.es("Previewing web experiment ["+r[0].name+"] with variant ["+t+"]"),this.rs(r[0].name,t,r[0].variants[t].transforms))}static ns(e,t){return!en(e.conditions)&&aU.os(e,t)&&aU.ls(e)}static os(e,t){if(en(e.conditions)||en(null==(r=e.conditions)?void 0:r.url))return!0;var n=aU.getWindowLocation();if(n){var r,i,s,a,o=rk(t,n.href);return null==(i=e.conditions)||!i.url||aj[null!=(s=null==(a=e.conditions)?void 0:a.urlMatchType)?s:"icontains"](e.conditions.url,o)}return!1}
1static getWindowLocation(){return null==i?void 0:i.location}static ls(e){if(en(e.conditions)||en(null==(n=e.conditions)?void 0:n.utm))return!0;var t=ib();if(t.utm_source){var n,r,i,s,a,o,l,u,c,d=null==(r=e.conditions)||null==(r=r.utm)||!r.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==t.utm_campaign,f=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_source||(null==(a=e.conditions)||null==(a=a.utm)?void 0:a.utm_source)==t.utm_source,h=null==(o=e.conditions)||null==(o=o.utm)||!o.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==t.utm_medium,p=null==(u=e.conditions)||null==(u=u.utm)||!u.utm_term||(null==(c=e.conditions)||null==(c=c.utm)?void 0:c.utm_term)==t.utm_term;return d&&h&&p&&f}return!1}static es(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];tJ.info("[WebExperiments] "+e,n)}rs(e,t,n){this._is_bot()?aU.es(a$):"control"!==t?n.forEach(n=>{if(n.selector){aU.es("applying transform of variant "+t+" for experiment "+e+" ",n);var r,i=null==(r=document)?void 0:r.querySelectorAll(n.selector);null==i||i.forEach(e=>{n.html&&(e.innerHTML=n.html),n.css&&e.setAttribute("style",n.css)})}}):aU.es("Control variants leave the page unmodified.")}_is_bot(){return a&&this._instance?sI(a,this.Se.custom_blocked_useragents):void 0}}var aB=tZ("[Conversations]"),aH="Conversations not available yet.",aV="console",aq={featureFlags:class{constructor(e){this.us=!1,this.hs=!1,this.ds=!1,this.cs=!1,this.vs=!1,this.fs=!1,this.ps=!1,this.gs=!1,this.ys=0,this.bs=()=>{var e=this._s();this.ys=0,e&&this.reloadFeatureFlags()},this._instance=e,this.featureFlagEventHandlers=[],i&&re(i,"online",this.bs)}destroy(){null==i||i.removeEventListener("online",this.bs)}get Se(){return this._instance.config}get ti(){return this._instance.persistence}ws(e){return this._instance.get_property(e)}xs(){var e,t;return null!=(e=null==(t=this.ti)?void 0:t.nr(this.Se.feature_flag_cache_ttl_ms))&&e}ks(){return!!this.xs()&&(this.gs||this.ds||(this.gs=!0,aL.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Ss(){var e,t=null!=(e=this.Se.evaluation_contexts)?e:this.Se.evaluation_environments;return!this.Se.evaluation_environments||this.Se.evaluation_contexts||this.ps||(aL.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ps=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||aL.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}Cs(){return this.Ss().length>0}Is(){var e=this.Se.flag_keys;if(!J(e)){if(Q(e))return e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||aL.error("Invalid flag key found:",e,"Expected non-empty string"),t});aL.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,{config:n}=this._instance,r=null!=(e=null==(t=n.bootstrap)?void 0:t.featureFlags)?e:{};if(Object.keys(r).length){var i,s,a=null!=(i=null==(s=n.bootstrap)?void 0:s.featureFlagPayloads)?i:{},o=Object.keys(r).filter(e=>!!r[e]).reduce((e,t)=>(e[t]=r[t]||!1,e),{}),l=Object.keys(a).filter(e=>o[e]).reduce((e,t)=>(a[t]&&(e[t]=a[t]),e),{});this.receivedFeatureFlags({featureFlags:o,featureFlagPayloads:l})}}updateFlags(e,t,n){var r,i,s=null!=n&&n.merge&&null!=(r=this.ws(np))?r:{},a=null!=n&&n.merge&&null!=(i=this.ws(n_))?i:{},o=b({},s,e),l=b({},a,t),u={};for(var[c,d]of Object.entries(o))u[c]={key:c,enabled:k(d),variant:x(d),reason:void 0,metadata:J(null==l?void 0:l[c])?void 0:{id:0,version:void 0,description:void 0,payload:l[c]}};this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.hs}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.ws(nm),t=this.ws(nb),n=this.ws(nw);if(!n&&!t)return e||{};var r=n4({},e||{});for(var i of[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])]){var s,a,o=r[i],l=null==t?void 0:t[i],u=J(l)?null!=(s=null==o?void 0:o.enabled)&&s:!!l,c=J(l)?o.variant:"string"==typeof l?l:void 0,d=null==n?void 0:n[i],f=b({},o,{enabled:u,variant:u?null!=c?c:null==o?void 0:o.variant:void 0});u!==(null==o?void 0:o.enabled)&&(f.original_enabled=null==o?void 0:o.enabled),c!==(null==o?void 0:o.variant)&&(f.original_variant=null==o?void 0:o.variant),d&&(f.metadata=b({},null==o?void 0:o.metadata,{payload:d,original_payload:null==o||null==(a=o.metadata)?void 0:a.payload})),r[i]=f}return this.us||(aL.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.us=!0),r}getAllFeatureFlags(){var e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(n=>{var r=e[n];return{key:n,enabled:k(r),variant:x(r),payload:S(t[n])}})}getFlagVariants(){var e=this.ws(np),t=this.ws(nb);if(!t)return e||{};for(var n=n4({},e),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.us||(aL.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.us=!0),n}getFlagPayloads(){var e=this.ws(n_),t=this.ws(nw);if(!t)return e||{};for(var n=n4({},e||{}),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.us||(aL.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.us=!0),n}reloadFeatureFlags(){this.cs||this.Se.advanced_disable_feature_flags||this._s()||this.Ts||(this._instance.Ni.emit("featureFlagsReloading",!0),this.Ts=setTimeout(()=>{this.Ms()},5))}Es(){clearTimeout(this.Ts),this.Ts=void 0}ensureFlagsLoaded(){this.hs||this.ds||this.Ts||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.cs=e}Ms(e){var t;if(this.Es(),!this._instance.Er()&&!this._s())if(this.ds)this.vs=!0;else{var n=this.Se.token,r=this.ws(t3),i={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:b({},(null==(t=this.ti)?void 0:t.get_initial_props())||{},this.ws(nS)||{}),group_properties:this.ws(nk),timezone:iT()};et(r)||J(r)||(i.$device_id=r),(null!=e&&e.disableFlags||this.Se.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.Cs()&&(i.evaluation_contexts=this.Ss());var s=this.Is();J(s)||(i.flag_keys=s);var a=!!this.Se.advanced_only_evaluate_survey_feature_flags,o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Se.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.ds=!0,this._instance._send_request({method:"POST",url:o,data:i,compression:this.Se.disable_compression?void 0:iV,timeout:this.Se.feature_flag_request_timeout_ms,callback:e=>{var t,n,r,s=!0;if(this.Ps(e.statusCode),200===e.statusCode&&(this.vs||(this.$anon_distinct_id=void 0),s=!1),this.ds=!1,!i.disable_flags||this.vs){this.fs=!s;var o=[];e.error?e.error instanceof Error?o.push("AbortError"===e.error.name?"timeout":"connection_error"):o.push("unknown_error"):200!==e.statusCode&&o.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&o.push("errors_while_computing_flags");var l,u=!(null==(n=e.json)||null==(n=n.quotaLimited)||!n.includes("feature_flags"));(u&&o.push("quota_limited"),null==(r=this.ti)||r.register({[nF]:o}),u)?aL.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags(null!=(l=e.json)?l:{},s,{partialResponse:a}),this.vs&&(this.vs=!1,this.Ms()))}}})}}_s(){return ih(this.ys,3)}Ps(e){this.ys=ip(e,this.ys,3,()=>aL.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes."))}getFeatureFlag(e,t){var n;if(void 0===t&&(t={}),!t.fresh||this.fs)if(this.hs||this.getFlags()&&this.getFlags().length>0){if(!this.ks()){var r=this.getFeatureFlagResult(e,t);return null!=(n=null==r?void 0:r.variant)?n:null==r?void 0:r.enabled}}else aL.warn('getFeatureFlag for key "'+e+aM)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.fs)if(this.hs||this.getFlags()&&this.getFlags().length>0){if(!this.ks()){var n=this.getFlagVariants(),r=e in n,i=n[e],s=this.getFlagPayloads()[e],a=String(i),o=this.ws(ny)||void 0,l=this.ws(nN)||void 0,u=this.ws(nT)||{};if(this.Se.advanced_feature_flags_dedup_per_session){var c,d=this._instance.get_session_id(),f=this.ws(nO);d&&d!==f&&(u={},null==(c=this.ti)||c.register({[nT]:u,[nO]:d}))}if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(a))){Q(u[e])?u[e].push(a):u[e]=[a],null==(v=this.ti)||v.register({[nT]:u});var h=this.getFeatureFlagDetails(e),p=[...null!=(m=this.ws(nF))?m:[]];J(i)&&p.push("flag_missing");var g={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:o,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(_=this.Se.bootstrap)||null==(_=_.featureFlags)?void 0:_[e])||null,$feature_flag_bootstrapped_payload:(null==(y=this.Se.bootstrap)||null==(y=y.featureFlagPayloads)?void 0:y[e])||null,$used_bootstrap_value:!this.fs};J(null==h||null==(b=h.metadata)?void 0:b.version)||(g.$feature_flag_version=h.metadata.version);var v,m,_,y,b,w,k,x,E,P,C,T=null!=(w=null==h||null==(k=h.reason)?void 0:k.description)?w:null==h||null==(x=h.reason)?void 0:x.code;T&&(g.$feature_flag_reason=T),null!=h&&null!=(E=h.metadata)&&E.id&&(g.$feature_flag_id=h.metadata.id),J(null==h?void 0:h.original_variant)&&J(null==h?void 0:h.original_enabled)||(g.$feature_flag_original_response=J(h.original_variant)?h.original_enabled:h.original_variant),null!=h&&null!=(P=h.metadata)&&P.original_payload&&(g.$feature_flag_original_payload=null==h||null==(C=h.metadata)?void 0:C.original_payload),p.length&&(g.$feature_flag_error=p.join(",")),this._instance.capture("$feature_flag_called",g)}if(r)return{key:e,enabled:!!i,variant:"string"==typeof i?i:void 0,payload:S(s)}}}else aL.warn('getFeatureFlagResult for key "'+e+aM)}getRemoteConfigPayload(e,t){var n=this.Se.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.Cs()&&(r.evaluation_contexts=this.Ss());var i=this.Is();J(i)||(r.flag_keys=i),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.Se.disable_compression?void 0:iV,timeout:this.Se.feature_flag_request_timeout_ms,callback(n){var r,i=null==(r=n.json)?void 0:r.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),!t.fresh||this.fs){if(this.hs||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return J(n)?void 0:!!n}aL.warn('isFeatureEnabled for key "'+e+aM)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}
1receivedFeatureFlags(e,t,n){if(this.ti){this.hs=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads(),s=this.getFlagsWithDetails();!function(e,t,n,r,i,s){void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i={});var a,o=((a=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(a).map(e=>{var t;return[e,null!=(t=a[e].variant)?t:a[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(a).filter(e=>a[e].enabled).filter(e=>{var t;return null==(t=a[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=a[e].metadata)?void 0:t.payload]}))):e.featureFlags&&aL.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),l=o.flags,u=o.featureFlags,c=o.featureFlagPayloads;if(u){var d=e.requestId,f=e.evaluatedAt;if(Q(u)){aL.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var h={};if(u)for(var p=0;u.length>p;p++)h[u[p]]=!0;t&&t.register({[ng]:u,[np]:h})}else{var g=u,v=c,m=l;if(null!=s&&s.partialResponse)g=b({},n,g),v=b({},r,v),m=b({},i,m);else if(e.errorsWhileComputingFlags)if(l){var _=new Set(Object.keys(l).filter(e=>{var t;return!(null!=(t=l[e])&&t.failed)}));g=b({},n,Object.fromEntries(Object.entries(g).filter(e=>{var[t]=e;return _.has(t)}))),v=b({},r,Object.fromEntries(Object.entries(v||{}).filter(e=>{var[t]=e;return _.has(t)}))),m=b({},i,Object.fromEntries(Object.entries(m||{}).filter(e=>{var[t]=e;return _.has(t)})))}else g=b({},n,g),v=b({},r,v),m=b({},i,m);t&&t.register(b({[ng]:Object.keys(aD(g)),[np]:g||{},[n_]:v||{},[nm]:m||{}},d?{[ny]:d}:{},f?{[nN]:f}:{}))}}}(e,this.ti,r,i,s,n),t||(this.gs=!1),this.Rs(t)}}override(e,t){void 0===t&&(t=!1),aL.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ti)return aL.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this.ti.unregister(nb),this.ti.unregister(nw),this.Rs(),aI.info("All overrides cleared");if(Q(e)){var t,n=aA(e);return this.ti.register({[nb]:n}),this.Rs(),aI.info("Flag overrides set",{flags:e})}if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){if(this.us=!!(null!=(t=e.suppressWarning)&&t),"flags"in e){if(!1===e.flags)this.ti.unregister(nb),aI.info("Flag overrides cleared");else if(e.flags){if(Q(e.flags)){var r=aA(e.flags);this.ti.register({[nb]:r})}else this.ti.register({[nb]:e.flags});aI.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this.ti.unregister(nw),aI.info("Payload overrides cleared")):e.payloads&&(this.ti.register({[nw]:e.payloads}),aI.info("Payload overrides set",{payloads:e.payloads}))),void this.Rs()}if(e&&"object"==typeof e)return this.ti.register({[nb]:e}),this.Rs(),aI.info("Flag overrides set",{flags:e});aL.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.hs){var{flags:t,flagVariants:n}=this.Os();try{e(t,n)}catch(e){aL.error("Error while running feature flags callback",e)}}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this.ws(nv)||[]).find(t=>t.flagKey===e),s={["$feature_enrollment/"+e]:t},a={$feature_flag:e,$feature_enrollment:t,$set:s};i&&(a.$early_access_feature_name=i.name),n&&(a.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(s,!1);var o=b({},this.getFlagVariants(),{[e]:t});null==(r=this.ti)||r.register({[ng]:Object.keys(aD(o)),[np]:o}),this.Rs()}getEarlyAccessFeatures(e,t,n){void 0===t&&(t=!1);var r=this.ws(nv),i=n?"&"+n.map(e=>"stage="+e).join("&"):"";if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Se.token+i),method:"GET",callback:t=>{var n,r;if(t.json){var i=t.json.earlyAccessFeatures;return null==(n=this.ti)||n.unregister(nv),null==(r=this.ti)||r.register({[nv]:i}),e(i)}}})}Os(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,n)=>(e[n]=t[n],e),{})}}Rs(e){var{flags:t,flagVariants:n}=this.Os();
1this.featureFlagEventHandlers.forEach(r=>{try{r(t,n,{errorsLoading:e})}catch(e){aL.error("Error while running feature flags callback",e)}})}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=this.ws(nS)||{},r=(null==e?void 0:e.$set)||(null!=e&&e.$set_once?{}:e),i=null==e?void 0:e.$set_once,s={};if(i)for(var a in i)({}).hasOwnProperty.call(i,a)&&(a in n||(s[a]=i[a]));this._instance.register({[nS]:b({},n,s,r)}),t&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=b({},this.ws(nS)||{});e.forEach(e=>{delete n[e]}),this._instance.register({[nS]:n}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){void 0===e&&(e=!0),this._instance.unregister(nS),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=this.ws(nk)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(t=>{n[t]=b({},n[t],e[t]),delete e[t]}),this._instance.register({[nk]:b({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.ws(nk)||{};this._instance.register({[nk]:b({},t,{[e]:{}})})}else this._instance.unregister(nk)}reset(){this.hs=!1,this.ds=!1,this.cs=!1,this.vs=!1,this.fs=!1,this.$anon_distinct_id=void 0,this.Es(),this.us=!1,this.ys=0}}},aW=b({productTours:class{get ti(){return this._instance.persistence}constructor(e){this.zo=null,this.Vo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if("productTours"in e){var t,n;if(this.ti&&this.ti.register({[ni]:!!e.productTours}),!ab(this._instance))return!this.zo&&en(null==(t=this.ti)?void 0:t.props[nC])||ay.info("product tours disabled; stopping and clearing cached tours"),null==(n=this.zo)||n.stop(),this.zo=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.zo&&ab(this._instance)&&this.Bt(()=>this.Wo())}Bt(e){var t,n;null!=(t=p.__PosthogExtensions__)&&t.generateProductTours?e():null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"product-tours",t=>{t?ay.error("Could not load product tours script",t):e()})}Wo(){var e;!this.zo&&null!=(e=p.__PosthogExtensions__)&&e.generateProductTours&&(this.zo=p.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!Q(this.Vo)||t){var n=this.ti;if(n){var r=n.props[nC];if(Q(r)&&!t)return this.Vo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{if(ab(this._instance)){var r=t.statusCode;if(200!==r||!t.json){var i="Product Tours API could not be loaded, status: "+r;return ay.error(i),void e([],{isLoaded:!1,error:i})}var s=Q(t.json.product_tours)?t.json.product_tours:[];this.Vo=s,n&&n.register({[nC]:s}),e(s,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.Vo,{isLoaded:!0})}getActiveProductTours(e){en(this.zo)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.zo.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.zo)||t.showTourById(e)}previewTour(e){this.zo?this.zo.previewTour(e):this.Bt(()=>{var t;this.Wo(),null==(t=this.zo)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.zo)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.zo)||e.nextStep()}previousStep(){var e;null==(e=this.zo)||e.previousStep()}clearCache(){var e;this.Vo=null,null==(e=this.ti)||e.unregister(nC)}resetTour(e){var t;null==(t=this.zo)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.zo)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.zo)||t.cancelPendingTour(e)}}},aq),aG=b({surveys:class{get Se(){return this._instance.config}constructor(e){this.ua=void 0,this._surveyManager=null,this.ha=!1,this.da=[],this.ca=null,this.va=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Se.disable_surveys){var t=e.surveys;if(en(t))return sq.warn("Flags not loaded yet. Not loading surveys.");var n=Q(t);this.ua=n?t.length>0:t,sq.info("flags response received, isSurveysEnabled: "+this.ua),this.loadIfEnabled()}}reset(){try{var e;null==(e=this._surveyEventReceiver)||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(null!=r&&r.startsWith(sW)||null!=r&&r.startsWith("inProgressSurvey_"))&&t.push(r)}
1t.forEach(e=>localStorage.removeItem(e))}catch(e){}}loadIfEnabled(){if(!this._surveyManager)if(this.ha)sq.info("Already initializing surveys, skipping...");else if(this.Se.disable_surveys)sq.info(aO);else if(this.Se.cookieless_mode&&this._instance.consent.isOptedOut())sq.info("Not loading surveys in cookieless mode without consent.");else{var e=null==p?void 0:p.__PosthogExtensions__;if(e){if(!J(this.ua)||this.Se.advanced_enable_surveys){var t=this.ua||this.Se.advanced_enable_surveys;this.ha=!0;try{var n=e.generateSurveys;if(n)return void this.fa(n,t);var r=e.loadExternalDependency;if(!r)return void this.pa(nV);r(this._instance,"surveys",n=>{n||!e.generateSurveys?this.pa("Could not load surveys script",n):this.fa(e.generateSurveys,t)})}catch(e){throw this.pa("Error initializing surveys",e),e}finally{this.ha=!1}}}else sq.error("PostHog Extensions not found.")}}fa(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new aC(this._instance),sq.info("Surveys loaded successfully"),this.ga({isLoaded:!0})}pa(e,t){sq.error(e,t),this.ga({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.da.push(e),this._surveyManager&&this.ga({isLoaded:!0}),()=>{this.da=this.da.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this.Se.disable_surveys)return sq.info(aO),e([]);var n,r=this._instance.get_property(nx);r&&!t?(e(r,{isLoaded:!0}),this.ma()&&this.getSurveys(()=>{},!0)):"u">typeof Promise&&this.ca?this.ca.then(t=>{var{surveys:n,context:r}=t;return e(n,r)}):("u">typeof Promise&&(this.ca=new Promise(e=>{n=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Se.token),method:"GET",timeout:this.Se.surveys_request_timeout_ms,callback:t=>{this.ca=null;var r=t.statusCode;if(200!==r||!t.json){var i="Surveys API could not be loaded, status: "+r;sq.error(i),this.va=Date.now();var s={isLoaded:!1,error:i};return e([],s),void(null==n||n({surveys:[],context:s}))}this.va=null;var a,o,l=t.json.surveys||[],u=l.filter(e=>{var t,n;return!(!e.start_date||e.end_date)&&(!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)||!(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)||!n.length))});u.length>0&&(null==(o=this._surveyEventReceiver)||o.register(u)),null==(a=this._instance.persistence)||a.register({[nx]:l,[nE]:Date.now()});var c={isLoaded:!0};e(l,c),null==n||n({surveys:l,context:c})}}))}ma(){return this.ya()&&!this.ca&&!this.ba()}ya(){var e=this._instance.get_property(nE);return er(e)&&Date.now()-e>3e5}ba(){return er(this.va)&&3e5>Date.now()-this.va}markSurveyAsSeen(e,t){var n;sG({id:e,current_iteration:null!=(n=null==t?void 0:t.iteration)?n:null});try{localStorage.setItem("lastSeenSurveyDate",(new Date).toISOString())}catch(e){}}ga(e){for(var t of this.da)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){sq.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!en(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);sq.warn("init was not called")}_a(e){var t=null;return this.getSurveys(n=>{var r;t=null!=(r=n.find(t=>t.id===e))?r:null}),t}wa(e){if(en(this._surveyManager))return{eligible:!1,reason:aT};var t="string"==typeof e?this._a(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(en(this._surveyManager))return sq.warn("init was not called"),{visible:!1,disabledReason:aT};var t=this.wa(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return en(this._surveyManager)?(sq.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:aT})):new Promise(n=>{this.getSurveys(t=>{var r,i=null!=(r=t.find(t=>t.id===e))?r:null;if(i){var s=this.wa(i);n({visible:s.eligible,disabledReason:s.reason})}else n({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,n){var r;if(en(this._surveyManager))sq.warn("init was not called");else{var i="string"==typeof e?this._a(e):e;if(null!=i&&i.id)if(sQ.includes(i.type)){var s=null==o?void 0:o.querySelector(t);if(s)return null!=(r=i.appearance)&&r.surveyPopupDelaySeconds?(sq.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;sq.info("Rendering survey "+i.id+" with delay of "+(null==(e=i.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(i,s,n),sq.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,n);sq.warn("Survey element not found")}else sq.warn("Surveys of type "+i.type+" cannot be rendered in the app");else sq.warn("Survey not found")}}displaySurvey(e,t){var n;if(en(this._surveyManager))sq.warn("init was not called");else{var r=this._a(e);if(r){var i=r;if(null!=(n=r.appearance)&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=b({},r,{appearance:b({},r.appearance,{surveyPopupDelaySeconds:0})}
1)),t.displayType!==iz&&t.initialResponses&&sq.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var s=this.canRenderSurvey(r);if(!s.visible)return void sq.warn("Survey is not eligible to be displayed: ",s.disabledReason)}"inline"!==t.displayType?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else sq.warn("Survey not found")}}cancelPendingSurvey(e){en(this._surveyManager)?sq.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||null==e.handlePageUnload||e.handlePageUnload()}}},aq),aQ=b({experiments:aU},aq),aY=b({},aq,{sessionRecording:class{get Se(){return this._instance.config}get ti(){return this._instance.persistence}get started(){var e;return!(null==(e=this.Ls)||!e.isStarted)}get status(){var e,t;return this.Fs===ah||this.Fs===ap?this.Fs:null!=(e=null==(t=this.Ls)?void 0:t.status)?e:this.Fs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Fs=ad,this.As=void 0,this._instance=e,!this._instance.sessionManager)throw av.error("started without valid sessionManager"),Error(ag+" started without valid sessionManager. This is a bug.");if(this.Se.cookieless_mode===nW)throw Error(ag+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Ds(){var e,t=!(null==(e=this._instance.get_property(na))||!e.enabled),n=!this.Se.disable_session_recording,r=this.Se.disable_session_recording||this._instance.consent.isOptedOut();return i&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.Ds||null==(t=this.Ls)||!t.isStarted){var n=!J(Object.assign)&&!J(Array.from);this.Ds&&n?(this.$s(e),av.info("starting")):(this.Fs=ad,this.stopRecording())}}$s(e){var t,n,r;this.Ds&&(this.Fs!==ah&&this.Fs!==ap&&(this.Fs=af),null!=p&&null!=(t=p.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(n=p.__PosthogExtensions__)&&n.initSessionRecording?this.Ns(e):null==(r=p.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,this.qs,t=>{if(t)return av.error("could not load recorder",t);this.Ns(e)}))}stopRecording(){var e,t;null==(e=this.As)||e.call(this),this.As=void 0,null==(t=this.Ls)||t.stop()}Bs(){var e,t;null==(e=this.As)||e.call(this),this.As=void 0,null==(t=this.Ls)||t.discard()}js(){var e,t;null==(e=this.ti)||e.unregister(nh),null==(t=this.ti)||t.unregister(no)}Hs(e,t){if(en(e))return null;var n=er(e)?e:parseFloat(e);return"number"!=typeof n||!Number.isFinite(n)||0>n||n>1?(av.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):n}Us(e){if(this.ti){var t,n,r=this.ti,i=()=>{var t,n=!1===e.sessionRecording?void 0:e.sessionRecording,i=this.Hs(null==(t=this.Se.session_recording)?void 0:t.sampleRate,"session_recording.sampleRate"),s=this.Hs(null==n?void 0:n.sampleRate,"remote config sampleRate"),a=null!=i?i:s;en(a)&&this.js();var o=null==n?void 0:n.minimumDurationMilliseconds;r.register({[na]:b({cache_timestamp:Date.now(),enabled:!!n},n,{networkPayloadCapture:b({capturePerformance:e.capturePerformance},null==n?void 0:n.networkPayloadCapture),canvasRecording:{enabled:null==n?void 0:n.recordCanvas,fps:null==n?void 0:n.canvasFps,quality:null==n?void 0:n.canvasQuality},sampleRate:a,minimumDurationMilliseconds:J(o)?null:o,endpoint:null==n?void 0:n.endpoint,triggerMatchType:null==n?void 0:n.triggerMatchType,masking:null==n?void 0:n.masking,urlTriggers:null==n?void 0:n.urlTriggers,version:null==n?void 0:n.version,triggerGroups:null==n?void 0:n.triggerGroups})})};i(),null==(t=this.As)||t.call(this),this.As=null==(n=this._instance.sessionManager)?void 0:n.onSessionId(i)}}onRemoteConfig(e){return"sessionRecording"in e?!1===e.sessionRecording?(this.Us(e),void this.Bs()):(this.Us(e),void this.startIfEnabledOrStop()):(this.Fs===ah&&(this.Fs=ap,av.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var n;void 0===t&&(t="log"),null!=(n=this.Ls)&&n.log?this.Ls.log(e,t):av.warn("log called before recorder was ready")}get qs(){var e,t,n=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(na);return(null==n||null==(t=n.scriptConfig)?void 0:t.script)||"lazy-recorder"}zs(){var e,t,n=this._instance.get_property(na);if(!n)return!1;try{t="object"==typeof n?n:JSON.parse(n)}catch(e){return av.warn("persisted remote config for session recording is invali
1d and will be ignored",e),!1}var r=null!=(e=t.cache_timestamp)?e:Date.now();return 36e5>=Date.now()-r}Ns(e){var t,n;if(null==(t=p.__PosthogExtensions__)||!t.initSessionRecording)return av.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[nH]:!0});if(this.Ls||(this.Ls=null==(n=p.__PosthogExtensions__)?void 0:n.initSessionRecording(this._instance),this.Ls._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.zs()){if(this.Fs===ap||this.Fs===ah)return;return this.Fs=ah,av.info("persisted remote config is stale, requesting fresh config before starting"),void new iB(this._instance).load()}this.Fs=af,this.Ls.start(e)}onRRwebEmit(e){var t;null==(t=this.Ls)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Ls||null==(t=this.ti)||t.register({[nu]:!0}),null==(e=this.Ls)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Ls||null==(t=this.ti)||t.register({[nl]:!0}),null==(e=this.Ls)||e.overrideSampling()}overrideTrigger(e){var t,n;this.Ls||null==(n=this.ti)||n.register({["url"===e?nc:nd]:!0}),null==(t=this.Ls)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Ls)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!(null==(n=this.Ls)||!n.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.Vs=!1,this.Ws=null,this.Gs=!1,this.instance=e,this.rageclicks=new ar(e.config.rageclick),this.Zs=null}initialize(){this.startIfEnabled()}get Se(){var e,t,n=K(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=null==(e=n.url_allowlist)?void 0:e.map(e=>new RegExp(e)),n.url_ignorelist=null==(t=n.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),n}Qs(){if(this.isBrowserSupported()){if(i&&o){var e=e=>{e=e||(null==i?void 0:i.event);try{this.Js(e)}catch(e){as.error("Failed to capture event",e)}};if(re(o,"submit",e,{capture:!0}),re(o,"change",e,{capture:!0}),re(o,"click",e,{capture:!0}),this.Se.capture_copied_text){var t=e=>{e=e||(null==i?void 0:i.event);try{this.Js(e,ai)}catch(e){as.error("Failed to capture copy/cut event",e)}};re(o,"copy",t,{capture:!0}),re(o,"cut",t,{capture:!0})}}}else as.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Vs&&(this.Qs(),this.Vs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Gs=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[t6]:!!e.autocapture_opt_out}),this.Ws=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Zs=e}getElementSelectors(e){var t,n=[];return null==(t=this.Zs)||t.forEach(t=>{var r=null==o?void 0:o.querySelectorAll(t);null==r||r.forEach(r=>{e===r&&n.push(t)})}),n}get isEnabled(){var e,t,n=null==(e=this.instance.persistence)?void 0:e.props[t6];if(et(this.Ws)&&!es(n)&&!this.instance.Er())return!1;var r=null!=(t=this.Ws)?t:!!n;return!!this.instance.config.autocapture&&!r}Js(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var n,r=rI(e);rC(r)&&(r=r.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&rV(r,this.instance.config.rageclick)&&this.Js(e,"$rageclick");var s=t===ai;
1if(r&&function(e,t,n,r,s,a){if(void 0===n&&(n=void 0),!i||rq(e)||null!=(o=n)&&o.url_allowlist&&!rF(n.url_allowlist,a)||null!=(l=n)&&l.url_ignorelist&&rF(n.url_ignorelist,a))return!1;if(null!=(u=n)&&u.dom_event_allowlist){var o,l,u,c,d,f,h=n.dom_event_allowlist;if(h&&!h.some(e=>t.type===e))return!1}var{parentIsUsefulElement:p,targetElementList:g}=rW(e,r);if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(J(n))return!0;var r,i=function(e){if(n.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var s of e)if(r=i(s))return r.v;return!1}(g,n)||!rA(g,null==(c=n)?void 0:c.css_selector_allowlist)||rA(g,null!=(d=null==(f=n)?void 0:f.css_selector_ignorelist)?d:rz))return!1;try{var v=i.getComputedStyle(e);if(v&&"pointer"===v.getPropertyValue("cursor")&&"click"===t.type)return!0}catch(e){}var m=e.tagName.toLowerCase();switch(m){case"html":return!1;case"form":return(s||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(t.type)>=0;default:return p?(s||["click"]).indexOf(t.type)>=0:(s||["click"]).indexOf(t.type)>=0&&(rM.indexOf(m)>-1||"true"===e.getAttribute("contenteditable"))}}(r,e,this.Se,s,s?["copy","cut"]:void 0,this.instance)){var{props:a,explicitNoCapture:o}=function(e,t){var n,r,{e:s,maskAllElementAttributes:a,maskAllText:o,elementAttributeIgnoreList:l,elementsChainAsString:u,disableCaptureUrlHashes:c}=t;if(!rE(e))return{props:{}};for(var d=[e],f=e;f.parentNode&&!rP(f,"body");)if(rT(f.parentNode))d.push(f.parentNode.host),f=f.parentNode.host;else{if(!rE(f.parentNode))break;d.push(f.parentNode),f=f.parentNode}var h,p=[],g={},v=!1,m=!1;if(n3(d,e=>{var t=rG(e);if(rP(e,"a")){var n=e.getAttribute("href");v=!!(t&&n&&r1(n))&&(c?tc(n):n)}B(rN(e),"ph-no-capture")&&(m=!0),p.push(function(e,t,n,r,i){void 0===i&&(i=!1);var s=e.tagName.toLowerCase(),a={tag_name:s};rM.indexOf(s)>-1&&!n&&(a.$el_text="a"===s.toLowerCase()||"button"===s.toLowerCase()?aa(1024,r2(e)):aa(1024,rL(e)));var o=rN(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),n3(e.attributes,function(n){var s;if((!rQ(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==r||!r.includes(n.name))&&!t&&r1(n.value)&&(!Z(s=n.name)||"_ngcontent"!==s.substring(0,10)&&"_nghost"!==s.substring(0,7))){var o=n.value;"class"===n.name&&(o=rO(o).join(" ")),a["attr__"+n.name]=aa(1024,"href"===n.name&&i?tc(o):o)}});for(var l=1,u=1,c=e;c=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!rE(t))return t}(c);)l++,c.tagName===e.tagName&&u++;return a.nth_child=l,a.nth_of_type=u,a}(e,a,o,l,c)),n4(g,function(e){if(!rG(e))return{};var t={};return n3(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&&r&&r1(r)&&(t[n]=r)}}),t}(e))}),m)return{props:{},explicitNoCapture:m};if(o||(p[0].$el_text=rP(e,"a")||rP(e,"button")?r2(e):rL(e)),v){p[0].attr__href=v;var _,y,w=null==(_=il(v))?void 0:_.host,S=null==i||null==(y=i.location)?void 0:y.host;w&&S&&w!==S&&(h=v)}return{props:n4({$event_type:s.type,$ce_version:1},u?{}:{$elements:p},{$elements_chain:p.map(e=>{var t,n,r,i={text:null==(n=e.$el_text)?void 0:n.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:(t=e.attr__class)?Q(t)?t:rO(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return n5(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,n]=e;return i.attributes[t]=n}),i}).map(e=>{var t,n,r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))r+="."+i.replace(/"/g,"");var s=b({},e.text?{text:e.text}:{},{"nth-child":null!=(t=e.nth_child)?t:0,"nth-of-type":null!=(n=e.nth_of_type)?n:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),a={};return n5(s).sort((e,t)=>{var[n]=e,[r]=t;return n.localeCompare(r)}).forEach(e=>{var[t,n]=e;return a[r3(t.toString())]=r3(n.toString())}),(r+=":")+n5(a).map(e=>{var[t,n]=e;return t+'="'+n+'"'}).join("")}).join(";")},null!=(n=p[0])&&n.$el_text?{$el_text:null==(r=p[0])?void 0:r.$el_text}:{},h&&"click"===s.type?{$external_click_url:h}:{},g)}}(r,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Se.element_attribute_ignorelist,elementsC
1hainAsString:this.Gs,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes});if(o)return!1;var l=this.getElementSelectors(r);if(l&&l.length>0&&(a.$element_selectors=l),t===ai){var u,c=rR(null==i||null==(u=i.getSelection())?void 0:u.toString()),d=e.type||"clipboard";if(!c)return!1;a.$selected_content=c,a.$copy_type=d}return this.instance.capture(t,a),!0}}}isBrowserSupported(){return Y(null==o?void 0:o.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ks=(null==i||null==(t=i.location)?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(tJ.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ys&&this.Ys(),this.Ys=void 0,tJ.info("History API monitoring stopped")}monitorHistoryChanges(){i&&i.history&&(this.Xs("pushState"),this.Xs("replaceState"),this.eo())}Xs(e){var t;if(i&&(null==(t=i.history[e])||!t.__posthog_wrapped__)){var n=this;!function(e,t,n){try{if(!(t in e))return al;var r={next:e[t]},i=n(function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return r.next.apply(this,t)});Y(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:r}})),e[t]=i}catch(e){return al}}(i.history,e,t=>function(r,i,s){t.call(this,r,i,s),n.ro(e)})}}ro(e){try{var t,n=null==i||null==(t=i.location)?void 0:t.pathname;if(!n)return;n!==this.Ks&&this.isEnabled&&this._instance.capture(nJ,{navigation_type:e}),this.Ks=n}catch(t){tJ.error("Error capturing "+e+" pageview",t)}}eo(){if(!this.Ys){var e=()=>{this.ro("popstate")};re(i,"popstate",e),this.Ys=()=>{i&&i.removeEventListener("popstate",e)}}}},heatmaps:class{get Se(){return this.instance.config}constructor(e){var t;this.io=!1,this.Vs=!1,this.no=null,this.instance=e,this.io=!(null==(t=this.instance.persistence)||!t.props[t7]),this.rageclicks=new ar(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return K(this.Se.capture_heatmaps)&&this.Se.capture_heatmaps.flush_interval_milliseconds&&(e=this.Se.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return en(this.Se.capture_heatmaps)?en(this.Se.enable_heatmaps)?this.io:this.Se.enable_heatmaps:!1!==this.Se.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this.Vs||(am.info("starting..."),this.so(),this.ke());else{var e;clearInterval(null!=(e=this.no)?e:void 0),this.oo(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[t7]:t}),this.io=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}ao(e){this.fe(e.originalEvent,"deadclick")}ke(){this.no&&clearInterval(this.no),this.no="visible"===(null==o?void 0:o.visibilityState)?setInterval(this.zr.bind(this),this.flushIntervalMilliseconds):null}so(){i&&o&&(this.lo=this.zr.bind(this),re(i,nX,this.lo),this.uo=e=>this.fe(e||(null==i?void 0:i.event)),re(o,"click",this.uo,{capture:!0}),this.ho=e=>this.do(e||(null==i?void 0:i.event)),re(o,"mousemove",this.ho,{capture:!0}),this.co=new r6(this.instance,r5,this.ao.bind(this)),this.co.startIfEnabledOrStop(),this.vo=this.ke.bind(this),re(o,nK,this.vo),this.Vs=!0)}oo(){var e;i&&o&&(this.lo&&i.removeEventListener(nX,this.lo),this.uo&&o.removeEventListener("click",this.uo,{capture:!0}),this.ho&&o.removeEventListener("mousemove",this.ho,{capture:!0}),this.vo&&o.removeEventListener(nK,this.vo),clearTimeout(this.fo),null==(e=this.co)||e.stop(),this.Vs=!1)}po(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),a=function(e,t,n){for(var r=e;r&&rE(r)&&!rP(r,"body")&&r!==n;){var s,a,o,l=void 0;try{l=null==(s=null!=(a=null==(o=r.ownerDocument)?void 0:o.defaultView)?a:i)?void 0:s.getComputedStyle(r).position}catch(e){break}if(B(t,l))return!0;r=rD(r)}return!1}(rI(e),["fixed","sticky"],s);return{x:e.clientX+(a?0:r),y:e.clientY+(a?0:n),target_fixed:a,type:t}}fe(e,t){var n;if(void 0===t&&(t="click"),!rx(e.target)&&a_(e)){var r=this.po(e,t);null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&rV(rI(e),this.instance.config.rageclick)&&this.kt(b({},r,{type:"rageclick"})),this.kt(r)}}do(e){!rx(e.target)&&a_(e)&&(clearTimeout(this.fo),this.fo=setTimeout(()=>{this.kt(this.po(e,"mousemove"))},500))}kt(e){if(i){var t=this.Se.disable_capture_url_hashes?tc(i.location.href):i.location.href,n=this.Se.custom_personal_data_properties,r=ic(t,this.Se.mask_personal_data_properties?[...iv,...n||[]]:[],i_);this.R=this.R||{},this.R[r]||(this.R[r]=[]),this.R[r].push(e)}}zr(){this.R&&!X(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:r6,webVitalsAutocapture:class{constructor(e){var t;this.io=!1,this.Vs=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.mo=()=>{clearTimeout(this.yo),0!==this.R.metrics.length&&(this._instance.capture("$web_vitals",this.R.metrics.reduce((e,t)=>
1b({},e,{["$web_vitals_"+t.name+"_event"]:b({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.bo=e=>{this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var t,n=this._o();if(!J(n))if(en(null==e?void 0:e.name)||en(null==e?void 0:e.value))ac.error("Invalid metric received",e);else if(!this.wo||this.wo>e.value){this.R.url!==n&&(this.mo(),this.yo=setTimeout(this.mo,this.flushToCaptureTimeoutMs)),J(this.R.url)&&(this.R.url=n),this.R.firstMetricTimestamp=J(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0);var r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0),i=b({},e,{$current_url:n,timestamp:Date.now()});J(r)||(i.$session_id=r.sessionId,i.$window_id=r.windowId),this.R.metrics.push(i),this.R.metrics.length===this.allowedMetrics.length&&this.mo()}else ac.error("Ignoring metric with value >= "+this.wo,e)},this.xo=()=>{if(!this.Vs){var e,t,n,r,i=p.__PosthogExtensions__;J(i)||J(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.bo.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.bo.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.bo.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.bo.bind(this)),this.Vs=!0):ac.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.io=!(null==(t=this._instance.persistence)||!t.props[nn]),this.startIfEnabled()}get ko(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,n=K(this.ko)?null==(e=this.ko)?void 0:e.web_vitals_allowed_metrics:void 0;return en(n)?(null==(t=this._instance.persistence)?void 0:t.props[ns])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(K(this.ko)?this.ko.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=K(this.ko)?this.ko.web_vitals_attribution:void 0;return null!=e&&e}get wo(){var e=K(this.ko)&&er(this.ko.__web_vitals_max_value)?this.ko.__web_vitals_max_value:9e5;return e>0&&6e4>=e?9e5:e}get isEnabled(){var e=null==l?void 0:l.protocol;if("http:"!==e&&"https:"!==e)return ac.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=K(this.ko)?this.ko.web_vitals:es(this.ko)?this.ko:void 0;return es(t)?t:this.io}startIfEnabled(){this.isEnabled&&!this.Vs&&(ac.info("enabled, starting..."),this.Bt(this.xo))}onRemoteConfig(e){if("capturePerformance"in e){var t=K(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=K(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[nn]:t}),this._instance.persistence.register({[ns]:n})),this.io=t,this.startIfEnabled()}}Bt(e){var t,n;null!=(t=p.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks?e():null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",t=>{t?ac.error("failed to load script",t):e()})}_o(){var e=i?this._instance.config.disable_capture_url_hashes?tc(i.location.href):i.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties;return ic(e,this._instance.config.mask_personal_data_properties?[...iv,...t||[]]:[],i_)}ac.error("Could not determine current URL")}}},{exceptionObserver:class{constructor(e){var t,n,r;this.xo=()=>{var e;if(i&&this.isEnabled&&null!=(e=p.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=p.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=p.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=p.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.So&&this.Se.capture_unhandled_errors&&(this.So=t(this.captureException.bind(this))),!this.Co&&this.Se.capture_unhandled_rejections&&(this.Co=n(this.captureException.bind(this))),!this.Io&&this.Se.capture_console_errors&&(this.Io=r(this.captureException.bind(this)))}catch(e){ao.error("failed to start",e),this.To()}}},this._instance=e,this.Mo=!(null==(t=this._instance.persistence)||!t.props[t9]),this.Eo=new ep({refillRate:null!=(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)?n:1,bucketSize:null!=(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)?r:10,refillInterval:1e4,Ae:ao}),this.Se=this.Po(),this.startIfEnabledOrStop()}Po(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};
1return K(e)?t=b({},t,e):(J(e)?this.Mo:e)&&(t=b({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Se.capture_console_errors||this.Se.capture_unhandled_errors||this.Se.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(ao.info("enabled"),this.To(),this.Bt(this.xo)):this.To()}Bt(e){var t,n;null!=(t=p.__PosthogExtensions__)&&t.errorWrappingFunctions?e():null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return ao.error("failed to load script",t);e()})}To(){var e,t,n;null==(e=this.So)||e.call(this),this.So=void 0,null==(t=this.Co)||t.call(this),this.Co=void 0,null==(n=this.Io)||n.call(this),this.Io=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.Mo=!!e.autocaptureExceptions,this._instance.persistence&&this._instance.persistence.register({[t9]:this.Mo}),this.Se=this.Po(),this.startIfEnabledOrStop())}onConfigChange(){this.Se=this.Po()}captureException(e){var t,n,r,i=null!=(t=null==e||null==(n=e.$exception_list)||null==(n=n[0])?void 0:n.type)?t:"Exception";this.Eo.consumeRateLimit(i)?ao.info("Skipping exception capture because of client rate limiting.",{exception:i}):null==(r=this._instance.exceptions)||r.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,n;this.Ro=[],this.Oo=new tk([new tI,new tV,new tA,new tM,new tB,new tU,new tz,new tH],function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return function(t,r){void 0===r&&(r=0);for(var i=[],s=t.split("\n"),a=r;s.length>a;a++){var o=s[a];if(1024>=o.length){var l=tL.test(o)?o.replace(tL,"$1"):o;if(!l.match(/\S*Error: /)){for(var u of n){var c=u(l,e);if(c){i.push(c);break}}if(i.length>=50)break}}}if(!i.length)return[];var d=Array.from(i);return d.reverse(),d.slice(0,50).map(e=>b({},e,{filename:e.filename||(d[d.length-1]||{}).filename,function:e.function||"?"}))}}("web:javascript",tO,tR)),this._instance=e,this.Ro=null!=(t=null==(n=this._instance.persistence)?void 0:n.get_property(ne))?t:[],this.Lo=tY(this.Fo()),this.Ao=new tK(this.Lo)}onConfigChange(){this.Lo=tY(this.Fo()),this.Ao.setConfig(this.Lo)}onRemoteConfig(e){var t,n,r;if("errorTracking"in e){var i=null!=(t=null==(n=e.errorTracking)?void 0:n.suppressionRules)?t:[],s=null==(r=e.errorTracking)?void 0:r.captureExtensionExceptions;this.Ro=i,this._instance.persistence&&this._instance.persistence.register({[ne]:this.Ro,[nt]:s})}}get Do(){var e,t=!!this._instance.get_property(nt),n=this._instance.config.error_tracking.captureExtensionExceptions;return null!=(e=null!=n?n:t)&&e}buildProperties(e,t){return this.Oo.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}addExceptionStep(e,t){if(this.Lo.enabled)try{if(!Z(e)||0===e.trim().length)return void az.warn("Ignoring exception step because message must be a non-empty string");var n=this.$o(t),{sanitizedProperties:r,droppedKeys:i}=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce((n,r)=>(tG.has(r)?t.push(r):n[r]=e[r],n),{}),droppedKeys:t}}(n);i.length>0&&az.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.Ao.add(b({[tq]:e,[tW]:(new Date).toISOString()},r))}catch(e){az.error("Failed to add exception step. Ignoring breadcrumb.",e)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.No(t)){if(this.qo(t))return this.Bo("Exception dropped: matched a suppression rule"),void az.info("Skipping exception capture because a suppression rule matched");if(!this.Do&&this.jo(t))return this.Bo("Exception dropped: thrown by a browser extension"),void az.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Ho(t))return this.Bo("Exception dropped: thrown by the PostHog SDK"),void az.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.Lo.enabled&&en(e.$exception_steps)?this.Uo(e):e;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",an:!0});return r&&this.Ao.clear(),r}catch(e){return az.error("Failed to capture exception event. Dropping this exception.",e),void this.Ao.clear()}}catch(e){return void az.error("Failed to process exception event. Ignoring this exception.",e)}}Uo(e){try{var t=this.Ao.getAttachable();return 0===t.length?e:b({},e,{$exception_steps:t})}catch(t){return az.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}Bo(e){this.Lo.enabled&&this.Ao.add({[tq]:e,[tW]:(new Date).toISOString()})}$o(e){return K(e)?b({},e):{}}Fo(){var e,t;return null!=(e=null==(t=this._instance.config.error_tracking)?void 0:t.exception_steps)?e:{}}qo(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>
1{var{type:n,value:r}=t;return Z(n)&&n.length>0&&e.$exception_types.push(n),Z(r)&&r.length>0&&e.$exception_values.push(r),e},{$exception_types:[],$exception_values:[]});return this.Ro.some(e=>{var n=e.values.map(e=>{var n,r=sz[e.operator],i=Q(e.value)?e.value:[e.value],s=null!=(n=t[e.key])?n:[];return i.length>0&&r(i,s)});return"OR"===e.type?n.some(Boolean):n.every(Boolean)})}jo(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.stacktrace)?void 0:n.frames)?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}Ho(e){if(e.length>0){var t,n,r,i,s=null!=(t=null==(n=e[0].stacktrace)?void 0:n.frames)?t:[],a=s[s.length-1];return null!=(r=null==a||null==(i=a.filename)?void 0:i.includes("posthog.com/static"))&&r}return!1}No(e){return!en(e)&&Q(e)}}},aW,{siteApps:class{constructor(e){this.Go=0,this._instance=e,this.Zo=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Qo(e,t){if(t){var n=this.globalsForEvent(t);this.Zo.push(n),this.Zo.length>1e3&&(this.Zo=this.Zo.slice(10))}}get siteAppLoaders(){var e;return null==(e=p._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Qo.bind(this));this.Jo=()=>{e(),this.Zo=[],this.Jo=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,n,r,i,s,a,o,l={},u=this._instance.get_property("$groups")||[];for(var[c,d]of Object.entries(this._instance.get_property("$stored_group_properties")||{}))l[c]={id:u[c],type:c,properties:d};var{$set_once:f,$set:h}=e;return{event:b({},w(e,aw),{properties:b({},e.properties,h?{$set:b({},null!=(t=null==(n=e.properties)?void 0:n.$set)?t:{},h)}:{},f?{$set_once:b({},null!=(r=null==(i=e.properties)?void 0:i.$set_once)?r:{},f)}:{}),elements_chain:null!=(s=null==(a=e.properties)?void 0:a.$elements_chain)?s:"",distinct_id:null==(o=e.properties)?void 0:o.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}Ko(e){var t,n=null==(t=e.tagName)?void 0:t.toLowerCase();return"style"===n&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(aS.error("prepare_external_dependency_stylesheet returned null"),null):"script"===n&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(aS.error("prepare_external_dependency_script returned null"),null):e}Yo(){if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var e,t,n,r,i,s,a,l,u=null==o?void 0:o.defaultView,c=null==u||null==(e=u.Node)?void 0:e.prototype;if(!u||!c)return()=>{};if(this.Go++,this.Xo)return this.ea();var d=[],f=this,h=new WeakSet,p=(e,t,n)=>{if(null!=e&&e[t]){var r=e[t];e[t]=n(r),d.push(()=>{e[t]=r})}},g=e=>{if(h.has(e))return e;var t=f.Ko(e);return t&&h.add(t),t},v=e=>e.map(e=>"string"==typeof e?e:g(e)).filter(e=>!et(e));return p(c,"appendChild",e=>function(t){var n=g(t);return n?e.call(this,n):t}),p(c,"insertBefore",e=>function(t,n){var r=g(t);return r?e.call(this,r,n):t}),p(c,"replaceChild",e=>function(t,n){var r=g(t);return r?e.call(this,r,n):n}),[null==(t=u.Element)?void 0:t.prototype,null==(n=u.Document)?void 0:n.prototype,null==(r=u.DocumentFragment)?void 0:r.prototype].forEach(e=>{p(e,"append",e=>function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,v(n))}),p(e,"prepend",e=>function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,v(n))})}),[null==(i=u.Element)?void 0:i.prototype,null==(s=u.CharacterData)?void 0:s.prototype,null==(a=u.DocumentType)?void 0:a.prototype].forEach(e=>{p(e,"before",e=>function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,v(n))}),p(e,"after",e=>function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,v(n))}),p(e,"replaceWith",e=>function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];var i=v(n);return n.length&&!i.length?void 0:e.apply(this,i)})}),p(null==(l=u.Element)?void 0:l.prototype,"insertAdjacentElement",e=>function(t,n){var r=g(n);return r?e.call(this,t,r):null}),this.Xo=()=>
1{d.forEach(e=>e()),this.Xo=void 0},this.ea()}ea(){var e=!1;return()=>{var t;e||(e=!0,this.Go--,0===this.Go&&(null==(t=this.Xo)||t.call(this)))}}ta(e,t){void 0===t&&(t=!0);var n=this.Yo();try{var r=e(n);return t&&n(),r}catch(e){throw n(),e}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var n;!t.errored&&this.Zo.length&&(aS.info("Processing "+this.Zo.length+" events for site app with id "+e.id),this.Zo.forEach(e=>this.ta(()=>null==t.processEvent?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(n=this.Jo)||n.call(this))},r=!1,i=i=>{t.errored=!i,t.loaded=!0,aS.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),r&&n()};try{var{processEvent:s}=this.ta(t=>e.init({posthog:this._instance,callback(e){t(),i(e)}}),!1);s&&(t.processEvent=s),r=!0}catch(t){aS.error(ak+e.id,t),i(!1)}if(r&&t.loaded)try{n()}catch(n){aS.error("Error while processing buffered events PostHog app with config id "+e.id,n),t.errored=!0}}ra(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}ia(e){var t=this;if(0!==Object.keys(this.apps).length){var n=this.globalsForEvent(e),r=function(r){try{t.ta(()=>null==r.processEvent?void 0:r.processEvent(n))}catch(t){aS.error("Error while processing event "+e.event+" for site app "+r.id,t)}};for(var i of Object.values(this.apps))r(i)}}onRemoteConfig(e){var t,n,r,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.ra(),void this._instance.on("eventCaptured",e=>this.ia(e))):void aS.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(n=this.Jo)||n.call(this),null!=(r=e.siteApps)&&r.length)if(this.isEnabled){var s=function(e){var t;p["__$$ph_site_app_"+e]=i._instance,null==(t=p.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,o,t=>{if(t)return aS.error(ak+e,t)})};for(var{id:a,url:o}of e.siteApps)s(a)}else aS.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},aG,{tracingHeaders:class{constructor(e){this.na=void 0,this.sa=void 0,this.oa=void 0,this.xo=()=>{var e,t,n=this.aa();n?(J(this.na)&&(this.na=null==(e=p.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)?void 0:e._patchXHR(n,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),J(this.sa)&&(this.sa=null==(t=p.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)?void 0:t._patchFetch(n,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.To()},this._instance=e}initialize(){this.startIfEnabledOrStop()}Bt(e){var t,n;null!=(t=p.__PosthogExtensions__)&&t.tracingHeadersPatchFns?e():null==(n=p.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return au.error("failed to load script",t);e()})}la(){var e,t;return null!=(e=null!=(t=this._instance.config.tracing_headers)?t:this._instance.config.addTracingHeaders)?e:this._instance.config.__add_tracing_headers}aa(){var e=this.la();return Q(e)?(Q(this.oa)?this.oa.splice(0,this.oa.length,...e):this.oa=[...e],e.length>0?this.oa:void 0):(Q(this.oa)&&this.oa.splice(0),this.oa=e||void 0,this.oa)}To(){var e,t;null==(e=this.na)||e.call(this),null==(t=this.sa)||t.call(this),this.na=void 0,this.sa=void 0}startIfEnabledOrStop(){this.aa()?this.Bt(this.xo):this.To()}}},{toolbar:class{constructor(e){this.instance=e}xa(e){p.ph_toolbar_state=e}ka(){var e;return null!=(e=p.ph_toolbar_state)?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),rt(this.instance.config)||!i||!o)return!1;e=null!=e?e:i.location,n=null!=n?n:i.history;try{if(!t){try{i.localStorage.setItem("test","test"),i.localStorage.removeItem("test")}catch(e){return!1}t=null==i?void 0:i.localStorage}var r,s=aF||id(e.hash,"__posthog")||id(e.hash,"state"),a=s?n8(()=>JSON.parse(atob(decodeURIComponent(s))))||n8(()=>JSON.parse(decodeURIComponent(s))):null;return a&&"ph_authorize"===a.action?((r=a).source="url",r&&Object.keys(r).length>0&&(a.desiredHash?e.hash=a.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(aN)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch(e){return!1}}Sa(e){var t=p.ph_load_toolbar||p.ph_load_editor;!en(t)&&Y(t)?t(e,this.instance):aR.warn("No toolbar load function found")}loadToolbar(e){var t,n=!(null==o||!o.getElementById(n$));if(!i||n)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,s=b({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});return(i.localStorage.setItem(aN,JSON.stringify(b({},s,{source:void 0}))),2===this.ka())?this.Sa(s):0===this.ka()&&(this.xa(1),null==(t=p.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{e?(aR.error("[Toolbar] Failed to load",e),this.xa(0)):(this.xa(2),this.Sa(s))}),re(i,"turbolinks:load",()=>{this.xa(0),this.loadToolbar(s)})),!0}Ca(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},aQ,{conversations:class{constructor(e){this.Ia=void 0,this._conversationsManager=null,this.Ta=!1,this.Ma=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;en(t)||(es(t)?this.Ia=t:(this.Ia=t.enabled,this.Ma=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.Ia=void 0,this.Ma=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ta||this._instance.config.disable_conversations||rt(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==p?void 0:p.__PosthogExtensions__;if(e&&!J(this.Ia)&&this.Ia)if(this.Ma&&this.Ma.token){this.Ta=!0;try{var t=e.initConversations;if(t)return this.Ea(t),void(this.Ta=!1);var n=e.loadExternalDependency;if(!n)return void this.Pa(nV);n(this._instance,"conversations",t=>{t||!e.initConversations?this.Pa("Could not load conversations script",t):this.Ea(e.initConversations),this.Ta=!1})}catch(e){this.Pa("Error initializing conversations",e),this.Ta=!1}}else aB.error("Conversations enabled but missing token in remote config.")}}Ea(e){if(this.Ma)try{this._conversationsManager=e(this.Ma,this._instance),aB.info("Conversations loaded successfully")}catch(e){this.Pa("Error completing conversations initialization",e)}else aB.error("Cannot complete initialization: remote config is null")}Pa(e,t){aB.error(e,t),this._conversationsManager=null,this.Ta=!1}show(){this._conversationsManager?this._conversationsManager.show():aB.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Ia&&!et(this._conversationsManager)}isVisible(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&e}sendMessage(e,t,n){var r=this;return y(function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(aB.warn(aH),null)})()}getMessages(e,t){var n=this;return y(function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(aB.warn(aH),null)})()}markAsRead(e){var t=this;return y(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(aB.warn(aH),null)})()}getTickets(e){var t=this;return y(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(aB.warn(aH),null)})()}requestRestoreLink(e){var t=this;return y(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(aB.warn(aH),null)})()}restoreFromToken(e){var t=this;return y(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(aB.warn(aH),null)})()}restoreFromUrlToken(){var e=this;return y(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(aB.warn(aH),null)})()}getCurrentTicketId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())?e:null}getWidgetSessionId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())?e:null}vn(){var e;null==(e=this._conversationsManager)||e.setIdentity()}fn(){var e;null==(e=this._conversationsManager)||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.Ra=!1,this.Oa=!1,this.Ae=tZ("[logs]"),this.Or=[],this.La=[],this.ys=0,this.Fa=()=>{var e,t;this.ys=0,null==(e=this.Aa)||e.onReconnect(),null==(t=this.Da)||t.onReconnect()},this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.Ra=!0),i&&re(i,"online",this.Fa)}$a(e,t,n,r){var i,s,a,o,l,u,c,d,f,h,p,g,v,m,_=(i=null==(m=this._instance)||null==(m
1=m.config)?void 0:m.logs,f=null!=(s=null==i?void 0:i.flushIntervalMs)?s:3e3,h=null!=(a=null==i?void 0:i.maxBufferSize)?a:100,g=J(p=null!=n&&n.consoleCapture?void 0:null!=(o=null==i?void 0:i.maxLogsPerInterval)?o:1e3)?Math.max(h,2048):Math.max(h,p),{serviceName:null!=(l=null!=(u=null==(v=null==i?void 0:i.resourceAttributes)?void 0:v["service.name"])?u:null==i?void 0:i.serviceName)?l:null==n?void 0:n.serviceNameDefault,serviceVersion:null!=(c=null==v?void 0:v["service.version"])?c:null==i?void 0:i.serviceVersion,environment:null!=(d=null==v?void 0:v["deployment.environment"])?d:null==i?void 0:i.environment,resourceAttributes:v,beforeSend:null==i?void 0:i.beforeSend,flushIntervalMs:f,maxBufferSize:h,maxQueueSize:g,maxBatchRecordsPerPost:100,rateCapWindowMs:f,maxLogsPerInterval:p,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0});return[new t_(this.Na(e,t),_,this.Ae,()=>this.qa(),e=>e(),void 0,r),_]}Ba(){var e,t,n=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;return this.Aa&&this.ja===n||(null==(t=this.Aa)||t.reset(),this.ja=n,[this.Aa,this.Ha]=this.$a(()=>this.Or,e=>{this.Or=e})),this.Aa}Ua(){var e,t,n=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;return this.Da&&this.za===n||(null==(t=this.Da)||t.reset(),this.za=n,[this.Da,this.Va]=this.$a(()=>this.La,e=>{this.La=e},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},aV)),this.Da}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=null==(t=e.logs)?void 0:t.captureConsoleLogs;!en(n)&&n&&(this.Ra=!0,this.loadIfEnabled())}reset(){var e,t;this.Or=[],null==(e=this.Aa)||e.reset(),this.La=[],null==(t=this.Da)||t.reset(),this.ys=0}captureLog(e){this.Ba().captureLog(e)}le(e){this.Ua().captureLog(e)}get logger(){return this.Wa||(this.Wa={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Wa}flushLogs(e){e?this.Ga(e):(this.Aa&&this.Aa.flush().catch(e=>this.Ae.error("PostHog logs flush failed:",e)),this.Da&&this.Da.flush().catch(e=>this.Ae.error("PostHog logs flush failed:",e)))}loadIfEnabled(){if(this.Ra&&!this.Oa){var e=null==p?void 0:p.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",t=>{var n;t||null==(n=e.logs)||!n.initializeLogs?this.Ae.error("Could not load logs script",t):(e.logs.initializeLogs(this._instance),this.Oa=!0)}):this.Ae.error(nV)}else this.Ae.error("PostHog Extensions not found.")}}Na(e,t){var n=this._instance;return{get isDisabled(){return!1},get optedOut(){return!n.is_capturing()},getPersistedProperty:t=>t===O.LogsQueue?e():void 0,setPersistedProperty(e,n){e===O.LogsQueue&&t(null!=n?n:[])},ht:e=>this.ht(e),getLibraryId:()=>m.LIB_NAME,getLibraryVersion:()=>m.LIB_VERSION}}ht(e){return new Promise(t=>{if(ih(this.ys,3))t({kind:"fatal",error:Error("logs endpoint is unreachable, dropping batch")});else{var n=!1,r=e=>{n||(n=!0,clearTimeout(i),t(e))},i=setTimeout(()=>r({kind:"retry-later",error:Error("logs request timed out")}),9e4);this._instance._send_request({method:"POST",url:this.Za(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:e=>{var t,n=e.statusCode;(this.Qa(n),n>=200&&300>n)?r({kind:"ok"}):413===n?r({kind:"too-large"}):0!==n&&429!==n&&500>n?r({kind:"fatal",error:Error("logs request failed with status "+n)}):r({kind:"retry-later",error:null!=(t=e.error)?t:Error("logs request failed with status "+n)})}})}})}Qa(e){(0!==e||this._instance.__loaded)&&(this.ys=ip(e,this.ys,3,()=>this.Ae.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes.")))}Ga(e){this.Or.length>0&&this.Ja(e,this.Or,this.Ha,m.LIB_NAME,e=>{this.Or=e}),this.La.length>0&&this.Ja(e,this.La,this.Va,aV,e=>{this.La=e})}Ja(e,t,n,r,i){if(0!==t.length){var s=t.map(e=>e.record);i([]);var a=tm(s,tv(n,m.LIB_NAME,m.LIB_VERSION),r,m.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Za(),data:a,compression:"best-available",batchKey:"logs",transport:e})}}Za(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}qa(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n,windowId:r,sessionStartTimestamp:i,lastActivityTimestamp:s}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n,t.windowId=r,en(i)||(t.sessionStartTimestamp=i),en(s)||(t.lastActivityTimestamp=s)}if(null!=p&&null!=(e=p.location)&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?tc(p.location.href):p.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},{metrics:class{constructor(e){this.Ae=tZ("[metrics]"),this._instance=e}initialize(){}Ba(){var e,t,n,r,i,s,a,o,l=null==(e=this._instance)||null==(e=e.config)?void 0:e.metrics;return this.Aa&&this.ja===l||(null==(t=this.Aa)||t.reset(),this.ja=l,this.Aa=new tS(this.Na(),{serviceName:null!=(n=null==(o=null==l?void 0:l.resourceAttributes)?void 0:o["service.name"])?n:null==l?void 0:l.serviceName,serviceVersion:null!=(r=null==o?void 0:o["service.version"])?r:null==l?void 0:l.serviceVersion,environment:null!=(i=null==o?void 0:o["deployment.environment"])?i:null==l?void 0:l.environment,resourceAttributes:o,beforeSend:null==l?void 0:l.beforeSend,flushIntervalMs:null!=(s=null==l?void 0:l.flushIntervalMs)?s:1e4,maxSeriesPerFlush:null!=(a=null==l?void 0:l.maxSeriesPerFlush)?a:1e3},this.Ae)),this.Aa}count(e,t,n){void 0===t&&(t=1),this.Ba().count(e,t,n)}
1gauge(e,t,n){this.Ba().gauge(e,t,n)}histogram(e,t,n){this.Ba().histogram(e,t,n)}flush(e){if(!this.Aa)return Promise.resolve();if(e){var t=this.Aa.drainWindow();return t&&this.Tt(t,e),Promise.resolve()}return this.Aa.flush().catch(e=>this.Ae.error("PostHog metrics flush failed:",e))}reset(){var e;null==(e=this.Aa)||e.reset()}Na(){var e=this._instance,t=this;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},Tt:e=>t.Tt(e),getLibraryId:()=>m.LIB_NAME,getLibraryVersion:()=>m.LIB_VERSION}}Tt(e,t){return new Promise(n=>{var r=!1,i=e=>{r||(r=!0,clearTimeout(s),n(e))},s=setTimeout(()=>i({kind:"retry-later",error:Error("metrics request timed out")}),9e4);this._instance._send_request(b({method:"POST",url:this.Ka(),data:e,compression:"best-available",batchKey:"metrics"},t&&{transport:t},{fireCallbackOnDrop:!0,callback(e){var t,n=e.statusCode;n>=200&&300>n?i({kind:"ok"}):413===n?i({kind:"too-large"}):0!==n&&429!==n&&500>n?i({kind:"fatal",error:Error("metrics request failed with status "+n)}):i({kind:"retry-later",error:null!=(t=e.error)?t:Error("metrics request failed with status "+n)})}}))})}Ka(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}});an.__defaultExtensionClasses=b({},aY),(m.SDK_DIST_CHANNEL="npm",r=sZ[s8]=new an,function(){function e(){e.done||(e.done=!0,s6=!1,n3(sZ,function(e){e._dom_loaded()}))}null!=o&&o.addEventListener?"complete"===o.readyState?e():re(o,"DOMContentLoaded",e,{capture:!1}):i&&tJ.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),r).init("phc_sijYqnytWXmtfVMPhjvm2eP6M7tvkqUDU6CRkVjedvM5",{api_host:"/ingest",ui_host:"https://us.posthog.com",defaults:"2026-05-30"}),e.s([],28401)},44787,(e,t,n)=>{t.exports=[e.r(964227),e.f({"private-next-instrumentation-client-user":{id:()=>28401,module:()=>e.r(28401)}})("private-next-instrumentation-client-user")]},302947,(e,t,n)=>{"use strict";e.i(282693);{let n=e.r(44787);t.exports=Array.isArray(n)?n:[n]}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.