vendor: 18,567 bytes, lines 1-34
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/manage-gradients-CtQVSNNO.js","assets/modal-Cgs1Nd1I.js","assets/dialog-DcJ-fvB2.js","assets/index-DyiPSfTq.js","assets/Separator-CgOA2mi9.js","assets/primitive-DZM6GKIN.js","assets/editor-nXufDKf5.js","assets/use-mesh-drawing-ULWURI5N.js","assets/mesh-svg-D2YsiIe6.js","assets/separator-CGqDfsCX.js","assets/utils.mesh-C0QAlbJC.js","assets/share-ujgtPxHI.js","assets/logo-D9jFZfzi.js","assets/Disclosure-G6BwkRfs.js","assets/discovery-BAx7vHqb.js","assets/useSuspenseQuery-CtD3BG2P.js","assets/route-BOc1nLB2.js","assets/index-QcICeVHI.js","assets/dotted-background-CsQBhKkf.js","assets/grid-cursor-Cy76u7lP.js","assets/share._state-BAlQ1Bwy.js","assets/text-gradient-CPskTrpn.js","assets/call-to-action-Bva3kALX.js","assets/tailwind-gradient-CFN7fKZy.js","assets/resources-C_NsfSGa.js","assets/random-gradient-D7Cx8BPu.js","assets/guide-DjeqR9EN.js","assets/shared-better-gradient-typo-C-_qUkdO.js","assets/gallery-Daq5AZwO.js","assets/index-BL5_qmXf.js","assets/actions.api-key-BSzYtvum.js","assets/index-Ch1KmyLg.js","assets/confirm-DUVmmSf1.js","assets/_slug-CAp1BaSU.js"])))=>i.map(i=>d[i]); 2function V5(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Mq=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zq(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Vg={exports:{}},Ec={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var fS;function G5(){if(fS)return Ec;fS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:s}}return Ec.Fragment=t,Ec.jsx=n,Ec.jsxs=n,Ec}var hS;function Y5(){return hS||(hS=1,Vg.exports=G5()),Vg.exports}var de=Y5(),Gg={exports:{}},Me={};/** 11 * @license React 12 * react.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var pS;function Z5(){if(pS)return Me;pS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=y&&M[y]||M["@@iterator"],typeof M=="function"?M:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function k(M,U,Y){this.props=M,this.context=U,this.refs=T,this.updater=Y||w}k.prototype.isReactComponent={},k.prototype.setState=function(M,U){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,U,"setState")},k.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function $(){}$.prototype=k.prototype;function z(M,U,Y){this.props=M,this.context=U,this.refs=T,this.updater=Y||w}var N=z.prototype=new $;N.constructor=z,S(N,k.prototype),N.isPureReactComponent=!0;var O=Array.isArray;function I(){}var j={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function G(M,U,Y){var ne=Y.ref;return{$$typeof:e,type:M,key:U,ref:ne!==void 0?ne:null,props:Y}}function X(M,U){return G(M.type,U,M.props)}function D(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Z(M){var U={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Y){return U[Y]})}var ce=/\/+/g;function H(M,U){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):U.toString(36)}function ae(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(I,I):(M.status="pending",M.then(function(U){M.status==="pending"&&(M.status="fulfilled",M.value=U)},function(U){M.status==="pending"&&(M.status="rejected",M.reason=U)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function E(M,U,Y,ne,le){var fe=typeof M;(fe==="undefined"||fe==="boolean")&&(M=null);var pe=!1;if(M===null)pe=!0;else switch(fe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(M.$$typeof){case e:case t:pe=!0;break;case g:return pe=M._init,E(pe(M._payload),U,Y,ne,le)}}if(pe)return le=le(M),pe=ne===""?"."+H(M,0):ne,O(le)?(Y="",pe!=null&&(Y=pe.replace(ce,"$&/")+"/"),E(le,U,Y,"",function(Xe){return Xe})):le!=null&&(D(le)&&(le=X(le,Y+(le.key==null||M&&M.key===le.key?"":(""+le.key).replace(ce,"$&/")+"/")+pe)),U.push(le)),1;pe=0;var Te=ne===""?".":ne+":";if(O(M))for(var Ee=0;Ee<M.length;Ee++)ne=M[Ee],fe=Te+H(ne,Ee),pe+=E(ne,U,Y,fe,le);else if(Ee=_(M),typeof Ee=="function")for(M=Ee.call(M),Ee=0;!(ne=M.next()).done;)ne=ne.value,fe=Te+H(ne,Ee++),pe+=E(ne,U,Y,fe,le);else if(fe==="object"){if(typeof M.then=="function")return E(ae(M),U,Y,ne,le);throw U=String(M),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return pe}function R(M,U,Y){if(M==null)return M;var ne=[],le=0;return E(M,ne,"","",function(fe){return U.call(Y,fe,le++)}),ne}function A(M){if(M._status===-1){var U=M._result;U=U(),U.then(function(Y){(M._status===0||M._status===-1)&&(M._status=1,M._result=Y)},function(Y){(M._status===0||M._status===-1)&&(M._status=2,M._result=Y)}),M._status===-1&&(M._status=0,M._result=U)}if(M._status===1)return M._result.default;throw M._result}var q=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},te={map:R,forEach:function(M,U,Y){R(M,function(){U.apply(this,arguments)},Y)},count:function(M){var U=0;return R(M,function(){U++}),U},toArray:function(M){return R(M,function(U){return U})||[]},only:function(M){if(!D(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Me.Activity=m,Me.Children=te,Me.Component=k,Me.Fragment=n,Me.Profiler=o,Me.PureComponent=z,Me.StrictMode=r,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Me.__COMPILER_RUNTIME={__proto__:null,c:function(M){return j.H.useMemoCache(M)}},Me.cache=function(M){return function(){return M.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(M,U,Y){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ne=S({},M.props),le=M.key;if(U!=null)for(fe in U.key!==void 0&&(le=""+U.key),U)!L.call(U,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&U.ref===void 0||(ne[fe]=U[fe]);var fe=arguments.length-2;if(fe===1)ne.children=Y;else if(1<fe){for(var pe=Array(fe),Te=0;Te<fe;Te++)pe[Te]=arguments[Te+2];ne.children=pe}return G(M.type,le,ne)},Me.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:s,_context:M},M},Me.createElement=function(M,U,Y){var ne,le={},fe=null;if(U!=null)for(ne in U.key!==void 0&&(fe=""+U.key),U)L.call(U,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(le[ne]=U[ne]);var pe=arguments.length-2;if(pe===1)le.children=Y;else if(1<pe){for(var Te=Array(pe),Ee=0;Ee<pe;Ee++)Te[Ee]=arguments[Ee+2];le.children=Te}if(M&&M.defaultProps)for(ne in pe=M.defaultProps,pe)le[ne]===void 0&&(le[ne]=pe[ne]);return G(M,fe,le)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(M){return{$$typeof:d,render:M}},Me.isValidElement=D,Me.lazy=function(M){return{$$typeof:g,_payload:{_status:-1,_result:M},_init:A}},Me.memo=function(M,U){return{$$typeof:h,type:M,compare:U===void 0?null:U}},Me.startTransition=function(M){var U=j.T,Y={};j.T=Y;try{var ne=M(),le=j.S;le!==null&&le(Y,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(I,q)}catch(fe){q(fe)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),j.T=U}},Me.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Me.use=function(M){return j.H.use(M)},Me.useActionState=function(M,U,Y){return j.H.useActionState(M,U,Y)},Me.useCallback=function(M,U){return j.H.useCallback(M,U)},Me.useContext=function(M){return j.H.useContext(M)},Me.useDebugValue=function(){},Me.useDeferredValue=function(M,U){return j.H.useDeferredValue(M,U)},Me.useEffect=function(M,U){return j.H.useEffect(M,U)},Me.useEffectEvent=function(M){return j.H.useEffectEvent(M)},Me.useId=function(){return j.H.useId()},Me.useImperativeHandle=function(M,U,Y){return j.H.useImperativeHandle(M,U,Y)},Me.useInsertionEffect=function(M,U){return j.H.useInsertionEffect(M,U)},Me.useLayoutEffect=function(M,U){return j.H.useLayoutEffect(M,U)},Me.useMemo=function(M,U){return j.H.useMemo(M,U)},Me.useOptimistic=function(M,U){return j.H.useOptimistic(M,U)},Me.useReducer=function(M,U,Y){return j.H.useReducer(M,U,Y)},Me.useRef=function(M){return j.H.useRef(M)},Me.useState=function(M){return j.H.useState(M)},Me.useSyncExternalStore=function(M,U,Y){return j.H.useSyncExternalStore(M,U,Y)},Me.useTransition=function(){return j.H.useTransition()},Me.version="19.2.0",Me}var mS;function El(){return mS||(mS=1,Gg.exports=Z5()),Gg.exports}var re=El();const tt=rT(re),Oq=V5({__proto__:null,default:tt},[re]);var Yg={exports:{}},kc={},Zg={exports:{}},Xg={};/** 19 * @license React 20 * scheduler.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var gS;function X5(){return gS||(gS=1,(function(e){function t(E,R){var A=E.length;E.push(R);e:for(;0<A;){var q=A-1>>>1,te=E[q];if(0<o(te,R))E[q]=R,E[A]=te,A=q;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var R=E[0],A=E.pop();if(A!==R){E[0]=A;e:for(var q=0,te=E.length,M=te>>>1;q<M;){var U=2*(q+1)-1,Y=E[U],ne=U+1,le=E[ne];if(0>o(Y,A))ne<te&&0>o(le,Y)?(E[q]=le,E[ne]=A,q=ne):(E[q]=Y,E[U]=A,q=U);else if(ne<te&&0>o(le,A))E[q]=le,E[ne]=A,q=ne;else break e}}return R}function o(E,R){var A=E.sortIndex-R.sortIndex;return A!==0?A:E.id-R.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,m=null,y=3,_=!1,w=!1,S=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function N(E){for(var R=n(h);R!==null;){if(R.callback===null)r(h);else if(R.startTime<=E)r(h),R.sortIndex=R.expirationTime,t(f,R);else break;R=n(h)}}function O(E){if(S=!1,N(E),!w)if(n(f)!==null)w=!0,I||(I=!0,Z());else{var R=n(h);R!==null&&ae(O,R.startTime-E)}}var I=!1,j=-1,L=5,G=-1;function X(){return T?!0:!(e.unstable_now()-G<L)}function D(){if(T=!1,I){var E=e.unstable_now();G=E;var R=!0;try{e:{w=!1,S&&(S=!1,$(j),j=-1),_=!0;var A=y;try{t:{for(N(E),m=n(f);m!==null&&!(m.expirationTime>E&&X());){var q=m.callback;if(typeof q=="function"){m.callback=null,y=m.priorityLevel;var te=q(m.expirationTime<=E);if(E=e.unstable_now(),typeof te=="function"){m.callback=te,N(E),R=!0;break t}m===n(f)&&r(f),N(E)}else r(f);m=n(f)}if(m!==null)R=!0;else{var M=n(h);M!==null&&ae(O,M.startTime-E),R=!1}}break e}finally{m=null,y=A,_=!1}R=void 0}}finally{R?Z():I=!1}}}var Z;if(typeof z=="function")Z=function(){z(D)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,H=ce.port2;ce.port1.onmessage=D,Z=function(){H.postMessage(null)}}else Z=function(){k(D,0)};function ae(E,R){j=k(function(){E(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.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"):L=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(E){switch(y){case 1:case 2:case 3:var R=3;break;default:R=y}var A=y;y=R;try{return E()}finally{y=A}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(E,R){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var A=y;y=E;try{return R()}finally{y=A}},e.unstable_scheduleCallback=function(E,R,A){var q=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?q+A:q):A=q,E){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=A+te,E={id:g++,callback:R,priorityLevel:E,startTime:A,expirationTime:te,sortIndex:-1},A>q?(E.sortIndex=A,t(h,E),n(f)===null&&E===n(h)&&(S?($(j),j=-1):S=!0,ae(O,A-q))):(E.sortIndex=te,t(f,E),w||_||(w=!0,I||(I=!0,Z()))),E},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(E){var R=y;return function(){var A=y;y=R;try{return E.apply(this,arguments)}finally{y=A}}}})(Xg)),Xg}var vS;function W5(){return vS||(vS=1,Zg.exports=X5()),Zg.exports}var Wg={exports:{}},gn={};/** 27 * @license React 28 * react-dom.production.js 29 * 30 * Copyright (c) Meta Platforms, Inc. and affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var yS;function K5(){if(yS)return gn;yS=1;var e=El();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(f,h,g){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:f,containerInfo:h,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gn.createPortal=function(f,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(f,h,null,g)},gn.flushSync=function(f){var h=c.T,g=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=h,r.p=g,r.d.f()}},gn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},gn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},gn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var g=h.as,m=d(g,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:_}):g==="script"&&r.d.X(f,{crossOrigin:m,integrity:y,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},gn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},gn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,m=d(g,h.crossOrigin);r.d.L(f,g,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},gn.preloadModule=function(f,h){if(typeof f=="string")if(h){var g=d(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},gn.requestFormReset=function(f){r.d.r(f)},gn.unstable_batchedUpdates=function(f,h){return f(h)},gn.useFormState=function(f,h,g){return c.H.useFormState(f,h,g)},gn.useFormStatus=function(){return c.H.useHostTransitionStatus()},gn.version="19.2.0",gn}var bS;
vendor: 1,184 bytes, lines 34-42
34function iT(){if(bS)return Wg.exports;bS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wg.exports=K5(),Wg.exports}/** 35 * @license React 36 * react-dom-client.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var _S;function Q5(){if(_S)return kc;_S=1;var e=W5(),t=El(),n=iT();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,l=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(l=a.return),i=a.return;while(i)}return a.tag===3?l:null}
vendor: 10,781 bytes, lines 42-49
42function c(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function d(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function f(i){if(s(i)!==i)throw Error(r(188))}function h(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var l=i,u=a;;){var p=l.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===l)return f(p),i;if(v===u)return f(p),a;v=v.sibling}throw Error(r(188))}if(l.return!==u.return)l=p,u=v;else{for(var x=!1,C=p.child;C;){if(C===l){x=!0,l=p,u=v;break}if(C===u){x=!0,u=p,l=v;break}C=C.sibling}if(!x){for(C=v.child;C;){if(C===l){x=!0,l=v,u=p;break}if(C===u){x=!0,u=v,l=p;break}C=C.sibling}if(!x)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?i:a}function g(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=g(i),a!==null)return a;i=i.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),z=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),D=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=D&&i[D]||i["@@iterator"],typeof i=="function"?i:null)}var ce=Symbol.for("react.client.reference");function H(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===ce?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case k:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case G:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case w:return"Portal";case z:return i.displayName||"Context";case $:return(i._context.displayName||"Context")+".Consumer";case N:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case j:return a=i.displayName||null,a!==null?a:H(i.type)||"Memo";case L:a=i._payload,i=i._init;try{return H(i(a))}catch{}}return null}var ae=Array.isArray,E=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A={pending:!1,data:null,method:null,action:null},q=[],te=-1;function M(i){return{current:i}}function U(i){0>te||(i.current=q[te],q[te]=null,te--)}function Y(i,a){te++,q[te]=i.current,i.current=a}var ne=M(null),le=M(null),fe=M(null),pe=M(null);function Te(i,a){switch(Y(fe,a),Y(le,i),Y(ne,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?D1(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=D1(a),i=P1(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}U(ne),Y(ne,i)}function Ee(){U(ne),U(le),U(fe)}function Xe(i){i.memoizedState!==null&&Y(pe,i);var a=ne.current,l=P1(a,i.type);a!==l&&(Y(le,i),Y(ne,l))}function Et(i){le.current===i&&(U(ne),U(le)),pe.current===i&&(U(pe),_c._currentValue=A)}var yt,Or;function _n(i){if(yt===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);yt=a&&a[1]||"",Or=-1<l.stack.indexOf(` 43 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 44`+yt+i+Or}var ja=!1;function Mn(i,a){if(!i||ja)return"";ja=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var Q=ee}Reflect.construct(i,[],se)}else{try{se.call()}catch(ee){Q=ee}i.call(se.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(se=i())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),x=v[0],C=v[1];if(x&&C){var P=x.split(` 45`),K=C.split(` 46`);for(p=u=0;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(u===P.length||p===K.length)for(u=P.length-1,p=K.length-1;1<=u&&0<=p&&P[u]!==K[p];)p--;for(;1<=u&&0<=p;u--,p--)if(P[u]!==K[p]){if(u!==1||p!==1)do if(u--,p--,0>p||P[u]!==K[p]){var ie=` 47`+P[u].replace(" at new "," at ");return i.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",i.displayName)),ie}while(1<=u&&0<=p);break}}}finally{ja=!1,Error.prepareStackTrace=l}return(l=i?i.displayName||i.name:"")?_n(l):""}function Ml(i,a){switch(i.tag){case 26:case 27:case 5:return _n(i.type);case 16:return _n("Lazy");case 13:return i.child!==a&&a!==null?_n("Suspense Fallback"):_n("Suspense");case 19:return _n("SuspenseList");case 0:case 15:return Mn(i.type,!1);case 11:return Mn(i.type.render,!1);case 1:return Mn(i.type,!0);case 31:return _n("Activity");default:return""}}function Yr(i){try{var a="",l=null;do a+=Ml(i,l),l=i,i=i.return;while(i);return a}catch(u){return` 48Error generating stack: `+u.message+` 49`+u.stack}}var cr=Object.prototype.hasOwnProperty,fi=e.unstable_scheduleCallback,hi=e.unstable_cancelCallback,it=e.unstable_shouldYield,Ut=e.unstable_requestPaint,$t=e.unstable_now,f_=e.unstable_getCurrentPriorityLevel,h_=e.unstable_ImmediatePriority,p_=e.unstable_UserBlockingPriority,Gu=e.unstable_NormalPriority,TR=e.unstable_LowPriority,m_=e.unstable_IdlePriority,CR=e.log,$R=e.unstable_setDisableYieldValue,zl=null,Vn=null;function Wi(i){if(typeof CR=="function"&&$R(i),Vn&&typeof Vn.setStrictMode=="function")try{Vn.setStrictMode(zl,i)}catch{}}var Gn=Math.clz32?Math.clz32:MR,RR=Math.log,AR=Math.LN2;function MR(i){return i>>>=0,i===0?32:31-(RR(i)/AR|0)|0}var Yu=256,Zu=262144,Xu=4194304;function Ua(i){var a=i&42;if(a!==0)return a;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Wu(i,a,l){var u=i.pendingLanes;if(u===0)return 0;var p=0,v=i.suspendedLanes,x=i.pingedLanes;i=i.warmLanes;var C=u&134217727;return C!==0?(u=C&~v,u!==0?p=Ua(u):(x&=C,x!==0?p=Ua(x):l||(l=C&~i,l!==0&&(p=Ua(l))))):(C=u&~v,C!==0?p=Ua(C):x!==0?p=Ua(x):l||(l=u&~i,l!==0&&(p=Ua(l)))),p===0?0:a!==0&&a!==p&&(a&v)===0&&(v=p&-p,l=a&-a,v>=l||v===32&&(l&4194048)!==0)?a:p}function Ol(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function zR(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function g_(){var i=Xu;return Xu<<=1,(Xu&62914560)===0&&(Xu=4194304),i}function Op(i){for(var a=[],l=0;31>l;l++)a.push(i);return a}function Nl(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function OR(i,a,l,u,p,v){var x=i.pendingLanes;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=l,i.entangledLanes&=l,i.errorRecoveryDisabledLanes&=l,i.shellSuspendCounter=0;var C=i.entanglements,P=i.expirationTimes,K=i.hiddenUpdates;for(l=x&~l;0<l;){var ie=31-Gn(l),se=1<<ie;C[ie]=0,P[ie]=-1;var Q=K[ie];if(Q!==null)for(K[ie]=null,ie=0;ie<Q.length;ie++){var ee=Q[ie];ee!==null&&(ee.lane&=-536870913)}l&=~se}u!==0&&v_(i,u,0),v!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=v&~(x&~a))}function v_(i,a,l){i.pendingLanes|=a,i.suspendedLanes&=~a;var u=31-Gn(a);i.entangledLanes|=a,i.entanglements[u]=i.entanglements[u]|1073741824|l&261930}function y_(i,a){var l=i.entangledLanes|=a;for(i=i.entanglements;l;){var u=31-Gn(l),p=1<<u;p&a|i[u]&a&&(i[u]|=a),l&=~p}}function b_(i,a){var l=a&-a;return l=(l&42)!==0?1:Np(l),(l&(i.suspendedLanes|a))!==0?0:l}function Np(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Dp(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function __(){var i=R.p;return i!==0?i:(i=window.event,i===void 0?32:aS(i.type))}function w_(i,a){var l=R.p;try{return R.p=i,a()}finally{R.p=l}}var Ki=Math.random().toString(36).slice(2),ln="__reactFiber$"+Ki,zn="__reactProps$"+Ki,Bo="__reactContainer$"+Ki,Pp="__reactEvents$"+Ki,NR="__reactListeners$"+Ki,DR="__reactHandles$"+Ki,x_="__reactResources$"+Ki,Dl="__reactMarker$"+Ki;function Lp(i){delete i[ln],delete i[zn],delete i[Pp],delete i[NR],delete i[DR]}function qo(i){var a=i[ln];if(a)return a;for(var l=i.parentNode;l;){if(a=l[Bo]||l[ln]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(i=B1(i);i!==null;){if(l=i[ln])return l;i=B1(i)}return a}i=l,l=i.parentNode}return null}function Vo(i){if(i=i[ln]||i[Bo]){var a=i.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return i}return null}function Pl(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function Go(i){var a=i[x_];return a||(a=i[x_]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function tn(i){i[Dl]=!0}var S_=new Set,E_={};function Ha(i,a){Yo(i,a),Yo(i+"Capture",a)}function Yo(i,a){for(E_[i]=a,i=0;i<a.length;i++)S_.add(a[i])}var PR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 49
49037D\\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]*$"),k_={},T_={};function LR(i){return cr.call(T_,i)?!0:cr.call(k_,i)?!1:PR.test(i)?T_[i]=!0:(k_[i]=!0,!1)}function Ku(i,a,l){if(LR(a))if(l===null)i.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+l)}}function Qu(i,a,l){if(l===null)i.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+l)}}function pi(i,a,l,u){if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttributeNS(a,l,""+u)}}function ur(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function C_(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function FR(i,a,l){var u=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);if(!i.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var p=u.get,v=u.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return p.call(this)},set:function(x){l=""+x,v.call(this,x)}}),Object.defineProperty(i,a,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Fp(i){if(!i._valueTracker){var a=C_(i)?"checked":"value";i._valueTracker=FR(i,a,""+i[a])}}function $_(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var l=a.getValue(),u="";return i&&(u=C_(i)?i.checked?"true":"false":i.value),i=u,i!==l?(a.setValue(i),!0):!1}function Ju(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var IR=/[\n"\\]/g;function dr(i){return i.replace(IR,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ip(i,a,l,u,p,v,x,C){i.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?i.type=x:i.removeAttribute("type"),a!=null?x==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+ur(a)):i.value!==""+ur(a)&&(i.value=""+ur(a)):x!=="submit"&&x!=="reset"||i.removeAttribute("value"),a!=null?jp(i,x,ur(a)):l!=null?jp(i,x,ur(l)):u!=null&&i.removeAttribute("value"),p==null&&v!=null&&(i.defaultChecked=!!v),p!=null&&(i.checked=p&&typeof p!="function"&&typeof p!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.name=""+ur(C):i.removeAttribute("name")}function R_(i,a,l,u,p,v,x,C){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),a!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||a!=null)){Fp(i);return}l=l!=null?""+ur(l):"",a=a!=null?""+ur(a):l,C||a===i.value||(i.value=a),i.defaultValue=a}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,i.checked=C?i.checked:!!u,i.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.name=x),Fp(i)}function jp(i,a,l){a==="number"&&Ju(i.ownerDocument)===i||i.defaultValue===""+l||(i.defaultValue=""+l)}function Zo(i,a,l,u){if(i=i.options,a){a={};for(var p=0;p<l.length;p++)a["$"+l[p]]=!0;for(l=0;l<i.length;l++)p=a.hasOwnProperty("$"+i[l].value),i[l].selected!==p&&(i[l].selected=p),p&&u&&(i[l].defaultSelected=!0)}else{for(l=""+ur(l),a=null,p=0;p<i.length;p++){if(i[p].value===l){i[p].selected=!0,u&&(i[p].defaultSelected=!0);return}a!==null||i[p].disabled||(a=i[p])}a!==null&&(a.selected=!0)}}function A_(i,a,l){if(a!=null&&(a=""+ur(a),a!==i.value&&(i.value=a),l==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=l!=null?""+ur(l):""}function M_(i,a,l,u){if(a==null){if(u!=null){if(l!=null)throw Error(r(92));if(ae(u)){if(1<u.length)throw Error(r(93));u=u[0]}l=u}l==null&&(l=""),a=l}l=ur(a),i.defaultValue=l,u=i.textContent,u===l&&u!==""&&u!==null&&(i.value=u),Fp(i)}function Xo(i,a){if(a){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=a;return}}i.textContent=a}var jR=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 z_(i,a,l){var u=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":u?i.setProperty(a,l):typeof l!="number"||l===0||jR.has(a)?a==="float"?i.cssFloat=l:i[a]=(""+l).trim():i[a]=l+"px"}function O_(i,a,l){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?i.setProperty(u,""):u==="float"?i.cssFloat="":i[u]="");for(var p in a)u=a[p],a.hasOwnProperty(p)&&l[p]!==u&&z_(i,p,u)}else for(var v in a)a.hasOwnProperty(v)&&z_(i,v,a[v])}function Up(i){if(i.indexOf("-")===-1)return!1;switch(i){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 UR=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"],["colorRen
49dering","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"],["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-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"]]),HR=/^[\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 ed(i){return HR.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function mi(){}var Hp=null;function Bp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Wo=null,Ko=null;function N_(i){var a=Vo(i);if(a&&(i=a.stateNode)){var l=i[zn]||null;e:switch(i=a.stateNode,a.type){case"input":if(Ip(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+dr(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var u=l[a];if(u!==i&&u.form===i.form){var p=u[zn]||null;if(!p)throw Error(r(90));Ip(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<l.length;a++)u=l[a],u.form===i.form&&$_(u)}break e;case"textarea":A_(i,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Zo(i,!!l.multiple,a,!1)}}}var qp=!1;function D_(i,a,l){if(qp)return i(a,l);qp=!0;try{var u=i(a);return u}finally{if(qp=!1,(Wo!==null||Ko!==null)&&(Ud(),Wo&&(a=Wo,i=Ko,Ko=Wo=null,N_(a),i)))for(a=0;a<i.length;a++)N_(i[a])}}function Ll(i,a){var l=i.stateNode;if(l===null)return null;var u=l[zn]||null;if(u===null)return null;l=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(i=i.type,u=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!u;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(r(231,a,typeof l));return l}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vp=!1;if(gi)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){Vp=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{Vp=!1}var Qi=null,Gp=null,td=null;function P_(){if(td)return td;var i,a=Gp,l=a.length,u,p="value"in Qi?Qi.value:Qi.textContent,v=p.length;for(i=0;i<l&&a[i]===p[i];i++);var x=l-i;for(u=1;u<=x&&a[l-u]===p[v-u];u++);return td=p.slice(i,1<u?1-u:void 0)}
vendor: 2,937 bytes, line 49
49function nd(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function rd(){return!0}function L_(){return!1}function On(i){function a(l,u,p,v,x){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=x,this.currentTarget=null;for(var C in i)i.hasOwnProperty(C)&&(l=i[C],this[C]=l?l(v):v[C]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?rd:L_,this.isPropagationStopped=L_,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=rd)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=rd)},persist:function(){},isPersistent:rd}),a}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},id=On(Ba),Il=m({},Ba,{view:0,detail:0}),BR=On(Il),Yp,Zp,jl,ad=m({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wp,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==jl&&(jl&&i.type==="mousemove"?(Yp=i.screenX-jl.screenX,Zp=i.screenY-jl.screenY):Zp=Yp=0,jl=i),Yp)},movementY:function(i){return"movementY"in i?i.movementY:Zp}}),F_=On(ad),qR=m({},ad,{dataTransfer:0}),VR=On(qR),GR=m({},Il,{relatedTarget:0}),Xp=On(GR),YR=m({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),ZR=On(YR),XR=m({},Ba,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),WR=On(XR),KR=m({},Ba,{data:0}),I_=On(KR),QR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JR={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"},eA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tA(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=eA[i])?!!a[i]:!1}function Wp(){return tA}var nA=m({},Il,{key:function(i){if(i.key){var a=QR[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=nd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="
49keydown"||i.type==="keyup"?JR[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wp,charCode:function(i){return i.type==="keypress"?nd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?nd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),rA=On(nA),iA=m({},ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j_=On(iA),aA=m({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wp}),oA=On(aA),sA=m({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),lA=On(sA),cA=m({},ad,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),uA=On(cA),dA=m({},Ba,{newState:0,oldState:0}),fA=On(dA),hA=[9,13,27,32],Kp=gi&&"CompositionEvent"in window,Ul=null;gi&&"documentMode"in document&&(Ul=document.documentMode);var pA=gi&&"TextEvent"in window&&!Ul,U_=gi&&(!Kp||Ul&&8<Ul&&11>=Ul),H_=" ",B_=!1;function q_(i,a){switch(i){case"keyup":return hA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function V_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Qo=!1;function mA(i,a){switch(i){case"compositionend":return V_(a);case"keypress":return a.which!==32?null:(B_=!0,H_);case"textInput":return i=a.data,i===H_&&B_?null:i;default:return null}}function gA(i,a){if(Qo)return i==="compositionend"||!Kp&&q_(i,a)?(i=P_(),td=Gp=Qi=null,Qo=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return U_&&a.locale!=="ko"?null:a.data;default:return null}}var vA={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 G_(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!vA[i.type]:a==="textarea"}function Y_(i,a,l,u){Wo?Ko?Ko.push(u):Ko=[u]:Wo=u,a=Zd(a,"onChange"),0<a.length&&(l=new id("onChange","change",null,l,u),i.push({event:l,listeners:a}))}var Hl=null,Bl=null;function yA(i){R1(i,0)}function od(i){var a=Pl(i);if($_(a))return i}function Z_(i,a){if(i==="change")return a}var X_=!1;if(gi){var Qp;if(gi){var Jp="oninput"in document;if(!Jp){var W_=document.createElement("div");W_.setAttribute("oninput","return;"),Jp=typeof W_.oninput=="function"}Qp=Jp}else Qp=!1;X_=Qp&&(!document.documentMode||9<document.documentMode)}function K_(){Hl&&(Hl.detachEvent("onpropertychange",Q_),Bl=Hl=null)}function Q_(i){if(i.propertyName==="value"&&od(Bl)){var a=[];Y_(a,Bl,i,Bp(i)),D_(yA,a)}}function bA(i,a,l){i==="focusin"?(K_(),Hl=a,Bl=l,Hl.attachEvent("onpropertychange",Q_)):i==="focusout"&&K_()}function _A(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return od(Bl)}function wA(i,a){if(i==="click")return od(a)}function xA(i,a){if(i==="input"||i==="change")return od(a)}function SA(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Yn=typeof Object.is=="function"?Object.is:SA;function ql(i,a){if(Yn(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var l=Object.keys(i),u=Object.keys(a);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!cr.call(a,p)||!Yn(i[p],a[p]))return!1}return!0}function J_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function ew(i,a){var l=J_(i);i=0;for(var u;l;){if(l.nodeType===3){if(u=i+l.textContent.length,i<=a&&u>=a)return{node:l,offset:a-i};i=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=J_(l)}}function tw(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?tw(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function nw(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=Ju(i.document);a instanceof i.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)i=a.contentWindow;else break;a=Ju(i.document)}return a}function em(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var EA=gi&&"documentMode"in document&&11>=document.documentMode,Jo=null,tm=null,Vl=null,nm=!1;function rw(i,a,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nm||Jo==null||Jo!==Ju(u)||(u=Jo,"selectionStart"in u&&em(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focu
vendor: 22,323 bytes, line 49
49sNode:u.focusNode,focusOffset:u.focusOffset}),Vl&&ql(Vl,u)||(Vl=u,u=Zd(tm,"onSelect"),0<u.length&&(a=new id("onSelect","select",null,a,l),i.push({event:a,listeners:u}),a.target=Jo)))}function qa(i,a){var l={};return l[i.toLowerCase()]=a.toLowerCase(),l["Webkit"+i]="webkit"+a,l["Moz"+i]="moz"+a,l}var es={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionrun:qa("Transition","TransitionRun"),transitionstart:qa("Transition","TransitionStart"),transitioncancel:qa("Transition","TransitionCancel"),transitionend:qa("Transition","TransitionEnd")},rm={},iw={};gi&&(iw=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function Va(i){if(rm[i])return rm[i];if(!es[i])return i;var a=es[i],l;for(l in a)if(a.hasOwnProperty(l)&&l in iw)return rm[i]=a[l];return i}var aw=Va("animationend"),ow=Va("animationiteration"),sw=Va("animationstart"),kA=Va("transitionrun"),TA=Va("transitionstart"),CA=Va("transitioncancel"),lw=Va("transitionend"),cw=new Map,im="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");im.push("scrollEnd");function Nr(i,a){cw.set(i,a),Ha(a,[i])}var sd=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},fr=[],ts=0,am=0;function ld(){for(var i=ts,a=am=ts=0;a<i;){var l=fr[a];fr[a++]=null;var u=fr[a];fr[a++]=null;var p=fr[a];fr[a++]=null;var v=fr[a];if(fr[a++]=null,u!==null&&p!==null){var x=u.pending;x===null?p.next=p:(p.next=x.next,x.next=p),u.pending=p}v!==0&&uw(l,p,v)}}function cd(i,a,l,u){fr[ts++]=i,fr[ts++]=a,fr[ts++]=l,fr[ts++]=u,am|=u,i.lanes|=u,i=i.alternate,i!==null&&(i.lanes|=u)}function om(i,a,l,u){return cd(i,a,l,u),ud(i)}function Ga(i,a){return cd(i,null,null,a),ud(i)}function uw(i,a,l){i.lanes|=l;var u=i.alternate;u!==null&&(u.lanes|=l);for(var p=!1,v=i.return;v!==null;)v.childLanes|=l,u=v.alternate,u!==null&&(u.childLanes|=l),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(p=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,p&&a!==null&&(p=31-Gn(l),i=v.hiddenUpdates,u=i[p],u===null?i[p]=[a]:u.push(a),a.lane=l|536870912),v):null}function ud(i){if(50<hc)throw hc=0,mg=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var ns={};function $A(i,a,l,u){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(i,a,l,u){return new $A(i,a,l,u)}function sm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function vi(i,a){var l=i.alternate;return l===null?(l=Zn(i.tag,a,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=a,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&65011712,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,a=i.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l.refCleanup=i.refCleanup,l}function dw(i,a){i.flags&=65011714;var l=i.alternate;return l===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,a=l.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function dd(i,a,l,u,p,v){var x=0;if(u=i,typeof i=="function")sm(i)&&(x=1);else if(typeof i=="string")x=O5(i,l,ne.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case G:return i=Zn(31,l,a,p),i.elementType=G,i.lanes=v,i;case S:return Ya(l.children,p,v,a);case T:x=8,p|=24;break;case k:return i=Zn(12,l,a,p|2),i.elementType=k,i.lanes=v,i;case O:return i=Zn(13,l,a,p),i.elementType=O,i.lanes=v,i;case I:return i=Zn(19,l,a,p),i.elementType=I,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case z:x=10;break e;case $:x=9;break e;case N:x=11;break e;case j:x=14;break e;case L:x=16,u=null;break e}x=29,l=Error(r(130,i===null?"null":typeof i,"")),u=null}return a=Zn(x,l,a,p),a.elementType=i,a.type=u,a.lanes=v,a}function Ya(i,a,l,u){return i=Zn(7,i,u,a),i.lanes=l,i}function lm(i,a,l){return i=Zn(6,i,null,a),i.lanes=l,i}function fw(i){var a=Zn(18,null,null,0);return a.stateNode=i,a}function cm(i,a,l){return a=Zn(4,i.children!==null?i.children:[],i.key,a),a.lanes=l,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var hw=new WeakMap;function hr(i,a){if(typeof i=="object"&&i!==null){var l=hw.get(i);return l!==void 0?l:(a={value:i,source:a,stack:Yr(a)},hw.set(i,a),a)}return{value:i,source:a,stack:Yr(a)}}var rs=[],is=0,fd=null,Gl=0,pr=[],mr=0,Ji=null,Zr=1,Xr="";function yi(i,a){rs[is++]=Gl,rs[is++]=fd,fd=i,Gl=a}function pw(i,a,l){pr[mr++]=Zr,pr[mr++]=Xr,pr[mr++]=Ji,Ji=i;var u=Zr;i=Xr;var p=32-Gn(u)-1;u&=~(1<<p),l+=1;var v=32-Gn(a)+p;if(30<v){var x=p-p%5;v=(u&(1<<x)-1).toString(32),u>>=x,p-=x,Zr=1<<32-Gn(a)+p|l<<p|u,Xr=v+i}else Zr=1<<v|l<<p|u,Xr=i}function um(i){i.return!==null&&(yi(i,1),pw(i,1,0))}function dm(i){for(;i===fd;)fd=rs[--is],rs[is]=null,Gl=rs[--is],rs[is]=null;for(;i===Ji;)Ji=pr[--mr],pr[mr]=null,Xr=pr[--mr],pr[mr]=null,Zr=pr[--mr],pr[mr]=null}function mw(i,a){pr[mr++]=Zr,pr[mr++]=Xr,pr[mr++]=Ji,Zr=a.id,Xr=a.overflow,Ji=i}var cn=null,ht=null,Ge=!1,ea=null,gr=!1,fm=Error(r(519));function ta(i){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yl(hr(a,i)),fm}function gw(i){var a=i.stateNode,l=i.type,u=i.memoizedProps;switch(a[ln]=i,a[zn]=u,l){case"dialog":Ue("cancel",a),Ue("close",a);break;case"iframe":case"object":case"embed":Ue("load",a);break;case"video":case"audio":for(l=0;l<mc.length;l++)Ue(mc[l],a);break;case"source":Ue("error",a);break;case"img":case"image":case"link":Ue("error",a),Ue("load",a);break;case"details":Ue("toggle",a);break;case"input":Ue("invalid",a),R_(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ue("invalid",a);break;case"textarea":Ue("invalid",a),M_(a,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||u.suppressHydrationWarning===!0||O1(a.textContent,l)?(u.popover!=null&&(Ue("beforetoggle",a),Ue("toggle",a)),u.onScroll!=null&&Ue("scroll",a),u.onScrollEnd!=null&&Ue("scrollend",a),u.onClick!=null&&(a.onclick=mi),a=!0):a=!1,a||ta(i,!0)}function vw(i){for(cn=i.return;cn;)switch(cn.tag){case 5:case 31:case 13:gr=!1;return;case 27:case 3:gr=!0;return;default:cn=cn.return}}function as(i){if(i!==cn)return!1;if(!Ge)return vw(i),Ge=!0,!1;var a=i.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=i.type,l=!(l!=="form"&&l!=="button")||Ag(i.type,i.memoizedProps)),l=!l),l&&ht&&ta(i),vw(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ht=H1(i)}else if(a===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ht=H1(i)}else a===27?(a=ht,ma(i.type)?(i=Dg,Dg=null,ht=i):ht=a):ht=cn?yr(i.stateNode.nextSibling):null;return!0}function Za(){ht=cn=null,Ge=!1}function hm(){var i=ea;return i!==null&&(Ln===null?Ln=i:Ln.push.apply(Ln,i),ea=null),i}function Yl(i){ea===null?ea=[i]:ea.push(i)}var pm=M(null),Xa=null,bi=null;function na(i,a,l){Y(pm,a._currentValue),a._currentValue=l}function _i(i){i._currentValue=pm.current,U(pm)}function mm(i,a,l){for(;i!==null;){var u=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),i===l)break;i=i.return}}function gm(i,a,l,u){var p=i.child;for(p!==null&&(p.return=i);p!==null;){var v=p.dependencies;if(v!==null){var x=p.child;v=v.firstContext;e:for(;v!==null;){var C=v;v=p;for(var P=0;P<a.length;P++)if(C.context===a[P]){v.lanes|=l,C=v.alternate,C!==null&&(C.lanes|=l),mm(v.return,l,i),u||(x=null);break e}v=C.next}}else if(p.tag===18){if(x=p.return,x===null)throw Error(r(341));x.lanes|=l,v=x.alternate,v!==null&&(v.lanes|=l),mm(x,l,i),x=null}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===i){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}}function os(i,a,l,u){i=null;for(var p=a,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var x=p.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var C=p.type;Yn(p.pendingProps.value,x.value)||(i!==null?i.push(C):i=[C])}}else if(p===pe.current){if(x=p.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(i!==null?i.push(_c):i=[_c])}p=p.return}i!==null&&gm(a,i,l,u),a.flags|=262144}function hd(i){for(i=i.firstContext;i!==null;){if(!Yn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Wa(i){Xa=i,bi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function un(i){return yw(Xa,i)}function pd(i,a){return Xa===null&&Wa(i),yw(i,a)}function yw(i,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},bi===null){if(i===null)throw Error(r(308));bi=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else bi=bi.next=a;return l}var RA=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(l,u){i.push(u)}};this.abort=function(){a.aborted=!0,i.forEach(function(l){return l()})}},AA=e.unstable_scheduleCallback,MA=e.unstable_NormalPriority,Ht={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vm(){return{controller:new RA,data:new Map,refCount:0}}function Zl(i){i.refCount--,i.refCount===0&&AA(MA,function(){i.controller.abort()})}var Xl=null,ym=0,ss=0,ls=null;function zA(i,a){if(Xl===null){var l=Xl=[];ym=0,ss=wg(),ls={status:"pending",value:void 0,then:function(u){l.push(u)}}}return ym++,a.then(bw,bw),a}function bw(){if(--ym===0&&Xl!==null){ls!==null&&(ls.status="fulfilled");var i=Xl;Xl=null,ss=0,ls=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function OA(i,a){var l=[],u={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return i.then(function(){u.status="fulfilled",u.value=a;for(var p=0;p<l.length;p++)(0,l[p])(a)},function(p){for(u.status="rejected",u.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),u}var _w=E.S;E.S=function(i,a){r1=$t(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&zA(i,a),_w!==null&&_w(i,a)};var Ka=M(null);function bm(){var i=Ka.current;return i!==null?i:ct.pooledCache}function md(i,a){a===null?Y(Ka,Ka.current):Y(Ka,a.pool)}function ww(){var i=bm();return i===null?null:{parent:Ht._currentValue,pool:i}}var cs=Error(r(460)),_m=Error(r(474)),gd=Error(r(542)),vd={then:function(){}};function xw(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Sw(i,a,l){switch(l=i[l],l===void 0?i.push(a):l!==a&&(a.then(mi,mi),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,kw(i),i;default:if(typeof a.status=="string")a.then(mi,mi);else{if(i=ct,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(u){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=u}},function(u){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,kw(i),i}throw Ja=a,cs}}function Qa(i){try{var a=i._init;return a(i._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ja=l,cs):l}}var Ja=null;function Ew(){if(Ja===null)throw Error(r(459));var i=Ja;return Ja=null,i}function kw(i){if(i===cs||i===gd)throw Error(r(483))}var us=null,Wl=0;function yd(i){var a=Wl;return Wl+=1,us===null&&(us=[]),Sw(us,i,a)}function Kl(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function bd(i,a){throw a.$$typeof===y?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function Tw(i){function a(V,F){if(i){var W=V.deletions;W===null?(V.deletions=[F],V.flags|=16):W.push(F)}}function l(V,F){if(!i)return null;for(;F!==null;)a(V,F),F=F.sibling;return null}function u(V){for(var F=new Map;V!==null;)V.key!==null?F.set(V.key,V):F.set(V.index,V),V=V.sibling;return F}function p(V,F){return V=vi(V,F),V.index=0,V.sibling=null,V}function v(V,F,W){return V.index=W,i?(W=V.alternate,W!==null?(W=W.index,W<F?(V.flags|=67108866,F):W):(V.flags|=67108866,F)):(V.flags|=1048576,F)}function x(V){return i&&V.alternate===null&&(V.flags|=67108866),V}function C(V,F,W,oe){return F===null||F.tag!==6?(F=lm(W,V.mode,oe),F.return=V,F):(F=p(F,W),F.return=V,F)}function P(V,F,W,oe){var $e=W.type;return $e===S?ie(V,F,W.props.children,oe,W.key):F!==null&&(F.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===L&&Qa($e)===F.type)?(F=p(F,W.props),Kl(F,W),F.return=V,F):(F=dd(W.type,W.key,W.props,null,V.mode,oe),Kl(F,W),F.return=V,F)}function K(V,F,W,oe){return F===null||F.tag!==4||F.stateNode.containerInfo!==W.containerInfo||F.stateNode.implementation!==W.implementation?(F=cm(W,V.mode,oe),F.return=V,F):(F=p(F,W.children||[]),F.return=V,F)}function ie(V,F,W,oe,$e){return F===null||F.tag!==7?(F=Ya(W,V.mode,oe,$e),F.return=V,F):(F=p(F,W),F.return=V,F)}function se(V,F,W){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=lm(""+F,V.mode,W),F.return=V,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case _:return W=dd(F.type,F.key,F.props,null,V.mode,W),Kl(W,F),W.return=V,W;case w:return F=cm(F,V.mode,W),F.return=V,F;case L:return F=Qa(F),se(V,F,W)}if(ae(F)||Z(F))return F=Ya(F,V.mode,W,null),F.return=V,F;if(typeof F.then=="function")return se(V,yd(F),W);if(F.$$typeof===z)return se(V,pd(V,F),W);bd(V,F)}return null}function Q(V,F,W,oe){var $e=F!==null?F.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return $e!==null?null:C(V,F,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case _:return W.key===$e?P(V,F,W,oe):null;case w:return W.key===$e?K(V,F,W,oe):null;case L:return W=Qa(W),Q(V,F,W,oe)}if(ae(W)||Z(W))return $e!==null?null:ie(V,F,W,oe,null);if(typeof W.then=="function")return Q(V,F,yd(W),oe);if(W.$$typeof===z)return Q(V,F,pd(V,W),oe);bd(V,W)}return null}function ee(V,F,W,oe,$e){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return V=V.get(W)||null,C(F,V,""+oe,$e);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case _:return V=V.get(oe.key===null?W:oe.key)||null,P(F,V,oe,$e);case w:return V=V.get(oe.key===null?W:oe.key)||null,K(F,V,oe,$e);case L:return oe=Qa(oe),ee(V,F,W,oe,$e)}if(ae(oe)||Z(oe))return V=V.get(W)||null,ie(F,V,oe,$e,null);if(typeof oe.then=="function")return ee(V,F,W,yd(oe),$e);if(oe.$$typeof===z)return ee(V,F,W,pd(F,oe),$e);bd(F,oe)}return null}function be(V,F,W,oe){for(var $e=null,Ke=null,Se=F,De=F=0,Ve=null;Se!==null&&De<W.length;De++){Se.index>De?(Ve=Se,Se=null):Ve=Se.sibling;var Qe=Q(V,Se,W[De],oe);if(Qe===null){Se===null&&(Se=Ve);break}i&&Se&&Qe.alternate===null&&a(V,Se),F=v(Qe,F,De),Ke===null?$e=Qe:Ke.sibling=Qe,Ke=Qe,Se=Ve}if(De===W.length)return l(V,Se),Ge&&yi(V,De),$e;if(Se===null){for(;De<W.length;De++)Se=se(V,W[De],oe),Se!==null&&(F=v(Se,F,De),Ke===null?$e=Se:Ke.sibling=Se,Ke=Se);return Ge&&yi(V,De),$e}for(Se=u(Se);De<W.length;De++)Ve=ee(Se,V,De,W[De],oe),Ve!==null&&(i&&Ve.alternate!==null&&Se.delete(Ve.key===null?De:Ve.key),F=v(Ve,F,De),Ke===null?$e=Ve:Ke.sibling=Ve,Ke=Ve);return i&&Se.forEach(function(_a){return a(V,_a)}),Ge&&yi(V,De),$e}function Re(V,F,W,oe){if(W==null)throw Error(r(151));for(var $e=null,Ke=null,Se=F,De=F=0,Ve=null,Qe=W.next();Se!==null&&!Qe.done;De++,Qe=W.next()){Se.index>De?(Ve=Se,Se=null):Ve=Se.sibling;var _a=Q(V,Se,Qe.value,oe);if(_a===null){Se===null&&(Se=Ve);break}i&&Se&&_a.alternate===null&&a(V,Se),F=v(_a,F,De),Ke===null?$e=_a:Ke.sibling=_a,Ke=_a,Se=Ve}if(Qe.done)return l(V,Se),Ge&&yi(V,De),$e;if(Se===null){for(;!Qe.done;De++,Qe=W.next())Qe=se(V,Qe.value,oe),Qe!==null&&(F=v(Qe,F,De),Ke===null?$e=Qe:Ke.sibling=Qe,Ke=Qe);return Ge&&yi(V,De),$e}for(Se=u(Se);!Qe.done;De++,Qe=W.next())Qe=ee(Se,V,De,Qe.value,oe),Qe!==null&&(i&&Qe.alternate!==null&&Se.delete(Qe.key===null?De:Qe.key),F=v(Qe,F,De),Ke===null?$e=Qe:Ke.sibling=Qe,Ke=Qe);return i&&Se.forEach(function(q5){return a(V,q5)}),Ge&&yi(V,De),$e}function st(V,F,W,oe){if(typeof W=="object"&&W!==null&&W.type===S&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case _:e:{for(var $e=W.key;F!==null;){if(F.key===$e){if($e=W.type,$e===S){if(F.tag===7){l(V,F.sibling),oe=p(F,W.props.children),oe.return=V,V=oe;break e}}else if(F.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===L&&Qa($e)===F.type){l(V,F.sibling),oe=p(F,W.props),Kl(oe,W),oe.return=V,V=oe;break e}l(V,F);break}else a(V,F);F=F.sibling}W.type===S?(oe=Ya(W.props.children,V.mode,oe,W.key),oe.return=V,V=oe):(oe=dd(W.type,W.key,W.props,null,V.mode,oe),Kl(oe,W),oe.return=V,V=oe)}return x(V);case w:e:{for($e=W.key;F!==null;){if(F.key===$e)if(F.tag===4&&F.stateNode.containerInfo===W.containerInfo&&F.stateNode.implementation===W.implementation){l(V,F.sibling),oe=p(F,W.children||[]),oe.return=V,V=oe;break e}else{l(V,F);break}else a(V,F);F=F.sibling}oe=cm(W,V.mode,oe),oe.return=V,V=oe}return x(V);case L:return W=Qa(W),st(V,F,W,oe)}if(ae(W))return be(V,F,W,oe);if(Z(W)){if($e=Z(W),typeof $e!="function")throw Error(r(150));return W=$e.call(W),Re(V,F,W,oe)}if(typeof W.then=="function")return st(V,F,yd(W),oe);if(W.$$typeof===z)return st(V,F,pd(V,W),oe);bd(V,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,F!==null&&F.tag===6?(l(V,F.sibling),oe=p(F,W),oe.return=V,V=oe):(l(V,F),oe=lm(W,V.mode,oe),oe.return=V,V=oe),x(V)):l(V,F)}return function(V,F,W,oe){try{Wl=0;var $e=st(V,F,W,oe);return us=null,$e}catch(Se){if(Se===cs||Se===gd)throw Se;var Ke=Zn(29,Se,null,V.mode);return Ke.lanes=oe,Ke.return=V,Ke}finally{}}}var eo=Tw(!0),Cw=Tw(!1),ra=!1;function wm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xm(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function ia(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function aa(i,a,l){var u=i.updateQueue;if(u===null)return null;if(u=u.shared,(Je&2)!==0){var p=u.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a,a=ud(i),uw(i,null,l),a}return cd(i,u,a,l),ud(i)}function Ql(i,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var u=a.lanes;u&=i.pendingLanes,l|=u,a.lanes=l,y_(i,l)}}function Sm(i,a){var l=i.updateQueue,u=i.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?p=v=x:v=v.next=x,l=l.next}while(l!==null);v===null?p=v=a:v=v.next=a}else p=v=a;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=a:i.next=a,l.lastBaseUpdate=a}var Em=!1;function Jl(){if(Em){var i=ls;if(i!==null)throw i}}function ec(i,a,l,u){Em=!1;var p=i.updateQueue;ra=!1;var v=p.firstBaseUpdate,x=p.lastBaseUpdate,C=p.shared.pending;if(C!==null){p.shared.pending=null;var P=C,K=P.next;P.next=null,x===null?v=K:x.next=K,x=P;var ie=i.alternate;ie!==null&&(ie=ie.updateQueue,C=ie.lastBaseUpdate,C!==x&&(C===null?ie.firstBaseUpdate=K:C.next=K,ie.lastBaseUpdate=P))}if(v!==null){var se=p.baseState;x=0,ie=K=P=null,C=v;do{var Q=C.lane&-536870913,ee=Q!==C.lane;if(ee?(qe&Q)===Q:(u&Q)===Q){Q!==0&&Q===ss&&(Em=!0),ie!==null&&(ie=ie.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var be=i,Re=C;Q=a;var st=l;switch(Re.tag){case 1:if(be=Re.payload,typeof be=="function"){se=be.call(st,se,Q);break e}se=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Re.payload,Q=typeof be=="function"?be.call(st,se,Q):be,Q==null)break e;se=m({},se,Q);break e;case 2:ra=!0}}Q=C.callback,Q!==null&&(i.flags|=64,ee&&(i.flags|=8192),ee=p.callbacks,ee===null?p.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:C.tag,payload:C.payload,callback:C.callback,next:null},ie===null?(K=ie=ee,P=se):ie=ie.next=ee,x|=Q;if(C=C.next,C===null){if(C=p.shared.pending,C===null)break;ee=C,C=ee.next,ee.next=null,p.lastBaseUpdate=ee,p.shared.pending=null}}while(!0);ie===null&&(P=se),p.baseState=P,p.firstBaseUpdate=K,p.lastBaseUpdate=ie,v===null&&(p.shared.lanes=0),ua|=x,i.lanes=x,i.memoizedState=se}}function $w(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function Rw(i,a){var l=i.callbacks;
vendor: 4,085 bytes, line 49
49if(l!==null)for(i.callbacks=null,i=0;i<l.length;i++)$w(l[i],a)}var ds=M(null),_d=M(0);function Aw(i,a){i=Ri,Y(_d,i),Y(ds,a),Ri=i|a.baseLanes}function km(){Y(_d,Ri),Y(ds,ds.current)}function Tm(){Ri=_d.current,U(ds),U(_d)}var Xn=M(null),vr=null;function oa(i){var a=i.alternate;Y(Dt,Dt.current&1),Y(Xn,i),vr===null&&(a===null||ds.current!==null||a.memoizedState!==null)&&(vr=i)}function Cm(i){Y(Dt,Dt.current),Y(Xn,i),vr===null&&(vr=i)}function Mw(i){i.tag===22?(Y(Dt,Dt.current),Y(Xn,i),vr===null&&(vr=i)):sa()}function sa(){Y(Dt,Dt.current),Y(Xn,Xn.current)}function Wn(i){U(Xn),vr===i&&(vr=null),U(Dt)}var Dt=M(0);function wd(i){for(var a=i;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Og(l)||Ng(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var wi=0,Ne=null,at=null,Bt=null,xd=!1,fs=!1,to=!1,Sd=0,tc=0,hs=null,NA=0;function Rt(){throw Error(r(321))}function $m(i,a){if(a===null)return!1;for(var l=0;l<a.length&&l<i.length;l++)if(!Yn(i[l],a[l]))return!1;return!0}function Rm(i,a,l,u,p,v){return wi=v,Ne=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,E.H=i===null||i.memoizedState===null?px:qm,to=!1,v=l(u,p),to=!1,fs&&(v=Ow(a,l,u,p)),zw(i),v}function zw(i){E.H=ic;var a=at!==null&&at.next!==null;if(wi=0,Bt=at=Ne=null,xd=!1,tc=0,hs=null,a)throw Error(r(300));i===null||qt||(i=i.dependencies,i!==null&&hd(i)&&(qt=!0))}function Ow(i,a,l,u){Ne=i;var p=0;do{if(fs&&(hs=null),tc=0,fs=!1,25<=p)throw Error(r(301));if(p+=1,Bt=at=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}E.H=mx,v=a(l,u)}while(fs);return v}function DA(){var i=E.H,a=i.useState()[0];return a=typeof a.then=="function"?nc(a):a,i=i.useState()[0],(at!==null?at.memoizedState:null)!==i&&(Ne.flags|=1024),a}function Am(){var i=Sd!==0;return Sd=0,i}function Mm(i,a,l){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~l}function zm(i){if(xd){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}xd=!1}wi=0,Bt=at=Ne=null,fs=!1,tc=Sd=0,hs=null}function wn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?Ne.memoizedState=Bt=i:Bt=Bt.next=i,Bt}function Pt(){if(at===null){var i=Ne.alternate;i=i!==null?i.memoizedState:null}else i=at.next;var a=Bt===null?Ne.memoizedState:Bt.next;if(a!==null)Bt=a,at=i;else{if(i===null)throw Ne.alternate===null?Error(r(467)):Error(r(310));at=i,i={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Bt===null?Ne.memoizedState=Bt=i:Bt=Bt.next=i}return Bt}function Ed(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nc(i){var a=tc;return tc+=1,hs===null&&(hs=[]),i=Sw(hs,i,a),a=Ne,(Bt===null?a.memoizedState:Bt.next)===null&&(a=a.alternate,E.H=a===null||a.memoizedState===null?px:qm),i}function kd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return nc(i);if(i.$$typeof===z)return un(i)}throw Error(r(438,String(i)))}function Om(i){var a=null,l=Ne.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var u=Ne.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Ed(),Ne.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(i),u=0;u<i;u++)l[u]=X;return a.index++,l}function xi(i,a){return typeof a=="function"?a(i):a}function Td(i){var a=Pt();return Nm(a,at,i)}function Nm(i,a,l){var u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=l;var p=i.baseQueue,v=u.pending;if(v!==null){if(p!==null){var x=p.next;
vendor: 14,059 bytes, line 49
49p.next=v.next,v.next=x}a.baseQueue=p=v,u.pending=null}if(v=i.baseState,p===null)i.memoizedState=v;else{a=p.next;var C=x=null,P=null,K=a,ie=!1;do{var se=K.lane&-536870913;if(se!==K.lane?(qe&se)===se:(wi&se)===se){var Q=K.revertLane;if(Q===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),se===ss&&(ie=!0);else if((wi&Q)===Q){K=K.next,Q===ss&&(ie=!0);continue}else se={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},P===null?(C=P=se,x=v):P=P.next=se,Ne.lanes|=Q,ua|=Q;se=K.action,to&&l(v,se),v=K.hasEagerState?K.eagerState:l(v,se)}else Q={lane:se,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},P===null?(C=P=Q,x=v):P=P.next=Q,Ne.lanes|=se,ua|=se;K=K.next}while(K!==null&&K!==a);if(P===null?x=v:P.next=C,!Yn(v,i.memoizedState)&&(qt=!0,ie&&(l=ls,l!==null)))throw l;i.memoizedState=v,i.baseState=x,i.baseQueue=P,u.lastRenderedState=v}return p===null&&(u.lanes=0),[i.memoizedState,u.dispatch]}function Dm(i){var a=Pt(),l=a.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=i;var u=l.dispatch,p=l.pending,v=a.memoizedState;if(p!==null){l.pending=null;var x=p=p.next;do v=i(v,x.action),x=x.next;while(x!==p);Yn(v,a.memoizedState)||(qt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),l.lastRenderedState=v}return[v,u]}function Nw(i,a,l){var u=Ne,p=Pt(),v=Ge;if(v){if(l===void 0)throw Error(r(407));l=l()}else l=a();var x=!Yn((at||p).memoizedState,l);if(x&&(p.memoizedState=l,qt=!0),p=p.queue,Fm(Lw.bind(null,u,p,i),[i]),p.getSnapshot!==a||x||Bt!==null&&Bt.memoizedState.tag&1){if(u.flags|=2048,ps(9,{destroy:void 0},Pw.bind(null,u,p,l,a),null),ct===null)throw Error(r(349));v||(wi&127)!==0||Dw(u,a,l)}return l}function Dw(i,a,l){i.flags|=16384,i={getSnapshot:a,value:l},a=Ne.updateQueue,a===null?(a=Ed(),Ne.updateQueue=a,a.stores=[i]):(l=a.stores,l===null?a.stores=[i]:l.push(i))}function Pw(i,a,l,u){a.value=l,a.getSnapshot=u,Fw(a)&&Iw(i)}function Lw(i,a,l){return l(function(){Fw(a)&&Iw(i)})}function Fw(i){var a=i.getSnapshot;i=i.value;try{var l=a();return!Yn(i,l)}catch{return!0}}function Iw(i){var a=Ga(i,2);a!==null&&Fn(a,i,2)}function Pm(i){var a=wn();if(typeof i=="function"){var l=i;if(i=l(),to){Wi(!0);try{l()}finally{Wi(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:i},a}function jw(i,a,l,u){return i.baseState=l,Nm(i,at,typeof u=="function"?u:xi)}function PA(i,a,l,u,p){if(Rd(i))throw Error(r(485));if(i=a.action,i!==null){var v={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){v.listeners.push(x)}};E.T!==null?l(!0):v.isTransition=!1,u(v),l=a.pending,l===null?(v.next=a.pending=v,Uw(a,v)):(v.next=l.next,a.pending=l.next=v)}}function Uw(i,a){var l=a.action,u=a.payload,p=i.state;if(a.isTransition){var v=E.T,x={};E.T=x;try{var C=l(p,u),P=E.S;P!==null&&P(x,C),Hw(i,a,C)}catch(K){Lm(i,a,K)}finally{v!==null&&x.types!==null&&(v.types=x.types),E.T=v}}else try{v=l(p,u),Hw(i,a,v)}catch(K){Lm(i,a,K)}}function Hw(i,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){Bw(i,a,u)},function(u){return Lm(i,a,u)}):Bw(i,a,l)}function Bw(i,a,l){a.status="fulfilled",a.value=l,qw(a),i.state=l,a=i.pending,a!==null&&(l=a.next,l===a?i.pending=null:(l=l.next,a.next=l,Uw(i,l)))}function Lm(i,a,l){var u=i.pending;if(i.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=l,qw(a),a=a.next;while(a!==u)}i.action=null}function qw(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function Vw(i,a){return a}function Gw(i,a){if(Ge){var l=ct.formState;if(l!==null){e:{var u=Ne;if(Ge){if(ht){t:{for(var p=ht,v=gr;p.nodeType!==8;){if(!v){p=null;break t}if(p=yr(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){ht=yr(p.nextSibling),u=p.data==="F!";break e}}ta(u)}u=!1}u&&(a=l[0])}}return l=wn(),l.memoizedState=l.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vw,lastRenderedState:a},l.queue=u,l=dx.bind(null,Ne,u),u.dispatch=l,u=Pm(!1),v=Bm.bind(null,Ne,!1,u.queue),u=wn(),p={state:a,dispatch:null,action:i,pending:null},u.queue=p,l=PA.bind(null,Ne,p,v,l),p.dispatch=l,u.memoizedState=i,[a,l,!1]}function Yw(i){var a=Pt();return Zw(a,at,i)}function Zw(i,a,l){if(a=Nm(i,a,Vw)[0],i=Td(xi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=nc(a)}catch(x){throw x===cs?gd:x}else u=a;a=Pt();var p=a.queue,v=p.dispatch;return l!==a.memoizedState&&(Ne.flags|=2048,ps(9,{destroy:void 0},LA.bind(null,p,l),null)),[u,v,i]}function LA(i,a){i.action=a}function Xw(i){var a=Pt(),l=at;if(l!==null)return Zw(a,l,i);Pt(),a=a.memoizedState,l=Pt();var u=l.queue.dispatch;return l.memoizedState=i,[a,u,!1]}function ps(i,a,l,u){return i={tag:i,create:l,deps:u,inst:a,next:null},a=Ne.updateQueue,a===null&&(a=Ed(),Ne.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=i.next=i:(u=l.next,l.next=i,i.next=u,a.lastEffect=i),i}function Ww(){return Pt().memoizedState}function Cd(i,a,l,u){var p=wn();Ne.flags|=i,p.memoizedState=ps(1|a,{destroy:void 0},l,u===void 0?null:u)}function $d(i,a,l,u){var p=Pt();u=u===void 0?null:u;var v=p.memoizedState.inst;at!==null&&u!==null&&$m(u,at.memoizedState.deps)?p.memoizedState=ps(a,v,l,u):(Ne.flags|=i,p.memoizedState=ps(1|a,v,l,u))}function Kw(i,a){Cd(8390656,8,i,a)}function Fm(i,a){$d(2048,8,i,a)}function FA(i){Ne.flags|=4;var a=Ne.updateQueue;if(a===null)a=Ed(),Ne.updateQueue=a,a.events=[i];else{var l=a.events;l===null?a.events=[i]:l.push(i)}}function Qw(i){var a=Pt().memoizedState;return FA({ref:a,nextImpl:i}),function(){if((Je&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Jw(i,a){return $d(4,2,i,a)}function ex(i,a){return $d(4,4,i,a)}function tx(i,a){if(typeof a=="function"){i=i();var l=a(i);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function nx(i,a,l){l=l!=null?l.concat([i]):null,$d(4,4,tx.bind(null,a,i),l)}function Im(){}function rx(i,a){var l=Pt();a=a===void 0?null:a;var u=l.memoizedState;return a!==null&&$m(a,u[1])?u[0]:(l.memoizedState=[i,a],i)}function ix(i,a){var l=Pt();a=a===void 0?null:a;var u=l.memoizedState;if(a!==null&&$m(a,u[1]))return u[0];if(u=i(),to){Wi(!0);try{i()}finally{Wi(!1)}}return l.memoizedState=[u,a],u}function jm(i,a,l){return l===void 0||(wi&1073741824)!==0&&(qe&261930)===0?i.memoizedState=a:(i.memoizedState=l,i=a1(),Ne.lanes|=i,ua|=i,l)}function ax(i,a,l,u){return Yn(l,a)?l:ds.current!==null?(i=jm(i,l,u),Yn(i,a)||(qt=!0),i):(wi&42)===0||(wi&1073741824)!==0&&(qe&261930)===0?(qt=!0,i.memoizedState=l):(i=a1(),Ne.lanes|=i,ua|=i,a)}function ox(i,a,l,u,p){var v=R.p;R.p=v!==0&&8>v?v:8;var x=E.T,C={};E.T=C,Bm(i,!1,a,l);try{var P=p(),K=E.S;if(K!==null&&K(C,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ie=OA(P,u);rc(i,a,ie,Jn(i))}else rc(i,a,u,Jn(i))}catch(se){rc(i,a,{then:function(){},status:"rejected",reason:se},Jn())}finally{R.p=v,x!==null&&C.types!==null&&(x.types=C.types),E.T=x}}function IA(){}function Um(i,a,l,u){if(i.tag!==5)throw Error(r(476));var p=sx(i).queue;ox(i,p,a,A,l===null?IA:function(){return lx(i),l(u)})}function sx(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:A},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:l},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function lx(i){var a=sx(i);a.next===null&&(a=i.alternate.memoizedState),rc(i,a.next.queue,{},Jn())}function Hm(){return un(_c)}function cx(){return Pt().memoizedState}function ux(){return Pt().memoizedState}function jA(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var l=Jn();i=ia(l);var u=aa(a,i,l);u!==null&&(Fn(u,a,l),Ql(u,a,l)),a={cache:vm()},i.payload=a;return}a=a.return}}function UA(i,a,l){var u=Jn();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Rd(i)?fx(a,l):(l=om(i,a,l,u),l!==null&&(Fn(l,i,u),hx(l,a,u)))}function dx(i,a,l){var u=Jn();rc(i,a,l,u)}function rc(i,a,l,u){var p={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Rd(i))fx(a,p);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var x=a.lastRenderedState,C=v(x,l);if(p.hasEagerState=!0,p.eagerState=C,Yn(C,x))return cd(i,a,p,0),ct===null&&ld(),!1}catch{}finally{}if(l=om(i,a,p,u),l!==null)return Fn(l,i,u),hx(l,a,u),!0}return!1}function Bm(i,a,l,u){if(u={lane:2,revertLane:wg(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Rd(i)){if(a)throw Error(r(479))}else a=om(i,l,u,2),a!==null&&Fn(a,i,2)}function Rd(i){var a=i.alternate;return i===Ne||a!==null&&a===Ne}function fx(i,a){fs=xd=!0;var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}function hx(i,a,l){if((l&4194048)!==0){var u=a.lanes;u&=i.pendingLanes,l|=u,a.lanes=l,y_(i,l)}}var ic={readContext:un,use:kd,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};ic.useEffectEvent=Rt;var px={readContext:un,use:kd,useCallback:function(i,a){return wn().memoizedState=[i,a===void 0?null:a],i},useContext:un,useEffect:Kw,useImperativeHandle:function(i,a,l){l=l!=null?l.concat([i]):null,Cd(4194308,4,tx.bind(null,a,i),l)},useLayoutEffect:function(i,a){return Cd(4194308,4,i,a)},useInsertionEffect:function(i,a){Cd(4,2,i,a)},useMemo:function(i,a){var l=wn();a=a===void 0?null:a;var u=i();if(to){Wi(!0);try{i()}finally{Wi(!1)}}return l.memoizedState=[u,a],u},useReducer:function(i,a,l){var u=wn();if(l!==void 0){var p=l(a);if(to){Wi(!0);try{l(a)}finally{Wi(!1)}}}else p=a;return u.memoizedState=u.baseState=p,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:p},u.queue=i,i=i.dispatch=UA.bind(null,Ne,i),[u.memoizedState,i]},useRef:function(i){var a=wn();return i={current:i},a.memoizedState=i},useState:function(i){i=Pm(i);var a=i.queue,l=dx.bind(null,Ne,a);return a.dispatch=l,[i.memoizedState,l]},useDebugValue:Im,useDeferredValue:function(i,a){var l=wn();return jm(l,i,a)},useTransition:function(){var i=Pm(!1);return i=ox.bind(null,Ne,i.queue,!0,!1),wn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,l){var u=Ne,p=wn();if(Ge){if(l===void 0)throw Error(r(407));l=l()}else{if(l=a(),ct===null)throw Error(r(349));(qe&127)!==0||Dw(u,a,l)}p.memoizedState=l;var v={value:l,getSnapshot:a};return p.queue=v,Kw(Lw.bind(null,u,v,i),[i]),u.flags|=2048,ps(9,{destroy:void 0},Pw.bind(null,u,v,l,a),null),l},useId:function(){var i=wn(),a=ct.identifierPrefix;if(Ge){var l=Xr,u=Zr;l=(u&~(1<<32-Gn(u)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Sd++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=NA++,a="_"+a+"r_"+l.toString(32)+"_";return i.memoizedState=a},useHostTransitionStatus:Hm,useFormState:Gw,useActionState:Gw,useOptimistic:function(i){var a=wn();a.memoizedState=a.baseState=i;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Bm.bind(null,Ne,!0,l),l.dispatch=a,[i,a]},useMemoCache:Om,useCacheRefresh:function(){return wn().memoizedState=jA.bind(null,Ne)},useEffectEvent:function(i){var a=wn(),l={impl:i};return a.memoizedState=l,function(){if((Je&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},qm={readContext:un,use:kd,useCallback:rx,useContext:un,useEffect:Fm,useImperativeHandle:nx,useInsertionEffect:Jw,useLayoutEffect:ex,useMemo:ix,useReducer:Td,useRef:Ww,useState:function(){return Td(xi)},useDebugValue:Im,useDeferredValue:function(i,a){var l=Pt();return ax(l,at.memoizedState,i,a)},useTransition:function(){var i=Td(xi)[0],a=Pt().memoizedState;return[typeof i=="boolean"?i:nc(i),a]},useSyncExternalStore:Nw,useId:cx,useHostTransitionStatus:Hm,useFormState:Yw,useActionState:Yw,useOptimistic:function(i,a){var l=Pt();return jw(l,at,i,a)},useMemoCache:Om,useCacheRefresh:ux};qm.useEffectEvent=Qw;var mx={readContext:un,use:kd,useCallback:rx,useContext:un,useEffect:Fm,useImperativeHandle:nx,useInsertionEffect:Jw,useLayoutEffect:ex,useMemo:ix,useReducer:Dm,useRef:Ww,useState:function(){return Dm(xi)},useDebugValue:Im,useDeferredValue:function(i,a){var l=Pt();return at===null?jm(l,i,a):ax(l,at.memoizedState,i,a)},useTransition:function(){var i=Dm(xi)[0],a=Pt().memoizedState;return[typeof i=="boolean"?i:nc(i),a]},useSyncExternalStore:Nw,useId:cx,useHostTransitionStatus:Hm,useFormState:Xw,useActionState:Xw,useOptimistic:function(i,a){var l=Pt();return at!==null?jw(l,at,i,a):(l.baseState=i,[i,l.queue.dispatch])},useMemoCache:Om,useCacheRefresh:ux};mx.useEffectEvent=Qw;function Vm(i,a,l,u){a=i.memoizedState,l=l(u,a),l=l==null?a:m({},a,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var Gm={enqueueSetState:function(i,a,l){i=i._reactInternals;var u=Jn(),p=ia(u);p.payload=a,l!=null&&(p.callback=l),a=aa(i,p,u),a!==null&&(Fn(a,i,u),Ql(a,i,u))},enqueueReplaceState:function(i,a,l){i=i._reactInternals;var u=Jn(),p=ia(u);p.tag=1,p.payload=a,l!=null&&(p.callback=l),a=aa(i,p,u),a!==null&&(Fn(a,i,u),Ql(a,i,u))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var l=Jn(),u=ia(l);u.tag=2,a!=null&&(u.callback=a),a=aa(i,u,l),a!==null&&(Fn(a,i,l),Ql(a,i,l))}};function gx(i,a,l,u,p,v,x){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(u,v,x):a.prototype&&a.prototype.isPureReactComponent?!ql(l,u)||!ql(p,v):!0}function vx(i,a,l,u){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),t
vendor: 12,991 bytes, line 49
49ypeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==i&&Gm.enqueueReplaceState(a,a.state,null)}function no(i,a){var l=a;if("ref"in a){l={};for(var u in a)u!=="ref"&&(l[u]=a[u])}if(i=i.defaultProps){l===a&&(l=m({},l));for(var p in i)l[p]===void 0&&(l[p]=i[p])}return l}function yx(i){sd(i)}function bx(i){console.error(i)}function _x(i){sd(i)}function Ad(i,a){try{var l=i.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function wx(i,a,l){try{var u=i.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Ym(i,a,l){return l=ia(l),l.tag=3,l.payload={element:null},l.callback=function(){Ad(i,a)},l}function xx(i){return i=ia(i),i.tag=3,i}function Sx(i,a,l,u){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var v=u.value;i.payload=function(){return p(v)},i.callback=function(){wx(a,l,u)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(i.callback=function(){wx(a,l,u),typeof p!="function"&&(da===null?da=new Set([this]):da.add(this));var C=u.stack;this.componentDidCatch(u.value,{componentStack:C!==null?C:""})})}function HA(i,a,l,u,p){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=l.alternate,a!==null&&os(a,l,p,!0),l=Xn.current,l!==null){switch(l.tag){case 31:case 13:return vr===null?Hd():l.alternate===null&&At===0&&(At=3),l.flags&=-257,l.flags|=65536,l.lanes=p,u===vd?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([u]):a.add(u),yg(i,u,p)),!1;case 22:return l.flags|=65536,u===vd?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([u]):l.add(u)),yg(i,u,p)),!1}throw Error(r(435,l.tag))}return yg(i,u,p),Hd(),!1}if(Ge)return a=Xn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,u!==fm&&(i=Error(r(422),{cause:u}),Yl(hr(i,l)))):(u!==fm&&(a=Error(r(423),{cause:u}),Yl(hr(a,l))),i=i.current.alternate,i.flags|=65536,p&=-p,i.lanes|=p,u=hr(u,l),p=Ym(i.stateNode,u,p),Sm(i,p),At!==4&&(At=2)),!1;var v=Error(r(520),{cause:u});if(v=hr(v,l),fc===null?fc=[v]:fc.push(v),At!==4&&(At=2),a===null)return!0;u=hr(u,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,i=p&-p,l.lanes|=i,i=Ym(l.stateNode,u,i),Sm(l,i),!1;case 1:if(a=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(da===null||!da.has(v))))return l.flags|=65536,p&=-p,l.lanes|=p,p=xx(p),Sx(p,i,l,u),Sm(l,p),!1}l=l.return}while(l!==null);return!1}var Zm=Error(r(461)),qt=!1;function dn(i,a,l,u){a.child=i===null?Cw(a,null,l,u):eo(a,i.child,l,u)}function Ex(i,a,l,u,p){l=l.render;var v=a.ref;if("ref"in u){var x={};for(var C in u)C!=="ref"&&(x[C]=u[C])}else x=u;return Wa(a),u=Rm(i,a,l,x,v,p),C=Am(),i!==null&&!qt?(Mm(i,a,p),Si(i,a,p)):(Ge&&C&&um(a),a.flags|=1,dn(i,a,u,p),a.child)}function kx(i,a,l,u,p){if(i===null){var v=l.type;return typeof v=="function"&&!sm(v)&&v.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=v,Tx(i,a,v,u,p)):(i=dd(l.type,null,u,a,a.mode,p),i.ref=a.ref,i.return=a,a.child=i)}if(v=i.child,!ng(i,p)){var x=v.memoizedProps;if(l=l.compare,l=l!==null?l:ql,l(x,u)&&i.ref===a.ref)return Si(i,a,p)}return a.flags|=1,i=vi(v,u),i.ref=a.ref,i.return=a,a.child=i}function Tx(i,a,l,u,p){if(i!==null){var v=i.memoizedProps;if(ql(v,u)&&i.ref===a.ref)if(qt=!1,a.pendingProps=u=v,ng(i,p))(i.flags&131072)!==0&&(qt=!0);else return a.lanes=i.lanes,Si(i,a,p)}return Xm(i,a,l,u,p)}function Cx(i,a,l,u){var p=u.children,v=i!==null?i.memoizedState:null;if(i===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,i!==null){for(u=a.child=i.child,p=0;u!==null;)p=p|u.lanes|u.childLanes,u=u.sibling;u=p&~v}else u=0,a.child=null;return $x(i,a,v,l,u)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&md(a,v!==null?v.cachePool:null),v!==null?Aw(a,v):km(),Mw(a);else return u=a.lanes=536870912,$x(i,a,v!==null?v.baseLanes|l:l,l,u)}else v!==null?(md(a,v.cachePool),Aw(a,v),sa(),a.memoizedState=null):(i!==null&&md(a,null),km(),sa());return dn(i,a,p,l),a.child}function ac(i,a){return i!==null&&i.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function $x(i,a,l,u,p){var v=bm();return v=v===null?null:{parent:Ht._currentValue,pool:v},a.memoizedState={baseLanes:l,cachePool:v},i!==null&&md(a,null),km(),Mw(a),i!==null&&os(i,a,u,!0),a.childLanes=p,null}function Md(i,a){return a=Od({mode:a.mode,children:a.children},i.mode),a.ref=i.ref,i.child=a,a.return=i,a}function Rx(i,a,l){return eo(a,i.child,null,l),i=Md(a,a.pendingProps),i.flags|=2,Wn(a),a.memoizedState=null,i}function BA(i,a,l){var u=a.pendingProps,p=(a.flags&128)!==0;if(a.flags&=-129,i===null){if(Ge){if(u.mode==="hidden")return i=Md(a,u),a.lanes=536870912,ac(null,i);if(Cm(a),(i=ht)?(i=U1(i,gr),i=i!==null&&i.data==="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:Ji!==null?{id:Zr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},l=fw(i),l.return=a,a.child=l,cn=a,ht=null)):i=null,i===null)throw ta(a);return a.lanes=536870912,null}return Md(a,u)}var v=i.memoizedState;if(v!==null){var x=v.dehydrated;if(Cm(a),p)if(a.flags&256)a.flags&=-257,a=Rx(i,a,l);else if(a.memoizedState!==null)a.child=i.child,a.flags|=128,a=null;else throw Error(r(558));else if(qt||os(i,a,l,!1),p=(l&i.childLanes)!==0,qt||p){if(u=ct,u!==null&&(x=b_(u,l),x!==0&&x!==v.retryLane))throw v.retryLane=x,Ga(i,x),Fn(u,i,x),Zm;Hd(),a=Rx(i,a,l)}else i=v.treeContext,ht=yr(x.nextSibling),cn=a,Ge=!0,ea=null,gr=!1,i!==null&&mw(a,i),a=Md(a,u),a.flags|=4096;return a}return i=vi(i.child,{mode:u.mode,children:u.children}),i.ref=a.ref,a.child=i,i.return=a,i}function zd(i,a){var l=a.ref;if(l===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(i===null||i.ref!==l)&&(a.flags|=4194816)}}function Xm(i,a,l,u,p){return Wa(a),l=Rm(i,a,l,u,void 0,p),u=Am(),i!==null&&!qt?(Mm(i,a,p),Si(i,a,p)):(Ge&&u&&um(a),a.flags|=1,dn(i,a,l,p),a.child)}function Ax(i,a,l,u,p,v){return Wa(a),a.updateQueue=null,l=Ow(a,u,l,p),zw(i),u=Am(),i!==null&&!qt?(Mm(i,a,v),Si(i,a,v)):(Ge&&u&&um(a),a.flags|=1,dn(i,a,l,v),a.child)}function Mx(i,a,l,u,p){if(Wa(a),a.stateNode===null){var v=ns,x=l.contextType;typeof x=="object"&&x!==null&&(v=un(x)),v=new l(u,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Gm,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=u,v.state=a.memoizedState,v.refs={},wm(a),x=l.contextType,v.context=typeof x=="object"&&x!==null?un(x):ns,v.state=a.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Vm(a,l,x,u),v.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(x=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),x!==v.state&&Gm.enqueueReplaceState(v,v.state,null),ec(a,u,v,p),Jl(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(i===null){v=a.stateNode;var C=a.memoizedProps,P=no(l,C);v.props=P;var K=v.context,ie=l.contextType;x=ns,typeof ie=="object"&&ie!==null&&(x=un(ie));var se=l.getDerivedStateFromProps;ie=typeof se=="function"||typeof v.getSnapshotBeforeUpdate=="function",C=a.pendingProps!==C,ie||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C||K!==x)&&vx(a,v,u,x),ra=!1;var Q=a.memoizedState;v.state=Q,ec(a,u,v,p),Jl(),K=a.memoizedState,C||Q!==K||ra?(typeof se=="function"&&(Vm(a,l,se,u),K=a.memoizedState),(P=ra||gx(a,l,P,u,Q,K,x))?(ie||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=K),v.props=u,v.state=K,v.context=x,u=P):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{v=a.stateNode,xm(i,a),x=a.memoizedProps,ie=no(l,x),v.props=ie,se=a.pendingProps,Q=v.context,K=l.contextType,P=ns,typeof K=="object"&&K!==null&&(P=un(K)),C=l.getDerivedStateFromProps,(K=typeof C=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(x!==se||Q!==P)&&vx(a,v,u,P),ra=!1,Q=a.memoizedState,v.state=Q,ec(a,u,v,p),Jl();var ee=a.memoizedState;x!==se||Q!==ee||ra||i!==null&&i.dependencies!==null&&hd(i.dependencies)?(typeof C=="function"&&(Vm(a,l,C,u),ee=a.memoizedState),(ie=ra||gx(a,l,ie,u,Q,ee,P)||i!==null&&i.dependencies!==null&&hd(i.dependencies))?(K||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,ee,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,ee,P)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||x===i.memoizedProps&&Q===i.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&Q===i.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=ee),v.props=u,v.state=ee,v.context=P,u=ie):(typeof v.componentDidUpdate!="function"||x===i.memoizedProps&&Q===i.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||x===i.memoizedProps&&Q===i.memoizedState||(a.flags|=1024),u=!1)}return v=u,zd(i,a),u=(a.flags&128)!==0,v||u?(v=a.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,i!==null&&u?(a.child=eo(a,i.child,null,p),a.child=eo(a,null,l,p)):dn(i,a,l,p),a.memoizedState=v.state,i=a.child):i=Si(i,a,p),i}function zx(i,a,l,u){return Za(),a.flags|=256,dn(i,a,l,u),a.child}var Wm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Km(i){return{baseLanes:i,cachePool:ww()}}function Qm(i,a,l){return i=i!==null?i.childLanes&~l:0,a&&(i|=Qn),i}function Ox(i,a,l){var u=a.pendingProps,p=!1,v=(a.flags&128)!==0,x;if((x=v)||(x=i!==null&&i.memoizedState===null?!1:(Dt.current&2)!==0),x&&(p=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,i===null){if(Ge){if(p?oa(a):sa(),(i=ht)?(i=U1(i,gr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:Ji!==null?{id:Zr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},l=fw(i),l.return=a,a.child=l,cn=a,ht=null)):i=null,i===null)throw ta(a);return Ng(i)?a.lanes=32:a.lanes=536870912,null}var C=u.children;return u=u.fallback,p?(sa(),p=a.mode,C=Od({mode:"hidden",children:C},p),u=Ya(u,p,l,null),C.return=a,u.return=a,C.sibling=u,a.child=C,u=a.child,u.memoizedState=Km(l),u.childLanes=Qm(i,x,l),a.memoizedState=Wm,ac(null,u)):(oa(a),Jm(a,C))}var P=i.memoizedState;if(P!==null&&(C=P.dehydrated,C!==null)){if(v)a.flags&256?(oa(a),a.flags&=-257,a=eg(i,a,l)):a.memoizedState!==null?(sa(),a.child=i.child,a.flags|=128,a=null):(sa(),C=u.fallback,p=a.mode,u=Od({mode:"visible",children:u.children},p),C=Ya(C,p,l,null),C.flags|=2,u.return=a,C.return=a,u.sibling=C,a.child=u,eo(a,i.child,null,l),u=a.child,u.memoizedState=Km(l),u.childLanes=Qm(i,x,l),a.memoizedState=Wm,a=ac(null,u));else if(oa(a),Ng(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var K=x.dgst;x=K,u=Error(r(419)),u.stack="",u.digest=x,Yl({value:u,source:null,stack:null}),a=eg(i,a,l)}else if(qt||os(i,a,l,!1),x=(l&i.childLanes)!==0,qt||x){if(x=ct,x!==null&&(u=b_(x,l),u!==0&&u!==P.retryLane))throw P.retryLane=u,Ga(i,u),Fn(x,i,u),Zm;Og(C)||Hd(),a=eg(i,a,l)}else Og(C)?(a.flags|=192,a.child=i.child,a=null):(i=P.treeContext,ht=yr(C.nextSibling),cn=a,Ge=!0,ea=null,gr=!1,i!==null&&mw(a,i),a=Jm(a,u.children),a.flags|=4096);return a}return p?(sa(),C=u.fallback,p=a.mode,P=i.child,K=P.sibling,u=vi(P,{mode:"hidden",children:u.children}),u.subtreeFlags=P.subtreeFlags&65011712,K!==null?C=vi(K,C):(C=Ya(C,p,l,null),C.flags|=2),C.return=a,u.return=a,u.sibling=C,a.child=u,ac(null,u),u=a.child,C=i.child.memoizedState,C===null?C=Km(l):(p=C.cachePool,p!==null?(P=Ht._currentValue,p=p.parent!==P?{parent:P,pool:P}:p):p=ww(),C={baseLanes:C.baseLanes|l,cachePool:p}),u.memoizedState=C,u.childLanes=Qm(i,x,l),a.memoizedState=Wm,ac(i.child,u)):(oa(a),l=i.child,i=l.sibling,l=vi(l,{mode:"visible",children:u.children}),l.return=a,l.sibling=null,i!==null&&(x=a.deletions,x===null?(a.deleti
vendor: 8,403 bytes, line 49
49ons=[i],a.flags|=16):x.push(i)),a.child=l,a.memoizedState=null,l)}function Jm(i,a){return a=Od({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function Od(i,a){return i=Zn(22,i,null,a),i.lanes=0,i}function eg(i,a,l){return eo(a,i.child,null,l),i=Jm(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function Nx(i,a,l){i.lanes|=a;var u=i.alternate;u!==null&&(u.lanes|=a),mm(i.return,a,l)}function tg(i,a,l,u,p,v){var x=i.memoizedState;x===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p,treeForkCount:v}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=l,x.tailMode=p,x.treeForkCount=v)}function Dx(i,a,l){var u=a.pendingProps,p=u.revealOrder,v=u.tail;u=u.children;var x=Dt.current,C=(x&2)!==0;if(C?(x=x&1|2,a.flags|=128):x&=1,Y(Dt,x),dn(i,a,u,l),u=Ge?Gl:0,!C&&i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Nx(i,l,a);else if(i.tag===19)Nx(i,l,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(p){case"forwards":for(l=a.child,p=null;l!==null;)i=l.alternate,i!==null&&wd(i)===null&&(p=l),l=l.sibling;l=p,l===null?(p=a.child,a.child=null):(p=l.sibling,l.sibling=null),tg(a,!1,p,l,v,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=a.child,a.child=null;p!==null;){if(i=p.alternate,i!==null&&wd(i)===null){a.child=p;break}i=p.sibling,p.sibling=l,l=p,p=i}tg(a,!0,l,null,v,u);break;case"together":tg(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Si(i,a,l){if(i!==null&&(a.dependencies=i.dependencies),ua|=a.lanes,(l&a.childLanes)===0)if(i!==null){if(os(i,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,l=vi(i,i.pendingProps),a.child=l,l.return=a;i.sibling!==null;)i=i.sibling,l=l.sibling=vi(i,i.pendingProps),l.return=a;l.sibling=null}return a.child}function ng(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&hd(i)))}function qA(i,a,l){switch(a.tag){case 3:Te(a,a.stateNode.containerInfo),na(a,Ht,i.memoizedState.cache),Za();break;case 27:case 5:Xe(a);break;case 4:Te(a,a.stateNode.containerInfo);break;case 10:na(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Cm(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(oa(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Ox(i,a,l):(oa(a),i=Si(i,a,l),i!==null?i.sibling:null);oa(a);break;case 19:var p=(i.flags&128)!==0;if(u=(l&a.childLanes)!==0,u||(os(i,a,l,!1),u=(l&a.childLanes)!==0),p){if(u)return Dx(i,a,l);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Y(Dt,Dt.current),u)break;return null;case 22:return a.lanes=0,Cx(i,a,l,a.pendingProps);case 24:na(a,Ht,i.memoizedState.cache)}return Si(i,a,l)}function Px(i,a,l){if(i!==null)if(i.memoizedProps!==a.pendingProps)qt=!0;else{if(!ng(i,l)&&(a.flags&128)===0)return qt=!1,qA(i,a,l);qt=(i.flags&131072)!==0}else qt=!1,Ge&&(a.flags&1048576)!==0&&pw(a,Gl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(i=Qa(a.elementType),a.type=i,typeof i=="function")sm(i)?(u=no(i,u),a.tag=1,a=Mx(null,a,i,u,l)):(a.tag=0,a=Xm(null,a,i,u,l));else{if(i!=null){var p=i.$$typeof;if(p===N){a.tag=11,a=Ex(null,a,i,u,l);break e}else if(p===j){a.tag=14,a=kx(null,a,i,u,l);break e}}throw a=H(i)||i,Error(r(306,a,""))}}return a;case 0:return Xm(i,a,a.type,a.pendingProps,l);case 1:return u=a.type,p=no(u,a.pendingProps),Mx(i,a,u,p,l);case 3:e:{if(Te(a,a.stateNode.containerInfo),i===null)throw Error(r(387));u=a.pendingProps;var v=a.memoizedState;p=v.element,xm(i,a),ec(a,u,null,l);var x=a.memoizedState;if(u=x.cache,na(a,Ht,u),u!==v.cache&&gm(a,[Ht],l,!0),Jl(),u=x.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=zx(i,a,u,l);break e}else if(u!==p){p=hr(Error(r(424)),a),Yl(p),a=zx(i,a,u,l);break e}else{switch(i=a.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(ht=yr(i.firstChild),cn=a,Ge=!0,ea=null,gr=!0,l=Cw(a,null,u,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Za(),u===p){a=Si(i,a,l);break e}dn(i,a,u,l)}a=a.child}return a;case 26:return zd(i,a),i===null?(l=Y1(a.type,null,a.pendingProps,null))?a.memoizedState=l:Ge||(l=a.type,i=a.pendingProps,u=Xd(fe.current).createElement(l),u[ln]=a,u[zn]=i,fn(u,l,i),tn(u),a.stateNode=u):a.memoizedState=Y1(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return Xe(a),i===null&&Ge&&(u=a.stateNode=q1(a.type,a.pendingProps,fe.current),cn=a,gr=!0,p=ht,ma(a.type)?(Dg=p,ht=yr(u.firstChild)):ht=p),dn(i,a,a.pendingProps.children,l),zd(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&Ge&&((p=u=ht)&&(u=_5(u,a.type,a.pendingProps,gr),u!==null?(a.stateNode=u,cn=a,ht=yr(u.firstChild),gr=!1,p=!0):p=!1),p||ta(a)),Xe(a),p=a.type,v=a.pendingProps,x=i!==null?i.memoizedProps:null,u=v.children,Ag(p,v)?u=null:x!==null&&Ag(p,x)&&(a.flags|=32),a.memoizedState!==null&&(p=Rm(i,a,DA,null,null,l),_c._currentValue=p),zd(i,a),dn(i,a,u,l),a.child;case 6:return i===null&&Ge&&((i=l=ht)&&(l=w5(l,a.pendingProps,gr),l!==null?(a.stateNode=l,cn=a,ht=null,i=!0):i=!1),i||ta(a)),null;case 13:return Ox(i,a,l);case 4:return Te(a,a.stateNode.containerInfo),u=a.pendingProps,i===null?a.child=eo(a,null,u,l):dn(i,a,u,l),a.child;case 11:return Ex(i,a,a.type,a.pendingProps,l);case 7:return dn(i,a,a.pendingProps,l),a.child;case 8:return dn(i,a,a.pendingProps.children,l),a.child;case 12:return dn(i,a,a.pendingProps.children,l),a.child;case 10:return u=a.pendingProps,na(a,a.type,u.value),dn(i,a,u.children,l),a.child;case 9:return p=a.type._context,u=a.pendingProps.children,Wa(a),p=un(p),u=u(p),a.flags|=1,dn(i,a,u,l),a.child;case 14:return kx(i,a,a.type,a.pendingProps,l);case 15:return Tx(i,a,a.type,a.pendingProps,l);case 19:return Dx(i,a,l);case 31:return BA(i,a,l);case 22:return Cx(i,a,l,a.pendingProps);case 24:return Wa(a),u=un(Ht),i===null?(p=bm(),p===null&&(p=ct,v=vm(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=l),p=v),a.memoizedState={parent:u,cache:p},wm(a),na(a,Ht,p)):((i.lanes&l)!==0&&(xm(i,a),ec(a,null,null,l),Jl()),p=i.memoizedState,v=a.memoizedState,p.parent!==u?(p={parent:u,cache:u},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),na(a,Ht,u)):(u=v.cache,na(a,Ht,u),u!==p.cache&&gm(a,[Ht],l,!0))),dn(i,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Ei(i){i.flags|=4}function rg(i,a,l,u,p){if((a=(i.mode&32)!==0)&&(a=!1),a){if(i.flags|=16777216,(p&335544128)===p)if(i.stateNode.complete)i.flags|=8192;else if(c1())i.flags|=8192;else throw Ja=vd,_m}else i.flags&=-16777217}function Lx(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Q1(a))if(c1())i.flags|=8192;else throw Ja=vd,_m}function Nd(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?g_():536870912,i.lanes|=a,ys|=a)}function oc(i,a){if(!Ge)switch(i.tailMode){case"hidden":a=i.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:u.sibling=null}}function pt(i){var a=i.alternate!==null&&i.alternate.child===i.child,l=0,u=0;if(a)for(var p=i.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=u,i.childLanes=l,a}function VA(i,a,l){var u=a.pendingProps;switch(dm(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(a),null;case 1:return pt(a),null;case 3:return l=a.stateNode,u=null,i!==null&&(u=i.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),_i(Ht),Ee(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(i===null||i.child===null)&&(as(a)?Ei(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,hm()
vendor: 7,315 bytes, line 49
49)),pt(a),null;case 26:var p=a.type,v=a.memoizedState;return i===null?(Ei(a),v!==null?(pt(a),Lx(a,v)):(pt(a),rg(a,p,null,u,l))):v?v!==i.memoizedState?(Ei(a),pt(a),Lx(a,v)):(pt(a),a.flags&=-16777217):(i=i.memoizedProps,i!==u&&Ei(a),pt(a),rg(a,p,i,u,l)),null;case 27:if(Et(a),l=fe.current,p=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==u&&Ei(a);else{if(!u){if(a.stateNode===null)throw Error(r(166));return pt(a),null}i=ne.current,as(a)?gw(a):(i=q1(p,u,l),a.stateNode=i,Ei(a))}return pt(a),null;case 5:if(Et(a),p=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==u&&Ei(a);else{if(!u){if(a.stateNode===null)throw Error(r(166));return pt(a),null}if(v=ne.current,as(a))gw(a);else{var x=Xd(fe.current);switch(v){case 1:v=x.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:v=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":v=x.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":v=x.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":v=x.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?x.createElement(p,{is:u.is}):x.createElement(p)}}v[ln]=a,v[zn]=u;e:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)v.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break e;for(;x.sibling===null;){if(x.return===null||x.return===a)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=v;e:switch(fn(v,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Ei(a)}}return pt(a),rg(a,a.type,i===null?null:i.memoizedProps,a.pendingProps,l),null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==u&&Ei(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(r(166));if(i=fe.current,as(a)){if(i=a.stateNode,l=a.memoizedProps,u=null,p=cn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}i[ln]=a,i=!!(i.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||O1(i.nodeValue,l)),i||ta(a,!0)}else i=Xd(i).createTextNode(u),i[ln]=a,a.stateNode=i}return pt(a),null;case 31:if(l=a.memoizedState,i===null||i.memoizedState!==null){if(u=as(a),l!==null){if(i===null){if(!u)throw Error(r(318));if(i=a.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[ln]=a}else Za(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),i=!1}else l=hm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=l),i=!0;if(!i)return a.flags&256?(Wn(a),a):(Wn(a),null);if((a.flags&128)!==0)throw Error(r(558))}return pt(a),null;case 13:if(u=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(p=as(a),u!==null&&u.dehydrated!==null){if(i===null){if(!p)throw Error(r(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[ln]=a}else Za(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),p=!1}else p=hm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(Wn(a),a):(Wn(a),null)}return Wn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=u!==null,i=i!==null&&i.memoizedState!==null,l&&(u=a.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==p&&(u.flags|=2048)),l!==i&&l&&(a.child.flags|=8192),Nd(a,a.updateQueue),pt(a),null);case 4:return Ee(),i===null&&kg(a.stateNode.containerInfo),pt(a),null;case 10:return _i(a.type),pt(a),null;case 19:if(U(Dt),u=a.memoizedState,u===null)return pt(a),null;if(p=(a.flags&128)!==0,v=u.rendering,v===null)if(p)oc(u,!1);else{if(At!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(v=wd(i),v!==null){for(a.flags|=128,oc(u,!1),i=v.updateQueue,a.updateQueue=i,Nd(a,i),a.subtreeFlags=0,i=l,l=a.child;l!==null;)dw(l,i),l=l.sibling;return Y(Dt,Dt.current&1|2),Ge&&yi(a,u.treeForkCount),a.child}i=i.sibling}u.tail!==null&&$t()>Id&&(a.flags|=128,p=!0,oc(u,!1),a.lanes=4194304)}else{if(!p)if(i=wd(v),i!==null){if(a.flags|=128,p=!0,i=i.updateQueue,a.updateQueue=i,Nd(a,i),oc(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!Ge)return pt(a),null}else 2*$t()-u.renderingStartTime>Id&&l!==536870912&&(a.flags|=128,p=!0,oc(u,!1),a.lanes=4194304);u.isBackwards?(v.sibling=a.child,a.child=v):(i=u.last,i!==null?i.sibling=v:a.child=v,u.last=v)}return u.tail!==null?(i=u.tail,u.rendering=i,u.tail=i.sibling,u.renderingStartTime=$t(),i.sibling=null,l=Dt.current,Y(Dt,p?l&1|2:l&1),Ge&&yi(a,u.treeForkCount),i):(pt(a),null);case 22:case 23:return Wn(a),Tm(),u=a.memoizedState!==null,i!==null?i.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(l&536870912)!==0&&(a.flags&128)===0&&(pt(a),a.subtreeFlags&6&&(a.flags|=8192)):pt(a),l=a.updateQueue,l!==null&&Nd(a,l.retryQueue),l=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==l&&(a.flags|=2048),i!==null&&U(Ka),null;case 24:return l=null,i!==null&&(l=i.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),_i(Ht),pt(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function GA(i,a){switch(dm(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return _i(Ht),Ee(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return Et(a),null;case 31:if(a.memoizedState!==null){if(Wn(a),a.alternate===null)throw Error(r(340));Za()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 13:if(Wn(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Za()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return U(Dt),null;case 4:return Ee(),null;case 10:return _i(a.type),null;case 22:case 23:return Wn(a),Tm(),i!==null&&U(Ka),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return _i(Ht),null;case 25:return null;default:return null}}function Fx(i,a){switch(dm(a),a.tag){case 3:_i(Ht),Ee();break;case 26:case 27:case 5:Et(a);break;case 4:Ee();break;case 31:a.memoizedState!==null&&Wn(a);break;case 13:Wn(a);break;case 19:U(Dt);break;case 10:_i(a.type);break;case 22:case 23:Wn(a),Tm(),i!==null&&U(Ka);break;case 24:_i(Ht)}}function sc(i,a){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var p=u.next;l=p;do{if((l.tag&i)===i){u=void 0;var v=l.create,x=l.inst;u=v(),x.destroy=u}l=l.next}while(l!==p)}}catch(C){rt(a,a.return,C)}}function la(i,a,l){try{var u=a.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&i)===i){var x=u.inst,C=x.destroy;if(C!==void 0){x.destroy=void 0,p=a;var P=l,K=C;try{K()}catch(ie){rt(p,P,ie)}}}u=u.next}while(u!==v)}}catch(ie){rt(a,a.return,ie)}}function Ix(i){var a=i.updateQueue;if(a!==null){var l=i.stateNode;try{Rw(a,l)}catch(u){rt(i,i.return,u)}}}function jx(i,a,l){l.props=no(i.type,i.memoizedProps),l.state=i.memoizedState;
vendor: 20,515 bytes, line 49
49try{l.componentWillUnmount()}catch(u){rt(i,a,u)}}function lc(i,a){try{var l=i.ref;if(l!==null){switch(i.tag){case 26:case 27:case 5:var u=i.stateNode;break;case 30:u=i.stateNode;break;default:u=i.stateNode}typeof l=="function"?i.refCleanup=l(u):l.current=u}}catch(p){rt(i,a,p)}}function Wr(i,a){var l=i.ref,u=i.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(p){rt(i,a,p)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(p){rt(i,a,p)}else l.current=null}function Ux(i){var a=i.type,l=i.memoizedProps,u=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(p){rt(i,i.return,p)}}function ig(i,a,l){try{var u=i.stateNode;p5(u,i.type,l,a),u[zn]=a}catch(p){rt(i,i.return,p)}}function Hx(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ma(i.type)||i.tag===4}function ag(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Hx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ma(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function og(i,a,l){var u=i.tag;if(u===5||u===6)i=i.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(i,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(i),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=mi));else if(u!==4&&(u===27&&ma(i.type)&&(l=i.stateNode,a=null),i=i.child,i!==null))for(og(i,a,l),i=i.sibling;i!==null;)og(i,a,l),i=i.sibling}function Dd(i,a,l){var u=i.tag;if(u===5||u===6)i=i.stateNode,a?l.insertBefore(i,a):l.appendChild(i);else if(u!==4&&(u===27&&ma(i.type)&&(l=i.stateNode),i=i.child,i!==null))for(Dd(i,a,l),i=i.sibling;i!==null;)Dd(i,a,l),i=i.sibling}function Bx(i){var a=i.stateNode,l=i.memoizedProps;try{for(var u=i.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);fn(a,u,l),a[ln]=i,a[zn]=l}catch(v){rt(i,i.return,v)}}var ki=!1,Vt=!1,sg=!1,qx=typeof WeakSet=="function"?WeakSet:Set,nn=null;function YA(i,a){if(i=i.containerInfo,$g=nf,i=nw(i),em(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var x=0,C=-1,P=-1,K=0,ie=0,se=i,Q=null;t:for(;;){for(var ee;se!==l||p!==0&&se.nodeType!==3||(C=x+p),se!==v||u!==0&&se.nodeType!==3||(P=x+u),se.nodeType===3&&(x+=se.nodeValue.length),(ee=se.firstChild)!==null;)Q=se,se=ee;for(;;){if(se===i)break t;if(Q===l&&++K===p&&(C=x),Q===v&&++ie===u&&(P=x),(ee=se.nextSibling)!==null)break;se=Q,Q=se.parentNode}se=ee}l=C===-1||P===-1?null:{start:C,end:P}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rg={focusedElem:i,selectionRange:l},nf=!1,nn=a;nn!==null;)if(a=nn,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,nn=i;else for(;nn!==null;){switch(a=nn,v=a.alternate,i=a.flags,a.tag){case 0:if((i&4)!==0&&(i=a.updateQueue,i=i!==null?i.events:null,i!==null))for(l=0;l<i.length;l++)p=i[l],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,l=a,p=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var be=no(l.type,p);i=u.getSnapshotBeforeUpdate(be,v),u.__reactInternalSnapshotBeforeUpdate=i}catch(Re){rt(l,l.return,Re)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,l=i.nodeType,l===9)zg(i);else if(l===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":zg(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=a.sibling,i!==null){i.return=a.return,nn=i;break}nn=a.return}}function Vx(i,a,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Ci(i,l),u&4&&sc(5,l);break;case 1:if(Ci(i,l),u&4)if(i=l.stateNode,a===null)try{i.componentDidMount()}catch(x){rt(l,l.return,x)}else{var p=no(l.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(p,a,i.__reactInternalSnapshotBeforeUpdate)}catch(x){rt(l,l.return,x)}}u&64&&Ix(l),u&512&&lc(l,l.return);break;case 3:if(Ci(i,l),u&64&&(i=l.updateQueue,i!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Rw(i,a)}catch(x){rt(l,l.return,x)}}break;case 27:a===null&&u&4&&Bx(l);case 26:case 5:Ci(i,l),a===null&&u&4&&Ux(l),u&512&&lc(l,l.return);break;case 12:Ci(i,l);break;case 31:Ci(i,l),u&4&&Zx(i,l);break;case 13:Ci(i,l),u&4&&Xx(i,l),u&64&&(i=l.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(l=n5.bind(null,l),x5(i,l))));break;case 22:if(u=l.memoizedState!==null||ki,!u){a=a!==null&&a.memoizedState!==null||Vt,p=ki;var v=Vt;ki=u,(Vt=a)&&!v?$i(i,l,(l.subtreeFlags&8772)!==0):Ci(i,l),ki=p,Vt=v}break;case 30:break;default:Ci(i,l)}}function Gx(i){var a=i.alternate;a!==null&&(i.alternate=null,Gx(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&Lp(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var bt=null,Nn=!1;function Ti(i,a,l){for(l=l.child;l!==null;)Yx(i,a,l),l=l.sibling}function Yx(i,a,l){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(zl,l)}catch{}switch(l.tag){case 26:Vt||Wr(l,a),Ti(i,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Vt||Wr(l,a);var u=bt,p=Nn;ma(l.type)&&(bt=l.stateNode,Nn=!1),Ti(i,a,l),vc(l.stateNode),bt=u,Nn=p;break;case 5:Vt||Wr(l,a);case 6:if(u=bt,p=Nn,bt=null,Ti(i,a,l),bt=u,Nn=p,bt!==null)if(Nn)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(l.stateNode)}catch(v){rt(l,a,v)}else try{bt.removeChild(l.stateNode)}catch(v){rt(l,a,v)}break;case 18:bt!==null&&(Nn?(i=bt,I1(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,l.stateNode),Ts(i)):I1(bt,l.stateNode));break;case 4:u=bt,p=Nn,bt=l.stateNode.containerInfo,Nn=!0,Ti(i,a,l),bt=u,Nn=p;break;case 0:case 11:case 14:case 15:la(2,l,a),Vt||la(4,l,a),Ti(i,a,l);break;case 1:Vt||(Wr(l,a),u=l.stateNode,typeof u.componentWillUnmount=="function"&&jx(l,a,u)),Ti(i,a,l);break;case 21:Ti(i,a,l);break;case 22:Vt=(u=Vt)||l.memoizedState!==null,Ti(i,a,l),Vt=u;break;default:Ti(i,a,l)}}function Zx(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Ts(i)}catch(l){rt(a,a.return,l)}}}function Xx(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ts(i)}catch(l){rt(a,a.return,l)}}function ZA(i){switch(i.tag){case 31:case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new qx),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new qx),a;default:throw Error(r(435,i.tag))}}function Pd(i,a){var l=ZA(i);a.forEach(function(u){if(!l.has(u)){l.add(u);var p=r5.bind(null,i,u);u.then(p,p)}})}function Dn(i,a){var l=a.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u],v=i,x=a,C=x;e:for(;C!==null;){switch(C.tag){case 27:if(ma(C.type)){bt=C.stateNode,Nn=!1;break e}break;case 5:bt=C.stateNode,Nn=!1;break e;case 3:case 4:bt=C.stateNode.containerInfo,Nn=!0;break e}C=C.return}if(bt===null)throw Error(r(160));Yx(v,x,p),bt=null,Nn=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Wx(a,i),a=a.sibling}var Dr=null;function Wx(i,a){var l=i.alternate,u=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Dn(a,i),Pn(i),u&4&&(la(3,i,i.return),sc(3,i),la(5,i,i.return));break;case 1:Dn(a,i),Pn(i),u&512&&(Vt||l===null||Wr(l,l.return)),u&64&&ki&&(i=i.updateQueue,i!==null&&(u=i.callbacks,u!==null&&(l=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var p=Dr;if(Dn(a,i),Pn(i),u&512&&(Vt||l===null||Wr(l,l.return)),u&4){var v=l!==null?l.memoizedState:null;if(u=i.memoizedState,l===null)if(u===null)if(i.stateNode===null){e:{u=i.type,l=i.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":v=p.getElementsByTagName("title")[0],(!v||v[Dl]||v[ln]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(u),p.head.insertBefore(v,p.querySelector("head > title"))),fn(v,u,l),v[ln]=i,tn(v),u=v;break e;case"link":var x=W1("link","href",p).get(u+(l.href||""));if(x){for(var C=0;C<x.length;C++)if(v=x[C],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(C,1);break t}}v=p.createElement(u),fn(v,u,l),p.head.appendChild(v);break;case"meta":if(x=W1("meta","content",p).get(u+(l.content||""))){for(C=0;C<x.length;C++)if(v=x[C],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(C,1);break t}}v=p.createElement(u),fn(v,u,l),p.head.appendChild(v);break;default:throw Error(r(468,u))}v[ln]=i,tn(v),u=v}i.stateNode=u}else K1(p,i.type,i.stateNode);else i.stateNode=X1(p,u,i.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?K1(p,i.type,i.stateNode):X1(p,u,i.memoizedProps)):u===null&&i.stateNode!==null&&ig(i,i.memoizedProps,l.memoizedProps)}break;case 27:Dn(a,i),Pn(i),u&512&&(Vt||l===null||Wr(l,l.return)),l!==null&&u&4&&ig(i,i.memoizedProps,l.memoizedProps);break;case 5:if(Dn(a,i),Pn(i),u&512&&(Vt||l===null||Wr(l,l.return)),i.flags&32){p=i.stateNode;try{Xo(p,"")}catch(be){rt(i,i.return,be)}}u&4&&i.stateNode!=null&&(p=i.memoizedProps,ig(i,p,l!==null?l.memoizedProps:p)),u&1024&&(sg=!0);break;case 6:if(Dn(a,i),Pn(i),u&4){if(i.stateNode===null)throw Error(r(162));u=i.memoizedProps,l=i.stateNode;try{l.nodeValue=u}catch(be){rt(i,i.return,be)}}break;case 3:if(Qd=null,p=Dr,Dr=Wd(a.containerInfo),Dn(a,i),Dr=p,Pn(i),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Ts(a.containerInfo)}catch(be){rt(i,i.return,be)}sg&&(sg=!1,Kx(i));break;case 4:u=Dr,Dr=Wd(i.stateNode.containerInfo),Dn(a,i),Pn(i),Dr=u;break;case 12:Dn(a,i),Pn(i);break;case 31:Dn(a,i),Pn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,Pd(i,u)));break;case 13:Dn(a,i),Pn(i),i.child.flags&8192&&i.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Fd=$t()),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,Pd(i,u)));break;case 22:p=i.memoizedState!==null;var P=l!==null&&l.memoizedState!==null,K=ki,ie=Vt;if(ki=K||p,Vt=ie||P,Dn(a,i),Vt=ie,ki=K,Pn(i),u&8192)e:for(a=i.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(l===null||P||ki||Vt||ro(i)),l=null,a=i;;){if(a.tag===5||a.tag===26){if(l===null){P=l=a;try{if(v=P.stateNode,p)x=v.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{C=P.stateNode;var se=P.memoizedProps.style,Q=se!=null&&se.hasOwnProperty("display")?se.display:null;C.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(be){rt(P,P.return,be)}}}else if(a.tag===6){if(l===null){P=a;try{P.stateNode.nodeValue=p?"":P.memoizedProps}catch(be){rt(P,P.return,be)}}}else if(a.tag===18){if(l===null){P=a;try{var ee=P.stateNode;p?j1(ee,!0):j1(P.stateNode,!1)}catch(be){rt(P,P.return,be)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=i.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Pd(i,l))));break;case 19:Dn(a,i),Pn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,Pd(i,u)));break;case 30:break;case 21:break;default:Dn(a,i),Pn(i)}}function Pn(i){var a=i.flags;if(a&2){try{for(var l,u=i.return;u!==null;){if(Hx(u)){l=u;break}u=u.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var p=l.stateNode,v=ag(i);Dd(i,v,p);break;case 5:var x=l.stateNode;l.flags&32&&(Xo(x,""),l.flags&=-33);var C=ag(i);Dd(i,C,x);break;case 3:case 4:var P=l.stateNode.containerInfo,K=ag(i);og(i,K,P);break;default:throw Error(r(161))}}catch(ie){rt(i,i.return,ie)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function Kx(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;Kx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function Ci(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Vx(i,a.alternate,a),a=a.sibling}function ro(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:la(4,a,a.return),ro(a);break;case 1:Wr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&jx(a,a.return,l),ro(a);break;case 27:vc(a.stateNode);case 26:case 5:Wr(a,a.return),ro(a);break;case 22:a.memoizedState===null&&ro(a);break;case 30:ro(a);break;default:ro(a)}i=i.sibling}}function $i(i,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,p=i,v=a,x=v.flags;switch(v.tag){case 0:case 11:case 15:$i(p,v,l),sc(4,v);break;case 1:if($i(p,v,l),u=v,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){rt(u,u.return,K)}if(u=v,p=u.updateQueue,p!==null){var C=u.stateNode;try{var P=p.shared.hiddenCallbacks;if(P!==null)for(p.shared.hiddenCallbacks=null,p=0;p<P.length;p++)$w(P[p],C)}catch(K){rt(u,u.return,K)}}l&&x&64&&Ix(v),lc(v,v.return);break;case 27:Bx(v);case 26:case 5:$i(p,v,l),l&&u===null&&x&4&&Ux(v),lc(v,v.return);break;case 12:$i(p,v,l);break;case 31:$i(p,v,l),l&&x&4&&Zx(p,v);break;case 13:$i(p,v,l),l&&x&4&&Xx(p,v);break;case 22:v.memoizedState===null&&$i(p,v,l),lc(v,v.return);break;case 30:break;default:$i(p,v,l)}a=a.sibling}}function lg(i,a){var l=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(i!=null&&i.refCount++,l!=null&&Zl(l))}function cg(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&Zl(i))}function Pr(i,a,l,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Qx(i,a,l,u),a=a.sibling}function Qx(i,a,l,u){var p=a.flags;switch(a.tag){case 0:case 11:case 15:Pr(i,a,l,u),p&2048&&sc(9,a);break;case 1:Pr(i,a,l,u);break;case 3:Pr(i,a,l,u),p&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&Zl(i)));break;case 12:if(p&2048){Pr(i,a,l,u),i=a.stateNode;try{var v=a.memoizedProps,x=v.id,C=v.onPostCommit;typeof C=="function"&&C(x,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(P){rt(a,a.return,P)}}else Pr(i,a,l,u);break;case 31:Pr(i,a,l,u);break;case 13:Pr(i,a,l,u);break;case 23:break;case 22:v=a.stateNode,x=a.alternate,a.memoizedState!==null?v._visibility&2?Pr(i,a,l,u):cc(i,a):v._visibility&2?Pr(i,a,l,u):(v._visibility|=2,ms(i,a,l,u,(a.subtreeFlags&10256)!==0||!1)),p&2048&&lg(x,a);break;case 24:Pr(i,a,l,u),p&2048&&cg(a.alternate,a);break;default:Pr(i,a,l,u)}}function ms(i,a,l,u,p){for(p=p&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var v=i,x=a,C=l,P=u,K=x.flags;switch(x.tag){case 0:case 11:case 15:ms(v,x,C,P,p),sc(8,x);break;case 23:break;case 22:var ie=x.stateNode;x.memoizedState!==null?ie._visibility&2?ms(v,x,C,P,p):cc(v,x):(ie._visibility|=2,ms(v,x,C,P,p)),p&&K&2048&&lg(x.alternate,x);break;case 24:ms(v,x,C,P,p),p&&K&2048&&cg(x.alternate,x);break;default:ms(v,x,C,P,p)}a=a.sibling}}function cc(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=i,u=a,p=u.flags;switch(u.tag){case 22:cc(l,u),p&2048&&lg(u.alternate,u);break;case 24:cc(l,u),p&2048&&cg(u.alternate,u);break;default:cc(l,u)}a=a.sibling}}var uc=8192;function gs(i,a,l){if(i.subtreeFlags&uc)for(i=i.child;i!==null;)Jx(i,a,l),i=i.sibling}function Jx(i,a,l){switch(i.tag){case 26:gs(i,a,l),i.flags&uc&&i.memoizedState!==null&&N5(l,Dr,i.memoizedState,i.memoizedProps);break;case 5:gs(i,a,l);break;case 3:case 4:var u=Dr;Dr=Wd(i.stateNode.containerInfo),gs(i,a,l),Dr=u;break;case 22:i.memoizedState===null&&(u=i.alternate,u!==null&&u.memoizedState!==null?(u=uc,uc=16777216,gs(i,a,l),uc=u):gs(i,a,l));break;default:gs(i,a,l)}}function e1(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function dc(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];nn=u,n1(u,i)}e1(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)t1(i),i=i.sibling}function t1(i){switch(i.tag){case 0:case 11:case 15:dc(i),i.flags&2048&&la(9,i,i.return);break;case 3:dc(i);break;case 12:dc(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,Ld(i)):dc(i);break;default:dc(i)}}function Ld(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];nn=u,n1(u,i)}e1(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:la(8,a,a.return),Ld(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Ld(a));break;default:Ld(a)}i=i.sibling}}function n1(i,a){for(;nn!==null;){var l=nn;switch(l.tag){case 0:case 11:case 15:la(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Zl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,nn=u;else e:for(l=i;nn!==null;){u=nn;var p=u.sibling,v=u.return;if(Gx(u),u===l){nn=null;break e}if(p!==null){p.return=v,nn=p;break e}nn=v}}}var XA={getCacheForType:function(i){var a=un(Ht),l=a.data.get(i);return l===void 0&&(l=i(),a.data.set(i,l)),l},cacheSignal:function(){return un(Ht).controller.signal}},WA=typeof WeakMap=="function"?WeakMap:Map,Je=0,ct=null,je=null,qe=0,nt=0,Kn=null,ca=!1,vs=!1,ug=!1,Ri=0,At=0,ua=0,io=0,dg=0,Qn=0,ys=0,fc=null,Ln=null,fg=!1,Fd=0,r1=0,Id=1/0,jd=null,da=null,Wt=0,fa=null,bs=null,Ai=0,hg=0,pg=null,i1=null,hc=0,mg=null;function Jn(){return(Je&2)!==0&&qe!==0?qe&-qe:E.T!==null?wg():__()}function a1(){if(Qn===0)if((qe&536870912)===0||Ge){var i=Zu;Zu<<=1,(Zu&3932160)===0&&(Zu=262144),Qn=i}else Qn=536870912;return i=Xn.current,i!==null&&(i.flags|=32),Qn}function Fn(i,a,l){(i===ct&&(nt===2||nt===9)||i.cancelPendingCommit!==null)&&(_s(i,0),ha(i,qe,Qn,!1)),Nl(i,l),((Je&2)===0||i!==ct)&&(i===ct&&((Je&2)===0&&(io|=l),At===4&&ha(i,qe,Qn,!1)),Kr(i))}function o1(i,a,l){if((Je&6)!==0)throw Error(r(327));var u=!l&&(a&127)===0&&(a&i.expiredLanes)===0||Ol(i,a),p=u?JA(i,a):vg(i,a,!0),v=u;do{if(p===0){vs&&!u&&ha(i,a,0,!1);break}else{if(l=i.current.alternate,v&&!KA(l)){p=vg(i,a,!1),v=!1;continue}if(p===2){if(v=a,i.errorRecoveryDisabledLanes&v)var x=0;else x=i.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var C=i;p=fc;var P=C.current.memoizedState.isDehydrated;if(P&&(_s(C,x).flags|=256),x=vg(C,x,!1),x!==2){if(ug&&!P){C.errorRecoveryDisabledLanes|=v,io|=v,p=4;break e}v=Ln,Ln=p,v!==null&&(Ln===null?Ln=v:Ln.push.apply(Ln,v))}p=x}if(v=!1,p!==2)continue}}if(p===1){_s(i,0),ha(i,a,0,!0);break}e:{switch(u=i,v=p,v){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ha(u,a,Qn,!ca);break e;case 2:Ln=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(p=Fd+300-$t(),10<p)){if(ha(u,a,Qn,!ca),Wu(u,0,!0)!==0)break e;Ai=a,u.timeoutHandle=L1(s1.bind(null,u,l,Ln,jd,fg,a,Qn,io,ys,ca,v,"Throttled",-0,0),p);break e}s1(u,l,Ln,jd,fg,a,Qn,io,ys,ca,v,null,-0,0)}}break}while(!0);Kr(i)}function s1(i,a,l,u,p,v,x,C,P,K,ie,se,Q,ee){if(i.timeoutHandle=-1,se=a.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mi},Jx(a,v,se);var be=(v&62914560)===v?Fd-$t():(v&4194048)===v?r1-$t():0;if(be=D5(se,be),be!==null){Ai=v,i.cancelPendingCommit=be(m1.bind(null,i,a,v,l,u,p,x,C,P,ie,se,null,Q,ee)),ha(i,v,x,!K);return}}m1(i,a,v,l,u,p,x,C,P)}function KA(i){for(var a=i;;){var l=a.tag;
vendor: 16,367 bytes, line 49
49if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var p=l[u],v=p.getSnapshot;p=p.value;try{if(!Yn(v(),p))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ha(i,a,l,u){a&=~dg,a&=~io,i.suspendedLanes|=a,i.pingedLanes&=~a,u&&(i.warmLanes|=a),u=i.expirationTimes;for(var p=a;0<p;){var v=31-Gn(p),x=1<<v;u[v]=-1,p&=~x}l!==0&&v_(i,l,a)}function Ud(){return(Je&6)===0?(pc(0),!1):!0}function gg(){if(je!==null){if(nt===0)var i=je.return;else i=je,bi=Xa=null,zm(i),us=null,Wl=0,i=je;for(;i!==null;)Fx(i.alternate,i),i=i.return;je=null}}function _s(i,a){var l=i.timeoutHandle;l!==-1&&(i.timeoutHandle=-1,v5(l)),l=i.cancelPendingCommit,l!==null&&(i.cancelPendingCommit=null,l()),Ai=0,gg(),ct=i,je=l=vi(i.current,null),qe=a,nt=0,Kn=null,ca=!1,vs=Ol(i,a),ug=!1,ys=Qn=dg=io=ua=At=0,Ln=fc=null,fg=!1,(a&8)!==0&&(a|=a&32);var u=i.entangledLanes;if(u!==0)for(i=i.entanglements,u&=a;0<u;){var p=31-Gn(u),v=1<<p;a|=i[p],u&=~v}return Ri=a,ld(),l}function l1(i,a){Ne=null,E.H=ic,a===cs||a===gd?(a=Ew(),nt=3):a===_m?(a=Ew(),nt=4):nt=a===Zm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Kn=a,je===null&&(At=1,Ad(i,hr(a,i.current)))}function c1(){var i=Xn.current;return i===null?!0:(qe&4194048)===qe?vr===null:(qe&62914560)===qe||(qe&536870912)!==0?i===vr:!1}function u1(){var i=E.H;return E.H=ic,i===null?ic:i}function d1(){var i=E.A;return E.A=XA,i}function Hd(){At=4,ca||(qe&4194048)!==qe&&Xn.current!==null||(vs=!0),(ua&134217727)===0&&(io&134217727)===0||ct===null||ha(ct,qe,Qn,!1)}function vg(i,a,l){var u=Je;Je|=2;var p=u1(),v=d1();(ct!==i||qe!==a)&&(jd=null,_s(i,a)),a=!1;var x=At;e:do try{if(nt!==0&&je!==null){var C=je,P=Kn;switch(nt){case 8:gg(),x=6;break e;case 3:case 2:case 9:case 6:Xn.current===null&&(a=!0);var K=nt;if(nt=0,Kn=null,ws(i,C,P,K),l&&vs){x=0;break e}break;default:K=nt,nt=0,Kn=null,ws(i,C,P,K)}}QA(),x=At;break}catch(ie){l1(i,ie)}while(!0);return a&&i.shellSuspendCounter++,bi=Xa=null,Je=u,E.H=p,E.A=v,je===null&&(ct=null,qe=0,ld()),x}function QA(){for(;je!==null;)f1(je)}function JA(i,a){var l=Je;Je|=2;var u=u1(),p=d1();ct!==i||qe!==a?(jd=null,Id=$t()+500,_s(i,a)):vs=Ol(i,a);e:do try{if(nt!==0&&je!==null){a=je;var v=Kn;t:switch(nt){case 1:nt=0,Kn=null,ws(i,a,v,1);break;case 2:case 9:if(xw(v)){nt=0,Kn=null,h1(a);break}a=function(){nt!==2&&nt!==9||ct!==i||(nt=7),Kr(i)},v.then(a,a);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:xw(v)?(nt=0,Kn=null,h1(a)):(nt=0,Kn=null,ws(i,a,v,7));break;case 5:var x=null;switch(je.tag){case 26:x=je.memoizedState;case 5:case 27:var C=je;if(x?Q1(x):C.stateNode.complete){nt=0,Kn=null;var P=C.sibling;if(P!==null)je=P;else{var K=C.return;K!==null?(je=K,Bd(K)):je=null}break t}}nt=0,Kn=null,ws(i,a,v,5);break;case 6:nt=0,Kn=null,ws(i,a,v,6);break;case 8:gg(),At=6;break e;default:throw Error(r(462))}}e5();break}catch(ie){l1(i,ie)}while(!0);return bi=Xa=null,E.H=u,E.A=p,Je=l,je!==null?0:(ct=null,qe=0,ld(),At)}function e5(){for(;je!==null&&!it();)f1(je)}function f1(i){var a=Px(i.alternate,i,Ri);i.memoizedProps=i.pendingProps,a===null?Bd(i):je=a}function h1(i){var a=i,l=a.alternate;switch(a.tag){case 15:case 0:a=Ax(l,a,a.pendingProps,a.type,void 0,qe);break;case 11:a=Ax(l,a,a.pendingProps,a.type.render,a.ref,qe);break;case 5:zm(a);default:Fx(l,a),a=je=dw(a,Ri),a=Px(l,a,Ri)}i.memoizedProps=i.pendingProps,a===null?Bd(i):je=a}function ws(i,a,l,u){bi=Xa=null,zm(a),us=null,Wl=0;var p=a.return;try{if(HA(i,p,a,l,qe)){At=1,Ad(i,hr(l,i.current)),je=null;return}}catch(v){if(p!==null)throw je=p,v;At=1,Ad(i,hr(l,i.current)),je=null;return}a.flags&32768?(Ge||u===1?i=!0:vs||(qe&536870912)!==0?i=!1:(ca=i=!0,(u===2||u===9||u===3||u===6)&&(u=Xn.current,u!==null&&u.tag===13&&(u.flags|=16384))),p1(a,i)):Bd(a)}function Bd(i){var a=i;do{if((a.flags&32768)!==0){p1(a,ca);return}i=a.return;var l=VA(a.alternate,a,Ri);if(l!==null){je=l;return}if(a=a.sibling,a!==null){je=a;return}je=a=i}while(a!==null);At===0&&(At=5)}function p1(i,a){do{var l=GA(i.alternate,i);if(l!==null){l.flags&=32767,je=l;return}if(l=i.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(i=i.sibling,i!==null)){je=i;return}je=i=l}while(i!==null);At=6,je=null}function m1(i,a,l,u,p,v,x,C,P){i.cancelPendingCommit=null;do qd();while(Wt!==0);if((Je&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(v=a.lanes|a.childLanes,v|=am,OR(i,l,v,x,C,P),i===ct&&(je=ct=null,qe=0),bs=a,fa=i,Ai=l,hg=v,pg=p,i1=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,i5(Gu,function(){return _1(),null})):(i.callbackNode=null,i.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=E.T,E.T=null,p=R.p,R.p=2,x=Je,Je|=4;try{YA(i,a,l)}finally{Je=x,R.p=p,E.T=u}}Wt=1,g1(),v1(),y1()}}function g1(){if(Wt===1){Wt=0;var i=fa,a=bs,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=E.T,E.T=null;var u=R.p;R.p=2;var p=Je;Je|=4;try{Wx(a,i);var v=Rg,x=nw(i.containerInfo),C=v.focusedElem,P=v.selectionRange;if(x!==C&&C&&C.ownerDocument&&tw(C.ownerDocument.documentElement,C)){if(P!==null&&em(C)){var K=P.start,ie=P.end;if(ie===void 0&&(ie=K),"selectionStart"in C)C.selectionStart=K,C.selectionEnd=Math.min(ie,C.value.length);else{var se=C.ownerDocument||document,Q=se&&se.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),be=C.textContent.length,Re=Math.min(P.start,be),st=P.end===void 0?Re:Math.min(P.end,be);!ee.extend&&Re>st&&(x=st,st=Re,Re=x);var V=ew(C,Re),F=ew(C,st);if(V&&F&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==F.node||ee.focusOffset!==F.offset)){var W=se.createRange();W.setStart(V.node,V.offset),ee.removeAllRanges(),Re>st?(ee.addRange(W),ee.extend(F.node,F.offset)):(W.setEnd(F.node,F.offset),ee.addRange(W))}}}}for(se=[],ee=C;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<se.length;C++){var oe=se[C];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}nf=!!$g,Rg=$g=null}finally{Je=p,R.p=u,E.T=l}}i.current=a,Wt=2}}function v1(){if(Wt===2){Wt=0;var i=fa,a=bs,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=E.T,E.T=null;var u=R.p;R.p=2;var p=Je;Je|=4;try{Vx(i,a.alternate,a)}finally{Je=p,R.p=u,E.T=l}}Wt=3}}function y1(){if(Wt===4||Wt===3){Wt=0,Ut();var i=fa,a=bs,l=Ai,u=i1;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Wt=5:(Wt=0,bs=fa=null,b1(i,i.pendingLanes));var p=i.pendingLanes;if(p===0&&(da=null),Dp(l),a=a.stateNode,Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(zl,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=E.T,p=R.p,R.p=2,E.T=null;try{for(var v=i.onRecoverableError,x=0;x<u.length;x++){var C=u[x];v(C.value,{componentStack:C.stack})}}finally{E.T=a,R.p=p}}(Ai&3)!==0&&qd(),Kr(i),p=i.pendingLanes,(l&261930)!==0&&(p&42)!==0?i===mg?hc++:(hc=0,mg=i):hc=0,pc(0)}}function b1(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,Zl(a)))}function qd(){return g1(),v1(),y1(),_1()}function _1(){if(Wt!==5)return!1;var i=fa,a=hg;hg=0;var l=Dp(Ai),u=E.T,p=R.p;try{R.p=32>l?32:l,E.T=null,l=pg,pg=null;var v=fa,x=Ai;if(Wt=0,bs=fa=null,Ai=0,(Je&6)!==0)throw Error(r(331));var C=Je;if(Je|=4,t1(v.current),Qx(v,v.current,x,l),Je=C,pc(0,!1),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(zl,v)}catch{}return!0}finally{R.p=p,E.T=u,b1(i,a)}}function w1(i,a,l){a=hr(l,a),a=Ym(i.stateNode,a,2),i=aa(i,a,2),i!==null&&(Nl(i,2),Kr(i))}function rt(i,a,l){if(i.tag===3)w1(i,i,l);else for(;a!==null;){if(a.tag===3){w1(a,i,l);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(da===null||!da.has(u))){i=hr(l,i),l=xx(2),u=aa(a,l,2),u!==null&&(Sx(l,u,a,i),Nl(u,2),Kr(u));break}}a=a.return}}function yg(i,a,l){var u=i.pingCache;if(u===null){u=i.pingCache=new WA;var p=new Set;u.set(a,p)}else p=u.get(a),p===void 0&&(p=new Set,u.set(a,p));p.has(l)||(ug=!0,p.add(l),i=t5.bind(null,i,a,l),a.then(i,i))}function t5(i,a,l){var u=i.pingCache;u!==null&&u.delete(a),i.pingedLanes|=i.suspendedLanes&l,i.warmLanes&=~l,ct===i&&(qe&l)===l&&(At===4||At===3&&(qe&62914560)===qe&&300>$t()-Fd?(Je&2)===0&&_s(i,0):dg|=l,ys===qe&&(ys=0)),Kr(i)}function x1(i,a){a===0&&(a=g_()),i=Ga(i,a),i!==null&&(Nl(i,a),Kr(i))}function n5(i){var a=i.memoizedState,l=0;a!==null&&(l=a.retryLane),x1(i,l)}function r5(i,a){var l=0;switch(i.tag){case 31:case 13:var u=i.stateNode,p=i.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=i.stateNode;break;case 22:u=i.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(a),x1(i,l)}function i5(i,a){return fi(i,a)}var Vd=null,xs=null,bg=!1,Gd=!1,_g=!1,pa=0;function Kr(i){i!==xs&&i.next===null&&(xs===null?Vd=xs=i:xs=xs.next=i),Gd=!0,bg||(bg=!0,o5())}function pc(i,a){if(!_g&&Gd){_g=!0;do for(var l=!1,u=Vd;u!==null;){if(i!==0){var p=u.pendingLanes;if(p===0)var v=0;else{var x=u.suspendedLanes,C=u.pingedLanes;v=(1<<31-Gn(42|i)+1)-1,v&=p&~(x&~C),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,T1(u,v))}else v=qe,v=Wu(u,u===ct?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||Ol(u,v)||(l=!0,T1(u,v));u=u.next}while(l);_g=!1}}function a5(){S1()}function S1(){Gd=bg=!1;var i=0;pa!==0&&g5()&&(i=pa);for(var a=$t(),l=null,u=Vd;u!==null;){var p=u.next,v=E1(u,a);v===0?(u.next=null,l===null?Vd=p:l.next=p,p===null&&(xs=l)):(l=u,(i!==0||(v&3)!==0)&&(Gd=!0)),u=p}Wt!==0&&Wt!==5||pc(i),pa!==0&&(pa=0)}function E1(i,a){for(var l=i.suspendedLanes,u=i.pingedLanes,p=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var x=31-Gn(v),C=1<<x,P=p[x];P===-1?((C&l)===0||(C&u)!==0)&&(p[x]=zR(C,a)):P<=a&&(i.expiredLanes|=C),v&=~C}if(a=ct,l=qe,l=Wu(i,i===a?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u=i.callbackNode,l===0||i===a&&(nt===2||nt===9)||i.cancelPendingCommit!==null)return u!==null&&u!==null&&hi(u),i.callbackNode=null,i.callbackPriority=0;if((l&3)===0||Ol(i,l)){if(a=l&-l,a===i.callbackPriority)return a;switch(u!==null&&hi(u),Dp(l)){case 2:case 8:l=p_;break;case 32:l=Gu;break;case 268435456:l=m_;break;default:l=Gu}return u=k1.bind(null,i),l=fi(l,u),i.callbackPriority=a,i.callbackNode=l,a}return u!==null&&u!==null&&hi(u),i.callbackPriority=2,i.callbackNode=null,2}function k1(i,a){if(Wt!==0&&Wt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var l=i.callbackNode;if(qd()&&i.callbackNode!==l)return null;var u=qe;return u=Wu(i,i===ct?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u===0?null:(o1(i,u,a),E1(i,$t()),i.callbackNode!=null&&i.callbackNode===l?k1.bind(null,i):null)}function T1(i,a){if(qd())return null;o1(i,a,!0)}function o5(){y5(function(){(Je&6)!==0?fi(h_,a5):S1()})}function wg(){if(pa===0){var i=ss;i===0&&(i=Yu,Yu<<=1,(Yu&261888)===0&&(Yu=256)),pa=i}return pa}function C1(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:ed(""+i)}function $1(i,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,i.id&&l.setAttribute("form",i.id),a.parentNode.insertBefore(l,a),i=new FormData(i),l.parentNode.removeChild(l),i}function s5(i,a,l,u,p){if(a==="submit"&&l&&l.stateNode===p){var v=C1((p[zn]||null).action),x=u.submitter;x&&(a=(a=x[zn]||null)?C1(a.formAction):x.getAttribute("formAction"),a!==null&&(v=a,x=null));var C=new id("action","action",null,u,p);i.push({event:C,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(pa!==0){var P=x?$1(p,x):new FormData(p);Um(l,{pending:!0,data:P,method:p.method,action:v},null,P)}}else typeof v=="function"&&(C.preventDefault(),P=x?$1(p,x):new FormData(p),Um(l,{pending:!0,data:P,method:p.method,action:v},v,P))},currentTarget:p}]})}}for(var xg=0;xg<im.length;xg++){var Sg=im[xg],l5=Sg.toLowerCase(),c5=Sg[0].toUpperCase()+Sg.slice(1);Nr(l5,"on"+c5)}Nr(aw,"onAnimationEnd"),Nr(ow,"onAnimationIteration"),Nr(sw,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(kA,"onTransitionRun"),Nr(TA,"onTransitionStart"),Nr(CA,"onTransitionCancel"),Nr(lw,"onTransitionEnd"),Yo("onMouseEnter",["mouseout","mouseover"]),Yo("onMouseLeave",["mouseout","mouseover"]),Yo("onPointerEnter",["pointerout","pointerover"]),Yo("onPointerLeave",["pointerout","pointerover"]),Ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ha("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mc="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(" "),u5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mc));function R1(i,a){a=(a&4)!==0;for(var l=0;l<i.length;l++){var u=i[l],p=u.event;u=u.listeners;e:{var v=void 0;if(a)for(var x=u.length-1;0<=x;x--){var C=u[x],P=C.instance,K=C.currentTarget;if(C=C.listener,P!==v&&p.isPropagationStopped())break e;v=C,p.currentTarget=K;try{v(p)}catch(ie){sd(ie)}p.currentTarget=null,v=P}else for(x=0;x<u.length;x++){if(C=u[x],P=C.instance,K=C.currentTarget,C=C.listener,P!==v&&p.isPropagationStopped())break e;v=C,p.currentTarget=K;try{v(p)}catch(ie){sd(ie)}p.currentTarget=null,v=P}}}}function Ue(i,a){var l=a[Pp];l===void 0&&(l=a[Pp]=new Set);var u=i+"__bubble";l.has(u)||(A1(a,i,2,!1),l.add(u))}function Eg(i,a,l){var u=0;a&&(u|=4),A1(l,i,u,a)}var Yd="_reactListening"+Math.random().toString(36).slice(2);function kg(i){if(!i[Yd]){i[Yd]=!0,S_.forEach(function(l){l!=="selectionchange"&&(u5.has(l)||Eg(l,!1,i),Eg(l,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Yd]||(a[Yd]=!0,Eg("selectionchange",!1,a))}}function A1(i,a,l,u){switch(aS(a)){case 2:var p=F5;break;case 8:p=I5;break;default:p=jg}l=p.bind(null,a,l,i),p=void 0,!Vp||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),u?p!==void 0?i.addEventListener(a,l,{capture:!0,passive:p}):i.addEventListener(a,l,!0):p!==void 0?i.addEventListener(a,l,{passive:p}):i.addEventListener(a,l,!1)}function Tg(i,a,l,u,p){var v=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var C=u.stateNode.containerInfo;if(C===p)break;if(x===4)for(x=u.return;x!==null;){var P=x.tag;if((P===3||P===4)&&x.stateNode.containerInfo===p)return;x=x.return}for(;C!==null;){if(x=qo(C),x===null)return;if(P=x.tag,P===5||P===6||P===26||P===27){u=v=x;continue e}C=C.parentNode}}u=u.return}D_(function(){var K=v,ie=Bp(l),se=[];e:{var Q=cw.get(i);if(Q!==void 0){var ee=id,be=i;switch(i){case"keypress":if(nd(l)===0)break e;case"keydown":case"keyup":ee=rA;break;case"focusin":be="focus",ee=Xp;break;case"focusout":be="blur",ee=Xp;break;case"beforeblur":case"afterblur":ee=Xp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=F_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=VR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=oA;break;case aw:case ow:case sw:ee=ZR;break;case lw:ee=lA;break;case"scroll":case"scrollend":ee=BR;break;case"wheel":ee=uA;break;case"copy":case"cut":case"paste":ee=WR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=j_;break;case"toggle":case"beforetoggle":ee=fA}var Re=(a&4)!==0,st=!Re&&(i==="scroll"||i==="scrollend"),V=Re?Q!==null?Q+"Capture":null:Q;Re=[];for(var F=K,W;F!==null;){var oe=F;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||V===null||(oe=Ll(F,V),oe!=null&&Re.push(gc(F,oe,W))),st)break;F=F.return}
vendor: 1,154 bytes, line 49
490<Re.length&&(Q=new ee(Q,be,null,l,ie),se.push({event:Q,listeners:Re}))}}if((a&7)===0){e:{if(Q=i==="mouseover"||i==="pointerover",ee=i==="mouseout"||i==="pointerout",Q&&l!==Hp&&(be=l.relatedTarget||l.fromElement)&&(qo(be)||be[Bo]))break e;if((ee||Q)&&(Q=ie.window===ie?ie:(Q=ie.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(be=l.relatedTarget||l.toElement,ee=K,be=be?qo(be):null,be!==null&&(st=s(be),Re=be.tag,be!==st||Re!==5&&Re!==27&&Re!==6)&&(be=null)):(ee=null,be=K),ee!==be)){if(Re=F_,oe="onMouseLeave",V="onMouseEnter",F="mouse",(i==="pointerout"||i==="pointerover")&&(Re=j_,oe="onPointerLeave",V="onPointerEnter",F="pointer"),st=ee==null?Q:Pl(ee),W=be==null?Q:Pl(be),Q=new Re(oe,F+"leave",ee,l,ie),Q.target=st,Q.relatedTarget=W,oe=null,qo(ie)===K&&(Re=new Re(V,F+"enter",be,l,ie),Re.target=W,Re.relatedTarget=st,oe=Re),st=oe,ee&&be)t:{for(Re=d5,V=ee,F=be,W=0,oe=V;oe;oe=Re(oe))W++;oe=0;for(var $e=F;$e;$e=Re($e))oe++;for(;0<W-oe;)V=Re(V),W--;for(;0<oe-W;)F=Re(F),oe--;for(;W--;){if(V===F||F!==null&&V===F.alternate){Re=V;break t}V=Re(V),F=Re(F)}Re=null}else Re=null;ee!==null&&M1(se,Q,ee,Re,!1),be!==null&&st!==null&&M1(se,st,be,Re,!0)}}
vendor: 5,209 bytes, lines 49-50
49e:{if(Q=K?Pl(K):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var Ke=Z_;else if(G_(Q))if(X_)Ke=xA;else{Ke=_A;var Se=bA}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&Up(K.elementType)&&(Ke=Z_):Ke=wA;if(Ke&&(Ke=Ke(i,K))){Y_(se,Ke,l,ie);break e}Se&&Se(i,Q,K),i==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&jp(Q,"number",Q.value)}switch(Se=K?Pl(K):window,i){case"focusin":(G_(Se)||Se.contentEditable==="true")&&(Jo=Se,tm=K,Vl=null);break;case"focusout":Vl=tm=Jo=null;break;case"mousedown":nm=!0;break;case"contextmenu":case"mouseup":case"dragend":nm=!1,rw(se,l,ie);break;case"selectionchange":if(EA)break;case"keydown":case"keyup":rw(se,l,ie)}var De;if(Kp)e:{switch(i){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Qo?q_(i,l)&&(Ve="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(Ve="onCompositionStart");Ve&&(U_&&l.locale!=="ko"&&(Qo||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Qo&&(De=P_()):(Qi=ie,Gp="value"in Qi?Qi.value:Qi.textContent,Qo=!0)),Se=Zd(K,Ve),0<Se.length&&(Ve=new I_(Ve,i,null,l,ie),se.push({event:Ve,listeners:Se}),De?Ve.data=De:(De=V_(l),De!==null&&(Ve.data=De)))),(De=pA?mA(i,l):gA(i,l))&&(Ve=Zd(K,"onBeforeInput"),0<Ve.length&&(Se=new I_("onBeforeInput","beforeinput",null,l,ie),se.push({event:Se,listeners:Ve}),Se.data=De)),s5(se,i,K,l,ie)}R1(se,a)})}function gc(i,a,l){return{instance:i,listener:a,currentTarget:l}}function Zd(i,a){for(var l=a+"Capture",u=[];i!==null;){var p=i,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=Ll(i,l),p!=null&&u.unshift(gc(i,p,v)),p=Ll(i,a),p!=null&&u.push(gc(i,p,v))),i.tag===3)return u;i=i.return}return[]}function d5(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function M1(i,a,l,u,p){for(var v=a._reactName,x=[];l!==null&&l!==u;){var C=l,P=C.alternate,K=C.stateNode;if(C=C.tag,P!==null&&P===u)break;C!==5&&C!==26&&C!==27||K===null||(P=K,p?(K=Ll(l,v),K!=null&&x.unshift(gc(l,K,P))):p||(K=Ll(l,v),K!=null&&x.push(gc(l,K,P)))),l=l.return}x.length!==0&&i.push({event:a,listeners:x})}var f5=/\r\n?/g,h5=/\u0000|\uFFFD/g;function z1(i){return(typeof i=="string"?i:""+i).replace(f5,` 50`).replace(h5,"")}function O1(i,a){return a=z1(a),z1(i)===a}function ot(i,a,l,u,p,v){switch(l){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Xo(i,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Xo(i,""+u);break;case"className":Qu(i,"class",u);break;case"tabIndex":Qu(i,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Qu(i,l,u);break;case"style":O_(i,u,v);break;case"data":if(a!=="object"){Qu(i,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||l!=="href")){i.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(l);break}u=ed(""+u),i.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){i.setAttribute(l,"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}else typeof v=="function"&&(l==="formAction"?(a!=="input"&&ot(i,a,"name",p.name,p,null),ot(i,a,"formEncType",p.formEncType,p,null),ot(i,a,"formMethod",p.formMethod,p,null),ot(i,a,"formTarget",p.formTarget,p,null)):(ot(i,a,"encType",p.encType,p,null),ot(i,a,"method",p.method,p,null),ot(i,a,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(l);break}u=ed(""+u),i.setAttribute(l,u);break;case"onClick":u!=null&&(i.onclick=mi);break;case"onScroll":u!=null&&Ue("scroll",i);break;case"onScrollEnd":u!=null&&Ue("scrollend",i);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=l}}break;case"multiple":i.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":i.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){i.removeAttribute("xlink:href");break}l=ed(""+u),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,""+u):i.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
50ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,""):i.removeAttribute(l);break;case"capture":case"download":u===!0?i.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,u):i.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?i.setAttribute(l,u):i.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?i.removeAttribute(l):i.setAttribute(l,u);break;case"popover":Ue("beforetoggle",i),Ue("toggle",i),Ku(i,"popover",u);break;case"xlinkActuate":pi(i,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":pi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":pi(i,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":pi(i,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":pi(i,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":pi(i,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":pi(i,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":pi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":pi(i,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ku(i,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=UR.get(l)||l,Ku(i,l,u))}}function Cg(i,a,l,u,p,v){switch(l){case"style":O_(i,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=l}}break;case"children":typeof u=="string"?Xo(i,u):(typeof u=="number"||typeof u=="bigint")&&Xo(i,""+u);break;case"onScroll":u!=null&&Ue("scroll",i);break;case"onScrollEnd":u!=null&&Ue("scrollend",i);break;case"onClick":u!=null&&(i.onclick=mi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!E_.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),a=l.slice(2,p?l.length-7:void 0),v=i[zn]||null,v=v!=null?v[l]:null,typeof v=="function"&&i.removeEventListener(a,v,p),typeof u=="function")){typeof v!="function"&&v!==null&&(l in
vendor: 5,993 bytes, line 50
50i?i[l]=null:i.hasAttribute(l)&&i.removeAttribute(l)),i.addEventListener(a,u,p);break e}l in i?i[l]=u:u===!0?i.setAttribute(l,""):Ku(i,l,u)}}}function fn(i,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",i),Ue("load",i);var u=!1,p=!1,v;for(v in l)if(l.hasOwnProperty(v)){var x=l[v];if(x!=null)switch(v){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ot(i,a,v,x,l,null)}}p&&ot(i,a,"srcSet",l.srcSet,l,null),u&&ot(i,a,"src",l.src,l,null);return;case"input":Ue("invalid",i);var C=v=x=p=null,P=null,K=null;for(u in l)if(l.hasOwnProperty(u)){var ie=l[u];if(ie!=null)switch(u){case"name":p=ie;break;case"type":x=ie;break;case"checked":P=ie;break;case"defaultChecked":K=ie;break;case"value":v=ie;break;case"defaultValue":C=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,a));break;default:ot(i,a,u,ie,l,null)}}R_(i,v,C,P,K,x,p,!1);return;case"select":Ue("invalid",i),u=x=v=null;for(p in l)if(l.hasOwnProperty(p)&&(C=l[p],C!=null))switch(p){case"value":v=C;break;case"defaultValue":x=C;break;case"multiple":u=C;default:ot(i,a,p,C,l,null)}a=v,l=x,i.multiple=!!u,a!=null?Zo(i,!!u,a,!1):l!=null&&Zo(i,!!u,l,!0);return;case"textarea":Ue("invalid",i),v=p=u=null;for(x in l)if(l.hasOwnProperty(x)&&(C=l[x],C!=null))switch(x){case"value":u=C;break;case"defaultValue":p=C;break;case"children":v=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:ot(i,a,x,C,l,null)}M_(i,u,p,v);return;case"option":for(P in l)if(l.hasOwnProperty(P)&&(u=l[P],u!=null))switch(P){case"selected":i.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:ot(i,a,P,u,l,null)}return;case"dialog":Ue("beforetoggle",i),Ue("toggle",i),Ue("cancel",i),Ue("close",i);break;case"iframe":case"object":Ue("load",i);break;case"video":case"audio":for(u=0;u<mc.length;u++)Ue(mc[u],i);break;case"image":Ue("error",i),Ue("load",i);break;case"details":Ue("toggle",i);break;case"embed":case"source":case"link":Ue("error",i),Ue("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in l)if(l.hasOwnProperty(K)&&(u=l[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ot(i,a,K,u,l,null)}return;default:if(Up(a)){for(ie in l)l.hasOwnProperty(ie)&&(u=l[ie],u!==void 0&&Cg(i,a,ie,u,l,void 0));return}}for(C in l)l.hasOwnProperty(C)&&(u=l[C],u!=null&&ot(i,a,C,u,l,null))}function p5(i,a,l,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,x=null,C=null,P=null,K=null,ie=null;for(ee in l){var se=l[ee];if(l.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":P=se;default:u.hasOwnProperty(ee)||ot(i,a,ee,null,u,se)}}for(var Q in u){var ee=u[Q];if(se=l[Q],u.hasOwnProperty(Q)&&(ee!=null||se!=null))switch(Q){case"type":v=ee;break;case"name":p=ee;break;case"checked":K=ee;break;case"defaultChecked":ie=ee;break;case"value":x=ee;break;case"defaultValue":C=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,a));break;default:ee!==se&&ot(i,a,Q,ee,u,se)}}Ip(i,x,C,P,K,ie,v,p);return;case"select":ee=x=C=Q=null;for(v in l)if(P=l[v],l.hasOwnProperty(v)&&P!=null)switch(v){case"value":break;case"multiple":ee=P;default:u.hasOwnProperty(v)||ot(i,a,v,null,u,P)}for(p in u)if(v=u[p],P=l[p],u.hasOwnProperty(p)&&(v!=null||P!=null))switch(p){case"value":Q=v;break;case"defaultValue":C=v;break;case"multiple":x=v;default:v!==P&&ot(i,a,p,v,u,P)}a=C,l=x,u=ee,Q!=null?Zo(i,!!l,Q,!1):!!u!=!!l&&(a!=null?Zo(i,!!l,a,!0):Zo(i,!!l,l?[]:"",!1));return;case"textarea":ee=Q=null;for(C in l)if(p=l[C],l.hasOwnProperty(C)&&p!=null&&!u.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:ot(i,a,C,null,u,p)}for(x in u)if(p=u[x],v=l[x],u.hasOwnProperty(x)&&(p!=null||v!=null))switch(x){case"value":Q=p;break;case"defaultValue":ee=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==v&&ot(i,a,x,p,u,v)}A_(i,Q,ee);return;case"option":for(var be in l)if(Q=l[be],l.hasOwnProperty(be)&&Q!=null&&!u.hasOwnProperty(be))switch(be){case"selected":i.selected=!1;break;default:ot(i,a,be,null,u,Q)}for(P in u)if(Q=u[P],ee=l[P],u.hasOwnProperty(P)&&Q!==ee&&(Q!=null||ee!=null))switch(P){case"selected":i.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:ot(i,a,P,Q,u,ee)}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 Re in l)Q=l[Re],l.hasOwnProperty(Re)&&Q!=null&&!u.hasOwnProperty(Re)&&ot(i,a,Re,null,u,Q);for(K in u)if(Q=u[K],ee=l[K],u.hasOwnProperty(K)&&Q!==ee&&(Q!=null||ee!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,a));break;default:ot(i,a,K,Q,u,ee)}return;default:if(Up(a)){for(var st in l)Q=l[st],l.hasOwnProperty(st)&&Q!==void 0&&!u.hasOwnProperty(st)&&Cg(i,a,st,void 0,u,Q);for(ie in u)Q=u[ie],ee=l[ie],!u.hasOwnProperty(ie)||Q===ee||Q===void 0&&ee===void 0||Cg(i,a,ie,Q,u,ee);return}}for(var V in l)Q=l[V],l.hasOwnProperty(V)&&Q!=null&&!u.hasOwnProperty(V)&&ot(i,a,V,null,u,Q);for(se in u)Q=u[se],ee=l[se],!u.hasOwnProperty(se)||Q===ee||Q==null&&ee==null||ot(i,a,se,Q,u,ee)}function N1(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m5(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var p=l[u],v=p.transferSize,x=p.initiatorType,C=p.duration;if(v&&C&&N1(x)){for(x=0,C=p.responseEnd,u+=1;u<l.length;u++){var P=l[u],K=P.startTime;if(K>C)break;var ie=P.transferSize,se=P.initiatorType;ie&&N1(se)&&(P=P.responseEnd,x+=ie*(P<C?1:(C-K)/(P-K)))}
vendor: 17,240 bytes, line 50
50if(--u,a+=8*(v+x)/(p.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var $g=null,Rg=null;function Xd(i){return i.nodeType===9?i:i.ownerDocument}function D1(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function P1(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function Ag(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Mg=null;function g5(){var i=window.event;return i&&i.type==="popstate"?i===Mg?!1:(Mg=i,!0):(Mg=null,!1)}var L1=typeof setTimeout=="function"?setTimeout:void 0,v5=typeof clearTimeout=="function"?clearTimeout:void 0,F1=typeof Promise=="function"?Promise:void 0,y5=typeof queueMicrotask=="function"?queueMicrotask:typeof F1<"u"?function(i){return F1.resolve(null).then(i).catch(b5)}:L1;function b5(i){setTimeout(function(){throw i})}function ma(i){return i==="head"}function I1(i,a){var l=a,u=0;do{var p=l.nextSibling;if(i.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"||l==="/&"){if(u===0){i.removeChild(p),Ts(a);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")vc(i.ownerDocument.documentElement);else if(l==="head"){l=i.ownerDocument.head,vc(l);for(var v=l.firstChild;v;){var x=v.nextSibling,C=v.nodeName;v[Dl]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=x}}else l==="body"&&vc(i.ownerDocument.body);l=p}while(l);Ts(a)}function j1(i,a){var l=i;i=0;do{var u=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(i===0)break;i--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||i++;l=u}while(l)}function zg(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zg(l),Lp(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}i.removeChild(l)}}function _5(i,a,l,u){for(;i.nodeType===1;){var p=l;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(u){if(!i[Dl])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==p.rel||i.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=yr(i.nextSibling),i===null)break}return null}function w5(i,a,l){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=yr(i.nextSibling),i===null))return null;return i}function U1(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=yr(i.nextSibling),i===null))return null;return i}function Og(i){return i.data==="$?"||i.data==="$~"}function Ng(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function x5(i,a){var l=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||l.readyState!=="loading")a();else{var u=function(){a(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),i._reactRetry=u}}function yr(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var Dg=null;function H1(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"||l==="/&"){if(a===0)return yr(i.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}i=i.nextSibling}return null}function B1(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return i;a--}else l!=="/$"&&l!=="/&"||a++}i=i.previousSibling}return null}function q1(i,a,l){switch(a=Xd(l),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function vc(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);Lp(i)}var br=new Map,V1=new Set;function Wd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Mi=R.d;R.d={f:S5,r:E5,D:k5,C:T5,L:C5,m:$5,X:A5,S:R5,M:M5};function S5(){var i=Mi.f(),a=Ud();return i||a}function E5(i){var a=Vo(i);a!==null&&a.tag===5&&a.type==="form"?lx(a):Mi.r(i)}var Ss=typeof document>"u"?null:document;function G1(i,a,l){var u=Ss;if(u&&typeof a=="string"&&a){var p=dr(a);p='link[rel="'+i+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),V1.has(p)||(V1.add(p),i={rel:i,crossOrigin:l,href:a},u.querySelector(p)===null&&(a=u.createElement("link"),fn(a,"link",i),tn(a),u.head.appendChild(a)))}}function k5(i){Mi.D(i),G1("dns-prefetch",i,null)}function T5(i,a){Mi.C(i,a),G1("preconnect",i,a)}function C5(i,a,l){Mi.L(i,a,l);var u=Ss;if(u&&i&&a){var p='link[rel="preload"][as="'+dr(a)+'"]';a==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+dr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+dr(l.imageSizes)+'"]')):p+='[href="'+dr(i)+'"]';var v=p;switch(a){case"style":v=Es(i);break;case"script":v=ks(i)}br.has(v)||(i=m({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:i,as:a},l),br.set(v,i),u.querySelector(p)!==null||a==="style"&&u.querySelector(yc(v))||a==="script"&&u.querySelector(bc(v))||(a=u.createElement("link"),fn(a,"link",i),tn(a),u.head.appendChild(a)))}}function $5(i,a){Mi.m(i,a);var l=Ss;if(l&&i){var u=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+dr(u)+'"][href="'+dr(i)+'"]',v=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=ks(i)}if(!br.has(v)&&(i=m({rel:"modulepreload",href:i},a),br.set(v,i),l.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(bc(v)))return}u=l.createElement("link"),fn(u,"link",i),tn(u),l.head.appendChild(u)}}}function R5(i,a,l){Mi.S(i,a,l);var u=Ss;if(u&&i){var p=Go(u).hoistableStyles,v=Es(i);a=a||"default";var x=p.get(v);if(!x){var C={loading:0,preload:null};if(x=u.querySelector(yc(v)))C.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":a},l),(l=br.get(v))&&Pg(i,l);var P=x=u.createElement("link");tn(P),fn(P,"link",i),P._p=new Promise(function(K,ie){P.onload=K,P.onerror=ie}),P.addEventListener("load",function(){C.loading|=1}),P.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Kd(x,a,u)}x={type:"stylesheet",instance:x,count:1,state:C},p.set(v,x)}}}function A5(i,a){Mi.X(i,a);var l=Ss;if(l&&i){var u=Go(l).hoistableScripts,p=ks(i),v=u.get(p);v||(v=l.querySelector(bc(p)),v||(i=m({src:i,async:!0},a),(a=br.get(p))&&Lg(i,a),v=l.createElement("script"),tn(v),fn(v,"link",i),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function M5(i,a){Mi.M(i,a);var l=Ss;if(l&&i){var u=Go(l).hoistableScripts,p=ks(i),v=u.get(p);v||(v=l.querySelector(bc(p)),v||(i=m({src:i,async:!0,type:"module"},a),(a=br.get(p))&&Lg(i,a),v=l.createElement("script"),tn(v),fn(v,"link",i),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function Y1(i,a,l,u){var p=(p=fe.current)?Wd(p):null;if(!p)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Es(l.href),l=Go(p).hoistableStyles,u=l.get(a),u||(u={type:"style",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){i=Es(l.href);var v=Go(p).hoistableStyles,x=v.get(i);if(x||(p=p.ownerDocument||p,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,x),(v=p.querySelector(yc(i)))&&!v._p&&(x.instance=v,x.state.loading=5),br.has(i)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},br.set(i,l),v||z5(p,i,l,x.state))),a&&u===null)throw Error(r(528,""));return x}if(a&&u!==null)throw Error(r(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ks(l),l=Go(p).hoistableScripts,u=l.get(a),u||(u={type:"script",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Es(i){return'href="'+dr(i)+'"'}function yc(i){return'link[rel="stylesheet"]['+i+"]"}function Z1(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function z5(i,a,l,u){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=i.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),fn(a,"link",l),tn(a),i.head.appendChild(a))}function ks(i){return'[src="'+dr(i)+'"]'}function bc(i){return"script[async]"+i}function X1(i,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var u=i.querySelector('style[data-href~="'+dr(l.href)+'"]');if(u)return a.instance=u,tn(u),u;var p=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(i.ownerDocument||i).createElement("style"),tn(u),fn(u,"style",p),Kd(u,l.precedence,i),a.instance=u;case"stylesheet":p=Es(l.href);var v=i.querySelector(yc(p));if(v)return a.state.loading|=4,a.instance=v,tn(v),v;u=Z1(l),(p=br.get(p))&&Pg(u,p),v=(i.ownerDocument||i).createElement("link"),tn(v);var x=v;return x._p=new Promise(function(C,P){x.onload=C,x.onerror=P}),fn(v,"link",u),a.state.loading|=4,Kd(v,l.precedence,i),a.instance=v;case"script":return v=ks(l.src),(p=i.querySelector(bc(v)))?(a.instance=p,tn(p),p):(u=l,(p=br.get(v))&&(u=m({},l),Lg(u,p)),i=i.ownerDocument||i,p=i.createElement("script"),tn(p),fn(p,"link",u),i.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,Kd(u,l.precedence,i));return a.instance}function Kd(i,a,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,v=p,x=0;x<u.length;x++){var C=u[x];if(C.dataset.precedence===a)v=C;else if(v!==p)break}v?v.parentNode.insertBefore(i,v.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(i,a.firstChild))}function Pg(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function Lg(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var Qd=null;function W1(i,a,l){if(Qd===null){var u=new Map,p=Qd=new Map;p.set(l,u)}else p=Qd,u=p.get(l),u||(u=new Map,p.set(l,u));if(u.has(i))return u;for(u.set(i,null),l=l.getElementsByTagName(i),p=0;p<l.length;p++){var v=l[p];if(!(v[Dl]||v[ln]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var x=v.getAttribute(a)||"";x=i+x;var C=u.get(x);C?C.push(v):u.set(x,[v])}}return u}function K1(i,a,l){i=i.ownerDocument||i,i.head.insertBefore(l,a==="title"?i.querySelector("head > title"):null)}function O5(i,a,l){if(l===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return i=a.disabled,typeof a.precedence=="string"&&i==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Q1(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function N5(i,a,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var p=Es(u.href),v=a.querySelector(yc(p));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=Jd.bind(i),a.then(i,i)),l.state.loading|=4,l.instance=v,tn(v);return}v=a.ownerDocument||a,u=Z1(u),(p=br.get(p))&&Pg(u,p),v=v.createElement("link"),tn(v);var x=v;x._p=new Promise(function(C,P){x.onload=C,x.onerror=P}),fn(v,"link",u),l.instance=v}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(i.count++,l=Jd.bind(i),a.addEventListener("load",l),a.addEventListener("error",l))}}var Fg=0;function D5(i,a){return i.stylesheets&&i.count===0&&tf(i,i.stylesheets),0<i.count||0<i.imgCount?function(l){var u=setTimeout(function(){if(i.stylesheets&&tf(i,i.stylesheets),i.unsuspend){var v=i.unsuspend;i.unsuspend=null,v()}},6e4+a);0<i.imgBytes&&Fg===0&&(Fg=62500*m5());var p=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&tf(i,i.stylesheets),i.unsuspend)){var v=i.unsuspend;i.unsuspend=null,v()}},(i.imgBytes>Fg?50:800)+a);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function Jd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tf(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var ef=null;function tf(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,ef=new Map,a.forEach(P5,i),ef=null,Jd.call(i))}function P5(i,a){if(!(a.state.loading&4)){var l=ef.get(i);if(l)var u=l.get(null);else{l=new Map,ef.set(i,l);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var x=p[v];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),u=x)}u&&l.set(null,u)}p=a.instance,x=p.getAttribute("data-precedence"),v=l.get(x)||u,v===u&&l.set(null,p),l.set(x,p),this.count++,u=Jd.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),v?v.parentNode.insertBefore(p,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),a.state.loading|=4}}var _c={$$typeof:z,Provider:null,Consumer:null,_currentValue:A,_currentValue2:A,_threadCount:0};function L5(i,a,l,u,p,v,x,C,P){this.tag=1,this.containerInfo=i,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=Op(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Op(0),this.hiddenUpdates=Op(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function J1(i,a,l,u,p,v,x,C,P,K,ie,se){return i=new L5(i,a,l,x,P,K,ie,se,C),a=1,v===!0&&(a|=24),v=Zn(3,null,null,a),i.current=v,v.stateNode=i,a=vm(),a.refCount++,i.pooledCache=a,a.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:a},wm(v),i}function eS(i){return i?(i=ns,i):ns}function tS(i,a,l,u,p,v){p=eS(p),u.context===null?u.context=p:u.pendingContext=p,u=ia(a),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=aa(i,u,a),l!==null&&(Fn(l,i,a),Ql(l,i,a))}function nS(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<a?l:a}}function Ig(i,a){nS(i,a),(i=i.alternate)&&nS(i,a)}function rS(i){if(i.tag===13||i.tag===31){var a=Ga(i,67108864);a!==null&&Fn(a,i,67108864),Ig(i,67108864)}}function iS(i){if(i.tag===13||i.tag===31){var a=Jn();a=Np(a);var l=Ga(i,a);l!==null&&Fn(l,i,a),Ig(i,a)}}var nf=!0;function F5(i,a,l,u){var p=E.T;E.T=null;var v=R.p;
vendor: 8,670 bytes, line 50
50try{R.p=2,jg(i,a,l,u)}finally{R.p=v,E.T=p}}function I5(i,a,l,u){var p=E.T;E.T=null;var v=R.p;try{R.p=8,jg(i,a,l,u)}finally{R.p=v,E.T=p}}function jg(i,a,l,u){if(nf){var p=Ug(u);if(p===null)Tg(i,a,u,rf,l),oS(i,u);else if(U5(p,i,a,l,u))u.stopPropagation();else if(oS(i,u),a&4&&-1<j5.indexOf(i)){for(;p!==null;){var v=Vo(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var x=Ua(v.pendingLanes);if(x!==0){var C=v;for(C.pendingLanes|=2,C.entangledLanes|=2;x;){var P=1<<31-Gn(x);C.entanglements[1]|=P,x&=~P}Kr(v),(Je&6)===0&&(Id=$t()+500,pc(0))}}break;case 31:case 13:C=Ga(v,2),C!==null&&Fn(C,v,2),Ud(),Ig(v,2)}if(v=Ug(u),v===null&&Tg(i,a,u,rf,l),v===p)break;p=v}p!==null&&u.stopPropagation()}else Tg(i,a,u,null,l)}}function Ug(i){return i=Bp(i),Hg(i)}var rf=null;function Hg(i){if(rf=null,i=qo(i),i!==null){var a=s(i);if(a===null)i=null;else{var l=a.tag;if(l===13){if(i=c(a),i!==null)return i;i=null}else if(l===31){if(i=d(a),i!==null)return i;i=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return rf=i,null}function aS(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(f_()){case h_:return 2;case p_:return 8;case Gu:case TR:return 32;case m_:return 268435456;default:return 32}default:return 32}}var Bg=!1,ga=null,va=null,ya=null,wc=new Map,xc=new Map,ba=[],j5="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 oS(i,a){switch(i){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":wc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(a.pointerId)}}function Sc(i,a,l,u,p,v){return i===null||i.nativeEvent!==v?(i={blockedOn:a,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},a!==null&&(a=Vo(a),a!==null&&rS(a)),i):(i.eventSystemFlags|=u,a=i.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),i)}function U5(i,a,l,u,p){switch(a){case"focusin":return ga=Sc(ga,i,a,l,u,p),!0;case"dragenter":return va=Sc(va,i,a,l,u,p),!0;case"mouseover":return ya=Sc(ya,i,a,l,u,p),!0;case"pointerover":var v=p.pointerId;return wc.set(v,Sc(wc.get(v)||null,i,a,l,u,p)),!0;case"gotpointercapture":return v=p.pointerId,xc.set(v,Sc(xc.get(v)||null,i,a,l,u,p)),!0}return!1}function sS(i){var a=qo(i.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){i.blockedOn=a,w_(i.priority,function(){iS(l)});return}}else if(a===31){if(a=d(l),a!==null){i.blockedOn=a,w_(i.priority,function(){iS(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function af(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var l=Ug(i.nativeEvent);if(l===null){l=i.nativeEvent;var u=new l.constructor(l.type,l);Hp=u,l.target.dispatchEvent(u),Hp=null}else return a=Vo(l),a!==null&&rS(a),i.blockedOn=l,!1;a.shift()}return!0}function lS(i,a,l){af(i)&&l.delete(a)}function H5(){Bg=!1,ga!==null&&af(ga)&&(ga=null),va!==null&&af(va)&&(va=null),ya!==null&&af(ya)&&(ya=null),wc.forEach(lS),xc.forEach(lS)}function of(i,a){i.blockedOn===a&&(i.blockedOn=null,Bg||(Bg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,H5)))}var sf=null;function cS(i){sf!==i&&(sf=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){sf===i&&(sf=null);for(var a=0;a<i.length;a+=3){var l=i[a],u=i[a+1],p=i[a+2];if(typeof u!="function"){if(Hg(u||l)===null)continue;break}var v=Vo(l);v!==null&&(i.splice(a,3),a-=3,Um(v,{pending:!0,data:p,method:l.method,action:u},u,p))}}))}function Ts(i){function a(P){return of(P,i)}ga!==null&&of(ga,i),va!==null&&of(va,i),ya!==null&&of(ya,i),wc.forEach(a),xc.forEach(a);for(var l=0;l<ba.length;l++){var u=ba[l];u.blockedOn===i&&(u.blockedOn=null)}for(;0<ba.length&&(l=ba[0],l.blockedOn===null);)sS(l),l.blockedOn===null&&ba.shift();if(l=(i.ownerDocument||i).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var p=l[u],v=l[u+1],x=p[zn]||null;if(typeof v=="function")x||cS(l);else if(x){var C=null;if(v&&v.hasAttribute("formAction")){if(p=v,x=v[zn]||null)C=x.formAction;else if(Hg(p)!==null)continue}else C=x.action;typeof C=="function"?l[u+1]=C:(l.splice(u,3),u-=3),cS(l)}}}function uS(){function i(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(x){return p=x})},focusReset:"manual",scroll:"manual"})}function a(){p!==null&&(p(),p=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,p=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),p!==null&&(p(),p=null)}}}function qg(i){this._internalRoot=i}lf.prototype.render=qg.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var l=a.current,u=Jn();tS(l,u,i,a,null,null)},lf.prototype.unmount=qg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;tS(i.current,2,null,i,null,null),Ud(),a[Bo]=null}};function lf(i){this._internalRoot=i}lf.prototype.unstable_scheduleHydration=function(i){if(i){var a=__();i={blockedOn:null,target:i,priority:a};for(var l=0;l<ba.length&&a!==0&&a<ba[l].priority;l++);ba.splice(l,0,i),l===0&&sS(i)}};var dS=t.version;if(dS!=="19.2.0")throw Error(r(527,dS,"19.2.0"));R.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=h(a),i=i!==null?g(i):null,i=i===null?null:i.stateNode,i};var B5={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cf.isDisabled&&cf.supportsFiber)try{zl=cf.inject(B5),Vn=cf}catch{}}return kc.createRoot=function(i,a){if(!o(i))throw Error(r(299));var l=!1,u="",p=yx,v=bx,x=_x;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=J1(i,1,!1,null,null,l,u,null,p,v,x,uS),i[Bo]=a.current,kg(i),new qg(a)},kc.hydrateRoot=function(i,a,l){if(!o(i))throw Error(r(299));var u=!1,p="",v=yx,x=bx,C=_x,P=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(C=l.onRecoverableError),l.formState!==void 0&&(P=l.formState)),a=J1(i,1,!0,a,l??null,u,p,P,v,x,C,uS),a.context=eS(null),l=a.current,u=Jn(),u=Np(u),p=ia(u),p.callback=null,aa(l,p,u),l=u,a.current.lanes=l,Nl(a,l),Kr(a),i[Bo]=a.current,kg(i),new lf(a)},kc.version="19.2.0",kc}var wS;
50function J5(){if(wS)return Yg.exports;wS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yg.exports=Q5(),Yg.exports}var eM=J5();function aT(e){if(Array.isArray(e))return e.flatMap(g=>aT(g));if(typeof e!="string")return[];const t=[];let n=0,r,o,s,c,d;const f=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},h=()=>(o=e.charAt(n),o!=="="&&o!==";"&&o!==",");for(;n<e.length;){for(r=n,d=!1;f();)if(o=e.charAt(n),o===","){for(s=n,n+=1,f(),c=n;n<e.length&&h();)n+=1;n<e.length&&e.charAt(n)==="="?(d=!0,n=c,t.push(e.slice(r,s)),r=n):n=s+1}else n+=1;(!d||n>=e.length)&&t.push(e.slice(r,e.length))}return t}function tM(e){return e instanceof Headers?new Headers(e):Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):new Headers}function nM(...e){return e.reduce((t,n)=>{const r=tM(n);for(const[o,s]of r.entries())o==="set-cookie"?aT(s).forEach(d=>t.append("set-cookie",d)):t.set(o,s);return t},new Headers)}var rM="Invariant failed";function or(e,t){if(!e)throw new Error(rM)}const Ws=new WeakMap,Zf=new WeakMap,uh={current:[]};let Kg=!1,tu=0;const Hc=new Set,uf=new Map;function oT(e){const t=Array.from(e).sort((n,r)=>n instanceof Qs&&n.options.deps.includes(r)?1:r instanceof Qs&&r.options.deps.includes(n)?-1:0);for(const n of t){if(uh.current.includes(n))continue;uh.current.push(n),n.recompute();const r=Zf.get(n);if(r)for(const o of r){const s=Ws.get(o);s&&oT(s)}}}function iM(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function aM(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function sT(e){if(tu>0&&!uf.has(e)&&uf.set(e,e.prevState),Hc.add(e),!(tu>0)&&!Kg)try{for(Kg=!0;Hc.size>0;){const t=Array.from(Hc);Hc.clear();for(const n of t){const r=uf.get(n)??n.prevState;n.prevState=r,iM(n)}for(const n of t){const r=Ws.get(n);r&&(uh.current.push(n),oT(r))}for(const n of t){const r=Ws.get(n);if(r)for(const o of r)aM(o)}}}finally{Kg=!1,uh.current=[],uf.clear()}}function Ks(e){tu++;try{e()}finally{if(tu--,tu===0){const t=Array.from(Hc)[0];t&&sT(t)}}}function oM(e){return typeof e=="function"}let sy=class{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var o,s;this.listeners.add(r);const c=(s=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:s.call(o,r,this);return()=>{this.listeners.delete(r),c?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,o;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):oM(t)?this.state=t(this.prevState):this.state=t,(o=(r=this.options)==null?void 0:r.onUpdate)==null||o.call(r),sT(this)}};class Qs{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=[],r=[];for(const o of this.options.deps)n.push(o.prevState),r.push(o.state);return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,r;this.prevState=this.state;const{prevDepVals:o,currDepVals:s,prevVal:c}=this.getDepVals();this.state=this.options.fn({prevDepVals:o,currDepVals:s,prevVal:c}),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const s of this.options.deps)s instanceof Qs&&s.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:o}=this.getDepVals();for(let s=0;s<o.length;s++)if(o[s]!==r[s]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var r,o;this.listeners.add(n);const s=(o=(r=this.options).onSubscribe)==null?void 0:o.call(r,n,this);return()=>{this.listeners.delete(n),s?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Qs)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof sy){let r=Ws.get(n);r||(r=new Set,Ws.set(n,r)),r.add(this);let o=Zf.get(this);o||(o=new Set,Zf.set(this,o)),o.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Qs)this.unregisterFromGraph(n.options.deps);else if(n instanceof sy){const r=Ws.get(n);r&&r.delete(this);const o=Zf.get(this);o&&o.delete(n)}}}function ly(e){return e[e.length-1]}function sM(e){return typeof e=="function"}function wo(e,t){return sM(e)?e(t):e}function xr(e,t){if(e===t)return e;const n=t,r=ES(e)&&ES(n);if(r||xS(e)&&xS(n)){const o=r?e:Object.keys(e).concat(Object.getOwnPropertySymbols(e)),s=o.length,c=r?n:Object.keys(n).concat(Object.getOwnPropertySymbols(n)),d=c.length,f=r?[]:{};let h=0;for(let g=0;g<d;g++){const m=r?g:c[g];(!r&&o.includes(m)||r)&&e[m]===void 0&&n[m]===void 0?(f[m]=void 0,h++):(f[m]=xr(e[m],n[m]),f[m]===e[m]&&e[m]!==void 0&&h++)}return s===d&&h===s?e:f}return n}function xS(e){return Ma(e)&&Object.getOwnPropertyNames(e).length===Object.keys(e).length}function Ma(e){if(!SS(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;
50return!(!SS(n)||!n.hasOwnProperty("isPrototypeOf"))}function SS(e){return Object.prototype.toString.call(e)==="[object Object]"}function ES(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kS(e,t){let n=Object.keys(e);return t&&(n=n.filter(r=>e[r]!==void 0)),n}function Js(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Ma(e)&&Ma(t)){const r=n?.ignoreUndefined??!0,o=kS(e,r),s=kS(t,r);return!n?.partial&&o.length!==s.length?!1:s.every(c=>Js(e[c],t[c],n))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((r,o)=>!Js(r,t[o],n)):!1}function Eo(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e?.(o)},r.reject=o=>{r.status="rejected",n(o)},r}function lM(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Oa(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function cM(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e}async function uM(e){var t,n,r;or((t=window.$_TSR)==null?void 0:t.router);const{manifest:o,dehydratedData:s,lastMatchId:c}=window.$_TSR.router;e.ssr={manifest:o};const d=e.matchRoutes(e.state.location),f=Promise.all(d.map(w=>{const S=e.looseRoutesById[w.routeId];return e.loadRouteChunk(S)}));function h(w){const T=e.looseRoutesById[w.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(T){const k=Eo();w._nonReactive.minPendingPromise=k,w._forcePending=!0,setTimeout(()=>{k.resolve(),e.updateMatch(w.id,$=>($._nonReactive.minPendingPromise=void 0,{...$,_forcePending:void 0}))},T)}}let g;d.forEach(w=>{const S=window.$_TSR.router.matches.find(T=>T.i===w.id);if(!S){w._nonReactive.dehydrated=!1,w.ssr=!1;return}cM(w,S),w._nonReactive.dehydrated=w.ssr!==!1,(w.ssr==="data-only"||w.ssr===!1)&&g===void 0&&(g=w.index,h(w))}),e.__store.setState(w=>({...w,matches:d})),await((r=(n=e.options).hydrate)==null?void 0:r.call(n,s)),await Promise.all(e.state.matches.map(async w=>{var S,T,k,$;const z=e.looseRoutesById[w.routeId],N=e.state.matches[w.index-1],O=N?.context??e.options.context;if(z.options.context){const G={deps:w.loaderDeps,params:w.params,context:O??{},location:e.state.location,navigate:X=>e.navigate({...X,_fromLocation:e.state.location}),buildLocation:e.buildLocation,cause:w.cause,abortController:w.abortController,preload:!1,matches:d};w.__routeContext=z.options.context(G)??void 0}w.context={...O,...w.__routeContext,...w.__beforeLoadContext};const I={matches:e.state.matches,match:w,params:w.params,loaderData:w.loaderData},j=await((T=(S=z.options).head)==null?void 0:T.call(S,I)),L=await(($=(k=z.options).scripts)==null?void 0:$.call(k,I));w.meta=j?.meta,w.links=j?.links,w.headScripts=j?.scripts,w.styles=j?.styles,w.scripts=L}));const m=d[d.length-1].id!==c;if(!d.some(w=>w.ssr===!1)&&!m)return d.forEach(w=>{w._nonReactive.dehydrated=void 0}),f;const _=Promise.resolve().then(()=>e.load()).catch(w=>{console.error("Error during router hydration:",w)});if(m){const w=d[1];or(w),h(w),w._displayPending=!0,w._nonReactive.displayPendingPromise=_,_.then(()=>{Ks(()=>{e.__store.state.status==="pending"&&e.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),e.updateMatch(w.id,S=>({...S,_displayPending:void 0,displayPendingPromise:void 0}))})})}return f}const Na="__TSR_index",TS="popstate",CS="beforeunload";function lT(e){let t=e.getLocation();const n=new Set,r=c=>{t=e.getLocation(),n.forEach(d=>d({location:t,action:c}))},o=c=>{e.notifyOnIndexChange??!0?r(c):t=e.getLocation()},s=async({task:c,navigateOpts:d,...f})=>{var h,g;if(d?.ignoreBlocker??!1){c();return}const y=((h=e.getBlockers)==null?void 0:h.call(e))??[],_=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&y.length&&_)for(const w of y){const S=pu(f.path,f.state);if(await w.blockerFn({currentLocation:t,nextLocation:S,action:f.type})){(g=e.onBlocked)==null||g.call(e);return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,d,f)=>{const h=t.state[Na];d=cy(h+1,d),s({task:()=>{e.pushState(c,d),r({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:c,state:d})},replace:(c,d,f)=>{const h=t.state[Na];d=cy(h,d),s({task:()=>{e.replaceState(c,d),r({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:c,state:d})},go:(c,d)=>{s({task:()=>{e.go(c),o({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:c=>{s({task:()=>{e.back(c?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{s({task:()=>{e.forward(c?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[Na]!==0,createHref:c=>e.createHref(c),block:c=>{var d;if(!e.setBlockers)return()=>{};const f=((d=e.getBlockers)==null?void 0:d.call(e))??[];return e.setBlockers([...f,c]),()=>{var h,g;const m=((h=e.getBlockers)==null?void 0:h.call(e))??[];(g=e.setBlockers)==null||g.call(e,m.filter(y=>y!==c))}},flush:()=>{var c;return(c=e.flush)==null?void 0:c.call(e)},destroy:()=>{var c;return(c=e.destroy)==null?void 0:c.call(e)},notify:r}}function cy(e,t){t||(t={});const n=Yb();return{...t,key:n,__TSR_key:n,[Na]:e}}function dM(e){var t,n;const r=typeof document<"u"?window:void 0,o=r.history.pushState,s=r.history.replaceState;let c=[];const d=()=>c,f=X=>c=X,h=(X=>X),g=(()=>pu(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state));if(!((t=r.history.state)!=null&&t.__TSR_key)&&!((n=r.history.state)!=null&&n.key)){const X=Yb();r.history.replaceState({[Na]:0,key:X,__TSR_key:X},"")}let m=g(),y,_=!1,w=!1,S=!1,T=!1;const k=()=>m;let $,z;const N=()=>{$&&(G._ignoreSubscribers=!0,($.isPush?r.history.pushState:r.history.replaceState)($.state,"",$.href),G._ignoreSubscribers=!1,$=void 0,z=void 0,y=void 0)},O=(X,D,Z)=>{const ce=h(D);z||(y=m),m=pu(D,Z),$={href:ce,state:Z,isPush:$?.isPush||X==="push"},z||(z=Promise.resolve().then(()=>N()))},I=X=>{m=g(),G.notify({type:X})},j=async()=>
50{if(w){w=!1;return}const X=g(),D=X.state[Na]-m.state[Na],Z=D===1,ce=D===-1,H=!Z&&!ce||_;_=!1;const ae=H?"GO":ce?"BACK":"FORWARD",E=H?{type:"GO",index:D}:{type:ce?"BACK":"FORWARD"};if(S)S=!1;else{const R=d();if(typeof document<"u"&&R.length){for(const A of R)if(await A.blockerFn({currentLocation:m,nextLocation:X,action:ae})){w=!0,r.history.go(1),G.notify(E);return}}}m=g(),G.notify(E)},L=X=>{if(T){T=!1;return}let D=!1;const Z=d();if(typeof document<"u"&&Z.length)for(const ce of Z){const H=ce.enableBeforeUnload??!0;if(H===!0){D=!0;break}if(typeof H=="function"&&H()===!0){D=!0;break}}if(D)return X.preventDefault(),X.returnValue=""},G=lT({getLocation:k,getLength:()=>r.history.length,pushState:(X,D)=>O("push",X,D),replaceState:(X,D)=>O("replace",X,D),back:X=>(X&&(S=!0),T=!0,r.history.back()),forward:X=>{X&&(S=!0),T=!0,r.history.forward()},go:X=>{_=!0,r.history.go(X)},createHref:X=>h(X),flush:N,destroy:()=>{r.history.pushState=o,r.history.replaceState=s,r.removeEventListener(CS,L,{capture:!0}),r.removeEventListener(TS,j)},onBlocked:()=>{y&&m!==y&&(m=y)},getBlockers:d,setBlockers:f,notifyOnIndexChange:!1});return r.addEventListener(CS,L,{capture:!0}),r.addEventListener(TS,j),r.history.pushState=function(...X){const D=o.apply(r.history,X);return G._ignoreSubscribers||I("PUSH"),D},r.history.replaceState=function(...X){const D=s.apply(r.history,X);return G._ignoreSubscribers||I("REPLACE"),D},G}function fM(e={initialEntries:["/"]}){const t=e.initialEntries;let n=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1;const r=t.map((s,c)=>cy(c,void 0));return lT({getLocation:()=>pu(t[n],r[n]),getLength:()=>t.length,pushState:(s,c)=>{n<t.length-1&&(t.splice(n+1),r.splice(n+1)),r.push(c),t.push(s),n=Math.max(t.length-1,0)},replaceState:(s,c)=>{r[n]=c,t[n]=s},back:()=>{n=Math.max(n-1,0)},forward:()=>{n=Math.min(n+1,t.length-1)},go:s=>{n=Math.min(Math.max(n+s,0),t.length-1)},createHref:s=>s})}function pu(e,t){const n=e.indexOf("#"),r=e.indexOf("?"),o=Yb();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{[Na]:0,key:o,__TSR_key:o}}}function Yb(){return(Math.random()+1).toString(36).substring(7)}const qi=0,ko=1,To=2,ul=3;function Vi(e){return Zb(e.filter(t=>t!==void 0).join("/"))}function Zb(e){return e.replace(/\/{2,}/g,"/")}function Xb(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function dl(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Qg(e){return dl(Xb(e))}function dh(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function hM(e,t,n){return dh(e,n)===dh(t,n)}function pM(e){const{type:t,value:n}=e;if(t===qi)return n;const{prefixSegment:r,suffixSegment:o}=e;if(t===ko){const s=n.substring(1);if(r&&o)return`${r}{$${s}}${o}`;if(r)return`${r}{$${s}}`;if(o)return`{$${s}}${o}`}if(t===ul){const s=n.substring(1);return r&&o?`${r}{-$${s}}${o}`:r?`${r}{-$${s}}`:o?`{-$${s}}${o}`:`{-$${s}}`}if(t===To){if(r&&o)return`${r}{$}${o}`;if(r)return`${r}{$}`;if(o)return`{$}${o}`}return n}function mM({basepath:e,base:t,to:n,trailingSlash:r="never",caseSensitive:o,parseCache:s}){var c;t=fh(e,t,o),n=fh(e,n,o);let d=fl(t,s).slice();const f=fl(n,s);d.length>1&&((c=ly(d))==null?void 0:c.value)==="/"&&d.pop();for(let m=0,y=f.length;m<y;m++){const _=f[m],w=_.value;w==="/"?m?m===y-1&&d.push(_):d=[_]:w===".."?d.pop():w==="."||d.push(_)}d.length>1&&(ly(d).value==="/"?r==="never"&&d.pop():r==="always"&&d.push({type:qi,value:"/"}));const h=d.map(pM);return Vi([e,...h])}const fl=(e,t)=>{if(!e)return[];const n=t?.get(e);if(n)return n;const r=wM(e);return t?.set(e,r),r},gM=/^\$.{1,}$/,vM=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,yM=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,bM=/^\$$/,_M=/^(.*?)\{\$\}(.*)$/;function wM(e){e=Zb(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:qi,value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>{const o=r.match(_M);if(o){const d=o[1],f=o[2];return{type:To,value:"$",prefixSegment:d||void 0,suffixSegment:f||void 0}}const s=r.match(yM);if(s){const d=s[1],f=s[2],h=s[3];return{type:ul,value:f,prefixSegment:d||void 0,suffixSegment:h||void 0}}const c=r.match(vM);if(c){const d=c[1],f=c[2],h=c[3];return{type:ko,value:""+f,prefixSegment:d||void 0,suffixSegment:h||void 0}}if(gM.test(r)){const d=r.substring(1);return{type:ko,value:"$"+d,prefixSegment:void 0,suffixSegment:void 0}}return bM.test(r)?{type:To,value:"$",prefixSegment:void 0,suffixSegment:void 0}
50:{type:qi,value:r.includes("%25")?r.split("%25").map(d=>decodeURI(d)).join("%25"):decodeURI(r)}})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:qi,value:"/"})),t}function df({path:e,params:t,leaveWildcards:n,leaveParams:r,decodeCharMap:o,parseCache:s}){const c=fl(e,s);function d(m){const y=t[m],_=typeof y=="string";return m==="*"||m==="_splat"?_?encodeURI(y):y:_?xM(y,o):y}let f=!1;const h={},g=Vi(c.map(m=>{if(m.type===qi)return m.value;if(m.type===To){h._splat=t._splat;const y=m.prefixSegment||"",_=m.suffixSegment||"";if(!("_splat"in t))return f=!0,n?`${y}${m.value}${_}`:y||_?`${y}${_}`:void 0;const w=d("_splat");return n?`${y}${m.value}${w??""}${_}`:`${y}${w}${_}`}if(m.type===ko){const y=m.value.substring(1);!f&&!(y in t)&&(f=!0),h[y]=t[y];const _=m.prefixSegment||"",w=m.suffixSegment||"";if(r){const S=d(m.value);return`${_}${m.value}${S??""}${w}`}return`${_}${d(y)??"undefined"}${w}`}if(m.type===ul){const y=m.value.substring(1),_=m.prefixSegment||"",w=m.suffixSegment||"";if(!(y in t)||t[y]==null)return n?`${_}${y}${w}`:_||w?`${_}${w}`:void 0;if(h[y]=t[y],r){const S=d(m.value);return`${_}${m.value}${S??""}${w}`}return n?`${_}${y}${d(y)??""}${w}`:`${_}${d(y)??""}${w}`}return m.value}));return{usedParams:h,interpolatedPath:g,isMissingParams:f}}function xM(e,t){let n=encodeURIComponent(e);if(t)for(const[r,o]of t)n=n.replaceAll(r,o);return n}function uy(e,t,n,r){const o=SM(e,t,n,r);if(!(n.to&&!o))return o??{}}function fh(e,t,n=!1){const r=n?e:e.toLowerCase(),o=n?t:t.toLowerCase();switch(!0){case r==="/":return t;case o===r:return"";case t.length<e.length:return t;case o[r.length]!=="/":return t;case o.startsWith(r):return t.slice(e.length);default:return t}}function SM(e,t,{to:n,fuzzy:r,caseSensitive:o},s){if(e!=="/"&&!t.startsWith(e))return;t=fh(e,t,o),n=fh(e,`${n??"$"}`,o);const c=fl(t.startsWith("/")?t:`/${t}`,s),d=fl(n.startsWith("/")?n:`/${n}`,s),f={};return EM(c,d,f,r,o)?f:void 0}function EM(e,t,n,r,o){var s,c,d;let f=0,h=0;for(;f<e.length||h<t.length;){const g=e[f],m=t[h];if(m){if(m.type===To){const y=e.slice(f);let _;if(m.prefixSegment||m.suffixSegment){if(!g)return!1;const w=m.prefixSegment||"",S=m.suffixSegment||"",T=g.value;if("prefixSegment"in m&&!T.startsWith(w)||"suffixSegment"in m&&!((s=e[e.length-1])!=null&&s.value.endsWith(S)))return!1;let k=decodeURI(Vi(y.map($=>$.value)));w&&k.startsWith(w)&&(k=k.slice(w.length)),S&&k.endsWith(S)&&(k=k.slice(0,k.length-S.length)),_=k}else _=decodeURI(Vi(y.map(w=>w.value)));return n["*"]=_,n._splat=_,!0}if(m.type===qi){if(m.value==="/"&&!g?.value){h++;continue}if(g){if(o){if(m.value!==g.value)return!1}else if(m.value.toLowerCase()!==g.value.toLowerCase())return!1;f++,h++;continue}else return!1}if(m.type===ko){if(!g||g.value==="/")return!1;let y="",_=!1;if(m.prefixSegment||m.suffixSegment){const w=m.prefixSegment||"",S=m.suffixSegment||"",T=g.value;if(w&&!T.startsWith(w)||S&&!T.endsWith(S))return!1;let k=T;w&&k.startsWith(w)&&(k=k.slice(w.length)),S&&k.endsWith(S)&&(k=k.slice(0,k.length-S.length)),y=decodeURIComponent(k),_=!0}else y=decodeURIComponent(g.value),_=!0;_&&(n[m.value.substring(1)]=y,f++),h++;continue}if(m.type===ul){if(!g){h++;continue}if(g.value==="/"){h++;continue}let y="",_=!1;if(m.prefixSegment||m.suffixSegment){const w=m.prefixSegment||"",S=m.suffixSegment||"",T=g.value;if((!w||T.startsWith(w))&&(!S||T.endsWith(S))){let k=T;w&&k.startsWith(w)&&(k=k.slice(w.length)),S&&k.endsWith(S)&&(k=k.slice(0,k.length-S.length)),y=decodeURIComponent(k),_=!0}}else{let w=!0;for(let S=h+1;S<t.length;S++){const T=t[S];if(T?.type===qi&&T.value===g.value){w=!1;break}if(T?.type===ko||T?.type===To){e.length<t.length&&(w=!1);break}}w&&(y=decodeURIComponent(g.value),_=!0)}_&&(n[m.value.substring(1)]=y,f++),h++;continue}}if(f<e.length&&h>=t.length)return n["**"]=Vi(e.slice(f).map(y=>y.value)),!!r&&((c=t[t.length-1])==null?void 0:c.value)!=="/";if(h<t.length&&f>=e.length){for(let y=h;y<t.length;y++)if(((d=t[y])==null?void 0:d.type)!==ul)return!1;break}break}return!0}function Dq(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Rr(e){return!!e?.isNotFound}function kM(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const hh="tsr-scroll-restoration-v1_3",TM=(e,t)=>{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function CM(){const e=kM();if(!e)return;const t=e.getItem(hh);let n=t?JSON.parse(t):{};return{state:n,set:r=>(n=wo(r,n)||n,e.setItem(hh,JSON.stringify(n)))}}const Jg=CM(),dy=e=>e.state.__TSR_key||e.href;function $M(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let ph=!1;function cT({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:o,location:s}){var c,d;let f;try{f=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(m){console.error(m);return}const h=t||((c=window.history.state)==null?void 0:c.key),g=f[h];ph=!0;e:{if(r&&g&&Object.keys(g).length>0){for(const _ in g){const w=g[_];if(_==="window")window.scrollTo({top:w.scrollY,left:w.scrollX,behavior:n});else if(_){const S=document.querySelector(_);S&&(S.scrollLeft=w.scrollX,S.scrollTop=w.scrollY)}}break e}const m=(s??window.location).hash.split("#",2)[1];if(m){const _=((d=window.history.state)==null?void 0:d.__hashScrollIntoViewOptions)??!0;if(_){const w=document.getElementById(m);w&&w.scrollIntoView(_)}break e}const y={top:0,left:0,behavior:n};if(window.scrollTo(y),o)for(const _ of o){if(_==="window")continue;const w=typeof _=="function"?_():document.querySelector(_);w&&w.scrollTo(y)}}ph=!1}function RM(e,t){if(Jg===void 0||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup))return;e.isScrollRestorationSetup=!0,ph=!1;const r=e.options.getScrollRestorationKey||dy;window.history.scrollRestoration="manual";const o=s=>{if(ph||!e.isScrollRestoring)return;let c="";if(s.target===document||s.target===window)c="window";else{const f=s.target.getAttribute("data-scroll-restoration-id");f?c=`[data-scroll-restoration-id="${f}"]`:c=$M(s.target)}const d=r(e.state.location);Jg.set(f=>{const h=f[d]||(f[d]={}),g=h[c]||(h[c]={});if(c==="window")g.scrollX=window.scrollX||0,g.scrollY=window.scrollY||0;
50else if(c){const m=document.querySelector(c);m&&(g.scrollX=m.scrollLeft||0,g.scrollY=m.scrollTop||0)}return f})};typeof document<"u"&&document.addEventListener("scroll",TM(o,100),!0),e.subscribe("onRendered",s=>{const c=r(s.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}cT({storageKey:hh,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Jg.set(d=>(d[c]||(d[c]={}),d))})}function AM(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function uT(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function ev(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function MM(e){const t=new URLSearchParams(e),n={};for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=ev(o):Array.isArray(s)?s.push(ev(o)):n[r]=[s,ev(o)]}return n}const zM=NM(JSON.parse),OM=DM(JSON.stringify,JSON.parse);function NM(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=MM(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function DM(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=uT(o,r);return s?`?${s}`:""}}const nr="__root__";function dT(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers||{});e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Hn(e){return e instanceof Response&&!!e.options}function PM(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return dT(e)}function LM(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const c=t.get(s);if(c)return o(c),c.value},set(s,c){if(t.size>=e&&n){const f=n;t.delete(f.key),f.next&&(n=f.next,f.next.prev=void 0),f===r&&(r=void 0)}const d=t.get(s);if(d)d.value=c,o(d);else{const f={key:s,value:c,prev:r};r&&(r.next=f),r=f,n||(n=f),t.set(s,f)}}}}const Xf=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},op=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),fT=(e,t)=>{var n;const r=e.router.routesById[t.routeId??""]??e.router.routeTree;!r.options.notFoundComponent&&((n=e.router.options)!=null&&n.defaultNotFoundComponent)&&(r.options.notFoundComponent=e.router.options.defaultNotFoundComponent),or(r.options.notFoundComponent);const o=e.matches.find(s=>s.routeId===r.id);or(o,"Could not find match for route: "+r.id),e.updateMatch(o.id,s=>({...s,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&r.parentRoute&&(t.routeId=r.parentRoute.id,fT(e,t))},za=(e,t,n)=>{var r,o,s;if(!(!Hn(n)&&!Rr(n))){if(Hn(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(r=t._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=t._nonReactive.loaderPromise)==null||o.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const c=Hn(n)?"redirected":"notFound";e.updateMatch(t.id,d=>({...d,status:c,isFetching:!1,error:n})),Rr(n)&&!n.routeId&&(n.routeId=t.routeId),(s=t._nonReactive.loadPromise)==null||s.resolve()}throw Hn(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(fT(e,n),n)}},hT=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},Tc=(e,t,n,r)=>{var o,s;const{id:c,routeId:d}=e.matches[t],f=e.router.looseRoutesById[d];if(n instanceof Promise)throw n;
50n.routerCode=r,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),za(e,e.router.getMatch(c),n);try{(s=(o=f.options).onError)==null||s.call(o,n)}catch(h){n=h,za(e,e.router.getMatch(c),n)}e.updateMatch(c,h=>{var g,m;return(g=h._nonReactive.beforeLoadPromise)==null||g.resolve(),h._nonReactive.beforeLoadPromise=void 0,(m=h._nonReactive.loadPromise)==null||m.resolve(),{...h,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},FM=(e,t,n,r)=>{var o;const s=e.router.getMatch(t),c=(o=e.matches[n-1])==null?void 0:o.id,d=c?e.router.getMatch(c):void 0;if(e.router.isShell()){s.ssr=t===nr;return}if(d?.ssr===!1){s.ssr=!1;return}const f=w=>w===!0&&d?.ssr==="data-only"?"data-only":w,h=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){s.ssr=f(h);return}if(typeof r.options.ssr!="function"){s.ssr=f(r.options.ssr);return}const{search:g,params:m}=s,y={search:ff(g,s.searchError),params:ff(m,s.paramsError),location:e.location,matches:e.matches.map(w=>({index:w.index,pathname:w.pathname,fullPath:w.fullPath,staticData:w.staticData,id:w.id,routeId:w.routeId,search:ff(w.search,w.searchError),params:ff(w.params,w.paramsError),ssr:w.ssr}))},_=r.options.ssr(y);if(Oa(_))return _.then(w=>{s.ssr=f(w??h)});s.ssr=f(_??h)},pT=(e,t,n,r)=>{var o;if(r._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!op(e,t)&&(n.options.loader||n.options.beforeLoad||vT(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??((o=e.router.options)==null?void 0:o.defaultPendingComponent)))){const d=setTimeout(()=>{Xf(e)},s);r._nonReactive.pendingTimeout=d}},IM=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;pT(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&za(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},jM=(e,t,n,r)=>{var o;const s=e.router.getMatch(t),c=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Eo(()=>{c?.resolve()});const{paramsError:d,searchError:f}=s;d&&Tc(e,n,d,"PARSE_PARAMS"),f&&Tc(e,n,f,"VALIDATE_SEARCH"),pT(e,t,r,s);const h=new AbortController,g=(o=e.matches[n-1])==null?void 0:o.id,m=g?e.router.getMatch(g):void 0,_={...m?.context??e.router.options.context??void 0,...s.__routeContext};let w=!1;const S=()=>{w||(w=!0,e.updateMatch(t,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:h,context:_})))},T=()=>{var L;(L=s._nonReactive.beforeLoadPromise)==null||L.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,G=>({...G,isFetching:!1}))};if(!r.options.beforeLoad){Ks(()=>{S(),T()});return}s._nonReactive.beforeLoadPromise=Eo();const{search:k,params:$,cause:z}=s,N=op(e,t),O={search:k,abortController:h,params:$,preload:N,context:_,location:e.location,navigate:L=>e.router.navigate({...L,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:N?"preload":z,matches:e.matches},I=L=>{if(L===void 0){Ks(()=>{S(),T()});return}(Hn(L)||Rr(L))&&(S(),Tc(e,n,L,"BEFORE_LOAD")),Ks(()=>{S(),e.updateMatch(t,G=>({...G,__beforeLoadContext:L,context:{...G.context,...L}})),T()})};let j;try{if(j=r.options.beforeLoad(O),Oa(j))return S(),j.catch(L=>{Tc(e,n,L,"BEFORE_LOAD")}).then(I)}catch(L){S(),Tc(e,n,L,"BEFORE_LOAD")}I(j)},UM=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>{if(e.router.isServer){const f=FM(e,n,t,o);if(Oa(f))return f.then(c)}return c()},c=()=>{if(hT(e,n))return;const f=IM(e,n,o);return Oa(f)?f.then(d):d()},d=()=>jM(e,n,t,o);return s()},nu=(e,t,n)=>{var r,o,s,c,d,f;const h=e.router.getMatch(t);if(!h||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const g={matches:e.matches,match:h,params:h.params,loaderData:h.loaderData};return Promise.all([(o=(r=n.options).head)==null?void 0:o.call(r,g),(c=(s=n.options).scripts)==null?void 0:c.call(s,g),(f=(d=n.options).headers)==null?void 0:f.call(d,g)]).then(([m,y,_])=>{const w=m?.meta,S=m?.links,T=m?.scripts,k=m?.styles;return{meta:w,links:S,headScripts:T,headers:_,scripts:y,styles:k}})},mT=(e,t,n,r)=>{const o=e.matchPromises[n-1],{params:s,loaderDeps:c,abortController:d,context:f,cause:h}=e.router.getMatch(t),g=op(e,t);return{params:s,deps:c,preload:!!g,parentMatchPromise:o,abortController:d,context:f,location:e.location,navigate:m=>e.router.navigate({...m,_fromLocation:e.location}),cause:g?"preload":h,route:r}},$S=async(e,t,n,r)=>{var o,s,c,d;try{const f=e.router.getMatch(t);try{(!e.router.isServer||f.ssr===!0)&&gT(r);const h=(s=(o=r.options).loader)==null?void 0:s.call(o,mT(e,t,n,r)),g=r.options.loader&&Oa(h);if(!!(g||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||f._nonReactive.minPendingPromise)&&e.updateMatch(t,S=>({...S,isFetching:"loader"})),r.options.loader){const S=g?await h:h;za(e,e.router.getMatch(t),S),S!==void 0&&e.updateMatch(t,T=>({...T,loaderData:S}))}r._lazyPromise&&await r._lazyPromise;const y=nu(e,t,r),_=y?await y:void 0,w=f._nonReactive.minPendingPromise;w&&await w,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,S=>({...S,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),..._}))}catch(h){let g=h;const m=f._nonReactive.minPendingPromise;m&&await m,za(e,e.router.getMatch(t),h);try{(d=(c=r.options).onError)==null||d.call(c,h)}catch(w){g=w,za(e,e.router.getMatch(t),w)}const y=nu(e,t,r),_=y?await y:void 0;e.updateMatch(t,w=>({...w,error:g,status:"error",isFetching:!1,..._}))}}catch(f){const h=e.router.getMatch(t);if(h){const g=nu(e,t,r);if(g){const m=await g;e.updateMatch(t,y=>({...y,...m}))}h._nonReactive.loaderPromise=void 0}za(e,h,f)}},HM=async(e,t)=>{var n,r;const{id:o,routeId:s}=e.matches[t];let c=!1,d=!1;const f=e.router.looseRoutesById[s];if(hT(e,o)){if(e.router.isServer){const m=nu(e,o,f);
50if(m){const y=await m;e.updateMatch(o,_=>({..._,...y}))}return e.router.getMatch(o)}}else{const m=e.router.getMatch(o);if(m._nonReactive.loaderPromise){if(m.status==="success"&&!e.sync&&!m.preload)return m;await m._nonReactive.loaderPromise;const y=e.router.getMatch(o);y.error&&za(e,y,y.error)}else{const y=Date.now()-m.updatedAt,_=op(e,o),w=_?f.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.router.options.defaultStaleTime??0,S=f.options.shouldReload,T=typeof S=="function"?S(mT(e,o,t,f)):S,k=!!_&&!e.router.state.matches.some(O=>O.id===o),$=e.router.getMatch(o);$._nonReactive.loaderPromise=Eo(),k!==$.preload&&e.updateMatch(o,O=>({...O,preload:k}));const{status:z,invalid:N}=$;if(c=z==="success"&&(N||(T??y>w)),!(_&&f.options.preload===!1))if(c&&!e.sync)d=!0,(async()=>{var O,I;try{await $S(e,o,t,f);const j=e.router.getMatch(o);(O=j._nonReactive.loaderPromise)==null||O.resolve(),(I=j._nonReactive.loadPromise)==null||I.resolve(),j._nonReactive.loaderPromise=void 0}catch(j){Hn(j)&&await e.router.navigate(j.options)}})();else if(z!=="success"||c&&e.sync)await $S(e,o,t,f);else{const O=nu(e,o,f);if(O){const I=await O;e.updateMatch(o,j=>({...j,...I}))}}}}const h=e.router.getMatch(o);d||((n=h._nonReactive.loaderPromise)==null||n.resolve(),(r=h._nonReactive.loadPromise)==null||r.resolve()),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,d||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const g=d?h.isFetching:!1;return g!==h.isFetching||h.invalid!==!1?(e.updateMatch(o,m=>({...m,isFetching:g,invalid:!1})),e.router.getMatch(o)):h};async function RS(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&Xf(t);try{for(let o=0;o<t.matches.length;o++){const s=UM(t,o);Oa(s)&&await s}const n=t.firstBadMatchIndex??t.matches.length;for(let o=0;o<n;o++)t.matchPromises.push(HM(t,o));await Promise.all(t.matchPromises);const r=Xf(t);Oa(r)&&await r}catch(n){if(Rr(n)&&!t.preload){const r=Xf(t);throw Oa(r)&&await r,n}if(Hn(n))throw n}return t.matches}async function gT(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var n;const r=[];for(const o of yT){const s=(n=e.options[o])==null?void 0:n.preload;s&&r.push(s())}if(r.length)return Promise.all(r).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function ff(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function vT(e){var t;for(const n of yT)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const yT=["component","errorComponent","pendingComponent","notFoundComponent"];function BM(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function xo(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,o=t?.href!==n.href,s=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:o,hashChanged:s}}class qM{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>
50n(),this.update=n=>{var r;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options;this.options={...this.options,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(s=>[encodeURIComponent(s),s])):void 0,(!this.basepath||n.basepath&&n.basepath!==o.basepath)&&(n.basepath===void 0||n.basepath===""||n.basepath==="/"?this.basepath="/":this.basepath=`/${Qg(n.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?fM({initialEntries:[this.basepath||"/"]}):dM()),this.updateLatestLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new sy(GM(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(s=>!["redirected"].includes(s.status))}}}),RM(this)),typeof window<"u"&&"CSS"in window&&typeof((r=window.CSS)==null?void 0:r.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:r,flatRoutes:o}=JM({routeTree:this.routeTree,initRoute:(c,d)=>{c.init({originalIndex:d})}});this.routesById=n,this.routesByPath=r,this.flatRoutes=o;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:f,search:h,hash:g,state:m})=>{const y=this.options.parseSearch(h),_=this.options.stringifySearch(y);return{pathname:f,searchStr:_,search:xr(r?.search,y),hash:g.split("#").reverse()[0]??"",href:`${f}${_}${g}`,state:xr(r?.state,m)}},s=o(n),{__tempLocation:c,__tempKey:d}=s.state;if(c&&(!d||d===this.tempLocationKey)){const f=o(c);return f.state.key=s.state.key,f.state.__TSR_key=s.state.__TSR_key,delete f.state.__tempLocation,{...f,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>mM({basepath:this.basepath,base:n,to:Zb(r),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive,parseCache:this.parsePathnameCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.parsePathnameCache=LM(1e3),this.getMatchedRoutes=(n,r)=>e3({pathname:n,routePathname:r,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{var n;(n=this.state.pendingMatches)==null||n.forEach(r=>{this.cancelMatch(r.id)})},this.buildLocation=n=>{const r=(s={})=>{var c,d;const f=s._fromLocation||this.latestLocation,h=this.matchRoutes(f,{_buildLocation:!0}),g=ly(h);let m=this.resolvePathWithBase(g.fullPath,".");const y=s.to?this.resolvePathWithBase(m,`${s.to}`):this.resolvePathWithBase(m,"."),_=!!s.to&&!MS(s.to.toString(),m)&&!MS(y,m);s.unsafeRelative==="path"?m=f.pathname:_&&s.from&&(m=s.from),m=this.resolvePathWithBase(m,".");const w=g.search,S={...g.params},T=s.to?this.resolvePathWithBase(m,`${s.to}`):this.resolvePathWithBase(m,"."),k=s.params===!1||s.params===null?{}:(s.params??!0)===!0?S:Object.assign(S,wo(s.params,S)),$=df({path:T,params:k,parseCache:this.parsePathnameCache}).interpolatedPath,z=this.matchRoutes($,void 0,{_buildLocation:!0}
50).map(X=>this.looseRoutesById[X.routeId]);if(Object.keys(k).length>0)for(const X of z){const D=((c=X.options.params)==null?void 0:c.stringify)??X.options.stringifyParams;D&&Object.assign(k,D(k))}const N=df({path:T,params:k,leaveWildcards:!1,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let O=w;if(n._includeValidateSearch&&((d=this.options.search)!=null&&d.strict)){const X={};z.forEach(D=>{if(D.options.validateSearch)try{Object.assign(X,fy(D.options.validateSearch,{...X,...O}))}catch{}}),O=X}O=t3({search:O,dest:s,destRoutes:z,_includeValidateSearch:n._includeValidateSearch}),O=xr(w,O);const I=this.options.stringifySearch(O),j=s.hash===!0?f.hash:s.hash?wo(s.hash,f.hash):void 0,L=j?`#${j}`:"";let G=s.state===!0?f.state:s.state?wo(s.state,f.state):{};return G=xr(f.state,G),{pathname:N,search:O,searchStr:I,state:G,hash:j??"",href:`${N}${I}${L}`,unmaskOnReload:s.unmaskOnReload}},o=(s={},c)=>{var d;const f=r(s);let h=c?r(c):void 0;if(!h){let g={};const m=(d=this.options.routeMasks)==null?void 0:d.find(y=>{const _=uy(this.basepath,f.pathname,{to:y.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return _?(g=_,!0):!1});if(m){const{from:y,..._}=m;c={from:n.from,..._,params:g},h=r(c)}}if(h){const g=r(c);f.maskedLocation=g}return f};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(g=>{o.state[g]=this.latestLocation.state[g]});const h=Js(o.state,this.latestLocation.state);return f.forEach(g=>{delete o.state[g]}),h},c=this.latestLocation.href===o.href,d=this.commitLocationPromise;if(this.commitLocationPromise=Eo(()=>{d?.resolve()}),c&&s())this.load();else{let{maskedLocation:f,hashScrollIntoView:h,...g}=o;f&&(g={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](g.href,g.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:c,href:d,...f}={})=>{if(d){const g=this.history.location.state.__TSR_index,m=pu(d,{__TSR_index:n?g:g+1});f.to=m.pathname,f.search=this.options.parseSearch(m.search),f.hash=m.hash.slice(1)}const h=this.buildLocation({...f,_includeValidateSearch:!0});return this.commitLocation({...h,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:c})},this.navigate=({to:n,reloadDocument:r,href:o,...s})=>{if(!r&&o)try{new URL(`${o}`),r=!0}catch{}if(r){if(!o){const c=this.buildLocation({to:n,...s});o=this.history.createHref(c.href)}return s.replace?window.location.replace(o):window.location.href=o,Promise.resolve()}return this.buildAndCommitLocation({...s,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),o=s=>{try{return encodeURI(decodeURI(s))}catch{return s}};if(Qg(o(this.latestLocation.href))!==Qg(o(r.href)))throw dT({href:r.href})}const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(o=>!n.some(s=>s.id===o.id))}))},this.load=async n=>{let r,o,s;for(s=new Promise(c=>{this.startTransition(async()=>{var d;try{this.beforeLoad();const f=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...xo({resolvedLocation:h,location:f})}
50),this.emit({type:"onBeforeLoad",...xo({resolvedLocation:h,location:f})}),await RS({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let g,m,y;Ks(()=>{this.__store.setState(_=>{const w=_.matches,S=_.pendingMatches||_.matches;return g=w.filter(T=>!S.some(k=>k.id===T.id)),m=S.filter(T=>!w.some(k=>k.id===T.id)),y=w.filter(T=>S.some(k=>k.id===T.id)),{..._,isLoading:!1,loadedAt:Date.now(),matches:S,pendingMatches:void 0,cachedMatches:[..._.cachedMatches,...g.filter(T=>T.status!=="error")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[m,"onEnter"],[y,"onStay"]].forEach(([_,w])=>{_.forEach(S=>{var T,k;(k=(T=this.looseRoutesById[S.routeId].options)[w])==null||k.call(T,S)})})})}})}catch(f){Hn(f)?(r=f,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Rr(f)&&(o=f),this.__store.setState(h=>({...h,statusCode:r?r.status:o?404:h.matches.some(g=>g.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===s&&((d=this.commitLocationPromise)==null||d.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(c=>({...c,statusCode:404}))},this.startViewTransition=n=>
50{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,c=this.state.resolvedLocation,d=typeof r.types=="function"?r.types(xo({resolvedLocation:c,location:s})):r.types;o={update:n,types:d}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{var o;const s=(o=this.state.pendingMatches)!=null&&o.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";s&&this.__store.setState(c=>{var d;return{...c,[s]:(d=c[s])==null?void 0:d.map(f=>f.id===n?r(f):f)}})},this.getMatch=n=>{var r;const o=s=>s.id===n;return this.state.cachedMatches.find(o)??((r=this.state.pendingMatches)==null?void 0:r.find(o))??this.state.matches.find(o)},this.invalidate=n=>{const r=o=>{var s;return((s=n?.filter)==null?void 0:s.call(n,o))??!0?{...o,invalid:!0,...n?.forcePending||o.status==="error"?{status:"pending",error:void 0}:void 0}:o};return this.__store.setState(o=>{var s;return{...o,matches:o.matches.map(r),cachedMatches:o.cachedMatches.map(r),pendingMatches:(s=o.pendingMatches)==null?void 0:s.map(r)}}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>(n.options.href||(n.options.href=this.buildLocation(n.options).href,n.headers.set("Location",n.options.href)),n.headers.get("Location")||n.headers.set("Location",n.options.href),n),this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(o=>({...o,cachedMatches:o.cachedMatches.filter(s=>!r(s))})):this.__store.setState(o=>({...o,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const o=this.looseRoutesById[r.routeId];if(!o.options.loader)return!0;const s=(r.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=s};this.clearCache({filter:n})},this.loadRouteChunk=gT,this.preloadRoute=async n=>{const r=this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(d=>d.id)),c=new Set([...s,...this.state.cachedMatches.map(d=>d.id)]);Ks(()=>{o.forEach(d=>{c.has(d.id)||this.__store.setState(f=>({...f,cachedMatches:[...f.cachedMatches,d]}))})});try{return o=await RS({router:this,matches:o,location:r,preload:!0,updateMatch:(d,f)=>{s.has(d)?o=o.map(h=>h.id===d?f(h):h):this.updateMatch(d,f)}}),o}catch(d){if(Hn(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:r});Rr(d)||console.error(d);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r?.pending&&this.state.status!=="pending")return!1;const d=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,f=uy(this.basepath,d.pathname,{...r,to:s.pathname},this.parsePathnameCache);return!f||n.params&&!Js(f,n.params,{partial:!0})?!1:f&&(r?.includeSearch??!0)?Js(d.search,s.search,{partial:!0})?f:!1:f},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??OM,parseSearch:t.parseSearch??zM}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){var r;const{foundRoute:o,matchedRoutes:s,routeParams:c}=this.getMatchedRoutes(t.pathname,(r=n?.dest)==null?void 0:r.to);let d=!1;(o?o.path!=="/"&&c["**"]:dl(t.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):d=!0);const f=(()=>
50{if(d){if(this.options.notFoundMode!=="root")for(let y=s.length-1;y>=0;y--){const _=s[y];if(_.children)return _.id}return nr}})(),h=s.map(y=>{var _;let w;const S=((_=y.options.params)==null?void 0:_.parse)??y.options.parseParams;if(S)try{const T=S(c);Object.assign(c,T)}catch(T){if(w=new VM(T.message,{cause:T}),n?.throwOnError)throw w;return w}}),g=[],m=y=>y?.id?y.context??this.options.context??void 0:this.options.context??void 0;return s.forEach((y,_)=>{var w,S;const T=g[_-1],[k,$,z]=(()=>{const H=T?.search??t.search,ae=T?._strictSearch??void 0;try{const E=fy(y.options.validateSearch,{...H})??void 0;return[{...H,...E},{...ae,...E},void 0]}catch(E){let R=E;if(E instanceof mh||(R=new mh(E.message,{cause:E})),n?.throwOnError)throw R;return[H,{},R]}})(),N=((S=(w=y.options).loaderDeps)==null?void 0:S.call(w,{search:k}))??"",O=N?JSON.stringify(N):"",{usedParams:I,interpolatedPath:j}=df({path:y.fullPath,params:c,decodeCharMap:this.pathParamsDecodeCharMap}),L=df({path:y.id,params:c,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+O,G=this.getMatch(L),X=this.state.matches.find(H=>H.routeId===y.id),D=X?"stay":"enter";let Z;if(G)Z={...G,cause:D,params:X?xr(X.params,c):c,_strictParams:I,search:xr(X?X.search:G.search,k),_strictSearch:$};else{const H=y.options.loader||y.options.beforeLoad||y.lazyFn||vT(y)?"pending":"success";Z={id:L,index:_,routeId:y.id,params:X?xr(X.params,c):c,_strictParams:I,pathname:Vi([this.basepath,j]),updatedAt:Date.now(),search:X?xr(X.search,k):k,_strictSearch:$,searchError:void 0,status:H,isFetching:!1,error:void 0,paramsError:h[_],__routeContext:void 0,_nonReactive:{loadPromise:Eo()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:D,loaderDeps:X?xr(X.loaderDeps,N):N,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}n?.preload||(Z.globalNotFound=f===y.id),Z.searchError=z;const ce=m(T);Z.context={...ce,...Z.__routeContext,...Z.__beforeLoadContext},g.push(Z)}),g.forEach((y,_)=>{const w=this.looseRoutesById[y.routeId];if(!this.getMatch(y.id)&&n?._buildLocation!==!0){const T=g[_-1],k=m(T);if(w.options.context){const $={deps:y.loaderDeps,params:y.params,context:k??{},location:t,navigate:z=>this.navigate({...z,_fromLocation:t}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:g};y.__routeContext=w.options.context($)??void 0}
50y.context={...k,...y.__routeContext,...y.__beforeLoadContext}}}),g}}class mh extends Error{}class VM extends Error{}const AS=e=>e.endsWith("/")&&e.length>1?e.slice(0,-1):e;function MS(e,t){return AS(e)===AS(t)}function GM(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function fy(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new mh("Async validation not supported");if(n.issues)throw new mh(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}const YM=.5,ZM=.4,XM=.25,WM=.05,KM=.02,QM=.01,zS=2e-4,OS=1e-4;function NS(e,t){return e.prefixSegment&&e.suffixSegment?t+WM+zS*e.prefixSegment.length+OS*e.suffixSegment.length:e.prefixSegment?t+KM+zS*e.prefixSegment.length:e.suffixSegment?t+QM+OS*e.suffixSegment.length:t}function JM({routeTree:e,initRoute:t}){const n={},r={},o=f=>{f.forEach((h,g)=>{t?.(h,g);const m=n[h.id];if(or(!m,`Duplicate routes found with id: ${String(h.id)}`),n[h.id]=h,!h.isRoot&&h.path){const _=dl(h.fullPath);(!r[_]||h.fullPath.endsWith("/"))&&(r[_]=h)}const y=h.children;y?.length&&o(y)})};o([e]);const s=[];Object.values(n).forEach((f,h)=>{var g;if(f.isRoot||!f.path)return;const m=Xb(f.fullPath);let y=fl(m),_=0;for(;y.length>_+1&&((g=y[_])==null?void 0:g.value)==="/";)_++;_>0&&(y=y.slice(_));let w=0,S=!1;const T=y.map((k,$)=>{if(k.value==="/")return .75;let z;if(k.type===ko?z=YM:k.type===ul?(z=ZM,w++):k.type===To&&(z=XM),z){for(let N=$+1;N<y.length;N++){const O=y[N];if(O.type===qi&&O.value!=="/")return S=!0,NS(k,z+.2)}return NS(k,z)}return 1});s.push({child:f,trimmed:m,parsed:y,index:h,scores:T,optionalParamCount:w,hasStaticAfter:S})});const d=s.sort((f,h)=>{const g=Math.min(f.scores.length,h.scores.length);for(let m=0;m<g;m++)if(f.scores[m]!==h.scores[m])return h.scores[m]-f.scores[m];if(f.scores.length!==h.scores.length){if(f.optionalParamCount!==h.optionalParamCount){if(f.hasStaticAfter===h.hasStaticAfter)return f.optionalParamCount-h.optionalParamCount;if(f.hasStaticAfter&&!h.hasStaticAfter)return-1;if(!f.hasStaticAfter&&h.hasStaticAfter)return 1}return h.scores.length-f.scores.length}for(let m=0;m<g;m++)if(f.parsed[m].value!==h.parsed[m].value)return f.parsed[m].value>h.parsed[m].value?1:-1;return f.index-h.index}).map((f,h)=>(f.child.rank=h,f.child));return{routesById:n,routesByPath:r,flatRoutes:d}}function e3({pathname:e,routePathname:t,basepath:n,caseSensitive:r,routesByPath:o,routesById:s,flatRoutes:c,parseCache:d}){let f={};const h=dl(e),g=w=>{var S;return uy(n,h,{to:w.fullPath,caseSensitive:((S=w.options)==null?void 0:S.caseSensitive)??r,fuzzy:!0},d)};let m=t!==void 0?o[t]:void 0;if(m)f=g(m);else{let w;for(const S of c){const T=g(S);if(T)if(S.path!=="/"&&T["**"])w||(w={foundRoute:S,routeParams:T});else{m=S,f=T;break}}!m&&w&&(m=w.foundRoute,f=w.routeParams)}let y=m||s[nr];const _=[y];for(;y.parentRoute;)y=y.parentRoute,_.push(y);return _.reverse(),{matchedRoutes:_,routeParams:f,foundRoute:m}}function t3({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){const o=n.reduce((d,f)=>{var h;const g=[];if("search"in f.options)(h=f.options.search)!=null&&h.middlewares&&g.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const m=({search:y,next:_})=>{let w=y;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(w=f.options.preSearchFilters.reduce((T,k)=>k(T),y));const S=_(w);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((T,k)=>k(T),S):S};g.push(m)}if(r&&f.options.validateSearch){const m=({search:y,next:_})=>{const w=_(y);try{return{...w,...fy(f.options.validateSearch,w)??void 0}}catch{return w}};g.push(m)}return d.concat(g)},[])??[],s=({search:d})=>t.search?t.search===!0?d:wo(t.search,d):{};o.push(s);const c=(d,f)=>{if(d>=o.length)return f;const h=o[d];return h({search:f,next:m=>c(d+1,m)})};return c(0,e)}const ri=Symbol.for("TSR_DEFERRED_PROMISE");function n3(e,t){const n=e;return n[ri]||(n[ri]={status:"pending"},n.then(r=>{n[ri].status="success",n[ri].data=r}).catch(r=>{n[ri].status="error",n[ri].error={data:BM(r),__isServerError:!0}})),n}const r3="Error preloading route! âï¸";class bT{constructor(t){if(this.init=n=>{var r,o;this.originalIndex=n.originalIndex;const s=this.options,c=!s?.path&&!s?.id;this.parentRoute=(o=(r=this.options).getParentRoute)==null?void 0:o.call(r),c?this._path=nr:this.parentRoute||or(!1);let d=c?nr:s?.path;d&&d!=="/"&&(d=Xb(d));const f=s?.id||d;let h=c?nr:Vi([this.parentRoute.id===nr?"":this.parentRoute.id,f]);d===nr&&(d="/"),h!==nr&&(h=Vi(["/",h]));const g=h===nr?"/":Vi([this.parentRoute.fullPath,d]);this._path=d,this._id=h,this._fullPath=g,this._to=g},this.clone=n=>{this._path=n._path,this._id=n._id,this._fullPath=n._fullPath,this._to=n._to,this.options.getParentRoute=n.options.getParentRoute,this.children=n.children},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class i3 extends bT{constructor(t){super(t)}}const rr={stringify:e=>JSON.stringify(e,function(n,r){const o=this[n],s=hf.find(c=>c.stringifyCondition(o));return s?s.stringify(o):r}),parse:e=>JSON.parse(e,function(n,r){const o=this[n];
50if(Ma(o)){const s=hf.find(c=>c.parseCondition(o));if(s)return s.parse(o)}return r}),encode:e=>{if(Array.isArray(e))return e.map(n=>rr.encode(n));if(Ma(e))return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,rr.encode(r)]));const t=hf.find(n=>n.stringifyCondition(e));return t?t.stringify(e):e},decode:e=>{if(Ma(e)){const t=hf.find(n=>n.parseCondition(e));if(t)return t.parse(e)}return Array.isArray(e)?e.map(t=>rr.decode(t)):Ma(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,rr.decode(n)])):e}},Cs=(e,t,n,r)=>({key:e,stringifyCondition:t,stringify:o=>({[`$${e}`]:n(o)}),parseCondition:o=>Object.hasOwn(o,`$${e}`),parse:o=>r(o[`$${e}`])}),hf=[Cs("undefined",e=>e===void 0,()=>0,()=>{}),Cs("date",e=>e instanceof Date,e=>e.toISOString(),e=>new Date(e)),Cs("error",e=>e instanceof Error,e=>({...e,message:e.message,stack:void 0,cause:e.cause}),e=>Object.assign(new Error(e.message),e)),Cs("formData",e=>e instanceof FormData,e=>{const t={};return e.forEach((n,r)=>{const o=t[r];o!==void 0?Array.isArray(o)?o.push(n):t[r]=[o,n]:t[r]=n}),t},e=>{const t=new FormData;return Object.entries(e).forEach(([n,r])=>{Array.isArray(r)?r.forEach(o=>t.append(n,o)):t.append(n,r)}),t}),Cs("bigint",e=>typeof e=="bigint",e=>e.toString(),e=>BigInt(e)),Cs("server-function",e=>typeof e=="function"&&"functionId"in e&&typeof e.functionId=="string",({functionId:e})=>({functionId:e,__serverFn:!0}),e=>e)],a3="modulepreload",o3=function(e){return"/"+e},DS={},Xt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");o=f(n.map(h=>{if(h=o3(h),h in DS)return;DS[h]=!0;const g=h.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":a3,g||(y.as="script"),y.crossOrigin="",y.href=h,d&&y.setAttribute("nonce",d),document.head.appendChild(y),g)return new Promise((_,w)=>{y.addEventListener("load",_),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return o.then(c=>{for(const d of c||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})};const s3=[],l3=()=>window.__TSR_ROUTER__;function qn(e,t){const n=t||e||{};return typeof n.method>"u"&&(n.method="GET"),{options:n,middleware:r=>qn(void 0,Object.assign(n,{middleware:r})),validator:r=>qn(void 0,Object.assign(n,{validator:r})),type:r=>qn(void 0,Object.assign(n,{type:r})),handler:(...r)=>{const[o,s]=r;Object.assign(n,{...o,extractedFn:o,serverFn:s});const c=[...n.middleware||[],m3(n)];return Object.assign(async d=>PS(c,"client",{...o,...n,data:d?.data,headers:d?.headers,signal:d?.signal,context:{},router:l3()}).then(f=>{if(n.response==="full")return f;if(f.error)throw f.error;return f.result}),{...o,__executeServer:async(d,f)=>{const h=d instanceof FormData?d3(d):d;h.type=typeof n.type=="function"?n.type(h):n.type;const g={...o,...h,signal:f},m=()=>PS(c,"server",g).then(y=>({result:y.result,error:y.error,context:y.sendContext}));if(g.type==="static"){let y;if(jr?.getItem&&(y=await jr.getItem(g)),y||(y=await m().then(_=>({ctx:_,error:null})).catch(_=>({ctx:void 0,error:_})),jr?.setItem&&await jr.setItem(g,y)),or(y),y.error)throw y.error;return y.ctx}return m()}})}}}async function PS(e,t,n){const r=f3([...s3,...e]),o=async s=>{const c=r.shift();if(!c)return s;c.options.validator&&(t!=="client"||c.options.validateClient)&&(s.data=await p3(c.options.validator,s.data));const d=t==="client"?c.options.client:c.options.server;return d?h3(d,s,async f=>o(f).catch(h=>{if(Hn(h)||Rr(h))return{...f,error:h};throw h})):o(s)};return o({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||{}})}let jr;function c3(e){const t=jr;return jr=typeof e=="function"?e():e,()=>{jr=t}}async function u3(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-1",t);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")}c3(()=>{const e=async(r,o)=>`/__tsr/staticServerFnCache/${await u3(`${r.functionId}__${o}`)}.json`,t=r=>JSON.stringify(r??"",(c,d)=>d&&typeof d=="object"&&!Array.isArray(d)?Object.keys(d).sort().reduce((f,h)=>(f[h]=d[h],f),{}):d).replace(/[/\\?%*:|"<>]/g,"-").replace(/\s+/g,"_"),n=typeof document<"u"?new Map:null;return{getItem:async r=>{if(typeof document>"u"){const o=t(r.data),s=await e(r,o),c="/home/runner/work/better-gradient/better-gradient/.output/public",{promises:d}=await Xt(async()=>{const{promises:y}=await import("node:fs");return{promises:y}},[]),h=(await Xt(()=>import("node:path"),[])).join(c,s),[g,m]=await d.readFile(h,"utf-8").then(y=>[rr.parse(y),null]).catch(y=>[null,y]);if(m&&m.code!=="ENOENT")throw m;return g}},setItem:async(r,o)=>{const{promises:s}=await Xt(async()=>{const{promises:m}=await import("node:fs");return{promises:m}},[]),c=await Xt(()=>import("node:path"),[]),d=t(r.data),f=await e(r,d),g=c.join("/home/runner/work/better-gradient/better-gradient/.output/public",f);await s.mkdir(c.dirname(g),{recursive:!0}),await s.writeFile(g,rr.stringify(o))},fetchItem:async r=>{const o=t(r.data),s=await e(r,o);let c=n?.get(s);return c||(c=await fetch(s,{method:"GET"}).then(d=>d.text()).then(d=>rr.parse(d)),n?.set(s,c)),c}}});function d3(e){const t=e.get("__TSR_CONTEXT");if(e.delete("__TSR_CONTEXT"),typeof t!="string")return{context:{},data:e};try{return{context:rr.parse(t),data:e}}catch{return{data:e}}}function f3(e){const t=new Set,n=[],r=o=>{o.forEach(s=>{s.options.middleware&&r(s.options.middleware),t.has(s)||(t.add(s),n.push(s))})};return r(e),n}const h3=async(e,t,n)=>e({...t,next:async(r={})=>n({...t,...r,context:{...t.context,...r.context},sendContext:{...t.sendContext,...r.sendContext??{}},headers:nM(t.headers,r.headers),result:r.result!==void 0?r.result:t.response==="raw"?r:t.result,error:r.error??t.error})});function p3(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Error("Async validation not supported");if(n.issues)throw new Error(JSON.stringify(n.issues,void 0,2));return n.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function m3(e){return{_types:void 0,options:{validator:e.validator,validateClient:e.validateClient,client:async({next:t,sendContext:n,...r})=>{var o;const s={...r,context:n,type:typeof r.type=="function"?r.type(r):r.type};if(r.type==="static"&&typeof document<"u"){or(jr);const d=await jr.fetchItem(s);if(d){if(d.error)throw d.error;return t(d.ctx)}`${s.functionId}${JSON.stringify(s.data)}`}const c=await((o=e.extractedFn)==null?void 0:o.call(e,s));return t(c)},server:async({next:t,...n})=>{var r;const o=await((r=e.serverFn)==null?void 0:r.call(e,n));return t({...n,result:o})}}}}function g3({promise:e}){const t=n3(e);if(t[ri].status==="pending")throw t;if(t[ri].status==="error")throw t[ri].error;return[t[ri].data,t]}function v3(e){const t=de.jsx(y3,{...e});
50return e.fallback?de.jsx(re.Suspense,{fallback:e.fallback,children:t}):t}function y3(e){const[t]=g3(e);return e.children(t)}function Wb(e){const t=e.errorComponent??Fu;return de.jsx(b3,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?re.createElement(t,{error:n,reset:r}):e.children})}class b3 extends re.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Fu({error:e}){const[t,n]=re.useState(!1);return de.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[de.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[de.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),de.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),de.jsx("div",{style:{height:".25rem"}}),t?de.jsx("div",{children:de.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?de.jsx("code",{children:e.message}):null})}):null]})}function _3({children:e,fallback:t=null}){return w3()?de.jsx(tt.Fragment,{children:e}):de.jsx(tt.Fragment,{children:t})}function w3(){return tt.useSyncExternalStore(x3,()=>!0,()=>!1)}function x3(){return()=>{}}var tv={exports:{}},nv={},rv={exports:{}},iv={};/** 51 * @license React 52 * use-sync-external-store-shim.production.js 53 * 54 * Copyright (c) Meta Platforms, Inc. and affiliates. 55 * 56 * This source code is licensed under the MIT license found in the 57 * LICENSE file in the root directory of this source tree. 58 */var LS;function S3(){if(LS)return iv;LS=1;var e=El();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(m,y){var _=y(),w=r({inst:{value:_,getSnapshot:y}}),S=w[0].inst,T=w[1];return s(function(){S.value=_,S.getSnapshot=y,f(S)&&T({inst:S})},[m,_,y]),o(function(){return f(S)&&T({inst:S}),m(function(){f(S)&&T({inst:S})})},[m]),c(_),_}function f(m){var y=m.getSnapshot;m=m.value;try{var _=y();return!n(m,_)}catch{return!0}}function h(m,y){return y()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return iv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,iv}var FS;function E3(){return FS||(FS=1,rv.exports=S3()),rv.exports}/** 59 * @license React 60 * use-sync-external-store-shim/with-selector.production.js 61 * 62 * Copyright (c) Meta Platforms, Inc. and affiliates. 63 * 64 * This source code is licensed under the MIT license found in the 65 * LICENSE file in the root directory of this source tree. 66 */var IS;function k3(){if(IS)return nv;IS=1;var e=El(),t=E3();function n(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return nv.useSyncExternalStoreWithSelector=function(h,g,m,y,_){var w=s(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;
66w=d(function(){function k(I){if(!$){if($=!0,z=I,I=y(I),_!==void 0&&S.hasValue){var j=S.value;if(_(j,I))return N=j}return N=I}if(j=N,r(z,I))return j;var L=y(I);return _!==void 0&&_(j,L)?(z=I,j):(z=I,N=L)}var $=!1,z,N,O=m===void 0?null:m;return[function(){return k(g())},O===null?void 0:function(){return k(O())}]},[g,m,y,_]);var T=o(h,w[0],w[1]);return c(function(){S.hasValue=!0,S.value=T},[T]),f(T),T},nv}var jS;function T3(){return jS||(jS=1,tv.exports=k3()),tv.exports}var C3=T3();function $3(e,t=n=>n){return C3.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,R3)}function R3(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!t.has(r)||!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const av=re.createContext(null);function _T(){return typeof document>"u"?av:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=av,av)}function Rn(e){const t=re.useContext(_T());return e?.warn,t}function zt(e){const t=Rn({warn:e?.router===void 0}),n=e?.router||t,r=re.useRef(void 0);return $3(n.__store,o=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const s=xr(r.current,e.select(o));return r.current=s,s}return e.select(o)}return o})}const sp=re.createContext(void 0),A3=re.createContext(void 0);function sr(e){const t=re.useContext(e.from?A3:sp);return zt({select:r=>{const o=r.matches.find(s=>e.from?e.from===s.routeId:s.id===t);if(or(!((e.shouldThrow??!0)&&!o),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),o!==void 0)return e.select?e.select(o):o},structuralSharing:e.structuralSharing})}function Kb(e){return sr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Qb(e){const{select:t,...n}=e;return sr({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Jb(e){return sr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.params):t.params})}function e0(e){return sr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function t0(e){const{navigate:t,state:n}=Rn(),r=sr({strict:!1,select:o=>o.index});return re.useCallback(o=>{const s=o.from??e?.from??n.matches[r].fullPath;return t({...o,from:s})},[e?.from,t])}var wT=iT();const Pq=rT(wT),pf=typeof window<"u"?re.useLayoutEffect:re.useEffect;function ov(e){const t=re.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function M3(e,t,n={},r={}){re.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function z3(e){const t=re.useRef(null);return re.useImperativeHandle(e,()=>t.current,[]),t}function O3(e,t){const n=Rn(),[r,o]=re.useState(!1),s=re.useRef(!1),c=z3(t),{activeProps:d,inactiveProps:f,activeOptions:h,to:g,preload:m,preloadDelay:y,hashScrollIntoView:_,replace:w,startTransition:S,resetScroll:T,viewTransition:k,children:$,target:z,disabled:N,style:O,className:I,onClick:j,onFocus:L,onMouseEnter:G,onMouseLeave:X,onTouchStart:D,ignoreBlocker:Z,params:ce,search:H,hash:ae,state:E,mask:R,reloadDocument:A,unsafeRelative:q,from:te,_fromLocation:M,...U}=e,Y=re.useMemo(()=>{try{return new URL(g),"external"}catch{}return"internal"},[g]),ne=zt({select:it=>it.location.search,structuralSharing:!0}),le=sr({strict:!1,select:it=>e.from??it.fullPath}),fe=re.useMemo(()=>n.buildLocation({...e,from:le}),[n,ne,e._fromLocation,le,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),pe=Y==="external",Te=e.reloadDocument||pe?!1:m??n.options.defaultPreload,Ee=y??n.options.defaultPreloadDelay??0,Xe=zt({select:it=>{if(pe)return!1;if(h?.exact){if(!hM(it.location.pathname,fe.pathname,n.basepath))return!1}else{const Ut=dh(it.location.pathname,n.basepath),$t=dh(fe.pathname,n.basepath);if(!(Ut.startsWith($t)&&(Ut.length===$t.length||Ut[$t.length]==="/")))return!1}return(h?.includeSearch??!0)&&!Js(it.location.search,fe.search,{partial:!h?.exact,ignoreUndefined:!h?.explicitUndef
66ined})?!1:h?.includeHash?it.location.hash===fe.hash:!0}}),Et=re.useCallback(()=>{n.preloadRoute({...e,from:le}).catch(it=>{console.warn(it),console.warn(r3)})},[n,e.to,e._fromLocation,le,e.search,e.hash,e.params,e.state,e.mask,e.unsafeRelative,e.hashScrollIntoView,e.href,e.ignoreBlocker,e.reloadDocument,e.replace,e.resetScroll,e.viewTransition]),yt=re.useCallback(it=>{it?.isIntersecting&&Et()},[Et]);if(M3(c,yt,F3,{disabled:!!N||Te!=="viewport"}),re.useEffect(()=>{s.current||!N&&Te==="render"&&(Et(),s.current=!0)},[N,Et,Te]),pe)return{...U,ref:c,type:Y,href:g,...$&&{children:$},...z&&{target:z},...N&&{disabled:N},...O&&{style:O},...I&&{className:I},...j&&{onClick:j},...L&&{onFocus:L},...G&&{onMouseEnter:G},...X&&{onMouseLeave:X},...D&&{onTouchStart:D}};const Or=it=>{if(!N&&!I3(it)&&!it.defaultPrevented&&(!z||z==="_self")&&it.button===0){it.preventDefault(),wT.flushSync(()=>{o(!0)});const Ut=n.subscribe("onResolved",()=>{Ut(),o(!1)});n.navigate({...e,from:le,replace:w,resetScroll:T,hashScrollIntoView:_,startTransition:S,viewTransition:k,ignoreBlocker:Z})}},_n=it=>{N||Te&&Et()},ja=_n,Mn=it=>{if(!(N||!Te))if(!Ee)Et();else{const Ut=it.target;if(Cc.has(Ut))return;const $t=setTimeout(()=>{Cc.delete(Ut),Et()},Ee);Cc.set(Ut,$t)}},Ml=it=>{if(N||!Te||!Ee)return;const Ut=it.target,$t=Cc.get(Ut);$t&&(clearTimeout($t),Cc.delete(Ut))},Yr=Xe?wo(d,{})??N3:sv,cr=Xe?sv:wo(f,{})??sv,fi=[I,Yr.className,cr.className].filter(Boolean).join(" "),hi=(O||Yr.style||cr.style)&&{...O,...Yr.style,...cr.style};return{...U,...Yr,...cr,href:N?void 0:fe.maskedLocation?n.history.createHref(fe.maskedLocation.href):n.history.createHref(fe.href),ref:c,onClick:$c([j,Or]),onFocus:$c([L,_n]),onMouseEnter:$c([G,Mn]),onMouseLeave:$c([X,Ml]),onTouchStart:$c([D,ja]),disabled:!!N,target:z,...hi&&{style:hi},...fi&&{className:fi},...N&&D3,...Xe&&P3,...r&&L3}}const sv={},N3={className:"active"},D3={role:"link","aria-disabled":!0},P3={"data-status":"active","aria-current":"page"},L3={"data-transitioning":"transitioning"},Cc=new WeakMap,F3={rootMargin:"100px"},$c=e=>t=>{e.filter(Boolean).forEach(n=>{t.defaultPrevented||n(t)})},mu=re.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,ref:s,...c}=O3(r,t),d=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;return n===void 0&&delete c.disabled,re.createElement(n||"a",{...c,ref:s},d)});function I3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let j3=class extends bT{constructor(t){super(t),this.useMatch=n=>sr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>sr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>e0({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Jb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Qb({...n,from:this.id}),this.useLoaderData=n=>Kb({...n,from:this.id}),this.useNavigate=()=>t0({from:this.fullPath}),this.Link=tt.forwardRef((n,r)=>de.jsx(mu,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function U3(e){return new j3(e)}function H3(){return e=>q3(e)}class B3 extends i3{constructor(t){super(t),this.useMatch=n=>sr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>sr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>e0({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Jb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Qb({...n,from:this.id}),this.useLoaderData=n=>Kb({...n,from:this.id}),this.useNavigate=()=>t0({from:this.fullPath}),this.Link=tt.forwardRef((n,r)=>de.jsx(mu,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function q3(e){return new B3(e)}function an(e){return typeof e=="object"?new US(e,{silent:!0}).createRoute(e):new US(e,{silent:!0}).createRoute}class US{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const o=U3(r);return o.isRoot=!1,o},this.silent=n?.silent}}class HS{constructor(t){this.useMatch=n=>sr({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>sr({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>e0({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>Jb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Qb({...n,from:this.options.id}),this.useLoaderData=n=>Kb({...n,from:this.options.id}),this.useNavigate=()=>{const n=Rn();return t0({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function BS(e){return typeof e=="object"?new HS(e):t=>new HS({id:e,...t})}function bn(e,t){let n,r,o,s;const c=()=>(n||(n=e().then(f=>{n=void 0,r=f[t]}).catch(f=>{if(o=f,lM(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),s=!0)}})),n),d=function(h){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!r)throw c();return re.createElement(r,h)};return d.preload=c,d}function V3(){const e=Rn(),t=re.useRef({router:e,mounted:!1}),[n,r]=re.useState(!1),{hasPendingMatches:o,isLoading:s}=zt({select:m=>({isLoading:m.isLoading,hasPendingMatches:m.matches.some(y=>y.status==="pending")}),structuralSharing:!0}),c=ov(s),d=s||n||o,f=ov(d),h=s||o,g=ov(h);return e.startTransition=m=>{r(!0),re.startTransition(()=>{m(),r(!1)})},re.useEffect(()=>{const m=e.history.subscribe(e.load),y=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return dl(e.latestLocation.href)!==dl(y.href)&&e.commitLocation({...y,replace:!0}),()=>{m()}},[e,e.history]),pf(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(y){console.error(y)}})()},[e]),pf(()=>{c&&!s&&e.emit({type:"onLoad",...xo(e.state)})},[c,e,s]),pf(()=>{g&&!h&&e.emit({type:"onBeforeRouteMount",...xo(e.state)})},[h,g,e]),pf(()=>{f&&!d&&(e.emit({type:"onResolved",...xo(e.state)}),e.__store.setState(m=>({...m,status:"idle",resolvedLocation:m.location})),AM(e))},[d,f,e]),null}function G3(e){const t=zt({select:n=>`not-found-${n.location.pathname}-${n.status}`});return de.jsx(Wb,{getResetKey:()=>t,onCatch:(n,r)=>{var o;if(Rr(n))(o=e.onCatch)==null||o.call(e,n,r);else throw n},errorComponent:({error:n})=>{var r;if(Rr(n))return(r=e.fallback)==null?void 0:r.call(e,n);throw n},children:e.children})}function Y3(){return de.jsx("p",{children:"Not Found"})}function Is(e){return de.jsx(de.Fragment,{children:e.children})}function xT(e,t,n){return t.options.notFoundComponent?de.jsx(t.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?de.jsx(e.options.defaultNotFoundComponent,{data:n}):de.jsx(Y3,{})}function Z3({children:e}){return typeof document<"u"?null:de.jsx("script",{className:"$tsr",dangerouslySetInnerHTML:{__html:[e].filter(
66Boolean).join(` 67`)}})}function X3(){const e=Rn(),n=(e.options.getScrollRestorationKey||dy)(e.latestLocation),r=n!==dy(e.latestLocation)?n:void 0;if(!e.isScrollRestoring||!e.isServer)return null;const o={storageKey:hh,shouldScrollRestoration:!0};return r&&(o.key=r),de.jsx(Z3,{children:`(${cT.toString()})(${JSON.stringify(o)})`})}const ST=re.memo(function({matchId:t}){var n,r;const o=Rn(),s=zt({select:z=>{const N=z.matches.find(O=>O.id===t);return or(N),{routeId:N.routeId,ssr:N.ssr,_displayPending:N._displayPending}},structuralSharing:!0}),c=o.routesById[s.routeId],d=c.options.pendingComponent??o.options.defaultPendingComponent,f=d?de.jsx(d,{}):null,h=c.options.errorComponent??o.options.defaultErrorComponent,g=c.options.onCatch??o.options.defaultOnCatch,m=c.isRoot?c.options.notFoundComponent??((n=o.options.notFoundRoute)==null?void 0:n.options.component):c.options.notFoundComponent,y=s.ssr===!1||s.ssr==="data-only",_=(!c.isRoot||c.options.wrapInSuspense||y)&&(c.options.wrapInSuspense??d??(((r=c.options.errorComponent)==null?void 0:r.preload)||y))?re.Suspense:Is,w=h?Wb:Is,S=m?G3:Is,T=zt({select:z=>z.loadedAt}),k=zt({select:z=>{var N;const O=z.matches.findIndex(I=>I.id===t);return(N=z.matches[O-1])==null?void 0:N.routeId}}),$=c.isRoot?c.options.shellComponent??Is:Is;return de.jsxs($,{children:[de.jsx(sp.Provider,{value:t,children:de.jsx(_,{fallback:f,children:de.jsx(w,{getResetKey:()=>T,errorComponent:h||Fu,onCatch:(z,N)=>{if(Rr(z))throw z;g?.(z,N)},children:de.jsx(S,{fallback:z=>{if(!m||z.routeId&&z.routeId!==s.routeId||!z.routeId&&!c.isRoot)throw z;return re.createElement(m,z)},children:y||s._displayPending?de.jsx(_3,{fallback:f,children:de.jsx(qS,{matchId:t})}):de.jsx(qS,{matchId:t})})})})}),k===nr&&o.options.scrollRestoration?de.jsxs(de.Fragment,{children:[de.jsx(W3,{}),de.jsx(X3,{})]}):null]})});function W3(){const e=Rn(),t=re.useRef(void 0);return de.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...xo(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const qS=re.memo(function({matchId:t}){var n,r,o,s;const c=Rn(),{match:d,key:f,routeId:h}=zt({select:y=>{const _=y.matches.find($=>$.id===t),w=_.routeId,S=c.routesById[w].options.remountDeps??c.options.defaultRemountDeps,T=S?.({routeId:w,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:T?JSON.stringify(T):void 0,routeId:w,match:{id:_.id,status:_.status,error:_.error,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),g=c.routesById[h],m=re.useMemo(()=>{const y=g.options.component??c.options.defaultComponent;return y?de.jsx(y,{},f):de.jsx(K3,{})},[f,g.options.component,c.options.defaultComponent]);if(d._displayPending)throw(n=c.getMatch(d.id))==null?void 0:n._nonReactive.displayPendingPromise;if(d._forcePending)throw(r=c.getMatch(d.id))==null?void 0:r._nonReactive.minPendingPromise;if(d.status==="pending"){const y=g.options.pendingMinMs??c.options.defaultPendingMinMs;if(y){const _=c.getMatch(d.id);if(_&&!_._nonReactive.minPendingPromise&&!c.isServer){const w=Eo();_._nonReactive.minPendingPromise=w,setTimeout(()=>{w.resolve(),_._nonReactive.minPendingPromise=void 0},y)}}throw(o=c.getMatch(d.id))==null?void 0:o._nonReactive.loadPromise}if(d.status==="notFound")return or(Rr(d.error)),xT(c,g,d.error);if(d.status==="redirected")throw or(Hn(d.error)),(s=c.getMatch(d.id))==null?void 0:s._nonReactive.loadPromise;if(d.status==="error"){if(c.isServer){const y=(g.options.errorComponent??c.options.defaultErrorComponent)||Fu;return de.jsx(y,{error:d.error,reset:void 0,info:{componentStack:""}})}throw d.error}return m}),K3=re.memo(function(){const t=Rn(),n=re.useContext(sp),r=zt({select:h=>{var g;return(g=h.matches.find(m=>m.id===n))==null?void 0:g.routeId}}),o=t.routesById[r],s=zt({select:h=>{const m=h.matches.find(y=>y.id===n);return or(m),m.globalNotFound}}),c=zt({select:h=>{var g;const m=h.matches,y=m.findIndex(_=>_.id===n);return(g=m[y+1])==null?void 0:g.id}}),d=t.options.defaultPendingComponent?de.jsx(t.options.defaultPendingComponent,{}):null;if(s)return xT(t,o,void 0);if(!c)return null;const f=de.jsx(ST,{matchId:c});return n===nr?de.jsx(re.Suspense,{fallback:d,children:f}):f});function Q3(){const e=Rn(),t=e.options.defaultPendingComponent?de.jsx(e.options.defaultPendingComponent,{}):null,n=e.isServer||typeof document<"u"&&e.ssr?Is:re.Suspense,r=de.jsxs(n,{fallback:t,children:[!e.isServer&&de.jsx(V3,{}),de.jsx(J3,{})]});return e.options.InnerWrap?de.jsx(e.options.InnerWrap,{children:r}):r}function J3(){const e=Rn(),t=zt({select:o=>{var s;return(s=o.matches[0])==null?void 0:s.id}}),n=zt({select:o=>o.loadedAt}),r=t?de.jsx(ST,{matchId:t}):null;return de.jsx(sp.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:de.jsx(Wb,{getResetKey:()=>n,errorComponent:Fu,onCatch:o=>{o.message||o.toString()},children:r})})}const ez=e=>new tz(e);class tz extends qM{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=an,globalThis.createLazyFileRoute=BS):typeof window<"u"&&(window.createFileRoute=an,window.createLazyFileRoute=BS);function nz({router:e,children:t,...n}){Object.keys(n).length>
670&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=_T(),o=de.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?de.jsx(e.options.Wrap,{children:o}):o}function rz({router:e,...t}){return de.jsx(nz,{router:e,...t,children:de.jsx(Q3,{})})}function iz(e){return zt({select:t=>t.location})}function ET({tag:e,attrs:t,children:n}){switch(e){case"title":return de.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return de.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return de.jsx("link",{...t,suppressHydrationWarning:!0});case"style":return de.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n}});case"script":return de.jsx(az,{attrs:t,children:n});default:return null}}function az({attrs:e,children:t}){return re.useEffect(()=>{if(e?.src){const n=document.createElement("script");for(const[r,o]of Object.entries(e))r!=="suppressHydrationWarning"&&o!==void 0&&o!==!1&&n.setAttribute(r,typeof o=="boolean"?"":String(o));return document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}}if(typeof t=="string"){const n=document.createElement("script");if(n.textContent=t,e)for(const[r,o]of Object.entries(e))r!=="suppressHydrationWarning"&&o!==void 0&&o!==!1&&n.setAttribute(r,typeof o=="boolean"?"":String(o));return document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}}},[e,t]),e?.src&&typeof e.src=="string"?de.jsx("script",{...e,suppressHydrationWarning:!0}):typeof t=="string"?de.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}const oz=()=>{const e=Rn(),t=zt({select:d=>d.matches.map(f=>f.meta).filter(Boolean)}),n=re.useMemo(()=>{const d=[],f={};let h;for(let g=t.length-1;g>=0;g--){const m=t[g];for(let y=m.length-1;y>=0;y--){const _=m[y];if(_)if(_.title)h||(h={tag:"title",children:_.title});else{const w=_.name??_.property;if(w){if(f[w])continue;f[w]=!0}d.push({tag:"meta",attrs:{..._}})}}}return h&&d.push(h),d.reverse(),d},[t]),r=zt({select:d=>{var f;const h=d.matches.map(y=>y.links).filter(Boolean).flat(1).map(y=>({tag:"link",attrs:{...y}})),g=(f=e.ssr)==null?void 0:f.manifest,m=d.matches.map(y=>{var _;return((_=g?.routes[y.routeId])==null?void 0:_.assets)??[]}).filter(Boolean).flat(1).filter(y=>y.tag==="link").map(y=>({tag:"link",attrs:{...y.attrs,suppressHydrationWarning:!0}}));return[...h,...m]},structuralSharing:!0}),o=zt({select:d=>{const f=[];return d.matches.map(h=>e.looseRoutesById[h.routeId]).forEach(h=>{var g,m,y,_;return(_=(y=(m=(g=e.ssr)==null?void 0:g.manifest)==null?void 0:m.routes[h.id])==null?void 0:y.preloads)==null?void 0:_.filter(Boolean).forEach(w=>{f.push({tag:"link",attrs:{rel:"modulepreload",href:w}})})}),f},structuralSharing:!0}),s=zt({select:d=>d.matches.map(f=>f.styles).flat(1).filter(Boolean).map(({children:f,...h})=>({tag:"style",attrs:h,children:f})),structuralSharing:!0}),c=zt({select:d=>d.matches.map(f=>f.headScripts).flat(1).filter(Boolean).map(({children:f,...h})=>({tag:"script",attrs:{...h},children:f})),structuralSharing:!0});return lz([...n,...o,...r,...s,...c],d=>JSON.stringify(d))};function sz(){return oz().map(t=>re.createElement(ET,{...t,key:`tsr-meta-${JSON.stringify(t)}`}))}function lz(e,t){const n=new Set;return e.filter(r=>{const o=t(r);return n.has(o)?!1:(n.add(o),!0)})}const cz=()=>{const e=Rn(),t=zt({select:o=>{var s;const c=[],d=(s=e.ssr)==null?void 0:s.manifest;return d?(o.matches.map(f=>e.looseRoutesById[f.routeId]).forEach(f=>{var h,g;return(g=(h=d.routes[f.id])==null?void 0:h.assets)==null?void 0:g.filter(m=>m.tag==="script").forEach(m=>{c.push({tag:"script",attrs:m.attrs,children:m.children})})}),c):[]},structuralSharing:!0}),{scripts:n}=zt({select:o=>({scripts:o.matches.map(s=>s.scripts).flat(1).filter(Boolean).map(({children:s,...c})=>({tag:"script",attrs:{...c,suppressHydrationWarning:!0},children:s}))}),structuralSharing:!0}),r=[...n,...t];return de.jsx(de.Fragment,{children:r.map((o,s)=>re.createElement(ET,{...o,key:`tsr-scripts-${o.tag}-${s}`}))})};let mf;function uz(e){return mf||(e.router.state.matches.length?mf=Promise.resolve():mf=uM(e.router)),de.jsx(v3,{promise:mf,children:()=>de.jsx(rz,{router:e.router})})}var lp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dz={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},fz=class{#e=dz;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},hy=new fz;function hz(e){setTimeout(e,0)}var cp=typeof window>"u"||"Deno"in globalThis;function tr(){}function pz(e,t){return typeof e=="function"?e(t):e}function mz(e){return typeof e=="number"&&e>=0&&e!==1/0}function gz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function py(e,t){return typeof e=="function"?e(t):e}function vz(e,t){return typeof e=="function"?e(t):e}function VS(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:c,stale:d}=e;if(c){if(r){if(t.queryHash!==n0(c,t.options))return!1}else if(!vu(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||s&&!s(t))}function GS(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(gu(t.options.mutationKey)!==gu(s))return!1}else if(!vu(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function n0(e,t){return(t?.queryKeyHashFn||gu)(e)}function gu(e){return JSON.stringify(e,(t,n)=>my(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vu(e[n],t[n])):!1}var yz=Object.prototype.hasOwnProperty;function kT(e,t){if(e===t)return e;const n=YS(e)&&YS(t);if(!n&&!(my(e)&&my(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,d=n?new Array(c):{};let f=0;for(let h=0;h<c;h++){const g=n?h:s[h],m=e[g],y=t[g];if(m===y){d[g]=m,(n?h<o:yz.call(e,g))&&f++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){d[g]=y;continue}const _=kT(m,y);d[g]=_,_===m&&f++}return o===c&&f===o?e:d}function Fq(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function YS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function my(e){if(!ZS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ZS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ZS(e){return Object.prototype.toString.call(e)==="[object Object]"}function bz(e){return new Promise(t=>{hy.setTimeout(t,e)})}function _z(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kT(e,t):t}function wz(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function xz(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var r0=Symbol();function TT(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===r0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Iq(e,t){return typeof e=="function"?e(...t):!!e}var Sz=class extends lp{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!cp&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
67this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},CT=new Sz;function Ez(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function kz(e){let t;if(e.then(n=>(t=n,n),tr)?.catch(tr),t!==void 0)return{data:t}}function $T(e){return e}function Tz(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Cz(e,t,n){return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:e.promise?.then(t).catch(r=>n(r)?Promise.reject(new Error("redacted")):Promise.reject(r))},...e.meta&&{meta:e.meta}}}function $z(e){return e.state.isPaused}function Rz(e){return e.state.status==="success"}function Az(e){return!0}function XS(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??$z,r=e.getMutationCache().getAll().flatMap(f=>n(f)?[Tz(f)]:[]),o=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Rz,s=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??Az,c=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??$T,d=e.getQueryCache().getAll().flatMap(f=>o(f)?[Cz(f,c,s)]:[]);return{mutations:r,queries:d}}function WS(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),s=e.getDefaultOptions().hydrate?.deserializeData??$T,c=t.mutations||[],d=t.queries||[];
67c.forEach(({state:f,...h})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...h},f)}),d.forEach(({queryKey:f,state:h,queryHash:g,meta:m,promise:y,dehydratedAt:_})=>{const w=y?kz(y):void 0,S=h.data===void 0?w?.data:h.data,T=S===void 0?S:s(S);let k=o.get(g);const $=k?.state.status==="pending",z=k?.state.fetchStatus==="fetching";if(k){const N=w&&_!==void 0&&_>k.state.dataUpdatedAt;if(h.dataUpdatedAt>k.state.dataUpdatedAt||N){const{fetchStatus:O,...I}=h;k.setState({...I,data:T})}}else k=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:f,queryHash:g,meta:m},{...h,data:T,fetchStatus:"idle",status:T!==void 0?"success":h.status});y&&!$&&!z&&(_===void 0||_>k.state.dataUpdatedAt)&&k.fetch(void 0,{initialPromise:Promise.resolve(y).then(s)})})}var Mz=hz;function zz(){let e=[],t=0,n=d=>{d()},r=d=>{d()},o=Mz;const s=d=>{t?e.push(d):o(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||c()}return f},batchCalls:d=>(...f)=>{s(()=>{d(...f)})},schedule:s,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var Cn=zz(),Oz=class extends lp{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!cp&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},gh=new Oz;function Nz(e){return Math.min(1e3*2**e,3e4)}function RT(e){return(e??"online")==="online"?gh.isOnline():!0}var gy=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function AT(e){let t=!1,n=0,r;const o=Ez(),s=()=>o.status!=="pending",c=S=>{if(!s()){const T=new gy(S);y(T),e.onCancel?.(T)}},d=()=>{t=!0},f=()=>{t=!1},h=()=>CT.isFocused()&&(e.networkMode==="always"||gh.isOnline())&&e.canRun(),g=()=>RT(e.networkMode)&&e.canRun(),m=S=>
vendor: 16,656 bytes, line 67
67{s()||(r?.(),o.resolve(S))},y=S=>{s()||(r?.(),o.reject(S))},_=()=>new Promise(S=>{r=T=>{(s()||h())&&S(T)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let S;const T=n===0?e.initialPromise:void 0;try{S=T??e.fn()}catch(k){S=Promise.reject(k)}Promise.resolve(S).then(m).catch(k=>{if(s())return;const $=e.retry??(cp?0:3),z=e.retryDelay??Nz,N=typeof z=="function"?z(n,k):z,O=$===!0||typeof $=="number"&&n<$||typeof $=="function"&&$(n,k);if(t||!O){y(k);return}n++,e.onFail?.(n,k),bz(N).then(()=>h()?void 0:_()).then(()=>{t?y(k):w()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(r?.(),o),cancelRetry:d,continueRetry:f,canStart:g,start:()=>(g()?w():_().then(w),o)}}var MT=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mz(this.gcTime)&&(this.#e=hy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cp?1/0:300*1e3))}clearGcTimeout(){this.#e&&(hy.clearTimeout(this.#e),this.#e=void 0)}},Dz=class extends MT{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=KS(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=KS(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=_z(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>vz(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>py(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!gz(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const d=TT(this.options,t),h=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#s=!1,this.options.persister?this.options.persister(d,h,this):d(h)},c=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return r(d),d})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=AT({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof gy&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(d,f)=>{this.#a({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof gy){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#a({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Pz(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Cn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Pz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function KS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function QS(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let g=!1;const m=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=TT(t.options,t.fetchOptions),_=async(w,S,T)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const $=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return m(I),I})(),z=await y($),{maxPages:N}=t.options,O=T?xz:wz;return{pages:O(w.pages,z,N),pageParams:O(w.pageParams,S,N)}};if(o&&s.length){const w=o==="backward",S=w?Lz:JS,T={pages:s,pageParams:c},k=S(r,T);d=await _(T,k,w)}else{const w=e??s.length;do{const S=f===0?c[0]??r.initialPageParam:JS(r,d);if(f>0&&S==null)break;d=await _(d,S),f++}while(f<w)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function JS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Lz(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Fz=class extends MT{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Iz(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=AT({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:o})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Cn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Iz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jz=class extends lp{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new Fz({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=gf(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=gf(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=gf(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=gf(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Cn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>GS(t,n))}findAll(e={}){return this.getAll().filter(t=>GS(e,t))}notify(e){Cn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Cn.batch(()=>Promise.all(e.map(t=>t.continue().catch(tr))))}};function gf(e){return e.options.scope?.id}var Uz=class extends lp{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??n0(r,t);let s=this.get(o);return s||(s=new Dz({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>VS(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>VS(e,n)):t}notify(e){Cn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Cn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Cn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Hz=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new Uz,this.#t=e.mutationCache||new jz,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=CT.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=gh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(py(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,c=pz(t,s);if(c!==void 0)return this.#e.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Cn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Cn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Cn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Cn.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(tr).catch(tr)}invalidateQueries(e,t={}){return Cn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Cn.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(tr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(tr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(py(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tr).catch(tr)}
67fetchInfiniteQuery(e){return e.behavior=QS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tr).catch(tr)}ensureInfiniteQueryData(e){return e.behavior=QS(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gh.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(gu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{vu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(gu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{vu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=n0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r0&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},zT=re.createContext(void 0),jq=e=>{const t=re.useContext(zT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OT=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),de.jsx(zT.Provider,{value:e,children:t}));function Bz({router:e,queryClient:t,handleRedirects:n=!0}){const r=e.options.hydrate,o=e.options.dehydrate;if(e.isServer){const s=new Set,c=qz();e.options.dehydrate=async()=>{e.serverSsr.onRenderFinished(()=>c.close());const h={...await o?.(),queryStream:c.stream},g=XS(t);return g.queries.length>0&&(g.queries.forEach(m=>{s.add(m.queryHash)}),h.dehydratedQueryClient=g),h};const d=t.getDefaultOptions();t.setDefaultOptions({...d,dehydrate:{shouldDehydrateQuery:()=>!0,...d.dehydrate}}),t.getQueryCache().subscribe(f=>{var h;if((h=e.serverSsr)!=null&&h.isDehydrated()&&!s.has(f.query.queryHash)){if(c.isClosed()){console.warn(`tried to stream query ${f.query.queryHash} after stream was already closed`);return}f.query.promise&&(s.add(f.query.queryHash),c.enqueue(XS(t,{shouldDehydrateQuery:g=>{var m,y;return g.queryHash===f.query.queryHash?((y=(m=d.dehydrate)==null?void 0:m.shouldDehydrateQuery)==null?void 0:y.call(m,g))??!0:!1}})))}})}else if(e.options.hydrate=async s=>{await r?.(s),s.dehydratedQueryClient&&WS(t,s.dehydratedQueryClient);const c=s.queryStream.getReader();c.read().then(async function d({done:f,value:h}
67){if(WS(t,h),f)return;const g=await c.read();return d(g)}).catch(d=>{console.error("Error reading query stream:",d)})},n){const s=t.getMutationCache().config;t.getMutationCache().config={...s,onError:(d,f,h,g)=>{var m;return Hn(d)?(d.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(d).options)):(m=s.onError)==null?void 0:m.call(s,d,f,h,g)}};const c=t.getQueryCache().config;t.getQueryCache().config={...c,onError:(d,f)=>{var h;return Hn(d)?(d.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(d).options)):(h=c.onError)==null?void 0:h.call(c,d,f)}}}}function qz(){let e;const t=new ReadableStream({start(r){e=r}});let n=!1;return{stream:t,enqueue:r=>e.enqueue(r),close:()=>{e.close(),n=!0},isClosed:()=>n,error:r=>e.error(r)}}function Vz(e){if(Bz(e),e.wrapQueryClient===!1)return;const t=e.router.options.Wrap||re.Fragment;e.router.options.Wrap=({children:n})=>de.jsx(OT,{client:e.queryClient,children:de.jsx(t,{children:n})})}var lv={exports:{}},cv={};/** 68 * @license React 69 * react-compiler-runtime.production.js 70 * 71 * Copyright (c) Meta Platforms, Inc. and affiliates. 72 * 73 * This source code is licensed under the MIT license found in the 74 * LICENSE file in the root directory of this source tree. 75 */var e2;function Gz(){if(e2)return cv;e2=1;var e=El().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return cv.c=function(t){return e.H.useMemoCache(t)},cv}var t2;function Yz(){return t2||(t2=1,lv.exports=Gz()),lv.exports}var Iu=Yz();function Zz(){return{queryClient:new Hz}}function Xz(e){const t=Iu.c(3),{children:n,queryClient:r}=e;let o;return t[0]!==n||t[1]!==r?(o=de.jsx(OT,{client:r,children:n}),t[0]=n,t[1]=r,t[2]=o):o=t[2],o}const Wz="/assets/styles-1pH6JL8P.css",Do=typeof document<"u"?tt.useLayoutEffect:()=>{};var uv;const Kz=(uv=tt.useInsertionEffect)!==null&&uv!==void 0?uv:Do;function ti(e){const t=re.useRef(null);return Kz(()=>{t.current=e},[e]),re.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function Qz(e){let[t,n]=re.useState(e),r=re.useRef(null),o=ti(()=>{if(!r.current)return;let c=r.current.next();if(c.done){r.current=null;return}t===c.value?o():n(c.value)});Do(()=>{r.current&&o()});let s=ti(c=>{r.current=c(t),o()});return[t,s]}const NT={prefix:String(Math.round(Math.random()*1e10)),current:0},DT=tt.createContext(NT),Jz=tt.createContext(!1);let dv=new WeakMap;function eO(e=!1){let t=re.useContext(DT),n=re.useRef(null);if(n.current===null&&!e){var r,o;let s=(o=tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let c=dv.get(s);c==null?dv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==c.state&&(t.current=c.id,dv.delete(s))}n.current=++t.current}return n.current}function tO(e){let t=re.useContext(DT),n=eO(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function nO(e){let t=tt.useId(),[n]=re.useState(i0()),r=n?"react-aria":`react-aria${NT.prefix}`;return e||`${r}-${t}`}const rO=typeof tt.useId=="function"?nO:tO;function iO(){return!1}function aO(){return!0}function oO(e){return()=>{}}function i0(){return typeof tt.useSyncExternalStore=="function"?tt.useSyncExternalStore(oO,iO,aO):re.useContext(Jz)}let sO=!!(typeof window<"u"&&window.document&&window.document.createElement),el=new Map,Bc;typeof FinalizationRegistry<"u"&&(Bc=new FinalizationRegistry(e=>{el.delete(e)}));function hl(e){let[t,n]=re.useState(e),r=re.useRef(null),o=rO(t),s=re.useRef(null);if(Bc&&Bc.register(s,o),sO){const c=el.get(o);c&&!c.includes(r)?c.push(r):el.set(o,[r])}return Do(()=>{let c=o;return()=>{Bc&&Bc.unregister(s),el.delete(c)}},[o]),re.useEffect(()=>{let c=r.current;return c&&n(c),()=>{c&&(r.current=null)}}),o}function lO(e,t){if(e===t)return e;let n=el.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=el.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Uq(e=[]){let t=hl(),[n,r]=Qz(t),o=re.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Do(o,[t,o,...e]),n}function PT(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $n=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Hr=e=>e&&"window"in e&&e.window===e?e:$n(e).defaultView||window;function cO(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function uO(e){return cO(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let dO=!1;function a0(){return dO}function Sr(e,t){if(!a0())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:uO(n)?n=n.host:n=n.parentNode}return!1}const yu=(e=document)=>{var t;if(!a0())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function En(e){return a0()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function LT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=LT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fO(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=LT(e))&&(r&&(r+=" "),r+=t);return r}function ci(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let s=t[o],c=r[o];typeof s=="function"&&typeof c=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=PT(s,c):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof c=="string"?t[o]=fO(s,c):o==="id"&&s&&c?t.id=lO(s,c):t[o]=c!==void 0?c:s}}return t}function hO(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const s=n2(o,t);return n||(n=typeof s=="function"),s});if(n)return()=>{r.forEach((o,s)=>{typeof o=="function"?o():n2(e[s],null)})}}}function n2(e,t){if(typeof e=="function")return e(t);
75e!=null&&(e.current=t)}const pO=new Set(["id"]),mO=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gO=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),vO=new Set(["dir","lang","hidden","inert","translate"]),r2=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),yO=/^(data-.*)$/;function up(e,t={}){let{labelable:n,isLink:r,global:o,events:s=o,propNames:c}=t,d={};for(const f in e)Object.prototype.hasOwnProperty.call(e,f)&&(pO.has(f)||n&&mO.has(f)||r&&gO.has(f)||o&&vO.has(f)||s&&r2.has(f)||f.endsWith("Capture")&&r2.has(f.slice(0,-7))||c?.has(f)||yO.test(f))&&(d[f]=e[f]);return d}function pl(e){if(bO())e.focus({preventScroll:!0});else{let t=_O(e);e.focus(),wO(t)}}let vf=null;function bO(){if(vf==null){vf=!1;try{document.createElement("div").focus({get preventScroll(){return vf=!0,!0}})}catch{}}return vf}function _O(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function wO(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function dp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function o0(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Zi(e){let t=null;return()=>(t==null&&(t=e()),t)}const ml=Zi(function(){return o0(/^Mac/i)}),xO=Zi(function(){return o0(/^iPhone/i)}),FT=Zi(function(){return o0(/^iPad/i)||ml()&&navigator.maxTouchPoints>1}),s0=Zi(function(){return xO()||FT()}),Hq=Zi(function(){return ml()||s0()}
75),SO=Zi(function(){return dp(/AppleWebKit/i)&&!EO()}),EO=Zi(function(){return dp(/Chrome/i)}),IT=Zi(function(){return dp(/Android/i)}),kO=Zi(function(){return dp(/Firefox/i)}),TO=re.createContext({isNative:!0,open:AO,useHref:e=>e});function CO(){return re.useContext(TO)}function $O(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function gl(e,t,n=!0){var r,o;let{metaKey:s,ctrlKey:c,altKey:d,shiftKey:f}=t;kO()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ml()?s=!0:c=!0);let h=SO()&&ml()&&!FT()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:c,altKey:d,shiftKey:f}):new MouseEvent("click",{metaKey:s,ctrlKey:c,altKey:d,shiftKey:f,bubbles:!0,cancelable:!0});gl.isOpening=n,pl(e),e.dispatchEvent(h),gl.isOpening=!1}gl.isOpening=!1;function RO(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function AO(e,t){RO(e,n=>gl(n,t))}function Bq(e){let t=CO();var n;const r=t.useHref((n=e?.href)!==null&&n!==void 0?n:"");return{href:e?.href?r:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function qq(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&$O(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let $a=new Map,vy=new Set;function i2(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=$a.get(r.target);o||(o=new Set,$a.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=$a.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),$a.delete(r.target)),$a.size===0)){for(let s of vy)s();vy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?i2():document.addEventListener("DOMContentLoaded",i2));function MO(){for(const[e]of $a)"isConnected"in e&&!e.isConnected&&$a.delete(e)}function jT(e){requestAnimationFrame(()=>{MO(),$a.size===0?e():vy.add(e)})}function l0(){let e=re.useRef(new Map),t=re.useCallback((o,s,c,d)=>{let f=d?.once?(...h)=>{e.current.delete(c),c(...h)}:c;e.current.set(c,{type:s,eventTarget:o,fn:f,options:d}),o.addEventListener(s,f,d)},[]),n=re.useCallback((o,s,c,d)=>{var f;let h=((f=e.current.get(c))===null||f===void 0?void 0:f.fn)||c;o.removeEventListener(s,h,d),e.current.delete(c)},[]),r=re.useCallback(()=>{e.current.forEach((o,s)=>{n(o.eventTarget,o.type,s,o.options)})},[n]);return re.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zO(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=hl(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function UT(e){const t=re.useRef(null),n=re.useRef(void 0),r=re.useCallback(o=>{if(typeof e=="function"){const s=e,c=s(o);return()=>{typeof c=="function"?c():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return re.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}function HT(e,t){Do(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function BT(e){return e.pointerType===""&&e.isTrusted?!0:IT()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function OO(e){return!IT()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const NO=typeof Element<"u"&&"checkVisibility"in Element.prototype;function DO(e){const t=Hr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:c,visibility:d}=s(e);o=c!=="none"&&d!=="hidden"&&d!=="collapse"}return o}function PO(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function c0(e,t){return NO?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&DO(e)&&PO(e,t)&&(!e.parentElement||c0(e.parentElement,e))}const u0=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],LO=u0.join(":not([hidden]),")+",[tabindex]:not
75([disabled]):not([hidden])";u0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const FO=u0.join(':not([hidden]):not([tabindex="-1"]),');function IO(e){return e.matches(LO)&&c0(e)&&!qT(e)}function Vq(e){return e.matches(FO)&&c0(e)&&!qT(e)}function qT(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function VT(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function yf(e,t){let n=e,r=0,o=t.toString(),s=o.toLowerCase().indexOf("e-");if(s>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let c=o.indexOf(".");c>=0&&(r=o.length-c)}if(r>0){let c=Math.pow(10,r);n=Math.round(n*c)/c}return n}function Gq(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,s=yf(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(yf(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(yf((n-t)/r,r))*r),s=yf(s,r),s}function Yq(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}const jO=Symbol("default");function Zq({values:e,children:t}){for(let[n,r]of e)t=tt.createElement(n.Provider,{value:r},t);return t}function GT(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:s,defaultStyle:c,values:d}=e;return re.useMemo(()=>{let f,h,g;return typeof t=="function"?f=t({...d,defaultClassName:o}):f=t,typeof n=="function"?h=n({...d,defaultStyle:c||{}}):h=n,typeof r=="function"?g=r({...d,defaultChildren:s}):r==null?g=s:g=r,{className:f??o,style:h||c?{...c,...h}:void 0,children:g??s,"data-rac":""}},[t,n,r,o,s,c,d])}function UO(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function HO(e,t){let n=re.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||jO;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(c=>`"${c}"`)),s=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${o}.`)}return n.slots[r]}return n}function d0(e,t,n){let r=HO(n,e.slot)||{},{ref:o,...s}=r,c=UT(re.useMemo(()=>hO(t,o),[t,o])),d=ci(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?d.style=f=>{let h=typeof s.style=="function"?s.style(f):s.style,g={...f.defaultStyle,...h},m=typeof e.style=="function"?e.style({...f,defaultStyle:g}):e.style;return{...g,...m}}:d.style={...s.style,...e.style}),[d,c]}function BO(e=!0){let[t,n]=re.useState(e),r=re.useRef(!1),o=re.useCallback(s=>{r.current=!0,n(!!s)},[]);return Do(()=>{r.current||n(!1)},[]),[o,t]}function Xq(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const YT=7e3;let Er=null;function a2(e,t="assertive",n=YT){Er?Er.announce(e,t,n):(Er=new qO,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Er.announce(e,t,n):setTimeout(()=>{Er?.isAttached()&&Er?.announce(e,t,n)},100))}function Wq(e){Er&&Er.clear(e)}class qO{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=YT){var o,s;if(!this.node)return;let c=document.createElement("div");typeof t=="object"?(c.setAttribute("role","img"),c.setAttribute("aria-labelledby",t["aria-labelledby"])):c.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(c):(s=this.politeLog)===null||s===void 0||s.appendChild(c),t!==""&&setTimeout(()=>{c.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}
75const VO=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),GO=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function YO(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return VO.has(n.script)}let t=e.split("-")[0];return GO.has(t)}const ZO=Symbol.for("react-aria.i18n.locale");function ZT(){let e=typeof window<"u"&&window[ZO]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:YO(e)?"rtl":"ltr"}}let yy=ZT(),qc=new Set;function o2(){yy=ZT();for(let e of qc)e(yy)}function XO(){let e=i0(),[t,n]=re.useState(yy);return re.useEffect(()=>(qc.size===0&&window.addEventListener("languagechange",o2),qc.add(n),()=>{qc.delete(n),qc.size===0&&window.removeEventListener("languagechange",o2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WO=tt.createContext(null);function KO(){let e=XO();return re.useContext(WO)||e}function QO(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function JO(e,t,n){QO(e,t),t.set(e,n)}let fv=new Map,by=!1;try{by=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let vh=!1;try{vh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const XT={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class e6{format(t){let n="";if(!by&&this.options.signDisplay!=null?n=n6(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!vh){var r;let{unit:o,unitDisplay:s="short",locale:c}=this.resolvedOptions();if(!o)return n;let d=(r=XT[o])===null||r===void 0?void 0:r[s];n+=d[c]||d.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} â ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" â ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!by&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!vh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=t6(t,n),this.options=n}}function t6(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!vh){var r;let{unit:c,unitDisplay:d="short"}=t;if(!c)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=XT[c])===null||r===void 0)&&r[d]))throw new Error(`Unsupported unit ${c} with unitDisplay = ${d}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((c,d)=>c[0]<d[0]?-1:1).join():"");if(fv.has(o))return fv.get(o);let s=new Intl.NumberFormat(e,t);return fv.set(o,s),s}function n6(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),s=e.format(n),c=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...c].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(c,"+").replace("!!!",s)}else return e.format(n)}}function r6(e={}){let{locale:t}=KO();return re.useMemo(()=>new e6(t,e),[t,e])}function f0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function WT(e,t){Object.defineProperty(e,"target",{value:t}
75),Object.defineProperty(e,"currentTarget",{value:t})}function KT(e){let t=re.useRef({isFocused:!1,observer:null});Do(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ti(r=>{e?.(r)});return re.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,s=c=>{if(t.current.isFocused=!1,o.disabled){let d=f0(c);n(d)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var c;(c=t.current.observer)===null||c===void 0||c.disconnect();let d=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let yh=!1;function i6(e){for(;e&&!IO(e);)e=e.parentElement;let t=Hr(e),n=t.document.activeElement;if(!n||n===e)return;yh=!0;let r=!1,o=g=>{(g.target===n||r)&&g.stopImmediatePropagation()},s=g=>{(g.target===n||r)&&(g.stopImmediatePropagation(),!e&&!r&&(r=!0,pl(n),f()))},c=g=>{(g.target===e||r)&&g.stopImmediatePropagation()},d=g=>{(g.target===e||r)&&(g.stopImmediatePropagation(),r||(r=!0,pl(n),f()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",c,!0);let f=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",c,!0),yh=!1,r=!1},h=requestAnimationFrame(f);return f}let qs="default",_y="",Wf=new WeakMap;function a6(e){if(s0()){if(qs==="default"){const t=$n(e);_y=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}qs="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Wf.set(e,e.style[t]),e.style[t]="none"}}function s2(e){if(s0()){if(qs!=="disabled")return;qs="restoring",setTimeout(()=>{jT(()=>{if(qs==="restoring"){const t=$n(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_y||""),_y="",qs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Wf.has(e)){let t=Wf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Wf.delete(e)}}const QT=tt.createContext({register:()=>{}});QT.displayName="PressResponderContext";function o6(e,t){return t.get?t.get.call(e):t.value}function JT(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function s6(e,t){var n=JT(e,t,"get");return o6(e,n)}function l6(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function l2(e,t,n){var r=JT(e,t,"set");return l6(e,r,n),n}function c6(e){let t=re.useContext(QT);if(t){let{register:n,...r}=t;e=ci(r,e),n()}return HT(t,e.ref),e}var bf=new WeakMap;class _f{continuePropagation(){l2(this,bf,!1)}get shouldStopPropagation(){return s6(this,bf)}constructor(t,n,r,o){JO(this,bf,{writable:!0,value:void 0}),l2(this,bf,!0);var s;let c=(s=o?.target)!==null&&s!==void 0?s:r.currentTarget;const d=c?.getBoundingClientRect();let f,h=0,g,m=null;r.clientX!=null&&r.clientY!=null&&(g=r.clientX,m=r.clientY),d&&(g!=null&&m!=null?(f=g-d.left,h=m-d.top):(f=d.width/2,h=d.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=f,this.y=h}}const c2=Symbol("linkClicked"),u2="react-aria-pressable-style",d2="data-react-aria-pressable";function u6(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:s,onClick:c,isDisabled:d,isPressed:f,preventFocusOnPress:h,shouldCancelOnPointerExit:g,allowTextSelectionOnPress:m,ref:y,..._}=c6(e),[w,S]=re.useState(!1),T=re.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:k,removeAllGlobalListeners:$}=l0(),z=ti((D,Z)=>{let ce=T.current;if(d||ce.didFirePressStart)return!1;let H=!0;if(ce.isTriggeringEvent=!0,r){let ae=new _f("pressstart",Z,D);r(ae),H=ae.shouldStopPropagation}return n&&n(!0),ce.isTriggeringEvent=!1,ce.didFirePressStart=!0,S(!0),H}),N=ti((D,Z,ce=!0)=>{let H=T.current;if(!H.didFirePressStart)return!1;H.didFirePressStart=!1,H.isTriggeringEvent=!0;let ae=!0;if(o){let E=new _f("pressend",Z,D);o(E),ae=E.shouldStopPropagation}if(n&&n(!1),S(!1),t&&ce&&!d){let E=new _f("press",Z,D);t(E),ae&&(ae=E.shouldStopPropagation)}return H.isTriggeringEvent=!1,ae}),O=ti((D,Z)=>{let ce=T.current;if(d)return!1;if(s){ce.isTriggeringEvent=!0;let H=new _f("pressup",Z,D);return s(H),ce.isTriggeringEvent=!1,H.shouldStopPropagation}return!0}),I=ti(D=>{let Z=T.current;if(Z.isPressed&&Z.target){Z.didFirePressStart&&Z.pointerType!=null&&N(ao(Z.target,D),Z.pointerType,!1),Z.isPressed=!1,Z.isOverTarget=!1,Z.activePointerId=null,Z.pointerType=null,$(),m||s2(Z.target);for(let ce of Z.disposables)ce();Z.disposables=[]}}),j=ti(D=>{g&&I(D)}),L=ti(D=>{d||c?.(D)}),G=ti((D,Z)=>{if(!d&&c){let ce=new MouseEvent("click",D);WT(ce,Z),c(f0(ce))}}),X=re.useMemo(()=>{let D=T.current,Z={onKeyDown(H){if(hv(H.nativeEvent,H.currentTarget)&&Sr(H.currentTarget,En(H.nativeEvent))){var ae;f2(En(H.nativeEvent),H.key)&&H.preventDefault();let E=!0;if(!D.isPressed&&!H.repeat){D.target=H.currentTarget,D.isPressed=!0,D.pointerType="keyboard",E=z(H,"keyboard");let R=H.currentTarget,A=q=>{hv(q,R)&&!q.repeat&&Sr(R,En(q))&&D.target&&O(ao(D.target,q),"keyboard")};k($n(H.currentTarget),"keyup",PT(A,ce),!0)}E&&H.stopPropagation(),H.metaKey&&ml()&&((ae=D.metaKeyEvents)===null||ae===void 0||ae.set(H.key,H.nativeEvent))}else H.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(H){if(!(H&&!Sr(H.currentTarget,En(H.nativeEvent)))&&H&&H.button===0&&!D.isTriggeringEvent&&!gl.isOpening){let ae=!0;if(d&&H.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||BT(H.nativeEvent))){let E=z(H,"virtual"),R=O(H,"virtual"),A=N(H,"virtual");L(H),ae=E&&R&&A}else if(D.isPressed&&D.pointerType!=="keyboard"){let E=D.pointerType||H.nativeEvent.pointerType||"virtual",R=O(ao(H.currentTarget,H),E),A=N(ao(H.currentTarget,H),E,!0);ae=R&&A,D.isOverTarget=!1,L(H),I(H)}D.ignoreEmulatedMouseEvents=!1,ae&&H.stopPropagation()}}},ce=H=>{var ae;if(D.isPressed&&D.target&&hv(H,D.target)){var E;f2(En(H),H.key)&&H.preventDefault();let A=En(H),q=Sr(D.target,En(H));N(ao(D.target,H),"keyboard",q),q&&G(H,D.target),$(),H.key!=="Enter"&&h0(D.target)&&Sr(D.target,A)&&!H[c2]&&(H[c2]=!0,gl(D.target,H,!1)),D.isPressed=!1,(E=D.metaKeyEvents)===null||E===void 0||E.delete(H.key)}else if(H.key==="Meta"&&(!((ae=D.metaKeyEvents)===null||ae===void 0)&&ae.size)){var R;let A=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let q of A.values())(R=D.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",q))}};if(typeof PointerEvent<"u"){Z.onPointerDown=E=>{if(E.button!==0||!Sr(E.currentTarget,En(E.nativeEvent)))return;if(OO(E.nativeEvent)){D.pointerType="virtual";return}D.pointerType=E.pointerType;let R=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=E.pointerId,D.target=E.currentTarget,m||a6(D.target),R=z(E,D.pointerType);let A=En(E.nativeEvent);"releasePointerCapture"in A&&A.releasePointerCapture(E.pointerId),k($n(E.currentTarget),"pointerup",H,!1),k($n(E.currentTarget),"pointercancel",ae,!1)}R&&E.stopPropagation()},Z.onMouseDown=E=>{if(Sr(E.currentTarget,En(E.nativeEvent))&&E.button===0){if(h){let R=i6(E.target);R&&D.disposables.push(R)}E.stopPropagation()}},Z.onPointerUp=E=>{!Sr(E.currentTarget,En(E.nativeEvent))||D.pointerType==="virtual"||E.button===0&&!D.isPressed&&O(E,D.pointerType||E.pointerType)},Z.onPointerEnter=E=>{E.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,z(ao(D.target,E),D.pointerType))},Z.onPointerLeave=E=>{E.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,N(ao(D.target,E),D.pointerType,!1),j(E))};let H=E=>{if(E.pointerId===D.activePointerId&&D.isPressed&&E.button===0&&D.target){if(Sr(D.target,En(E))&&D.pointerType!=null){let R=!1,A=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(R?I(E):(pl(D.target),D.target.click()))},80);k(E.currentTarget,"click",()=>R=!0,!0),D.disposables.push(()=>clearTimeout(A))}else I(E);D.isOverTarget=!1}},ae=E=>{I(E)};Z.onDragStart=E=>{Sr(E.currentTarget,En(E.nativeEvent))&&I(E)}}return Z},[k,d,h,$,m,I,j,N,z,O,L,G]);return re.useEffect(()=>{if(!y)return;const D=$n(y.current);if(!D||!D.head||D.getElementById(u2))return;const Z=D.createElement("style");Z.id=u2,Z.textContent=` 76@layer { 77 [${d2}] { 78 touch-action: pan-x pan-y pinch-zoom; 79 } 80} 81 `.trim(),D.head.prepend(Z)},[y]),re.useEffect(()=>{let D=T.current;return()=>{var Z;m||s2((Z=D.target)!==null&&Z!==void 0?Z:void 0);for(let ce of D.disposables)ce();D.disposables=[]}},[m]),{isPressed:f||w,pressProps:ci(_,X,{[d2]:!0})}}function h0(e){return e.tagName==="A"&&e.hasAttribute("href")}function hv(e,t){const{key:n,code:r}=e,o=t,s=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Hr(o).HTMLInputElement&&!eC(o,n)||o instanceof Hr(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&h0(o))&&n!=="Enter")}function ao(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function d6(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset"
81:!h0(e)}function f2(e,t){return e instanceof HTMLInputElement?!eC(e,t):d6(e)}const f6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":f6.has(e.type)}let Yi=null,bu=new Set,ru=new Map,Co=!1,wy=!1;const h6={Tab:!0,Escape:!0};function fp(e,t){for(let n of bu)n(e,t)}function p6(e){return!(e.metaKey||!ml()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function bh(e){Co=!0,p6(e)&&(Yi="keyboard",fp("keyboard",e))}function tl(e){Yi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Co=!0,fp("pointer",e))}function tC(e){BT(e)&&(Co=!0,Yi="virtual")}function nC(e){e.target===window||e.target===document||yh||!e.isTrusted||(!Co&&!wy&&(Yi="virtual",fp("virtual",e)),Co=!1,wy=!1)}function rC(){yh||(Co=!1,wy=!0)}function _h(e){if(typeof window>"u"||typeof document>"u"||ru.get(Hr(e)))return;const t=Hr(e),n=$n(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Co=!0,r.apply(this,arguments)},n.addEventListener("keydown",bh,!0),n.addEventListener("keyup",bh,!0),n.addEventListener("click",tC,!0),t.addEventListener("focus",nC,!0),t.addEventListener("blur",rC,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",tl,!0),n.addEventListener("pointermove",tl,!0),n.addEventListener("pointerup",tl,!0)),t.addEventListener("beforeunload",()=>{iC(e)},{once:!0}),ru.set(t,{focus:r})}const iC=(e,t)=>{const n=Hr(e),r=$n(e);t&&r.removeEventListener("DOMContentLoaded",t),ru.has(n)&&(n.HTMLElement.prototype.focus=ru.get(n).focus,r.removeEventListener("keydown",bh,!0),r.removeEventListener("keyup",bh,!0),r.removeEventListener("click",tC,!0),n.removeEventListener("focus",nC,!0),n.removeEventListener("blur",rC,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",tl,!0),r.removeEventListener("pointermove",tl,!0),r.removeEventListener("pointerup",tl,!0)),ru.delete(n))};function m6(e){const t=$n(e);let n;return t.readyState!=="loading"?_h(e):(n=()=>{_h(e)},t.addEventListener("DOMContentLoaded",n)),()=>iC(e,n)}typeof document<"u"&&m6();function aC(){return Yi!=="pointer"}function g6(){return Yi}function Kq(e){Yi=e,fp(e,null)}function Qq(){_h();let[e,t]=re.useState(Yi);return re.useEffect(()=>{let n=()=>{t(Yi)};return bu.add(n),()=>{bu.delete(n)}},[]),i0()?null:e}const v6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function y6(e,t,n){let r=$n(n?.target);const o=typeof window<"u"?Hr(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Hr(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,c=typeof window<"u"?Hr(n?.target).HTMLElement:HTMLElement,d=typeof window<"u"?Hr(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!v6.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof c&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!h6[n.key])}function b6(e,t,n){_h(),re.useEffect(()=>{let r=(o,s)=>{y6(!!n?.isTextInput,o,s)&&e(aC())};return bu.add(r),()=>{bu.delete(r)}},t)}function _6(e){const t=$n(e),n=yu(t);if(g6()==="virtual"){let r=n;jT(()=>{yu(t)===r&&e.isConnected&&pl(e)})}else pl(e)}function oC(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const s=re.useCallback(f=>{if(f.target===f.currentTarget)return r&&r(f),o&&o(!1),!0},[r,o]),c=KT(s),d=re.useCallback(f=>{const h=$n(f.target),g=h?yu(h):yu();f.target===f.currentTarget&&g===En(f.nativeEvent)&&(n&&n(f),o&&o(!0),c(f))},[o,n,c]);return{focusProps:{onFocus:!t&&(n||o||r)?d:void 0,onBlur:!t&&(r||o)?s:void 0}}}function h2(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function w6(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:h2(e.onKeyDown),onKeyUp:h2(e.onKeyUp)}}}let sC=tt.createContext(null);function x6(e){let t=re.useContext(sC)||{};HT(t,e);let{ref:n,...r}=t;return r}const Jq=tt.forwardRef(function(t,n){let{children:r,...o}=t,s=UT(n),c={...o,ref:s};return tt.createElement(sC.Provider,{value:c},r)});function S6(e,t){let{focusProps:n}=oC(e),{keyboardProps:r}=w6(e),o=ci(n,r),s=x6(t),c=e.isDisabled?{}:s,d=re.useRef(e.autoFocus);re.useEffect(()=>{d.current&&t.current&&_6(t.current),d.current=!1},[t]);let f=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(f=void 0),{focusableProps:ci({...o,tabIndex:f},c)}}function E6(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,s=re.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:d}=l0(),f=re.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,d(),n&&n(m),o&&o(!1))},[n,o,s,d]),h=KT(f),g=re.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const y=$n(m.target),_=yu(y);if(!s.current.isFocusWithin&&_===En(m.nativeEvent)){r&&r(m),o&&o(!0),s.current.isFocusWithin=!0,h(m);let w=m.currentTarget;c(y,"focus",S=>{if(s.current.isFocusWithin&&!Sr(w,S.target)){let T=new y.defaultView.FocusEvent("blur",{relatedTarget:S.target});WT(T,w);let k=f0(T);f(k)}},{capture:!0})}},[r,o,h,c,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
81:{focusWithinProps:{onFocus:g,onBlur:f}}}let xy=!1,wf=0;function k6(){xy=!0,setTimeout(()=>{xy=!1},50)}function p2(e){e.pointerType==="touch"&&k6()}function T6(){if(!(typeof document>"u"))return wf===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",p2),wf++,()=>{wf--,!(wf>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",p2)}}function C6(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[s,c]=re.useState(!1),d=re.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;re.useEffect(T6,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=l0(),{hoverProps:g,triggerHoverEnd:m}=re.useMemo(()=>{let y=(S,T)=>{if(d.pointerType=T,o||T==="touch"||d.isHovered||!S.currentTarget.contains(S.target))return;d.isHovered=!0;let k=S.currentTarget;d.target=k,f($n(S.target),"pointerover",$=>{d.isHovered&&d.target&&!Sr(d.target,$.target)&&_($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:k,pointerType:T}),n&&n(!0),c(!0)},_=(S,T)=>{let k=d.target;d.pointerType="",d.target=null,!(T==="touch"||!d.isHovered||!k)&&(d.isHovered=!1,h(),r&&r({type:"hoverend",target:k,pointerType:T}),n&&n(!1),c(!1))},w={};return typeof PointerEvent<"u"&&(w.onPointerEnter=S=>{xy&&S.pointerType==="mouse"||y(S,S.pointerType)},w.onPointerLeave=S=>{!o&&S.currentTarget.contains(S.target)&&_(S,S.pointerType)}),{hoverProps:w,triggerHoverEnd:_}},[t,n,r,o,d,f,h]);return re.useEffect(()=>{o&&m({currentTarget:d.target},d.pointerType)},[o]),{hoverProps:g,isHovered:s}}function $6(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=re.useRef({isFocused:!1,isFocusVisible:t||aC()}),[s,c]=re.useState(!1),[d,f]=re.useState(()=>o.current.isFocused&&o.current.isFocusVisible),h=re.useCallback(()=>f(o.current.isFocused&&o.current.isFocusVisible),[]),g=re.useCallback(_=>{o.current.isFocused=_,c(_),h()},[h]);b6(_=>{o.current.isFocusVisible=_,h()},[],{isTextInput:n});let{focusProps:m}=oC({isDisabled:r,onFocusChange:g}),{focusWithinProps:y}=E6({isDisabled:!r,onFocusWithinChange:g});return{isFocused:s,isFocusVisible:d,focusProps:r?y:m}}function R6(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:s="label"}=e;t=hl(t);let c=hl(),d={};n&&(r=r?`${c} ${r}`:c,d={id:c,htmlFor:s==="label"?t:void 0});let f=zO({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:d,fieldProps:f}}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const wh=re.createContext(!1);function eV(e){if(re.useContext(wh))return tt.createElement(tt.Fragment,null,e.children);let n=tt.createElement(wh.Provider,{value:!0},e.children);return tt.createElement("template",{"data-react-aria-hidden":!0},n)}function lC(e){let t=(n,r)=>re.useContext(wh)?null:e(n,r);return t.displayName=e.displayName||e.name,re.forwardRef(t)}function tV(){return re.useContext(wh)}function A6(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:s,onPressEnd:c,onPressUp:d,onPressChange:f,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:m,href:y,target:_,rel:w,type:S="button"}=e,T;n==="button"?T={type:S,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:T={role:"button",href:n==="a"&&!r?y:void 0,target:n==="a"?_:void 0,type:n==="input"?S:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?w:void 0};let{pressProps:k,isPressed:$}=u6({onPressStart:s,onPressEnd:c,onPressChange:f,onPress:o,onPressUp:d,onClick:m,isDisabled:r,preventFocusOnPress:h,ref:t}),{focusableProps:z}=S6(e,t);g&&(z.tabIndex=r?-1:z.tabIndex);let N=ci(z,k,up(e,{labelable:!0}));return{isPressed:$,buttonProps:ci(T,N,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function M6(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:s,formatOptions:c={style:"percent"}}=e,d=up(e,{labelable:!0}),{labelProps:f,fieldProps:h}=R6({...e,labelElementType:"span"});t=VT(t,n,r);let g=(t-n)/(r-n),m=r6(c);if(!s&&!o){let y=c.style==="percent"?g:t;o=m.format(y)}return{progressBarProps:ci(d,{...h,"aria-valuenow":s?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":s?void 0:o,role:"progressbar"}),labelProps:f}}const cC=re.createContext({}),nV=lC(function(t,n){[t,n]=d0(t,n,cC);let{elementType:r="label",...o}=t;return tt.createElement(r,{className:"react-aria-Label",...o,ref:n})}),uC=re.createContext(null),rV=re.forwardRef(function(t,n){[t,n]=d0(t,n,u
81C);let{value:r=0,minValue:o=0,maxValue:s=100,isIndeterminate:c=!1}=t;r=VT(r,o,s);let[d,f]=BO(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:h,labelProps:g}=M6({...t,label:f}),m=c?void 0:(r-o)/(s-o)*100,y=GT({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:m,valueText:h["aria-valuetext"],isIndeterminate:c}}),_=up(t,{global:!0});return tt.createElement("div",{...ci(_,y,h),ref:n,slot:t.slot||void 0},tt.createElement(cC.Provider,{value:{...g,ref:d,elementType:"span"}},y.children))}),z6=re.createContext({}),O6=lC(function(t,n){[t,n]=d0(t,n,z6);let r=t,{isPending:o}=r,{buttonProps:s,isPressed:c}=A6(t,n);s=N6(s,o);let{focusProps:d,isFocused:f,isFocusVisible:h}=$6(t),{hoverProps:g,isHovered:m}=C6({...t,isDisabled:t.isDisabled||o}),y={isHovered:m,isPressed:(r.isPressed||c)&&!o,isFocused:f,isFocusVisible:h,isDisabled:t.isDisabled||!1,isPending:o??!1},_=GT({...t,values:y,defaultClassName:"react-aria-Button"}),w=hl(s.id),S=hl(),T=s["aria-labelledby"];o&&(T?T=`${T} ${S}`:s["aria-label"]&&(T=`${w} ${S}`));let k=re.useRef(o);re.useEffect(()=>{let z={"aria-labelledby":T||w};(!k.current&&f&&o||k.current&&f&&!o)&&a2(z,"assertive"),k.current=o},[o,f,T,w]);let $=up(t,{global:!0});return delete $.onClick,tt.createElement("button",{...ci($,_,s,d,g),type:s.type==="submit"&&o?"button":s.type,id:w,ref:n,"aria-labelledby":T,slot:t.slot||void 0,"aria-disabled":o?"true":s["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":y.isPressed||void 0,"data-hovered":m||void 0,"data-focused":f||void 0,"data-pending":o||void 0,"data-focus-visible":h||void 0},tt.createElement(uC.Provider,{value:{id:S}},_.children))});function N6(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}var D6=/\s+/g,Sy=e=>typeof e!="string"||!e?e:e.replace(D6," ").trim(),xh=(...e)=>{let t=[],n=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let s=0,c=r.length;s<c;s++)n(r[s]);return}let o=typeof r;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&r!==r)return;t.push(String(r))}else if(o==="object"){let s=Object.keys(r);for(let c=0,d=s.length;c<d;c++){let f=s[c];r[f]&&t.push(f)}}};for(let r=0,o=e.length;r<o;r++){let s=e[r];s!=null&&n(s)}return t.length>0?Sy(t.join(" ")):void 0},m2=e=>e===!1?"false":e===!0?"true":e===0?"0":e,In=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},P6=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!r.includes(s)||e[s]!==t[s])return!1}return!0},g2=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=xh(e[n],r):e[n]=r}return e},dC=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?dC(r,t):r&&t.push(r)}},fC=(...e)=>{let t=[];dC(e,t);let n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},Ey=(e,t)=>{let n={};for(let r in e){let o=e[r];if(r in t){let s=t[r];Array.isArray(o)||Array.isArray(s)?n[r]=fC(s,o):typeof o=="object"&&typeof s=="object"&&o&&s?n[r]=Ey(o,s):n[r]=s+" "+o}else n[r]=o}for(let r in t)r in e||(n[r]=t[r]);return n},L6={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function F6(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var Fi=F6(),I6=e=>{let t=(n,r)=>{let{extend:o=null,slots:s={},variants:c={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:h={}}=n,g={...L6,...r},m=o?.base?xh(o.base,n?.base):n?.base,y=o?.variants&&!In(o.variants)?Ey(c,o.variants):c,_=o?.defaultVariants&&!In(o.defaultVariants)?{...o.defaultVariants,...h}:h;!In(g.twMergeConfig)&&!P6(g.twMergeConfig,Fi.cachedTwMergeConfig)&&(Fi.didTwMergeConfigChange=!0,Fi.cachedTwMergeConfig=g.twMergeConfig);let w=In(o?.slots),S=In(s)?{}:{base:xh(n?.base,w&&o?.base),...s},T=w?S:g2({...o?.slots},In(S)?{base:n?.base}:S),k=In(o?.compoundVariants)?d:fC(o?.compoundVariants,d),$=N=>{if(In(y)&&In(s)&&w)return e(m,N?.class,N?.className)(g);if(k&&!Array.isArray(k))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof k}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let O=(H,ae,E=[],R)=>{let A=E;if(typeof ae=="string"){let q=Sy(ae).split(" ");for(let te=0;te<q.length;te++)A.push(`${H}:${q[te]}`)}else if(Array.isArray(ae))for(let q=0;q<ae.length;q++)A.push(`${H}:${ae[q]}`);
81else if(typeof ae=="object"&&typeof R=="string"&&R in ae){let q=ae[R];if(q&&typeof q=="string"){let te=Sy(q).split(" "),M=[];for(let U=0;U<te.length;U++)M.push(`${H}:${te[U]}`);A[R]=A[R]?A[R].concat(M):M}else if(Array.isArray(q)&&q.length>0){let te=[];for(let M=0;M<q.length;M++)te.push(`${H}:${q[M]}`);A[R]=te}}return A},I=(H,ae=y,E=null,R=null)=>{let A=ae[H];if(!A||In(A))return null;let q=R?.[H]??N?.[H];if(q===null)return null;let te=m2(q),M=Array.isArray(g.responsiveVariants)&&g.responsiveVariants.length>0||g.responsiveVariants===!0,U=_?.[H],Y=[];if(typeof te=="object"&&M)for(let[fe,pe]of Object.entries(te)){let Te=A[pe];if(fe==="initial"){U=pe;continue}Array.isArray(g.responsiveVariants)&&!g.responsiveVariants.includes(fe)||(Y=O(fe,Te,Y,E))}let ne=te!=null&&typeof te!="object"?te:m2(U),le=A[ne||"false"];return typeof Y=="object"&&typeof E=="string"&&Y[E]?g2(Y,le):Y.length>0?(Y.push(le),E==="base"?Y.join(" "):Y):le},j=()=>{if(!y)return null;let H=Object.keys(y),ae=[];for(let E=0;E<H.length;E++){let R=I(H[E],y);R&&ae.push(R)}return ae},L=(H,ae)=>{if(!y||typeof y!="object")return null;let E=[];for(let R in y){let A=I(R,y,H,ae),q=H==="base"&&typeof A=="string"?A:A&&A[H];q&&E.push(q)}return E},G={};for(let H in N){let ae=N[H];ae!==void 0&&(G[H]=ae)}let X=(H,ae)=>{let E=typeof N?.[H]=="object"?{[H]:N[H]?.initial}:{};return{..._,...G,...E,...ae}},D=(H=[],ae)=>{let E=[],R=H.length;for(let A=0;A<R;A++){let{class:q,className:te,...M}=H[A],U=!0,Y=X(null,ae);for(let ne in M){let le=M[ne],fe=Y[ne];if(Array.isArray(le)){if(!le.includes(fe)){U=!1;break}}else{if((le==null||le===!1)&&(fe==null||fe===!1))continue;if(fe!==le){U=!1;break}}}U&&(q&&E.push(q),te&&E.push(te))}return E},Z=H=>{let ae=D(k,H);if(!Array.isArray(ae))return ae;let E={},R=e;for(let A=0;A<ae.length;A++){let q=ae[A];if(typeof q=="string")E.base=R(E.base,q)(g);else if(typeof q=="object")for(let te in q)E[te]=R(E[te],q[te])(g)}return E},ce=H=>{if(f.length<1)return null;let ae={},E=X(null,H);for(let R=0;R<f.length;R++){let{slots:A=[],class:q,className:te,...M}=f[R];if(!In(M)){let U=!0;for(let Y in M){let ne=E[Y],le=M[Y];if(ne===void 0||(Array.isArray(le)?!le.includes(ne):le!==ne)){U=!1;break}}if(!U)continue}for(let U=0;U<A.length;U++){let Y=A[U];ae[Y]||(ae[Y]=[]),ae[Y].push([q,te])}}return ae};if(!In(s)||!w){let H={};if(typeof T=="object"&&!In(T)){let ae=e;for(let E in T)H[E]=R=>{let A=Z(R),q=ce(R);return ae(T[E],L(E,R),A?A[E]:void 0,q?q[E]:void 0,R?.class,R?.className)(g)}}return H}return e(m,j(),D(k),N?.class,N?.className)(g)},z=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return $.variantKeys=z(),$.extend=o,$.base=m,$.slots=T,$.variants=y,$.defaultVariants=_,$.compoundSlots=f,$.compoundVariants=k,$};return{tv:t,createTV:n=>(r,o)=>t(r,o?Ey(n,o):n)}};const p0="-",j6=e=>{const t=H6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const d=c.split(p0);return d[0]===""&&d.length!==1&&d.shift(),hC(d,t)||U6(c)},getConflictingClassGroupIds:(c,d)=>{const f=n[c]||[];return d&&r[c]?[...f,...r[c]]:f}}},hC=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?hC(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(p0);return t.validators.find(({validator:c}
vendor: 4,367 bytes, line 81
81)=>c(s))?.classGroupId},v2=/^\[(.+)\]$/,U6=e=>{if(v2.test(e)){const t=v2.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},H6=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ky(n[o],r,o,t);return r},ky=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:y2(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(B6(o)){ky(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{ky(c,y2(t,s),n,r)})})},y2=(e,t)=>{let n=e;return t.split(p0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},B6=e=>e.isThemeGetter,q6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=r.get(s))!==void 0)return o(s,c),c},set(s,c){n.has(s)?n.set(s,c):o(s,c)}}},Ty="!",Cy=":",V6=Cy.length,G6=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let c=0,d=0,f=0,h;for(let w=0;w<o.length;w++){let S=o[w];if(c===0&&d===0){if(S===Cy){s.push(o.slice(f,w)),f=w+V6;continue}if(S==="/"){h=w;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const g=s.length===0?o:o.substring(f),m=Y6(g),y=m!==g,_=h&&h>f?h-f:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:_}};if(t){const o=t+Cy,s=r;r=c=>c.startsWith(o)?s(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Y6=e=>e.endsWith(Ty)?e.substring(0,e.length-1):e.startsWith(Ty)?e.substring(1):e,Z6=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(c=>{c[0]==="["||t[c]?(o.push(...s.sort(),c),s=[]):s.push(c)}),o.push(...s.sort()),o}},X6=e=>({cache:q6(e.cacheSize),parseClassName:G6(e),sortModifiers:Z6(e),...j6(e)}),W6=/\s+/,K6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],d=e.trim().split(W6);let f="";for(let h=d.length-1;h>=0;h-=1){const g=d[h],{isExternal:m,modifiers:y,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:S}=n(g);if(m){f=g+(f.length>0?" "+f:f);continue}let T=!!S,k=r(T?w.substring(0,S):w);if(!k){if(!T){f=g+(f.length>0?" "+f:f);continue}if(k=r(w),!k){f=g+(f.length>0?" "+f:f);continue}T=!1}const $=s(y).join(":"),z=_?$+Ty:$,N=z+k;if(c.includes(N))continue;c.push(N);const O=o(k,T);for(let I=0;I<O.length;++I){const j=O[I];c.push(z+j)}f=g+(f.length>0?" "+f:f)}return f};function Q6(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=pC(t))&&(r&&(r+=" "),r+=n);return r}const pC=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=pC(e[r]))&&(n&&(n+=" "),n+=t);return n};function $y(e,...t){let n,r,o,s=c;function c(f){const h=t.reduce((g,m)=>m(g),e());return n=X6(h),r=n.cache.get,o=n.cache.set,s=d,d(f)}function d(f){const h=r(f);if(h)return h;const g=K6(f,n);return o(f,g),g}return function(){return s(Q6.apply(null,arguments))}}const Kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},mC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,J6=/^\d+\/\d+$/,eN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$s=e=>J6.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),wa=e=>!!e&&Number.isInteger(Number(e)),pv=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),zi=e=>eN.test(e),aN=()=>!0,oN=e=>tN.test(e)&&!nN.test(e),vC=()=>!1,sN=e=>rN.test(e),lN=e=>iN.test(e),cN=e=>!we(e)&&!xe(e),uN=e=>kl(e,_C,vC),we=e=>mC.test(e),oo=e=>kl(e,wC,oN),mv=e=>kl(e,mN,Fe),b2=e=>kl(e,yC,vC),dN=e=>kl(e,bC,lN),xf=e=>kl(e,xC,sN),xe=e=>gC.test(e),Rc=e=>Tl(e,wC),fN=e=>Tl(e,gN),_2=e=>Tl(e,yC),hN=e=>Tl(e,_C),pN=e=>Tl(e,bC),Sf=e=>Tl(e,xC,!0),kl=(e,t,n)=>{const r=mC.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Tl=(e,t,n=!1)=>{const r=gC.exec(e);return r?r[1]?t(r[1]):n:!1}
vendor: 4,379 bytes, line 81
81,yC=e=>e==="position"||e==="percentage",bC=e=>e==="image"||e==="url",_C=e=>e==="length"||e==="size"||e==="bg-size",wC=e=>e==="length",mN=e=>e==="number",gN=e=>e==="family-name",xC=e=>e==="shadow",Ry=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),r=Kt("font-weight"),o=Kt("tracking"),s=Kt("leading"),c=Kt("breakpoint"),d=Kt("container"),f=Kt("spacing"),h=Kt("radius"),g=Kt("shadow"),m=Kt("inset-shadow"),y=Kt("text-shadow"),_=Kt("drop-shadow"),w=Kt("blur"),S=Kt("perspective"),T=Kt("aspect"),k=Kt("ease"),$=Kt("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...N(),xe,we],I=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],L=()=>[xe,we,f],G=()=>[$s,"full","auto",...L()],X=()=>[wa,"none","subgrid",xe,we],D=()=>["auto",{span:["full",wa,xe,we]},wa,xe,we],Z=()=>[wa,"auto",xe,we],ce=()=>["auto","min","max","fr",xe,we],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...L()],R=()=>[$s,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],A=()=>[e,xe,we],q=()=>[...N(),_2,b2,{position:[xe,we]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",hN,uN,{size:[xe,we]}],U=()=>[pv,Rc,oo],Y=()=>["","none","full",h,xe,we],ne=()=>["",Fe,Rc,oo],le=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[Fe,pv,_2,b2],Te=()=>["","none",w,xe,we],Ee=()=>["none",Fe,xe,we],Xe=()=>["none",Fe,xe,we],Et=()=>[Fe,xe,we],yt=()=>[$s,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zi],breakpoint:[zi],color:[aN],container:[zi],"drop-shadow":[zi],ease:["in","out","in-out"],font:[cN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zi],shadow:[zi],spacing:["px",Fe],text:[zi],"text-shadow":[zi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$s,we,xe,T]}],container:["container"],columns:[{columns:[Fe,we,xe,d]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[wa,"auto",xe,we]}],basis:[{basis:[$s,"full","auto",d,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,$s,"auto","initial","none",we]}],grow:[{grow:["",Fe,xe,we]}],shrink:[{shrink:["",Fe,xe,we]}],order:[{order:[wa,"first","last","none",xe,we]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":Z()}
vendor: 11,058 bytes, line 81
81],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],w:[{w:[d,"screen",...R()]}],"min-w":[{"min-w":[d,"screen","none",...R()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",n,Rc,oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,mv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pv,we]}],"font-family":[{font:[fN,we,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,xe,we]}],"line-clamp":[{"line-clamp":[Fe,"none",xe,mv]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",xe,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",xe,oo]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Fe,"auto",xe,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wa,xe,we],radial:["",xe,we],conic:[wa,xe,we]},pN,dN]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,xe,we]}],"outline-w":[{outline:["",Fe,Rc,oo]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",g,Sf,xf]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,Sf,xf]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Fe,oo]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",y,Sf,xf]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Fe,xe,we]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[xe,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,we]}],filter:[{filter:["","none",xe,we]}],blur:[{blur:Te()}],brightness:[{brightness:[Fe,xe,we]}],contrast:[{contrast:[Fe,xe,we]}],"drop-shadow":[{"drop-shadow":["","none",_,Sf,xf]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Fe,xe,we]}],"hue-rotate":[{"hue-rotate":[Fe,xe,we]}],invert:[{invert:["",Fe,xe,we]}],saturate:[{saturate:[Fe,xe,we]}],sepia:[{sepia:["",Fe,xe,we]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,we]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,xe,we]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,xe,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,xe,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,xe,we]}],"backdrop-invert":[{"backdrop-invert":["",Fe,xe,we]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,xe,we]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,xe,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,xe,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",xe,we]}],ease:[{ease:["linear","initial",k,xe,we]}],delay:[{delay:[Fe,xe,we]}],animate:[{animate:["none",$,xe,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,xe,we]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:Xe()}],"scale-x":[{"scale-x":Xe()}],"scale-y":[{"scale-y":Xe()}],"scale-z":[{"scale-z":Xe()}],"scale-3d":["scale-3d"],skew:[{skew:Et()}],"skew-x":[{"skew-x":Et()}],"skew-y":[{"skew-y":Et()}],transform:[{transform:[xe,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}
vendor: 5,078 bytes, line 81
81],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,we]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Fe,Rc,oo,mv]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vN=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:s={}})=>(Vc(e,"cacheSize",t),Vc(e,"prefix",n),Vc(e,"experimentalParseClassName",r),Ef(e.theme,s.theme),Ef(e.classGroups,s.classGroups),Ef(e.conflictingClassGroups,s.conflictingClassGroups),Ef(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Vc(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),kf(e.theme,o.theme),kf(e.classGroups,o.classGroups),kf(e.conflictingClassGroups,o.conflictingClassGroups),kf(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),SC(e,o,"orderSensitiveModifiers"),e),Vc=(e,t,n)=>{n!==void 0&&(e[t]=n)},Ef=(e,t)=>
81{if(t)for(const n in t)Vc(e,n,t[n])},kf=(e,t)=>{if(t)for(const n in t)SC(e,t,n)},SC=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},yN=(e,...t)=>typeof e=="function"?$y(Ry,e,...t):$y(()=>vN(Ry(),e),...t),bN=$y(Ry);var _N=e=>In(e)?bN:yN({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),wN=(...e)=>t=>{let n=xh(e);return!n||!t.twMerge?n:((!Fi.cachedTwMerge||Fi.didTwMergeConfigChange)&&(Fi.didTwMergeConfigChange=!1,Fi.cachedTwMerge=_N(Fi.cachedTwMergeConfig)),Fi.cachedTwMerge(n)||void 0)},{tv:xN}=I6(wN);const SN=xN({base:["cursor-pointer [--btn-icon-active:var(--btn-fg)] [--btn-outline:var(--btn-bg)] [--btn-ring:var(--btn-bg)]/20","bg-(--btn-bg) pressed:bg-(--btn-overlay) text-(--btn-fg) outline-(--btn-outline) ring-(--btn-ring) hover:bg-(--btn-overlay)","relative inset-ring inset-ring-fg/15 isolate inline-flex items-center justify-center font-medium","focus:outline-0 focus-visible:outline focus-visible:outline-offset-2 focus-visible:ring-2 focus-visible:ring-offset-3 focus-visible:ring-offset-bg","*:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:self-center *:data-[slot=icon]:text-(--btn-icon) pressed:*:data-[slot=icon]:text-(--btn-icon-active) focus-visible:*:data-[slot=icon]:text-(--btn-icon-active)/80 hover:*:data-[slot=icon]:text-(--btn-icon-active)/90 sm:*:data-[slot=icon]:my-1 forced-colors:[--btn-icon:ButtonText] forced-colors:hover:[--btn-icon:ButtonText]","*:data-[slot=loader]:-mx-0.5 *:data-[slot=loader]:my-0.5 *:data-[slot=loader]:shrink-0 *:data-[slot=loader]:self-center *:data-[slot=loader]:text-(--btn-icon) sm:*:data-[slot=loader]:my-1"],variants:{intent:{primary:"[--btn-bg:var(--color-primary)] [--btn-fg:var(--color-primary-fg)] [--btn-icon:color-mix(in_oklab,var(--primary-fg)_60%,var(--primary))] [--btn-overlay:var(--color-primary)]/85",secondary:"[--btn-bg:var(--color-secondary)] [--btn-fg:var(--color-secondary-fg)] [--btn-icon:var(--color-muted-fg)] [--btn-outline:var(--color-secondary-fg)] [--btn-overlay:var(--color-secondary)]/85 [--btn-ring:var(--color-muted-fg)]/20",warning:"[--btn-bg:var(--color-warning)] [--btn-fg:var(--color-warning-fg)] [--btn-icon:color-mix(in_oklab,var(--warning-fg)_60%,var(--warning))] [--btn-overlay:var(--color-warning)]/85",danger:"[--btn-bg:var(--color-danger)] [--btn-fg:var(--color-danger-fg)] [--btn-icon:color-mix(in_oklab,var(--danger-fg)_60%,var(--danger))] [--btn-overlay:var(--color-danger)]/85",outline:"inset-ring-border [--btn-bg:transparent] [--btn-icon:var(--color-muted-fg)] [--btn-outline:var(--color-ring)] [--btn-overlay:var(--color-muted)] [--btn-ring:var(--color-ring)]/20",plain:"inset-ring-transparent [--btn-bg:transparent] [--btn-icon:var(--color-muted-fg)] [--btn-outline:var(--color-ring)] [--btn-overlay:var(--color-muted)] [--btn-ring:var(--color-ring)]/20"},size:{xs:["gap-x-1 px-2.5 py-1.5 text-sm sm:px-2 sm:py-[--spacing(1.4)] sm:text-xs/4","*:data-[slot=icon]:size-3.5 sm:*:data-[slot=icon]:size-3","*:data-[slot=loader]:size-3.5 sm:*:data-[slot=loader]:size-3"],sm:["gap-x-1.5 px-3 py-2 sm:px-2.5 sm:py-1.5 sm:text-sm/5","*:data-[slot=icon]:size-4.5 sm:*:data-[slot=icon]:size-4","*:data-[slot=loader]:size-4.5 sm:*:data-[slot=loader]:size-4"],md:["gap-x-2 px-3.5 py-2 sm:px-3 sm:py-1.5 sm:text-sm/6","*:data-[slot=icon]:size-5 sm:*:data-[slot=icon]:size-4","*:data-[slot=loader]:size-5 sm:*:data-[slot=loader]:size-4"],lg:["gap-x-2 px-4 py-2.5 sm:px-3.5 sm:py-2 sm:text-sm/6","*:data-[slot=icon]:size-5 sm:*:data-[slot=icon]:size-4.5","*:data-[slot=loader]:size-5 sm:*:data-[slot=loader]:size-4.5"],"sq-xxs":"size-4 *:data-[slot=icon]:size-2 *:data-[slot=loader]:size-23","sq-xs":"size-8 *:data-[slot=icon]:size-3.5 *:data-[slot=loader]:size-3.5 sm:size-7 sm:*:data-[slot=icon]:size-3 sm:*:data-[slot=loader]:size-3","sq-sm":"size-9 *:data-[slot=icon]:size-4.5 *:data-[slot=loader]:size-4.5","sq-md":"size-10 *:data-[slot=icon]:size-5 *:data-[slot=loader]:size-5 sm:size-9 sm:*:data-[slot=icon]:size-4 sm:*:data-[slot=loader]:size-4","sq-lg":"size-11 *:data-[slot=icon]:size-5 *:data-[slot=loader]:size-5 sm:size-10 sm:*:data-[slot=icon]:size-4.5 sm:*:data-[slot=loader]:size-4.5"},isCircle:{true:"rounded-full",false:"rounded-lg"},isDisabled:{true:"inset-ring-0 opacity-50 forced-colors:text-[GrayText]"},isPending:{true:"opacity-50"}},defaultVariants:{intent:"primary",size:"md",isCircle:!1},compoundVariants:[{size:["xs","sq-xs"],className:"rounded-md *:data-[slot=icon]:size-3.5"}]}),EC=e=>{const t=Iu.c(21);let n,r,o,s,c,d;t[0]!==e?({className:n,intent:r,size:d,isCircle:o,ref:c,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=c,t[6]=d):(n=t[1],r=t[2],o=t[3],s=t[4],c=t[5],d=t[6]);let f;t[7]!==r||t[8]!==o||t[9]!==d?(f=(y,_)=>SN({..._,intent:r,size:d,isCircle:o,className:y}),t[7]=r,t[8]=o,t[9]=d,t[10]=f):f=t[10];let h;t[11]!==n||t[12]!==f?(h=UO(n,f),t[11]=n,t[12]=f,t[13]=h):h=t[13];let g;t[14]!==s?(g=y=>de.jsx(de.Fragment,{children:typeof s.children=="function"?s.children(y):s.children}),t[14]=s,t[15]=g):g=t[15];let m;return t[16]!==s||t[17]!==c||t[18]!==h||t[19]!==g?(m=de.jsx(O6,{ref:c,...s,className:h,children:g}),t[16]=s,t[17]=c,t[18]=h,t[19]=g,t[20]=m):m=t[20],m};function EN(e){const t=Iu.c(13),{error:n}=e,r=Rn();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1,select:TN},t[0]=o):o=t[0];const s=sr(o);console.error(n);let c;t[1]!==n?(c=de.jsx(Fu,{error:n}),t[1]=n,t[2]=c):c=t[2];let d;t[3]!==r?(d=de.jsx(EC,{onClick:()=>{r.invalidate()},children:"Try Again"}),t[3]=r,t[4]=d):d=t[4];let f;t[5]!==s?(f=s?de.jsx(mu,{to:"/",children:"Home"}):de.jsx(mu,{to:"/",onClick:kN,children:"Go Back"}),t[5]=s,t[6]=f):f=t[6];let h;t[7]!==d||t[8]!==f?(h=de.jsxs("div",{className:"flex gap-2 items-center flex-wrap",children:[d,f]}),t[7]=d,t[8]=f,t[9]=h):h=t[9];let g;return t[10]!==c||t[11]!==h?(g=de.jsxs("div",{className:"min-w-0 flex-1 p-4 flex flex-col items-center justify-center gap-6",children:[c,h]}),t[10]=c,t[11]=h,t[12]=g):g=t[12],g}function kN(e){e.preventDefault(),window.history.back()}function TN(e){return e.id===nr}function CN(e){const t=Iu.c(7),{children:n}=e;let r;t[0]!==n?(r=n||de.jsx("p",{children:"The page you are looking for does not exist."}),t[0]=n,t[1]=r):r=t[1];let o;t[2]!==r?(o=de.jsx("div",{className:"text-gray-600 dark:text-gray-400",children:r}),t[2]=r,t[3]=o):o=t[3];let s;t[4]===Symbol.for("react.memo_cache_sentinel")?(s=de.jsxs("p",{className:"flex items-center gap-2 flex-wrap",children:[de.jsx(EC,{onClick:$N,children:"Go back"}),de.jsx(mu,{to:"/",className:"bg-cyan-600 text-white px-2 py-1 rounded uppercase font-black text-sm",children:"Start Over"})]}),t[4]=s):s=t[4];let c;return t[5]!==o?(c=de.jsxs("div",{className:"space-y-2 p-2",children:[o,s]}),t[5]=o,t[6]=c):c=t[6],c}function $N(){return window.history.back()}var RN={};function AN(e,t){const n={},r=[];for(const o in e){const s=e[o],c=t[o],d=s["~standard"].validate(c);if(d instanceof Promise)throw new Error(`Validation must be synchronous, but ${o} returned a Promise.`);if(d.issues){r.push(...d.issues.map(f=>({...f,path:[o,...f.path??[]]})));continue}n[o]=d.value}return r.length?{issues:r}:{value:n}}function MN(e){const t=e.runtimeEnvStrict??e.runtimeEnv??RN;if(!!e.skipValidation)return t;const r=typeof e.client=="object"?e.client:{},o=typeof e.server=="object"?e.server:{},s=typeof e.shared=="object"?e.shared:{},c=e.isServer??(typeof window>"u"||"Deno"in window),d=c?{...o,...s,...r}:{...r,...s},f=AN(d,t),h=e.onValidationError??(k=>{throw console.error("â Invalid environment variables:",k),new Error("Invalid environment variables")}
81),g=e.onInvalidAccess??(()=>{throw new Error("â Attempted to access a server-side environment variable on the client")});if(f.issues)return h(f.issues);const m=k=>e.clientPrefix?!k.startsWith(e.clientPrefix)&&!(k in s):!0,y=k=>c||!m(k),_=k=>k==="__esModule"||k==="$$typeof",w=(e.extends??[]).reduce((k,$)=>Object.assign(k,$),{}),S=Object.assign(f.value,w);return new Proxy(S,{get(k,$){if(typeof $=="string"&&!_($))return y($)?Reflect.get(k,$):g($)}})}function ue(e,t,n){function r(d,f){var h;Object.defineProperty(d,"_zod",{value:d._zod??{},enumerable:!1}),(h=d._zod).traits??(h.traits=new Set),d._zod.traits.add(e),t(d,f);for(const g in c.prototype)g in d||Object.defineProperty(d,g,{value:c.prototype[g].bind(d)});d._zod.constr=c,d._zod.def=f}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function c(d){var f;const h=n?.Parent?new s:this;r(h,d),(f=h._zod).deferred??(f.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>n?.Parent&&d instanceof n.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class nl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class kC extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const TC={};function $o(e){return TC}function zN(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Ay(e,t){return typeof t=="bigint"?t.toString():t}function m0(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g0(e){return e==null}function v0(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const w2=Symbol("evaluating");function ft(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==w2)return r===void 0&&(r=w2,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Po(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Lo(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function x2(e){return JSON.stringify(e)}const CC="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Sh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ON=m0(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function _u(e){if(Sh(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Sh(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function $C(e){return _u(e)?{...e}:Array.isArray(e)?[...e]:e}const NN=new Set(["string","number","symbol"]);function hp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ia(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ae(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function DN(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function PN(e,t){const n=e._zod.def,r=Lo(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=n.shape[s])}return Po(this,"shape",o),o},checks:[]});return Ia(e,r)}function LN(e,t){const n=e._zod.def,r=Lo(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return Po(this,"shape",o),o},checks:[]});return Ia(e,r)}function FN(e,t){if(!_u(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Lo(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Po(this,"shape",s),s},checks:[]});return Ia(e,o)}function IN(e,t){if(!_u(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return Po(this,"shape",r),r},checks:e._zod.def.checks};
vendor: 4,284 bytes, line 81
81return Ia(e,n)}function jN(e,t){const n=Lo(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Po(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Ia(e,n)}function UN(e,t,n){const r=Lo(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in o))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:o[c]}):o[c])}else for(const c in o)s[c]=e?new e({type:"optional",innerType:o[c]}):o[c];return Po(this,"shape",s),s},checks:[]});return Ia(t,r)}function HN(e,t,n){const r=Lo(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)s[c]=new e({type:"nonoptional",innerType:o[c]});return Po(this,"shape",s),s},checks:[]});return Ia(t,r)}function Vs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function RC(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Tf(e){return typeof e=="string"?e:e?.message}function Ro(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Tf(e.inst?._zod.def?.error?.(e))??Tf(t?.error?.(e))??Tf(n.customError?.(e))??Tf(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function y0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function wu(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const AC=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ay,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},MC=ue("$ZodError",AC),zC=ue("$ZodError",AC,{Parent:Error});function BN(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function qN(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>r({issues:c}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let c=n,d=0;for(;d<s.path.length;){const f=s.path[d];d===s.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(t(s))):c[f]=c[f]||{_errors:[]},c=c[f],d++}}};return r(e),n}const b0=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise)throw new nl;if(c.issues.length){const d=new(o?.Err??e)(c.issues.map(f=>Ro(f,s,$o())));throw CC(d,o?.callee),d}return c.value},_0=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new(o?.Err??e)(c.issues.map(f=>Ro(f,s,$o())));throw CC(d,o?.callee),d}return c.value},pp=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new nl;return s.issues.length?{success:!1,error:new(e??MC)(s.issues.map(c=>Ro(c,o,$o())))}:{success:!0,data:s.value}},VN=pp(zC),mp=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>Ro(c,o,$o())))}:{success:!0,data:s.value}},GN=mp(zC),YN=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return b0(e)(t,n,o)},ZN=e=>(t,n,r)=>b0(e)(t,n,r),XN=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return _0(e)(t,n,o)},WN=e=>async(t,n,r)=>_0(e)(t,n,r),KN=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return pp(e)(t,n,o)},QN=e=>(t,n,r)=>pp(e)(t,n,r),JN=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return mp(e)(t,n,o)},eD=e=>async(t,n,r)=>mp(e)(t,n,r),tD=/^[cC][^\s-]{8,}
vendor: 5,477 bytes, line 81
81$/,nD=/^[0-9a-z]+$/,rD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iD=/^[0-9a-vA-V]{20}$/,aD=/^[A-Za-z0-9]{27}$/,oD=/^[a-zA-Z0-9_-]{21}$/,sD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,S2=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,cD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,uD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function dD(){return new RegExp(uD,"u")}const fD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,hD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pD=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,mD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,OC=/^[A-Za-z0-9_-]*$/,vD=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,yD=/^\+(?:[0-9]){6,14}[0-9]$/,NC="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",bD=new RegExp(`^${NC}$`);function DC(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _D(e){return new RegExp(`^${DC(e)}$`)}function wD(e){const t=DC({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${NC}T(?:${r})$`)}const xD=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},SD=/^[^A-Z]*$/,ED=/^[^a-z]*$/,di=ue("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),kD=ue("$ZodCheckMaxLength",(e,t)=>{var n;di.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!g0(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const c=y0(o);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),TD=ue("$ZodCheckMinLength",(e,t)=>{var n;di.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!g0(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const c=y0(o);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),CD=ue("$ZodCheckLengthEquals",(e,t)=>{var n;di.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!g0(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const c=y0(o),d=s>t.length;r.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),gp=ue("$ZodCheckStringFormat",(e,t)=>{var n,r;di.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),$D=ue("$ZodCheckRegex",(e,t)=>{gp.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),RD=ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=SD),gp.init(e,t)}),AD=ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ED),gp.init(e,t)}),MD=ue("$ZodCheckIncludes",(e,t)=>{di.init(e,t);const n=hp(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
vendor: 13,369 bytes, lines 81-100
81:o.value,inst:e,continue:!t.abort})}}),zD=ue("$ZodCheckStartsWith",(e,t)=>{di.init(e,t);const n=new RegExp(`^${hp(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),OD=ue("$ZodCheckEndsWith",(e,t)=>{di.init(e,t);const n=new RegExp(`.*${hp(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ND=ue("$ZodCheckOverwrite",(e,t)=>{di.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class DD{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 82`).filter(c=>c),o=Math.min(...r.map(c=>c.length-c.trimStart().length)),s=r.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of s)this.content.push(c)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(` 83`))}}const PD={major:4,minor:1,patch:12},en=ue("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=PD;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,d,f)=>{let h=Vs(c),g;for(const m of d){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(h)continue;const y=c.issues.length,_=m._zod.check(c);if(_ instanceof Promise&&f?.async===!1)throw new nl;if(g||_ instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await _,c.issues.length!==y&&(h||(h=Vs(c,y)))});else{if(c.issues.length===y)continue;h||(h=Vs(c,y))}}return g?g.then(()=>c):c},s=(c,d,f)=>{if(Vs(c))return c.aborted=!0,c;const h=o(d,r,f);if(h instanceof Promise){if(f.async===!1)throw new nl;return h.then(g=>e._zod.parse(g,f))}return e._zod.parse(h,f)};e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){const h=e._zod.parse({value:c.value,issues:[]},{...d,skipChecks:!0});return h instanceof Promise?h.then(g=>s(g,c,d)):s(h,c,d)}const f=e._zod.parse(c,d);if(f instanceof Promise){if(d.async===!1)throw new nl;return f.then(h=>o(h,r,d))}return o(f,r,d)}}e["~standard"]={validate:o=>{try{const s=VN(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return GN(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}}),w0=ue("$ZodString",(e,t)=>{en.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xD(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),St=ue("$ZodStringFormat",(e,t)=>{gp.init(e,t),w0.init(e,t)}),LD=ue("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=lD),St.init(e,t)}),FD=ue("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=S2(r))}else t.pattern??(t.pattern=S2());St.init(e,t)}),ID=ue("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=cD),St.init(e,t)}),jD=ue("$ZodURL",(e,t)=>{St.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:vD.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),UD=ue("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=dD()),St.init(e,t)}),HD=ue("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=oD),St.init(e,t)}),BD=ue("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=tD),St.init(e,t)}),qD=ue("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nD),St.init(e,t)}),VD=ue("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rD),St.init(e,t)}),GD=ue("$ZodXID",(e,t)=>{t.pattern??(t.pattern=iD),St.init(e,t)}),YD=ue("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=aD),St.init(e,t)}),ZD=ue("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=wD(t)),St.init(e,t)}),XD=ue("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bD),St.init(e,t)}),WD=ue("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_D(t)),St.init(e,t)}),KD=ue("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=sD),St.init(e,t)}),QD=ue("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=fD),St.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),JD=ue("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=hD),St.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),eP=ue("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pD),St.init(e,t)}),tP=ue("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=mD),St.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function PC(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const nP=ue("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=gD),St.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{PC(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function rP(e){if(!OC.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return PC(n)}const iP=ue("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=OC),St.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{rP(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),aP=ue("$ZodE164",(e,t)=>{t.pattern??(t.pattern=yD),St.init(e,t)});function oP(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const sP=ue("$ZodJWT",(e,t)=>{St.init(e,t),e._zod.check=n=>{oP(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),lP=ue("$ZodUnknown",(e,t)=>{en.init(e,t),e._zod.parse=n=>n}),cP=ue("$ZodNever",(e,t)=>{en.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function E2(e,t,n){e.issues.length&&t.issues.push(...RC(n,e.issues)),t.value[n]=e.value}const uP=ue("$ZodArray",(e,t)=>{en.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let c=0;c<o.length;c++){const d=o[c],f=t.element._zod.run({value:d,issues:[]},r);f instanceof Promise?s.push(f.then(h=>E2(h,n,c))):E2(f,n,c)}return s.length?Promise.all(s).then(()=>n):n}});function Eh(e,t,n,r){e.issues.length&&t.issues.push(...RC(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function LC(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=DN(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function FC(e,t,n,r,o,s){const c=[],d=o.keySet,f=o.catchall._zod,h=f.def.type;for(const g of Object.keys(t)){if(d.has(g))continue;if(h==="never"){c.push(g);continue}const m=f.run({value:t[g],issues:[]},r);m instanceof Promise?e.push(m.then(y=>Eh(y,n,g,t))):Eh(m,n,g,t)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const dP=ue("$ZodObject",(e,t)=>{if(en.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...d};return Object.defineProperty(t,"shape",{value:f}),f}})}const r=m0(()=>LC(t));ft(e._zod,"propValues",()=>{const d=t.shape,f={};for(const h in d){const g=d[h]._zod;if(g.values){f[h]??(f[h]=new Set);for(const m of g.values)f[h].add(m)}}return f});const o=Sh,s=t.catchall;let c;e._zod.parse=(d,f)=>{c??(c=r.value);const h=d.value;if(!o(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const g=[],m=c.shape;for(const y of c.keys){const w=m[y]._zod.run({value:h[y],issues:[]},f);w instanceof Promise?g.push(w.then(S=>Eh(S,d,y,h))):Eh(w,d,y,h)}return s?FC(g,h,d,f,r.value,e):g.length?Promise.all(g).then(()=>d):d}}),fP=ue("$ZodObjectJIT",(e,t)=>{dP.init(e,t);const n=e._zod.parse,r=m0(()=>LC(t)),o=y=>{const _=new DD(["shape","payload","ctx"]),w=r.value,S=z=>{const N=x2(z);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};_.write("const input = payload.value;");const T=Object.create(null);let k=0;for(const z of w.keys)T[z]=`key_${k++}`;_.write("const newResult = {};");for(const z of w.keys){const N=T[z],O=x2(z);_.write(`const ${N} = ${S(z)};`),_.write(` 84 if (${N}.issues.length) { 85 payload.issues = payload.issues.concat(${N}.issues.map(iss => ({ 86 ...iss, 87 path: iss.path ? [${O}, ...iss.path] : [${O}] 88 }))); 89 } 90 91 92 if (${N}.value === undefined) { 93 if (${O} in input) { 94 newResult[${O}] = undefined; 95 } 96 } else { 97 newResult[${O}] = ${N}.value; 98 } 99 100 `)}_.write("payload.value = newResult;"),_.write("return payload;");const $=_.compile();return(z,N)=>$(y,z,N)};let s;const c=Sh,d=!TC.jitless,h=d&&ON.value,g=t.catchall;let m;e._zod.parse=(y,_)=>{m??(m=r.value);const w=y.value;return c(w)?d&&h&&_?.async===!1&&_.jitless!==!0?(s||(s=o(t.shape)),y=s(y,_),g?FC([],w,y,_,m,e):y):n(y,_):(y.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),y)}});function k2(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Vs(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(c=>Ro(c,r,$o())))}),t)}const hP=ue("$ZodUnion",(e,t)=>{en.init(e,t),ft(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ft(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ft(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ft(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>v0(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let c=!1;const d=[];for(const f of t.options){const h=f._zod.run({value:o.value,issues:[]},s);if(h instanceof Promise)d.push(h),c=!0;else{if(h.issues.length===0)return h;d.push(h)}}return c?Promise.all(d).then(f=>k2(f,o,e,s)):k2(d,o,e,s)}}),pP=ue("$ZodIntersection",(e,t)=>{en.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),c=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([f,h])=>T2(n,f,h)):T2(n,s,c)}});function My(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_u(e)&&_u(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const c=My(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};o[s]=c.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],c=My(o,s);if(!c.valid)return{valid:!1,mergeErrorPath:[r,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function T2(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Vs(e))return e;const r=My(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const mP=ue("$ZodEnum",(e,t)=>{en.init(e,t);const n=zN(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>NN.has(typeof o)).map(o=>
100typeof o=="string"?hp(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const c=o.value;return r.has(c)||o.issues.push({code:"invalid_value",values:n,input:c,inst:e}),o}}),gP=ue("$ZodTransform",(e,t)=>{en.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new kC(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(n.value=c,n));if(o instanceof Promise)throw new nl;return n.value=o,n}});function C2(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const vP=ue("$ZodOptional",(e,t)=>{en.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ft(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ft(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${v0(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>C2(s,n.value)):C2(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),yP=ue("$ZodNullable",(e,t)=>{en.init(e,t),ft(e._zod,"optin",()=>t.innerType._zod.optin),ft(e._zod,"optout",()=>t.innerType._zod.optout),ft(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${v0(n.source)}|null)$`):void 0}),ft(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),bP=ue("$ZodDefault",(e,t)=>{en.init(e,t),e._zod.optin="optional",ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>$2(s,t)):$2(o,t)}});function $2(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const _P=ue("$ZodPrefault",(e,t)=>{en.init(e,t),e._zod.optin="optional",ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),wP=ue("$ZodNonOptional",(e,t)=>{en.init(e,t),ft(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>R2(s,e)):R2(o,e)}});function R2(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const xP=ue("$ZodCatch",(e,t)=>{en.init(e,t),ft(e._zod,"optin",()=>t.innerType._zod.optin),ft(e._zod,"optout",()=>t.innerType._zod.optout),ft(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(c=>Ro(c,r,$o()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Ro(s,r,$o()))},input:n.value}),n.issues=[]),n)}}),SP=ue("$ZodPipe",(e,t)=>{en.init(e,t),ft(e._zod,"values",()=>t.in._zod.values),ft(e._zod,"optin",()=>t.in._zod.optin),ft(e._zod,"optout",()=>t.out._zod.optout),ft(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(c=>Cf(c,t.in,r)):Cf(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>Cf(s,t.out,r)):Cf(o,t.out,r)}});function Cf(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const EP=ue("$ZodReadonly",(e,t)=>{en.init(e,t),ft(e._zod,"propValues",()=>t.innerType._zod.propValues),ft(e._zod,"values",()=>t.innerType._zod.values),ft(e._zod,"optin",()=>t.innerType._zod.optin),ft(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(A2):A2(o)}});function A2(e){return e.value=Object.freeze(e.value),e}const kP=ue("$ZodCustom",(e,t)=>{di.init(e,t),en.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>M2(s,n,r,e));M2(o,n,r,e)}});function M2(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(wu(o))}}class TP{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function CP(){return new TP}const $f=CP();function $P(e,t){return new e({type:"string",...Ae(t)})}function RP(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ae(t)})}function z2(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ae(t)})}function AP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ae(t)})}function MP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ae(t)})}function zP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ae(t)})}function OP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ae(t)})}function IC(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ae(t)})}function NP(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ae(t)})}function DP(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ae(t)})}function PP(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ae(t)})}function LP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ae(t)})}function FP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ae(t)})}function IP(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ae(t)})}function jP(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ae(t)})}function UP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ae(t)})}function HP(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ae(t)})}function BP(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ae(t)})}function qP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ae(t)})}function VP(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ae(t)})}function GP(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ae(t)})}function YP(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ae(t)})}function ZP(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ae(t)})}function XP(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ae(t)})}function WP(e,t){return new e({type:"string",format:"date",check:"string_format",...Ae(t)})}function KP(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ae(t)})}function QP(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ae(t)})}function JP(e){return new e({type:"unknown"})}function e8(e,t){return new e({type:"never",...Ae(t)})}function jC(e,t){return new kD({check:"max_length",...Ae(t),maximum:e})}function kh(e,t){return new TD({check:"min_length",...Ae(t),minimum:e})}function UC(e,t){return new CD({check:"length_equals",...Ae(t),length:e})}function t8(e,t){return new $D({check:"string_format",format:"regex",...Ae(t),pattern:e})}function n8(e){return new RD({check:"string_format",format:"lowercase",...Ae(e)})}
vendor: 4,170 bytes, line 100
100function r8(e){return new AD({check:"string_format",format:"uppercase",...Ae(e)})}function i8(e,t){return new MD({check:"string_format",format:"includes",...Ae(t),includes:e})}function a8(e,t){return new zD({check:"string_format",format:"starts_with",...Ae(t),prefix:e})}function o8(e,t){return new OD({check:"string_format",format:"ends_with",...Ae(t),suffix:e})}function ju(e){return new ND({check:"overwrite",tx:e})}function s8(e){return ju(t=>t.normalize(e))}function l8(){return ju(e=>e.trim())}function c8(){return ju(e=>e.toLowerCase())}function u8(){return ju(e=>e.toUpperCase())}function d8(e,t,n){return new e({type:"array",element:t,...Ae(n)})}function f8(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ae(n)})}function h8(e){const t=p8(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(wu(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(wu(o))}},e(n.value,n)));return t}function p8(e,t){const n=new di({check:"custom",...Ae(t)});return n._zod.check=e,n}const m8=ue("ZodISODateTime",(e,t)=>{ZD.init(e,t),Ct.init(e,t)});function g8(e){return XP(m8,e)}const v8=ue("ZodISODate",(e,t)=>{XD.init(e,t),Ct.init(e,t)});function y8(e){return WP(v8,e)}const b8=ue("ZodISOTime",(e,t)=>{WD.init(e,t),Ct.init(e,t)});function _8(e){return KP(b8,e)}const w8=ue("ZodISODuration",(e,t)=>{KD.init(e,t),Ct.init(e,t)});function x8(e){return QP(w8,e)}const S8=(e,t)=>{MC.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>qN(e,n)},flatten:{value:n=>BN(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ay,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ay,2)}},isEmpty:{get(){return e.issues.length===0}}})},Mr=ue("ZodError",S8,{Parent:Error}),E8=b0(Mr),k8=_0(Mr),T8=pp(Mr),C8=mp(Mr),$8=YN(Mr),R8=ZN(Mr),A8=XN(Mr),M8=WN(Mr),z8=KN(Mr),O8=QN(Mr),N8=JN(Mr),D8=eD(Mr),sn=ue("ZodType",(e,t)=>(en.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Lo(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>Ia(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>E8(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>T8(e,n,r),e.parseAsync=async(n,r)=>k8(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>C8(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>$8(e,n,r),e.decode=(n,r)=>R8(e,n,r),e.encodeAsync=async(n,r)=>A8(e,n,r),e.decodeAsync=async(n,r)=>M8(e,n,r),e.safeEncode=(n,r)=>z8(e,n,r),e.safeDecode=(n,r)=>O8(e,n,r),e.safeEncodeAsync=async(n,r)=>N8(e,n,r),e.safeDecodeAsync=async(n,r)=>D8(e,n,r),e.refine=(n,r)=>e.check(kL(n,r)),e.superRefine=n=>e.check(TL(n)),e.overwrite=n=>e.check(ju(n)),e.optional=()=>P2(e),e.nullable=()=>L2(e),e.nullish=()=>P2(L2(e)),e.nonoptional=n=>yL(e,n),e.array=()=>rL(e),e.or=n=>sL([e,n]),e.and=n=>cL(e,n),e.transform=n=>F2(e,fL(n)),e.default=n=>mL(e,n),e.prefault=n=>vL(e,n),e.catch=n=>_L(e,n),e.pipe=n=>F2(e,n),e.readonly=()=>SL(e),e.describe=n=>{const r=e.clone();return $f.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return $f.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return $f.get(e);const r=e.clone();return $f.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),HC=ue("_ZodString",(e,t)=>{w0.init(e,t),sn.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(t8(...r)),e.includes=(...r)=>e.check(i8(...r)),e.startsWith=(...r)=>e.check(a8(...r)),e.endsWith=(...r)=>e.check(o8(...r)),e.min=(...r)=>e.check(kh(...r)),e.max=(...r)=>e.check(jC(...r)),e.length=(...r)=>e.check(UC(...r)),e.nonempty=(...r)=>e.check(kh(1,...r)),e.lowercase=r=>e.check(n8(r)),e.uppercase=r=>e.check(r8(r)),e.trim=()=>e.check(l8()),e.normalize=(...r)=>e.check(s8(...r)),e.toLowerCase=()=>e.check(c8()),e.toUpperCase=()=>e.check(u8())}),P8=ue("ZodString",(e,t)=>{w0.init(e,t),HC.init(e,t),e.email=n=>
vendor: 4,197 bytes, line 100
100e.check(RP(L8,n)),e.url=n=>e.check(IC(BC,n)),e.jwt=n=>e.check(ZP(Q8,n)),e.emoji=n=>e.check(NP(F8,n)),e.guid=n=>e.check(z2(O2,n)),e.uuid=n=>e.check(AP(Rf,n)),e.uuidv4=n=>e.check(MP(Rf,n)),e.uuidv6=n=>e.check(zP(Rf,n)),e.uuidv7=n=>e.check(OP(Rf,n)),e.nanoid=n=>e.check(DP(I8,n)),e.guid=n=>e.check(z2(O2,n)),e.cuid=n=>e.check(PP(j8,n)),e.cuid2=n=>e.check(LP(U8,n)),e.ulid=n=>e.check(FP(H8,n)),e.base64=n=>e.check(VP(X8,n)),e.base64url=n=>e.check(GP(W8,n)),e.xid=n=>e.check(IP(B8,n)),e.ksuid=n=>e.check(jP(q8,n)),e.ipv4=n=>e.check(UP(V8,n)),e.ipv6=n=>e.check(HP(G8,n)),e.cidrv4=n=>e.check(BP(Y8,n)),e.cidrv6=n=>e.check(qP(Z8,n)),e.e164=n=>e.check(YP(K8,n)),e.datetime=n=>e.check(g8(n)),e.date=n=>e.check(y8(n)),e.time=n=>e.check(_8(n)),e.duration=n=>e.check(x8(n))});function Ca(e){return $P(P8,e)}const Ct=ue("ZodStringFormat",(e,t)=>{St.init(e,t),HC.init(e,t)}),L8=ue("ZodEmail",(e,t)=>{ID.init(e,t),Ct.init(e,t)}),O2=ue("ZodGUID",(e,t)=>{LD.init(e,t),Ct.init(e,t)}),Rf=ue("ZodUUID",(e,t)=>{FD.init(e,t),Ct.init(e,t)}),BC=ue("ZodURL",(e,t)=>{jD.init(e,t),Ct.init(e,t)});function N2(e){return IC(BC,e)}const F8=ue("ZodEmoji",(e,t)=>{UD.init(e,t),Ct.init(e,t)}),I8=ue("ZodNanoID",(e,t)=>{HD.init(e,t),Ct.init(e,t)}),j8=ue("ZodCUID",(e,t)=>{BD.init(e,t),Ct.init(e,t)}),U8=ue("ZodCUID2",(e,t)=>{qD.init(e,t),Ct.init(e,t)}),H8=ue("ZodULID",(e,t)=>{VD.init(e,t),Ct.init(e,t)}),B8=ue("ZodXID",(e,t)=>{GD.init(e,t),Ct.init(e,t)}),q8=ue("ZodKSUID",(e,t)=>{YD.init(e,t),Ct.init(e,t)}),V8=ue("ZodIPv4",(e,t)=>{QD.init(e,t),Ct.init(e,t)}),G8=ue("ZodIPv6",(e,t)=>{JD.init(e,t),Ct.init(e,t)}),Y8=ue("ZodCIDRv4",(e,t)=>{eP.init(e,t),Ct.init(e,t)}),Z8=ue("ZodCIDRv6",(e,t)=>{tP.init(e,t),Ct.init(e,t)}),X8=ue("ZodBase64",(e,t)=>{nP.init(e,t),Ct.init(e,t)}),W8=ue("ZodBase64URL",(e,t)=>{iP.init(e,t),Ct.init(e,t)}),K8=ue("ZodE164",(e,t)=>{aP.init(e,t),Ct.init(e,t)}),Q8=ue("ZodJWT",(e,t)=>{sP.init(e,t),Ct.init(e,t)}),J8=ue("ZodUnknown",(e,t)=>{lP.init(e,t),sn.init(e,t)});function D2(){return JP(J8)}const eL=ue("ZodNever",(e,t)=>{cP.init(e,t),sn.init(e,t)});function tL(e){return e8(eL,e)}const nL=ue("ZodArray",(e,t)=>{uP.init(e,t),sn.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(kh(n,r)),e.nonempty=n=>e.check(kh(1,n)),e.max=(n,r)=>e.check(jC(n,r)),e.length=(n,r)=>e.check(UC(n,r)),e.unwrap=()=>e.element});function rL(e,t){return d8(nL,e,t)}const iL=ue("ZodObject",(e,t)=>{fP.init(e,t),sn.init(e,t),ft(e,"shape",()=>t.shape),e.keyof=()=>uL(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:D2()}),e.loose=()=>e.clone({...e._zod.def,catchall:D2()}),e.strict=()=>e.clone({...e._zod.def,catchall:tL()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>FN(e,n),e.safeExtend=n=>IN(e,n),e.merge=n=>jN(e,n),e.pick=n=>PN(e,n),e.omit=n=>LN(e,n),e.partial=(...n)=>UN(qC,e,n[0]),e.required=(...n)=>HN(VC,e,n[0])});function aL(e,t){const n={type:"object",shape:e??{},...Ae(t)};return new iL(n)}const oL=ue("ZodUnion",(e,t)=>{hP.init(e,t),sn.init(e,t),e.options=t.options});function sL(e,t){return new oL({type:"union",options:e,...Ae(t)})}const lL=ue("ZodIntersection",(e,t)=>{pP.init(e,t),sn.init(e,t)});function cL(e,t){return new lL({type:"intersection",left:e,right:t})}const zy=ue("ZodEnum",(e,t)=>{mP.init(e,t),sn.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const c of r)if(n.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new zy({...t,checks:[],...Ae(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const c of r)if(n.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new zy({...t,checks:[],...Ae(o),entries:s})}});function uL(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new zy({type:"enum",entries:n,...Ae(t)})}const dL=ue("ZodTransform",(e,t)=>{gP.init(e,t),sn.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new kC(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(wu(s,n.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),
100c.inst??(c.inst=e),n.issues.push(wu(c))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function fL(e){return new dL({type:"transform",transform:e})}const qC=ue("ZodOptional",(e,t)=>{vP.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function P2(e){return new qC({type:"optional",innerType:e})}const hL=ue("ZodNullable",(e,t)=>{yP.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function L2(e){return new hL({type:"nullable",innerType:e})}const pL=ue("ZodDefault",(e,t)=>{bP.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mL(e,t){return new pL({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$C(t)}})}const gL=ue("ZodPrefault",(e,t)=>{_P.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function vL(e,t){return new gL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$C(t)}})}const VC=ue("ZodNonOptional",(e,t)=>{wP.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yL(e,t){return new VC({type:"nonoptional",innerType:e,...Ae(t)})}const bL=ue("ZodCatch",(e,t)=>{xP.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _L(e,t){return new bL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const wL=ue("ZodPipe",(e,t)=>{SP.init(e,t),sn.init(e,t),e.in=t.in,e.out=t.out});function F2(e,t){return new wL({type:"pipe",in:e,out:t})}const xL=ue("ZodReadonly",(e,t)=>{EP.init(e,t),sn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function SL(e){return new xL({type:"readonly",innerType:e})}const EL=ue("ZodCustom",(e,t)=>{kP.init(e,t),sn.init(e,t)});function kL(e,t={}){return f8(EL,e,t)}function TL(e){return h8(e)}const CL={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,TSS_APP_BASE:"/",TSS_OUTPUT_PUBLIC_DIR:"/home/runner/work/better-gradient/better-gradient/.output/public",TSS_SERVER_FN_BASE:"/_serverFn",VITE_APP_TITLE:"Better Gradient",VITE_PH_ENABLED:"true",VITE_POSTHOG_DEBUG:"false",VITE_POSTHOG_DISABLED:"false",VITE_POSTHOG_HOST:"https://eu.i.posthog.com",VITE_POSTHOG_KEY:"phc_qBjjWJrivwd3o22DBN6RUtoUFddf5tiAsUQGuzo5LGEC",VITE_POSTHOG_REPLAY_FORCE:"false",VITE_POSTHOG_REPLAY_SAMPLE_RATE:"0.02",VITE_SERVER_URL:"https://better-gradient.com",VITE_SITE_URL:"https://better-gradient.com"},Fo=MN({server:{},clientPrefix:"VITE_",client:{VITE_SERVER_URL:N2().optional(),VITE_APP_TITLE:Ca().min(1).optional(),VITE_PH_ENABLED:Ca().optional(),VITE_POSTHOG_KEY:Ca().optional(),VITE_POSTHOG_HOST:N2().optional(),VITE_POSTHOG_DISABLED:Ca().optional(),VITE_POSTHOG_DEBUG:Ca().optional(),VITE_POSTHOG_REPLAY_FORCE:Ca().optional(),VITE_POSTHOG_REPLAY_SAMPLE_RATE:Ca().optional()},runtimeEnv:CL});var J=typeof window<"u"?window:void 0,Jt=typeof globalThis<"u"?globalThis:J;typeof self>"u"&&(Jt.self=Jt),typeof File>"u"&&(Jt.File=function(){});var ir=Jt?.navigator,me=Jt?.document,hn=Jt?.location,Oy=Jt?.fetch,Ny=Jt!=null&&Jt.XMLHttpRequest&&"withCredentials"in new Jt.XMLHttpRequest?Jt.XMLHttpRequest:void 0,I2=Jt?.AbortController,$L=Jt?.CompressionStream,jn=ir?.userAgent,ke=J??{},j2="1.372.10",kn={DEBUG:!1,LIB_VERSION:j2,LIB_NAME:"web",JS_SDK_VERSION:j2};function U2(e,t,n,r,o,s,c){try{var d=e[s](c),f=d.value}catch(h){return void n(h)}d.done?t(f):Promise.resolve(f).then(r,o)}function kr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function c(f){U2(s,r,o,c,d,"next",f)}function d(f){U2(s,r,o,c,d,"throw",f)}c(void 0)}))}}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}function GC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Dy(){return Dy=kr((function*(e,t,n){t===void 0&&(t=!0);try{var r=new CompressionStream("gzip"),o=r.writable.getWriter(),s=o.write(new TextEncoder().encode(e)).then((()=>o.close())).catch((function(){var f=kr((function*(h){try{yield o.abort(h)}catch{}throw h}));return function(h){return f.apply(this,arguments)}})()),c=new Response(r.readable).blob(),[d]=yield Promise.all([c,s]);return d}catch(f){if(n!=null&&n.rethrow)throw f;return t&&console.error("Failed to gzip compress data",f),null}})),Dy.apply(this,arguments)}var RL=["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","hub
100spot","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"],H2=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return RL.concat(t).some((r=>{var o=r.toLowerCase();return n.indexOf(o)!==-1}))},AL=["$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"];function He(e,t){return e.indexOf(t)!==-1}var vp=function(e){return e.trim()},Py=function(e){return e.replace(/^\$/,"")},YC=Object.prototype,ZC=YC.hasOwnProperty,yp=YC.toString,We=Array.isArray||function(e){return yp.call(e)==="[object Array]"},Ii=e=>typeof e=="function",jt=e=>e===Object(e)&&!We(e),Gs=e=>{if(jt(e)){for(var t in e)if(ZC.call(e,t))return!1;return!0}return!1},ve=e=>e===void 0,Tt=e=>yp.call(e)=="[object String]",Kf=e=>Tt(e)&&e.trim().length===0,Xi=e=>e===null,Be=e=>ve(e)||Xi(e),Ar=e=>yp.call(e)=="[object Number]"&&e==e,js=e=>Ar(e)&&e>0,si=e=>yp.call(e)==="[object Boolean]",ML=e=>e instanceof FormData,zL=e=>He(AL,e);function XC(e){return e===null||typeof e!="object"}function Th(e,t){return{}.toString.call(e)==="[object "+t+"]"}function x0(e){return typeof Event<"u"&&(function(t,n){try{return t instanceof n}catch{return!1}})(e,Event)}var OL=[!0,"true",1,"1","yes"],gv=e=>He(OL,e),NL=[!1,"false",0,"0","no"];function li(e,t,n,r,o){return t>n&&(r.warn("min cannot be greater than max."),t=n),Ar(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: "+o),li(o||n,t,n,r))}let DL=class{constructor(t){this.$t={},this.zt=t.zt,this.Zt=li(t.bucketSize,0,100,t.Gt),this.Qt=li(t.refillRate,0,this.Zt,t.Gt),this.Jt=li(t.refillInterval,0,864e5,t.Gt)}Kt(t,n){var r=Math.floor((n-t.lastAccess)/this.Jt);r>0&&(t.tokens=Math.min(t.tokens+r*this.Qt,this.Zt),t.lastAccess=t.lastAccess+r*this.Jt)}consumeRateLimit(t){var n,r=Date.now(),o=String(t),s=this.$t[o];return s?this.Kt(s,r):this.$t[o]=s={tokens:this.Zt,lastAccess:r},s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.zt)==null||n.call(this,t)),s.tokens===0)}stop(){this.$t={}}};var Af,B2,vv,ar="Mobile",Ch="iOS",Ui="Android",vl="Tablet",WC=Ui+" "+vl,KC="iPad",QC="Apple",JC=QC+" Watch",iu="Safari",yl="BlackBerry",e$="Samsung",t$=e$+"Browser",n$=e$+" Internet",So="Chrome",PL=So+" OS",r$=So+" "+Ch,S0="Internet Explorer",i$=S0+" "+ar,E0="Opera",LL=E0+" Mini",k0="Edge",a$="Microsoft "+k0,rl="Firefox",o$=rl+" "+Ch,xu="Nintendo",Su="PlayStation",il="Xbox",s$=Ui+" "+ar,l$=ar+" "+iu,Gc="Windows",Ly=Gc+" Phone",q2="Nokia",Fy="Ouya",c$="Generic",FL=c$+" "+ar.toLowerCase(),u$=c$+" "+vl.toLowerCase(),Iy="Konqueror",Sn="(\\d+(\\.\\d+)?)",yv=new RegExp("Version/"+Sn),IL=new RegExp(il,"i"),jL=new RegExp(Su+" \\w+","i"),UL=new RegExp(xu+" \\w+","i"),T0=new RegExp(yl+"|PlayBook|BB10","i"),HL={"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"},d$=function(e,t){return t=t||"",He(e," OPR/")&&He(e,"Mini")?LL:He(e," OPR/")?E0:T0.test(e)?yl:He(e,"IE"+ar)||He(e,"WPDesktop")?i$:He(e,t$)?n$:He(e,k0)||He(e,"Edg/")?a$:He(e,"FBIOS")?"Facebook "+ar:He(e,"UCWEB")||He(e,"UCBrowser")?"UC Browser":He(e,"CriOS")?r$:He(e,"CrMo")||He(e,So)?So:He(e,Ui)&&He(e,iu)?s$:He(e,"FxiOS")?o$:He(e.toLowerCase(),Iy.toLowerCase())?Iy:((n,r)=>r&&He(r,QC)||(function(o){return He(o,iu)&&!He(o,So)&&!He(o,Ui)})(n))(e,t)?He(e,ar)?l$:iu:He(e,rl)?rl:He(e,"MSIE")||He(e,"Trident/")?S0:He(e,"Gecko")?rl:""},BL={[i$]:[new RegExp("rv:"+Sn)],[a$]:[new RegExp(k0+"?\\/"+Sn)],[So]:[new RegExp("("+So+"|CrMo)\\/"+Sn)],[r$]:[new RegExp("CriOS\\/"+Sn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Sn)],[iu]:[yv],[l$]:[yv],[E0]:[new RegExp("(Opera|OPR)\\/"+Sn)],[rl]:[new RegExp(rl+"\\/"+Sn)],[o$]:[new RegExp("FxiOS\\/"+Sn)],[Iy]:[new RegExp("Konqueror[:/]?"+Sn,"i")],[yl]:[new RegExp(yl+" "+Sn),yv],[s$]:[new RegExp("android\\s"+Sn,"i")],[n$]:[new RegExp(t$+"\\/"+Sn)],[S0]:[new RegExp("(rv:|MSIE )"+Sn)],Mozilla:[new RegExp("rv:"+Sn)]},qL=function(e,t){var n=d$(e,t),r=BL[n];if(ve(r))return null;for(var o=0;r.length>
100o;o++){var s=e.match(r[o]);if(s)return parseFloat(s[s.length-2])}return null},V2=[[new RegExp(il+"; "+il+" (.*?)[);]","i"),e=>[il,e&&e[1]||""]],[new RegExp(xu,"i"),[xu,""]],[new RegExp(Su,"i"),[Su,""]],[T0,[yl,""]],[new RegExp(Gc,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Ly,""];if(new RegExp(ar).test(t)&&!/IEMobile\b/.test(t))return[Gc+" "+ar,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=HL[n[1]]||"";return/arm/i.test(t)&&(r="RT"),[Gc,r]}return[Gc,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Ch,[e[3],e[4],e[5]||"0"].join(".")]:[Ch,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ve(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Ui+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ui+")","i"),e=>e&&e[2]?[Ui,[e[2],e[3],e[4]||"0"].join(".")]:[Ui,""]],[/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/,[PL,""]],[/Linux|debian/i,["Linux",""]]],G2=function(e){return UL.test(e)?xu:jL.test(e)?Su:IL.test(e)?il:new RegExp(Fy,"i").test(e)?Fy:new RegExp("("+Ly+"|WPDesktop)","i").test(e)?Ly:/iPad/.test(e)?KC:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?JC:T0.test(e)?yl:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(q2,"i").test(e)?q2:/(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(ar).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)?Ui:WC:new RegExp("(pda|"+ar+")","i").test(e)?FL:new RegExp(vl,"i").test(e)&&!new RegExp(vl+" pc","i").test(e)?u$:""},VL=e=>e instanceof Error,f$={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}},GL=f$.info;function h$(e){if(si(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(We(e))return{arrayValue:{values:e.map((t=>h$(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function Y2(e){var t=[];for(var n in e){var r=e[n];Xi(r)||ve(r)||t.push({key:n,value:h$(r)})}return t}function YL(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return vv&&n.length===B2||(B2=n.length,vv=n.reduce(((r,o)=>{Af||(Af={});var s=Af[o];if(s)r[s[0]]=s[1];else for(var c=e(o),d=c.length-1;d>=0;d--){var f=c[d],h=f?.filename,g=t[o];if(h&&g){r[h]=g,Af[o]=[h,g];break}}return r}),{})),vv}}class ZL{constructor(t,n,r){r===void 0&&(r=[]),this.coercers=t,this.stackParser=n,this.modifiers=r}buildFromUnknown(t,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},o=this.buildCoercingContext(r,n,0).apply(t),s=this.buildParsingContext(n),c=this.parseStacktrace(o,s);return{$exception_list:this.convertToExceptionList(c,r),$exception_level:"error"}}modifyFrames(t){var n=this;return kr((function*(){for(var r of t)r.stacktrace&&r.stacktrace.frames&&We(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return t}))()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var r,o;return t.cause!=null&&(r=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(o=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?n.skipFirstLines:0),n.chunkIdMap)),he({},t,{cause:r,stack:o})}applyChunkIds(t,n){return t.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(t,n){for(var r of this.coercers)if(r.match(t))return r.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return kr((function*(){var r=t;for(var o of n.modifiers)r=yield o(r);return r}))()}convertToExceptionList(t,n){var r,o,s,c={type:t.type,value:t.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(o=n.handled)===null||o===void 0||o,synthetic:(s=t.synthetic)!==null&&s!==void 0&&s}};t.stack&&(c.stacktrace={type:"raw",frames:t.stack});var d=[c];return t.cause!=null&&d.push(...this.convertToExceptionList(t.cause,he({},n,{handled:!0}))),d}buildParsingContext(t){var n;return{chunkIdMap:YL(this.stackParser),skipFirstLines:(n=t.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(t,n,r){r===void 0&&(r=0);var o=(s,c)=>{if(4>=c){var d=this.buildCoercingContext(t,n,c);return this.applyCoercers(s,d)}};return he({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:t,apply:s=>o(s,r),next:s=>o(s,r+1)})}}var bl="?";function jy(e,t,n,r,o){var s={platform:e,filename:t,function:n==="<anonymous>"?bl:n,in_app:!0};return ve(r)||(s.lineno=r),ve(o)||(s.colno=o),s}var p$=(e,t)=>
100{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:bl,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},XL=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,WL=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,KL=/\((\S*)(?::(\d+))(?::(\d+))\)/,QL=(e,t)=>{var n=XL.exec(e);if(n){var[,r,o,s]=n;return jy(t,r,bl,+o,+s)}var c=WL.exec(e);if(c){if(c[2]&&c[2].indexOf("eval")===0){var d=KL.exec(c[2]);d&&(c[2]=d[1],c[3]=d[2],c[4]=d[3])}var[f,h]=p$(c[1]||bl,c[2]);return jy(t,h,f,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}},JL=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,e7=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t7=(e,t)=>{var n=JL.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=e7.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],s=n[1]||bl;return[s,o]=p$(s,o),jy(t,o,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Z2=/\(error: (.*)\)/;class n7{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var r=Tt(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:r?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return Th(t,"DOMException")}isDOMError(t){return Th(t,"DOMError")}}class r7{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var r=t.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(t){return t.stacktrace||t.stack||void 0}}class i7{constructor(){}match(t){return Th(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var r;return n.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var a7=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class o7{match(t){return typeof t=="string"}coerce(t,n){var r,[o,s]=this.getInfos(t);return{type:o??"Error",value:s??t,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(t){var n="Error",r=t,o=t.match(a7);return o&&(n=o[1],r=o[2]),[n,r]}}var s7=["fatal","error","warning","log","info","debug"];function m$(e,t){t===void 0&&(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 o=n.slice(0,r).join(", ");if(t>=o.length)return r===n.length?o:o.length>t?o.slice(0,t)+"...":o}return""}class l7{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var r,o=this.getErrorPropertyFromObject(t);return o?n.apply(o):{type:this.getType(t),value:this.getValue(t),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return x0(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var r=this.getObjectClassName(t);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+m$(t)}isSeverityLevel(t){return Tt(t)&&!Kf(t)&&s7.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if({}.hasOwnProperty.call(t,n)){var r=t[n];if(VL(r))return r}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class c7{match(t){return x0(t)}coerce(t,n){var r,o=t.constructor.name;return{type:o,value:o+" captured as exception with keys: "+m$(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class u7{match(t){return XC(t)}coerce(t,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class d7{match(t){return Th(t,"PromiseRejectionEvent")||this.isCu
100stomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!x0(t))return!1;try{var n=t.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(t,n){var r,o=this.getUnhandledRejectionReason(t);return XC(o)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(o)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var $h="$message",Rh="$timestamp",f7=new Set([$h,Rh]),bv={enabled:!0,max_bytes:32768};function Ah(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:bv.enabled,max_bytes:p7(e.max_bytes,bv.max_bytes)}:he({},bv)}class h7{constructor(t){this.Yt=[],this.Xt=0,this.qt=Ah(t)}setConfig(t){this.qt=Ah(t),this.er()}add(t){var n=(function(o){var s=(function(g){var m=new WeakSet;try{return JSON.stringify(g,((y,_)=>{if(typeof _=="bigint")return _.toString();if(typeof _!="function"&&typeof _!="symbol"){if(_ instanceof Date)return _.toISOString();if(_ instanceof Error)return{name:_.name,message:_.message,stack:_.stack};if(_&&typeof _=="object"){if(m.has(_))return"[Circular]";m.add(_)}return _}}))}catch{return}})(o);if(s)try{var c=JSON.parse(s);if(!jt(c))return;var d=c,f=d[$h],h=d[Rh];return!Tt(f)||f.trim().length===0||!Tt(h)&&!Ar(h)?void 0:{step:d,json:s}}catch{return}})(t);if(n){var r=(function(o){if(typeof TextEncoder<"u")return new TextEncoder().encode(o).length;for(var s=encodeURIComponent(o),c=0,d=0;s.length>d;d++)s[d]==="%"?(c+=1,d+=2):c+=1;return c})(n.json);r>this.qt.max_bytes||(this.Yt.push({step:n.step,bytes:r}),this.Xt+=r,this.er())}}getAttachable(){return this.Yt.map((t=>t.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var t=this.Yt.shift();t&&(this.Xt-=t.bytes)}}}function p7(e,t){if(!Ar(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var g$=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k(o){if(J&&(kn.DEBUG||ke.POSTHOG_DEBUG||n)&&!ve(J.console)&&J.console){for(var s=("__rrweb_original__"in J.console[o])?J.console[o].__rrweb_original__:J.console[o],c=arguments.length,d=new Array(c>1?c-1:0),f=1;c>f;f++)d[f-1]=arguments[f];s(e,...d)}},debug(){for(var o=arguments.length,s=new Array(o),c=0;o>c;c++)s[c]=arguments[c];r.k("debug",...s)},info(){for(var o=arguments.length,s=new Array(o),c=0;o>c;c++)s[c]=arguments[c];r.k("log",...s)},warn(){for(var o=arguments.length,s=new Array(o),c=0;o>c;c++)s[c]=arguments[c];r.k("warn",...s)},error(){for(var o=arguments.length,s=new Array(o),c=0;o>c;c++)s[c]=arguments[c];r.k("error",...s)},critical(){for(var o=arguments.length,s=new Array(o),c=0;o>c;c++)s[c]=arguments[c];console.error(e,...s)},uninitializedWarning(o){r.error("You must initialize PostHog before calling "+o)},createLogger:(o,s)=>g$(e+" "+o,s)};return r},ge=g$("[PostHog.js]"),xt=ge.createLogger,m7=xt("[ExternalScriptsLoader]"),_v=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return m7.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=me?.querySelectorAll("script");if(r){for(var o,s=function(){if(r[c].src===t){var f=r[c];return f.__posthog_loading_callback_fired?{v:n()}:(f.addEventListener("load",(h=>{f.__posthog_loading_callback_fired=!0,n(void 0,h)})),f.onerror=h=>n(h),{v:void 0})}},c=0;r.length>c;c++)if(o=s())return o.v}var d=()=>{if(!me)return n("document not found");var f=me.createElement("script");if(f.type="text/javascript",f.crossOrigin="anonymous",f.src=t,f.onload=m=>{f.__posthog_loading_callback_fired=!0,n(void 0,m)},f.onerror=m=>n(m),e.config.prepare_external_dependency_script&&(f=e.config.prepare_external_dependency_script(f)),!f)return n("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")me.head.appendChild(f);else{var h,g=me.querySelectorAll("body > script");g.length>0?(h=g[0].parentNode)==null||h.insertBefore(f,g[0]):me.body.appendChild(f)}};me!=null&&me.body?d():me?.addEventListener("DOMContentLoaded",d)};ke.__PosthogExtensions__=ke.__PosthogExtensions__||{},ke.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!=="remote-config"){var r;if(e.config.__preview_external_dependency_versioned_paths)r=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var o="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var s=3e5;o=o+"&t="+Math.floor(Date.now()/s)*s}r=e.requestRouter.endpointFor("assets",o)}_v(e,r,n)}else{var c=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");_v(e,c,n)}},ke.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);_v(e,r,n)};var v$="$people_distinct_id",Mh="$device_id",Yc="__alias",Zc="__timers",Uy="$autocapture_disabled_server_side",Hy="$heatmaps_enabled_server_side",By="$exception_capture_enabled_server_side",qy="$error_tracking_suppression_rules",Vy="$error_tracking_capture_extension_exceptions",Gy="$web_vitals_enabled_server_side",C0="$dead_clicks_enabled_server_side",Yy="$product_tours_enabled_server_side",Zy="$web_vitals_allowed_metrics",Xc="$session_recording_remote_config",y$="$replay_override_sampling",b$="$replay_override_linked_flag",_$="$replay_override_url_trigger",w$="$replay_override_event_trigger",zh="$sesid",$0="$session_is_sampled",Ys="$enabled_feature_flags",Qf="$active_feature_flags",Wc="$early_access_features",Xy="$feature_flag_details",Wy="$feature_flag_payloads",Ky="$feature_flag_request_id",Pi="$override_feature_flags",Us="$override_feature_flag_payloads",Kc="$stored_person_properties",po="$stored_group_properties",Qy="$surveys",Jy="$surveys_activated",Jf="ph_product_tours",au="$flag_call_reported",eb="$flag_call_reported_session_id",tb="$feature_flag_errors",Oh="$feature_flag_evaluated_at",Fr="$user_state",nb="$client_session_props",rb="$capture_rate_limit",ib="$initial_campaign_params",ab="$initial_referrer_info",Nh="$initial_person_info",Dh="$epp",x$="__POSTHOG_TOOLBAR__",Mf="$posthog_cookieless",S$="$sdk_debug_extensions_init_method",E$="$sdk_debug_extensions_init_time_ms",k$="$sdk_debug_recording_script_not_loaded",R0="PostHog loadExternalDependency extension not found.",mo="on_reject",ji="always",Rs="anonymous",As="identified",ob="identified_only",Ph="visibilitychange",Lh="beforeunload",Hs="$pageview",wv="$pageleave",xv="$identify",X2="$groupidentify";function zf(e,t){We(e)&&e.forEach(t)}function gt(e,t){if(!Be(e))if(We(e))e.forEach(t);else if(ML(e))e.forEach(((r,o)=>t(r,o)));else for(var n in e)ZC.call(e,n)&&t(e[n],n)}var Mt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var o of n)for(var s in o)o[s]!==void 0&&(e[s]=o[s]);return e};function eh(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var W2=function(e){try{return e()}catch{return}},g7=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(o){ge.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),ge.critical(o)}}},A0=function(e){var t={};return gt(e,(function(n,r){(Tt(n)&&n.length>0||Ar(n))&&(t[r]=n)})),t},v7=["herokuapp.com","vercel.app","netlify.app"];function y7(e){var t=e?.hostname;if(!Tt(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of v7)if(n===r)return!1;return!0}function Gt(e,t,n,r){var{capture:o=!1,passive:s=!0}=r??{};e?.addEventListener(t,n,{capture:o,passive:s})}
100function T$(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Ar(e)&&isFinite(e)&&Math.floor(e)===e});class Fh{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,o){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(o)||0>t||0>n||0>r||0>o||t>0xffffffffffff||n>4095||r>1073741823||o>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=o>>>24,s[13]=o>>>16,s[14]=o>>>8,s[15]=o,new Fh(s)}toString(){for(var t="",n=0;this.bytes.length>n;n++)t=t+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Fh(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;16>n;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class b7{constructor(){this.S=0,this.C=0,this.I=new _7}generate(){var t=this.generateOrAbort();if(ve(t)){this.S=0;var n=this.generateOrAbort();if(ve(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.S)this.S=t,this.T();else{if(this.S>=t+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return Fh.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var K2,C$=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new 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};J&&!ve(J.crypto)&&crypto.getRandomValues&&(C$=e=>crypto.getRandomValues(e));class _7{constructor(){this.M=new Uint32Array(8),this.O=1/0}nextUint32(){return this.M.length>this.O||(C$(this.M),this.O=0),this.M[this.O++]}}var Ra=()=>w7().toString(),w7=()=>(K2||(K2=new b7)).generate(),Ac="",x7=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,ai={R:()=>!!me,D(e){ge.error("cookieStore error: "+e)},A(e){if(me){try{for(var t=e+"=",n=me.cookie.split(";").filter((s=>s.length)),r=0;n.length>r;r++){for(var o=n[r];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(ai.A(e))||{}}catch{}return t},N(e,t,n,r,o){if(me)try{var s="",c="",d=(function(g,m){if(m){var y=(function(w,S){if(S===void 0&&(S=me),Ac)return Ac;if(!S||["localhost","127.0.0.1"].includes(w))return"";for(var T=w.split("."),k=Math.min(T.length,8),$="dmn_chk_"+Ra();!Ac&&k--;){var z=T.slice(k).join("."),N=$+"=1;domain=."+z+";path=/";S.cookie=N+";max-age=3",S.cookie.includes($)&&(S.cookie=N+";max-age=0",Ac=z)}return Ac})(g);if(!y){var _=(w=>{var S=w.match(x7);return S?S[0]:""})(g);_!==y&&ge.info("Warning: cookie subdomain discovery mismatch",_,y),y=_}return y?"; domain=."+y:""}return""})(me.location.hostname,r);if(n){var f=new Date;f.setTime(f.getTime()+864e5*n),s="; expires="+f.toUTCString()}o&&(c="; secure");var h=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+d+c;return h.length>3686.4&&ge.warn("cookieStore warning: large cookie, len="+h.length),me.cookie=h,h}catch{return}},q(e,t){if(me!=null&&me.cookie)try{ai.N(e,"",-1,t)}catch{return}}},Sv=null,kt={R(){if(!Xi(Sv))return Sv;var e=!0;if(ve(J))e=!1;else try{var t="__mplssupport__";kt.N(t,"xyz"),kt.A(t)!=='"xyz"'&&(e=!1),kt.q(t)}catch{e=!1}return e||ge.error("localStorage unsupported; falling back to cookie store"),Sv=e,e},D(e){ge.error("localStorage error: "+e)},A(e){try{return J?.localStorage.getItem(e)}catch(t){kt.D(t)}return null},F(e){try{return JSON.parse(kt.A(e))||{}}catch{}return null},N(e,t){try{J?.localStorage.setItem(e,JSON.stringify(t))}catch(n){kt.D(n)}},q(e){try{J?.localStorage.removeItem(e)}catch(t){kt.D(t)}}},S7=[Mh,"distinct_id",zh,$0,Dh,Nh,Fr],Of={},E7={R:()=>!0,D(e){ge.error("memoryStorage error: "+e)},A:e=>Of[e]||null,F:e=>Of[e]||null,N(e,t){Of[e]=t},q(e){delete Of[e]}},so=null,pn={R(){if(!Xi(so))return so;if(so=!0,ve(J))so=!1;else try{var e="__support__";pn.N(e,"xyz"),pn.A(e)!=='"xyz"'&&(so=!1),pn.q(e)}catch{so=!1}return so},D(e){ge.error("sessionStorage error: ",e)},A(e){try{return J?.sessionStorage.getItem(e)}catch(t){pn.D(t)}return null},F(e){try{return JSON.parse(pn.A(e))||null}catch{}return null},N(e,t){try{J?.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){pn.D(n)}},q(e){try{J?.sessionStorage.removeItem(e)}catch(t){pn.D(t)}}};class k7{constructor(t){this._instance=t}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===ji||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===mo}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(t){this.nr.N(this.sr,t?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;
100return r||(n?n+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.A(this.sr);return gv(t)?1:He(NL,t)?0:-1}get nr(){var t=this.qt.opt_out_capturing_persistence_type,n=t==="localStorage"?kt:ai;if(!this.ar||this.ar!==n){this.ar=n;var r=t==="localStorage"?ai:kt;r.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(gv(r.A(this.sr))),r.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[ir?.doNotTrack,ir?.msDoNotTrack,ke.doNotTrack].some((t=>gv(t)))}}var Nf=xt("[Dead Clicks]"),T7=()=>!0,C7=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(C0)),r=e.instance.config.capture_dead_clicks;return si(r)?r:!!jt(r)||n};class Q2{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[C0]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr((()=>{this.hr()})):this.stop()}lr(t){var n,r;(n=ke.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(r=ke.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(o=>{o?Nf.error("failed to load script",o):t()}))}hr(){var t;if(me){if(!this.ur&&(t=ke.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=jt(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.ur=ke.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.ur.start(me),Nf.info("starting...")}}else Nf.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,Nf.info("stopping..."))}}var Ev=xt("[SegmentIntegration]"),$$="posthog-js";function R$(e,t){var{organization:n,projectId:r,prefix:o,severityAllowList:s=["error"],sendExceptionsToPostHog:c=!0}=t===void 0?{}:t;return d=>{var f,h,g,m,y;if(s!=="*"&&!s.includes(d.level)||!e.__loaded)return d;d.tags||(d.tags={});var _=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());d.tags["PostHog Person URL"]=_,e.sessionRecordingStarted()&&(d.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var w,S=((f=d.exception)==null?void 0:f.values)||[],T=S.map(($=>he({},$,{stacktrace:$.stacktrace?he({},$.stacktrace,{type:"raw",frames:($.stacktrace.frames||[]).map((z=>he({},z,{platform:"web:javascript"})))}):void 0}))),k={$exception_message:((h=S[0])==null?void 0:h.value)||d.message,$exception_type:(g=S[0])==null?void 0:g.type,$exception_level:d.level,$exception_list:T,$sentry_event_id:d.event_id,$sentry_exception:d.exception,$sentry_exception_message:((m=S[0])==null?void 0:m.value)||d.message,$sentry_exception_type:(y=S[0])==null?void 0:y.type,$sentry_tags:d.tags};return n&&r&&(k.$sentry_url=(o||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+d.event_id),c&&((w=e.exceptions)==null||w.sendExceptionEvent(k)),d}}class $7{constructor(t,n,r,o,s,c){this.name=$$,this.setupOnce=function(d){d(R$(t,{organization:n,projectId:r,prefix:o,severityAllowList:s,sendExceptionsToPostHog:c==null||c}))}}}class J2{constructor(t){this.cr=(n,r,o)=>{o&&(o.noSessionId||o.activityTimeout||o.sessionPastMaximumLength)&&(ge.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:o}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,n){var r,o=this.gr(t,n);return this.dr={pathname:(r=J?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),o}doPageLeave(t){var n;return this.gr(t,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,n){var r=this.dr;if(!r)return{$pageview_id:n};var o={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:c,lastScrollY:d,maxScrollY:f,maxContentHeight:h,lastContentY:g,maxContentY:m}=s;if(!(ve(c)||ve(d)||ve(f)||ve(h)||ve(g)||ve(m))){c=Math.ceil(c),d=Math.ceil(d),f=Math.ceil(f),h=Math.ceil(h),g=Math.ceil(g),m=Math.ceil(m);var y=c>1?li(d/c,0,1,ge):1,_=c>1?li(f/c,0,1,ge):1,w=h>1?li(g/h,0,1,ge):1,S=h>1?li(m/h,0,1,ge):1;o=Mt(o,{$prev_pageview_last_scroll:d,$prev_pageview_last_scroll_percentage:y,$prev_pageview_max_scroll:f,$prev_pageview_max_scroll_percentage:_,$prev_pageview_last_content:g,$prev_pageview_last_content_percentage:w,$prev_pageview_max_content:m,$prev_pageview_max_content_percentage:S})}}return r.pathname&&(o.$prev_pageview_pathname=r.pathname),r.timestamp&&(o.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),o}}var R7={[v$]:{exposure:"hidden"},[Yc]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Zc]:{exposure:"hidden"},[Uy]:{exposure:"event"},[Hy]:{exposure:"hidden"},[By]:{exposure:"event"}
100,[qy]:{exposure:"hidden"},[Vy]:{exposure:"event"},[Gy]:{exposure:"event"},[C0]:{exposure:"event"},[Yy]:{exposure:"hidden"},[Zy]:{exposure:"event"},[Xc]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[zh]:{exposure:"hidden"},[$0]:{exposure:"event"},$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"},[Ys]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!jt(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t["$feature/"+n[r]]=e[n[r]];return t}},[Qf]:{exposure:"event"},[Wc]:{exposure:"hidden"},[Xy]:{exposure:"hidden"},[Wy]:{exposure:"event"},[Ky]:{exposure:"event"},[Pi]:{exposure:"event"},[Us]:{exposure:"hidden"},[Kc]:{exposure:"hidden"},[po]:{exposure:"hidden"},[Qy]:{exposure:"hidden"},[Jy]:{exposure:"event"},[Jf]:{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"},[au]:{exposure:"hidden"},[eb]:{exposure:"hidden"},[tb]:{exposure:"hidden"},[Oh]:{exposure:"hidden"},[Fr]:{exposure:"hidden"},[nb]:{exposure:"hidden"},[rb]:{exposure:"hidden"},[ib]:{exposure:"hidden"},[ab]:{exposure:"hidden"},[Nh]:{exposure:"hidden"},[Dh]:{exposure:"hidden"},[y$]:{exposure:"event"},[b$]:{exposure:"event"},[_$]:{exposure:"event"},[w$]:{exposure:"event"},[S$]:{exposure:"event"},[E$]:{exposure:"event"},[k$]:{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"}},A7=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Ih=e=>{var t=me?.createElement("a");return ve(t)?null:(t.href=e,t)},jh=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),o=0;r.length>o;o++){var s=r[o].split("=");if(s[0]===t){n=s;break}}if(!We(n)||2>n.length)return"";var c=n[1];try{c=decodeURIComponent(c)}catch{ge.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")},Eu=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),o=r[1],s=(r[0]||"").split("?"),c=s[1],d=s[0],f=(c||"").split("&"),h=[],g=0;f.length>g;g++){var m=f[g].split("=");We(m)&&(t.includes(m[0])?h.push(m[0]+"="+n):h.push(f[g]))}var y=d;return c!=null&&(y+="?"+h.join("&")),o!=null&&(y+="#"+o),y},Uh=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Df="https?://(.*)",_l=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],M7=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",..._l],ku="<masked>",z7=["li_fat_id"];function A$(e,t,n){if(!me)return{};var r,o=t?[..._l,...n||[]]:[],s=M$(Eu(me.URL,o,ku),e),c=(r={},gt(z7,(function(d){var f=ai.A(d);r[d]=f||null})),r);return Mt(c,s)}function M$(e,t){var n=M7.concat(t||[]),r={};return gt(n,(function(o){var s=jh(e,o);r[o]=s||null})),r}function z$(e){var t=(function(s){return s?s.search(Df+"google.([^/?]*)")===0?"google":s.search(Df+"bing.com")===0?"bing":s.search(Df+"yahoo.com")===0?"yahoo":s.search(Df+"duckduckgo.com")===0?"duckduckgo":null:null})(e),n=t!="yahoo"?"q":"p",r={};if(!Xi(t)){r.$search_engine=t;var o=me?jh(me.referrer,n):"";o.length&&(r.ph_keyword=o)}return r}function eE(){return navigator.language||navigator.userLanguage}var Hh="$direct";function O$(){return me?.referrer||Hh}function N$(e,t){var n=e?[..._l,...t||[]]:[],r=hn?.href.substring(0,1e3);return{r:O$().substring(0,1e3),u:r?Eu(r,n,ku):void 0}}function D$(e){var t,{r:n,u:r}=e,o={$referrer:n,$referring_domain:n==null?void 0:n==Hh?Hh:(t=Ih(n))==null?void 0:t.host};
100if(r){o.$current_url=r;var s=Ih(r);o.$host=s?.host,o.$pathname=s?.pathname;var c=M$(r);Mt(o,c)}if(n){var d=z$(n);Mt(o,d)}return o}function P$(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function O7(){try{return new Date().getTimezoneOffset()}catch{return}}var N7=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class kv{constructor(t,n){this.qt=t,this.props={},this.mr=!1,this.yr=(r=>{var o="";return r.token&&(o=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+o+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&ge.info("Persistence loaded",t.persistence,he({},this.props)),this.update_config(t,t,n),this.save()}isDisabled(){return!!this._r}br(t){N7.indexOf(t.persistence.toLowerCase())===-1&&(ge.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=(function(o){o===void 0&&(o=[]);var s=[...S7,...o];return he({},kt,{F(c){try{var d={};try{d=ai.F(c)||{}}catch{}var f=Mt(d,JSON.parse(kt.A(c)||"{}"));return kt.N(c,f),f}catch{}return null},N(c,d,f,h,g,m){try{kt.N(c,d,void 0,void 0,m);var y={};s.forEach((_=>{d[_]&&(y[_]=d[_])})),Object.keys(y).length&&ai.N(c,y,f,h,g,m)}catch(_){kt.D(_)}},q(c,d){try{J?.localStorage.removeItem(c),ai.q(c,d)}catch(f){kt.D(f)}}})})(t.cookie_persisted_properties||[]),r=t.persistence.toLowerCase();return r==="localstorage"&&kt.R()?kt:r==="localstorage+cookie"&&n.R()?n:r==="sessionstorage"&&pn.R()?pn:r==="memory"?E7:r==="cookie"?ai:n.R()?n:ai}wr(t){var n=t??this.qt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[Oh];return!r||typeof r!="number"||Date.now()-r>n}properties(){var t={};return gt(this.props,((n,r)=>{var o=(s=>{var c=R7[s];if(c)return c;for(var[d,f]of A7)if(s.indexOf(d)===0)return f})(r);if(o?.exposure==="derived"){if(o.shouldSkipFromEventProperties!=null&&o.shouldSkipFromEventProperties(n,r===Ys?()=>this.wr():()=>!1))return;o.transformToEventProperties&&Mt(t,o.transformToEventProperties(n))}else o&&o.exposure!=="event"||(t[r]=n)})),t}load(){if(!this._r){var t=this.nr.F(this.yr);t&&(this.props=Mt({},t))}}save(){this._r||this.nr.N(this.yr,this.props,this.Sr,this.kr,this.Cr,this.qt.debug)}remove(){this.nr.q(this.yr,!1),this.nr.q(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(jt(t)){ve(n)&&(n="None"),this.Sr=ve(r)?this.Ir:r;var o=!1;if(gt(t,((s,c)=>{this.props.hasOwnProperty(c)&&this.props[c]!==n||(this.Tr(c,s),o=!0)})),o)return this.save(),!0}return!1}register(t,n){if(jt(t)){this.Sr=ve(n)?this.Ir:n;var r=!1;if(gt(t,((o,s)=>{t.hasOwnProperty(s)&&this.props[s]!==o&&(this.Tr(s,o),r=!0)})),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Er(t),this.save())}update_campaign_params(){if(!this.mr){var t=A$(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);Gs(A0(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=me?.referrer)?z$(t):{})}update_referrer_info(){var t;this.register_once({$referrer:O$(),$referring_domain:me!=null&&me.referrer&&((t=Ih(me.referrer))==null?void 0:t.host)||Hh},void 0)}set_initial_person_info(){this.props[ib]||this.props[ab]||this.register_once({[Nh]:N$(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};gt([ab,ib],(c=>{var d=this.props[c];d&>(d,(function(f,h){t["$initial_"+Py(h)]=f}))}));var n,r,o=this.props[Nh];if(o){var s=(n=D$(o),r={},gt(n,(function(c,d){r["$initial_"+Py(d)]=c})),r);Mt(t,s)}return t}safe_merge(t){return gt(this.props,(function(n,r){r in t||(t[r]=n)})),t}update_config(t,n,r){if(this.Ir=this.Sr=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!r),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence||!((c,d)=>{if(c.length!==d.length)return!1;var f=[...c].sort(),h=[...d].sort();return f.every(((g,m)=>g===h[m]))})(t.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var o=this.br(t),s=this.props;this.clear(),this.nr=o,this.props=s,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.kr&&(this.kr=t,this.remove(),this.save())}set_secure(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[Zc]||{};r[t]=n,this.Tr(Zc,r),this.save()}remove_event_timer(t){var n=this.props[Zc]||{},r=n[t];return ve(r)||(delete n[t],this.Tr(Zc,n),this.save()),r}get_property(t){return this.props[t]}set_property(t,n){this.Tr(t,n),this.save()}Tr(t,n){this.props[t]=n}Er(t){delete this.props[t]}}var Mc={Activation:"events",Cancellation:"cancelEvents"},Tv={Popover:"popover",API:"api",Widget:"widget"},Qc={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Cv={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},sb={Popover:"popover",Inline:"inline"},D7={SHOWN:"product tour shown"},tE={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},nE=xt("[RateLimiter]");class P7{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;
100if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((o=>{nE.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void nE.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:r})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var n,r,o;t===void 0&&(t=!1);var{captureEventsBurstLimit:s,captureEventsPerSecond:c}=this,d=new Date().getTime(),f=(n=(r=this.instance.persistence)==null?void 0:r.get_property(rb))!==null&&n!==void 0?n:{tokens:s,last:d};f.tokens+=(d-f.last)/1e3*c,f.last=d,f.tokens>s&&(f.tokens=s);var h=1>f.tokens;return h||t||(f.tokens=Math.max(0,f.tokens-1)),!h||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+c+" events per second and "+s+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=h,(o=this.instance.persistence)==null||o.set_property(rb,f),{isRateLimited:h,remainingTokens:f.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var zc=xt("[RemoteConfig]");class L${constructor(t){this._instance=t}get remoteConfig(){var t;return(t=ke._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Mr(t){var n,r;(n=ke.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=ke.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Pr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){t(n.json)}})}load(){try{if(this.remoteConfig)return zc.info("Using preloaded remote config",this.remoteConfig),this.Rr(this.remoteConfig),void this.Or();if(this._instance.Lr())return void zc.warn("Remote config is disabled. Falling back to local config.");this.Mr((t=>{if(!t)return zc.info("No config found after loading remote JS config. Falling back to JSON."),void this.Pr((n=>{this.Rr(n),this.Or()}));this.Rr(t),this.Or()}))}catch(t){zc.error("Error loading remote config",t)}}stop(){this.Fr&&(clearInterval(this.Fr),this.Fr=void 0)}refresh(){this._instance.Lr()||me?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Or(){var t;if(!this.Fr){var n=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;n!==0&&(this.Fr=setInterval((()=>{this.refresh()}),n))}}Rr(t){var n;t||zc.error("Failed to fetch remote config from PostHog."),this._instance.Rr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var ii={GZipJS:"gzip-js",Base64:"base64"},Cr=Uint8Array,Bn=Uint16Array,wl=Uint32Array,M0=new Cr([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]),z0=new Cr([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]),rE=new Cr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),F$=function(e,t){for(var n=new Bn(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var o=new wl(n[30]);for(r=1;30>r;++r)for(var s=n[r];n[r+1]>s;++s)o[s]=s-n[r]<<5|r;return[n,o]},I$=F$(M0,2),lb=I$[1];I$[0][28]=258,lb[258]=28;for(var iE=F$(z0,0)[1],j$=new Bn(32768),vt=0;32768>vt;++vt){var Ms=(43690&vt)>>>1|(21845&vt)<<1;j$[vt]=((65280&(Ms=(61680&(Ms=(52428&Ms)>>>2|(13107&Ms)<<2))>>>4|(3855&Ms)<<4))>>>8|(255&Ms)<<8)>>>1}var ou=function(e,t,n){for(var r=e.length,o=0,s=new Bn(t);r>o;++o)++s[e[o]-1];var c,d=new Bn(t);for(o=0;t>o;++o)d[o]=d[o-1]+s[o-1]<<1;for(c=new Bn(r),o=0;r>o;++o)c[o]=j$[d[e[o]-1]++]>>>15-e[o];return c},Ao=new Cr(288);for(vt=0;144>vt;++vt)Ao[vt]=8;for(vt=144;256>vt;++vt)Ao[vt]=9;for(vt=256;280>vt;++vt)Ao[vt]=7;for(vt=280;288>vt;++vt)Ao[vt]=8;var Bh=new Cr(32);for(vt=0;32>vt;++vt)Bh[vt]=5;var L7=ou(Ao,9),F7=ou(Bh,5),U$=function(e){return(e/8>>0)+(7&e&&1)},H$=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Bn?Bn:e instanceof wl?wl:Cr)(n-t);return r.set(e.subarray(t,n)),r},Oi=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},Oc=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},$v=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,s=n.slice();if(!o)return[new Cr(0),0];if(o==1){var c=new Cr(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort((function(O,I){return O.f-I.f})),n.push({s:-1,f:25001});var d=n[0],f=n[1],h=0,g=1,m=2;for(n[0]={s:-1,f:d.f+f.f,l:d,r:f};g!=o-1;)d=n[n[m].f>n[h].f?h++:m++],f=n[h!=g&&n[m].f>n[h].f?h++:m++],n[g++]={s:-1,f:d.f+f.f,l:d,r:f};var y=s[0].s;for(r=1;o>r;++r)s[r].s>y&&(y=s[r].s);var _=new Bn(y+1),w=cb(n[g-1],_,0);if(w>t){r=0;var S=0,T=w-t,k=1<<T;for(s.sort((function(O,I){return _[I.s]-_[O.s]||O.f-I.f}));o>r;++r){var $=s[r].s;if(t>=_[$])break;S+=k-(1<<w-_[$]),_[$]=t}for(S>>>=T;S>0;){var z=s[r].s;t>_[z]?S-=1<<t-_[z]++-1:++r}for(;r>=0&&S;--r){var N=s[r].s;_[N]==t&&(--_[N],++S)}w=t}return[new Cr(_),w]},cb=function(e,t,n){return e.s==-1?Math.max(cb(e.l,t,n+1),cb(e.r,t,n+1)):t[e.s]=n},aE=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Bn(++t),r=0,o=e[0],s=1,c=function(f){n[r++]=f},d=1;t>=d;++d)if(e[d]==o&&d!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(o),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(o);s=1,o=e[d]}return[n.subarray(0,r),t]},Nc=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},ub=function(e,t,n){var r=n.length,o=U$(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var s=0;r>s;++s)e[o+s+4]=n[s];return 8*(o+4+r)},oE=function(e,t,n,r,o,s,c,d,f,h,g){Oi(t,g++,n),++o[256];for(var m=$v(o,15),y=m[0],_=m[1],w=$v(s,15),S=w[0],T=w[1],k=aE(y),$=k[0],z=k[1],N=aE(S),O=N[0],I=N[1],j=new Bn(19),L=0;$.length>L;++L)j[31&$[L]]++;for(L=0;O.length>L;++L)j[31&O[L]]++;for(var G=$v(j,7),X=G[0],D=G[1],Z=19;Z>4&&!X[rE[Z-1]];--Z);var ce,H,ae,E,R=h+5<<3,A=Nc(o,Ao)+Nc(s,Bh)+c,q=Nc(o,y)+Nc(s,S)+c+14+3*Z+Nc(j,X)+(2*j[16]+3*j[17]+7*j[18]);if(A>=R&&q>=R)return ub(t,g,e.subarray(f,f+h));if(Oi(t,g,1+(A>q)),g+=2,A>q){ce=ou(y,_),H=y,ae=ou(S,T),E=S;var te=ou(X,D);for(Oi(t,g,z-257),Oi(t,g+5,I-1),Oi(t,g+10,Z-4),g+=14,L=0;Z>L;++L)Oi(t,g+3*L,X[rE[L]]);g+=3*Z;for(var M=[$,O],U=0;2>U;++U){var Y=M[U];for(L=0;Y.length>L;++L)Oi(t,g,te[ne=31&Y[L]]),g+=X[ne],ne>15&&(Oi(t,g,Y[L]>>>5&127),g+=Y[L]>>>12)}}else ce=L7,H=Ao,ae=F7,E=Bh;for(L=0;d>L;++L)if(r[L]>
100255){var ne;Oc(t,g,ce[257+(ne=r[L]>>>18&31)]),g+=H[ne+257],ne>7&&(Oi(t,g,r[L]>>>23&31),g+=M0[ne]);var le=31&r[L];Oc(t,g,ae[le]),g+=E[le],le>3&&(Oc(t,g,r[L]>>>5&8191),g+=z0[le])}else Oc(t,g,ce[r[L]]),g+=H[r[L]];return Oc(t,g,ce[256]),g+H[256]},I7=new wl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),j7=(function(){for(var e=new wl(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e})(),Rv=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function U7(e,t){t===void 0&&(t={});var n=(function(){var m=4294967295;return{p(y){for(var _=m,w=0;y.length>w;++w)_=j7[255&_^y[w]]^_>>>8;m=_},d(){return 4294967295^m}}})(),r=e.length;n.p(e);var o,s,c,d,f,h=(d=10+((o=t).filename&&o.filename.length+1||0),f=8,(function(m,y,_,w,S,T){var k=m.length,$=new Cr(w+k+5*(1+Math.floor(k/7e3))+S),z=$.subarray(w,$.length-S),N=0;if(!y||8>k)for(var O=0;k>=O;O+=65535){var I=O+65535;k>I?N=ub(z,N,m.subarray(O,I)):(z[O]=!0,N=ub(z,N,m.subarray(O,k)))}else{for(var j=I7[y-1],L=j>>>13,G=8191&j,X=(1<<_)-1,D=new Bn(32768),Z=new Bn(X+1),ce=Math.ceil(_/3),H=2*ce,ae=function(Ut){return(m[Ut]^m[Ut+1]<<ce^m[Ut+2]<<H)&X},E=new wl(25e3),R=new Bn(288),A=new Bn(32),q=0,te=0,M=(O=0,0),U=0,Y=0;k>O;++O){var ne=ae(O),le=32767&O,fe=Z[ne];if(D[le]=fe,Z[ne]=le,O>=U){var pe=k-O;if((q>7e3||M>24576)&&pe>423){N=oE(m,z,0,E,R,A,te,M,Y,O-Y,N),M=q=te=0,Y=O;for(var Te=0;286>Te;++Te)R[Te]=0;for(Te=0;30>Te;++Te)A[Te]=0}var Ee=2,Xe=0,Et=G,yt=le-fe&32767;if(pe>2&&ne==ae(O-yt))for(var Or=Math.min(L,pe)-1,_n=Math.min(32767,O),ja=Math.min(258,pe);_n>=yt&&--Et&&le!=fe;){if(m[O+Ee]==m[O+Ee-yt]){for(var Mn=0;ja>Mn&&m[O+Mn]==m[O+Mn-yt];++Mn);if(Mn>Ee){if(Ee=Mn,Xe=yt,Mn>Or)break;var Ml=Math.min(yt,Mn-2),Yr=0;for(Te=0;Ml>Te;++Te){var cr=O-yt+Te+32768&32767,fi=cr-D[cr]+32768&32767;fi>Yr&&(Yr=fi,fe=cr)}}}yt+=(le=fe)-(fe=D[le])+32768&32767}if(Xe){E[M++]=268435456|lb[Ee]<<18|iE[Xe];var hi=31&lb[Ee],it=31&iE[Xe];te+=M0[hi]+z0[it],++R[257+hi],++A[it],U=O+Ee,++q}else E[M++]=m[O],++R[m[O]]}}N=oE(m,z,!0,E,R,A,te,M,Y,O-Y,N)}return H$($,0,w+U$(N)+S)})(s=e,(c=t).level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+c.mem,d,f)),g=h.length;return(function(m,y){var _=y.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>y.level?4:y.level==9?2:0,m[9]=3,y.mtime!=0&&Rv(m,4,Math.floor(new Date(y.mtime||Date.now())/1e3)),_){m[3]=8;for(var w=0;_.length>=w;++w)m[w+10]=_.charCodeAt(w)}})(h,t),Rv(h,g-8,n.d()),Rv(h,g-4,r),h}var H7=!!Ny||!!Oy,B$="text/plain",sE=!1,bp=function(e,t,n){var r;n===void 0&&(n=!0);var[o,s]=e.split("?"),c=he({},t),d=(r=s?.split("&").map((h=>{var g,[m,y]=h.split("="),_=n&&(g=c[m])!==null&&g!==void 0?g:y;return delete c[m],m+"="+_})))!==null&&r!==void 0?r:[],f=(function(h,g){var m,y;g===void 0&&(g="&");var _=[];return gt(h,(function(w,S){ve(w)||ve(S)||S==="undefined"||(m=encodeURIComponent((T=>T instanceof File)(w)?w.name:w.toString()),y=encodeURIComponent(S),_[_.length]=y+"="+m)})),_.join(g)})(c);return f&&d.push(f),o+"?"+d.join("&")},Zs=(e,t)=>JSON.stringify(e,((n,r)=>typeof r=="bigint"?r.toString():r),t),Av=e=>{if(e.tr)return e.tr;var{data:t,compression:n}=e;if(t){if(n===ii.GZipJS){var r=U7((function(d,f){var h=d.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(d);for(var g=new Cr(d.length+(d.length>>>1)),m=0,y=function(T){g[m++]=T},_=0;h>_;++_){if(m+5>g.length){var w=new Cr(m+8+(h-_<<1));w.set(g),g=w}var S=d.charCodeAt(_);128>S?y(S):2048>S?(y(192|S>>>6),y(128|63&S)):S>55295&&57344>S?(y(240|(S=65536+(1047552&S)|1023&d.charCodeAt(++_))>>>18),y(128|S>>>12&63),y(128|S>>>6&63),y(128|63&S)):(y(224|S>>>12),y(128|S>>>6&63),y(128|63&S))}return H$(g,0,m)})(Zs(t)),{mtime:0});return{contentType:B$,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===ii.Base64){var o=(function(d){return d&&btoa(encodeURIComponent(d).replace(/%([0-9A-F]{2})/g,((f,h)=>String.fromCharCode(parseInt(h,16)))))})(Zs(t)),s=(d=>"data="+encodeURIComponent(typeof d=="string"?d:Zs(d)))(o);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var c=Zs(t);return{contentType:"application/json",body:c,estimatedSize:new Blob([c]).size}}},B7=(function(){var e=kr((function*(t){var n=Zs(t.data),r=yield(function(s,c,d){return Dy.apply(this,arguments)})(n,kn.DEBUG,{rethrow:!0});if(!r)return t;var o=yield r.arrayBuffer();return he({},t,{tr:{contentType:B$,body:o,estimatedSize:o.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),lE=(e,t)=>bp(e,{_:new Date().getTime().toString(),ver:kn.JS_SDK_VERSION,compression:t}),th=[];Oy&&th.push({transport:"fetch",method(e){var t,n,{contentType:r,body:o,estimatedSize:s}=(t=Av(e))!==null&&t!==void 0?t:{},c=new Headers;gt(e.headers,(function(g,m){c.append(m,g)})),r&&c.append("Content-Type",r);var d=e.url,f=null;if(I2){var h=new I2;f={signal:h.signal,timeout:setTimeout((()=>h.abort()),e.timeout)}}Oy(d,he({method:e?.method||"GET",headers:c,keepalive:e.method==="POST"&&52428.8>(s||0),body:o,signal:(n=f)==null?void 0:n.signal},e.fetchOptions)).then((g=>g.text().then((m=>{var y={statusCode:g.status,text:m};if(g.status===200)try{y.json=JSON.parse(m)}catch(_){ge.error(_)}e.callback==null||e.callback(y)}
100)))).catch((g=>{ge.error(g),e.callback==null||e.callback({statusCode:0,error:g})})).finally((()=>f?clearTimeout(f.timeout):null))}}),Ny&&th.push({transport:"XHR",method(e){var t,n=new Ny;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:o}=(t=Av(e))!==null&&t!==void 0?t:{};gt(e.headers,(function(s,c){n.setRequestHeader(c,s)})),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),e.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var s={statusCode:n.status,text:n.responseText};if(n.status===200)try{s.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(s)}},n.send(o)}}),ir!=null&&ir.sendBeacon&&th.push({transport:"sendBeacon",method(e){var t=bp(e.url,{beacon:"1"});try{var n,{contentType:r,body:o}=(n=Av(e))!==null&&n!==void 0?n:{};if(!o)return;var s=o instanceof Blob?o:new Blob([o],{type:r});ir.sendBeacon(t,s)}catch{}}});var db=3e3;let q7=class{constructor(t,n){this.Ar=!0,this.Nr=[],this.$r=li(n?.flush_interval_ms||db,250,5e3,ge.createLogger("flush interval"),db),this.Dr=t}enqueue(t){this.Nr.push(t),this.qr||this.jr()}unload(){this.Hr();var t=this.Nr.length>0?this.Ur():{},n=Object.values(t);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.Dr(he({},r,{transport:"sendBeacon"}))}))}enable(){this.Ar=!1,this.jr()}jr(){var t=this;this.Ar||(this.qr=setTimeout((()=>{if(this.Hr(),this.Nr.length>0){var n=this.Ur(),r=function(){var s=n[o],c=new Date().getTime();s.data&&We(s.data)&>(s.data,(d=>{d.offset=Math.abs(d.timestamp-c),delete d.timestamp})),t.Dr(s)};for(var o in n)r()}}),this.$r))}Hr(){clearTimeout(this.qr),this.qr=void 0}Ur(){var t={};return gt(this.Nr,(n=>{var r,o=n,s=(o?o.batchKey:null)||o.url;ve(t[s])&&(t[s]=he({},o,{data:[]})),(r=t[s].data)==null||r.push(o.data)})),this.Nr=[],t}};var V7=["retriesPerformedSoFar"];let G7=class{constructor(t){this.Br=!1,this.zr=3e3,this.Nr=[],this._instance=t,this.Nr=[],this.Vr=!0,!ve(J)&&"onLine"in J.navigator&&(this.Vr=J.navigator.onLine,this.Wr=()=>{this.Vr=!0,this.Zr()},this.Gr=()=>{this.Vr=!1},Gt(J,"online",this.Wr),Gt(J,"offline",this.Gr))}get length(){return this.Nr.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=GC(t,V7);js(n)&&(r.url=bp(r.url,{retry_count:n})),this._instance._send_request(he({},r,{callback:o=>{o.statusCode===200||o.statusCode>=400&&500>o.statusCode||(n??0)>=10?r.callback==null||r.callback(o):this.Qr(he({retriesPerformedSoFar:n},r))}}))}Qr(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=(function(c){var d=3e3*Math.pow(2,c),f=d/2,h=Math.min(18e5,d),g=Math.random()-.5;return Math.ceil(h+g*(h-f))})(n),o=Date.now()+r;this.Nr.push({retryAt:o,requestOptions:t});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),ge.warn(s),this.Br||(this.Br=!0,this.Jr())}Jr(){if(this.Kr&&clearTimeout(this.Kr),this.Nr.length===0)return this.Br=!1,void(this.Kr=void 0);this.Kr=setTimeout((()=>{this.Vr&&this.Nr.length>0&&this.Zr(),this.Jr()}),this.zr)}Zr(){var t=Date.now(),n=[],r=this.Nr.filter((s=>t>s.retryAt||(n.push(s),!1)));if(this.Nr=n,r.length>0)for(var{requestOptions:o}of r)this.retriableRequest(o)}unload(){for(var{requestOptions:t}of(this.Kr&&(clearTimeout(this.Kr),this.Kr=void 0),this.Br=!1,ve(J)||(this.Wr&&(J.removeEventListener("online",this.Wr),this.Wr=void 0),this.Gr&&(J.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Nr))try{this._instance._send_request(he({},t,{transport:"sendBeacon"}))}catch(n){ge.error(n)}this.Nr=[]}},Y7=class{constructor(t){this.Yr=()=>{var n,r,o,s;this.Xr||(this.Xr={});var c=this.scrollElement(),d=this.scrollY(),f=c?Math.max(0,c.scrollHeight-c.clientHeight):0,h=d+(c?.clientHeight||0),g=c?.scrollHeight||0;this.Xr.lastScrollY=Math.ceil(d),this.Xr.maxScrollY=Math.max(d,(n=this.Xr.maxScrollY)!==null&&n!==void 0?n:0),this.Xr.maxScrollHeight=Math.max(f,(r=this.Xr.maxScrollHeight)!==null&&r!==void 0?r:0),this.Xr.lastContentY=h,this.Xr.maxContentY=Math.max(h,(o=this.Xr.maxContentY)!==null&&o!==void 0?o:0),this.Xr.maxContentHeight=Math.max(g,(s=this.Xr.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Xr}resetContext(){var t=this.Xr;return setTimeout(this.Yr,0),t}startMeasuringScrollPosition(){Gt(J,"scroll",this.Yr,{capture:!0}),Gt(J,"scrollend",this.Yr,{capture:!0}),Gt(J,"resize",this.Yr)}scrollElement(){if(!this.ei)return J?.document.documentElement;var t=We(this.ei)?this.ei:[this.ei];for(var n of t){var r=J?.document.querySelector(n);if(r)return r}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return J&&(J.scrollY||J.pageYOffset||J.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return J&&(J.scrollX||J.pageXOffset||J.document.documentElement.scrollLeft)||0}};var Z7=e=>N$(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);let cE=class{constructor(t,n,r,o){this.ti=s=>{var c=this.ri();if(!c||c.sessionId!==s){var d={sessionId:s,props:this.ii(this._instance)};this.ni.register({[nb]:d})}},this._instance=t,this.si=n,this.ni=r,this.ii=o||Z7,this.si.onSessionId(this.ti)}ri(){return this.ni.props[nb]}getSetOnceProps(){var t,n=(t=this.ri())==null?void 0:t.props;return n?"r"in n?D$(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return gt(A0(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+Py(r)]=n})),t}};class O0{constructor(){this.oi={}}on(t,n){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(n),()=>{this.oi[t]=this.oi[t].filter((r=>r!==n))}}emit(t,n){for(var r of this.oi[t]||[])r(n);for(var o of this.oi["*"]||[])o(t,n)}}var Mv=xt("[SessionId]");class uE{on(t,n){return this.ai.on(t,n)}constructor(t,n,r){var o;if(this.ui=[],this.li=void 0,this.ai=new O0,this.hi=(h,g)=>!(!js(h)||!js(g))&&Math.abs(h-g)>
100this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===ji)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=n||Ra,this.fi=r||Ra;var s=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*li(this.qt.session_idle_timeout_seconds||1800,60,36e3,Mv.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+s+"_window_id",this.mi="ph_"+s+"_primary_window_exists",this.yi()){var c=pn.F(this.gi),d=pn.F(this.mi);c&&!d?this.ci=c:pn.q(this.gi),pn.N(this.mi,!0)}if((o=this.qt.bootstrap)!=null&&o.sessionID)try{var f=(h=>{var g=this.qt.bootstrap.sessionID.replace(/-/g,"");if(g.length!==32)throw new Error("Not a valid UUID");if(g[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(g.substring(0,12),16)})();this.bi(this.qt.bootstrap.sessionID,new Date().getTime(),f)}catch(h){Mv.error("Invalid sessionID in bootstrap",h)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ve(this.ui)&&(this.ui=[]),this.ui.push(t),this.di&&t(this.di,this.ci),()=>{this.ui=this.ui.filter((n=>n!==t))}}yi(){return this.qt.persistence!=="memory"&&!this.ni._r&&pn.R()}xi(t){t!==this.ci&&(this.ci=t,this.yi()&&pn.N(this.gi,t))}Si(){return this.ci?this.ci:this.yi()?pn.F(this.gi):null}bi(t,n,r){t===this.di&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.di=t,this.ni.register({[zh]:[n,t,r]}))}ki(){var t=this.ni.props[zh];return We(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.Ci),this.Ci=void 0,this.li&&J&&(J.removeEventListener(Lh,this.li,{capture:!1}),this.li=void 0),this.ui=[]}wi(){this.li=()=>{this.yi()&&pn.q(this.mi)},Gt(J,Lh,this.li,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.qt.cookieless_mode===ji)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[o,s,c]=this.ki(),d=this.Si(),f=js(c)&&Math.abs(r-c)>864e5,h=!1,g=!s,m=!g&&!t&&this.hi(r,o);g||m||f?(s=this.vi(),d=this.fi(),Mv.info("new session ID generated",{sessionId:s,windowId:d,changeReason:{noSessionId:g,activityTimeout:m,sessionPastMaximumLength:f}}),c=r,h=!0):d||(d=this.fi(),h=!0);var y=js(o)&&t&&!f?o:r,_=js(c)?c:new Date().getTime();return this.xi(d),this.bi(s,y,_),t||this.pi(),h&&this.ui.forEach((w=>w(s,d,h?{noSessionId:g,activityTimeout:m,sessionPastMaximumLength:f}:void 0))),{sessionId:s,windowId:d,sessionStartTimestamp:_,changeReason:h?{noSessionId:g,activityTimeout:m,sessionPastMaximumLength:f}:void 0,lastActivityTimestamp:o}}pi(){clearTimeout(this.Ci),this.Ci=setTimeout((()=>{var[t]=this.ki();if(this.hi(new Date().getTime(),t)){var n=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var q$=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&H2(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((o=>H2(o?.brand,t))))return!0}catch{}return!!e.webdriver},qh=function(e,t){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function dE(e,t,n){return Zs({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var V$={exact:(e,t)=>t.some((n=>e.some((r=>n===r)))),is_not:(e,t)=>t.every((n=>e.every((r=>n!==r)))),regex:(e,t)=>t.some((n=>e.some((r=>qh(n,r))))),not_regex:(e,t)=>t.every((n=>e.every((r=>!qh(n,r))))),icontains:(e,t)=>t.map(Pf).some((n=>e.map(Pf).some((r=>n.includes(r))))),not_icontains:(e,t)=>t.map(Pf).every((n=>e.map(Pf).every((r=>!n.includes(r))))),gt:(e,t)=>t.some((n=>{var r=parseFloat(n);return!isNaN(r)&&e.some((o=>r>parseFloat(o)))})),lt:(e,t)=>t.some((n=>{var r=parseFloat(n);return!isNaN(r)&&e.some((o=>r<parseFloat(o)))}))},Pf=e=>e.toLowerCase();function G$(e,t){return!e||Object.entries(e).every((n=>{var[r,o]=n,s=t?.[r];if(ve(s)||Xi(s))return!1;var c=[String(s)],d=V$[o.operator];return!!d&&d(o.values,c)}))}var fb="custom",fE="i.posthog.com",X7=/^\/static\//;class W7{constructor(t){this.Ii={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+fE,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}
100get region(){return this.Ii[this.apiHost]||(this.Ii[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":fb),this.Ii[this.apiHost]}Ti(t){var n=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof n=="string"&&X7.test(t))return n.trim().replace(/\/$/,"")||void 0}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(t==="assets"){var r=this.Ti(n);if(r)return""+r+n}if(this.region===fb)return this.apiHost+n;var o=fE+n;switch(t){case"assets":return"https://"+this.region+"-assets."+o;case"api":return"https://"+this.region+"."+o}}}var lt=xt("[Surveys]"),hb="seenSurvey_",K7=[Tv.Popover,Tv.Widget,Tv.API],Q7={ignoreConditions:!1,ignoreDelay:!1,displayType:sb.Popover},J7=xt("[PostHog ExternalIntegrations]"),eF={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class tF{constructor(t){this._instance=t}lr(t,n){var r;(r=ke.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,t,(o=>{if(o)return J7.error("failed to load script",o);n()}))}startIfEnabledOrStop(){var t=this,n=function(c){var d,f,h;!o||(d=ke.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[c]||t.lr(eF[c],(()=>{var g;(g=ke.__PosthogExtensions__)==null||(g=g.integrations)==null||(g=g[c])==null||g.start(t._instance)})),!o&&(f=ke.__PosthogExtensions__)!=null&&(f=f.integrations)!=null&&f[c]&&((h=ke.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[c])==null||h.stop())};for(var[r,o]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;n(r)}}}var zs,su={},zv=0,pb=()=>{},hE='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Dc="Surveys module not available",pE="sanitize_properties is deprecated. Use before_send instead",Y$="Invalid value for property_denylist config: ",Bs="posthog",Z$=!H7&&jn?.indexOf("MSIE")===-1&&jn?.indexOf("Mozilla")===-1,mE=e=>{var t;return he({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:y7(me?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:pb,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:hn&&Tt(hn?.search)&&hn.search.indexOf("__posthog_debug=true")!==-1||!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,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(J==null||(t=J.location)==null?void 0:t.protocol)==="https:",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(n){ge.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:ob,before_send:void 0,request_queue_config:{flush_interval_ms:db},error_tracking:{},_onCapture:pb,__preview_eager_load_replay:!1},(n=>({rageclick:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},nF=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],gE=e=>{var t={};for(var[n,r]of nF)ve(e[n])||(t[r]=e[n]);var o=Mt({},t,e);return We(e.property_blacklist)&&(ve(e.property_denylist)?o.property_denylist=e.property_blacklist:We(e.property_denylist)?o.property_denylist=[...e.property_blacklist,...e.property_denylist]:ge.error(Y$+e.property_denylist)),o};class rF{constructor(){this.__forceAllowLocalhost=!1}get Ei(){return this.__forceAllowLocalhost}set Ei(t){ge.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Tr{Mi(t,n){if(t){var r=this.Pi.indexOf(t);r!==-1&&this.Pi.splice(r,1)}return this.Pi.push(n),n.initialize==null||n.initialize(),n}Ri(){return this.config.cookieless_mode===ji||this.config.cookieless_mode===mo&&this.consent.isRejected()}get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new rF,this.Oi=!1,this.version=kn.LIB_VERSION,this.Li=new O0,this.Pi=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=mE(),this.SentryIntegration=$7,this.sentryIntegration=r=>(function(o,s){var c=R$(o,s);return{name:$$,processEvent:d=>c(d)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Fi=!1,this.Ai=null,this.Ni=null,this.$i=null,this.scrollManager=new Y7(this),this.pageViewM
100anager=new J2(this),this.rateLimiter=new P7(this),this.requestRouter=new W7(this),this.consent=new k7(this),this.externalIntegrations=new tF(this);var n=(t=Tr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,o,s)=>{var c=Tt(r)?{[r]:o}:r;this.setPersonProperties(c),s?.({})},set_once:(r,o,s)=>{var c=Tt(r)?{[r]:o}:r;this.setPersonProperties(void 0,c),s?.({})}},this.on("eventCaptured",(r=>ge.info('send "'+r?.event+'"',r)))}init(t,n,r){if(r&&r!==Bs){var o,s=(o=su[r])!==null&&o!==void 0?o:new Tr;return s._init(t,n,r),su[r]=s,su[Bs][r]=s,s}return this._init(t,n,r)}_init(t,n,r){var o,s;if(n===void 0&&(n={}),ve(t)||Kf(t))return ge.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={},n.debug=this.Di(n.debug),this.qi=n,this.ji=[],n.person_profiles?this.Ni=n.person_profiles:n.process_person&&(this.Ni=n.process_person),this.set_config(Mt({},mE(n.defaults),gE(n),{name:r,token:t})),this.config.on_xhr_error&&ge.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:ii.GZipJS;var c=this.Hi();this.persistence=new kv(this.config,c),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new kv(he({},this.config,{persistence:"sessionStorage"}),c);var d=he({},this.persistence.props),f=he({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Ui=new q7((T=>this.Bi(T)),this.config.request_queue_config),this.zi=new G7(this),this.__request_queue=[];var h=this.Ri();if(h||(this.sessionManager=new uE(this),this.sessionPropsManager=new cE(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(ge.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Vi(h)}),0)):(ge.info("Initializing extensions synchronously"),this.Vi(h)),kn.DEBUG=kn.DEBUG||this.config.debug,kn.DEBUG&&ge.info("Starting in debug mode",{this:this,config:n,thisC:he({},this.config),p:d,s:f}),!this.config.identity_distinct_id||(o=n.bootstrap)!=null&&o.distinctID||(n.bootstrap=he({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((s=n.bootstrap)==null?void 0:s.distinctID)!==void 0){var g=n.bootstrap.distinctID,m=this.get_distinct_id(),y=this.persistence.get_property(Fr);if(n.bootstrap.isIdentifiedID&&m!=null&&m!==g&&y===Rs)this.identify(g);else if(n.bootstrap.isIdentifiedID&&m!=null&&m!==g&&y===As)ge.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(Ra()),w=n.bootstrap.isIdentifiedID?_:g;this.persistence.set_property(Fr,n.bootstrap.isIdentifiedID?As:Rs),this.register({distinct_id:g,$device_id:w})}}if(h)this.register_once({distinct_id:Mf,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(Ra());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(Fr,Rs)}return Gt(J,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(T,k){var $=T.config.segment;if(!$)return k();(function(z,N){var O=z.config.segment;if(!O)return N();var I=L=>{var G=()=>L.anonymousId()||Ra();z.config.get_device_id=G,L.id()&&(z.register({distinct_id:L.id(),$device_id:G()}),z.persistence.set_property(Fr,As)),N()},j=O.user();"then"in j&&Ii(j.then)?j.then(I):I(j)})(T,(()=>{$.register((z=>{Promise&&Promise.resolve||Ev.warn("This browser does not have Promise support, and can not use the segment integration");var N=(O,I)=>{if(!I)return O;O.event.userId||O.event.anonymousId===z.get_distinct_id()||(Ev.info("No userId set, resetting PostHog"),z.reset()),O.event.userId&&O.event.userId!==z.get_distinct_id()&&(Ev.info("UserId set, identifying with PostHog"),z.identify(O.event.userId)
100);var j=z.calculateEventProperties(I,O.event.properties);return O.event.properties=Object.assign({},j,O.event.properties),O};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:O=>N(O,O.event.event),page:O=>N(O,Hs),identify:O=>N(O,xv),screen:O=>N(O,"$screen")}})(T)).then((()=>{k()}))}))})(this,(()=>this.Wi())):this.Wi(),Ii(this.config._onCapture)&&this.config._onCapture!==pb&&(ge.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(T=>this.config._onCapture(T.event,T)))),this.config.ip&&ge.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}Vi(t){var n,r,o,s,c,d,f,h=performance.now(),g=he({},Tr.__defaultExtensionClasses,this.config.__extensionClasses),m=[];g.featureFlags&&this.Pi.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new g.featureFlags(this)),g.exceptions&&this.Pi.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new g.exceptions(this)),g.historyAutocapture&&this.Pi.push(this.historyAutocapture=new g.historyAutocapture(this)),g.tracingHeaders&&this.Pi.push(new g.tracingHeaders(this)),g.siteApps&&this.Pi.push(this.siteApps=new g.siteApps(this)),g.sessionRecording&&!t&&this.Pi.push(this.sessionRecording=new g.sessionRecording(this)),this.config.disable_scroll_properties||m.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),g.autocapture&&this.Pi.push(this.autocapture=new g.autocapture(this)),g.surveys&&this.Pi.push(this.surveys=(o=this.surveys)!==null&&o!==void 0?o:new g.surveys(this)),g.logs&&this.Pi.push(this.logs=(s=this.logs)!==null&&s!==void 0?s:new g.logs(this)),g.conversations&&this.Pi.push(this.conversations=(c=this.conversations)!==null&&c!==void 0?c:new g.conversations(this)),g.productTours&&this.Pi.push(this.productTours=new g.productTours(this)),g.heatmaps&&this.Pi.push(this.heatmaps=new g.heatmaps(this)),g.webVitalsAutocapture&&this.Pi.push(this.webVitalsAutocapture=new g.webVitalsAutocapture(this)),g.exceptionObserver&&this.Pi.push(this.exceptionObserver=new g.exceptionObserver(this)),g.deadClicksAutocapture&&this.Pi.push(this.deadClicksAutocapture=new g.deadClicksAutocapture(this,C7)),g.toolbar&&this.Pi.push(this.toolbar=(d=this.toolbar)!==null&&d!==void 0?d:new g.toolbar(this)),g.experiments&&this.Pi.push(this.experiments=(f=this.experiments)!==null&&f!==void 0?f:new g.experiments(this)),this.Pi.forEach((y=>{y.initialize&&m.push((()=>{y.initialize==null||y.initialize()}))})),m.push((()=>{if(this.Zi){var y=this.Zi;this.Zi=void 0,this.Rr(y)}})),this.Gi(m,h)}Gi(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,n)}),0);var r=t.shift();if(r)try{r()}catch(s){ge.error("Error initializing extension:",s)}}var o=Math.round(performance.now()-n);this.register_for_session({[S$]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[E$]:o}),this.config.__preview_deferred_init_extensions&&ge.info("PostHog extensions initialized ("+o+"ms)")}Rr(t){var n;if(!me||!me.body)return ge.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Rr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Zi=t),this.Qi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=He(t.supportedCompression,ii.GZipJS)?ii.GZipJS:He(t.supportedCompression,ii.Base64)?ii.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Ni?this.Ni:ob}),this.Pi.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(t)))}Wi(){try{this.config.loaded(this)}catch(r){ge.critical("`loaded` function failed",r)}if(this.Ji(),this.config.internal_or_test_user_hostname&&hn!=null&&hn.hostname){var t=hn.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?t===n:n.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ri())&&this.Ki()}),1),this.Yi=new L$(this),this.Yi.load()}Ji(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Ui)==null||t.enable())}_dom_loaded(){this.is_capturing()&&zf(this.__request_queue,(t=>this.Bi(t))),this.__request_queue=[],this.Ji()}_handle_unload(){var t,n,r,o;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Xi()&&this.capture(wv),(n=this.logs)==null||n.flushLogs("sendBeacon"),(r=this.Ui)==null||r.unload(),(o=this.zi)==null||o.unload()):this.Xi()&&this.capture(wv,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(Z$?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=bp(t.url,{ip:this.config.ip?1:0}),t.headers=he({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,
100(n=>{var r,o,s,c=he({},n);c.timeout=c.timeout||6e4,c.url=lE(c.url,c.compression);var d=(r=c.transport)!==null&&r!==void 0?r:"fetch",f=th.filter((g=>!c.disableTransport||!g.transport||!c.disableTransport.includes(g.transport))),h=(o=(s=(function(g,m){for(var y=0;g.length>y;y++)if(g[y].transport===d)return g[y]})(f))==null?void 0:s.method)!==null&&o!==void 0?o:f[0].method;if(!h)throw new Error("No available transport method");d!=="sendBeacon"&&c.data&&c.compression===ii.GZipJS&&$L&&!sE?B7(c).then((g=>{h(g)})).catch((g=>{if((m=>!(!m||typeof m!="object")&&("name"in m?String(m.name):"")==="NotReadableError")(g))return sE=!0,void h(he({},c,{compression:void 0,url:lE(n.url,void 0)}));h(c)})):h(c)})(he({},t,{callback:n=>{var r,o;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(o=this.config).on_request_error)==null||r.call(o,n),t.callback==null||t.callback(n)}}))))}Bi(t){this.zi?this.zi.retriableRequest(t):this._send_request(t)}_execute_array(t){zv++;try{var n,r=[],o=[],s=[];zf(t,(d=>{d&&(We(n=d[0])?s.push(d):Ii(d)?d.call(this):We(d)&&n==="alias"?r.push(d):We(d)&&n.indexOf("capture")!==-1&&Ii(this[n])?s.push(d):o.push(d))}));var c=function(d,f){zf(d,(function(h){if(We(h[0])){var g=f;gt(h,(function(m){g=g[m[0]].apply(g,m.slice(1))}))}else f[h[0]].apply(f,h.slice(1))}))};c(r,this),c(o,this),c(s,this)}finally{zv--}}push(t){if(zv>0&&We(t)&&Tt(t[0])){var n=Tr.prototype[t[0]];Ii(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,n,r){var o,s,c,d,f;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Ui){if(this.is_capturing())if(!ve(t)&&Tt(t)){var h=!this.config.opt_out_useragent_filter&&this._is_bot();if(!h||this.config.__preview_capture_bot_pageviews){var g=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(g==null||!g.isRateLimited){n!=null&&n.$current_url&&!Tt(n?.$current_url)&&(ge.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),t!=="$exception"||r!=null&&r.en||ge.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 m=new Date,y=r?.timestamp||m,_=Ra(),w={uuid:_,event:t,properties:this.calculateEventProperties(t,n||{},y,_)};t===Hs&&this.config.__preview_capture_bot_pageviews&&h&&(w.event="$bot_pageview",w.properties.$browser_type="bot"),g&&(w.properties.$lib_rate_limit_remaining_tokens=g.remainingTokens),r?.$set&&(w.$set=r?.$set);var S,T,k,$=this.tn(r?.$set_once,t!==X2,t===xv);if($&&(w.$set_once=$),r!=null&&r._noTruncate||(s=this.config.properties_string_max_length,c=w,d=G=>Tt(G)?G.slice(0,s):G,f=new Set,w=(function G(X,D){return X!==Object(X)?d?d(X):X:f.has(X)?void 0:(f.add(X),We(X)?(Z=[],zf(X,(ce=>{Z.push(G(ce))}))):(Z={},gt(X,((ce,H)=>{f.has(ce)||(Z[H]=G(ce))}))),Z);var Z})(c)),w.timestamp=y,ve(r?.timestamp)||(w.properties.$event_time_override_provided=!0,w.properties.$event_time_override_system_time=m),t===Qc.DISMISSED||t===Qc.SENT){var z=n?.[Cv.SURVEY_ID],N=n?.[Cv.SURVEY_ITERATION];(G=>{try{var X=(D=>((Z,ce)=>{var H=""+hb+ce.id;return ce.current_iteration&&ce.current_iteration>0&&(H=""+hb+ce.id+"_"+ce.current_iteration),H})(0,D))(G);if(localStorage.getItem(X))return;localStorage.setItem(X,"true")}catch(D){lt.error("Failed to persist survey seen state",D)}})({id:z,current_iteration:N}),w.$set=he({},w.$set,{[(S={id:z,current_iteration:N},T=t===Qc.SENT?"responded":"dismissed",k="$survey_"+T+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(k="$survey_"+T+"/"+S.id+"/"+S.current_iteration),k)]:!0})}else t===Qc.SHOWN&&(w.$set=he({},w.$set,{[Cv.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===D7.SHOWN){var O=n?.[tE.TOUR_TYPE];O&&(w.$set=he({},w.$set,{[tE.TOUR_LAST_SEEN_DATE+"/"+O]:new Date().toISOString()}))}var I=he({},w.properties.$set,w.$set);if(Gs(I)||this.setPersonPropertiesForFlags(I),!Be(this.config.before_send)){var j=this.rn(w);if(!j)return;w=j}this.Li.emit("eventCaptured",w);var L={method:"POST",url:(o=r?._url)!==null&&o!==void 0?o:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:w,compression:"best-available",batchKey:r?._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Bi(L):this.Ui.enqueue(L),w}ge.critical("This capture call is ignored due to client rate limiting.")}}else ge.error("No event name provided to posthog.capture")}else ge.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(n=>t(n.event,n)))}calculateEventProperties(t,n,r,o,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var c=s?void 0:this.persistence.remove_event_timer(t),d=he({},n);if(d.token=this.config.token,d.$config_defaults=this.config.defaults,this.Ri()&&(d.$cookieless_mode=!0),t==="$snapshot"){var f=he({},this.persistence.properties(),this.sessionPersistence.properties());return d.distinct_id=f.distinct_id,(!Tt(d.distinct_id)&&!Ar(d.distinct_id)||Kf(d.distinct_id))&&ge.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),d}var h,g=(function(k,$){var z,N,O,I;if(!jn)return{};var j,L,G,X,D,Z,ce,H,ae=k?[..._l,...$||[]]:[],[E,R]=(function(A){for(var q=0;V2.length>q;q++){var[te,M]=V2[q],U=te.exec(A),Y=U&&(Ii(M)?M(U,A):M);if(Y)return Y}return["",""]})(jn);return Mt(A0({$os:E,$os_version:R,$browser:d$(jn,navigator.vendor),$device:G2(jn),$device_type:(L=jn,G={userAgentDataPlatform:(z=navigator)==null||(z=z.userAgentData)==null?void 0:z.platform,maxTouchPoints:(N=navigator)==null?void 0:N.maxTouchPoints,screenWidth:J==null||(O=J.screen)==null?void 0:O.width,screenHeight:J==null||(I=J.screen)==null?void 0:I.height,devicePixelRatio:J?.devicePixelRatio},H=G2(L),H===KC||H===WC||H==="Kobo"||H==="Kindle Fire"||H===u$?vl:H===xu||H===il||H===Su||H===Fy?"Console":H===JC?"Wearable":H?ar:G?.userAgentDataPlatform==="Android"&&((X=G?.maxTouchPoints)!==null&&X!==void 0?X:0)>0?600>Math.min((D=G?.screenWidth)!==null&&D!==void 0?D:0,(Z=G?.screenHeight)!==null&&Z!==void 0?Z:0)/((ce=G?.devicePixelRatio)!==null&&ce!==void 0?ce:1)?ar:vl:"Desktop"),$timezone:P$(),$timezone_offset:O7()}),{$current_url:Eu(hn?.href,ae,ku),$host:hn?.host,$pathname:hn?.pathname,$raw_user_agent:jn.length>1e3?jn.substring(0,997)+"...":jn,$browser_version:qL(jn,navigator.vendor),$browser_language:eE(),$browser_language_prefix:(j=eE(),typeof j=="string"?j.split("-")[0]:void 0),$screen_height:J?.screen.height,$screen_width:J?.
100screen.width,$viewport_height:J?.innerHeight,$viewport_width:J?.innerWidth,$lib:kn.LIB_NAME,$lib_version:kn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:m,windowId:y}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());d.$session_id=m,d.$window_id=y}this.sessionPropsManager&&Mt(d,this.sessionPropsManager.getSessionProps());try{var _;this.sessionRecording&&Mt(d,this.sessionRecording.sdkDebugProperties),d.$sdk_debug_retry_queue_size=(_=this.zi)==null?void 0:_.length}catch(k){d.$sdk_debug_error_capturing_properties=String(k)}if(this.requestRouter.region===fb&&(d.$lib_custom_api_host=this.config.api_host),h=t!==Hs||s?t!==wv||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,o),d=Mt(d,h),t===Hs&&me&&(d.title=me.title),!ve(c)){var w=r.getTime()-c;d.$duration=parseFloat((w/1e3).toFixed(3))}jn&&this.config.opt_out_useragent_filter&&(d.$browser_type=this._is_bot()?"bot":"browser"),(d=Mt({},g,this.persistence.properties(),this.sessionPersistence.properties(),d)).$is_identified=this._isIdentified(),We(this.config.property_denylist)?gt(this.config.property_denylist,(function(k){delete d[k]})):ge.error(Y$+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(ge.error(pE),d=S(d,t));var T=this.nn();return d.$process_person_profile=T,T&&!s&&this.sn("_calculate_event_properties"),d}tn(t,n,r){var o;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.nn()||this.Oi&&!r)return t;var s=this.persistence.get_initial_props(),c=(o=this.sessionPropsManager)==null?void 0:o.getSetOnceProps(),d=Mt({},s,c||{},t||{}),f=this.config.sanitize_properties;return f&&(ge.error(pE),d=f(d,"$set_once")),n&&(this.Oi=!0),Gs(d)?void 0:d}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var o;(o=this.persistence)==null||o.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}an(t,n){this.register({[t]:n})}getFeatureFlag(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(t)}getFeatureFlagResult(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(t,n)}isFeatureEnabled(t,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(t,n)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,n,r){var o;(o=this.featureFlags)==null||o.updateFlags(t,n,r)}updateEarlyAccessFeatureEnrollment(t,n,r){var o;(o=this.featureFlags)==null||o.updateEarlyAccessFeatureEnrollment(t,n,r)}getEarlyAccessFeatures(t,n,r){var o;return n===void 0&&(n=!1),(o=this.featureFlags)==null?void 0:o.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.Li.on(t,n)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Dc}),()=>{})}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(t,n):t([],{isLoaded:!1,error:Dc})}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,n):t([],{isLoaded:!1,error:Dc})}renderSurvey(t,n){var r;(r=this.surveys)==null||r.renderSurvey(t,n)}displaySurvey(t,n){var r;n===void 0&&(n=Q7),(r=this.surveys)==null||r.displaySurvey(t,n)}cancelPendingSurvey(t){var n;(n=this.surveys)==null||n.cancelPendingSurvey(t)}canRenderSurvey(t){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(t))!==null&&n!==void 0?n:{visible:!1,disabledReason:Dc}}canRenderSurveyAsync(t,n){var r,o;return n===void 0&&(n=!1),(r=(o=this.surveys)==null?void 0:o.canRenderSurveyAsync(t,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:Dc})}un(t){return!t||Kf(t)?(ge.critical("Unique user id has not been set in posthog.identify"),!1):t===Mf?(ge.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(ge.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
100ot a hardcoded string.'),!1)}identify(t,n,r){if(!this.__loaded||!this.persistence)return ge.uninitializedWarning("posthog.identify");if(Ar(t)&&(t=t.toString(),ge.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.un(t)&&this.sn("posthog.identify")){var o=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Mh)||this.register_once({$had_persisted_distinct_id:!0,$device_id:o},""),t!==o&&t!==this.get_property(Yc)&&(this.unregister(Yc),this.register({distinct_id:t}));var s,c=(this.persistence.get_property(Fr)||Rs)===Rs;t!==o&&c?(this.persistence.set_property(Fr,As),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture(xv,{distinct_id:t,$anon_distinct_id:o},{$set:n||{},$set_once:r||{}}),this.$i=dE(t,n,r),(s=this.featureFlags)==null||s.setAnonymousDistinctId(o)):(n||r)&&this.setPersonProperties(n,r),t!==o&&(this.reloadFeatureFlags(),this.unregister(au))}}setPersonProperties(t,n){if((t||n)&&this.sn("posthog.setPersonProperties")){var r=dE(this.get_distinct_id(),t,n);this.$i!==r?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!0),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.$i=r):ge.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){var o=this.getGroups(),s=o[t]!==n;if(s&&this.resetGroupPropertiesForFlags(t),this.register({$groups:he({},o,{[t]:n})}),s||r){var c={$group_type:t,$group_key:n};r&&(c.$group_set=r),this.capture(X2,c)}r&&this.setGroupPropertiesForFlags({[t]:r}),s&&!r&&this.reloadFeatureFlags()}else ge.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(t,n))}resetGroupPropertiesForFlags(t){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(t)}reset(t){var n,r,o,s,c,d,f,h;if(ge.info("reset"),!this.__loaded)return ge.uninitializedWarning("posthog.reset");var g=this.get_property(Mh);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),(o=this.surveys)==null||o.reset(),(s=this.Yi)==null||s.stop(),(c=this.featureFlags)==null||c.reset(),(d=this.conversations)==null||d.reset(),(f=this.persistence)==null||f.set_property(Fr,Rs),(h=this.sessionManager)==null||h.resetSessionId(),this.$i=null,this.config.cookieless_mode===ji)this.register_once({distinct_id:Mf,$device_id:null},"");else{var m=this.config.get_device_id(Ra());this.register_once({distinct_id:m,$device_id:t?m:g},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,n){var r;this.config.identity_distinct_id=t,this.config.identity_hash=n,this.alias(t),(r=this.conversations)==null||r.ln()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),o=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var s,c=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return o;o+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-c,0)}return o}alias(t,n){return t===this.get_property(v$)?(ge.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(ve(n)&&(n=this.get_distinct_id()),t!==n?(this.an(Yc,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(ge.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=he({},this.config);if(jt(t)){var r,o,s,c,d,f,h,g,m,y;Mt(this.config,gE(t));var _=this.Hi();(r=this.persistence)==null||r.update_config(this.config,n,_),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new kv(he({},this.config,{persistence:"sessionStorage"}),_);var w=this.Di(this.config.debug);si(w)&&(this.config.debug=w),si(this.config.debug)&&(this.config.debug?(kn.DEBUG=!0,kt.R()&&kt.N("ph_debug",!0),ge.info("set_config",{config:t,oldConfig:n,newConfig:he({},this.config)})):(kn.DEBUG=!1,kt.R()&&kt.q("ph_debug"))),(o=this.exceptionObserver)==null||o.onConfigChange(),(s=this.exceptions)==null||s.onConfigChange(),(c=this.sessionRecording)==null||c.startIfEnabledOrStop(),(d=this.autocapture)==null||d.startIfEnabled(),(f=this.heatmaps)==null||f.startIfEnabled(),(h=this.exceptionObserver)==null||h.startIfEnabledOrStop(),(g=this.deadClicksAutocapture)==null||g.startIfEnabledOrStop(),(m=this.surveys)==null||m.loadIfEnabled(),this.cn(),(y=this.externalIntegrations)==null||y.startIfEnabledOrStop()}}_overrideSDKInfo(t,n){kn.LIB_NAME=t,kn.LIB_VERSION=n}startSessionRecording(t){var n,r,o,s,c,d=t===!0,f={sampling:d||!(t==null||!t.sampling),linked_flag:d||!(t==null||!t.linked_flag),url_trigger:d||!(t==null||!t.url_trigger),event_trigger:d||!(t==null||!t.event_trigger)};Object.values(f).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),f.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),f.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),f.url_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("url")),f.event_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),o=this.exceptions.buildProperties(t,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(he({},o,n))}}addExceptionStep(t,n){var r;(r=this.exceptions)==null||r.addExceptionStep(t,n)}captureLog(t){var n;(n=this.logs)==null||n.captureLog(t)}get logger(){var t,n;return(t=(n=this.logs)==null?void 0:n.logger)!==null&&t!==void 0?t:Tr.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(t))!==null&&n!==void 0&&n}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:Bs;return n!==Bs&&(n=Bs+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(Fr))===As||((n=this.sessionPersistence)==null?void 0:n.get_property(Fr))===As}nn(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===ob&&!this._isIdentified()&&Gs(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Yc])&&((n=this.persistence)==null||(n=n.props)==null||!n[Dh]))}Xi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(ge.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(Dh,!0),!0)}Hi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==mo)}cn(){var t,n,r,o,s=this.Hi();return((t=this.persistence)==null?void 0:t._r)!==s&&((r=this.persistence)==null||r.set_disabled(s)),((n=this.sessionPersistence)==null?void 0:n._r)!==s&&((o=this.sessionPersistence)==null||o.set_disabled(s)),s}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==ji){if(this.Ri()){var r,o,s,c,d;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(o=this.pageViewM
100anager)==null||o.destroy(),this.sessionManager=new uE(this),this.pageViewManager=new J2(this),this.persistence&&(this.sessionPropsManager=new cE(this,this.sessionManager,this.persistence));var f,h=(s=(c=this.config.__extensionClasses)==null?void 0:c.sessionRecording)!==null&&s!==void 0?s:(d=Tr.__defaultExtensionClasses)==null?void 0:d.sessionRecording;h&&(this.sessionRecording=this.Mi(this.sessionRecording,new h(this)),this.Qi&&((f=this.sessionRecording)==null||f.onRemoteConfig==null||f.onRemoteConfig(this.Qi)))}var g,m;this.consent.optInOut(!0),this.cn(),this.Ji(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==mo&&((g=this.surveys)==null||g.loadIfEnabled()),(ve(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((m=t?.captureEventName)!==null&&m!==void 0?m:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ki()}else ge.warn(hE)}opt_out_capturing(){var t,n,r;this.config.cookieless_mode!==ji?(this.config.cookieless_mode===mo&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===mo&&(this.register({distinct_id:Mf,$device_id:null}),(t=this.sessionRecording)==null||t.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.Ki())):ge.warn(hE)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===ji||(this.config.cookieless_mode===mo?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return ir?q$(ir,this.config.custom_blocked_useragents):void 0}Ki(){me&&(me.visibilityState==="visible"?this.Fi||(this.Fi=!0,this.capture(Hs,{title:me.title},{send_instantly:!0}),this.Ai&&(me.removeEventListener(Ph,this.Ai),this.Ai=null)):this.Ai||(this.Ai=this.Ki.bind(this),Gt(me,Ph,this.Ai)))}debug(t){t===!1?(J?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(J?.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}))}Lr(){var t,n,r,o,s,c,d=this.qi||{};return"advanced_disable_flags"in d?!!d.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(ge.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):(r="advanced_disable_decide",o=ge,s=(n="advanced_disable_flags")in(t=d)&&!Be(t[n]),c=r in t&&!Be(t[r]),s?t[n]:!!c&&(o&&o.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[r]))}rn(t){if(Be(this.config.before_send))return t;var n=We(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var o of n){if(r=o(r),Be(r)){var s="Event '"+t.event+"' was rejected in beforeSend function";return zL(t.event)?ge.warn(s+". This can cause unexpected behavior."):ge.info(s),null}r.properties&&!Gs(r.properties)||ge.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}Di(t){var n=si(t)&&!t,r=kt.R()&&kt.A("ph_debug")==="true";return!n&&(!!r||t)}}Tr.__defaultExtensionClasses={},Tr.dn={trace:zs=()=>{},debug:zs,info:zs,warn:zs,error:zs,fatal:zs},(function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=g7(e.prototype[t[n]])})(Tr,["identify"]);
vendor: 4,371 bytes, line 100
100var iF=1,aF=3,oF=11;function vE(e){return e instanceof Element&&(e.id===x$||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Mo(e){return!!e&&e.nodeType===iF}function Br(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function X$(e){return!!e&&e.nodeType===aF}function W$(e){return!!e&&e.nodeType===oF&&Mo(e.host)}function N0(e){return e?vp(e).split(/\s+/):[]}function yE(e){var t=J?.location.href;return!!(t&&e&&e.some((n=>t.match(n))))}function Vh(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 N0(t)}function K$(e){return Be(e)?null:vp(e).split(/(\s+)/).filter((t=>lu(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Tu(e){var t="";return gb(e)&&!J$(e)&&e.childNodes&&e.childNodes.length&>(e.childNodes,(function(n){var r;X$(n)&&n.textContent&&(t+=(r=K$(n.textContent))!==null&&r!==void 0?r:"")})),vp(t)}function bE(e){return ve(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var D0=["a","button","form","input","select","textarea","label"];function _E(e,t){if(ve(t))return!0;var n,r=function(s){if(t.some((c=>s.matches(c))))return{v:!0}};for(var o of e)if(n=r(o))return n.v;return!1}function Q$(e){var t=e.parentNode;return!(!t||!Mo(t))&&t}var sF=["next","previous","prev",">","<"],wE=[".ph-no-rageclick",".ph-no-capture"],mb=e=>!e||Br(e,"html")||!Mo(e),xE=(e,t)=>{if(!J||mb(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],o=e;o.parentNode&&!Br(o,"body");)if(W$(o.parentNode))r.push(o.parentNode.host),o=o.parentNode.host;else{var s=Q$(o);if(!s)break;if(t||D0.indexOf(s.tagName.toLowerCase())>-1)n=!0;else{var c=J.getComputedStyle(s);c&&c.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(s),o=s}return{parentIsUsefulElement:n,targetElementList:r}};function gb(e){for(var t=e;t.parentNode&&!Br(t,"body");t=t.parentNode){var n=Vh(t);if(He(n,"ph-sensitive")||He(n,"ph-no-capture"))return!1}if(He(Vh(e),"ph-include"))return!0;var r=e.type||"";if(Tt(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var o=e.name||e.id||"";return!Tt(o)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,""))}function J$(e){return!!(Br(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Br(e,"select")||Br(e,"textarea")||e.getAttribute("contenteditable")==="true")}var e4="(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})",lF=new RegExp("^(?:"+e4+")$"),cF=new RegExp(e4),t4="\\d{3}-?\\d{2}-?\\d{4}",uF=new RegExp("^("+t4+")$"),dF=new RegExp("("+t4+")");function lu(e,t){return t===void 0&&(t=!0),!(Be(e)||Tt(e)&&(e=vp(e),(t?lF:cF).test((e||"").replace(/[- ]/g,""))||(t?uF:dF).test(e)))}function SE(e){var t=Tu(e);return lu(t=(t+" "+n4(e)).trim())?t:""}function n4(e){var t="";return e&&e.childNodes&&e.childNodes.length&>(e.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var o=Tu(n);t=(t+" "+o).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+n4(n)).trim())}catch(s){ge.error("[AutoCapture]",s)}})),t}function EE(e){return e.replace(/"|\\"/g,'\\"')}function fF(e){var t=e.attr__class;return t?We(t)?t:N0(t):void 0}class kE{constructor(t){this.disabled=t===!1;var n=jt(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,r){if(this.disabled)return!1;var o=this.clicks[this.clicks.length-1];if(o&&Math.abs(t-o.x)+Math.abs(n-o.y)<this.thresholdPx&&this.timeoutMs>r-o.timestamp){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var Ov="$copy_autocapture",Nv=xt("[AutoCapture]");function Dv(e,t){return t.length>e?t.slice(0,e)+"...":t}function hF(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Mo(t));return t}function pF(e,t){var n,r,{e:o,maskAllElementAttributes:s,maskAllText:c,elementAttributeIgnoreList:d,elementsC
100hainAsString:f}=t;if(!Mo(e))return{props:{}};for(var h=[e],g=e;g.parentNode&&!Br(g,"body");)if(W$(g.parentNode))h.push(g.parentNode.host),g=g.parentNode.host;else{if(!Mo(g.parentNode))break;h.push(g.parentNode),g=g.parentNode}var m,y,_=[],w={},S=!1,T=!1;if(gt(h,(O=>{var I=gb(O);if(Br(O,"a")){var j=O.getAttribute("href");S=I&&!!j&&lu(j)&&j}He(Vh(O),"ph-no-capture")&&(T=!0),_.push((function(G,X,D,Z){var ce=G.tagName.toLowerCase(),H={tag_name:ce};D0.indexOf(ce)>-1&&!D&&(H.$el_text=ce.toLowerCase()==="a"||ce.toLowerCase()==="button"?Dv(1024,SE(G)):Dv(1024,Tu(G)));var ae=Vh(G);ae.length>0&&(H.classes=ae.filter((function(q){return q!==""}))),gt(G.attributes,(function(q){var te;if((!J$(G)||["name","id","class","aria-label"].indexOf(q.name)!==-1)&&(Z==null||!Z.includes(q.name))&&!X&&lu(q.value)&&(!Tt(te=q.name)||te.substring(0,10)!=="_ngcontent"&&te.substring(0,7)!=="_nghost")){var M=q.value;q.name==="class"&&(M=N0(M).join(" ")),H["attr__"+q.name]=Dv(1024,M)}}));for(var E=1,R=1,A=G;A=hF(A);)E++,A.tagName===G.tagName&&R++;return H.nth_child=E,H.nth_of_type=R,H})(O,s,c,d));var L=(function(G){if(!gb(G))return{};var X={};return gt(G.attributes,(function(D){if(D.name&&D.name.indexOf("data-ph-capture-attribute")===0){var Z=D.name.replace("data-ph-capture-attribute-",""),ce=D.value;Z&&ce&&lu(ce)&&(X[Z]=ce)}})),X})(O);Mt(w,L)})),T)return{props:{},explicitNoCapture:T};if(c||(_[0].$el_text=Br(e,"a")||Br(e,"button")?SE(e):Tu(e)),S){var k,$;_[0].attr__href=S;var z=(k=Ih(S))==null?void 0:k.host,N=J==null||($=J.location)==null?void 0:$.host;z&&N&&z!==N&&(m=S)}return{props:Mt({$event_type:o.type,$ce_version:1},f?{}:{$elements:_},{$elements_chain:(y=_,(function(O){return O.map((I=>{var j,L,G="";if(I.tag_name&&(G+=I.tag_name),I.attr_class)for(var X of(I.attr_class.sort(),I.attr_class))G+="."+X.replace(/"/g,"");var D=he({},I.text?{text:I.text}:{},{"nth-child":(j=I.nth_child)!==null&&j!==void 0?j:0,"nth-of-type":(L=I.nth_of_type)!==null&&L!==void 0?L:0},I.href?{href:I.href}:{},I.attr_id?{attr_id:I.attr_id}:{},I.attributes),Z={};return eh(D).sort(((ce,H)=>{var[ae]=ce,[E]=H;return ae.localeCompare(E)})).forEach((ce=>{var[H,ae]=ce;return Z[EE(H.toString())]=EE(ae.toString())})),(G+=":")+eh(Z).map((ce=>{var[H,ae]=ce;return H+'="'+ae+'"'})).join("")})).join(";")})((function(O){return O.map((I=>{var j,L,G={text:(j=I.$el_text)==null?void 0:j.slice(0,400),tag_name:I.tag_name,href:(L=I.attr__href)==null?void 0:L.slice(0,2048),attr_class:fF(I),attr_id:I.attr__id,nth_child:I.nth_child,nth_of_type:I.nth_of_type,attributes:{}};return eh(I).filter((X=>{var[D]=X;return D.indexOf("attr__")===0})).forEach((X=>{var[D,Z]=X;return G.attributes[D]=Z})),G}))})(y)))},(n=_[0])!=null&&n.$el_text?{$el_text:(r=_[0])==null?void 0:r.$el_text}:{},m&&o.type==="click"?{$external_click_url:m}:{},w)}}var Pc=xt("[ExceptionAutocapture]");function TE(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],o=n(r);return Ii(o)&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}var mF=xt("[TracingHeaders]"),xa=xt("[Web Vitals]"),CE=9e5,$E="disabled",RE="lazy_loading",Lc="awaiting_config",Lf="missing_config";xt("[SessionRecording]"),xt("[SessionRecording]");var vb="[SessionRecording]",Sa=xt(vb),gF=xt("[Heatmaps]");function AE(e){return jt(e)&&"clientX"in e&&"clientY"in e&&Ar(e.clientX)&&Ar(e.clientY)}var ME=xt("[Product Tours]"),vF=["$set_once","$set"],Ea=xt("[SiteApps]"),zE="Error while initializing PostHog app with config id ";function Os(e,t,n){if(Be(e))return!1;switch(n){case"exact":return e===t;case"contains":var r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class yF{constructor(t){this.vn=new O0,this.fn=(n,r)=>this.pn(n,r)&&this.gn(n,r)&&this.mn(n,r)&&this.yn(n,r),this.pn=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,n;ve((t=this._instance)==null?void 0:t._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((r,o)=>{this.on(r,o)}))}register(t){var n,r;
100if(!ve((n=this._instance)==null?void 0:n._addCaptureHook)&&(t.forEach((c=>{var d,f;(d=this._n)==null||d.add(c),(f=c.steps)==null||f.forEach((h=>{var g;(g=this.bn)==null||g.add(h?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var o,s=new Set;t.forEach((c=>{var d;(d=c.steps)==null||d.forEach((f=>{f!=null&&f.selector&&s.add(f?.selector)}))})),(o=this._instance)==null||o.autocapture.setElementSelectors(s)}}on(t,n){var r;n!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(n?.event))&&this._n&&((r=this._n)==null?void 0:r.size)>0&&this._n.forEach((o=>{this.wn(n,o)&&this.vn.emit("actionCaptured",o.name)}))}xn(t){this.onAction("actionCaptured",(n=>t(n)))}wn(t,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.fn(t,r))return!0;return!1}onAction(t,n){return this.vn.on(t,n)}gn(t,n){if(n!=null&&n.url){var r,o=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!o||typeof o!="string"||!Os(o,n.url,n.url_matching||"contains"))return!1}return!0}mn(t,n){return!!this.Sn(t,n)&&!!this.kn(t,n)&&!!this.Cn(t,n)}Sn(t,n){var r;if(n==null||!n.href)return!0;var o=this.In(t);if(o.length>0)return o.some((d=>Os(d.href,n.href,n.href_matching||"exact")));var s,c=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!c&&Os((s=c.match(/(?::|")href="(.*?)"/))?s[1]:"",n.href,n.href_matching||"exact")}kn(t,n){var r;if(n==null||!n.text)return!0;var o=this.In(t);if(o.length>0)return o.some((h=>Os(h.text,n.text,n.text_matching||"exact")||Os(h.$el_text,n.text,n.text_matching||"exact")));var s,c,d,f=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!f&&(s=(function(h){for(var g,m=[],y=/(?::|")text="(.*?)"/g;!Be(g=y.exec(h));)m.includes(g[1])||m.push(g[1]);return m})(f),c=n.text,d=n.text_matching||"exact",s.some((h=>Os(h,c,d))))}Cn(t,n){var r,o;if(n==null||!n.selector)return!0;var s=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(s!=null&&s.includes(n.selector))return!0;var c=(t==null||(o=t.properties)==null?void 0:o.$elements_chain)||"";if(n.selector_regex&&c)try{return new RegExp(n.selector_regex).test(c)}catch{return!1}return!1}In(t){var n;return(t==null||(n=t.properties)==null?void 0:n.$elements)==null?[]:t?.properties.$elements}yn(t,n){return n==null||!n.properties||n.properties.length===0||G$(n.properties.reduce(((r,o)=>{var s=We(o.value)?o.value.map(String):o.value!=null?[String(o.value)]:[];return r[o.key]={values:s,operator:o.operator||"exact"},r}),{}),t?.properties)}}class bF{constructor(t){this._instance=t,this.Tn=new Map,this.En=new Map,this.Mn=new Map}Pn(t,n){return!!t&&G$(t.propertyFilters,n?.properties)}Rn(t,n){var r=new Map;return t.forEach((o=>{var s;(s=o.conditions)==null||(s=s[n])==null||(s=s.values)==null||s.forEach((c=>{if(c!=null&&c.name){var d=r.get(c.name)||[];d.push(o.id),r.set(c.name,d)}}))})),r}On(t,n,r){var o=(r===Mc.Activation?this.Tn:this.En).get(t),s=[];return this.Ln((c=>{s=c.filter((d=>o?.includes(d.id)))}
100)),s.filter((c=>{var d,f=(d=c.conditions)==null||(d=d[r])==null||(d=d.values)==null?void 0:d.find((h=>h.name===t));return this.Pn(f,n)}))}register(t){var n;ve((n=this._instance)==null?void 0:n._addCaptureHook)||(this.Fn(t),this.An(t))}An(t){var n=t.filter((r=>{var o,s;return((o=r.conditions)==null?void 0:o.actions)&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));n.length!==0&&(this.Nn==null&&(this.Nn=new yF(this._instance),this.Nn.init(),this.Nn.xn((r=>{this.onAction(r)}))),n.forEach((r=>{var o,s,c,d,f;r.conditions&&(o=r.conditions)!=null&&o.actions&&(s=r.conditions)!=null&&(s=s.actions)!=null&&s.values&&((c=r.conditions)==null||(c=c.actions)==null||(c=c.values)==null?void 0:c.length)>0&&((d=this.Nn)==null||d.register(r.conditions.actions.values),(f=r.conditions)==null||(f=f.actions)==null||(f=f.values)==null||f.forEach((h=>{if(h&&h.name){var g=this.Mn.get(h.name);g&&g.push(r.id),this.Mn.set(h.name,g||[r.id])}})))})))}Fn(t){var n,r=t.filter((s=>{var c,d;return((c=s.conditions)==null?void 0:c.events)&&((d=s.conditions)==null||(d=d.events)==null||(d=d.values)==null?void 0:d.length)>0})),o=t.filter((s=>{var c,d;return((c=s.conditions)==null?void 0:c.cancelEvents)&&((d=s.conditions)==null||(d=d.cancelEvents)==null||(d=d.values)==null?void 0:d.length)>0}));r.length===0&&o.length===0||((n=this._instance)==null||n._addCaptureHook(((s,c)=>{this.onEvent(s,c)})),this.Tn=this.Rn(t,Mc.Activation),this.En=this.Rn(t,Mc.Cancellation))}onEvent(t,n){var r,o=this.le(),s=this.$n(),c=this.Dn(),d=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[s])||[];if(c===t&&n&&d.length>0){var f,h;o.info("event matched, removing item from activated items",{event:t,eventPayload:n,existingActivatedItems:d});var g=(n==null||(f=n.properties)==null?void 0:f.$survey_id)||(n==null||(h=n.properties)==null?void 0:h.$product_tour_id);if(g){var m=d.indexOf(g);0>m||(d.splice(m,1),this.qn(d))}}else{if(this.En.has(t)){var y=this.On(t,n,Mc.Cancellation);y.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:y.map((w=>w.id))}),y.forEach((w=>{var S=d.indexOf(w.id);0>S||d.splice(S,1),this.jn(w.id)})),this.qn(d))}if(this.Tn.has(t)){o.info("event name matched",{event:t,eventPayload:n,items:this.Tn.get(t)});var _=this.On(t,n,Mc.Activation);this.qn(d.concat(_.map((w=>w.id))||[]))}}}onAction(t){var n,r=this.$n(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.Mn.has(t)&&this.qn(o.concat(this.Mn.get(t)||[]))}qn(t){var n=this.le(),r=[...new Set(t)].filter((o=>!this.Hn(o)));n.info("updating activated items",{activatedItems:r}),this.Un(r)}getActivatedIds(){var t,n=this.$n();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[]}getEventToItemsMap(){return this.Tn}Bn(){return this.Nn}}class _F extends bF{constructor(t){super(t)}$n(){return Jy}Dn(){return Qc.SHOWN}Ln(t){var n;(n=this._instance)==null||n.getSurveys(t)}jn(t){var n;(n=this._instance)==null||n.cancelPendingSurvey(t)}le(){return lt}Un(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[Jy]:t})}Hn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var Pv="SDK is not enabled or survey functionality is not yet loaded",OE="Disabled. Not loading surveys.",wF=J!=null&&J.location?Uh(J.location.hash,"__posthog")||Uh(location.hash,"state"):null,NE="_postHogToolbarParams",DE=xt("[Toolbar]"),xn=xt("[FeatureFlags]"),lo=xt("[FeatureFlags]",{debugEnabled:!0}),Lv=`" failed. Feature flags didn't load in time.`,PE=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},LE=e=>{var t={};for(var[n,r]of eh(e||{}))r&&(t[n]=r);return t},Ni=xt("[Error tracking]"),FE="Refusing to render web experiment since the viewer is a likely bot",xF={icontains:(e,t)=>!!J&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!J&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!J&&qh(t.href,e),not_regex:(e,t)=>!!J&&!qh(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class yn{get qt(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((o=>{yn.zn("retrieved web experiments from the server"),n.Vn=new Map,o.forEach((s=>
100{if(s.feature_flag_key){var c;n.Vn&&(yn.zn("setting flag key ",s.feature_flag_key," to web experiment ",s),(c=n.Vn)==null||c.set(s.feature_flag_key,s));var d=n._instance.getFeatureFlag(s.feature_flag_key);Tt(d)&&s.variants[d]&&n.Wn(s.name,d,s.variants[d].transforms)}else if(s.variants)for(var f in s.variants){var h=s.variants[f];yn.Zn(h)&&n.Wn(s.name,f,h.transforms)}}))}),r)},this._instance=t,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())yn.zn(FE);else if(!this.qt.disable_web_experiments){if(Be(this.Vn))return this.Vn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();yn.zn("applying feature flags",t),t.forEach((n=>{var r;if(this.Vn&&(r=this.Vn)!=null&&r.has(n)){var o,s=this._instance.getFeatureFlag(n),c=(o=this.Vn)==null?void 0:o.get(n);s&&c!=null&&c.variants[s]&&this.Wn(c.name,s,c.variants[s].transforms)}}))}}previewWebExperiment(){var t=yn.getWindowLocation();if(t!=null&&t.search){var n=jh(t?.search,"__experiment_id"),r=jh(t?.search,"__experiment_variant");n&&r&&(yn.zn("previewing web experiments "+n+" && "+r),this.getWebExperiments((o=>{this.Gn(parseInt(n),r,o)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this.qt.disable_web_experiments&&!r)return t([]);var o=this._instance.get_property("$web_experiments");if(o&&!n)return t(o);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:s=>t(s.statusCode===200&&s.json&&s.json.experiments||[])})}Gn(t,n,r){var o=r.filter((s=>s.id===t));o&&o.length>0&&(yn.zn("Previewing web experiment ["+o[0].name+"] with variant ["+n+"]"),this.Wn(o[0].name,n,o[0].variants[n].transforms))}static Zn(t){return!Be(t.conditions)&&yn.Qn(t)&&yn.Jn(t)}static Qn(t){var n;if(Be(t.conditions)||Be((n=t.conditions)==null?void 0:n.url))return!0;var r,o,s,c=yn.getWindowLocation();return!!c&&((r=t.conditions)==null||!r.url||xF[(o=(s=t.conditions)==null?void 0:s.urlMatchType)!==null&&o!==void 0?o:"icontains"](t.conditions.url,c))}
100static getWindowLocation(){return J?.location}static Jn(t){var n;if(Be(t.conditions)||Be((n=t.conditions)==null?void 0:n.utm))return!0;var r=A$();if(r.utm_source){var o,s,c,d,f,h,g,m,y=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_campaign||((s=t.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,_=(c=t.conditions)==null||(c=c.utm)==null||!c.utm_source||((d=t.conditions)==null||(d=d.utm)==null?void 0:d.utm_source)==r.utm_source,w=(f=t.conditions)==null||(f=f.utm)==null||!f.utm_medium||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_medium)==r.utm_medium,S=(g=t.conditions)==null||(g=g.utm)==null||!g.utm_term||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_term)==r.utm_term;return y&&w&&S&&_}return!1}static zn(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];ge.info("[WebExperiments] "+t,r)}Wn(t,n,r){this._is_bot()?yn.zn(FE):n!=="control"?r.forEach((o=>{if(o.selector){var s;yn.zn("applying transform of variant "+n+" for experiment "+t+" ",o);var c=(s=document)==null?void 0:s.querySelectorAll(o.selector);c?.forEach((d=>{var f=d;o.html&&(f.innerHTML=o.html),o.css&&f.setAttribute("style",o.css)}))}})):yn.zn("Control variants leave the page unmodified.")}_is_bot(){return ir&&this._instance?q$(ir,this.qt.custom_blocked_useragents):void 0}}var _r=xt("[Conversations]"),co="Conversations not available yet.",_p={featureFlags:class{constructor(e){this.Kn=!1,this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}us(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.qt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}ls(){return!!this.us()&&(this.ss||this.Xn||(this.ss=!0,xn.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.qt.evaluation_contexts)!==null&&e!==void 0?e:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.ns||(xn.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||xn.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:n}=this._instance,r=(e=(t=n.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(r).length){var o,s,c=(o=(s=n.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&o!==void 0?o:{},d=Object.keys(r).filter((h=>!!r[h])).reduce(((h,g)=>(h[g]=r[g]||!1,h)),{}),f=Object.keys(c).filter((h=>d[h])).reduce(((h,g)=>(c[g]&&(h[g]=c[g]),h)),{});this.receivedFeatureFlags({featureFlags:d,featureFlagPayloads:f})}}updateFlags(e,t,n){var r=n!=null&&n.merge?this.getFlagVariants():{},o=n!=null&&n.merge?this.getFlagPayloads():{},s=he({},r,e),c=he({},o,t),d={};for(var[f,h]of Object.entries(s)){var g=typeof h=="string";d[f]={key:f,enabled:!!g||!!h,variant:g?h:void 0,reason:void 0,metadata:ve(c?.[f])?void 0:{id:0,version:void 0,description:void 0,payload:c[f]}}}this.receivedFeatureFlags({flags:d})}get hasLoadedFlags(){return this.Yn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(Xy),t=this.os(Pi),n=this.os(Us);if(!n&&!t)return e||{};var r=Mt({},e||{}),o=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var s of o){var c,d,f=r[s],h=t?.[s],g=ve(h)?(c=f?.enabled)!==null&&c!==void 0&&c:!!h,m=ve(h)?f.variant:typeof h=="string"?h:void 0,y=n?.[s],_=he({},f,{enabled:g,variant:g?m??f?.variant:void 0});g!==f?.enabled&&(_.original_enabled=f?.enabled),m!==f?.variant&&(_.original_variant=f?.variant),y&&(_.metadata=he({},f?.metadata,{payload:y,original_payload:f==null||(d=f.metadata)==null?void 0:d.payload})),r[s]=_}return this.Kn||(xn.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.Kn=!0),r}getFlagVariants(){var e=this.os(Ys),t=this.os(Pi);if(!t)return e||{};
100for(var n=Mt({},e),r=Object.keys(t),o=0;r.length>o;o++)n[r[o]]=t[r[o]];return this.Kn||(xn.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.Kn=!0),n}getFlagPayloads(){var e=this.os(Wy),t=this.os(Us);if(!t)return e||{};for(var n=Mt({},e||{}),r=Object.keys(t),o=0;r.length>o;o++)n[r[o]]=t[r[o]];return this.Kn||(xn.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.Kn=!0),n}reloadFeatureFlags(){this.es||this.qt.advanced_disable_feature_flags||this.ds||(this._instance.Li.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Yn||this.Xn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Lr())if(this.Xn)this.ts=!0;else{var n=this.qt.token,r=this.os(Mh),o={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:he({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Kc)||{}),group_properties:this.os(po),timezone:P$()};Xi(r)||ve(r)||(o.$device_id=r),(e!=null&&e.disableFlags||this.qt.advanced_disable_feature_flags)&&(o.disable_flags=!0),this.cs()&&(o.evaluation_contexts=this.hs());var s=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Xn=!0,this._instance._send_request({method:"POST",url:s,data:o,compression:this.qt.disable_compression?void 0:ii.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:c=>{var d,f,h,g=!0;if(c.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),g=!1),this.Xn=!1,!o.disable_flags||this.ts){this.rs=!g;var m=[];c.error?c.error instanceof Error?m.push(c.error.name==="AbortError"?"timeout":"connection_error"):m.push("unknown_error"):c.statusCode!==200&&m.push("api_error_"+c.statusCode),(d=c.json)!=null&&d.errorsWhileComputingFlags&&m.push("errors_while_computing_flags");var y,_=!((f=c.json)==null||(f=f.quotaLimited)==null||!f.includes("feature_flags"));_&&m.push("quota_limited"),(h=this.ni)==null||h.register({[tb]:m}),_?xn.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."):(o.disable_flags||this.receivedFeatureFlags((y=c.json)!==null&&y!==void 0?y:{},g,{partialResponse:!!this.qt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var n;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var r=this.getFeatureFlagResult(e,t);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else xn.warn('getFeatureFlag for key "'+e+Lv)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var n=this.getFlagVariants(),r=e in n,o=n[e],s=this.getFlagPayloads()[e],c=String(o),d=this.os(Ky)||void 0,f=this.os(Oh)||void 0,h=this.os(au)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var g,m=this._instance.get_session_id(),y=this.os(eb);m&&m!==y&&(h={},(g=this.ni)==null||g.register({[au]:h,[eb]:m}))}if((t.send_event||!("send_event"in t))&&(!(e in h)||!h[e].includes(c))){var _,w,S,T,k,$,z,N,O,I;We(h[e])?h[e].push(c):h[e]=[c],(_=this.ni)==null||_.register({[au]:h});var j=this.getFeatureFlagDetails(e),L=[...(w=this.os(tb))!==null&&w!==void 0?w:[]];ve(o)&&L.push("flag_missing");var G={$feature_flag:e,$feature_flag_response:o,$feature_flag_payload:s||null,$feature_flag_request_id:d,$feature_flag_evaluated_at:f,$feature_flag_bootstrapped_response:((S=this.qt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((T=this.qt.bootstrap)==null||(T=T.featureFlagPayloads)==null?void 0:T[e])||null,$used_bootstrap_value:!this.rs};ve(j==null||(k=j.metadata)==null?void 0:k.version)||(G.$feature_flag_version=j.metadata.version);var X,D=($=j==null||(z=j.reason)==null?void 0:z.description)!==null&&$!==void 0?$:j==null||(N=j.reason)==null?void 0:N.co
100de;D&&(G.$feature_flag_reason=D),j!=null&&(O=j.metadata)!=null&&O.id&&(G.$feature_flag_id=j.metadata.id),ve(j?.original_variant)&&ve(j?.original_enabled)||(G.$feature_flag_original_response=ve(j.original_variant)?j.original_enabled:j.original_variant),j!=null&&(I=j.metadata)!=null&&I.original_payload&&(G.$feature_flag_original_payload=j==null||(X=j.metadata)==null?void 0:X.original_payload),L.length&&(G.$feature_flag_error=L.join(",")),this._instance.capture("$feature_flag_called",G)}if(r){var Z=s;if(!ve(s))try{Z=JSON.parse(s)}catch{}return{key:e,enabled:!!o,variant:typeof o=="string"?o:void 0,payload:Z}}}}else xn.warn('getFeatureFlagResult for key "'+e+Lv)}getRemoteConfigPayload(e,t){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.cs()&&(r.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.qt.disable_compression?void 0:ii.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(o){var s,c=(s=o.json)==null?void 0:s.featureFlagPayloads;t(c?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Yn||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return ve(n)?void 0:!!n}xn.warn('isFeatureEnabled for key "'+e+Lv)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,n){if(this.ni){this.Yn=!0;var r=this.getFlagVariants(),o=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(c,d,f,h,g,m){f===void 0&&(f={}),h===void 0&&(h={}),g===void 0&&(g={});var y=(L=>{var G=L.flags;return G?(L.featureFlags=Object.fromEntries(Object.keys(G).map((X=>{var D;return[X,(D=G[X].variant)!==null&&D!==void 0?D:G[X].enabled]}))),L.featureFlagPayloads=Object.fromEntries(Object.keys(G).filter((X=>G[X].enabled)).filter((X=>{var D;return(D=G[X].metadata)==null?void 0:D.payload})).map((X=>{var D;return[X,(D=G[X].metadata)==null?void 0:D.payload]})))):xn.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),L})(c),_=y.flags,w=y.featureFlags,S=y.featureFlagPayloads;if(w){var T=c.requestId,k=c.evaluatedAt;if(We(w)){xn.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var $={};if(w)for(var z=0;w.length>z;z++)$[w[z]]=!0;d&&d.register({[Qf]:w,[Ys]:$})}else{var N=w,O=S,I=_;if(m!=null&&m.partialResponse)N=he({},f,N),O=he({},h,O),I=he({},g,I);else if(c.errorsWhileComputingFlags)if(_){var j=new Set(Object.keys(_).filter((L=>{var G;return!((G=_[L])!=null&&G.failed)})));N=he({},f,Object.fromEntries(Object.entries(N).filter((L=>{var[G]=L;return j.has(G)})))),O=he({},h,Object.fromEntries(Object.entries(O||{}).filter((L=>{var[G]=L;return j.has(G)})))),I=he({},g,Object.fromEntries(Object.entries(I||{}).filter((L=>{var[G]=L;return j.has(G)}))))}else N=he({},f,N),O=he({},h,O),I=he({},g,I);d&&d.register(he({[Qf]:Object.keys(LE(N)),[Ys]:N||{},[Wy]:O||{},[Xy]:I||{}},T?{[Ky]:T}:{},k?{[Oh]:k}:{}))}}})(e,this.ni,r,o,s,n),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),xn.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return xn.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(Pi),this.ni.unregister(Us),this.ps(),lo.info("All overrides cleared");if(We(e)){var t=PE(e);return this.ni.register({[Pi]:t}),this.ps(),lo.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var n,r=e;if(this.Kn=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ni.unregister(Pi),lo.info("Flag overrides cleared");else if(r.flags){if(We(r.flags)){var o=PE(r.flags);this.ni.register({[Pi]:o})}else this.ni.register({[Pi]:r.flags});lo.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ni.unregister(Us),lo.info("Payload overrides cleared")):r.payloads&&(this.ni.register({[Us]:r.payloads}),lo.info("Payload overrides set",{payloads:r.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[Pi]:e}),this.ps(),lo.info("Flag overrides set",{flags:e});xn.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Yn){var{flags:t,flagVariants:n}=this.gs();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,o=(this.os(Wc)||[]).find((f=>f.flagKey===e)),s={["$feature_enrollment/"+e]:t},c={$feature_flag:e,$feature_enrollment:t,$set:s};o&&(c.$early_access_feature_name=o.name),n&&(c.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",c),this.setPersonPropertiesForFlags(s,!1);var d=he({},this.getFlagVariants(),{[e]:t});(r=this.ni)==null||r.register({[Qf]:Object.keys(LE(d)),[Ys]:d}),this.ps()}
100getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this.os(Wc),o=n?"&"+n.map((s=>"stage="+s)).join("&"):"";if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+o),method:"GET",callback:s=>{var c,d;if(s.json){var f=s.json.earlyAccessFeatures;return(c=this.ni)==null||c.unregister(Wc),(d=this.ni)==null||d.register({[Wc]:f}),e(f)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((n=>t[n])),flagVariants:Object.keys(t).filter((n=>t[n])).reduce(((n,r)=>(n[r]=t[r],n)),{})}}ps(e){var{flags:t,flagVariants:n}=this.gs();this.featureFlagEventHandlers.forEach((r=>r(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(Kc)||{},r=e?.$set||(e!=null&&e.$set_once?{}:e),o=e?.$set_once,s={};if(o)for(var c in o)({}).hasOwnProperty.call(o,c)&&(c in n||(s[c]=o[c]));this._instance.register({[Kc]:he({},n,s,r)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Kc)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(po)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=he({},n[r],e[r]),delete e[r]})),this._instance.register({[po]:he({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(po)||{};this._instance.register({[po]:he({},t,{[e]:{}})})}else this._instance.unregister(po)}reset(){this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Kn=!1}}},SF={sessionRecording:class{get qt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===Lc||this.bs===Lf?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=$E,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Sa.error("started without valid sessionManager"),new Error(vb+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===ji)throw new Error(vb+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Xc))==null||!e.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return J&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var n=!ve(Object.assign)&&!ve(Array.from);this.ws&&n?(this.xs(e),Sa.info("starting")):(this.bs=$E,this.stopRecording())}}xs(e){var t,n,r;this.ws&&(this.bs!==Lc&&this.bs!==Lf&&(this.bs=RE),ke!=null&&(t=ke.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=ke.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Ss(e):(r=ke.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.ks,(o=>{if(o)return Sa.error("could not load recorder",o);this.Ss(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}Cs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}Is(){var e;(e=this.ni)==null||e.unregister($0)}Ts(e,t){if(Be(e))return null;var n,r=Ar(e)?e:parseFloat(e);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(Sa.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):r}Es(e){if(this.ni){var t,n,r=this.ni,o=()=>{var s,c=e.sessionRecording===!1?void 0:e.sessionRecording,d=this.Ts((s=this.qt.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),f=this.Ts(c?.sampleRate,"remote config sampleRate"),h=d??f;Be(h)&&this.Is();var g=c?.minimumDurationMilliseconds;r.register({[Xc]:he({cache_timestamp:Date.now(),enabled:!!c},c,{networkPayloadCapture:he({capturePerformance:e.capturePerformance},c?.networkPayloadCapture),canvasRecording:{enabled:c?.recordCanvas,fps:c?.canvasFps,quality:c?.canvasQuality},sampleRate:h,minimumDurationMilliseconds:ve(g)?null:g,endpoint:c?.endpoint,triggerMatchType:c?.triggerMatchType,masking:c?.masking,urlTriggers:c?.urlTriggers,version:c?.version,triggerGroups:c?.triggerGroups})})};o(),(t=this._s)==null||t.call(this),this._s=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(o)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.Es(e),void this.Cs()):(this.Es(e),void this.startIfEnabledOrStop()):(this.bs===Lc&&(this.bs=Lf,Sa.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t="log"),(n=this.ys)!=null&&n.log?this.ys.log(e,t):Sa.warn("log called before recorder was ready")}get ks(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Xc);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Ms(){var e,t=this._instance.get_property(Xc);if(!t)return!1;var n=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-n}Ss(e){var t,n;if((t=ke.__PosthogExtensions__)==null||!t.initSessionRecording)return Sa.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[k$]:!0});if(this.ys||(this.ys=(n=ke.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ms())return this.bs===Lf||this.bs===Lc?void 0:(this.bs=Lc,Sa.info("persisted remote config is stale, requesting fresh config before starting"),void new L$(this._instance).load());this.bs=RE,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[b$]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[y$]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.ys||(n=this.ni)==null||n.register({[e==="url"?_$:w$]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.ys)==null||!n.tryAddCustomEvent(e,t))}}},EF={autocapture:class{constructor(e){this.Ps=!1,this.Rs=null,this.Os=!1,this.instance=e,this.rageclicks=new kE(e.config.rageclick),this.Ls=null}initialize(){this.startIfEnabled()}get qt(){var e,t,n=jt(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(e=n.url_allowlist)==null?void 0:e.map((r=>new RegExp(r))),n.url_ignorelist=(t=n.url_ignorelist)==null?void 0:t.map((r=>new RegExp(r))),n}
vendor: 1,958 bytes, line 100
100Fs(){if(this.isBrowserSupported()){if(J&&me){var e=n=>{n=n||J?.event;try{this.As(n)}catch(r){Nv.error("Failed to capture event",r)}};if(Gt(me,"submit",e,{capture:!0}),Gt(me,"change",e,{capture:!0}),Gt(me,"click",e,{capture:!0}),this.qt.capture_copied_text){var t=n=>{n=n||J?.event;try{this.As(n,Ov)}catch(r){Nv.error("Failed to capture copy/cut event",r)}};Gt(me,"copy",t,{capture:!0}),Gt(me,"cut",t,{capture:!0})}}}else Nv.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Ps&&(this.Fs(),this.Ps=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Os=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Uy]:!!e.autocapture_opt_out}),this.Rs=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Ls=e}getElementSelectors(e){var t,n=[];return(t=this.Ls)==null||t.forEach((r=>{var o=me?.querySelectorAll(r);o?.forEach((s=>{e===s&&n.push(r)}))})),n}get isEnabled(){var e,t,n=(e=this.instance.persistence)==null?void 0:e.props[Uy];if(Xi(this.Rs)&&!si(n)&&!this.instance.Lr())return!1;var r=(t=this.Rs)!==null&&t!==void 0?t:!!n;return!!this.instance.config.autocapture&&!r}As(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var n,r=bE(e);X$(r)&&(r=r.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(m,y){if(!J||mb(m))return!1;var _,w,S;if(si(y)?(_=!!y&&wE,w=void 0):(_=(S=y?.css_selector_ignorelist)!==null&&S!==void 0?S:wE,w=y?.content_ignorelist),_===!1)return!1;var{targetElementList:T}=xE(m,!1);return!(function(k,$){if(k===!1||ve(k))return!1;var z;if(k===!0)z=sF;else{if(!We(k))return!1;if(k.length>10)return ge.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;z=k.map((N=>
100N.toLowerCase()))}return $.some((N=>{var{safeText:O,ariaLabel:I}=N;return z.some((j=>O.includes(j)||I.includes(j)))}))})(w,T.map((k=>{var $;return{safeText:Tu(k).toLowerCase(),ariaLabel:(($=k.getAttribute("aria-label"))==null?void 0:$.toLowerCase().trim())||""}})))&&!_E(T,_)})(r,this.instance.config.rageclick)&&this.As(e,"$rageclick");var o=t===Ov;if(r&&(function(m,y,_,w,S){var T,k,$,z;if(_===void 0&&(_=void 0),!J||mb(m)||(T=_)!=null&&T.url_allowlist&&!yE(_.url_allowlist)||(k=_)!=null&&k.url_ignorelist&&yE(_.url_ignorelist))return!1;if(($=_)!=null&&$.dom_event_allowlist){var N=_.dom_event_allowlist;if(N&&!N.some((G=>y.type===G)))return!1}var{parentIsUsefulElement:O,targetElementList:I}=xE(m,w);if(!(function(G,X){var D=X?.element_allowlist;if(ve(D))return!0;var Z,ce=function(ae){if(D.some((E=>ae.tagName.toLowerCase()===E)))return{v:!0}};for(var H of G)if(Z=ce(H))return Z.v;return!1})(I,_)||!_E(I,(z=_)==null?void 0:z.css_selector_allowlist))return!1;var j=J.getComputedStyle(m);if(j&&j.getPropertyValue("cursor")==="pointer"&&y.type==="click")return!0;var L=m.tagName.toLowerCase();switch(L){case"html":return!1;case"form":return(S||["submit"]).indexOf(y.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(y.type)>=0;default:return O?(S||["click"]).indexOf(y.type)>=0:(S||["click"]).indexOf(y.type)>=0&&(D0.indexOf(L)>-1||m.getAttribute("contenteditable")==="true")}})(r,e,this.qt,o,o?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:c}=pF(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsChainAsString:this.Os});if(c)return!1;var d=this.getElementSelectors(r);if(d&&d.length>0&&(s.$element_selectors=d),t===Ov){var f,h=K$(J==null||(f=J.getSelection())==null?void 0:f.toString()),g=e.type||"clipboard";if(!h)return!1;s.$selected_content=h,s.$copy_type=g}return this.instance.capture(t,s),!0}}}isBrowserSupported(){return Ii(me?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ns=(J==null||(t=J.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(ge.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.$s&&this.$s(),this.$s=void 0,ge.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(J&&J.history){var n=this;(e=J.history.pushState)!=null&&e.__posthog_wrapped__||TE(J.history,"pushState",(r=>function(o,s,c){r.call(this,o,s,c),n.Ds("pushState")})),(t=J.history.replaceState)!=null&&t.__posthog_wrapped__||TE(J.history,"replaceState",(r=>function(o,s,c){r.call(this,o,s,c),n.Ds("replaceState")})),this.qs()}}Ds(e){try{var t,n=J==null||(t=J.location)==null?void 0:t.pathname;if(!n)return;n!==this.Ns&&this.isEnabled&&this._instance.capture(Hs,{navigation_type:e}),this.Ns=n}catch(r){ge.error("Error capturing "+e+" pageview",r)}}qs(){if(!this.$s){var e=()=>{this.Ds("popstate")};Gt(J,"popstate",e),this.$s=()=>{J&&J.removeEventListener("popstate",e)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(e){var t;this.js=!1,this.Ps=!1,this.Hs=null,this.instance=e,this.js=!((t=this.instance.persistence)==null||!t.props[Hy]),this.rageclicks=new kE(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return jt(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(e=this.qt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Be(this.qt.capture_heatmaps)?Be(this.qt.enable_heatmaps)?this.js:this.qt.enable_heatmaps:this.qt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Ps)return;gF.info("starting..."),this.Us(),this.At()}else{var e;clearInterval((e=this.Hs)!==null&&e!==void 0?e:void 0),this.Bs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Hy]:t}),this.js=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.M;return this.M=void 0,e}zs(e){this.Mt(e.originalEvent,"deadclick")}At(){this.Hs&&clearInterval(this.Hs),this.Hs=me?.visibilityState==="visible"?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Us(){J&&me&&(this.Vs=this.Zr.bind(this),Gt(J,Lh,this.Vs),this.Ws=e=>this.Mt(e||J?.event),Gt(me,"click",this.Ws,{capture:!0}),this.Zs=e=>this.Gs(e||J?.event),Gt(me,"mousemove",this.Zs,{capture:!0}),this.Qs=new Q2(this.instance,T7,this.zs.bind(this)),this.Qs.startIfEnabledOrStop(),this.Js=this.At.bind(this),Gt(me,Ph,this.Js),this.Ps=!0)}Bs(){var e;J&&me&&(this.Vs&&J.removeEventListener(Lh,this.Vs),this.Ws&&me.removeEventListener("click",this.Ws,{capture:!0}),this.Zs&&me.removeEventListener("mousemove",this.Zs,{capture:!0}),this.Js&&me.removeEventListener(Ph,this.Js),clearTimeout(this.Ks),(e=this.Qs)==null||e.stop(),this.Ps=!1)}Ys(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),o=this.instance.scrollManager.scrollElement(),s=(function(c,d,f){for(var h=c;h&&Mo(h)&&!Br(h,"body");){if(h===f)return!1;if(He(d,J?.getComputedStyle(h).position))return!0;h=Q$(h)}return!1})(bE(e),["fixed","sticky"],o);return{x:e.clientX+(s?0:r),y:e.clientY+(s?0:n),target_fixed:s,type:t}}Mt(e,t){var n;if(t===void 0&&(t="click"),!vE(e.target)&&AE(e)){var r=this.Ys(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Xs(he({},r,{type:"rageclick"})),this.Xs(r)}}Gs(e){!vE(e.target)&&AE(e)&&(clearTimeout(this.Ks),this.Ks=setTimeout((()=>{this.Xs(this.Ys(e,"mousemove"))}),500))}Xs(e){if(J){var t=J.location.href,n=this.qt.custom_personal_data_properties,r=this.qt.mask_personal_data_properties?[..._l,...n||[]]:[],o=Eu(t,r,ku);this.M=this.M||{},this.M[o]||(this.M[o]=[]),this.M[o].push(e)}}Zr(){this.M&&!Gs(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Q2,webVitalsAutocapture:class{constructor(e){var t;this.js=!1,this.Ps=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce(((n,r)=>he({},n,{["$web_vitals_"+r.name+"_event"]:he({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=n=>{var r,o=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0);if(ve(o))xa.error("Could not read session ID. Dropping metrics!");else{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.io();ve(s)||(Be(n?.name)||Be(n?.value)?xa.error("Invalid metric received",n):!this.no||this.no>n.value?(this.M.url!==s&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),ve(this.M.url)&&(this.M.url=s),this.M.firstMetricTimestamp=ve(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.M.metrics.push(he({},n,{$current_url:s,$session_id:o.sessionId,$window_id:o.windowId,timestamp:Date.now()})),this.M.metrics.length===this.allowedMetrics.length&&this.eo()):xa.error("Ignoring metric with value >= "+this.no,n))}},this.so=()=>
100{if(!this.Ps){var n,r,o,s,c=ke.__PosthogExtensions__;ve(c)||ve(c.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:o,onINP:s}=c.postHogWebVitalsCallbacks),n&&r&&o&&s?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.ht.bind(this)),this.Ps=!0):xa.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.js=!((t=this._instance.persistence)==null||!t.props[Gy]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,n=jt(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Be(n)?((t=this._instance.persistence)==null?void 0:t.props[Zy])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(jt(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=jt(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=jt(this.oo)&&Ar(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:CE;return e>0&&6e4>=e?CE:e}get isEnabled(){var e=hn?.protocol;if(e!=="http:"&&e!=="https:")return xa.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=jt(this.oo)?this.oo.web_vitals:si(this.oo)?this.oo:void 0;return si(t)?t:this.js}startIfEnabled(){this.isEnabled&&!this.Ps&&(xa.info("enabled, starting..."),this.lr(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=jt(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=jt(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Gy]:t}),this._instance.persistence.register({[Zy]:n})),this.js=t,this.startIfEnabled()}}lr(e){var t,n;(t=ke.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=ke.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(r=>{r?xa.error("failed to load script",r):e()}))}io(){var e=J?J.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[..._l,...t||[]]:[];return Eu(e,n,ku)}xa.error("Could not determine current URL")}}},kF={exceptionObserver:class{constructor(e){var t,n,r;this.so=()=>{var o;if(J&&this.isEnabled&&(o=ke.__PosthogExtensions__)!=null&&o.errorWrappingFunctions){var s=ke.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=ke.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,d=ke.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.qt.capture_unhandled_errors&&(this.ao=s(this.captureException.bind(this))),!this.uo&&this.qt.capture_unhandled_rejections&&(this.uo=c(this.captureException.bind(this))),!this.lo&&this.qt.capture_console_errors&&(this.lo=d(this.captureException.bind(this)))}catch(f){Pc.error("failed to start",f),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[By]),this.do=new DL({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,Gt:Pc}),this.qt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return jt(e)?t=he({},t,e):(ve(e)?this.co:e)&&(t=he({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Pc.info("enabled"),this.ho(),this.lr(this.so)):this.ho()}lr(e){var t,n;(t=ke.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=ke.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return Pc.error("failed to load script",r);e()}))}ho(){var e,t,n;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.uo)==null||t.call(this),this.uo=void 0,(n=this.lo)==null||n.call(this),this.lo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[By]:this.co}),this.qt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.vo()}captureException(e){var t,n,r,o=(t=e==null||(n=e.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(o)?Pc.info("Skipping exception capture because of client rate limiting.",{exception:o}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,n;this.fo=[],this.po=new ZL([new n7,new d7,new i7,new r7,new c7,new l7,new o7,new u7],(function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;o>c;c++)s[c-1]=arguments[c];return function(d,f){f===void 0&&(f=0);for(var h=[],g=d.split(` 101`),m=f;g.length>m;m++){var y=g[m];if(1024>=y.length){var _=Z2.test(y)?y.replace(Z2,"$1"):y;if(!_.match(/\S*Error: /)){for(var w of s){var S=w(_,r);if(S){h.push(S);break}}if(h.length>=50)break}}}return(function(T){if(!T.length)return[];var k=Array.from(T);return k.reverse(),k.slice(0,50).map(($=>{return he({},$,{filename:$.filename||(z=k,z[z.length-1]||{}).filename,function:$.function||bl});var z}))})(h)}})("web:javascript",QL,t7)),this._instance=e,this.fo=(t=(n=this._instance.persistence)==null?void 0:n.get_property(qy))!==null&&t!==void 0?t:[],this.mo=Ah(this.yo()),this.bo=new h7(this.mo)}onConfigChange(){this.mo=Ah(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,n,r;if("errorTracking"in e){var o=(t=(n=e.errorTracking)==null?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],s=(r=e.errorTracking)==null?void 0:r.captureExtensionExceptions;this.fo=o,this._instance.persistence&&this._instance.persistence.register({[qy]:this.fo,[Vy]:s})}}get _o(){var e,t=!!this._instance.get_property(Vy),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Tt(e)||e.trim().length===0)return void Ni.warn("Ignoring exception step because message must be a non-empty string");var n=this.wo(t),{sanitizedProperties:r,droppedKeys:o}=(function(s){if(!s)return{sanitizedProperties:{},droppedKeys:[]};var c=[];return{sanitizedProperties:Object.keys(s).reduce(((d,f)=>f7.has(f)?(c.push(f),d):(d[f]=s[f],d)),{}),droppedKeys:c}})(n);o.length>0&&Ni.warn("Ignoring reserved exception step fields",{droppedKeys:o}),this.bo.add(he({[$h]:e,[Rh]:new Date().toISOString()},r))}catch(s){Ni.error("Failed to add exception step. Ignoring breadcrumb.",s)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.xo(t)){if(this.So(t))return this.ko("Exception dropped: matched a suppression rule"),void Ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.Co(t))return this.ko("Exception dropped: thrown by a browser extension"),void Ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Io(t))return this.ko("Exception dropped: thrown by the PostHog SDK"),void Ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.mo.enabled&&Be(e.$exception_steps)?this.To(e):e;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return r&&this.bo.clear(),r}catch(o){return Ni.error("Failed to capture exception event. Dropping this exception.",o),void this.bo.clear()}}catch(o){return void Ni.error("Failed to process exception event. Ignoring this exception.",o)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:he({},e,{$exception_steps:t})}catch(n){return Ni.error("Failed to read buffered exception steps. Capturing exception without steps.",n),e}}ko(e){this.mo.enabled&&this.bo.add({[$h]:e,[Rh]:new Date().toISOString()})}wo(e){return jt(e)?he({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}So(e){if(e.length===0)return!1;var t=e.reduce(((n,r)=>{var{type:o,value:s}=r;return Tt(o)&&o.length>0&&n.$exception_types.push(o),Tt(s)&&s.length>0&&n.$exception_values.push(s),n}),{$exception_types:[],$exception_values:[]});return this.fo.some((n=>{var r=n.values.map((o=>{var s,c=V$[o.operator],d=We(o.value)?o.value:[o.value],f=(s=t[o.key])!==null&&s!==void 0?s:[];return d.length>0&&c(d,f)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}Co(e){return e.flatMap((t=>{var n,r;
101return(n=(r=t.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}Io(e){if(e.length>0){var t,n,r,o,s=(t=(n=e[0].stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[],c=s[s.length-1];return(r=c==null||(o=c.filename)==null?void 0:o.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}xo(e){return!Be(e)&&We(e)}}},TF=he({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Eo=null,this.Mo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[Yy]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Eo||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(Yy)||this.lr((()=>this.Po()))}lr(e){var t,n;(t=ke.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=ke.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?ME.error("Could not load product tours script",r):e()}))}Po(){var e;!this.Eo&&(e=ke.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Eo=ke.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!We(this.Mo)||t){var n=this.ni;if(n){var r=n.props[Jf];if(We(r)&&!t)return this.Mo=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:o=>{var s=o.statusCode;if(s!==200||!o.json){var c="Product Tours API could not be loaded, status: "+s;return ME.error(c),void e([],{isLoaded:!1,error:c})}var d=We(o.json.product_tours)?o.json.product_tours:[];this.Mo=d,n&&n.register({[Jf]:d}),e(d,{isLoaded:!0})}})}else e(this.Mo,{isLoaded:!0})}getActiveProductTours(e){Be(this.Eo)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Eo.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Eo)==null||t.showTourById(e)}previewTour(e){this.Eo?this.Eo.previewTour(e):this.lr((()=>{var t;this.Po(),(t=this.Eo)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Eo)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Eo)==null||e.nextStep()}previousStep(){var e;(e=this.Eo)==null||e.previousStep()}clearCache(){var e;this.Mo=null,(e=this.ni)==null||e.unregister(Jf)}resetTour(e){var t;(t=this.Eo)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Eo)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Eo)==null||t.cancelPendingTour(e)}}},_p),CF={siteApps:class{constructor(e){this._instance=e,this.Ro=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Oo(e,t){if(t){var n=this.globalsForEvent(t);this.Ro.push(n),this.Ro.length>1e3&&(this.Ro=this.Ro.slice(10))}}get siteAppLoaders(){var e;return(e=ke._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Oo.bind(this));this.Lo=()=>{e(),this.Ro=[],this.Lo=void 0}}}globalsForEvent(e){var t,n,r,o,s,c,d;if(!e)throw new Error("Event payload is required");var f={},h=this._instance.get_property("$groups")||[],g=this._instance.get_property("$stored_group_properties")||{};for(var[m,y]of Object.entries(g))f[m]={id:h[m],type:m,properties:y};var{$set_once:_,$set:w}=e;return{event:he({},GC(e,vF),{properties:he({},e.properties,w?{$set:he({},(t=(n=e.properties)==null?void 0:n.$set)!==null&&t!==void 0?t:{},w)}:{},_?{$set_once:he({},(r=(o=e.properties)==null?void 0:o.$set_once)!==null&&r!==void 0?r:{},_)}:{}),elements_chain:(s=(c=e.properties)==null?void 0:c.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(d=e.properties)==null?void 0:d.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:f}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var c;!t.errored&&this.Ro.length&&(Ea.info("Processing "+this.Ro.length+" events for site app with id "+e.id),this.Ro.forEach((d=>t.processEvent==null?void 0:t.processEvent(d))),t.processedBuffer=!0),Object.values(this.apps).every((d=>d.processedBuffer||d.errored))&&((c=this.Lo)==null||c.call(this))},r=!1,o=c=>{t.errored=!c,t.loaded=!0,Ea.info("Site app with id "+e.id+" "+(c?"loaded":"errored")),r&&n()};try{var{processEvent:s}=e.init({posthog:this._instance,callback(c){o(c)}});s&&(t.processEvent=s),r=!0}catch(c){Ea.error(zE+e.id,c),o(!1)}if(r&&t.loaded)try{n()}catch(c){Ea.error("Error while processing buffered events PostHog app with config id "+e.id,c),t.errored=!0}}Fo(){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)}Ao(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(r){Ea.error("Error while processing event "+e.event+" for site app "+n.id,r)}}}onRemoteConfig(e){var t,n,r,o=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Fo(),void this._instance.on("eventCaptured",(f=>this.Ao(f)))):void Ea.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Lo)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var s=function(f){var h;ke["__$$ph_site_app_"+f]=o._instance,(h=ke.__PosthogExtensions__)==null||h.loadSiteApp==null||h.loadSiteApp(o._instance,d,(g=>{if(g)return Ea.error(zE+f,g)}))};for(var{id:c,url:d}of e.siteApps)s(c)}else Ea.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},$F={tracingHeaders:class{constructor(e){this.No=void 0,this.$o=void 0,this.so=()=>{var t,n,r=this.Do()||[];ve(this.No)&&((t=ke.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(r,this._instance.get_distinct_id(),this._instance.sessionManager)),ve(this.$o)&&((n=ke.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(r,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}lr(e){var t,n;(t=ke.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(n=ke.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return mF.error("failed to load script",r);e()}))}Do(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Do()?this.lr(this.so):((e=this.No)==null||e.call(this),(t=this.$o)==null||t.call(this),this.No=void 0,this.$o=void 0)}}},RF=he({surveys:class{get qt(){return this._instance.config}constructor(e){this.qo=void 0,this._surveyManager=null,this.jo=!1,this.Ho=[],this.Uo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.qt.disable_surveys){var t=e.surveys;if(Be(t))return lt.warn("Flags not loaded yet. Not loading surveys.");var n=We(t);this.qo=n?t.length>0:t,lt.info("flags response received, isSurveysEnabled: "+this.qo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(hb)||n!=null&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.jo)lt.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)lt.info(OE);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())lt.info("Not loading surveys in cookieless mode without consent.");else{var e=ke?.__PosthogExtensions__;if(e){if(!ve(this.qo)||this.qt.advanced_enable_surveys){var t=this.qo||this.qt.advanced_enable_surveys;this.jo=!0;try{var n=e.generateSurveys;if(n)return void this.Bo(n,t);var r=e.loadExternalDependency;if(!r)return void this.zo(R0);r(this._instance,"surveys",(o=>{o||!e.generateSurveys?this.zo("Could not load surveys script",o):this.Bo(e.generateSurveys,t)}))}catch(o){throw this.zo("Error initializing surveys",o),o}finally{this.jo=!1}}}else lt.error("PostHog Extensions not found.")}}Bo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new _F(this._instance),lt.info("Surveys loaded successfully"),this.Vo({isLoaded:!0})}zo(e,t){lt.error(e,t),this.Vo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Ho.push(e),this._surveyManager&&this.Vo({isLoaded:!0}),()=>{this.Ho=this.Ho.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.qt.disable_surveys)return lt.info(OE),e([]);var n,r=this._instance.get_property(Qy);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<"u"&&this.Uo?this.Uo.then((o=>{var{surveys:s,context:c}=o;return e(s,c)})):(typeof Promise<"u"&&(this.Uo=new Promise((o=>{n=o}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:o=>{var s;this.Uo=null;var c=o.statusCode;if(c!==200||!o.json){var d="Surveys API could not be loaded, status: "+c;lt.error(d);var f={isLoaded:!1,error:d};return e([],f),void(n==null||n({surveys:[],context:f}))}var h,g=o.json.surveys||[],m=g.filter((_=>(function(w){return!(!w.start_date||w.end_date)})(_)&&((function(w){var S;return!((S=w.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(_)||(function(w){var S;return!((S=w.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(_))));m.length>0&&((h=this._surveyEventReceiver)==null||h.register(m)),(s=this._instance.persistence)==null||s.register({[Qy]:g});var y={isLoaded:!0};e(g,y),n?.({surveys:g,context:y})}}))}
101Vo(e){for(var t of this.Ho)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){lt.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Be(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);lt.warn("init was not called")}Wo(e){var t=null;return this.getSurveys((n=>{var r;t=(r=n.find((o=>o.id===e)))!==null&&r!==void 0?r:null})),t}Zo(e){if(Be(this._surveyManager))return{eligible:!1,reason:Pv};var t=typeof e=="string"?this.Wo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Be(this._surveyManager))return lt.warn("init was not called"),{visible:!1,disabledReason:Pv};var t=this.Zo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Be(this._surveyManager)?(lt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:Pv})):new Promise((n=>{this.getSurveys((r=>{var o,s=(o=r.find((d=>d.id===e)))!==null&&o!==void 0?o:null;if(s){var c=this.Zo(s);n({visible:c.eligible,disabledReason:c.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,n){var r;if(Be(this._surveyManager))lt.warn("init was not called");else{var o=typeof e=="string"?this.Wo(e):e;if(o!=null&&o.id)if(K7.includes(o.type)){var s=me?.querySelector(t);if(s)return(r=o.appearance)!=null&&r.surveyPopupDelaySeconds?(lt.info("Rendering survey "+o.id+" with delay of "+o.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var c,d;lt.info("Rendering survey "+o.id+" with delay of "+((c=o.appearance)==null?void 0:c.surveyPopupDelaySeconds)+" seconds"),(d=this._surveyManager)==null||d.renderSurvey(o,s,n),lt.info("Survey "+o.id+" rendered")}),1e3*o.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(o,s,n);lt.warn("Survey element not found")}else lt.warn("Surveys of type "+o.type+" cannot be rendered in the app");else lt.warn("Survey not found")}}displaySurvey(e,t){var n;if(Be(this._surveyManager))lt.warn("init was not called");else{var r=this.Wo(e);if(r){var o=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(o=he({},r,{appearance:he({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==sb.Popover&&t.initialResponses&<.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var s=this.canRenderSurvey(r);if(!s.visible)return void lt.warn("Survey is not eligible to be displayed: ",s.disabledReason)}t.displayType!==sb.Inline?this._surveyManager.handlePopoverSurvey(o,t):this.renderSurvey(o,t.selector,t.properties)}else lt.warn("Survey not found")}}cancelPendingSurvey(e){Be(this._surveyManager)?lt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},_p),AF={toolbar:class{constructor(e){this.instance=e}Go(e){ke.ph_toolbar_state=e}Qo(){var e;return(e=ke.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),T$(this.instance.config)||!J||!me)return!1;e=e??J.location,n=n??J.history;try{if(!t){try{J.localStorage.setItem("test","test"),J.localStorage.removeItem("test")}catch{return!1}t=J?.localStorage}var r,o=wF||Uh(e.hash,"__posthog")||Uh(e.hash,"state"),s=o?W2((()=>JSON.parse(atob(decodeURIComponent(o)))))||W2((()=>JSON.parse(decodeURIComponent(o)))):null;return s&&s.action==="ph_authorize"?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?e.hash=s.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(NE)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Jo(e){var t=ke.ph_load_toolbar||ke.ph_load_editor;!Be(t)&&Ii(t)?t(e,this.instance):DE.warn("No toolbar load function found")}loadToolbar(e){var t=!(me==null||!me.getElementById(x$));if(!J||t)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=he({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(J.localStorage.setItem(NE,JSON.stringify(he({},r,{source:void 0}))),this.Qo()===2)this.Jo(r);else if(this.Qo()===0){var o;
101this.Go(1),(o=ke.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return DE.error("[Toolbar] Failed to load",s),void this.Go(0);this.Go(2),this.Jo(r)})),Gt(J,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(r)}))}return!0}Ko(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},MF=he({experiments:yn},_p),zF={conversations:class{constructor(e){this.Yo=void 0,this._conversationsManager=null,this.Xo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Be(t)||(si(t)?this.Yo=t:(this.Yo=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Yo=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Xo||this._instance.config.disable_conversations||T$(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=ke?.__PosthogExtensions__;if(e&&!ve(this.Yo)&&this.Yo)if(this.ea&&this.ea.token){this.Xo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Xo=!1);var n=e.loadExternalDependency;if(!n)return void this.ra(R0);n(this._instance,"conversations",(r=>{r||!e.initConversations?this.ra("Could not load conversations script",r):this.ta(e.initConversations),this.Xo=!1}))}catch(r){this.ra("Error initializing conversations",r),this.Xo=!1}}else _r.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),_r.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else _r.error("Cannot complete initialization: remote config is null")}ra(e,t){_r.error(e,t),this._conversationsManager=null,this.Xo=!1}show(){this._conversationsManager?this._conversationsManager.show():_r.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Yo===!0&&!Xi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var r=this;return kr((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(_r.warn(co),null)}))()}getMessages(e,t){var n=this;return kr((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(_r.warn(co),null)}))()}markAsRead(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(_r.warn(co),null)}))()}getTickets(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(_r.warn(co),null)}))()}requestRestoreLink(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(_r.warn(co),null)}))()}restoreFromToken(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(_r.warn(co),null)}))()}restoreFromUrlToken(){var e=this;return kr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(_r.warn(co),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}ln(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},OF={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=xt("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.ua=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Be(n)&&n&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.qr&&(clearTimeout(this.qr),this.qr=void 0),this.oa=0,this.aa=0,this.ua=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=ke?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(n=>{var r;n||(r=e.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(R0)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,n,r,o,s,c;if(this._instance.is_capturing())if(e&&e.body){var d=(t=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&t!==void 0?t:3e3,f=(r=(o=this._instance.config.logs)==null?void 0:o.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,h=Date.now();if(d>h-this.aa||(this.aa=h,this.oa=0,this.ua=!1),f>this.oa){this.oa++;var g=(function(m,y){var _=m.level||"info",{text:w,number:S}=f$[_]||GL,T=String(Date.now())+"000000",k={};y.distinctId&&(k.posthogDistinctId=y.distinctId),y.sessionId&&(k.sessionId=y.sessionId),y.currentUrl&&(k["url.full"]=y.currentUrl),y.screenName&&(k["screen.name"]=y.screenName),y.appState&&(k["app.state"]=y.appState),y.activeFeatureFlags&&y.activeFeatureFlags.length>0&&(k.feature_flags=y.activeFeatureFlags);var $=he({},k,m.attributes||{}),z={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:w,body:{stringValue:m.body},attributes:Y2($)};return m.trace_id&&(z.traceId=m.trace_id),m.span_id&&(z.spanId=m.span_id),ve(m.trace_flags)||(z.flags=m.trace_flags),z})(e,this.la());this.sa.push({record:g}),((s=(c=this._instance.config.logs)==null?void 0:c.maxBufferSize)!==null&&s!==void 0?s:100)>this.sa.length?this.ha():this.flushLogs()}else this.ua||(this.Gt.warn("captureLog dropping logs: exceeded "+f+" logs per "+d+"ms"),this.ua=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={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)=>
101this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.qr&&(clearTimeout(this.qr),this.qr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var n=this._instance.config.logs,r=he({"service.name":n?.serviceName||"unknown_service"},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),o=(function(c,d,f,h){return{resourceLogs:[{resource:{attributes:Y2(d)},scopeLogs:[{scope:{name:f,version:h},logRecords:c}]}]}})(t.map((c=>c.record)),r,kn.LIB_NAME,kn.LIB_VERSION),s=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Bi({method:"POST",url:s,data:o,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.qr||(this.qr=setTimeout((()=>{this.qr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}la(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(ke!=null&&(e=ke.location)!=null&&e.href&&(t.currentUrl=ke.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}},NF=he({},_p,SF,EF,kF,TF,CF,RF,$F,AF,MF,zF,OF);Tr.__defaultExtensionClasses=he({},NF);var IE,wp=(IE=su[Bs]=new Tr,(function(){function e(){e.done||(e.done=!0,Z$=!1,gt(su,(function(t){t._dom_loaded()})))}me!=null&&me.addEventListener?me.readyState==="complete"?e():Gt(me,"DOMContentLoaded",e,{capture:!1}):J&&ge.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),IE);const DF="phc_qBjjWJrivwd3o22DBN6RUtoUFddf5tiAsUQGuzo5LGEC",nh=Fo.VITE_POSTHOG_KEY??DF,Fv=Fo.VITE_POSTHOG_HOST??"https://eu.i.posthog.com",jE=Number.parseFloat(Fo.VITE_POSTHOG_REPLAY_SAMPLE_RATE??"0.02"),UE="bg_anonymous_user_id",yb="bg_first_seen_at",HE="bg_last_seen_at",BE="bg_first_referrer_domain",qE="bg_first_landing_path",VE=1440*60*1e3;let Cu=!1,GE=!1,YE=null;const PF="https://discord.com/api/webhooks/1410733340084015214/Ydp1bquncROUJ_grG-zg1tReLO9hgpyndACglVViWreRK6azU7caf6EAwszq67hr4nlv";async function LF(e,t){try{const r={username:"Better Gradient Bot",embeds:[{title:e,description:t?Object.entries(t).filter(([,o])=>o!=null).map(([o,s])=>`**${o}:** ${s}`).join(` 102`):void 0,color:6514417,timestamp:new Date().toISOString()}]};await fetch(PF,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}catch(n){console.error("Failed to send Discord notification:",n)}}async function FF(e){try{typeof window<"u"&&window.umami&&window.umami.track(e)}catch(t){console.error("Failed to track Umami event:",t)}}function IF(){return typeof window<"u"&&Fo.VITE_POSTHOG_DISABLED!=="true"&&!!nh}function oi(e,t){Fo.VITE_POSTHOG_DEBUG==="true"&&console.info("[PostHog]",e,t??{})}function r4(){if(typeof document>"u"||!document.referrer)return"direct";try{return new URL(document.referrer).hostname}catch{return"unknown"}}function xp(){return typeof window>"u"||!window.matchMedia("(pointer: coarse)").matches?"desktop":window.innerWidth>=768?"tablet":"mobile"}function P0(){return typeof navigator>"u"?"unknown":navigator.language||"unknown"}function al(e){try{return window.localStorage.getItem(e)}catch{return null}}function cu(e,t){try{window.localStorage.setItem(e,t)}catch{}}function jF(){return globalThis.crypto?.randomUUID?.()??`bg_${Date.now()}_${Math.random()}`}function UF(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0)/2**32}function bb(){return Number.isFinite(jE)?Math.min(Math.max(jE,0),1):.02}function HF(e){if(Fo.VITE_POSTHOG_REPLAY_FORCE==="true")return!0;try{if(new URLSearchParams(window.location.search).get("replay")==="1")return!0}catch{}return UF(e)<bb()}function BF(){const e=al(UE);if(e)return e;const t=jF();return cu(UE,t),t}function i4(){return{path:window.location.pathname,referrer_domain:r4(),device_type:xp(),locale:P0()}}function qF(e){if(e)return Object.fromEntries(Object.entries(e).map(([t,n])=>[t.replace(/^colors_count$/,"palette_count").replace(/^shapes_count$/,"shape_count"),n]).filter(([,t])=>t!==void 0))}function L0(){if(Cu){oi("init skipped: already initialized");return}if(!IF()){oi("init skipped: disabled or missing key",{hasWindow:typeof window<"u",disabled:Fo.VITE_POSTHOG_DISABLED==="true",hasKey:!!nh,host:Fv});return}const e=BF(),t=al(yb)??new Date().toISOString(),n=al(BE)??r4(),r=al(qE)??window.location.pathname;cu(yb,t),cu(BE,n),cu(qE,r),wp.init(nh,{api_host:Fv,person_profiles:"identified_only",capture_pageview:!1,autocapture:!1,disable_session_recording:!0,loaded:o=>{o.identify(e,{first_seen_at:t,first_referrer_domain:n,first_landing_path:r,device_type:xp(),locale:P0()}),HF(e)?(o.startSessionRecording(),oi("session replay started",{sampleRate:bb()})):oi("session replay skipped",{sampleRate:bb()})}}),Cu=!0,oi("initialized",{host:Fv,keyPrefix:nh.slice(0,8),distinctId:e,path:window.location.pathname})}function _b(e,t){if(L0(),!Cu){oi("capture skipped: not initialized",{event:e});return}const n=qF(t);oi("capture",{event:e,properties:n}),wp.capture(e,n)}function VF(e){if(L0(),!Cu||typeof window>"u"){oi("pageview skipped: not initialized",{pathname:e});return}const t=window.location.href;if(YE===t){oi("pageview skipped: duplicate",{currentUrl:t});return}YE=t;const n={...i4(),$current_url:t,$host:window.location.host,$pathname:e??window.location.pathname,$title:document.title};oi("pageview",n),wp.capture("$pageview",n)}function GF(e,t){switch(e){case"Editor Loaded":return{event:"editor_loaded",properties:{entry_source:YF(),is_mobile:xp()!=="desktop",...t}};case"Randomize Gradient":return null;case"Apply Preset":return{event:"preset_applied",properties:{preset_type:t?.is_user_preset?"user":"built_in",preset_name:t?.preset_name}};case"Save Custom Preset":return{event:"custom_preset_saved",properties:t};case"Copy Share URL":return{event:"share_link_copied",properties:{surface:"editor_export_popover",...t}};case"Export PNG":return Ff("png",t);case"Export WebP":return Ff("webp",t);case"Export SVG":return Ff("svg",t);case"Copy CSS":return Ff("css",t);case"API Key Requested":return{event:"api_key_requested",properties:t};case"View Shared Gradient":return{event:"gallery_gradient_opened",properties:{source:"share",...t}};default:return null}}
102function Ff(e,t){return{event:"export_completed",properties:{format:e,...t}}}function YF(){if(typeof document>"u")return"direct";const e=document.referrer;if(!e)return"direct";try{const t=new URL(e);return t.pathname==="/"?"home_cta":t.pathname.startsWith("/share/")?"share_page":t.pathname==="/random-gradient"?"random_gradient_page":t.pathname==="/gallery"?"gallery":"other"}catch{return"other"}}function ZF(){if(GE||typeof window>"u"||(GE=!0,L0(),!Cu))return;const e=Date.now(),t=Number(al(HE)??0),n=al(yb),r=i4();_b("app_loaded",r),t&&e-t>=VE&&_b("return_visit",{days_since_last_seen:Math.floor((e-t)/VE),path:window.location.pathname}),wp.setPersonProperties({is_returning_user:!!n&&t>0,device_type:xp(),locale:P0()}),cu(HE,String(e))}async function cV(e,t,n){const r=GF(e,t);r&&_b(r.event,r.properties),await Promise.allSettled([n?Promise.resolve():LF(e,t),FF(e)])}const a4={hostUrl:"https://analytics.teogoulois.com",websiteId:"662a5822-5471-4b96-a504-eea1913d0221"},XF=`${a4.hostUrl}/script.js`;/** 103 * @license bippy 104 * 105 * Copyright (c) Aiden Bai 106 * 107 * This source code is licensed under the MIT license found in the 108 * LICENSE file in the root directory of this source tree. 109 */const WF="0.3.27",F0=`bippy-${WF}`,ZE=Object.defineProperty,KF=Object.prototype.hasOwnProperty,Jc=()=>{},o4=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")})}catch{}},s4=(e=zo())=>"getFiberRoots"in e;let l4=!1,XE;const wb=(e=zo())=>l4?!0:(typeof e.inject=="function"&&(XE=e.inject.toString()),!!XE?.includes("(injected)")),rh=new Set,xb=new Set,QF=e=>{const t=new Map;let n=0,r={checkDCE:o4,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:t,onCommitFiberRoot:Jc,onCommitFiberUnmount:Jc,onPostCommitFiberRoot:Jc,on:Jc,inject(o){const s=++n;return t.set(s,o),xb.add(o),r._instrumentationIsActive||(r._instrumentationIsActive=!0,rh.forEach(c=>c())),s},_instrumentationSource:F0,_instrumentationIsActive:!1};try{ZE(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return r},set(c){if(c&&typeof c=="object"){const d=r.renderers;r=c,d.size>0&&(d.forEach((f,h)=>{xb.add(f),c.renderers.set(h,f)}),Sb(e))}},configurable:!0,enumerable:!0});const o=window.hasOwnProperty;let s=!1;ZE(window,"hasOwnProperty",{value:function(){try{if(!s&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,s=!0,-0}catch{}return o.apply(this,arguments)},configurable:!0,writable:!0})}catch{Sb(e)}return r},Sb=e=>{e&&rh.add(e);try{const t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){if(t.checkDCE=o4,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=F0,t._instrumentationIsActive=!1,t.on=Jc,t.renderers.size){t._instrumentationIsActive=!0,rh.forEach(r=>r());return}const n=t.inject;wb(t)&&!s4()&&(l4=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=r=>{const o=n(r);return xb.add(r),t._instrumentationIsActive=!0,rh.forEach(s=>s()),o}}(t.renderers.size||t._instrumentationIsActive||wb())&&e?.()}catch{}},JF=()=>KF.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),zo=e=>JF()?(Sb(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):QF(e),eI=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),tI=()=>{try{eI()&&zo()}catch{}},Sp=0,Io=1,c4=3,nI=5,rI=6,iI=7,aI=9,Ep=11,kp=13,Uu=14,Hu=15,oI=18,sI=22,lI=23,cI=26,uI=27,dI=60111,fI="Symbol(react.concurrent_mode)",hI="Symbol(react.async_mode)",WE=1,pI=2,mI=4096,gI=4,KE=8,vI=16,yI=32,bI=1024,_I=8192,QE=pI|gI|vI|yI|mI|_I|bI,$u=e=>{switch(e.tag){case nI:case cI:case uI:return!0;default:return typeof e.type=="string"}},Tp=e=>{switch(e.tag){case Sp:case Io:case Hu:case Uu:case Ep:return!0;default:return!1}},wI=(e,t)=>{try{const n=e.dependencies,r=e.alternate?.dependencies;if(!n||!r||typeof n!="object"||!("firstContext"in n)||typeof r!="object"||!("firstContext"in r))return!1;let o=n.firstContext,s=r.firstContext;
109for(;o&&typeof o=="object"&&"memoizedValue"in o||s&&typeof s=="object"&&"memoizedValue"in s;){if(t(o,s)===!0)return!0;o=o?.next,s=s?.next}}catch{}return!1},I0=e=>{const t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case Io:case Sp:case aI:case Ep:case Uu:case Hu:return(r&WE)===WE;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},j0=e=>(e.flags&(QE|KE))!==0||(e.subtreeFlags&(QE|KE))!==0,xI=e=>{const t=[],n=[e];for(;n.length;){const r=n.pop();r&&($u(r)&&j0(r)&&I0(r)&&t.push(r),r.child&&n.push(r.child),r.sibling&&n.push(r.sibling))}return t},U0=e=>{switch(e.tag){case oI:return!0;case rI:case iI:case lI:case sI:return!0;case c4:return!1;default:{const t=typeof e.type=="object"&&e.type!==null?e.type.$$typeof:e.type;switch(typeof t=="symbol"?t.toString():t){case dI:case fI:case hI:return!0;default:return!1}}}},SI=e=>{const t=[],n=[];for($u(e)?t.push(e):e.child&&n.push(e.child);n.length;){const r=n.pop();if(!r)break;$u(r)?t.push(r):r.child&&n.push(r.child),r.sibling&&n.push(r.sibling)}return t};function u4(e,t,n=!1){return e&&t(e)instanceof Promise?f4(e,t,n):d4(e,t,n)}const d4=(e,t,n=!1)=>
109{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){const o=d4(r,t,n);if(o)return o;r=n?null:r.sibling}return null},f4=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){const o=await f4(r,t,n);if(o)return o;r=n?null:r.sibling}return null},vo=e=>{const t=e?.actualDuration??0;let n=t,r=e?.child??null;for(;t>0&&r!=null;)n-=r.actualDuration??0,r=r.sibling;return{selfTime:n,totalTime:t}},Ru=e=>!!e.updateQueue?.memoCache,jo=e=>{const t=e;return typeof t=="function"?t:typeof t=="object"&&t?jo(t.type||t.render):null},rn=e=>{const t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;const n=t.displayName||t.name||null;if(n)return n;const r=jo(t);return r&&(r.displayName||r.name)||null},EI=e=>{try{if(typeof e.version=="string"&&e.bundleType>0)return"development"}catch{}return"production"},kI=()=>!!zo()._instrumentationIsActive||s4()||wb();let h4=0;const xl=new WeakMap,TI=(e,t=h4++)=>{xl.set(e,t)},La=e=>{let t=xl.get(e);return!t&&e.alternate&&(t=xl.get(e.alternate)),t||(t=h4++,TI(e,t)),t},Da=(e,t,n)=>{let r=t;for(;r!=null;){if(xl.has(r)||La(r),!U0(r)&&I0(r)&&e(r,"mount"),r.tag===kp)if(r.memoizedState!==null){const c=r.child,d=c?c.sibling:null;if(d){const f=d.child;f!==null&&Da(e,f,!1)}}else{let c=null;r.child!==null&&(c=r.child.child),c!==null&&Da(e,c,!1)}else r.child!=null&&Da(e,r.child,!0);r=n?r.sibling:null}},Eb=(e,t,n,r)=>{if(xl.has(t)||La(t),!n)return;xl.has(n)||La(n);const o=t.tag===kp;!U0(t)&&I0(t)&&e(t,"update");const c=o&&n.memoizedState!==null,d=o&&t.memoizedState!==null;if(c&&d){const f=t.child?.sibling??null,h=n.child?.sibling??null;f!==null&&h!==null&&Eb(e,f,h)}else if(c&&!d){const f=t.child;f!==null&&Da(e,f,!0)}else if(!c&&d){p4(e,n);const f=t.child?.sibling??null;f!==null&&Da(e,f,!0)}else if(t.child!==n.child){let f=t.child;for(;f;){if(f.alternate){const h=f.alternate;Eb(e,f,h)}else Da(e,f,!1);f=f.sibling}}},kb=(e,t)=>{(t.tag===c4||!U0(t))&&e(t,"unmount")},p4=(e,t)=>{const n=t.tag===kp&&t.memoizedState!==null;let r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(kb(e,r),p4(e,r)),r=r.sibling};let CI=0;const JE=new WeakMap,$I=(e,t)=>{const n="current"in e?e.current:e;let r=JE.get(e);r||(r={prevFiber:null,id:CI++},JE.set(e,r));const{prevFiber:o}=r;if(!n)kb(t,n);else if(o!==null){const s=o&&o.memoizedState!=null&&o.memoizedState.element!=null&&o.memoizedState.isDehydrated!==!0,c=n.memoizedState!=null&&n.memoizedState.element!=null&&n.memoizedState.isDehydrated!==!0;!s&&c?Da(t,n,!1):s&&c?Eb(t,n,n.alternate):s&&!c&&kb(t,n)}else Da(t,n,!0);r.prevFiber=n},RI=e=>zo(()=>{const t=zo();e.onActive?.(),t._instrumentationSource=e.name??F0;const n=t.onCommitFiberRoot;e.onCommitFiberRoot&&(t.onCommitFiberRoot=(s,c,d)=>{n&&n(s,c,d),e.onCommitFiberRoot?.(s,c,d)});const r=t.onCommitFiberUnmount;e.onCommitFiberUnmount&&(t.onCommitFiberUnmount=(s,c)=>{r&&r(s,c),e.onCommitFiberUnmount?.(s,c)});const o=t.onPostCommitFiberRoot;e.onPostCommitFiberRoot&&(t.onPostCommitFiberRoot=(s,c)=>{o&&o(s,c),e.onPostCommitFiberRoot?.(s,c)})});tI();var Cp,Oe,m4,g4,go,ek,v4,y4,b4,H0,Tb,Cb,_4,Au={},w4=[],AI=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Bu=Array.isArray;function Hi(e,t){for(var n in t)e[n]=t[n];return e}function B0(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Oo(e,t,n){var r,o,s,c={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:c[s]=t[s];if(arguments.length>2&&(c.children=arguments.length>3?Cp.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)c[s]===void 0&&(c[s]=e.defaultProps[s]);return ih(e,c,r,o,null)}function ih(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++m4,__i:-1,__u:0};return o==null&&Oe.vnode!=null&&Oe.vnode(s),s}function Ye(e){return e.children}function $r(e,t){this.props=e,this.context=t}function Sl(e,t){if(t==null)return e.__?Sl(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Sl(e):null}function x4(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return x4(e)}}function $b(e){(!e.__d&&(e.__d=!0)&&go.push(e)&&!Gh.__r++||ek!=Oe.debounceRendering)&&((ek=Oe.debounceRendering)||v4)(Gh)}function Gh(){for(var e,t,n,r,o,s,c,d=1;go.length;)go.length>d&&go.sort(y4),e=go.shift(),d=go.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,s=[],c=[],t.__P&&((n=Hi({},r)).__v=r.__v+1,Oe.vnode&&Oe.vnode(n),q0(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,
vendor: 9,378 bytes, line 109
109s,o??Sl(r),!!(32&r.__u),c),n.__v=r.__v,n.__.__k[n.__i]=n,k4(s,n,c),r.__e=r.__=null,n.__e!=o&&x4(n)));Gh.__r=0}function S4(e,t,n,r,o,s,c,d,f,h,g){var m,y,_,w,S,T,k,$=r&&r.__k||w4,z=t.length;for(f=MI(n,t,$,f,z),m=0;m<z;m++)(_=n.__k[m])!=null&&(y=_.__i==-1?Au:$[_.__i]||Au,_.__i=m,T=q0(e,_,y,o,s,c,d,f,h,g),w=_.__e,_.ref&&y.ref!=_.ref&&(y.ref&&V0(y.ref,null,_),g.push(_.ref,_.__c||w,_)),S==null&&w!=null&&(S=w),(k=!!(4&_.__u))||y.__k===_.__k?f=E4(_,f,e,k):typeof _.type=="function"&&T!==void 0?f=T:w&&(f=w.nextSibling),_.__u&=-7);return n.__e=S,f}function MI(e,t,n,r,o){var s,c,d,f,h,g=n.length,m=g,y=0;for(e.__k=new Array(o),s=0;s<o;s++)(c=t[s])!=null&&typeof c!="boolean"&&typeof c!="function"?(f=s+y,(c=e.__k[s]=typeof c=="string"||typeof c=="number"||typeof c=="bigint"||c.constructor==String?ih(null,c,null,null,null):Bu(c)?ih(Ye,{children:c},null,null,null):c.constructor==null&&c.__b>0?ih(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c).__=e,c.__b=e.__b+1,d=null,(h=c.__i=zI(c,n,f,m))!=-1&&(m--,(d=n[h])&&(d.__u|=2)),d==null||d.__v==null?(h==-1&&(o>g?y--:o<g&&y++),typeof c.type!="function"&&(c.__u|=4)):h!=f&&(h==f-1?y--:h==f+1?y++:(h>f?y--:y++,c.__u|=4))):e.__k[s]=null;if(m)for(s=0;s<g;s++)(d=n[s])!=null&&(2&d.__u)==0&&(d.__e==r&&(r=Sl(d)),C4(d,d));return r}function E4(e,t,n,r){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=E4(o[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Sl(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Yh(e,t){return t=t||[],e==null||typeof e=="boolean"||(Bu(e)?e.some(function(n){Yh(n,t)}):t.push(e)),t}function zI(e,t,n,r){var o,s,c,d=e.key,f=e.type,h=t[n],g=h!=null&&(2&h.__u)==0;if(h===null&&e.key==null||g&&d==h.key&&f==h.type)return n;if(r>(g?1:0)){for(o=n-1,s=n+1;o>=0||s<t.length;)if((h=t[c=o>=0?o--:s++])!=null&&(2&h.__u)==0&&d==h.key&&f==h.type)return c}return-1}function tk(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||AI.test(t)?n:n+"px"}function If(e,t,n,r,o){var s,c;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||tk(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||tk(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(b4,"$1")),c=t.toLowerCase(),t=c in e||t=="onFocusOut"||t=="onFocusIn"?c.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=H0,e.addEventListener(t,s?Cb:Tb,s)):e.removeEventListener(t,s?Cb:Tb,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function nk(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=H0++;else if(t.t<n.u)return;return n(Oe.event?Oe.event(t):t)}}}function q0(e,t,n,r,o,s,c,d,f,h){var g,m,y,_,w,S,T,k,$,z,N,O,I,j,L,G,X,D=t.type;if(t.constructor!=null)return null;128&n.__u&&(f=!!(32&n.__u),s=[d=t.__e=n.__e]),(g=Oe.__b)&&g(t);e:if(typeof D=="function")try{if(k=t.props,$="prototype"in D&&D.prototype.render,z=(g=D.contextType)&&r[g.__c],N=g?z?z.props.value:g.__:r,n.__c?T=(m=t.__c=n.__c).__=m.__E:($?t.__c=m=new D(k,N):(t.__c=m=new $r(k,N),m.constructor=D,m.render=NI),z&&z.sub(m),m.props=k,m.state||(m.state={}),m.context=N,m.__n=r,y=m.__d=!0,m.__h=[],m._sb=[]),$&&m.__s==null&&(m.__s=m.state),$&&D.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=Hi({},m.__s)),Hi(m.__s,D.getDerivedStateFromProps(k,m.__s))),_=m.props,w=m.state,m.__v=t,y)$&&D.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),$&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if($&&D.getDerivedStateFromProps==null&&k!==_&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(k,N),!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(k,m.__s,N)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(m.props=k,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Z){Z&&(Z.__=t)}),O=0;O<m._sb.length;O++)m.__h.push(m._sb[O]);m._sb=[],m.__h.length&&c.push(m);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(k,m.__s,N),$&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(_,w,S)})}if(m.context=N,m.props=k,m.__P=e,m.__e=!1,I=Oe.__r,j=0,$){for(m.state=m.__s,m.__d=!1,I&&I(t),g=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do m.__d=!1,I&&I(t),g=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++j<25);m.state=m.__s,m.getChildContext!=null&&(r=Hi(Hi({},r),m.getChildContext())),$&&!y&&m.getSnapshotBeforeUpdate!=null&&(S=m.getSnapshotBeforeUpdate(_,w)),G=g,g!=null&&g.type===Ye&&g.key==null&&(G=T4(g.props.children)),d=S4(e,Bu(G)?G:[G],t,n,r,o,s,c,d,f,h),m.base=t.__e,t.__u&=-161,m.__h.length&&c.push(m),T&&(m.__E=m.__=null)}catch(Z){if(t.__v=null,f||s!=null)if(Z.then){for(t.__u|=f?160:128;d&&d.nodeType==8&&d.nextSibling;)d=d.nextSibling;s[s.indexOf(d)]=null,t.__e=d}else{for(X=s.length;X--;)B0(s[X]);Rb(t)}else t.__e=n.__e,t.__k=n.__k,Z.then||Rb(t);Oe.__e(Z,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):d=t.__e=OI(n.__e,t,n,r,o,s,c,f,h);return(g=Oe.diffed)&&g(t),128&t.__u?void 0:d}function Rb(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Rb)}function k4(e,t,n){for(var r=0;r<n.length;r++)V0(n[r],n[++r],n[++r]);Oe.__c&&Oe.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){Oe.__e(s,o.__v)}})}function T4(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Bu(e)?e.map(T4):Hi({},e)}function OI(e,t,n,r,o,s,c,d,f){var h,g,m,y,_,w,S,T=n.props,k=t.props,$=t.type;if($=="svg"?o="http://www.w3.org/2000/svg":$=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(h=0;h<s.length;h++)if((_=s[h])&&"setAttribute"in _==!!$&&($?_.localName==$:_.nodeType==3)){e=_,s[h]=null;break}}if(e==null){if($==null)return document.createTextNode(k);e=document.createElementNS(o,$,k.is&&k),d&&(Oe.__m&&Oe.__m(t,s),d=!1),s=null}if($==null)T===k||d&&e.data==k||(e.data=k);else{if(s=s&&Cp.call(e.childNodes),T=n.props||Au,!d&&s!=null)for(T={},h=0;h<e.attributes.length;h++)T[(_=e.attributes[h]).name]=_.value;for(h in T)if(_=T[h],h!="children"){if(h=="dangerouslySetInnerHTML")m=_;else if(!(h in k)){if(h=="value"&&"defaultValue"in k||h=="checked"&&"defaultChecked"in k)continue;If(e,h,null,_,o)}}for(h in k)_=k[h],h=="children"?y=_:h=="dangerouslySetInnerHTML"?g=_:h=="value"?w=_:h=="checked"?S=_:d&&typeof _!="function"||T[h]===_||If(e,h,_,T[h],o);if(g)d||m&&(g.__html==m.__html||g.__html==e.innerHTML)||(e.innerHTML=g.__html),t.__k=[];else if(m&&(e.innerHTML=""),S4(t.type=="template"?e.content:e,Bu(y)?y:[y],t,n,r,$=="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,c,s?s[0]:n.__k&&Sl(n,0),d,f),s!=null)for(h=s.length;h--;)B0(s[h]);d||(h="value",$=="progress"&&w==null?e.removeAttribute("value"):w!=null&&(w!==e[h]||$=="progress"&&!w||$=="option"&&w!=T[h])&&If(e,h,w,T[h],o),h="checked",S!=null&&S!=e[h]&&If(e,h,S,T[h],o))}return e}function V0(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){Oe.__e(o,n)}}function C4(e,t,n){var r,o;if(Oe.unmount&&Oe.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||V0(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){Oe.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&C4(r[o],t,n||typeof e.type!="function");n||B0(e.__e),e.__c=e.__=e.__e=void 0}function NI(e,t,n){return this.constructor(e,n)}function uu(e,t,n){var r,o,s,c;t==document&&(t=document.documentElement),Oe.__&&Oe.__(e,t),o=(r=!1)?null:t.__k,s=[],c=[],q0(t,e=t.__k=Oo(Ye,null,[e]),o||Au,Au,t.namespaceURI,o?null:t.firstChild?Cp.call(t.childNodes):null,s,o?o.__e:t.firstChild,r,c),k4(s,e,c)}function $4(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&r.forEach(function(c){c.__e=!0,$b(c)})},this.sub=function(s){r.add(s);var c=s.componentWillUnmount;s.componentWillUnmount=function(){r&&r.delete(s),c&&c.call(s)}}),n.children}return t.__c="__cC"+_4++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Cp=w4.slice,Oe={__e:function(e,t,n,r){for(var o,s,c;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),c=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),c=o.__d),c)return o.__E=o}catch(d){e=d}throw e}},m4=0,g4=function(e){return e!=null&&e.constructor==null},$r.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Hi({},this.state),typeof e=="function"&&(e=e(Hi({},n),this.props)),e&&Hi(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),$b(this))},$r.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$b(this))},$r.prototype.render=Ye,go=[],v4=typeof Promise=="function"?Promise.prototype.then.bind(Prom
vendor: 16,220 bytes, line 109
109ise.resolve()):setTimeout,y4=function(e,t){return e.__v.__b-t.__v.__b},Gh.__r=0,b4=/(PointerCapture)$|Capture$/i,H0=0,Tb=nk(!1),Cb=nk(!0),_4=0;var No,wt,Iv,rk,Mu=0,R4=[],It=Oe,ik=It.__b,ak=It.__r,ok=It.diffed,sk=It.__c,lk=It.unmount,ck=It.__;function qu(e,t){It.__h&&It.__h(wt,e,Mu||t),Mu=0;var n=wt.__H||(wt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ie(e){return Mu=1,DI(A4,e)}function DI(e,t,n){var r=qu(No++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):A4(void 0,t),function(d){var f=r.__N?r.__N[0]:r.__[0],h=r.t(f,d);f!==h&&(r.__N=[h,r.__[1]],r.__c.setState({}))}],r.__c=wt,!wt.__f)){var o=function(d,f,h){if(!r.__c.__H)return!0;var g=r.__c.__H.__.filter(function(y){return!!y.__c});if(g.every(function(y){return!y.__N}))return!s||s.call(this,d,f,h);var m=r.__c.props!==d;return g.forEach(function(y){if(y.__N){var _=y.__[0];y.__=y.__N,y.__N=void 0,_!==y.__[0]&&(m=!0)}}),s&&s.call(this,d,f,h)||m};wt.__f=!0;var s=wt.shouldComponentUpdate,c=wt.componentWillUpdate;wt.componentWillUpdate=function(d,f,h){if(this.__e){var g=s;s=void 0,o(d,f,h),s=g}c&&c.call(this,d,f,h)},wt.shouldComponentUpdate=o}return r.__N||r.__}function Le(e,t){var n=qu(No++,3);!It.__s&&Z0(n.__H,t)&&(n.__=e,n.u=t,wt.__H.__h.push(n))}function G0(e,t){var n=qu(No++,4);!It.__s&&Z0(n.__H,t)&&(n.__=e,n.u=t,wt.__h.push(n))}function Ce(e){return Mu=5,Vr(function(){return{current:e}},[])}function Vr(e,t){var n=qu(No++,7);return Z0(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ft(e,t){return Mu=8,Vr(function(){return e},t)}function Y0(e){var t=wt.context[e.__c],n=qu(No++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(wt)),t.props.value):e.__}function PI(){for(var e;e=R4.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ah),e.__H.__h.forEach(Ab),e.__H.__h=[]}catch(t){e.__H.__h=[],It.__e(t,e.__v)}}It.__b=function(e){wt=null,ik&&ik(e)},It.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ck&&ck(e,t)},It.__r=function(e){ak&&ak(e),No=0;var t=(wt=e.__c).__H;t&&(Iv===wt?(t.__h=[],wt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ah),t.__h.forEach(Ab),t.__h=[],No=0)),Iv=wt},It.diffed=function(e){ok&&ok(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(R4.push(t)!==1&&rk===It.requestAnimationFrame||((rk=It.requestAnimationFrame)||LI)(PI)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Iv=wt=null},It.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ah),n.__h=n.__h.filter(function(r){return!r.__||Ab(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],It.__e(r,n.__v)}}),sk&&sk(e,t)},It.unmount=function(e){lk&&lk(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ah(r)}catch(o){t=o}}),n.__H=void 0,t&&It.__e(t,n.__v))};var uk=typeof requestAnimationFrame=="function";function LI(e){var t,n=function(){clearTimeout(r),uk&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);uk&&(t=requestAnimationFrame(n))}function ah(e){var t=wt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),wt=t}function Ab(e){var t=wt;e.__c=e.__(),wt=t}function Z0(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function A4(e,t){return typeof t=="function"?t(e):t}var FI=Symbol.for("preact-signals");function $p(){if(Pa>1)Pa--;else{for(var e,t=!1;du!==void 0;){var n=du;for(du=void 0,Mb++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&z4(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Mb=0,Pa--,t)throw e}}function uV(e){if(Pa>0)return e();Pa++;try{return e()}finally{$p()}}var et=void 0;function zu(e){var t=et;et=void 0;try{return e()}finally{et=t}}var du=void 0,Pa=0,Mb=0,Zh=0;function M4(e){if(et!==void 0){var t=e.n;if(t===void 0||t.t!==et)return t={i:0,S:e,p:et.s,n:void 0,t:et,e:void 0,x:void 0,r:t},et.s!==void 0&&(et.s.n=t),et.s=t,e.n=t,32&et.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=et.s,t.n=void 0,et.s.n=t,et.s=t),t}}function mn(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}mn.prototype.brand=FI;mn.prototype.h=function(){return!0};mn.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:zu(function(){var r;(r=t.W)==null||r.call(t)}))};mn.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&zu(function(){var o;(o=t.Z)==null||o.call(t)}))}};mn.prototype.subscribe=function(e){var t=this;return Rp(function(){var n=t.value,r=et;et=void 0;try{e(n)}finally{et=r}},{name:"sub"})};mn.prototype.valueOf=function(){return this.value};mn.prototype.toString=function(){return this.value+""};mn.prototype.toJSON=function(){return this.value};mn.prototype.peek=function(){var e=et;et=void 0;try{return this.value}finally{et=e}};Object.defineProperty(mn.prototype,"value",{get:function(){var e=M4(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Mb>100)throw new Error("Cycle detected");this.v=e,this.i++,Zh++,Pa++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{$p()}}}});function Zt(e,t){return new mn(e,t)}function z4(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function O4(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function N4(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Uo(e,t){mn.call(this,void 0),this.x=e,this.s=void 0,this.g=Zh-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Uo.prototype=new mn;Uo.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Zh))return!0;if(this.g=Zh,this.f|=1,this.i>0&&!z4(this))return this.f&=-2,!0;var e=et;try{O4(this),et=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return et=e,N4(this),this.f&=-2,!0};Uo.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}mn.prototype.S.call(this,e)};Uo.prototype.U=function(e){if(this.t!==void 0&&(mn.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Uo.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Uo.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=M4(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ho(e,t){return new Uo(e,t)}function D4(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Pa++;var n=et;et=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,X0(e),r}finally{et=n,$p()}}}function X0(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,D4(e)}function II(e){if(et!==this)throw new Error("Out-of-order effect");N4(this),et=e,this.f&=-2,8&this.f&&X0(this),$p()}function Cl(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t?.name}Cl.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Cl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,D4(this),O4(this),Pa++;var e=et;return et=this,II.bind(this,e)};Cl.prototype.N=function(){2&this.f||(this.f|=2,this.o=du,du=this)};Cl.prototype.d=function(){this.f|=8,1&this.f||X0(this)};Cl.prototype.dispose=function(){this.d()};function Rp(e,t){var n=new Cl(e,t);try{n.c()}catch(o){throw n.d(),o}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var jv;function $l(e,t){Oe[e]=t.bind(null,Oe[e]||function(){})}function Xh(e){jv&&jv(),jv=e&&e.S()}function P4(e){var t=this,n=e.data,r=UI(n);r.value=n;var o=Vr(function(){for(var s=t.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}return t.__$u.c=function(){var c,d=t.__$u.S(),f=o.value;d(),g4(f)||((c=t.base)==null?void 0:c.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=f},Ho(function(){var c=r.value.value;return c===0?0:c===!0?"":c||""})},[]);return o.value}P4.displayName="_st";Object.defineProperties(mn.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:P4},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});$l("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var s=r[o];s instanceof mn&&(n||(t.__np=n={}),n[o]=s,r[o]=s.peek())}}e(t)});$l("__r",function(e,t){Xh();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(o){var s;return Rp(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s})())),Xh(n),e(t)});$l("__e",function(e,t,n,r){Xh(),e(t,n,r)});$l("diffed",function(e,t){Xh();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var s=n.U;if(s)for(var c in s){var d=s[c];d!==void 0&&!(c in r)&&(d.d(),s[c]=void 0)}else n.U=s={};for(var f in r){var h=s[f],g=r[f];h===void 0?(h=jI(n,f,g,o),s[f]=h):h.o(g,o)}}}e(t)});function jI(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,s=Zt(n);return{o:function(c,d){s.value=c,r=d},d:Rp(function(){var c=s.value.value;r[t]!==c&&(r[t]=c,o?e[t]=c:c?e.setAttribute(t,c):e.removeAttribute(t))})}}$l("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var s=r[o];s&&s.d()}}}}else{var c=t.__c;if(c){var d=c.__$u;d&&(c.__$u=void 0,d.d())}}e(t)});$l("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});$r.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var c in this.props)if(!(c in e))return!0;return!1};function UI(e){return Vr(function(){return Zt(e)},[])}function Ou(e){var t=Ce(e);t.current=e,Le(function(){return Rp(function(){return t.current()})},[])}function L4(e,t){for(var n in t)e[n]=t[n];return e}function zb(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function HI(e,t){var n=t(),r=Ie({t:{__:n,u:t}}),o=r[0].t,s=r[1];return G0(function(){o.__=n,o.u=t,Uv(o)&&s({t:o})},[e,n,t]),Le(function(){return Uv(o)&&s({t:o}),e(function(){Uv(o)&&s({t:o})})},[e]),n}function Uv(e){var t,n,r=e.u,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function dk(e,t){this.props=e,this.context=t}function Ap(e,t){function n(o){var s=this.props.ref,c=s==o.ref;return!c&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!c:zb(this.props,o)}function r(o){return this.shouldComponentUpdate=n,Oo(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(dk.prototype=new $r).isPureReactComponent=!0,dk.prototype.shouldComponentUpdate=function(e,t){return zb(this.props,e)||zb(this.state,t)};var fk=Oe.__b;Oe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fk&&fk(e)};var BI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function W0(e){function t(n){var r=L4({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=BI,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var qI=Oe.__e;Oe.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}qI(e,t,n,r)};var hk=Oe.unmount;function F4(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=L4({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return F4(r,t,n)})),e}function I4(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return I4(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Hv(){this.__u=0,this.o=null,this.__b=null}function j4(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function jf(){this.i=null,this.l=null}Oe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),hk&&hk(e)},(Hv.prototype=new $r).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=j4(r.__v),s=!1,c=function(){s||(s=!0,n.__R=null,o?o(d):d())};n.__R=c;var d=function(){if(!--r.__u){if(r.state.__a){var f=r.state.__a;r.__v.__k[0]=I4(f,f.__c.__P,f.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.o.pop();)h.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(c,c)},Hv.prototype.componentWillUnmount=function(){this.o=[]},Hv.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=F4(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Oo(Ye,null,e.fallback);return o&&(o.__u&=-33),[Oo(Ye,null,t.__a?null:e.children),o]};var pk=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function VI(e){return this.getChildContext=function(){return e.context},e.children}function GI(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){uu(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(o,s){this.childNodes.push(o),t.h.insertBefore(o,s)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}uu(Oo(VI,{context:t.context},e.__v),t.v)}function YI(e,t){var n=Oo(GI,{__v:e,h:t});return n.containerInfo=t,n}(jf.prototype=new $r).__a=function(e){var t=this,n=j4(t.__v),r=t.l.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),pk(t,e,r)):o()};n?n(s):s()}},jf.prototype.render=function(e){this.i=null,this.l=new Map;var t=Yh(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},jf.prototype.componentDidUpdate=jf.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){pk(e,n,t)})};var ZI=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,XI=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,WI=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,KI=/[A-Z0-9]/g,QI=typeof document<"u",JI=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};$r.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($r.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var mk=Oe.event;function e9(){}function t9(){return this.cancelBubble}function n9(){return this.defaultPrevented}Oe.event=function(e){return mk&&(e=mk(e)),e.persist=e9,e.isPropagationStopped=t9,e.isDefaultPrevented=n9,e.nativeEvent=e};var r9={enumerable:!1,configurable:!0,get:function(){return this.class}},gk=Oe.vnode;Oe.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},s=r.indexOf("-")===-1;for(var c in n){var d=n[c];if(!(c==="value"&&"defaultValue"in n&&d==null||QI&&c==="children"&&r==="noscript"||c==="class"||c==="className")){var f=c.toLowerCase();c==="defaultValue"&&"value"in n&&n.value==null?c="value":c==="download"&&d===!0?d="":f==="translate"&&d==="no"?d=!1:f[0]==="o"&&f[1]==="n"?f==="ondoubleclick"?c="ondblclick":f!=="onchange"||r!=="input"&&r!=="textarea"||JI(n.type)?f==="onfocus"?c="onfocusin":f==="onblur"?c="onfocusout":WI.test(c)&&(c=f):f=c="onin
109put":s&&XI.test(c)?c=c.replace(KI,"-$&").toLowerCase():d===null&&(d=void 0),f==="oninput"&&o[c=f]&&(c="oninputCapture"),o[c]=d}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Yh(n.children).forEach(function(h){h.props.selected=o.value.indexOf(h.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Yh(n.children).forEach(function(h){h.props.selected=o.multiple?o.defaultValue.indexOf(h.props.value)!=-1:o.defaultValue==h.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",r9)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=ZI,gk&&gk(e)};var vk=Oe.__r;Oe.__r=function(e){vk&&vk(e),e.__c};var yk=Oe.diffed;Oe.diffed=function(e){yk&&yk(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};var i9=0;function b(e,t,n,r,o,s){t||(t={});var c,d,f=t;if("ref"in f)for(d in f={},t)d=="ref"?c=t[d]:f[d]=t[d];var h={type:e,props:f,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--i9,__i:-1,__u:0,__source:o,__self:s};if(typeof e=="function"&&(c=e.defaultProps))for(d in c)f[d]===void 0&&(f[d]=c[d]);return Oe.vnode&&Oe.vnode(h),h}Array.prototype.toSorted||Object.defineProperty(Array.prototype,"toSorted",{value:function(e){return[...this].sort(e)},writable:!0,configurable:!0});function a9(e,t){return t-e}function o9(e){let t=e[0].name;const n=e.length,r=Math.min(4,n);for(let o=1;o<r;o++)t+=`, ${e[o].name}`;return t}function s9(e){let t=e[0].time;for(let n=1,r=e.length;n<r;n++)t+=e[n].time;return t}function l9(e){for(let t=0,n=e.length;t<n;t++)if(e[t].forget)return!0;return!1}var c9=e=>{let t="";const n=new Map;for(const c of e){const{forget:d,time:f,aggregatedCount:h,name:g}=c;n.has(h)||n.set(h,[]);const m=n.get(h);m&&m.push({name:g,forget:d,time:f??0})}const r=Array.from(n.keys()).sort(a9),o=[];let s=0;for(const c of r){const d=n.get(c);if(!d)continue;let f=o9(d);const h=s9(d),g=l9(d);s+=h,d.length>4&&(f+="â¦"),c>1&&(f+=` à ${c}`),g&&(f=`â¨${f}`),o.push(f)}return t=o.join(", "),t.length?(t.length>40&&(t=`${t.slice(0,40)}â¦`),s>=.01&&(t+=` (${Number(s.toFixed(2))}ms)`),t):null};function Fa(e,t){return e===t||e!==e&&t!==t}var K0=e=>{const t=e.createOscillator(),n=e.createGain();t.connect(n),n.connect(e.destination);const r={type:"sine",freq:[392,600],duration:.3,gain:.12},o=r.freq,s=r.duration/o.length;o.forEach((c,d)=>{t.frequency.setValueAtTime(c,e.currentTime+d*s)}),t.type=r.type,n.gain.setValueAtTime(r.gain,e.currentTime),n.gain.setTargetAtTime(0,e.currentTime+r.duration*.7,.05),t.start(),t.stop(e.currentTime+r.duration)},u9=e=>new Promise(t=>{const n=new Map,r=new IntersectionObserver(o=>{for(const s of o){const c=s.target,d=s.boundingClientRect;n.set(c,d)}r.disconnect(),t(n)});for(const o of e)r.observe(o)}),d9={mount:1,update:2,unmount:4},Ot=W0(({size:e=15,name:t,fill:n="currentColor",stroke:r="currentColor",className:o,externalURL:s="",style:c},d)=>{const f=Array.isArray(e)?e[0]:e,h=Array.isArray(e)?e[1]||e[0]:e,g=`${s}#${t}`;return b("svg",{ref:d,width:`${f}px`,height:`${h}px`,fill:n,stroke:r,className:o,style:{...c,minWidth:`${f}px`,maxWidth:`${f}px`,minHeight:`${h}px`,maxHeight:`${h}px`},children:[b("title",{children:t}),b("use",{href:g})]})}),ze=24,Yt={width:550,height:350,initialHeight:400},Ur=240,Bi="react-scan-widget-settings-v2",oh="react-scan-widget-collapsed-v1",Ns="react-scan-widget-last-view-v1",ui=typeof window<"u";function U4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=U4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function f9(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=U4(e))&&(r&&(r+=" "),r+=t);return r}var Q0="-",h9=e=>{const t=m9(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const d=c.split(Q0);return d[0]===""&&d.length!==1&&d.shift(),H4(d,t)||p9(c)},getConflictingClassGroupIds:(c,d)=>{const f=n[c]||[];return d&&r[c]?[...f,...r[c]]:f}}},H4=(e,t)=>
vendor: 5,539 bytes, line 109
109{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?H4(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Q0);return t.validators.find(({validator:c})=>c(s))?.classGroupId},bk=/^\[(.+)\]$/,p9=e=>{if(bk.test(e)){const t=bk.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},m9=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return v9(Object.entries(e.classGroups),n).forEach(([s,c])=>{Ob(c,r,s,t)}),r},Ob=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:_k(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(g9(o)){Ob(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{Ob(c,_k(t,s),n,r)})})},_k=(e,t)=>{let n=e;return t.split(Q0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},g9=e=>e.isThemeGetter,v9=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,d])=>[t+c,d])):s);return[n,o]}):e,y9=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=r.get(s))!==void 0)return o(s,c),c},set(s,c){n.has(s)?n.set(s,c):o(s,c)}}},B4="!",b9=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,c=d=>{const f=[];let h=0,g=0,m;for(let T=0;T<d.length;T++){let k=d[T];if(h===0){if(k===o&&(r||d.slice(T,T+s)===t)){f.push(d.slice(g,T)),g=T+s;continue}if(k==="/"){m=T;continue}}k==="["?h++:k==="]"&&h--}const y=f.length===0?d:d.substring(g),_=y.startsWith(B4),w=_?y.substring(1):y,S=m&&m>g?m-g:void 0;return{modifiers:f,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:S}};return n?d=>n({className:d,parseClassName:c}):c},_9=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},w9=e=>({cache:y9(e.cacheSize),parseClassName:b9(e),...h9(e)}),x9=/\s+/,S9=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],c=e.trim().split(x9);let d="";for(let f=c.length-1;f>=0;f-=1){const h=c[f],{modifiers:g,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:_}=n(h);let w=!!_,S=r(w?y.substring(0,_):y);if(!S){if(!w){d=h+(d.length>0?" "+d:d);continue}if(S=r(y),!S){d=h+(d.length>0?" "+d:d);continue}w=!1}const T=_9(g).join(":"),k=m?T+B4:T,$=k+S;if(s.includes($))continue;s.push($);const z=o(S,w);for(let N=0;N<z.length;++N){const O=z[N];s.push(k+O)}d=h+(d.length>0?" "+d:d)}return d};function E9(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=q4(t))&&(r&&(r+=" "),r+=n);return r}var q4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=q4(e[r]))&&(n&&(n+=" "),n+=t);return n};function k9(e,...t){let n,r,o,s=c;function c(f){const h=t.reduce((g,m)=>m(g),e());return n=w9(h),r=n.cache.get,o=n.cache.set,s=d,d(f)}function d(f){const h=r(f);if(h)return h;const g=S9(f,n);return o(f,g),g}return function(){return s(E9.apply(null,arguments))}}var mt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},V4=/^\[(?:([a-z-]+):)?(.+)\]$/i,T9=/^\d+\/\d+$/,C9=new Set(["px","full","screen"]),$9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,R9=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A9=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,M9=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z9=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Di=e=>ol(e)||C9.has(e)||T9.test(e),ka=e=>Rl(e,"length",j9),ol=e=>!!e&&!Number.isNaN(Number(e)),Bv=e=>Rl(e,"number",ol),Fc=e=>!!e&&Number.isInteger(Number(e)),O9=e=>e.endsWith("%")&&ol(e.slice(0,-1)),Pe=e=>V4.test(e),Ta=e=>$9.test(e),N9=new Set(["length","size","percentage"]),D9=e=>Rl(e,N9,G4),P9=e=>Rl(e,"position",G4),L9=new Set(["image","url"]),F9=e=>Rl(e,L9,H9),I9=e=>Rl(e,"",U9),Ic=()=>!0,Rl=(e,t,n)=>{const r=V4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},j9=e=>R9.test(e)&&!A9.test(e),G4=()=>!1,U9=e=>M9.test(e),H9=e=>z9.test(e),B9=()=>{const e=mt("colors"),t=mt("spacing"),n=mt("blur"),r=mt("brightness"),o=mt("borderColor"),s=mt("borderRadius"),c=mt("borderSpacing"),d=mt("borderWidth"),f=mt("contrast"),h=mt("grayscale"),g=mt("hueRotate"),m=mt("invert"),y=mt("gap"),_=mt("gradientColorStops"),w=mt("gradientColorStopPositions"),S=mt("inset"),T=mt("margin"),k=mt("opacity"),$=mt("padding"),z=mt("saturate"),N=mt("scale"),O=mt("sepia"),I=mt("skew"),j=mt("space"),L=mt("translate"),G=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",Pe,t],Z=()=>[Pe,t],ce=()=>["",Di,ka],H=()=>["auto",ol,Pe],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Pe],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[ol,Pe];return{cacheSize:500,separator:":",theme:{colors:[Ic],spacing:[Di,ka],blur:["none","",Ta,Pe],brightness:M(),borderColor:[e],borderRadius:["n
109one","","full",Ta,Pe],borderSpacing:Z(),borderWidth:ce(),contrast:M(),grayscale:q(),hueRotate:M(),invert:q(),gap:Z(),gradientColorStops:[e],gradientColorStopPositions:[O9,ka],inset:D(),margin:D(),opacity:M(),padding:Z(),saturate:M(),scale:M(),sepia:q(),skew:M(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[Ta]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),Pe]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fc,Pe]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Fc,Pe]}],"grid-cols":[{"grid-cols":[Ic]}],"col-start-end":[{col:["auto",{span:["full",Fc,Pe]},Pe]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[Ic]}],"row-start-end":[{row:["auto",{span:[Fc,Pe]},Pe]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[Ta]},Ta]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ta,ka]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bv]}],"font-family":[{font:[Ic]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",ol,Bv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Di,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Di,ka]}],"underline-offset":[{"underline-offset":["auto",Di,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),P9]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",D9]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},F9]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}
vendor: 5,181 bytes, line 109
109],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:E()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[Di,Pe]}],"outline-w":[{outline:[Di,ka]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Di,ka]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ta,I9]}],"shadow-color":[{shadow:[Ic]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...R(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":R()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",Ta,Pe]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[m]}],saturate:[{saturate:[z]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Fc,Pe]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
109],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Di,ka,Bv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},q9=k9(B9),B=(...e)=>q9(f9(e));typeof navigator<"u"&&navigator.userAgent.includes("Firefox");var Y4=(e,t)=>{let n=0;return r=>{const o=Date.now();if(o-n>=t)return n=o,e(r)}},Gi=e=>{if(!ui)return null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},Un=(e,t)=>{if(ui)try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}},wk=e=>{if(ui)try{window.localStorage.removeItem(e)}catch{}},V9=24,G9=12,Nu=e=>{if(!e)return{name:"Unknown",wrappers:[],wrapperTypes:[]};const{tag:t,type:n,elementType:r}=e;let o=rn(n);const s=[],c=[];if(Ru(e)||t===Hu||t===Uu||n?.$$typeof===Symbol.for("react.memo")||r?.$$typeof===Symbol.for("react.memo")){const d=Ru(e);c.push({type:"memo",title:d?"This component has been auto-memoized by the React Compiler.":"Memoized component that skips re-renders if props are the same",compiler:d})}if(t===V9&&c.push({type:"lazy",title:"Lazily loaded component that supports code splitting"}),t===kp&&c.push({type:"suspense",title:"Component that can suspend while content is loading"}),t===G9&&c.push({type:"profiler",title:"Component that measures rendering performance"}),typeof o=="string"){const d=/^(\w+)\((.*)\)$/;let f=o;for(;d.test(f);){const h=f.match(d);if(h?.[1]&&h?.[2])s.unshift(h[1]),f=h[2];else break}o=f}return{name:o||"Unknown",wrappers:s,wrapperTypes:c}},Mp=Zt(!1),Nb=Zt(null),Jr={corner:"bottom-right",dimensions:{isFullWidth:!1,isFullHeight:!1,width:Yt.width,height:Yt.height,position:{x:ze,y:ze}},lastDimensions:{isFullWidth:!1,isFullHeight:!1,width:Yt.width,height:Yt.height,position:{x:ze,y:ze}}
109,componentsTree:{width:Ur}},Y9=()=>{const e=Gi(Bi);return e?{corner:e.corner??Jr.corner,dimensions:e.dimensions??Jr.dimensions,lastDimensions:e.lastDimensions??e.dimensions??Jr.lastDimensions,componentsTree:e.componentsTree??Jr.componentsTree}:(Un(Bi,{corner:Jr.corner,dimensions:Jr.dimensions,lastDimensions:Jr.lastDimensions,componentsTree:Jr.componentsTree}),Jr)},_e=Zt(Y9()),qv=()=>{if(!ui)return;const{dimensions:e}=_e.value,{width:t,height:n,position:r}=e;_e.value={..._e.value,dimensions:{isFullWidth:t>=window.innerWidth-ze*2,isFullHeight:n>=window.innerHeight-ze*2,width:t,height:n,position:r}}},dt=Zt({view:"none"}),Z9=Gi(oh),er=Zt(Z9??null);function X9(){return!1}function J0(e){function t(n){return this.shouldComponentUpdate=X9,Oo(e,n)}return t.displayName=`Memo(${e.displayName||e.name})`,t.prototype.isReactComponent=!0,t._forwarded=!0,t}var W9=e=>{const{count:t,getScrollElement:n,estimateSize:r,overscan:o=5}=e,[s,c]=Ie(0),[d,f]=Ie(0),h=Ce(),g=Ce(null),m=Ce(null),y=r(),_=Ft(k=>{if(!g.current)return;const $=k?.[0]?.contentRect.height??g.current.getBoundingClientRect().height;f($)},[]),w=Ft(()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{_(),m.current=null})},[_]);Le(()=>{const k=n();if(!k)return;g.current=k;const $=()=>{g.current&&c(g.current.scrollTop)};_(),h.current||(h.current=new ResizeObserver(()=>{w()})),h.current.observe(k),k.addEventListener("scroll",$,{passive:!0});const z=new MutationObserver(w);return z.observe(k,{attributes:!0,childList:!0,subtree:!0}),()=>{k.removeEventListener("scroll",$),h.current&&h.current.disconnect(),z.disconnect(),m.current!==null&&cancelAnimationFrame(m.current)}},[n,_,w]);const S=Vr(()=>{const k=Math.floor(s/y),$=Math.ceil(d/y);return{start:Math.max(0,k-o),end:Math.min(t,k+$+o)}},[s,y,d,t,o]);return{virtualItems:Vr(()=>{const k=[];for(let $=S.start;$<S.end;$++)k.push({key:$,index:$,start:$*y});return k},[S,y]),totalSize:t*y,scrollTop:s,containerHeight:d}};Gi("react-scann-pinned");var K9=e=>{const t=[];let n=e;for(;n;){const r=n.elementType,o=typeof r=="function"?r.displayName||r.name:typeof r=="string"?r:"Unknown",s=n.index!==void 0?`[${n.index}]`:"";t.unshift(`${o}${s}`),n=n.return??null}return t.join("::")},uo=new WeakMap,Q9=(e,t)=>{const n=t.bind(null,e);return document.addEventListener("scroll",n,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",n,{capture:!0})}},J9={activeFlashes:new Map,create(e){const t=e.querySelector(".react-scan-flash-overlay"),n=t instanceof HTMLElement?t:(()=>{const o=document.createElement("div");o.className="react-scan-flash-overlay",e.appendChild(o);const s=Q9(e,()=>{e.querySelector(".react-scan-flash-overlay")&&this.create(e)});return this.activeFlashes.set(e,{element:e,overlay:o,scrollCleanup:s}),o})(),r=uo.get(n);r&&(clearTimeout(r),uo.delete(n)),requestAnimationFrame(()=>{n.style.transition="none",n.style.opacity="0.9";const o=setTimeout(()=>{n.style.transition="opacity 150ms ease-out",n.style.opacity="0";const s=setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n);const c=this.activeFlashes.get(e);c?.scrollCleanup&&c.scrollCleanup(),this.activeFlashes.delete(e),uo.delete(n)},150);uo.set(n,s)},300);uo.set(n,o)})},cleanup(e){const t=this.activeFlashes.get(e);if(t){const n=uo.get(t.overlay);n&&(clearTimeout(n),uo.delete(t.overlay)),t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay),t.scrollCleanup&&t.scrollCleanup(),this.activeFlashes.delete(e)}},cleanupAll(){for(const[,e]of this.activeFlashes)this.cleanup(e.element)}},xk=1e3,Z4={updates:[],currentFiber:null,totalUpdates:0,windowOffset:0,currentIndex:0,isViewingHistory:!1,latestFiber:null,isVisible:!1,playbackSpeed:1},Tn=Zt(Z4),e_=Zt(0),yo=[],fo=null,ej=()=>{if(yo.length===0)return;const e=[...yo],{updates:t,totalUpdates:n,currentIndex:r,isViewingHistory:o}=Tn.value,s=[...t];let c=n;for(const{update:g}of e)s.length>=xk&&s.shift(),s.push(g),c++;const d=Math.max(0,c-xk);let f;o?r===n-1?f=s.length-1:r===0?f=0:d===0?f=r:f=r-1:f=s.length-1;const h=e[e.length-1];Tn.value={...Tn.value,latestFiber:h.fiber,updates:s,totalUpdates:c,windowOffset:d,currentIndex:f,isViewingHistory:o},yo=yo.slice(e.length)},X4={showTimeline:()=>{Tn.value={...Tn.value,isVisible:!0}},hideTimeline:()=>
109{Tn.value={...Tn.value,isVisible:!1,currentIndex:Tn.value.updates.length-1}},updateFrame:(e,t)=>{Tn.value={...Tn.value,currentIndex:e,isViewingHistory:t}},updatePlaybackSpeed:e=>{Tn.value={...Tn.value,playbackSpeed:e}},addUpdate:(e,t)=>{if(yo.push({update:e,fiber:t}),!fo){const n=()=>{ej(),fo=null,yo.length>0&&(fo=setTimeout(n,96))};fo=setTimeout(n,96)}},reset:()=>{fo&&(clearTimeout(fo),fo=null),yo=[],Tn.value=Z4}},vn=Zt({query:"",matches:[],currentMatchIndex:-1}),Vv=Zt(!1),W4=(e,t=0,n=null)=>e.reduce((r,o,s)=>{const c=o.element?K9(o.fiber):`${n}-${s}`,d=o.fiber?.type?lR(o.fiber):void 0,f={...o,depth:t,nodeId:c,parentId:n,fiber:o.fiber,renderData:d};return r.push(f),o.children?.length&&r.push(...W4(o.children,t+1,c)),r},[]),tj=e=>e.reduce((t,n)=>Math.max(t,n.depth),0),nj=(e,t)=>{if(t<=0)return 24;const s=Math.max(0,e-Ur);if(s<24)return 0;const d=Math.min(s*.3,t*24)/t;return Math.max(0,Math.min(24,d))},rj=["memo","forwardRef","lazy","suspense"],K4=e=>{const t=e.match(/\[(.*?)\]/);if(!t)return null;const n=[],r=t[1].split(",");for(const o of r){const s=o.trim().toLowerCase();s&&n.push(s)}return n},ij=e=>{if(e.length===0)return!1;for(const t of e){let n=!1;for(const r of rj)if(r.toLowerCase().includes(t)){n=!0;break}if(!n)return!1}return!0},Q4=(e,t)=>{if(e.length===0)return!0;if(!t.length)return!1;for(const n of e){let r=!1;for(const o of t)if(o.type.toLowerCase().includes(n)){r=!0;break}if(!r)return!1}return!0},aj=(e,t)=>Vr(()=>{const{query:n,matches:r}=t,o=r.some(h=>h.nodeId===e.nodeId),s=K4(n)||[],c=n?n.replace(/\[.*?\]/,"").trim():"";if(!n||!o)return{highlightedText:b("span",{className:"truncate",children:e.label}),typeHighlight:!1};let d=!0;if(s.length>0)if(!e.fiber)d=!1;else{const{wrapperTypes:h}=Nu(e.fiber);d=Q4(s,h)}let f=b("span",{className:"truncate",children:e.label});if(c)try{if(c.startsWith("/")&&c.endsWith("/")){const h=c.slice(1,-1),g=new RegExp(`(${h})`,"i"),m=e.label.split(g);f=b("span",{className:"tree-node-search-highlight",children:m.map((y,_)=>g.test(y)?b("span",{className:B("regex",{start:g.test(y)&&_===0,middle:g.test(y)&&_%2===1,end:g.test(y)&&_===m.length-1,"!ml-0":_===1}),children:y},`${e.nodeId}-${y}`):y)})}else{const h=e.label.toLowerCase(),g=c.toLowerCase(),m=h.indexOf(g);m>=0&&(f=b("span",{className:"tree-node-search-highlight",children:[e.label.slice(0,m),b("span",{className:"single",children:e.label.slice(m,m+c.length)}),e.label.slice(m+c.length)]}))}}catch{}return{highlightedText:f,typeHighlight:d&&s.length>0}},[e.label,e.nodeId,e.fiber,t]),Sk=e=>e>0?e<.1-Number.EPSILON?"< 0.1":e<1e3?Number(e.toFixed(1)).toString():`${(e/1e3).toFixed(1)}k`:"0",oj=({node:e,nodeIndex:t,hasChildren:n,isCollapsed:r,handleTreeNodeClick:o,handleTreeNodeToggle:s,searchValue:c})=>{const d=Ce(null),f=Ce(e.renderData?.renderCount??0),{highlightedText:h,typeHighlight:g}=aj(e,c);Le(()=>{const _=e.renderData?.renderCount,w=d.current;!w||!f.current||!_||f.current===_||(w.classList.remove("count-flash"),w.offsetWidth,w.classList.add("count-flash"),f.current=_)},[e.renderData?.renderCount]);const m=Vr(()=>{if(!e.renderData)return null;const{selfTime:_,totalTime:w,renderCount:S}=e.renderData;return S?b("span",{className:B("flex items-center gap-x-0.5 ml-1.5","text-[10px] text-neutral-400"),children:b("span",{ref:d,title:`Self time: ${Sk(_)}ms 110Total time: ${Sk(w)}ms`,className:"count-badge",children:["Ã",S]})}):null},[e.renderData]),y=Vr(()=>{if(!e.fiber)return null;const{wrapperTypes:_}=Nu(e.fiber),w=_[0];return b("span",{className:B("flex items-center gap-x-1","text-[10px] text-neutral-400 tracking-wide","overflow-hidden"),children:[w&&b(Ye,{children:[b("span",{title:w?.title,className:B("rounded py-[1px] px-1","bg-neutral-700 text-neutral-300","truncate",w.type==="memo"&&"bg-[#8e61e3] text-white",g&&"bg-yellow-300 text-black"),children:w.type},w.type),w.compiler&&b("span",{className:"text-yellow-300 ml-1",children:"â¨"})]}),_.length>1&&`Ã${_.length}`,m]})},[e.fiber,g,m]);return b("button",{type:"button",title:e.title,"data-index":t,className:B("flex items-center gap-x-1","pl-1 pr-2","w-full h-7","text-left","rounded","cursor-pointer select-none"),onClick:o,children:[b("button",{type:"button","data-index":t,onClick:s,className:B("w-6 h-6 flex items-center justify-center","text-left"),children:n&&b(Ot,{name:"icon-chevron-right",size:12,className:B("transition-transform",!r&&"rotate-90")})}),h,y]})},sj=()=>{const e=Ce(null),t=Ce(null),n=Ce(null),r=Ce(null),o=Ce(null),s=Ce(0),c=Ce(!1),d=Ce(!1),f=Ce(null),[h,g]=Ie([]),[m,y]=Ie(new Set),[_,w]=Ie(void 0),[S,T]=Ie(vn.value),k=Vr(()=>{const E=[],R=h,A=new Map(R.map(q=>[q.nodeId,q]));for(const q of R){let te=!0,M=q;for(;M.parentId;){const U=A.get(M.parentId);if(!U)break;if(m.has(U.nodeId)){te=!1;break}M=U}te&&E.push(q)}return E},[m,h]),$=28,{virtualItems:z,totalSize:N}=W9({count:k.length,getScrollElement:()=>e.current,estimateSize:()=>$,overscan:5}),O=Ft(E=>{c.current=!0,r.current?.blur(),Vv.value=!0;const{parentCompositeFiber:R}=bo(E);if(!R)return;ye.inspectState.value={kind:"focused",focusedDomElement:E,fiber:R};const A=k.findIndex(q=>q.element===E);if(A!==-1){w(A);const q=A*$,te=e.current;if(te){const M=te.clientHeight,U=te.scrollTop;(q<U||q+$>U+M)&&te.scrollTo({top:Math.max(0,q-M/2),behavior:"instant"})}}},[k]),I=Ft(E=>{const R=E.currentTarget,A=Number(R.dataset.index);if(Number.isNaN(A))return;const q=k[A].element;q&&O(q)},[k,O]),j=Ft(E=>{y(R=>{const A=new Set(R);return A.has(E)?A.delete(E):A.add(E),A})},[]),L=Ft(E=>{E.stopPropagation();const R=E.target,A=Number(R.dataset.index);if(Number.isNaN(A))return;const q=k[A].nodeId;j(q)},[k,j]),G=Ft(E=>{n.current?.classList.remove("!border-red-500");const R=[];if(!E){vn.value={query:E,matches:R,currentMatchIndex:-1};return}if(E.includes("[")&&!E.includes("]")&&E.length>E.indexOf("[")+1){n.current?.classList.add("!border-red-500");return}const A=K4(E)||[];
110if(E.includes("[")&&!ij(A)){n.current?.classList.add("!border-red-500");return}const q=E.replace(/\[.*?\]/,"").trim(),te=/^\/.*\/$/.test(q);let M=U=>!1;if(q.startsWith("/")&&!te&&q.length>1){n.current?.classList.add("!border-red-500");return}if(te)try{const U=q.slice(1,-1),Y=new RegExp(U,"i");M=ne=>Y.test(ne)}catch{n.current?.classList.add("!border-red-500");return}else if(q){const U=q.toLowerCase();M=Y=>Y.toLowerCase().includes(U)}for(const U of h){let Y=!0;if(q&&(Y=M(U.label)),Y&&A.length>0)if(!U.fiber)Y=!1;else{const{wrapperTypes:ne}=Nu(U.fiber);Y=Q4(A,ne)}Y&&R.push(U)}if(vn.value={query:E,matches:R,currentMatchIndex:R.length>0?0:-1},R.length>0){const U=R[0],Y=k.findIndex(ne=>ne.nodeId===U.nodeId);if(Y!==-1){const ne=Y*$,le=e.current;if(le){const fe=le.clientHeight;le.scrollTo({top:Math.max(0,ne-fe/2),behavior:"instant"})}}}},[h,k]),X=Ft(E=>{const R=E.currentTarget;R&&G(R.value)},[G]),D=Ft(E=>{const{matches:R,currentMatchIndex:A}=vn.value;if(R.length===0)return;const q=E==="next"?(A+1)%R.length:(A-1+R.length)%R.length;vn.value={...vn.value,currentMatchIndex:q};const te=R[q],M=k.findIndex(U=>U.nodeId===te.nodeId);if(M!==-1){w(M);const U=M*$,Y=e.current;if(Y){const ne=Y.clientHeight;Y.scrollTo({top:Math.max(0,U-ne/2),behavior:"instant"})}}},[k]),Z=Ft(E=>{if(t.current&&(t.current.style.width=`${E}px`),e.current){e.current.style.width=`${E}px`;const R=nj(E,s.current);e.current.style.setProperty("--indentation-size",`${R}px`)}},[]),ce=Ft(E=>{if(!f.current)return;const R=_e.value.dimensions.width,A=Math.floor(R-Ur/2);f.current.classList.remove("cursor-ew-resize","cursor-w-resize","cursor-e-resize"),E<=Ur?f.current.classList.add("cursor-w-resize"):E>=A?f.current.classList.add("cursor-e-resize"):f.current.classList.add("cursor-ew-resize")},[]),H=Ft(E=>{if(E.preventDefault(),E.stopPropagation(),!e.current)return;e.current.style.setProperty("pointer-events","none"),d.current=!0;const R=E.clientX,A=e.current.offsetWidth,q=_e.value.dimensions.width,te=Math.floor(q-Ur/2);ce(A);const M=Y=>{const ne=R-Y.clientX,le=A+ne;ce(le);const fe=Math.min(te,Math.max(Ur,le));Z(fe)},U=()=>{e.current&&(e.current.style.removeProperty("pointer-events"),document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",U),_e.value={..._e.value,componentsTree:{..._e.value.componentsTree,width:e.current.offsetWidth}},Un(Bi,_e.value),d.current=!1)};document.addEventListener("pointermove",M),document.addEventListener("pointerup",U)},[Z,ce]);Le(()=>{if(!e.current)return;const E=e.current.offsetWidth;return ce(E),_e.subscribe(()=>{e.current&&ce(e.current.offsetWidth)})},[ce]);const ae=Ft(()=>{c.current=!1},[]);return Le(()=>{let E=!0;const R=U=>{const Y=new Map,ne=[];for(const{element:le,name:fe,fiber:pe}of U){if(!le)continue;let Te=fe;const{name:Ee,wrappers:Xe}=Nu(pe);Ee&&(Xe.length>0?Te=`${Xe.join("(")}(${Ee})${")".repeat(Xe.length)}`:Te=Ee),Y.set(le,{label:Ee||fe,title:Te,children:[],element:le,fiber:pe})}for(const{element:le,depth:fe}of U){if(!le)continue;const pe=Y.get(le);if(pe)if(fe===0)ne.push(pe);else{let Te=le.parentElement;for(;Te;){const Ee=Y.get(Te);if(Ee){Ee.children=Ee.children||[],Ee.children.push(pe);break}Te=Te.parentElement}}}return ne},A=()=>{const U=o.current;if(!U)return;const Y=Cj(),ne=R(Y);if(ne.length>0){const le=W4(ne),fe=tj(le);if(s.current=fe,Z(_e.value.componentsTree.width),g(le),E){E=!1;const pe=le.findIndex(Te=>Te.element===U);if(pe!==-1){const Te=pe*$,Ee=e.current;Ee&&setTimeout(()=>{Ee.scrollTo({top:Te,behavior:"instant"})},96)}}}},q=ye.inspectState.subscribe(U=>{if(U.kind==="focused"){if(Vv.value)return;G(""),o.current=U.focusedDomElement,A()}});let te=0;const M=e_.subscribe(()=>{if(ye.inspectState.value.kind==="focused"){if(cancelAnimationFrame(te),d.current)return;te=requestAnimationFrame(()=>{Vv.value=!1,A()})}});return()=>{q(),M(),vn.value={query:"",matches:[],currentMatchIndex:-1}}},[]),Le(()=>{const E=R=>
110{if(c.current&&_)switch(R.key){case"ArrowUp":{if(R.preventDefault(),R.stopPropagation(),_>0){const A=k[_-1];A?.element&&O(A.element)}return}case"ArrowDown":{if(R.preventDefault(),R.stopPropagation(),_<k.length-1){const A=k[_+1];A?.element&&O(A.element)}return}case"ArrowLeft":{R.preventDefault(),R.stopPropagation();const A=k[_];A?.nodeId&&j(A.nodeId);return}case"ArrowRight":{R.preventDefault(),R.stopPropagation();const A=k[_];A?.nodeId&&j(A.nodeId);return}}};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[_,k,O,j]),Le(()=>vn.subscribe(T),[]),Le(()=>_e.subscribe(R=>{t.current?.style.setProperty("transition","width 0.1s"),Z(R.componentsTree.width),setTimeout(()=>{t.current?.style.removeProperty("transition")},500)}),[]),b("div",{className:"react-scan-components-tree flex",children:[b("div",{ref:f,onPointerDown:H,className:"relative resize-v-line",children:b("span",{children:b(Ot,{name:"icon-ellipsis",size:18})})}),b("div",{ref:t,className:"flex flex-col h-full",children:[b("div",{className:"p-2 border-b border-[#1e1e1e]",children:b("div",{ref:n,title:`Search components by: 111 112⢠Name (e.g., "Button") â Case insensitive, matches any part 113 114⢠Regular Expression (e.g., "/^Button/") â Use forward slashes 115 116⢠Wrapper Type (e.g., "[memo,forwardRef]"): 117 - Available types: memo, forwardRef, lazy, suspense 118 - Matches any part of type name (e.g., "mo" matches "memo") 119 - Use commas for multiple types 120 121⢠Combined Search: 122 - Mix name/regex with type: "button [for]" 123 - Will match components satisfying both conditions 124 125⢠Navigation: 126 - Enter â Next match 127 - Shift + Enter â Previous match 128 - Cmd/Ctrl + Enter â Select and focus match 129`,className:B("relative","flex items-center gap-x-1 px-2","rounded","border border-transparent","focus-within:border-[#454545]","bg-[#1e1e1e] text-neutral-300","transition-colors","whitespace-nowrap","overflow-hidden"),children:[b(Ot,{name:"icon-search",size:12,className:" text-neutral-500"}),b("div",{className:"relative flex-1 h-7 overflow-hidden",children:b("input",{ref:r,type:"text",value:vn.value.query,onClick:E=>{E.stopPropagation(),E.currentTarget.focus()},onPointerDown:E=>{E.stopPropagation()},onKeyDown:E=>{E.key==="Escape"&&E.currentTarget.blur(),vn.value.matches.length&&(E.key==="Enter"&&E.shiftKey?D("prev"):E.key==="Enter"&&(E.metaKey||E.ctrlKey?(E.preventDefault(),E.stopPropagation(),O(vn.value.matches[vn.value.currentMatchIndex].element),E.currentTarget.focus()):D("next")))},onChange:X,className:"absolute inset-y-0 inset-x-1",placeholder:"Component name, /regex/, or [type]"})}),vn.value.query?b(Ye,{children:[b("span",{className:"flex items-center gap-x-0.5 text-xs text-neutral-500",children:[vn.value.currentMatchIndex+1,"|",vn.value.matches.length]}),!!vn.value.matches.length&&b(Ye,{children:[b("button",{type:"button",onClick:E=>{E.stopPropagation(),D("prev")},className:"button rounded w-4 h-4 flex items-center justify-center text-neutral-400 hover:text-neutral-300",children:b(Ot,{name:"icon-chevron-right",className:"-rotate-90",size:12})}),b("button",{type:"button",onClick:E=>{E.stopPropagation(),D("next")},className:"button rounded w-4 h-4 flex items-center justify-center text-neutral-400 hover:text-neutral-300",children:b(Ot,{name:"icon-chevron-right",className:"rotate-90",size:12})})]}),b("button",{type:"button",onClick:E=>{E.stopPropagation(),G("")},className:"button rounded w-4 h-4 flex items-center justify-center text-neutral-400 hover:text-neutral-300",children:b(Ot,{name:"icon-close",size:12})})]}):!!h.length&&b("span",{className:"text-xs text-neutral-500",children:h.length})]})}),b("div",{className:"flex-1 overflow-hidden",children:b("div",{ref:e,onPointerLeave:ae,className:"tree h-full overflow-auto will-change-transform",children:b("div",{className:"relative w-full",style:{height:N},children:z.map(E=>{const R=k[E.index];if(!R)return null;const A=ye.inspectState.value.kind==="focused"&&R.element===ye.inspectState.value.focusedDomElement,q=E.index===_;return b("div",{className:B("absolute left-0 w-full overflow-hidden","text-neutral-400 hover:text-neutral-300","bg-transparent hover:bg-[#5f3f9a]/20",(A||q)&&"text-neutral-300 bg-[#5f3f9a]/40 hover:bg-[#5f3f9a]/40"),style:{to
129p:E.start,height:$},children:b("div",{className:"w-full h-full",style:{paddingLeft:`calc(${R.depth} * var(--indentation-size))`},children:b(oj,{node:R,nodeIndex:E.index,hasChildren:!!R.children?.length,isCollapsed:m.has(R.nodeId),handleTreeNodeClick:I,handleTreeNodeToggle:L,searchValue:S})})},R.nodeId)})})})})]})]})},Wh=Ap(({text:e,children:t,onCopy:n,className:r,iconSize:o=14})=>{const[s,c]=Ie(!1);Le(()=>{if(s){const h=setTimeout(()=>c(!1),600);return()=>{clearTimeout(h)}}},[s]);const d=Ft(h=>{h.preventDefault(),h.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{c(!0),n?.(!0,e)},()=>{n?.(!1,e)})},[e,n]),f=b("button",{onClick:d,type:"button",className:B("z-10","flex items-center justify-center","hover:text-dev-pink-400","transition-colors duration-200 ease-in-out","cursor-pointer",`size-[${o}px]`,r),children:b(Ot,{name:`icon-${s?"check":"copy"}`,size:[o],className:B(s&&"text-green-500")})});return t?t({ClipboardIcon:f,onClick:d}):f}),lj=({length:e,expanded:t,onToggle:n,isNegative:r})=>b("div",{className:"flex items-center gap-1",children:[b("button",{type:"button",onClick:n,className:"flex items-center p-0 opacity-50",children:b(Ot,{name:"icon-chevron-right",size:12,className:B("transition-[color,transform]",r?"text-[#f87171]":"text-[#4ade80]",t&&"rotate-90")})}),b("span",{children:["Array(",e,")"]})]}),Db=({value:e,path:t,isNegative:n})=>{const[r,o]=Ie(!1);if(!(e!==null&&typeof e=="object"&&!(e instanceof Date)))return b("div",{className:"flex items-center gap-1",children:[b("span",{className:"text-gray-500",children:[t,":"]}),b("span",{className:"truncate",children:ep(e)})]});const c=Object.entries(e);return b("div",{className:"flex flex-col",children:[b("div",{className:"flex items-center gap-1",children:[b("button",{type:"button",onClick:()=>o(!r),className:"flex items-center p-0 opacity-50",children:b(Ot,{name:"icon-chevron-right",size:12,className:B("transition-[color,transform]",n?"text-[#f87171]":"text-[#4ade80]",r&&"rotate-90")})}),b("span",{className:"text-gray-500",children:[t,":"]}),!r&&b("span",{className:"truncate",children:e instanceof Date?ep(e):`{${Object.keys(e).join(", ")}}`})]}),r&&b("div",{className:"pl-5 border-l border-[#333] mt-0.5 ml-1 flex flex-col gap-0.5",children:c.map(([d,f])=>b(Db,{value:f,path:d,isNegative:n},d))})]})},Kh=({value:e,expanded:t,onToggle:n,isNegative:r})=>{const{value:o,error:s}=Aj(e);return s?b("span",{className:"text-gray-500 font-italic",children:s}):o!==null&&typeof o=="object"&&!(o instanceof Promise)?Array.isArray(o)?b("div",{className:"flex flex-col gap-1 relative",children:[b(lj,{length:o.length,expanded:t,onToggle:n,isNegative:r}),t&&b("div",{className:"pl-2 border-l border-[#333] mt-0.5 ml-1 flex flex-col gap-0.5",children:o.map((d,f)=>b(Db,{value:d,path:f.toString(),isNegative:r},f.toString()))}),b(Wh,{text:$k(o),className:"absolute top-0.5 right-0.5 opacity-0 transition-opacity group-hover:opacity-100 self-end",children:({ClipboardIcon:d})=>b(Ye,{children:d})})]}):b("div",{className:"flex items-start gap-1 relative",children:[b("button",{type:"button",onClick:n,className:B("flex items-center","p-0 mt-0.5 mr-1","opacity-50"),children:b(Ot,{name:"icon-chevron-right",size:12,className:B("transition-[color,transform]",r?"text-[#f87171]":"text-[#4ade80]",t&&"rotate-90")})}),b("div",{className:"flex-1",children:t?b("div",{className:"pl-2 border-l border-[#333] mt-0.5 ml-1 flex flex-col gap-0.5",children:Object.entries(o).map(([d,f])=>b(Db,{value:f,path:d,isNegative:r},d))}):b("span",{children:ep(o)})}),b(Wh,{text:$k(o),className:"absolute top-0.5 right-0.5 opacity-0 transition-opacity group-hover:opacity-100 self-end",children:({ClipboardIcon:d})=>b(Ye,{children:d})})]}):b("span",{children:ep(o)})},cj=50;Zt({fiber:null,fiberProps:{current:[],changes:new Set},fiberState:{current:[],changes:new Set},fiberContext:{current:[],changes:new Set}});var Pb=e=>{switch(e.kind){case"initialized":return e.changes.currentValue;case"partially-initialized":return e.value}},Ek=(e,t)=>{for(const n of e){const r=t.get(n.name);if(r){t.set(r.name,{count:r.count+1,currentValue:n.value,id:r.name,lastUpdated:Date.now(),name:r.name,previousValue:n.prevValue});continue}t.set(n.name,{count:1,currentValue:n.value,id:n.name,lastUpdated:Date.now(),name:n.name,previousValue:n.prevValue})}},uj=(e,t)=>{for(const n of e){const r=t.contextChanges.get(n.contextType);if(r){if(Fa(Pb(r),n.value))continue;if(r.kind==="partially-initialized"){t.contextChanges.set(n.contextType,{kind:"initialized",changes:{count:1,currentValue:n.value,id:n.contextType.toString(),lastUpdated:Date.now(),name:n.name,previousValue:r.value}});continue}t.contextChanges.set(n.contextType,{kind:"initialized",changes:{count:r.changes.count+1,currentValue:n.value,id:n.contextType.toString(),lastUpdated:Date.now(),name:n.name,previousValue:r.changes.currentValue}});continue}t.contextChanges.set(n.contextType,{kind:"partially-initialized",i
129d:n.contextType.toString(),lastUpdated:Date.now(),name:n.name,value:n.value})}},dj=e=>{const t={contextChanges:new Map,propsChanges:new Map,stateChanges:new Map};return e.forEach(n=>{uj(n.contextChanges,t),Ek(n.stateChanges,t.stateChanges),Ek(n.propsChanges,t.propsChanges)}),t},kk=(e,t)=>{const n=new Map;return e.forEach((r,o)=>{n.set(o,r)}),t.forEach((r,o)=>{const s=n.get(o);if(!s){n.set(o,r);return}n.set(o,{count:s.count+r.count,currentValue:r.currentValue,id:r.id,lastUpdated:r.lastUpdated,name:r.name,previousValue:r.previousValue})}),n},fj=(e,t)=>{const n=new Map;return e.contextChanges.forEach((r,o)=>{n.set(o,r)}),t.contextChanges.forEach((r,o)=>{const s=n.get(o);if(!s){n.set(o,r);return}if(Pb(r)!==Pb(s))switch(s.kind){case"initialized":switch(r.kind){case"initialized":{n.set(o,{kind:"initialized",changes:{...r.changes,count:r.changes.count+s.changes.count+1,currentValue:r.changes.currentValue,previousValue:r.changes.previousValue}});return}case"partially-initialized":{n.set(o,{kind:"initialized",changes:{count:s.changes.count+1,currentValue:r.value,id:r.id,lastUpdated:r.lastUpdated,name:r.name,previousValue:s.changes.currentValue}});return}}case"partially-initialized":switch(r.kind){case"initialized":{n.set(o,{kind:"initialized",changes:{count:r.changes.count+1,currentValue:r.changes.currentValue,id:r.changes.id,lastUpdated:r.changes.lastUpdated,name:r.changes.name,previousValue:s.value}});return}case"partially-initialized":{n.set(o,{kind:"initialized",changes:{count:1,currentValue:r.value,id:r.id,lastUpdated:r.lastUpdated,name:r.name,previousValue:s.value}});return}}}}),n},hj=(e,t)=>{const n=fj(e,t),r=kk(e.propsChanges,t.propsChanges),o=kk(e.stateChanges,t.stateChanges);return{contextChanges:n,propsChanges:r,stateChanges:o}},Lb=e=>Array.from(e.propsChanges.values()).reduce((t,n)=>t+n.count,0)+Array.from(e.stateChanges.values()).reduce((t,n)=>t+n.count,0)+Array.from(e.contextChanges.values()).filter(t=>t.kind==="initialized").reduce((t,n)=>t+n.changes.count,0),pj=e=>{const t=Ce({queue:[]}),[n,r]=Ie({propsChanges:new Map,stateChanges:new Map,contextChanges:new Map}),o=ye.inspectState.value.kind==="focused"?ye.inspectState.value.fiber:null,s=o?La(o):null;return Le(()=>{const c=setInterval(()=>{t.current.queue.length!==0&&(r(d=>{const f=dj(t.current.queue),h=hj(d,f);return Lb(d),Lb(h),h}),t.current.queue=[])},cj);return()=>{clearInterval(c)}},[o]),Le(()=>{if(!s)return;const c=f=>{t.current?.queue.push(f)};let d=ye.changesListeners.get(s);return d||(d=[],ye.changesListeners.set(s,d)),d.push(c),()=>{r({propsChanges:new Map,stateChanges:new Map,contextChanges:new Map}),t.current.queue=[],ye.changesListeners.set(s,ye.changesListeners.get(s)?.filter(f=>f!==c)??[])}},[s]),Le(()=>()=>{r({propsChanges:new Map,stateChanges:new Map,contextChanges:new Map}),t.current.queue=[]},[s]),n},Qh=e=>{if(e==null)return{value:e};if(typeof e=="function")return{value:e};if(typeof e!="object")return{value:e};if(ll(e))return{value:"Promise"};try{const t=Object.getPrototypeOf(e);return t===Promise.prototype||t?.constructor?.name==="Promise"?{value:"Promise"}:{value:e}}catch{return{value:null,error:"Error accessing value"}}},mj=Ap(()=>{const[e,t]=Ie(!0),n=pj(),[r,o]=Ie(!1),s=Lb(n)>0;Le(()=>{if(!r&&s){const f=setTimeout(()=>{o(!0),requestAnimationFrame(()=>{t(!0)})},0);return()=>clearTimeout(f)}},[r,s]);const c=new Map(Array.from(n.contextChanges.entries()).filter(([,f])=>f.kind==="initialized").map(([f,h])=>[f,h.kind==="partially-initialized"?null:h.changes])),d=ye.inspectState.value.kind==="focused"?ye.inspectState.value.fiber:null;if(d)return b(Ye,{children:[b(vj,{}),b("div",{className:"overflow-hidden h-full flex flex-col gap-y-2",children:[b("div",{className:"flex flex-col gap-2 px-3 pt-2",children:[b("span",{className:"text-sm font-medium text-[#888]",children:["Why did"," ",b("span",{className:"text-[#A855F7]",children:rn(d)})," ","render?"]}),!s&&b("div",{className:"text-sm text-[#737373] bg-[#1E1E1E] rounded-md p-4 flex flex-col gap-4",children:[b("div",{children:"No changes detected since selecting"}),b("div",{children:"The props, state, and context changes within your component will be reported here"})]})]}),b("div",{className:B("flex flex-col gap-y-2 pl-3 relative overflow-y-auto h-full"),children:[b(Gv,{changes:n.propsChanges,title:"Changed Props",isExpanded:e}),b(Gv,{renderName:f=>gj(f,rn(jo(d))??"Unknown Component"),changes:n.stateChanges,title:"Changed State",isExpanded:e}),b(Gv,{changes:c,title:"Changed Context",isExpanded:e})]})]})]})}),gj=(e,t)=>{if(Number.isNaN(Number(e)))return e;const n=Number.parseInt(e);return b("span",{className:"truncate",children:[b("span",{className:"text-white",children:[n,(o=>{const s=o%10,c=o%100;if(c>=11&&c<=13)return"th";switch(s){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(n)," hook"," "]}),b("span",{style:{color:"#666"}
129,children:["called in ",b("i",{className:"text-[#A855F7] truncate",children:t})]})]})},vj=Ap(()=>{const e=Ce(null),t=Ce(null),n=Ce(null),r=Ce({isPropsChanged:!1,isStateChanged:!1,isContextChanged:!1});return Le(()=>{const o=Y4(()=>{const c=[];e.current?.dataset.flash==="true"&&c.push(e.current),t.current?.dataset.flash==="true"&&c.push(t.current),n.current?.dataset.flash==="true"&&c.push(n.current);for(const d of c)d.classList.remove("count-flash-white"),d.offsetWidth,d.classList.add("count-flash-white")},400);return Tn.subscribe(c=>{if(!e.current||!t.current||!n.current)return;const{currentIndex:d,updates:f}=c,h=f[d];!h||d===0||(o(),r.current={isPropsChanged:(h.props?.changes?.size??0)>0,isStateChanged:(h.state?.changes?.size??0)>0,isContextChanged:(h.context?.changes?.size??0)>0},e.current.dataset.flash!=="true"&&(e.current.dataset.flash=r.current.isPropsChanged.toString()),t.current.dataset.flash!=="true"&&(t.current.dataset.flash=r.current.isStateChanged.toString()),n.current.dataset.flash!=="true"&&(n.current.dataset.flash=r.current.isContextChanged.toString()))})},[]),b("button",{type:"button",className:B("react-section-header","overflow-hidden","max-h-0","transition-[max-height]"),children:b("div",{className:B("flex-1 react-scan-expandable"),children:b("div",{className:"overflow-hidden",children:b("div",{className:"flex items-center whitespace-nowrap",children:[b("div",{className:"flex items-center gap-x-2",children:"What changed?"}),b("div",{className:B("ml-auto","change-scope","transition-opacity duration-300 delay-150"),children:[b("div",{ref:e,children:"props"}),b("div",{ref:t,children:"state"}),b("div",{ref:n,children:"context"})]})]})})})})}),yj=e=>e,Gv=Ap(({title:e,changes:t,renderName:n=yj})=>{const[r,o]=Ie(new Set),[s,c]=Ie(new Set),d=Array.from(t.entries());return t.size===0?null:b("div",{children:[b("div",{className:"text-xs text-[#888] mb-1.5",children:e}),b("div",{className:"flex flex-col gap-2",children:d.map(([f,h])=>{const g=s.has(String(f)),{value:m,error:y}=Qh(h.previousValue),{value:_,error:w}=Qh(h.currentValue),S=nR(m,_);return b("div",{children:[b("button",{onClick:()=>{c(T=>{const k=new Set(T);return k.has(String(f))?k.delete(String(f)):k.add(String(f)),k})},className:"flex items-center gap-2 w-full bg-transparent border-none p-0 cursor-pointer text-white text-xs",children:b("div",{className:"flex items-center gap-1.5 flex-1",children:[b(Ot,{name:"icon-chevron-right",size:12,className:B("text-[#666] transition-transform duration-200 ease-[cubic-bezier(0.25,0.1,0.25,1)]",{"rotate-90":g})}),b("div",{className:"whitespace-pre-wrap break-words text-left font-medium flex items-center gap-x-1.5",children:[n(h.name),b(xj,{count:h.count,isFunction:typeof h.currentValue=="function",showWarning:S.changes.length===0,forceFlash:!0})]})]})}),b("div",{className:B("react-scan-expandable",{"react-scan-expanded":g}),children:b("div",{className:"pl-3 text-xs font-mono border-l-1 border-[#333]",children:b("div",{className:"flex flex-col gap-0.5",children:y||w?b(bj,{currError:w,prevError:y}):S.changes.length>0?b(_j,{change:h,diff:S,expandedFns:r,renderName:n,setExpandedFns:o,title:e}):b(wj,{currValue:_,entryKey:f,expandedFns:r,prevValue:m,setExpandedFns:o})})})})]},f)})})]})}),bj=({prevError:e,currError:t})=>b(Ye,{children:[e&&b("div",{className:"text-[#f87171] bg-[#2a1515] pr-1.5 py-[3px] rounded italic",children:e}),t&&b("div",{className:"text-[#4ade80] bg-[#1a2a1a] pr-1.5 py-[3px] rounded italic mt-0.5",children:t})]}),_j=({diff:e,title:t,renderName:n,change:r,expandedFns:o,setExpandedFns:s})=>e.changes.map((c,d)=>{const{value:f,error:h}=Qh(c.prevValue),{value:g,error:m}=Qh(c.currentValue),y=typeof f=="function"||typeof g=="function";let _;return t==="Props"&&(_=c.path.length>0?`${n(String(r.name))}.${Lr(c.path)}`:void 0),t==="State"&&c.path.length>0&&(_=`state.${Lr(c.path)}`),_||(_=Lr(c.path)),b("div",{className:B("flex flex-col gap-y-1",d<e.changes.length-1&&"mb-4"),children:[_&&b("div",{className:"text-[#666] text-[10px]",children:_}),b("button",{type:"button",className:B("group","flex items-start","py-[3px] px-1.5","text-left text-[#f87171] bg-[#2a1515]","rounded","overflow-hidden break-all",y&&"cursor-pointer"),onClick:y?()=>{const w=`${Lr(c.path)}-prev`;s(S=>{const T=new Set(S);return T.has(w)?T.delete(w):T.add(w),T})}:void 0,children:[b("span",{className:"w-3 flex items-center justify-center opacity-50",children:"-"}),b("span",{className:"flex-1 whitespace-nowrap font-mono",children:h?b("span",{className:"italic text-[#f87171]",children:h}):y?b("div",{className:"flex gap-1 items-start flex-col",children:[b("div",{className:"flex gap-1 items-start w-full",children:[b("span",{className:"flex-1 max-h-40",children:Ib(f,o.has(`${Lr(c.path)}-prev`))}),typeof f=="function"&&b(Wh,{text:f.toString(),className:"opacity-0 transition-opacity group-hover:opacity-100",children:({ClipboardIcon:w})=>b(Ye,{children:w})})]}),f?.toString()===g?.toString()&&b("div",{className:"text-[10px] text-[#666] italic",children:"Function reference changed"})]}):b(Kh,{value:f,expanded:o.has(`${Lr(c.path)}-prev`),onToggle:()=>{const w=`${Lr(c.path)}-prev`;s(S=>{const T=new Set(S);return T.has(w)?T.delete(w):T.add(w),T})},isNegative:!0})})]}),b("button",{type:"button",className:B("group","flex items-start","py-[3px] px-1.5","text-left text-[#4ade80] bg-[#1a2a1a]","rounded","overflow-hidden break-all",y&&"cursor-pointer"),onClick:y?()=>{const w=`${Lr(c.path)}-current`;s(S=>{const T=new Set(S);return T.has(w)?T.delete(w):T.add(w),T})}:void 0,children:[b("span",{className:"w-3 flex items-center justify-center opacity-50",children:"+"}),b("span",{className:"flex-1 whitespace-pre-wrap font-mono",children:m?b("span",{className:"italic text-[#4ade80]",children:m}):y?b("div",{className:"flex gap-1 items-start flex-col",children:[b("div",{className:"flex gap-1 items-start w-full",children:[b("span",{className:"flex-1",children:Ib(g,o.has(`${Lr(c.path)}-current`))}),typeof g=="function"&&b(Wh,{text:g.toString(),className:"opacity-0 transition-opacity group-hover:opacity-100",children:({ClipboardIcon:w})=>b(Ye,{children:w})})]}),f?.toString()===g?.toString()&&b("div",{className:"text-[10px] text-[#666] italic",children:"Function reference changed"})]}):b(Kh,{value:g,expanded:o.has(`${Lr(c.path)}-current`),onToggle:()=>{const w=`${Lr(c.path)}-current`;s(S=>{const T=new Set(S);return T.has(w)?T.delete(w):T.add(w),T})},isNegative:!1})})]})]},`${_}-${r.name}-${d}`)}
129),wj=({prevValue:e,currValue:t,entryKey:n,expandedFns:r,setExpandedFns:o})=>b(Ye,{children:[b("div",{className:"group flex gap-0.5 items-start text-[#f87171] bg-[#2a1515] py-[3px] px-1.5 rounded",children:[b("span",{className:"w-3 flex items-center justify-center opacity-50",children:"-"}),b("span",{className:"flex-1 overflow-hidden whitespace-pre-wrap font-mono",children:b(Kh,{value:e,expanded:r.has(`${String(n)}-prev`),onToggle:()=>{const s=`${String(n)}-prev`;o(c=>{const d=new Set(c);return d.has(s)?d.delete(s):d.add(s),d})},isNegative:!0})})]}),b("div",{className:"group flex gap-0.5 items-start text-[#4ade80] bg-[#1a2a1a] py-[3px] px-1.5 rounded mt-0.5",children:[b("span",{className:"w-3 flex items-center justify-center opacity-50",children:"+"}),b("span",{className:"flex-1 overflow-hidden whitespace-pre-wrap font-mono",children:b(Kh,{value:t,expanded:r.has(`${String(n)}-current`),onToggle:()=>{const s=`${String(n)}-current`;o(c=>{const d=new Set(c);return d.has(s)?d.delete(s):d.add(s),d})},isNegative:!1})})]}),typeof t=="object"&&t!==null&&b("div",{className:"text-[#666] text-[10px] italic mt-1 flex items-center gap-x-1",children:[b(Ot,{name:"icon-triangle-alert",className:"text-yellow-500 mb-px",size:14}),b("span",{children:"Reference changed but objects are structurally the same"})]})]}),xj=({count:e,forceFlash:t,isFunction:n,showWarning:r})=>{const o=Ce(!0),s=Ce(null),c=Ce(e);return Le(()=>{const d=s.current;!d||c.current===e||(d.classList.remove("count-flash"),d.offsetWidth,d.classList.add("count-flash"),c.current=e)},[e]),Le(()=>{if(o.current){o.current=!1;return}if(t){let d=setTimeout(()=>{s.current?.classList.add("count-flash-white"),d=setTimeout(()=>{s.current?.classList.remove("count-flash-white")},300)},500);return()=>{clearTimeout(d)}}},[t]),b("div",{ref:s,className:"count-badge",children:[r&&b(Ot,{name:"icon-triangle-alert",className:"text-yellow-500 mb-px",size:14}),n&&b(Ot,{name:"icon-function",className:"text-[#A855F7] mb-px",size:14}),"x",e]})},Aa={lastRendered:new Map,expandedPaths:new Set,cleanup:()=>{Aa.lastRendered.clear(),Aa.expandedPaths.clear(),J9.cleanupAll(),Nj(),X4.reset()}},J4=class extends $r{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.handleReset=()=>{this.setState({hasError:!1,error:null}),Aa.cleanup()}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?b("div",{className:"p-4 bg-red-950/50 h-screen backdrop-blur-sm",children:[b("div",{className:"flex items-center gap-2 mb-3 text-red-400 font-medium",children:[b(Ot,{name:"icon-flame",className:"text-red-500",size:16}),"Something went wrong in the inspector"]}),b("div",{className:"p-3 bg-black/40 rounded font-mono text-xs text-red-300 mb-4 break-words",children:this.state.error?.message||JSON.stringify(this.state.error)}),b("button",{type:"button",onClick:this.handleReset,className:"px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-md text-sm font-medium transition-colors flex items-center justify-center gap-2",children:"Reset Inspector"})]}):this.props.children}},Sj=Ho(()=>B("react-scan-inspector","flex-1","opacity-0","overflow-y-auto overflow-x-hidden","transition-opacity delay-0","pointer-events-none",!Mp.value&&"opacity-100 delay-300 pointer-events-auto")),Ej=J0(()=>{const e=Ce(null),t=n=>{if(!n)return;e.current=n;const{data:r,shouldUpdate:o}=Pj(n);if(o){const s={timestamp:Date.now(),fiberInfo:Mj(n),props:r.fiberProps,state:r.fiberState,context:r.fiberContext,stateNames:Oj(n)};X4.addUpdate(s,n)}};return Ou(()=>{const n=ye.inspectState.value;zu(()=>{if(n.kind!=="focused"||!n.focusedDomElement){e.current=null,Aa.cleanup();return}n.kind==="focused"&&(Mp.value=!1);const{parentCompositeFiber:r}=Ck(n.focusedDomElement,n.fiber);if(!r){ye.inspectState.value={kind:"inspect-off"},dt.value={view:"none"};return}e.current?.type!==r.type&&(e.current=r,Aa.cleanup(),t(r))})}),Ou(()=>{e_.value,zu(()=>{const n=ye.inspectState.value;if(n.kind!=="focused"||!n.focusedDomElement){e.current=null,Aa.cleanup();return}const{parentCompositeFiber:r}=Ck(n.focusedDomElement,n.fiber);if(!r){ye.inspectState.value={kind:"inspect-off"},dt.value={view:"none"};return}t(r),n.focusedDomElement.isConnected||(e.current=null,Aa.cleanup(),ye.inspectState.value={kind:"inspecting",hoveredDomElement:null})})}),Le(()=>()=>{Aa.cleanup()},[]),b(J4,{children:b("div",{className:Sj,children:b("div",{className:"w-full h-full",children:b(mj,{})})})})}),kj=J0(()=>ye.inspectState.value.kind!=="focused"?null:b(J4,{children:[b(Ej,{}),b(sj,{})]})),eR=e=>{if("__REACT_DEVTOOLS_GLOBAL_HOOK__"in window){const t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t?.renderers)return null;for(const[,n]of Array.from(t.renderers))try{const r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}}if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child??null;for(const t in e)if(t.startsWith("__reactInternalInstance$")||t.startsWith("__reactFiber"))return e[t];return null},t_=e=>{let t=e;for(;t;){if(t.stateNode instanceof Element)return t.stateNode;if(!t.child)break;t=t.child}for(;t;){if(t.stateNode instanceof Element)return t.stateNode;if(!t.return)break;t=t.return}return null},n_=e=>{if(!e)return null;try{const t=eR(e);if(!t)return null;const n=sl(t);return n?n[0]:null}catch{return null}},sl=e=>{let t=e,n=null;for(;t;){if(Tp(t))return[t,n];$u(t)&&!n&&(n=t),t=t.return}return null},Tk=(e,t)=>!!u4(t,r=>r===e),Tj=async e=>{const t=n_(e);if(!t)return null;const n=t_(t);if(!n)return null;const r=(await u9([n])).get(n);return r||null},bo=e=>{const t=n_(e);if(!t)return{};if(!t_(t))return{};const r=sl(t);if(!r)return{};const[o]=r;return{parentCompositeFiber:o}},Ck=(e,t)=>{if(!e.isConnected)return{};let n=t??n_(e);if(!n)return{};let r=n,o=null,s=null;for(;r;){if(!r.stateNode){r=r.return;continue}if(Ze.instrumentation?.fiberRoots.has(r.stateNode)){o=r,s=r.stateNode.current;break}r=r.return}if(!o||!s)return{};if(n=Tk(n,s)?n:n.alternate??n,!n)return{};if(!t_(n))return{};const c=sl(n)?.[0];return c?{parentCompositeFiber:Tk(c,s)?c:c.alternate??c}:{}},tR=e=>{const t=e.memoizedProps??{},n=e.alternate?.memoizedProps??{},r=[];for(const o in t){if(o==="children")continue;const s=t[o],c=n[o];Fa(s,c)||r.push({name:o,value:s,prevValue:c,type:1})}return r},Fb=new Set(["HTML","HEAD","META","TITLE","BASE","SCRIPT","SCRIPT","STYLE","LINK","NOSCRIPT","SOURCE","TRACK","EMBED","OBJECT","PARAM","TEMPLATE","PORTAL","SLOT","AREA","XML","DOCTYPE","COMMENT"]),Jh=(e,t=!0)=>
129{if(e.stateNode&&"nodeType"in e.stateNode){const r=e.stateNode;return t&&r.tagName&&Fb.has(r.tagName.toLowerCase())?null:r}let n=e.child;for(;n;){const r=Jh(n,t);if(r)return r;n=n.sibling}return null},Cj=(e=document.body)=>{const t=[],n=o=>{if(!o)return null;const{parentCompositeFiber:s}=bo(o);return s&&Jh(s)===o?o:null},r=(o,s=0)=>{const c=n(o);if(c){const{parentCompositeFiber:d}=bo(c);if(!d)return;t.push({element:c,depth:s,name:rn(d.type)??"Unknown",fiber:d})}for(const d of Array.from(o.children))r(d,c?s+1:s)};return r(e),t},$k=e=>{try{if(e===null)return"null";if(e===void 0)return"undefined";if(ll(e))return"Promise";if(typeof e=="function"){const t=e.toString();try{return t.replace(/\s+/g," ").replace(/{\s+/g,`{ 130 `).replace(/;\s+/g,`; 131 `).replace(/}\s*$/g,` 132}`).replace(/\(\s+/g,"(").replace(/\s+\)/g,")").replace(/,\s+/g,", ")}catch{return t}}switch(!0){case e instanceof Date:return e.toISOString();case e instanceof RegExp:return e.toString();case e instanceof Error:return`${e.name}: ${e.message}`;case e instanceof Map:return JSON.stringify(Array.from(e.entries()),null,2);case e instanceof Set:return JSON.stringify(Array.from(e),null,2);case e instanceof DataView:return JSON.stringify(Array.from(new Uint8Array(e.buffer)),null,2);case e instanceof ArrayBuffer:return JSON.stringify(Array.from(new Uint8Array(e)),null,2);case(ArrayBuffer.isView(e)&&"length"in e):return JSON.stringify(Array.from(e),null,2);case Array.isArray(e):return JSON.stringify(e,null,2);case typeof e=="object":return JSON.stringify(e,null,2);default:return String(e)}}catch{return String(e)}},$j=(e,t)=>{try{return typeof e!="function"||typeof t!="function"?!1:e.toString()===t.toString()}catch{return!1}},nR=(e,t,n=[],r=new WeakSet)=>{if(e===t)return{type:"primitive",changes:[],hasDeepChanges:!1};if(typeof e=="function"&&typeof t=="function"){const h=$j(e,t);return{type:"primitive",changes:[{path:n,prevValue:e,currentValue:t,sameFunction:h}],hasDeepChanges:!h}}if(e===null||t===null||e===void 0||t===void 0||typeof e!="object"||typeof t!="object")return{type:"primitive",changes:[{path:n,prevValue:e,currentValue:t}],hasDeepChanges:!0};if(r.has(e)||r.has(t))return{type:"object",changes:[{path:n,prevValue:"[Circular]",currentValue:"[Circular]"}],hasDeepChanges:!1};r.add(e),r.add(t);const o=e,s=t,c=new Set([...Object.keys(o),...Object.keys(s)]),d=[];let f=!1;for(const h of c){const g=o[h],m=s[h];if(g!==m)if(typeof g=="object"&&typeof m=="object"&&g!==null&&m!==null){const y=nR(g,m,[...n,h],r);d.push(...y.changes),y.hasDeepChanges&&(f=!0)}else d.push({path:[...n,h],prevValue:g,currentValue:m}),f=!0}return{type:"object",changes:d,hasDeepChanges:f}},Lr=e=>e.length===0?"":e.reduce((t,n,r)=>/^\d+$/.test(n)?`${t}[${n}]`:r===0?n:`${t}.${n}`,"");function Rj(e){const t=e.replace(/\s+/g," ").trim(),n=[];let r="";for(let k=0;k<t.length;k++){const $=t[k];if($==="="&&t[k+1]===">"){r.trim()&&n.push(r.trim()),n.push("=>"),r="",k++;continue}/[(){}[\];,<>:\?!]/.test($)?(r.trim()&&n.push(r.trim()),n.push($),r=""):/\s/.test($)?(r.trim()&&n.push(r.trim()),r=""):r+=$}r.trim()&&n.push(r.trim());const o=[];for(let k=0;k<n.length;k++){const $=n[k],z=n[k+1];$==="("&&z===")"||$==="["&&z==="]"||$==="{"&&z==="}"||$==="<"&&z===">"?(o.push($+z),k++):o.push($)}const s=new Set,c=new Set;function d(k,$,z){let N=0;for(let O=z;O<o.length;O++){const I=o[O];if(I===k)N++;else if(I===$&&(N--,N===0))return O}return-1}for(let k=0;k<o.length;k++)if(o[k]==="("){const z=d("(",")",k);if(z!==-1&&o[z+1]==="=>")for(let N=k;N<=z;N++)s.add(N)}for(let k=1;k<o.length;k++){const $=o[k-1],z=o[k];if(/^[a-zA-Z0-9_$]+$/.test($)&&z==="<"){const N=d("<",">",k);if(N!==-1)for(let O=k;O<=N;O++)c.add(O)}}let f=0;const h=" ",g=[];let m="";function y(){m.trim()&&g.push(m.replace(/\s+$/,"")),m=""}function _(){y(),m=h.repeat(f)}const w=[];function S(){return w.length?w[w.length-1]:null}function T(k,$=!1){m.trim()?$||/^[),;:\].}>]$/.test(k)?m+=k:m+=` ${k}`:m+=k}for(let k=0;k<o.length;k++){const $=o[k],z=o[k+1]||"";if(["(","{","[","<"].includes($)){if(T($),w.push($),$==="{")f++,_();else if(($==="("||$==="["||$==="<")&&!(s.has(k)&&$==="("||c.has(k)&&$==="<")){const N={"(":")","[":"]","<":">"}[$];z!==N&&z!=="()"&&z!=="[]"&&z!=="<>"&&(f++,_())}}else if([")","}","]",">"].includes($)){const N=S();$===")"&&N==="("||$==="]"&&N==="["||$===">"&&N==="<"?!(s.has(k)&&$===")")&&!(c.has(k)&&$===">")&&(f=Math.max(f-1,0),_()):$==="}"&&N==="{"&&(f=Math.max(f-1,0),_()),w.pop(),T($),$==="}"&&_()}else if(/^\(\)|\[\]|\{\}|\<\>$/.test($))T($);else if($==="=>")T($);else if($===";")T($,!0),_();else if($===","){T($,!0);const N=S();!(s.has(k)&&N==="(")&&!(c.has(k)&&N==="<")&&N&&["{","[","(","<"].includes(N)&&_()}else T($)}return y(),g.join(` 133`).replace(/\n\s*\n+/g,` 134`).trim()}var Ib=(e,t=!1)=>{try{const n=e.toString(),r=n.match(/(?:function\s*)?(?:\(([^)]*)\)|([^=>\s]+))\s*=>?/);if(!r)return"Æ";const s=(r[1]||r[2]||"").replace(/\s+/g,"");return t?Rj(n):`Æ (${s}) => ...`}catch{return"Æ"}},ep=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return`"${e.length>150?`${e.slice(0,20)}...`:e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="function")return Ib(e);if(Array.isArray(e))return`Array(${e.length})`;if(e instanceof Map)return`Map(${e.size})`;if(e instanceof Set)return`Set(${e.size})`;if(e instanceof Date)return e.toISOString();if(e instanceof RegExp)return e.toString();if(e instanceof Error)return`${e.name}: ${e.message}`;if(typeof e=="object"){const t=Object.keys(e);return`{${t.length>2?`${t.slice(0,2).join(", ")}, ...`:t.join(", ")}}`}return String(e)},Aj=e=>{if(e==null)return{value:e};if(typeof e=="function")return{value:e};if(typeof e!="object")return{value:e};if(e instanceof Promise)return{value:"Promise"};try{const t=Object.getPrototypeOf(e);
134return t===Promise.prototype||t?.constructor?.name==="Promise"?{value:"Promise"}:{value:e}}catch{return{value:null,error:"Error accessing value"}}},ll=e=>!!e&&(e instanceof Promise||typeof e=="object"&&"then"in e),Mj=e=>{const t=vo(e);return{displayName:rn(e)||"Unknown",type:e.type,key:e.key,id:e.index,selfTime:t?.selfTime??null,totalTime:t?.totalTime??null}},r_=new Map,rR=new Map,i_=new Map,jb=null,zj=/\[(?<name>\w+),\s*set\w+\]/g,Oj=e=>{const t=e.type?.toString?.()||"";return t?Array.from(t.matchAll(zj),n=>n.groups?.name??""):[]},Nj=()=>{r_.clear(),rR.clear(),i_.clear(),jb=null},Dj=e=>{const t=e.type!==jb;return jb=e.type,t},Yv=(e,t,n,r)=>{const o=e.get(t),s=e===r_||e===i_,c=!Fa(n,r);if(!o)return e.set(t,{count:c&&s?1:0,currentValue:n,previousValue:r,lastUpdated:Date.now()}),{hasChanged:c,count:c&&s?1:s?0:1};if(!Fa(o.currentValue,n)){const d=o.count+1;return e.set(t,{count:d,currentValue:n,previousValue:o.currentValue,lastUpdated:Date.now()}),{hasChanged:!0,count:d}}return{hasChanged:!1,count:o.count}},Rk=e=>{if(!e)return{};if(e.tag===Sp||e.tag===Ep||e.tag===Hu||e.tag===Uu){let t=e.memoizedState;const n={};let r=0;for(;t;)t.queue&&t.memoizedState!==void 0&&(n[r]=t.memoizedState),t=t.next,r++;return n}return e.tag===Io?e.memoizedState||{}:{}},a_=e=>{const t=e.memoizedProps||{},n=e.alternate?.memoizedProps||{},r={},o={},s=Object.keys(t);for(const d of s)d in t&&(r[d]=t[d],o[d]=n[d]);const c=tR(e).map(d=>({name:d.name,value:d.value,prevValue:d.prevValue}));return{current:r,prev:o,changes:c}},o_=e=>{const t=Rk(e),n=e.alternate?Rk(e.alternate):{},r=[];for(const[o,s]of Object.entries(t)){const c=e.tag===Io?o:Number(o);e.alternate&&!Fa(n[o],s)&&r.push({name:c,value:s,prevValue:n[o]})}return{current:t,prev:n,changes:r}},s_=e=>{const t=Mk(e),n=e.alternate?Mk(e.alternate):new Map,r={},o={},s=[],c=new Set;for(const[d,f]of t){const h=f.displayName,g=d;if(c.has(g))continue;c.add(g),r[h]=f.value;const m=n.get(d);m&&(o[h]=m.value,Fa(m.value,f.value)||s.push({name:h,value:f.value,prevValue:m.value,contextType:d}))}return{current:r,prev:o,changes:s}},Pj=e=>{const t=()=>({current:[],changes:new Set,changesCounts:new Map});
134if(!e)return{data:{fiberProps:t(),fiberState:t(),fiberContext:t()},shouldUpdate:!1};let n=!1;const r=Dj(e),o=t();if(e.memoizedProps){const{current:m,changes:y}=a_(e);for(const[_,w]of Object.entries(m))o.current.push({name:_,value:ll(w)?{type:"promise",displayValue:"Promise"}:w});for(const _ of y){const{hasChanged:w,count:S}=Yv(r_,_.name,_.value,_.prevValue);w&&(n=!0,o.changes.add(_.name),o.changesCounts.set(_.name,S))}}const s=t(),{current:c,changes:d}=o_(e);for(const[m,y]of Object.entries(c)){const _=e.tag===Io?m:Number(m);s.current.push({name:_,value:y})}for(const m of d){const{hasChanged:y,count:_}=Yv(rR,m.name,m.value,m.prevValue);y&&(n=!0,s.changes.add(m.name),s.changesCounts.set(m.name,_))}const f=t(),{current:h,changes:g}=s_(e);for(const[m,y]of Object.entries(h))f.current.push({name:m,value:y});if(!r)for(const m of g){const{hasChanged:y,count:_}=Yv(i_,m.name,m.value,m.prevValue);y&&(n=!0,f.changes.add(m.name),f.changesCounts.set(m.name,_))}return!n&&!r&&(o.changes.clear(),s.changes.clear(),f.changes.clear()),{data:{fiberProps:o,fiberState:s,fiberContext:f},shouldUpdate:n||r}},Ak=new WeakMap,Mk=e=>{if(!e)return new Map;const t=Ak.get(e);if(t)return t;const n=new Map;let r=e;for(;r;){const o=r.dependencies;if(o?.firstContext){let s=o.firstContext;for(;s;){const c=s.memoizedValue,d=s.context?.displayName;if(n.has(c)||n.set(s.context,{value:c,displayName:d??"UnnamedContext",contextType:null}),s===s.next)break;s=s.next}}r=r.return}return Ak.set(e,n),n},zk=e=>{const t=()=>({current:[],changes:new Set,changesCounts:new Map});
134if(!e)return{fiberProps:t(),fiberState:t(),fiberContext:t()};const n=t();if(e.memoizedProps){const{current:d,changes:f}=a_(e);for(const[h,g]of Object.entries(d))n.current.push({name:h,value:ll(g)?{type:"promise",displayValue:"Promise"}:g});for(const h of f)n.changes.add(h.name),n.changesCounts.set(h.name,1)}const r=t();if(e.memoizedState){const{current:d,changes:f}=o_(e);for(const[h,g]of Object.entries(d))r.current.push({name:h,value:ll(g)?{type:"promise",displayValue:"Promise"}:g});for(const h of f)r.changes.add(h.name),r.changesCounts.set(h.name,1)}const o=t(),{current:s,changes:c}=s_(e);for(const[d,f]of Object.entries(s))o.current.push({name:d,value:ll(f)?{type:"promise",displayValue:"Promise"}:f});for(const d of c)o.changes.add(d.name),o.changesCounts.set(d.name,1);return{fiberProps:n,fiberState:r,fiberContext:o}},Ub=0,Ok=performance.now(),Zv=0,Nk=!1,iR=()=>{Zv++;const e=performance.now();e-Ok>=1e3&&(Ub=Zv,Zv=0,Ok=e),requestAnimationFrame(iR)},aR=()=>(Nk||(Nk=!0,iR(),Ub=60),Ub),Lj=e=>{if(!e)return[];const t=[];if(e.tag===Sp||e.tag===Ep||e.tag===Hu||e.tag===Uu){let n=e.memoizedState,r=e.alternate?.memoizedState,o=0;for(;n;){if(n.queue&&n.memoizedState!==void 0){const s={type:2,name:o.toString(),value:n.memoizedState,prevValue:r?.memoizedState};Fa(s.prevValue,s.value)||t.push(s)}n=n.next,r=r?.next,o++}return t}if(e.tag===Io){const n={type:3,name:"state",value:e.memoizedState,prevValue:e.alternate?.memoizedState};return Fa(n.prevValue,n.value)||t.push(n),t}return t},Xv=0,Dk=new WeakMap,Fj=e=>{const t=Dk.get(e);return t||(Xv++,Dk.set(e,Xv),Xv)};function Ij(e,t){if(!e||!t)return;const n=e.memoizedValue,r={type:4,name:e.context.displayName??"Context.Provider",value:n,contextType:Fj(e.context)};this.push(r)}var jj=e=>{const t=[];return wI(e,Ij.bind(t)),t},oR=new Map,Pk=!1,Wv=()=>Array.from(oR.values()),Uj=16,Hb=new WeakMap;function sR(e){return String(La(e))}function lR(e){const t=sR(e),n=Hb.get(jo(e));if(n)return n.get(t)}function Hj(e,t){const n=jo(e.type),r=sR(e);let o=Hb.get(n);o||(o=new Map,Hb.set(n,o)),o.set(r,t)}var Bj=(e,t,n,r,o)=>{const s=Date.now(),c=lR(e);if((r||o)&&(!c||s-(c.lastRenderTimestamp||0)>Uj)){const d=c||{selfTime:0,totalTime:0,renderCount:0,lastRenderTimestamp:s};d.renderCount=(d.renderCount||0)+1,d.selfTime=t||0,d.totalTime=n||0,d.lastRenderTimestamp=s,Hj(e,{...d})}},qj=(e,t)=>{const n={isPaused:Zt(!Ze.options.value.enabled),fiberRoots:new WeakSet};return oR.set(e,{key:e,config:t,instrumentation:n}),Pk||(Pk=!0,RI({name:"react-scan",onActive:t.onActive,onCommitFiberRoot(r,o){n.fiberRoots.add(o);const s=Wv();for(const c of s)c.config.onCommitStart();$I(o.current,(c,d)=>{const f=jo(c.type);if(!f)return null;const h=Wv(),g=[];for(let $=0,z=h.length;$<z;$++)h[$].config.isValidFiber(c)&&g.push($);if(!g.length)return null;const m=[];if(h.some($=>$.config.trackChanges)){const $=a_(c).changes,z=o_(c).changes,N=s_(c).changes;m.push.apply(null,$.map(O=>({type:1,name:O.name,value:O.value})));for(const O of z)c.tag===Io?m.push({type:3,name:O.name.toString(),value:O.value}):m.push({type:2,name:O.name.toString(),value:O.value});m.push.apply(null,N.map(O=>({type:4,name:O.name,value:O.value,contextType:Number(O.contextType)})))}const{selfTime:y,totalTime:_}=vo(c),w=aR(),S={phase:d9[d],componentName:rn(f),count:1,changes:m,time:y,forget:Ru(c),unnecessary:null,didCommit:j0(c),fps:w},T=m.length>0,k=xI(c).length>0;d==="update"&&Bj(c,y,_,T,k);for(let $=0,z=g.length;$<z;$++){const N=g[$];h[N].config.onRender(c,[S])}});for(const c of s)c.config.onCommitFinish()},onPostCommitFiberRoot(){const r=Wv();for(const o of r)o.config.onPostCommitFiberRoot()}})),n},Vj=e=>{const t=new Map;for(let n=0,r=e.length;n<r;n++){const o=e[n];if(!o.componentName)continue;const s=t.get(o.componentName)??[],c=c9([{aggregatedCount:1,computedKey:null,name:o.componentName,frame:null,...o,changes:{type:o.changes.reduce((h,g)=>h|g.type,0),unstable:o.changes.some(h=>h.unstable)},phase:o.phase,computedCurrent:null}]);if(!c)continue;let d=null,f=null;if(o.changes)for(let h=0,g=o.changes.length;h<g;h++){const{name:m,prevValue:y,nextValue:_,unstable:w,type:S}=o.changes[h];S===1?(d??={},f??={},d[`${w?"â ï¸":""}${m} (prev)`]=y,f[`${w?"â ï¸":""}${m} (next)`]=_):s.push({prev:y,next:_,type:S===4?"context":"state",unstable:w??!1})}d&&f&&s.push({prev:d,next:f,type:"props",unstable:!1}),t.set(c,s)}for(const[n,r]of Array.from(t.entries())){console.group(`%c${n}`,"background: hsla(0,0%,70%,.3); border-radius:3px; padding: 0 2px;");for(const{type:o,prev:s,next:c,unstable:d}of r)console.log(`${o}:`,d?"â ï¸":"",s,"!==",c);console.groupEnd()}},Gj=()=>
134{if(window.hideIntro){window.hideIntro=void 0;return}console.log("%c[·] %cReact Scan","font-weight:bold;color:#7a68e8;font-size:20px;","font-weight:bold;font-size:14px;"),console.log("Try React Scan Monitoring to target performance issues in production: https://react-scan.com/monitoring")},Lk=7,Yj="Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace",Zj=.1,Uf=(e,t)=>Math.floor(e+(t-e)*Zj),Xj=4,tp=40,Kv=45,Qv="115,97,230";function Wj(e,t){return t[0]-e[0]}function Kj(e){return[...e.entries()].sort(Wj)}function Fk([e,t]){let n=`${t.slice(0,Xj).join(", ")} Ã${e}`;return n.length>tp&&(n=`${n.slice(0,tp)}â¦`),n}var Ik=e=>{const t=new Map;for(const{name:s,count:c}of e)t.set(s,(t.get(s)||0)+c);const n=new Map;for(const[s,c]of t){const d=n.get(c);d?d.push(s):n.set(c,[s])}const r=Kj(n);let o=Fk(r[0]);for(let s=1,c=r.length;s<c;s++)o+=", "+Fk(r[s]);return o.length>tp?`${o.slice(0,tp)}â¦`:o},jk=e=>{let t=0;for(const n of e)t+=n.width*n.height;return t},Qj=(e,t)=>{for(const{id:n,name:r,count:o,x:s,y:c,width:d,height:f,didCommit:h}of t){const g={id:n,name:r,count:o,x:s,y:c,width:d,height:f,frame:0,targetX:s,targetY:c,targetWidth:d,targetHeight:f,didCommit:h},m=String(g.id),y=e.get(m);y?(y.count++,y.frame=0,y.targetX=s,y.targetY=c,y.targetWidth=d,y.targetHeight=f,y.didCommit=h):e.set(m,g)}},Jj=(e,t,n)=>{for(const r of e.values()){const o=r.x-t,s=r.y-n;r.targetX=o,r.targetY=s}},eU=(e,t)=>{const n=e.getContext("2d",{alpha:!0});return n&&n.scale(t,t),n},tU=(e,t,n,r)=>{e.clearRect(0,0,t.width/n,t.height/n);const o=new Map,s=new Map;for(const f of r.values()){const{x:h,y:g,width:m,height:y,targetX:_,targetY:w,targetWidth:S,targetHeight:T,frame:k}=f;_!==h&&(f.x=Uf(h,_)),w!==g&&(f.y=Uf(g,w)),S!==m&&(f.width=Uf(m,S)),T!==y&&(f.height=Uf(y,T));const $=`${_??h},${w??g}`,z=`${$},${S??m},${T??y}`,N=o.get($);N?N.push(f):o.set($,[f]);const O=1-k/Kv;f.frame++;const I=s.get(z)||{x:h,y:g,width:m,height:y,alpha:O};O>I.alpha&&(I.alpha=O),s.set(z,I)}for(const{x:f,y:h,width:g,height:m,alpha:y}of s.values())e.strokeStyle=`rgba(${Qv},${y})`,e.lineWidth=1,e.beginPath(),e.rect(f,h,g,m),e.stroke(),e.fillStyle=`rgba(${Qv},${y*.1})`,e.fill();e.font=`11px ${Yj}`;const c=new Map;e.textRendering="optimizeSpeed";for(const f of o.values()){const h=f[0],{x:g,y:m,frame:y}=h,_=1-y/Kv,w=Ik(f),{width:S}=e.measureText(w);if(c.set(`${g},${m},${S},${w}`,{text:w,width:S,height:11,alpha:_,x:g,y:m,outlines:f}),y>Kv)for(const k of f)r.delete(String(k.id))}const d=Array.from(c.entries()).sort(([f,h],[g,m])=>jk(m.outlines)-jk(h.outlines));for(const[f,h]of d)if(c.has(f))for(const[g,m]of c.entries()){if(f===g)continue;const{x:y,y:_,width:w,height:S}=h,{x:T,y:k,width:$,height:z}=m;y+w>T&&T+$>y&&_+S>k&&k+z>_&&(h.text=Ik(h.outlines.concat(m.outlines)),h.width=e.measureText(h.text).width,c.delete(g))}for(const f of c.values()){const{x:h,y:g,alpha:m,width:y,height:_,text:w}=f;let S=g-_-4;S<0&&(S=0),e.fillStyle=`rgba(${Qv},${m})`,e.fillRect(h,S,y+4,_+4),e.fillStyle=`rgba(255,255,255,${m})`,e.fillText(w,h+2,S+_)}return r.size>0},nU='"use strict";(()=>{var D="Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace";var M=(t,i)=>Math.floor(t+(i-t)*.1);var _="115,97,230";function F(t,i){return i[0]-t[0]}function I(t){return[...t.entries()].sort(F)}function $([t,i]){let o=`${i.slice(0,4).join(", ")} \\xD7${t}`;return o.length>40&&(o=`${o.slice(0,40)}\\u2026`),o}var S=t=>{let i=new Map;for(let{name:e,count:u}of t)i.set(e,(i.get(e)||0)+u);let o=new Map;for(let[e,u]of i){let A=o.get(u);A?A.push(e):o.set(u,[e])}let h=I(o),s=$(h[0]);for(let e=1,u=h.length;e<u;e++)s+=", "+$(h[e]);return s.length>40?`${s.slice(0,40)}\\u2026`:s},X=t=>{let i=0;for(let o of t)i+=o.width*o.height;return i};var N=(t,i)=>{let o=t.getContext("2d",{alpha:!0});return o&&o.scale(i,i),o},Y=(t,i,o,h)=>{t.clearRect(0,0,i.width/o,i.height/o);let s=new Map,e=new Map;for(let n of h.values()){let{x:r,y:c,width:a,height:g,targetX:l,targetY:d,targetWidth:f,targetHeight:p,frame:O}=n;l!==r&&(n.x=M(r,l)),d!==c&&(n.y=M(c,d)),f!==a&&(n.width=M(a,f)),p!==g&&(n.height=M(g,p));let w=`${l??r},${d??c}`,y=`${w},${f??a},${p??g}`,v=s.get(w);v?v.push(n):s.set(w,[n]);let E=1-O/45;n.frame++;let x=e.get(y)||{x:r,y:c,width:a,height:g,alpha:E};E>
134x.alpha&&(x.alpha=E),e.set(y,x)}for(let{x:n,y:r,width:c,height:a,alpha:g}of e.values())t.strokeStyle=`rgba(${_},${g})`,t.lineWidth=1,t.beginPath(),t.rect(n,r,c,a),t.stroke(),t.fillStyle=`rgba(${_},${g*.1})`,t.fill();t.font=`11px ${D}`;let u=new Map;t.textRendering="optimizeSpeed";for(let n of s.values()){let r=n[0],{x:c,y:a,frame:g}=r,l=1-g/45,d=S(n),{width:f}=t.measureText(d),p=11;u.set(`${c},${a},${f},${d}`,{text:d,width:f,height:p,alpha:l,x:c,y:a,outlines:n});let O=a-p-4;if(O<0&&(O=0),g>45)for(let w of n)h.delete(String(w.id))}let A=Array.from(u.entries()).sort(([n,r],[c,a])=>X(a.outlines)-X(r.outlines));for(let[n,r]of A)if(u.has(n))for(let[c,a]of u.entries()){if(n===c)continue;let{x:g,y:l,width:d,height:f}=r,{x:p,y:O,width:w,height:y}=a;g+d>p&&p+w>g&&l+f>O&&O+y>l&&(r.text=S(r.outlines.concat(a.outlines)),r.width=t.measureText(r.text).width,u.delete(c))}for(let n of u.values()){let{x:r,y:c,alpha:a,width:g,height:l,text:d}=n,f=c-l-4;f<0&&(f=0),t.fillStyle=`rgba(${_},${a})`,t.fillRect(r,f,g+4,l+4),t.fillStyle=`rgba(255,255,255,${a})`,t.fillText(d,r+2,f+l)}return h.size>0};var m=null,L=null,b=1,T=new Map,C=null,R=()=>{if(!L||!m)return;Y(L,m,b,T)?C=requestAnimationFrame(R):C=null};self.onmessage=t=>{let{type:i}=t.data;if(i==="init"&&(m=t.data.canvas,b=t.data.dpr,m&&(m.width=t.data.width,m.height=t.data.height,L=N(m,b))),!(!m||!L)){if(i==="resize"){b=t.data.dpr,m.width=t.data.width*b,m.height=t.data.height*b,L.resetTransform(),L.scale(b,b),R();return}if(i==="draw-outlines"){let{data:o,names:h}=t.data,s=new Float32Array(o);for(let e=0;e<s.length;e+=7){let u=s[e+2],A=s[e+3],n=s[e+4],r=s[e+5],c=s[e+6],a={id:s[e],name:h[e/7],count:s[e+1],x:u,y:A,width:n,height:r,frame:0,targetX:u,targetY:A,targetWidth:n,targetHeight:r,didCommit:c},g=String(a.id),l=T.get(g);l?(l.count++,l.frame=0,l.targetX=u,l.targetY=A,l.targetWidth=n,l.targetHeight=r,l.didCommit=c):T.set(g,a)}C||(C=requestAnimationFrame(R));return}if(i==="scroll"){let{deltaX:o,deltaY:h}=t.data;for(let s of T.values()){let e=s.x-o,u=s.y-h;s.targetX=e,s.targetY=u}}}};})();\n',ni=null,np=null,_o=null,wr=1,rp=null,l_=new Map,fu=new Map,Xs=new Set,rU=e=>{if(!Tp(e))return;const t=typeof e.type=="string"?e.type:rn(e);if(!t)return;const n=fu.get(e),r=SI(e),o=j0(e);n?n.count++:(fu.set(e,{name:t,count:1,elements:r.map(s=>s.stateNode),didCommit:o?1:0}),Xs.add(e))},iU=e=>{const t=e[0];if(e.length===1)return t;let n,r,o,s;for(let c=0,d=e.length;c<d;c++){const f=e[c];n=n==null?f.x:Math.min(n,f.x),r=r==null?f.y:Math.min(r,f.y),o=o==null?f.x+f.width:Math.max(o,f.x+f.width),s=s==null?f.y+f.height:Math.max(s,f.y+f.height)}return n==null||r==null||o==null||s==null?e[0]:new DOMRect(n,r,o-n,s-r)};function aU(e,t){const n=[];for(const r of e){const o=r.target;this.seenElements.has(o)||(this.seenElements.add(o),n.push(r))}n.length>0&&this.resolveNext&&(this.resolveNext(n),this.resolveNext=null),this.seenElements.size===this.uniqueElements.size&&(t.disconnect(),this.done=!0,this.resolveNext&&this.resolveNext([]))}var cR=async function*(e){const t={uniqueElements:new Set(e),seenElements:new Set,resolveNext:null,done:!1},n=new IntersectionObserver(aU.bind(t));for(const r of t.uniqueElements)n.observe(r);for(;!t.done;){const r=await new Promise(o=>{t.resolveNext=o});r.length>0&&(yield r)}},oU=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer,sU=async()=>{const e=[];for(const n of Xs){const r=fu.get(n);if(r)for(let o=0;o<r.elements.length;o++)r.elements[o]instanceof Element&&e.push(r.elements[o])}const t=new Map;for await(const n of cR(e)){for(const c of n){const d=c.target,f=c.intersectionRect;c.isIntersecting&&f.width&&f.height&&t.set(d,f)}const r=[],o=[],s=[];for(const c of Xs){const d=fu.get(c);if(!d)continue;const f=[];for(let h=0;h<d.elements.length;h++){const g=d.elements[h],m=t.get(g);m&&f.push(m)}f.length&&(r.push(d),o.push(iU(f)),s.push(La(c)))}if(r.length>0){const c=new oU(r.length*Lk*4),d=new Float32Array(c),f=new Array(r.length);let h;for(let g=0,m=r.length;g<m;g++){const y=r[g],_=s[g],{x:w,y:S,width:T,height:k}=o[g],{count:$,name:z,didCommit:N}=y;if(ni){const O=g*Lk;d[O]=_,d[O+1]=$,d[O+2]=w,d[O+3]=S,d[O+4]=T,d[O+5]=k,d[O+6]=N,f[g]=z}else h||=new Array(r.length),h[g]={id:_,name:z,count:$,x:w,y:S,width:T,height:k,didCommit:N}}ni?ni.postMessage({type:"draw-outlines",data:c,names:f}):np&&_o&&h&&(Qj(l_,h),rp||(rp=requestAnimationFrame(c_)))}}for(const n of Xs)fu.delete(n),Xs.delete(n)},c_=()=>{if(!_o||!np)return;tU(_o,np,wr,l_)?rp=requestAnimationFrame(c_):rp=null},lU=typeof OffscreenCanvas<"u"&&typeof Worker<"u",Uk=()=>Math.min(window.devicePixelRatio||1,2),cU=()=>{uU();const e=document.createElement("div");e.setAttribute("data-react-scan","true");const t=e.attachShadow({mode:"open"}),n=document.createElement("canvas");if(n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.pointerEvents="none",n.style.zIndex="2147483646",n.setAttribute("aria-hidden","true"),t.appendChild(n),!n)return null;wr=Uk(),np=n;
134const{innerWidth:r,innerHeight:o}=window;n.style.width=`${r}px`,n.style.height=`${o}px`;const s=r*wr,c=o*wr;if(n.width=s,n.height=c,lU&&!window.__REACT_SCAN_EXTENSION__)try{ni=new Worker(URL.createObjectURL(new Blob([nU],{type:"application/javascript"})));const m=n.transferControlToOffscreen();ni?.postMessage({type:"init",canvas:m,width:n.width,height:n.height,dpr:wr},[m])}catch(m){console.warn("Failed to initialize OffscreenCanvas worker:",m)}ni||(_o=eU(n,wr));let d=!1;window.addEventListener("resize",()=>{d||(d=!0,setTimeout(()=>{const m=window.innerWidth,y=window.innerHeight;wr=Uk(),n.style.width=`${m}px`,n.style.height=`${y}px`,ni?ni.postMessage({type:"resize",width:m,height:y,dpr:wr}):(n.width=m*wr,n.height=y*wr,_o&&(_o.resetTransform(),_o.scale(wr,wr)),c_()),d=!1}))});let f=window.scrollX,h=window.scrollY,g=!1;return window.addEventListener("scroll",()=>{g||(g=!0,setTimeout(()=>{const{scrollX:m,scrollY:y}=window,_=m-f,w=y-h;f=m,h=y,ni?ni.postMessage({type:"scroll",deltaX:_,deltaY:w}):requestAnimationFrame(Jj.bind(null,l_,_,w)),g=!1},32))}),setInterval(()=>{Xs.size&&requestAnimationFrame(sU)},32),t.appendChild(n),e},Hk=()=>globalThis.__REACT_SCAN_STOP__,uU=()=>{const e=document.querySelector("[data-react-scan]");e&&e.remove()},dU=e=>{if(Tp(e)&&Ze.options.value.showToolbar!==!1&&ye.inspectState.value.kind==="focused"){const t=e,{selfTime:n}=vo(e),r=rn(e.type),o=La(t),s=ye.reportData.get(o),c=s?.count??0,d=s?.time??0,f=[],h=ye.changesListeners.get(La(e));if(h?.length){const m=tR(e).map(S=>({type:1,name:S.name,value:S.value,prevValue:S.prevValue,unstable:!1})),y=Lj(e),w=jj(e).map(S=>({name:S.name,type:4,value:S.value,contextType:S.contextType}));h.forEach(S=>{S({propsChanges:m,stateChanges:y,contextChanges:w})})}const g={count:c+1,time:d+n||0,renders:[],displayName:r,type:jo(e.type)||null,changes:f};ye.reportData.set(o,g),Bb=!0}},Bb=!1,Bk,fU=()=>{clearInterval(Bk),Bk=setInterval(()=>{Bb&&(ye.lastReportTime.value=Date.now(),Bb=!1)},50)},hU=e=>!aB.has(e.memoizedProps),pU=e=>{if(Hk())return;let t,n=!1;const r=()=>{n||(t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{n=!0;const s=cU();s&&document.documentElement.appendChild(s),e()}))},o=qj("react-scan-devtools-0.1.0",{onCommitStart:()=>{Ze.options.value.onCommitStart?.()},onActive:()=>{Hk()||(r(),window.__REACT_SCAN_EXTENSION__||(globalThis.__REACT_SCAN__={ReactScanInternals:Ze}),fU(),Gj())},onError:()=>{},isValidFiber:hU,onRender:(s,c)=>{Tp(s)&&ye.interactionListeningForRenders?.(s,c);const d=Ze.instrumentation?.isPaused.value,f=ye.inspectState.value.kind==="inspect-off"||ye.inspectState.value.kind==="uninitialized";d&&f||(d||rU(s),Ze.options.value.log&&Vj(c),ye.inspectState.value.kind==="focused"&&(e_.value=Date.now()),f||dU(s),Ze.options.value.onRender?.(s,c))},onCommitFinish:()=>{r(),Ze.options.value.onCommitFinish?.()},onPostCommitFiberRoot(){r()},trackChanges:!1});Ze.instrumentation=o},mU=`*, ::before, ::after { 135 --tw-border-spacing-x: 0; 136 --tw-border-spacing-y: 0; 137 --tw-translate-x: 0; 138 --tw-translate-y: 0; 139 --tw-rotate: 0; 140 --tw-skew-x: 0; 141 --tw-skew-y: 0; 142 --tw-scale-x: 1; 143 --tw-scale-y: 1; 144 --tw-pan-x: ; 145 --tw-pan-y: ; 146 --tw-pinch-zoom: ; 147 --tw-scroll-snap-strictness: proximity; 148 --tw-gradient-from-position: ; 149 --tw-gradient-via-position: ; 150 --tw-gradient-to-position: ; 151 --tw-ordinal: ; 152 --tw-slashed-zero: ; 153 --tw-numeric-figure: ; 154 --tw-numeric-spacing: ; 155 --tw-numeric-fraction: ; 156 --tw-ring-inset: ; 157 --tw-ring-offset-width: 0px; 158 --tw-ring-offset-color: #fff; 159 --tw-ring-color: rgb(59 130 246 / 0.5); 160 --tw-ring-offset-shadow: 0 0 #0000; 161 --tw-ring-shadow: 0 0 #0000; 162 --tw-shadow: 0 0 #0000; 163 --tw-shadow-colored: 0 0 #0000; 164 --tw-blur: ; 165 --tw-brightness: ; 166 --tw-contrast: ; 167 --tw-grayscale: ; 168 --tw-hue-rotate: ; 169 --tw-invert: ; 170 --tw-saturate: ; 171 --tw-sepia: ; 172 --tw-drop-shadow: ; 173 --tw-backdrop-blur: ; 174 --tw-backdrop-brightness: ; 175 --tw-backdrop-contrast: ; 176 --tw-backdrop-grayscale: ; 177 --tw-backdrop-hue-rotate: ; 178 --tw-backdrop-invert: ; 179 --tw-backdrop-opacity: ; 180 --tw-backdrop-saturate: ; 181 --tw-backdrop-sepia: ; 182 --tw-contain-size: ; 183 --tw-contain-layout: ; 184 --tw-contain-paint: ; 185 --tw-contain-style: ; 186} 187 188::backdrop { 189 --tw-border-spacing-x: 0; 190 --tw-border-spacing-y: 0; 191 --tw-translate-x: 0; 192 --tw-translate-y: 0; 193 --tw-rotate: 0; 194 --tw-skew-x: 0; 195 --tw-skew-y: 0; 196 --tw-scale-x: 1; 197 --tw-scale-y: 1; 198 --tw-pan-x: ; 199 --tw-pan-y: ; 200 --tw-pinch-zoom: ; 201 --tw-scroll-snap-strictness: proximity; 202 --tw-gradient-from-position: ;
203 --tw-gradient-via-position: ; 204 --tw-gradient-to-position: ; 205 --tw-ordinal: ; 206 --tw-slashed-zero: ; 207 --tw-numeric-figure: ; 208 --tw-numeric-spacing: ; 209 --tw-numeric-fraction: ; 210 --tw-ring-inset: ; 211 --tw-ring-offset-width: 0px; 212 --tw-ring-offset-color: #fff; 213 --tw-ring-color: rgb(59 130 246 / 0.5); 214 --tw-ring-offset-shadow: 0 0 #0000; 215 --tw-ring-shadow: 0 0 #0000; 216 --tw-shadow: 0 0 #0000; 217 --tw-shadow-colored: 0 0 #0000; 218 --tw-blur: ; 219 --tw-brightness: ; 220 --tw-contrast: ; 221 --tw-grayscale: ; 222 --tw-hue-rotate: ; 223 --tw-invert: ; 224 --tw-saturate: ; 225 --tw-sepia: ; 226 --tw-drop-shadow: ; 227 --tw-backdrop-blur: ; 228 --tw-backdrop-brightness: ; 229 --tw-backdrop-contrast: ; 230 --tw-backdrop-grayscale: ; 231 --tw-backdrop-hue-rotate: ; 232 --tw-backdrop-invert: ; 233 --tw-backdrop-opacity: ; 234 --tw-backdrop-saturate: ; 235 --tw-backdrop-sepia: ; 236 --tw-contain-size: ; 237 --tw-contain-layout: ; 238 --tw-contain-paint: ; 239 --tw-contain-style: ; 240}/* 241! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com 242*//* 2431. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2442. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) 245*/ 246 247*, 248::before, 249::after { 250 box-sizing: border-box; /* 1 */ 251 border-width: 0; /* 2 */ 252 border-style: solid; /* 2 */ 253 border-color: #e5e7eb; /* 2 */ 254} 255 256::before, 257::after { 258 --tw-content: ''; 259} 260 261/* 2621. Use a consistent sensible line-height in all browsers. 2632. Prevent adjustments of font size after orientation changes in iOS. 2643. Use a more readable tab size. 2654. Use the user's configured \`sans\` font-family by default. 2665. Use the user's configured \`sans\` font-feature-settings by default. 2676. Use the user's configured \`sans\` font-variation-settings by default. 2687. Disable tap highlights on iOS 269*/ 270 271html, 272:host { 273 line-height: 1.5; /* 1 */ 274 -webkit-text-size-adjust: 100%; /* 2 */ 275 -moz-tab-size: 4; /* 3 */ 276 -o-tab-size: 4; 277 tab-size: 4; /* 3 */ 278 font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ 279 font-feature-settings: normal; /* 5 */ 280 font-variation-settings: normal; /* 6 */ 281 -webkit-tap-highlight-color: transparent; /* 7 */ 282} 283 284/* 2851. Remove the margin in all browsers. 2862. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element. 287*/ 288 289body { 290 margin: 0; /* 1 */ 291 line-height: inherit; /* 2 */ 292} 293 294/* 2951. Add the correct height in Firefox. 2962. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 2973. Ensure horizontal rules are visible by default. 298*/ 299 300hr { 301 height: 0; /* 1 */ 302 color: inherit; /* 2 */ 303 border-top-width: 1px; /* 3 */ 304} 305 306/* 307Add the correct text decoration in Chrome, Edge, and Safari. 308*/ 309 310abbr:where([title]) { 311 -webkit-text-decoration: underline dotted; 312 text-decoration: underline dotted; 313} 314 315/* 316Remove the default font size and weight for headings. 317*/ 318 319h1, 320h2, 321h3, 322h4, 323h5, 324h6 { 325 font-size: inherit; 326 font-weight: inherit; 327} 328
329/* 330Reset links to optimize for opt-in styling instead of opt-out. 331*/ 332 333a { 334 color: inherit; 335 text-decoration: inherit; 336} 337 338/* 339Add the correct font weight in Edge and Safari. 340*/ 341 342b, 343strong { 344 font-weight: bolder; 345} 346 347/* 3481. Use the user's configured \`mono\` font-family by default. 3492. Use the user's configured \`mono\` font-feature-settings by default. 3503. Use the user's configured \`mono\` font-variation-settings by default. 3514. Correct the odd \`em\` font sizing in all browsers. 352*/ 353 354code, 355kbd, 356samp, 357pre { 358 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console
vendor: 4,933 bytes, lines 358-632
358, monospace; /* 1 */ 359 font-feature-settings: normal; /* 2 */ 360 font-variation-settings: normal; /* 3 */ 361 font-size: 1em; /* 4 */ 362} 363 364/* 365Add the correct font size in all browsers. 366*/ 367 368small { 369 font-size: 80%; 370} 371 372/* 373Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers. 374*/ 375 376sub, 377sup { 378 font-size: 75%; 379 line-height: 0; 380 position: relative; 381 vertical-align: baseline; 382} 383 384sub { 385 bottom: -0.25em; 386} 387 388sup { 389 top: -0.5em; 390} 391 392/* 3931. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 3942. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 3953. Remove gaps between table borders by default. 396*/ 397 398table { 399 text-indent: 0; /* 1 */ 400 border-color: inherit; /* 2 */ 401 border-collapse: collapse; /* 3 */ 402} 403 404/* 4051. Change the font styles in all browsers. 4062. Remove the margin in Firefox and Safari. 4073. Remove default padding in all browsers. 408*/ 409 410button, 411input, 412optgroup, 413select, 414textarea { 415 font-family: inherit; /* 1 */ 416 font-feature-settings: inherit; /* 1 */ 417 font-variation-settings: inherit; /* 1 */ 418 font-size: 100%; /* 1 */ 419 font-weight: inherit; /* 1 */ 420 line-height: inherit; /* 1 */ 421 letter-spacing: inherit; /* 1 */ 422 color: inherit; /* 1 */ 423 margin: 0; /* 2 */ 424 padding: 0; /* 3 */ 425} 426 427/* 428Remove the inheritance of text transform in Edge and Firefox. 429*/ 430 431button, 432select { 433 text-transform: none; 434} 435 436/* 4371. Correct the inability to style clickable types in iOS and Safari. 4382. Remove default button styles. 439*/ 440 441button, 442input:where([type='button']), 443input:where([type='reset']), 444input:where([type='submit']) { 445 -webkit-appearance: button; /* 1 */ 446 background-color: transparent; /* 2 */ 447 background-image: none; /* 2 */ 448} 449 450/* 451Use the modern Firefox focus style for all focusable elements. 452*/ 453 454:-moz-focusring { 455 outline: auto; 456} 457 458/* 459Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) 460*/ 461 462:-moz-ui-invalid { 463 box-shadow: none; 464} 465 466/* 467Add the correct vertical alignment in Chrome and Firefox. 468*/ 469 470progress { 471 vertical-align: baseline; 472} 473 474/* 475Correct the cursor style of increment and decrement buttons in Safari. 476*/ 477 478::-webkit-inner-spin-button, 479::-webkit-outer-spin-button { 480 height: auto; 481} 482 483/* 4841. Correct the odd appearance in Chrome and Safari. 4852. Correct the outline style in Safari. 486*/ 487 488[type='search'] { 489 -webkit-appearance: textfield; /* 1 */ 490 outline-offset: -2px; /* 2 */ 491} 492 493/* 494Remove the inner padding in Chrome and Safari on macOS. 495*/ 496 497::-webkit-search-decoration { 498 -webkit-appearance: none; 499} 500 501/* 5021. Correct the inability to style clickable types in iOS and Safari. 5032. Change font properties to \`inherit\` in Safari. 504*/ 505 506::-webkit-file-upload-button { 507 -webkit-appearance: button; /* 1 */ 508 font: inherit; /* 2 */ 509} 510 511/* 512Add the correct display in Chrome and Safari. 513*/ 514 515summary { 516 display: list-item; 517} 518 519/* 520Removes the default spacing and border for appropriate elements. 521*/ 522 523blockquote, 524dl, 525dd, 526h1, 527h2, 528h3, 529h4, 530h5, 531h6, 532hr, 533figure, 534p, 535pre { 536 margin: 0; 537} 538 539fieldset { 540 margin: 0; 541 padding: 0; 542} 543 544legend { 545 padding: 0; 546} 547 548ol, 549ul, 550menu { 551 list-style: none; 552 margin: 0; 553 padding: 0; 554} 555 556/* 557Reset default styling for dialogs. 558*/ 559dialog { 560 padding: 0; 561} 562 563/* 564Prevent resizing textareas horizontally by default. 565*/ 566 567textarea { 568 resize: vertical; 569} 570 571/* 5721. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) 5732. Set the default placeholder color to the user's configured gray 400 color. 574*/ 575 576input::-moz-placeholder, textarea::-moz-placeholder { 577 opacity: 1; /* 1 */ 578 color: #9ca3af; /* 2 */ 579} 580 581input::placeholder, 582textarea::placeholder { 583 opacity: 1; /* 1 */ 584 color: #9ca3af; /* 2 */ 585} 586 587/* 588Set the default cursor for buttons. 589*/ 590 591button, 592[role="button"] { 593 cursor: pointer; 594} 595 596/* 597Make sure disabled buttons don't get the pointer cursor. 598*/ 599:disabled { 600 cursor: default; 601} 602 603/* 6041. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14) 6052. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) 606 This can trigger a poorly considered lint error in some tools but is included by design. 607*/ 608 609img, 610svg, 611video, 612canvas, 613audio, 614iframe, 615embed, 616object { 617 display: block; /* 1 */ 618 vertical-align: middle; /* 2 */ 619} 620 621/* 622Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) 623*/ 624 625img, 626video { 627 max-width: 100%; 628 height: auto; 629} 630 631/* Make elements with the HTML hidden attribute stay hidden by default */ 632[hidden]
632:where(:not([hidden="until-found"])) { 633 display: none; 634} 635.\\!container { 636 width: 100% !important; 637} 638.container { 639 width: 100%; 640} 641@media (min-width: 640px) { 642 643 .\\!container { 644 max-width: 640px !important; 645 } 646 647 .container { 648 max-width: 640px; 649 } 650} 651@media (min-width: 768px) { 652 653 .\\!container { 654 max-width: 768px !important; 655 } 656 657 .container { 658 max-width: 768px; 659 } 660} 661@media (min-width: 1024px) { 662 663 .\\!container { 664 max-width: 1024px !important; 665 } 666 667 .container { 668 max-width: 1024px; 669 } 670} 671@media (min-width: 1280px) { 672 673 .\\!container { 674 max-width: 1280px !important; 675 } 676 677 .container { 678 max-width: 1280px; 679 } 680} 681@media (min-width: 1536px) { 682 683 .\\!container { 684 max-width: 1536px !important; 685 } 686 687 .container { 688 max-width: 1536px; 689 } 690} 691.pointer-events-none { 692 pointer-events: none; 693} 694.pointer-events-auto { 695 pointer-events: auto; 696} 697.visible { 698 visibility: visible; 699} 700.static { 701 position: static; 702} 703.fixed { 704 position: fixed; 705} 706.absolute { 707 position: absolute; 708} 709.relative { 710 position: relative; 711} 712.sticky { 713 position: sticky; 714} 715.inset-0 { 716 inset: 0px; 717} 718.inset-x-1 { 719 left: 4px; 720 right: 4px; 721} 722.inset-y-0 { 723 top: 0px; 724 bottom: 0px; 725} 726.-right-1 { 727 right: -4px; 728} 729.-right-2\\.5 { 730 right: -10px; 731} 732.-top-1 { 733 top: -4px; 734} 735.-top-2\\.5 { 736 top: -10px; 737} 738.bottom-0 { 739 bottom: 0px; 740} 741.bottom-4 { 742 bottom: 16px; 743} 744.left-0 { 745 left: 0px; 746} 747.left-3 { 748 left: 12px; 749} 750.right-0 { 751 right: 0px; 752} 753.right-0\\.5 { 754 right: 2px; 755} 756.right-2 { 757 right: 8px; 758} 759.right-4 { 760 right: 16px; 761} 762.top-0 { 763 top: 0px; 764} 765.top-0\\.5 { 766 top: 2px; 767} 768.top-1\\/2 { 769 top: 50%; 770} 771.top-2 { 772 top: 8px; 773} 774.z-10 { 775 z-index: 10; 776} 777.z-100 { 778 z-index: 100; 779} 780.z-50 { 781 z-index: 50; 782} 783.z-\\[124124124124\\] { 784 z-index: 124124124124; 785} 786.z-\\[214748365\\] { 787 z-index: 214748365; 788} 789.z-\\[214748367\\] { 790 z-index: 214748367; 791} 792.m-\\[2px\\] { 793 margin: 2px; 794} 795.mx-0\\.5 { 796 margin-left: 2px; 797 margin-right: 2px; 798} 799.\\!ml-0 { 800 margin-left: 0px !important; 801} 802.mb-1\\.5 { 803 margin-bottom: 6px; 804} 805.mb-2 { 806 margin-bottom: 8px; 807} 808.mb-3 { 809 margin-bottom: 12px; 810} 811.mb-4 { 812 margin-bottom: 16px; 813} 814.mb-px { 815 margin-bottom: 1px; 816} 817.ml-1 { 818 margin-left: 4px; 819} 820.ml-1\\.5 { 821 margin-left: 6px; 822} 823.ml-auto { 824 margin-left: auto; 825} 826.mr-0\\.5 { 827 margin-right: 2px; 828} 829.mr-1 { 830 margin-right: 4px; 831} 832.mr-1\\.5 { 833 margin-right: 6px; 834} 835.mr-16 { 836 margin-right: 64px; 837} 838.mr-auto { 839 margin-right: auto; 840} 841.mt-0\\.5 { 842 margin-top: 2px; 843} 844.mt-1 { 845 margin-top: 4px; 846} 847.mt-4 { 848 margin-top: 16px; 849} 850.block { 851 display: block; 852} 853.inline { 854 display: inline; 855} 856.flex { 857 display: flex; 858} 859.table { 860 display: table; 861} 862.hidden { 863 display: none; 864} 865.aspect-square { 866 aspect-ratio: 1 / 1; 867} 868.h-1 { 869 height: 4px; 870} 871.h-1\\.5 { 872 height: 6px; 873} 874.h-10 { 875 height: 40px; 876} 877.h-12 { 878 height: 48px; 879} 880.h-4 { 881 height: 16px; 882} 883.h-4\\/5 { 884 height: 80%; 885} 886.h-6 { 887 height: 24px; 888} 889.h-7 { 890 height: 28px; 891} 892.h-8 { 893 height: 32px; 894} 895.h-\\[150px\\] { 896 height: 150px; 897} 898.h-\\[235px\\] { 899 height: 235px; 900} 901.h-\\[28px\\] { 902 height: 28px; 903} 904.h-\\[48px\\] { 905 height: 48px; 906} 907.h-\\[50px\\] { 908 height: 50px; 909} 910.h-\\[calc\\(100\\%-150px\\)\\] { 911 height: calc(100% - 150px); 912} 913.h-\\[calc\\(100\\%-200px\\)\\] { 914 height: calc(100% - 200px); 915} 916.h-\\[calc\\(100\\%-25px\\)\\] { 917 height: calc(100% - 25px); 918} 919.h-\\[calc\\(100\\%-40px\\)\\] { 920 height: calc(100% - 40px); 921} 922.h-\\[calc\\(100\\%-48px\\)\\] { 923 height: calc(100% - 48px); 924} 925.h-fit { 926 height: -moz-fit-content; 927 height: fit-content; 928} 929.h-full { 930 height: 100%; 931} 932.h-screen { 933 height: 100vh; 934} 935.max-h-0 { 936 max-height: 0px; 937} 938.max-h-40 { 939 max-height: 160px; 940} 941.max-h-9 { 942 max-height: 36px; 943} 944.min-h-9 { 945 min-height: 36px; 946} 947.min-h-\\[48px\\] { 948 min-height: 48px; 949} 950.min-h-fit { 951 min-height: -moz-fit-content; 952 min-height: fit-content; 953} 954.w-1 { 955 width: 4px; 956} 957.w-1\\/2 { 958 width: 50%; 959} 960.w-1\\/3 { 961 width: 33.333333%; 962} 963.w-2\\/4 { 964 width: 50%; 965} 966.w-3 { 967 width: 12px; 968} 969.w-4 { 970 width: 16px; 971} 972.w-4\\/5 { 973 width: 80%; 974} 975.w-6 { 976 width: 24px; 977} 978.w-80 { 979 width: 320px; 980} 981.w-\\[20px\\] { 982 width: 20px; 983} 984.w-\\[72px\\] { 985 width: 72px; 986} 987.w-\\[90\\%\\] { 988 width: 90%; 989} 990.w-\\[calc\\(100\\%-200px\\)\\] { 991 width: calc(100% - 200px); 992} 993.w-fit { 994 width: -moz-fit-content; 995 width: fit-content; 996} 997.w-full { 998 width: 100%; 999} 1000.w-px { 1001 width: 1px; 1002} 1003.w-screen { 1004 width: 100vw; 1005} 1006.min-w-0 { 1007 min-width: 0px; 1008} 1009.min-w-\\[200px\\] { 1010 min-width: 200px; 1011} 1012.min-w-fit { 1013 min-width: -moz-fit-content; 1014 min-width: fit-content; 1015} 1016.max-w-md { 1017 max-width: 448px; 1018} 1019.flex-1 { 1020 flex: 1 1 0%; 1021} 1022.shrink-0 { 1023 flex-shrink: 0; 1024} 1025.grow { 1026 flex-grow: 1; 1027} 1028.-translate-y-1\\/2 { 1029 --tw-translate-y: -50%; 1030 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1031} 1032.-translate-y-\\[200\\%\\] { 1033 --tw-translate-y: -200%; 1034 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1035} 1036.translate-y-0 { 1037 --tw-translate-y: 0px; 1038 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1039} 1040.translate-y-1 { 1041 --tw-translate-y: 4px; 1042 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1043} 1044.-rotate-90 { 1045 --tw-rotate: -90deg; 1046 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1047} 1048.rotate-0 { 1049 --tw-rotate: 0deg; 1050 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1051} 1052.rotate-180 { 1053 --tw-rotate: 180deg; 1054 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1055} 1056.rotate-90 { 1057 --tw-rotate: 90deg; 1058 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1059} 1060.scale-110 { 1061 --tw-scale-x: 1.1; 1062 --tw-scale-y: 1.1; 1063 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1064} 1065.transform { 1066 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 1067} 1068@keyframes fadeIn { 1069 1070 0% { 1071 opacity: 0; 1072 } 1073 1074 100% { 1075 opacity: 1; 1076 } 1077} 1078.animate-fade-in { 1079 animation: fadeIn ease-in forwards; 1080} 1081.cursor-default { 1082 cursor: default; 1083} 1084.cursor-e-resize { 1085 cursor: e-resize; 1086} 1087.cursor-ew-resize { 1088 cursor: ew-resize; 1089} 1090.cursor-move {
1091 cursor: move; 1092} 1093.cursor-nesw-resize { 1094 cursor: nesw-resize; 1095} 1096.cursor-ns-resize { 1097 cursor: ns-resize; 1098} 1099.cursor-nwse-resize { 1100 cursor: nwse-resize; 1101} 1102.cursor-pointer { 1103 cursor: pointer; 1104} 1105.cursor-w-resize { 1106 cursor: w-resize; 1107} 1108.select-none { 1109 -webkit-user-select: none; 1110 -moz-user-select: none; 1111 user-select: none; 1112} 1113.resize { 1114 resize: both; 1115} 1116.appearance-none { 1117 -webkit-appearance: none; 1118 -moz-appearance: none; 1119 appearance: none; 1120} 1121.flex-col { 1122 flex-direction: column; 1123} 1124.items-start { 1125 align-items: flex-start; 1126} 1127.items-end { 1128 align-items: flex-end; 1129} 1130.items-center { 1131 align-items: center; 1132} 1133.items-stretch { 1134 align-items: stretch; 1135} 1136.justify-start { 1137 justify-content: flex-start; 1138} 1139.justify-end { 1140 justify-content: flex-end; 1141} 1142.justify-center { 1143 justify-content: center; 1144} 1145.justify-between { 1146 justify-content: space-between; 1147} 1148.gap-0\\.5 { 1149 gap: 2px; 1150} 1151.gap-1 { 1152 gap: 4px; 1153} 1154.gap-1\\.5 { 1155 gap: 6px; 1156} 1157.gap-2 { 1158 gap: 8px; 1159} 1160.gap-4 { 1161 gap: 16px; 1162} 1163.gap-x-0\\.5 { 1164 -moz-column-gap: 2px; 1165 column-gap: 2px; 1166} 1167.gap-x-1 { 1168 -moz-column-gap: 4px; 1169 column-gap: 4px; 1170} 1171.gap-x-1\\.5 { 1172 -moz-column-gap: 6px; 1173 column-gap: 6px; 1174} 1175.gap-x-2 { 1176 -moz-column-gap: 8px; 1177 column-gap: 8px; 1178} 1179.gap-x-3 { 1180 -moz-column-gap: 12px; 1181 column-gap: 12px; 1182} 1183.gap-x-4 { 1184 -moz-column-gap: 16px; 1185 column-gap: 16px; 1186} 1187.gap-y-0\\.5 { 1188 row-gap: 2px; 1189} 1190.gap-y-1 { 1191 row-gap: 4px; 1192} 1193.gap-y-2 { 1194 row-gap: 8px; 1195} 1196.gap-y-4 { 1197 row-gap: 16px; 1198} 1199.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) { 1200 --tw-space-y-reverse: 0; 1201 margin-top: calc(6px * calc(1 - var(--tw-space-y-reverse))); 1202 margin-bottom: calc(6px * var(--tw-space-y-reverse)); 1203} 1204.divide-y > :not([hidden]) ~ :not([hidden]) { 1205 --tw-divide-y-reverse: 0; 1206 border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); 1207 border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); 1208} 1209.divide-zinc-800 > :not([hidden]) ~ :not([hidden]) { 1210 --tw-divide-opacity: 1; 1211 border-color: rgb(39 39 42 / var(--tw-divide-opacity, 1)); 1212} 1213.place-self-center { 1214 place-self: center; 1215} 1216.self-end { 1217 align-self: flex-end; 1218} 1219.overflow-auto { 1220 overflow: auto; 1221} 1222.overflow-hidden { 1223 overflow: hidden; 1224} 1225.\\!overflow-visible { 1226 overflow: visible !important; 1227} 1228.overflow-x-auto { 1229 overflow-x: auto; 1230} 1231.overflow-y-auto { 1232 overflow-y: auto; 1233} 1234.overflow-x-hidden { 1235 overflow-x: hidden; 1236} 1237.truncate { 1238 overflow: hidden; 1239 text-overflow: ellipsis; 1240 white-space: nowrap; 1241} 1242.whitespace-nowrap { 1243 white-space: nowrap; 1244} 1245.whitespace-pre-wrap { 1246 white-space: pre-wrap; 1247} 1248.text-wrap { 1249 text-wrap: wrap; 1250} 1251.break-words { 1252 overflow-wrap: break-word; 1253} 1254.break-all { 1255 word-break: break-all; 1256} 1257.rounded { 1258 border-radius: 4px; 1259} 1260.rounded-full { 1261 border-radius: 9999px; 1262} 1263.rounded-lg { 1264 border-radius: 8px; 1265} 1266.rounded-md { 1267 border-radius: 6px; 1268} 1269.rounded-sm { 1270 border-radius: 2px; 1271} 1272.rounded-l-md { 1273 border-top-left-radius: 6px; 1274 border-bottom-left-radius: 6px; 1275} 1276.rounded-l-sm { 1277 border-top-left-radius: 2px; 1278 border-bottom-left-radius: 2px; 1279} 1280.rounded-r-md { 1281 border-top-right-radius: 6px; 1282 border-bottom-right-radius: 6px; 1283} 1284.rounded-r-sm { 1285 border-top-right-radius: 2px; 1286 border-bottom-right-radius: 2px; 1287} 1288.rounded-t-lg { 1289 border-top-left-radius: 8px; 1290 border-top-right-radius: 8px; 1291} 1292.rounded-t-sm { 1293 border-top-left-radius: 2px; 1294 border-top-right-radius: 2px; 1295} 1296.rounded-bl-lg { 1297 border-bottom-left-radius: 8px; 1298} 1299.rounded-br-lg { 1300 border-bottom-right-radius: 8px; 1301} 1302.rounded-tl-lg { 1303 border-top-left-radius: 8px; 1304} 1305.rounded-tr-lg { 1306 border-top-right-radius: 8px; 1307} 1308.border { 1309 border-width: 1px; 1310} 1311.border-4 { 1312 border-width: 4px; 1313} 1314.border-b { 1315 border-bottom-width: 1px; 1316} 1317.border-l { 1318 border-left-width: 1px; 1319} 1320.border-l-0 { 1321 border-left-width: 0px; 1322} 1323.border-l-1 { 1324 border-left-width: 1px; 1325} 1326.border-r { 1327 border-right-width: 1px; 1328} 1329.border-t { 1330 border-top-width: 1px; 1331} 1332.border-none { 1333 border-style: none; 1334} 1335.\\!border-red-500 { 1336 --tw-border-opacity: 1 !important; 1337 border-color: rgb(239 68 68 / var(--tw-border-opacity, 1)) !important; 1338} 1339.border-\\[\\#1e1e1e\\] { 1340 --tw-border-opacity: 1; 1341 border-color: rgb(30 30 30 / var(--tw-border-opacity, 1)); 1342} 1343.border-\\[\\#222\\] { 1344 --tw-border-opacity: 1; 1345 border-color: rgb(34 34 34 / var(--tw-border-opacity, 1)); 1346} 1347.border-\\[\\#27272A\\] { 1348 --tw-border-opacity: 1; 1349 border-color: rgb(39 39 42 / var(--tw-border-opacity, 1)); 1350} 1351.border-\\[\\#333\\] { 1352 --tw-border-opacity: 1; 1353 border-color: rgb(51 51 51 / var(--tw-border-opacity, 1)); 1354} 1355.border-transparent { 1356 border-color: transparent; 1357} 1358.border-zinc-800 { 1359 --tw-border-opacity: 1; 1360 border-color: rgb(39 39 42 / var(--tw-border-opacity, 1)); 1361} 1362.bg-\\[\\#0A0A0A\\] { 1363 --tw-bg-opacity: 1; 1364 background-color: rgb(10 10 10 / var(--tw-bg-opacity, 1)); 1365} 1366.bg-\\[\\#141414\\] { 1367 --tw-bg-opacity: 1; 1368 background-color: rgb(20 20 20 / var(--tw-bg-opacity, 1)); 1369} 1370.bg-\\[\\#18181B\\] { 1371 --tw-bg-opacity: 1; 1372 background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1)); 1373} 1374.bg-\\[\\#18181B\\]\\/50 { 1375 background-color: rgb(24 24 27 / 0.5); 1376} 1377.bg-\\[\\#1D3A66\\] { 1378 --tw-bg-opacity: 1; 1379 background-color: rgb(29 58 102 / var(--tw-bg-opacity, 1)); 1380} 1381.bg-\\[\\#1E1E1E\\] { 1382 --tw-bg-opacity: 1; 1383 background-color: rgb(30 30 30 / var(--tw-bg-opacity, 1)); 1384} 1385.bg-\\[\\#1a2a1a\\] { 1386 --tw-bg-opacity: 1; 1387 background-color: rgb(26 42 26 / var(--tw-bg-opacity, 1)); 1388} 1389.bg-\\[\\#1e1e1e\\] { 1390 --tw-bg-opacity: 1; 1391 background-color: rgb(30 30 30 / var(--tw-bg-opacity, 1)); 1392} 1393.bg-\\[\\#214379d4\\] { 1394 background-color: #214379d4; 1395} 1396.bg-\\[\\#27272A\\] { 1397 --tw-bg-opacity: 1; 1398 background-color: rgb(39 39 42 / var(--tw-bg-opacity, 1)); 1399} 1400.bg-\\[\\#2a1515\\] { 1401 --tw-bg-opacity: 1; 1402 background-color: rgb(42 21 21 / var(--tw-bg-opacity, 1)); 1403} 1404.bg-\\[\\#412162\\] { 1405 --tw-bg-opacity: 1; 1406 background-color: rgb(65 33 98 / var(--tw-bg-opacity, 1)); 1407} 1408.bg-\\[\\#44444a\\] { 1409 --tw-bg-opacity: 1; 1410 background-color: rgb(68 68 74 / var(--tw-bg-opacity, 1)); 1411} 1412.bg-\\[\\#4b4b4b\\] { 1413 --tw-bg-opacity: 1; 1414 background-color: rgb(75 75 75 / var(--tw-bg-opacity, 1)); 1415} 1416.bg-\\[\\#5f3f9a\\] { 1417 --tw-bg-opacity: 1; 1418 background-color: rgb(95 63 154 / var(--tw-bg-opacity, 1)); 1419} 1420.bg-\\[\\#5f3f9a\\]\\/40 { 1421 background-color: rgb(95 63 154 / 0.4); 1422} 1423.bg-\\[\\#6a369e\\] { 1424 --tw-bg-opacity: 1; 1425 background-color: rgb(106 54 158 / var(--tw-bg-opacity, 1)); 1426} 1427.bg-\\[\\#7521c8\\] { 1428 --tw-bg-opacity: 1; 1429 background-color: rgb(117 33 200 / var(--tw-bg-opacity, 1)); 1430} 1431.bg-\\[\\#8e61e3\\] { 1432 --tw-bg-opacity: 1; 1433 background-color: rgb(142 97 227 / var(--tw-bg-opacity, 1)); 1434} 1435.bg-\\[\\#EFD81A\\] { 1436 --tw-bg-opacity: 1; 1437 background-color: rgb(239 216 26 / var(--tw-bg-opacity, 1)); 1438} 1439.bg-\\[\\#b77116\\] { 1440 --tw-bg-opacity: 1; 1441 background-color: rgb(183 113 22 / var(--tw-bg-opacity, 1)); 1442} 1443.bg-\\[\\#b94040\\] { 1444 --tw-bg-opacity: 1; 1445 background-color: rgb(185 64 64 / var(--tw-bg-opacity, 1)); 1446} 1447.bg-\\[\\#d36cff\\] { 1448 --tw-bg-opacity: 1; 1449 background-color: rgb(211 108 255 / var(--tw-bg-opacity, 1)); 1450} 1451.bg-\\[\\#efd81a6b\\] { 1452 background-color: #efd81a6b; 1453} 1454.bg-black { 1455 --tw-bg-opacity: 1; 1456 background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)); 1457} 1458.bg-black\\/40 { 1459 background-color: rgb(0 0 0 / 0.4); 1460} 1461.bg-gray-200 { 1462 --tw-bg-opacity: 1; 1463 background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1)); 1464} 1465.bg-green-500\\/50 { 1466 background-color: rgb(34 197 94 / 0.5); 1467} 1468.bg-green-500\\/60 { 1469 background-color: rgb(34 197 94 / 0.6); 1470} 1471.bg-neutral-700 { 1472 --tw-bg-opacity: 1; 1473 background-color: rgb(64 64 64 / var(--tw-bg-opacity, 1)); 1474} 1475.bg-purple-500 { 1476 --tw-bg-opacity: 1; 1477 background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1)); 1478} 1479.bg-purple-500\\/90 { 1480 background-color: rgb(168 85 247 / 0.9); 1481} 1482.bg-purple-800 { 1483 --tw-bg-opacity: 1; 1484 background-color: rgb(107 33 168 / var(--tw-bg-opacity, 1)); 1485} 1486.bg-red-500 { 1487 --tw-bg-opacity: 1; 1488 background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1)); 1489} 1490.bg-red-500\\/90 { 1491 background-color: rgb(239 68 68 / 0.9); 1492} 1493.bg-red-950\\/50 {
1494 background-color: rgb(69 10 10 / 0.5); 1495} 1496.bg-transparent { 1497 background-color: transparent; 1498} 1499.bg-white { 1500 --tw-bg-opacity: 1; 1501 background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); 1502} 1503.bg-yellow-300 { 1504 --tw-bg-opacity: 1; 1505 background-color: rgb(253 224 71 / var(--tw-bg-opacity, 1)); 1506} 1507.bg-zinc-800 { 1508 --tw-bg-opacity: 1; 1509 background-color: rgb(39 39 42 / var(--tw-bg-opacity, 1)); 1510} 1511.bg-zinc-900\\/30 { 1512 background-color: rgb(24 24 27 / 0.3); 1513} 1514.bg-zinc-900\\/50 { 1515 background-color: rgb(24 24 27 / 0.5); 1516} 1517.p-0 { 1518 padding: 0px; 1519} 1520.p-1 { 1521 padding: 4px; 1522} 1523.p-2 { 1524 padding: 8px; 1525} 1526.p-3 { 1527 padding: 12px; 1528} 1529.p-4 { 1530 padding: 16px; 1531} 1532.p-5 { 1533 padding: 20px; 1534} 1535.p-6 { 1536 padding: 24px; 1537} 1538.px-1 { 1539 padding-left: 4px; 1540 padding-right: 4px; 1541} 1542.px-1\\.5 { 1543 padding-left: 6px; 1544 padding-right: 6px; 1545} 1546.px-2 { 1547 padding-left: 8px; 1548 padding-right: 8px; 1549} 1550.px-2\\.5 { 1551 padding-left: 10px; 1552 padding-right: 10px; 1553} 1554.px-3 { 1555 padding-left: 12px; 1556 padding-right: 12px; 1557} 1558.px-4 { 1559 padding-left: 16px; 1560 padding-right: 16px; 1561} 1562.py-0\\.5 { 1563 padding-top: 2px; 1564 padding-bottom: 2px; 1565} 1566.py-1 { 1567 padding-top: 4px; 1568 padding-bottom: 4px; 1569} 1570.py-1\\.5 { 1571 padding-top: 6px; 1572 padding-bottom: 6px; 1573} 1574.py-2 { 1575 padding-top: 8px; 1576 padding-bottom: 8px; 1577} 1578.py-3 { 1579 padding-top: 12px; 1580 padding-bottom: 12px; 1581} 1582.py-4 { 1583 padding-top: 16px; 1584 padding-bottom: 16px; 1585} 1586.py-\\[1px\\] { 1587 padding-top: 1px; 1588 padding-bottom: 1px; 1589} 1590.py-\\[3px\\] { 1591 padding-top: 3px; 1592 padding-bottom: 3px; 1593} 1594.py-\\[5px\\] { 1595 padding-top: 5px; 1596 padding-bottom: 5px; 1597} 1598.pb-2 { 1599 padding-bottom: 8px; 1600} 1601.pl-1 { 1602 padding-left: 4px; 1603} 1604.pl-2 { 1605 padding-left: 8px; 1606} 1607.pl-2\\.5 { 1608 padding-left: 10px; 1609} 1610.pl-3 { 1611 padding-left: 12px; 1612} 1613.pl-5 { 1614 padding-left: 20px; 1615} 1616.pl-6 { 1617 padding-left: 24px; 1618} 1619.pr-1 { 1620 padding-right: 4px; 1621} 1622.pr-1\\.5 { 1623 padding-right: 6px; 1624} 1625.pr-2 { 1626 padding-right: 8px; 1627} 1628.pr-2\\.5 { 1629 padding-right: 10px; 1630} 1631.pt-0 { 1632 padding-top: 0px; 1633} 1634.pt-2 { 1635 padding-top: 8px; 1636} 1637.pt-5 { 1638 padding-top: 20px; 1639} 1640.text-left { 1641 text-align: left; 1642} 1643.font-mono { 1644 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; 1645} 1646.text-\\[10px\\] { 1647 font-size: 10px; 1648} 1649.text-\\[11px\\] { 1650 font-size: 11px; 1651} 1652.text-\\[13px\\] { 1653 font-size: 13px; 1654} 1655.text-\\[14px\\] { 1656 font-size: 14px; 1657} 1658.text-\\[17px\\] { 1659 font-size: 17px; 1660} 1661.text-\\[8px\\] { 1662 font-size: 8px; 1663} 1664.text-sm { 1665 font-size: 14px; 1666 line-height: 20px; 1667} 1668.text-xs { 1669 font-size: 12px; 1670 line-height: 16px; 1671} 1672.font-bold { 1673 font-weight: 700; 1674} 1675.font-medium { 1676 font-weight: 500; 1677} 1678.font-semibold { 1679 font-weight: 600; 1680} 1681.uppercase { 1682 text-transform: uppercase; 1683} 1684.lowercase { 1685 text-transform: lowercase; 1686} 1687.capitalize { 1688 text-transform: capitalize; 1689} 1690.italic { 1691 font-style: italic; 1692} 1693.leading-6 { 1694 line-height: 24px; 1695} 1696.leading-none { 1697 line-height: 1; 1698} 1699.tracking-wide { 1700 letter-spacing: 0.025em; 1701} 1702.text-\\[\\#4ade80\\] { 1703 --tw-text-opacity: 1; 1704 color: rgb(74 222 128 / var(--tw-text-opacity, 1)); 1705} 1706.text-\\[\\#5a5a5a\\] { 1707 --tw-text-opacity: 1; 1708 color: rgb(90 90 90 / var(--tw-text-opacity, 1)); 1709} 1710.text-\\[\\#65656D\\] { 1711 --tw-text-opacity: 1; 1712 color: rgb(101 101 109 / var(--tw-text-opacity, 1)); 1713} 1714.text-\\[\\#666\\] { 1715 --tw-text-opacity: 1; 1716 color: rgb(102 102 102 / var(--tw-text-opacity, 1)); 1717} 1718.text-\\[\\#6E6E77\\] { 1719 --tw-text-opacity: 1; 1720 color: rgb(110 110 119 / var(--tw-text-opacity, 1)); 1721} 1722.text-\\[\\#6F6F78\\] { 1723 --tw-text-opacity: 1; 1724 color: rgb(111 111 120 / var(--tw-text-opacity, 1)); 1725} 1726.text-\\[\\#7346a0\\] { 1727 --tw-text-opacity: 1; 1728 color: rgb(115 70 160 / var(--tw-text-opacity, 1)); 1729} 1730.text-\\[\\#737373\\] { 1731 --tw-text-opacity: 1; 1732 color: rgb(115 115 115 / var(--tw-text-opacity, 1)); 1733} 1734.text-\\[\\#888\\] { 1735 --tw-text-opacity: 1; 1736 color: rgb(136 136 136 / var(--tw-text-opacity, 1)); 1737} 1738.text-\\[\\#8E61E3\\] { 1739 --tw-text-opacity: 1; 1740 color: rgb(142 97 227 / var(--tw-text-opacity, 1)); 1741} 1742.text-\\[\\#999\\] { 1743 --tw-text-opacity: 1; 1744 color: rgb(153 153 153 / var(--tw-text-opacity, 1)); 1745} 1746.text-\\[\\#A1A1AA\\] { 1747 --tw-text-opacity: 1; 1748 color: rgb(161 161 170 / var(--tw-text-opacity, 1)); 1749} 1750.text-\\[\\#A855F7\\] { 1751 --tw-text-opacity: 1; 1752 color: rgb(168 85 247 / var(--tw-text-opacity, 1)); 1753} 1754.text-\\[\\#E4E4E7\\] { 1755 --tw-text-opacity: 1;
1756 color: rgb(228 228 231 / var(--tw-text-opacity, 1)); 1757} 1758.text-\\[\\#d36cff\\] { 1759 --tw-text-opacity: 1; 1760 color: rgb(211 108 255 / var(--tw-text-opacity, 1)); 1761} 1762.text-\\[\\#f87171\\] { 1763 --tw-text-opacity: 1; 1764 color: rgb(248 113 113 / var(--tw-text-opacity, 1)); 1765} 1766.text-black { 1767 --tw-text-opacity: 1; 1768 color: rgb(0 0 0 / var(--tw-text-opacity, 1)); 1769} 1770.text-gray-100 { 1771 --tw-text-opacity: 1; 1772 color: rgb(243 244 246 / var(--tw-text-opacity, 1)); 1773} 1774.text-gray-300 { 1775 --tw-text-opacity: 1; 1776 color: rgb(209 213 219 / var(--tw-text-opacity, 1)); 1777} 1778.text-gray-400 { 1779 --tw-text-opacity: 1; 1780 color: rgb(156 163 175 / var(--tw-text-opacity, 1)); 1781} 1782.text-gray-500 { 1783 --tw-text-opacity: 1; 1784 color: rgb(107 114 128 / var(--tw-text-opacity, 1)); 1785} 1786.text-green-500 { 1787 --tw-text-opacity: 1; 1788 color: rgb(34 197 94 / var(--tw-text-opacity, 1)); 1789} 1790.text-neutral-300 { 1791 --tw-text-opacity: 1; 1792 color: rgb(212 212 212 / var(--tw-text-opacity, 1)); 1793} 1794.text-neutral-400 { 1795 --tw-text-opacity: 1; 1796 color: rgb(163 163 163 / var(--tw-text-opacity, 1)); 1797} 1798.text-neutral-500 { 1799 --tw-text-opacity: 1; 1800 color: rgb(115 115 115 / var(--tw-text-opacity, 1)); 1801} 1802.text-purple-400 { 1803 --tw-text-opacity: 1; 1804 color: rgb(192 132 252 / var(--tw-text-opacity, 1)); 1805} 1806.text-red-300 { 1807 --tw-text-opacity: 1; 1808 color: rgb(252 165 165 / var(--tw-text-opacity, 1)); 1809} 1810.text-red-400 { 1811 --tw-text-opacity: 1; 1812 color: rgb(248 113 113 / var(--tw-text-opacity, 1)); 1813} 1814.text-red-500 { 1815 --tw-text-opacity: 1; 1816 color: rgb(239 68 68 / var(--tw-text-opacity, 1)); 1817} 1818.text-white { 1819 --tw-text-opacity: 1; 1820 color: rgb(255 255 255 / var(--tw-text-opacity, 1)); 1821} 1822.text-white\\/30 { 1823 color: rgb(255 255 255 / 0.3); 1824} 1825.text-white\\/70 { 1826 color: rgb(255 255 255 / 0.7); 1827} 1828.text-yellow-300 { 1829 --tw-text-opacity: 1; 1830 color: rgb(253 224 71 / var(--tw-text-opacity, 1)); 1831} 1832.text-yellow-500 { 1833 --tw-text-opacity: 1; 1834 color: rgb(234 179 8 / var(--tw-text-opacity, 1)); 1835} 1836.text-zinc-200 { 1837 --tw-text-opacity: 1; 1838 color: rgb(228 228 231 / var(--tw-text-opacity, 1)); 1839} 1840.text-zinc-400 { 1841 --tw-text-opacity: 1; 1842 color: rgb(161 161 170 / var(--tw-text-opacity, 1)); 1843} 1844.text-zinc-500 { 1845 --tw-text-opacity: 1; 1846 color: rgb(113 113 122 / var(--tw-text-opacity, 1)); 1847} 1848.text-zinc-600 { 1849 --tw-text-opacity: 1; 1850 color: rgb(82 82 91 / var(--tw-text-opacity, 1)); 1851} 1852.opacity-0 { 1853 opacity: 0; 1854} 1855.opacity-100 { 1856 opacity: 1; 1857} 1858.opacity-50 { 1859 opacity: 0.5; 1860} 1861.shadow-lg { 1862 --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
1863 --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); 1864 box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 1865} 1866.outline { 1867 outline-style: solid; 1868} 1869.ring-1 { 1870 --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); 1871 --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); 1872 box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); 1873} 1874.ring-white\\/\\[0\\.08\\] { 1875 --tw-ring-color: rgb(255 255 255 / 0.08); 1876} 1877.blur { 1878 --tw-blur: blur(8px); 1879 filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); 1880} 1881.\\!filter { 1882 filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important; 1883} 1884.filter { 1885 filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); 1886} 1887.backdrop-blur-sm { 1888 --tw-backdrop-blur: blur(4px); 1889 -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); 1890 backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); 1891} 1892.transition { 1893 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter; 1894 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 1895 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter; 1896 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1897 transition-duration: 150ms; 1898} 1899.transition-\\[border-radius\\] { 1900 transition-property: border-radius; 1901 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1902 transition-duration: 150ms; 1903} 1904.transition-\\[color\\2c transform\\] { 1905 transition-property: color,transform; 1906 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1907 transition-duration: 150ms; 1908} 1909.transition-\\[max-height\\] { 1910 transition-property: max-height; 1911 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1912 transition-duration: 150ms; 1913} 1914.transition-\\[opacity\\] { 1915 transition-property: opacity; 1916 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1917 transition-duration: 150ms; 1918} 1919.transition-all { 1920 transition-property: all; 1921 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1922 transition-duration: 150ms; 1923} 1924.transition-colors { 1925 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 1926 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1927 transition-duration: 150ms; 1928} 1929.transition-none { 1930 transition-property: none; 1931} 1932.transition-opacity { 1933 transition-property: opacity; 1934 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1935 transition-duration: 150ms; 1936} 1937.transition-transform { 1938 transition-property: transform; 1939 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1940 transition-duration: 150ms; 1941} 1942.delay-0 { 1943 transition-delay: 0s; 1944} 1945.delay-150 { 1946 transition-delay: 150ms; 1947} 1948.delay-300 { 1949 transition-delay: 300ms; 1950} 1951.\\!duration-0 { 1952 transition-duration: 0s !important; 1953} 1954.duration-0 { 1955 transition-duration: 0s; 1956} 1957.duration-200 { 1958 transition-duration: 200ms; 1959} 1960.duration-300 { 1961 transition-duration: 300ms; 1962} 1963.ease-\\[cubic-bezier\\(0\\.23\\2c 1\\2c 0\\.32\\2c 1\\)\\] { 1964 transition-timing-function: cubic-bezier(0.23,1,0.32,1); 1965} 1966.ease-\\[cubic-bezier\\(0\\.25\\2c 0\\.1\\2c 0\\.25\\2c 1\\)\\] { 1967 transition-timing-function: cubic-bezier(0.25,0.1,0.25,1); 1968} 1969.ease-in-out { 1970 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1971} 1972.ease-out { 1973 transition-timing-function: cubic-bezier(0, 0, 0.2, 1); 1974} 1975.will-change-transform { 1976 will-change: transform; 1977} 1978.animation-duration-300 { 1979 animation-duration: .3s; 1980} 1981.animation-delay-300 { 1982 animation-delay: .3s; 1983} 1984.\\[touch-action\\:none\\] { 1985 touch-action: none; 1986} 1987 1988* { 1989 outline: none !important; 1990 text-rendering: optimizeLegibility; 1991 -webkit-font-smoothing: antialiased; 1992 -moz-osx-font-smoothing: grayscale; 1993 backface-visibility: hidden; 1994 1995 /* WebKit (Chrome, Safari, Edge) specific scrollbar styles */ 1996 &::-webkit-scrollbar {
1997 width: 6px; 1998 height: 6px; 1999 } 2000 2001 &::-webkit-scrollbar-track { 2002 border-radius: 10px; 2003 background: transparent; 2004 } 2005 2006 &::-webkit-scrollbar-thumb { 2007 border-radius: 10px; 2008 background: rgba(255, 255, 255, 0.3); 2009 } 2010 2011 &::-webkit-scrollbar-thumb:hover { 2012 background: rgba(255, 255, 255, 0.4); 2013 } 2014 2015 &::-webkit-scrollbar-corner { 2016 background: transparent; 2017 } 2018} 2019 2020@-moz-document url-prefix() { 2021 * { 2022 scrollbar-width: thin; 2023 scrollbar-color: rgba(255, 255, 255, 0.4) transparent; 2024 scrollbar-width: 6px; 2025 } 2026} 2027 2028button:hover { 2029 background-image: none; 2030} 2031 2032button { 2033 outline: 2px solid transparent; 2034 outline-offset: 2px; 2035 border-style: none; 2036 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 2037 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2038 transition-duration: 150ms; 2039 transition-timing-function: linear; 2040 cursor: pointer; 2041} 2042 2043input { 2044 border-style: none; 2045 background-color: transparent; 2046 background-image: none; 2047 outline: 2px solid transparent; 2048 outline-offset: 2px; 2049} 2050 2051input::-moz-placeholder { 2052 font-size: 12px; 2053 line-height: 16px; 2054 font-style: italic; 2055 --tw-text-opacity: 1; 2056 color: rgb(115 115 115 / var(--tw-text-opacity, 1)); 2057} 2058 2059input::placeholder { 2060 font-size: 12px; 2061 line-height: 16px; 2062 font-style: italic; 2063 --tw-text-opacity: 1; 2064 color: rgb(115 115 115 / var(--tw-text-opacity, 1)); 2065} 2066 2067input:-moz-placeholder-shown { 2068 overflow: hidden; 2069 text-overflow: ellipsis; 2070 white-space: nowrap; 2071} 2072 2073input:placeholder-shown { 2074 overflow: hidden; 2075 text-overflow: ellipsis; 2076 white-space: nowrap; 2077} 2078 2079svg { 2080 height: auto; 2081 width: auto; 2082 pointer-events: none; 2083} 2084 2085/* 2086 Using CSS content with data attributes is more performant than: 2087 1. React re-renders with JSX text content 2088 2. Direct DOM manipulation methods: 2089 - element.textContent (creates/updates text nodes, triggers repaint) 2090 - element.innerText (triggers reflow by computing styles & layout) 2091 - element.innerHTML (heavy parsing, triggers reflow, security risks) 2092 3. Multiple data attributes with complex CSS concatenation 2093 2094 This approach: 2095 - Avoids React reconciliation 2096 - Uses browser's native CSS engine (optimized content updates) 2097 - Minimizes main thread work 2098 - Reduces DOM operations 2099 - Avoids forced reflows (layout recalculation) 2100 - Only triggers necessary repaints 2101 - Keeps pseudo-element updates in render layer 2102*/ 2103.with-data-text { 2104 overflow: hidden; 2105 &::before { 2106 content: attr(data-text); 2107 } 2108 &::before { 2109 display: block; 2110 } 2111 &::before { 2112 overflow: hidden; 2113 text-overflow: ellipsis; 2114 white-space: nowrap; 2115 } 2116} 2117 2118#react-scan-toolbar { 2119 position: fixed; 2120 left: 0px; 2121 top: 0px; 2122 display: flex; 2123 flex-direction: column; 2124 --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2125 --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); 2126 box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 2127 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; 2128 font-size: 13px; 2129 --tw-text-opacity: 1; 2130 color: rgb(255 255 255 / var(--tw-text-opacity, 1)); 2131 --tw-bg-opacity: 1; 2132 background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)); 2133 -webkit-user-select: none; 2134 -moz-user-select: none; 2135 user-select: none; 2136 cursor: move; 2137 opacity: 0; 2138 z-index: 2147483678; 2139} 2140 2141@keyframes fadeIn { 2142 2143 0% { 2144 opacity: 0; 2145 } 2146 2147 100% { 2148 opacity: 1; 2149 } 2150} 2151 2152#react-scan-toolbar { 2153 animation: fadeIn ease-in forwards; 2154 animation-duration: .3s; 2155 animation-delay: .3s; 2156 --tw-shadow: 0 4px 12px rgba(0,0,0,0.2); 2157 --tw-shadow-colored: 0 4px 12px var(--tw-shadow-color); 2158 box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 2159 place-self: start; 2160 2161 /* [CURSOR GENERATED] Anti-blur fixes: 2162 * We removed will-change-transform and replaced it with these properties 2163 * because will-change was causing stacking context issues and inconsistent 2164 * text rendering. The new properties work together to force proper 2165 * GPU acceleration without z-index side effects: 2166 */ 2167 transform: translate3d( 2168 0, 2169 0, 2170 0 2171 ); /* Forces GPU acceleration without causing stacking issues */ 2172 backface-visibility: hidden; /* Prevents blurry text during transforms */ 2173 perspective: 1000; /* Creates proper 3D context for crisp text */ /* Ensures consistent text rendering across browsers */ 2174 transform-style: preserve-3d; 2175} 2176 2177.button { 2178 &:hover { 2179 background: rgba(255, 255, 255, 0.1); 2180 } 2181 2182 &:active { 2183 background: rgba(255, 255, 255, 0.15); 2184 } 2185} 2186 2187.resize-line-wrapper { 2188 position: absolute; 2189 overflow: hidden; 2190} 2191 2192.resize-line { 2193 position: absolute; 2194 inset: 0px; 2195 overflow: hidden; 2196 --tw-bg-opacity: 1; 2197 background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)); 2198 transition-property: all; 2199 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2200 transition-duration: 150ms; 2201 2202 svg { 2203 position: absolute; 2204 } 2205 2206 svg { 2207 top: 50%; 2208 } 2209 2210 svg { 2211 left: 50%; 2212 } 2213 2214 svg { 2215 --tw-translate-x: -50%; 2216 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2217 } 2218 2219 svg { 2220 --tw-translate-y: -50%; 2221 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2222 } 2223} 2224 2225.resize-right, 2226.resize-left { 2227 top: 0px; 2228 bottom: 0px; 2229 width: 24px; 2230 cursor: ew-resize; 2231 2232 .resize-line-wrapper { 2233 top: 0px; 2234 bottom: 0px; 2235 } 2236 2237 .resize-line-wrapper { 2238 width: 50%; 2239 } 2240 2241 &:hover { 2242 .resize-line { 2243 --tw-translate-x: 0px; 2244 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2245 } 2246 } 2247} 2248.resize-right { 2249 right: 0px; 2250 --tw-translate-x: 50%; 2251 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2252 2253 .resize-line-wrapper { 2254 right: 0px; 2255 } 2256 .resize-line { 2257 border-top-right-radius: 8px; 2258 border-bottom-right-radius: 8px; 2259 } 2260 .resize-line { 2261 --tw-translate-x: -100%; 2262 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2263 } 2264} 2265 2266.resize-left { 2267 left: 0px; 2268 --tw-translate-x: -50%; 2269 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2270 2271 .resize-line-wrapper { 2272 left: 0px; 2273 } 2274 .resize-line { 2275 border-top-left-radius: 8px; 2276 border-bottom-left-radius: 8px; 2277 } 2278 .resize-line { 2279 --tw-translate-x: 100%; 2280 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2281 } 2282} 2283 2284.resize-top, 2285.resize-bottom { 2286 left: 0px; 2287 right: 0px; 2288 height: 24px; 2289 cursor: ns-resize; 2290 2291 .resize-line-wrapper { 2292 left: 0px; 2293 right: 0px; 2294 } 2295 2296 .resize-line-wrapper { 2297 height: 50%; 2298 } 2299 2300 &:hover { 2301 .resize-line { 2302 --tw-translate-y: 0px; 2303 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2304 } 2305 } 2306} 2307.resize-top { 2308 top: 0px; 2309 --tw-translate-y: -50%; 2310 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2311 2312 .resize-line-wrapper { 2313 top: 0px; 2314 } 2315 .resize-line { 2316 border-top-left-radius: 8px; 2317 border-top-right-radius: 8px; 2318 } 2319 .resize-line { 2320 --tw-translate-y: 100%; 2321 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2322 } 2323} 2324 2325.resize-bottom { 2326 bottom: 0px; 2327 --tw-translate-y: 50%; 2328 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2329 2330 .resize-line-wrapper { 2331 bottom: 0px; 2332 } 2333 .resize-line { 2334 border-bottom-right-radius: 8px; 2335 border-bottom-left-radius: 8px; 2336 } 2337 .resize-line { 2338 --tw-translate-y: -100%; 2339 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2340 } 2341} 2342 2343.react-scan-header { 2344 display: flex; 2345 align-items: center; 2346 -moz-column-gap: 8px; 2347 column-gap: 8px; 2348 padding-left: 12px; 2349 padding-right: 8px; 2350 min-height: 36px; 2351 border-bottom-width: 1px; 2352 --tw-border-opacity: 1; 2353 border-color: rgb(34 34 34 / var(--tw-border-opacity, 1)); 2354 overflow: hidden; 2355 white-space: nowrap; 2356} 2357 2358.react-scan-replay-button, 2359.react-scan-close-button { 2360 display: flex; 2361 align-items: center; 2362 padding: 4px; 2363 min-width: -moz-fit-content; 2364 min-width: fit-content; 2365 border-radius: 4px; 2366 transition-property: all; 2367 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2368 transition-duration: 300ms; 2369} 2370 2371.react-scan-replay-button { 2372 position: relative; 2373 overflow: hidden; 2374 background-color: rgb(168 85 247 / 0.5) !important; 2375 2376 &:hover { 2377 background-color: rgb(168 85 247 / 0.25); 2378 } 2379 2380 &.disabled { 2381 opacity: 0.5; 2382 } 2383 2384 &.disabled { 2385 pointer-events: none; 2386 } 2387 2388 &:before { 2389 content: ""; 2390 } 2391 2392 &:before { 2393 position: absolute; 2394 } 2395 2396 &:before { 2397 inset: 0px; 2398 } 2399 2400 &:before { 2401 --tw-translate-x: -100%; 2402 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2403 } 2404 2405 &:before { 2406 animation: shimmer 2s infinite; 2407 background: linear-gradient( 2408 to right, 2409 transparent, 2410 rgba(142, 97, 227, 0.3), 2411 transparent 2412 ); 2413 } 2414} 2415 2416.react-scan-close-button { 2417 background-color: rgb(255 255 255 / 0.1); 2418 2419 &:hover { 2420 background-color: rgb(255 255 255 / 0.15); 2421 } 2422} 2423 2424@keyframes shimmer { 2425 100% { 2426 --tw-translate-x: 100%; 2427 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2428 } 2429} 2430 2431.react-section-header { 2432 position: sticky; 2433 z-index: 100; 2434 display: flex; 2435 align-items: center; 2436 -moz-column-gap: 8px; 2437 column-gap: 8px; 2438 padding-left: 12px; 2439 padding-right: 12px; 2440 height: 28px; 2441 width: 100%; 2442 overflow: hidden; 2443 text-overflow: ellipsis; 2444 white-space: nowrap; 2445 --tw-text-opacity: 1; 2446 color: rgb(136 136 136 / var(--tw-text-opacity, 1)); 2447 border-bottom-width: 1px; 2448 --tw-border-opacity: 1; 2449 border-color: rgb(34 34 34 / var(--tw-border-opacity, 1)); 2450 --tw-bg-opacity: 1; 2451 background-color: rgb(10 10 10 / var(--tw-bg-opacity, 1)); 2452} 2453 2454.react-scan-section { 2455 display: flex; 2456 flex-direction: column; 2457 padding-left: 8px; 2458 padding-right: 8px; 2459 --tw-text-opacity: 1; 2460 color: rgb(136 136 136 / var(--tw-text-opacity, 1)); 2461} 2462 2463.react-scan-section::before { 2464 --tw-text-opacity: 1; 2465 color: rgb(107 114 128 / var(--tw-text-opacity, 1)); 2466 --tw-content: attr(data-section); 2467 content: var(--tw-content); 2468} 2469 2470.react-scan-section { 2471 font-size: 12px; 2472 line-height: 16px; 2473 2474 > .react-scan-property { 2475 margin-left: -14px; 2476 } 2477} 2478 2479.react-scan-property { 2480 position: relative; 2481 display: flex; 2482 flex-direction: column; 2483 padding-left: 32px; 2484 border-left-width: 1px; 2485 border-color: transparent; 2486 overflow: hidden; 2487} 2488 2489.react-scan-property-content { 2490 display: flex; 2491 flex: 1 1 0%; 2492 flex-direction: column; 2493 min-height: 28px; 2494 max-width: 100%; 2495 overflow: hidden; 2496} 2497 2498.react-scan-string { 2499 color: #9ecbff; 2500} 2501 2502.react-scan-number {
2503 color: #79c7ff; 2504} 2505 2506.react-scan-boolean { 2507 color: #56b6c2; 2508} 2509 2510.react-scan-key { 2511 width: -moz-fit-content; 2512 width: fit-content; 2513 max-width: 240px; 2514 white-space: nowrap; 2515 --tw-text-opacity: 1; 2516 color: rgb(255 255 255 / var(--tw-text-opacity, 1)); 2517} 2518 2519.react-scan-input { 2520 --tw-text-opacity: 1; 2521 color: rgb(255 255 255 / var(--tw-text-opacity, 1)); 2522 --tw-bg-opacity: 1; 2523 background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)); 2524} 2525 2526@keyframes blink { 2527 from { 2528 opacity: 1; 2529 } 2530 to { 2531 opacity: 0; 2532 } 2533} 2534 2535.react-scan-arrow { 2536 position: absolute; 2537 top: 0px; 2538 left: 28px; 2539 display: flex; 2540 align-items: center; 2541 justify-content: center; 2542 cursor: pointer; 2543 height: 28px; 2544 width: 24px; 2545 --tw-translate-x: -100%; 2546 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2547 z-index: 10; 2548 2549 > svg { 2550 transition-property: transform; 2551 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2552 transition-duration: 150ms; 2553 } 2554} 2555 2556.react-scan-expandable { 2557 display: grid; 2558 grid-template-rows: 0fr; 2559 transition-property: all; 2560 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2561 transition-duration: 75ms; 2562 2563 &.react-scan-expanded { 2564 grid-template-rows: 1fr; 2565 } 2566 2567 &.react-scan-expanded { 2568 transition-duration: 100ms; 2569 } 2570} 2571 2572.react-scan-nested { 2573 position: relative; 2574 overflow: hidden; 2575 2576 &:before { 2577 content: ""; 2578 } 2579 2580 &:before { 2581 position: absolute; 2582 } 2583 2584 &:before { 2585 top: 0px; 2586 } 2587 2588 &:before { 2589 left: 0px; 2590 } 2591 2592 &:before { 2593 height: 100%; 2594 } 2595 2596 &:before { 2597 width: 1px; 2598 } 2599 2600 &:before { 2601 background-color: rgb(107 114 128 / 0.3); 2602 } 2603} 2604 2605.react-scan-settings { 2606 position: absolute; 2607 inset: 0px; 2608 display: flex; 2609 flex-direction: column; 2610 gap: 16px; 2611 padding-top: 8px; 2612 padding-bottom: 8px; 2613 padding-left: 16px; 2614 padding-right: 16px; 2615 --tw-text-opacity: 1; 2616 color: rgb(136 136 136 / var(--tw-text-opacity, 1)); 2617 2618 > div { 2619 display: flex; 2620 } 2621 2622 > div { 2623 align-items: center; 2624 } 2625 2626 > div { 2627 justify-content: space-between; 2628 } 2629 2630 > div { 2631 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 2632 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2633 transition-duration: 150ms; 2634 } 2635 2636 > div { 2637 transition-duration: 300ms; 2638 } 2639} 2640 2641.react-scan-preview-line { 2642 position: relative; 2643 display: flex; 2644 min-height: 28px; 2645 align-items: center; 2646 -moz-column-gap: 8px; 2647 column-gap: 8px; 2648} 2649 2650.react-scan-flash-overlay { 2651 position: absolute; 2652 inset: 0px; 2653 opacity: 0; 2654 z-index: 50; 2655 pointer-events: none; 2656 transition-property: opacity; 2657 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2658 transition-duration: 150ms; 2659 mix-blend-mode: multiply; 2660 background-color: rgb(168 85 247 / 0.9); 2661} 2662 2663.react-scan-toggle { 2664 position: relative; 2665 display: inline-flex; 2666 height: 24px; 2667 width: 40px; 2668 2669 input { 2670 position: absolute; 2671 } 2672 2673 input { 2674 inset: 0px; 2675 } 2676 2677 input { 2678 z-index: 20; 2679 } 2680 2681 input { 2682 opacity: 0; 2683 } 2684 2685 input { 2686 cursor: pointer; 2687 } 2688 2689 input { 2690 height: 100%; 2691 } 2692 2693 input { 2694 width: 100%; 2695 } 2696 2697 input:checked { 2698 + div { 2699 --tw-bg-opacity: 1; 2700 background-color: rgb(95 63 154 / var(--tw-bg-opacity, 1)); 2701 } 2702 + div { 2703 2704 &::before { 2705 --tw-translate-x: 100%; 2706 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2707 } 2708 2709 &::before { 2710 left: auto; 2711 } 2712 2713 &::before { 2714 --tw-border-opacity: 1; 2715 border-color: rgb(95 63 154 / var(--tw-border-opacity, 1)); 2716 } 2717 } 2718 } 2719 2720 > div { 2721 position: absolute; 2722 } 2723 2724 > div { 2725 inset: 4px; 2726 } 2727 2728 > div { 2729 --tw-bg-opacity: 1; 2730 background-color: rgb(64 64 64 / var(--tw-bg-opacity, 1)); 2731 } 2732 2733 > div { 2734 border-radius: 9999px; 2735 } 2736 2737 > div { 2738 pointer-events: none; 2739 } 2740 2741 > div { 2742 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 2743 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2744 transition-duration: 150ms; 2745 } 2746 2747 > div { 2748 transition-duration: 300ms; 2749 } 2750 2751 > div { 2752 2753 &:before { 2754 --tw-content: ''; 2755 content: var(--tw-content); 2756 } 2757 2758 &:before { 2759 position: absolute; 2760 } 2761 2762 &:before { 2763 top: 50%; 2764 } 2765 2766 &:before { 2767 left: 0px; 2768 } 2769 2770 &:before { 2771 --tw-translate-y: -50%; 2772 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 2773 } 2774 2775 &:before { 2776 height: 16px; 2777 } 2778 2779 &:before { 2780 width: 16px; 2781 } 2782 2783 &:before { 2784 --tw-bg-opacity: 1; 2785 background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); 2786 } 2787 2788 &:before { 2789 border-width: 2px; 2790 } 2791 2792 &:before { 2793 --tw-border-opacity: 1; 2794 border-color: rgb(64 64 64 / var(--tw-border-opacity, 1)); 2795 } 2796 2797 &:before { 2798 border-radius: 9999px; 2799 } 2800 2801 &:before { 2802 --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2803 --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); 2804 box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 2805 } 2806 2807 &:before { 2808 transition-property: all; 2809 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2810 transition-duration: 150ms; 2811 } 2812 2813 &:before { 2814 transition-duration: 300ms; 2815 } 2816 } 2817} 2818 2819.react-scan-flash-active { 2820 opacity: 0.4; 2821 transition-property: opacity; 2822 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2823 transition-duration: 300ms; 2824} 2825 2826.react-scan-inspector-overlay { 2827 display: flex; 2828 flex-direction: column; 2829 opacity: 0; 2830 transition-property: opacity; 2831 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2832 transition-duration: 300ms; 2833 2834 &.fade-out { 2835 opacity: 0; 2836 } 2837 2838 &.fade-in { 2839 opacity: 1; 2840 } 2841} 2842 2843.react-scan-what-changed { 2844 ul { 2845 list-style-type: disc; 2846 } 2847 ul { 2848 padding-left: 16px; 2849 } 2850 2851 li { 2852 white-space: nowrap; 2853 } 2854 2855 li { 2856 > div { 2857 display: flex; 2858 } 2859 > div { 2860 align-items: center; 2861 } 2862 > div { 2863 justify-content: space-between; 2864 } 2865 > div { 2866 -moz-column-gap: 8px; 2867 column-gap: 8px; 2868 } 2869 } 2870} 2871 2872.count-badge { 2873 display: flex; 2874 align-items: center; 2875 -moz-column-gap: 8px; 2876 column-gap: 8px; 2877 padding-left: 6px; 2878 padding-right: 6px; 2879 padding-top: 2px; 2880 padding-bottom: 2px; 2881 border-radius: 4px; 2882 font-size: 12px; 2883 line-height: 16px; 2884 font-weight: 500; 2885 --tw-numeric-spacing: tabular-nums; 2886 font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); 2887 --tw-text-opacity: 1; 2888 color: rgb(168 85 247 / var(--tw-text-opacity, 1)); 2889 background-color: rgb(168 85 247 / 0.1); 2890 transform-origin: center; 2891 transition-property: all; 2892 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2893 transition-delay: 150ms; 2894 transition-duration: 300ms; 2895} 2896 2897@keyframes countFlash { 2898 2899 0% { 2900 background-color: rgba(168, 85, 247, 0.3); 2901 transform: scale(1.05); 2902 } 2903 2904 100% { 2905 background-color: rgba(168, 85, 247, 0.1); 2906 transform: scale(1); 2907 } 2908} 2909 2910.count-flash { 2911 animation: countFlash .3s ease-out forwards; 2912} 2913 2914@keyframes countFlashShake { 2915 2916 0% { 2917 transform: translateX(0); 2918 } 2919 2920 25% { 2921 transform: translateX(-5px); 2922 } 2923 2924 50% { 2925 transform: translateX(5px) scale(1.1); 2926 } 2927 2928 75% { 2929 transform: translateX(-5px); 2930 } 2931 2932 100% { 2933 transform: translateX(0); 2934 } 2935} 2936 2937.count-flash-white { 2938 animation: countFlashShake .3s ease-out forwards; 2939 transition-delay: 500ms !important; 2940} 2941 2942.change-scope { 2943 display: flex; 2944 align-items: center; 2945 -moz-column-gap: 4px; 2946 column-gap: 4px; 2947 --tw-text-opacity: 1; 2948 color: rgb(102 102 102 / var(--tw-text-opacity, 1)); 2949 font-size: 12px; 2950 line-height: 16px; 2951 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; 2952 2953 > div { 2954 padding-left: 6px; 2955 padding-right: 6px; 2956 } 2957 2958 > div { 2959 padding-top: 2px; 2960 padding-bottom: 2px; 2961 } 2962 2963 > div { 2964 transform-origin: center; 2965 } 2966 2967 > div { 2968 border-radius: 4px; 2969 } 2970 2971 > div { 2972 font-size: 12px; 2973 line-height: 16px; 2974 } 2975 2976 > div { 2977 font-weight: 500; 2978 } 2979 2980 > div { 2981 --tw-numeric-spacing: tabular-nums; 2982 font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); 2983 } 2984 2985 > div { 2986 transform-origin: center; 2987 } 2988 2989 > div { 2990 transition-property: all; 2991 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 2992 transition-duration: 150ms; 2993 } 2994 2995 > div { 2996 transition-delay: 150ms; 2997 } 2998 2999 > div { 3000 transition-duration: 300ms; 3001 } 3002 3003 > div { 3004 3005 &[data-flash="true"] { 3006 background-color: rgb(168 85 247 / 0.1); 3007 } 3008 3009 &[data-flash="true"] { 3010 --tw-text-opacity: 1; 3011 color: rgb(168 85 247 / var(--tw-text-opacity, 1)); 3012 } 3013 } 3014} 3015 3016.react-scan-slider { 3017 position: relative; 3018 min-height: 24px; 3019 3020 > input { 3021 position: absolute; 3022 } 3023 3024 > input { 3025 inset: 0px; 3026 } 3027 3028 > input { 3029 opacity: 0; 3030 } 3031 3032 &:before { 3033 --tw-content: ''; 3034 content: var(--tw-content); 3035 } 3036 3037 &:before { 3038 position: absolute; 3039 } 3040 3041 &:before { 3042 left: 0px; 3043 right: 0px; 3044 } 3045 3046 &:before { 3047 top: 50%; 3048 } 3049 3050 &:before { 3051 --tw-translate-y: -50%; 3052 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3053 } 3054 3055 &:before { 3056 height: 6px; 3057 } 3058 3059 &:before { 3060 background-color: rgb(142 97 227 / 0.4); 3061 } 3062 3063 &:before { 3064 border-radius: 8px; 3065 } 3066 3067 &:before { 3068 pointer-events: none; 3069 } 3070 3071 &:after { 3072 --tw-content: ''; 3073 content: var(--tw-content); 3074 } 3075 3076 &:after { 3077 position: absolute; 3078 } 3079 3080 &:after { 3081 left: 0px; 3082 right: 0px; 3083 } 3084 3085 &:after { 3086 top: -8px; 3087 bottom: -8px; 3088 } 3089 3090 &:after { 3091 z-index: -10; 3092 } 3093 3094 span { 3095 position: absolute; 3096 } 3097 3098 span { 3099 left: 0px; 3100 } 3101 3102 span { 3103 top: 50%; 3104 } 3105 3106 span { 3107 --tw-translate-y: -50%; 3108 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3109 } 3110 3111 span { 3112 height: 10px; 3113 } 3114 3115 span { 3116 width: 10px; 3117 } 3118 3119 span { 3120 border-radius: 8px; 3121 } 3122 3123 span { 3124 --tw-bg-opacity: 1; 3125 background-color: rgb(142 97 227 / var(--tw-bg-opacity, 1)); 3126 } 3127 3128 span { 3129 pointer-events: none; 3130 } 3131 3132 span { 3133 transition-property: transform; 3134 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3135 transition-duration: 150ms; 3136 } 3137 3138 span { 3139 transition-duration: 75ms; 3140 } 3141} 3142 3143.resize-v-line { 3144 display: flex; 3145 align-items: center; 3146 justify-content: center; 3147 min-width: 4px; 3148 max-width: 4px; 3149 height: 100%; 3150 width: 100%; 3151 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 3152 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3153 transition-duration: 150ms; 3154 3155 &:hover, 3156 &:active { 3157 > span { 3158 --tw-bg-opacity: 1; 3159 background-color: rgb(34 34 34 / var(--tw-bg-opacity, 1)); 3160 } 3161 3162 svg { 3163 opacity: 1; 3164 } 3165 } 3166 3167 &::before { 3168 --tw-content: ""; 3169 content: var(--tw-content); 3170 } 3171 3172 &::before { 3173 position: absolute; 3174 } 3175 3176 &::before { 3177 inset: 0px; 3178 } 3179 3180 &::before { 3181 left: 50%; 3182 } 3183 3184 &::before { 3185 --tw-translate-x: -50%; 3186 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3187 } 3188 3189 &::before { 3190 width: 1px; 3191 } 3192 3193 &::before { 3194 --tw-bg-opacity: 1; 3195 background-color: rgb(34 34 34 / var(--tw-bg-opacity, 1)); 3196 } 3197 3198 &::before { 3199 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 3200 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3201 transition-duration: 150ms; 3202 } 3203 3204 > span { 3205 position: absolute; 3206 } 3207 3208 > span { 3209 left: 50%; 3210 } 3211 3212 > span { 3213 top: 50%; 3214 } 3215 3216 > span { 3217 --tw-translate-x: -50%; 3218 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3219 } 3220 3221 > span { 3222 --tw-translate-y: -50%; 3223 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3224 } 3225 3226 > span { 3227 height: 18px; 3228 } 3229 3230 > span { 3231 width: 6px; 3232 } 3233 3234 > span { 3235 border-radius: 4px; 3236 } 3237 3238 > span { 3239 transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 3240 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3241 transition-duration: 150ms; 3242 } 3243 3244 svg { 3245 position: absolute; 3246 } 3247 3248 svg { 3249 left: 50%; 3250 } 3251 3252 svg { 3253 top: 50%; 3254 } 3255 3256 svg { 3257 --tw-translate-x: -50%; 3258 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3259 } 3260 3261 svg { 3262 --tw-translate-y: -50%; 3263 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3264 } 3265 3266 svg { 3267 --tw-rotate: 90deg; 3268 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3269 } 3270 3271 svg { 3272 --tw-text-opacity: 1; 3273 color: rgb(163 163 163 / var(--tw-text-opacity, 1)); 3274 } 3275 3276 svg { 3277 opacity: 0; 3278 } 3279 3280 svg { 3281 transition-property: opacity; 3282 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3283 transition-duration: 150ms; 3284 } 3285 3286 svg { 3287 z-index: 50; 3288 } 3289} 3290 3291.tree-node-search-highlight { 3292 overflow: hidden; 3293 text-overflow: ellipsis; 3294 white-space: nowrap; 3295 3296 span { 3297 padding-top: 1px; 3298 padding-bottom: 1px; 3299 } 3300 3301 span { 3302 border-radius: 2px; 3303 } 3304 3305 span { 3306 --tw-bg-opacity: 1; 3307 background-color: rgb(253 224 71 / var(--tw-bg-opacity, 1)); 3308 } 3309 3310 span { 3311 font-weight: 500; 3312 } 3313 3314 span { 3315 --tw-text-opacity: 1; 3316 color: rgb(0 0 0 / var(--tw-text-opacity, 1)); 3317 } 3318 3319 .single { 3320 margin-right: 1px; 3321 } 3322 3323 .single { 3324 padding-left: 2px; 3325 padding-right: 2px; 3326 } 3327 3328 .regex { 3329 padding-left: 2px; 3330 padding-right: 2px; 3331 } 3332 3333 .start { 3334 margin-left: 1px; 3335 } 3336 3337 .start { 3338 border-top-left-radius: 2px; 3339 border-bottom-left-radius: 2px; 3340 } 3341 3342 .end { 3343 margin-right: 1px; 3344 } 3345 3346 .end { 3347 border-top-right-radius: 2px; 3348 border-bottom-right-radius: 2px; 3349 } 3350 3351 .middle { 3352 margin-left: 1px; 3353 margin-right: 1px; 3354 } 3355 3356 .middle { 3357 border-radius: 2px; 3358 } 3359} 3360 3361.react-scan-toolbar-notification { 3362 position: absolute; 3363 left: 0px; 3364 right: 0px; 3365 display: flex; 3366 align-items: center; 3367 -moz-column-gap: 8px; 3368 column-gap: 8px; 3369 padding: 4px; 3370 padding-left: 8px; 3371 font-size: 10px; 3372 --tw-text-opacity: 1; 3373 color: rgb(212 212 212 / var(--tw-text-opacity, 1)); 3374 background-color: rgb(0 0 0 / 0.9); 3375 transition-property: transform; 3376 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3377 transition-duration: 150ms; 3378 3379 &:before { 3380 --tw-content: ''; 3381 content: var(--tw-content); 3382 } 3383 3384 &:before { 3385 position: absolute; 3386 } 3387 3388 &:before { 3389 left: 0px; 3390 right: 0px; 3391 } 3392 3393 &:before { 3394 --tw-bg-opacity: 1; 3395 background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)); 3396 } 3397 3398 &:before { 3399 height: 8px; 3400 } 3401 3402 &.position-top { 3403 top: 100%; 3404 } 3405 3406 &.position-top { 3407 --tw-translate-y: -100%; 3408 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3409 } 3410 3411 &.position-top { 3412 border-bottom-right-radius: 8px; 3413 border-bottom-left-radius: 8px; 3414 } 3415 3416 &.position-top { 3417 3418 &::before { 3419 top: 0px; 3420 } 3421 3422 &::before { 3423 --tw-translate-y: -100%; 3424 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3425 } 3426 } 3427 3428 &.position-bottom { 3429 bottom: 100%; 3430 } 3431 3432 &.position-bottom { 3433 --tw-translate-y: 100%; 3434 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3435 } 3436 3437 &.position-bottom { 3438 border-top-left-radius: 8px; 3439 border-top-right-radius: 8px; 3440 } 3441 3442 &.position-bottom { 3443 3444 &::before { 3445 bottom: 0px; 3446 } 3447 3448 &::before { 3449 --tw-translate-y: 100%; 3450 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3451 } 3452 } 3453 3454 &.is-open { 3455 --tw-translate-y: 0px; 3456 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3457 } 3458} 3459 3460.react-scan-header-item { 3461 position: absolute; 3462 inset: 0px; 3463 --tw-translate-y: -200%; 3464 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3465 transition-property: transform; 3466 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3467 transition-duration: 300ms; 3468 3469 &.is-visible { 3470 --tw-translate-y: 0px; 3471 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3472 } 3473} 3474 3475.react-scan-components-tree:has(.resize-v-line:hover, .resize-v-line:active) 3476 .tree { 3477 overflow: hidden; 3478} 3479 3480.react-scan-expandable { 3481 display: grid; 3482 grid-template-rows: 0fr; 3483 overflow: hidden; 3484 transition-property: all; 3485 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 3486 transition-duration: 75ms; 3487 transition-timing-function: ease-out; 3488 3489 > * { 3490 min-height: 0; 3491 } 3492 3493 &.react-scan-expanded { 3494 grid-template-rows: 1fr; 3495 transition-duration: 100ms; 3496 } 3497} 3498 3499.after\\:absolute::after {
3500 content: var(--tw-content); 3501 position: absolute; 3502} 3503 3504.after\\:inset-0::after { 3505 content: var(--tw-content); 3506 inset: 0px; 3507} 3508 3509.after\\:left-1\\/2::after { 3510 content: var(--tw-content); 3511 left: 50%; 3512} 3513 3514.after\\:top-\\[100\\%\\]::after { 3515 content: var(--tw-content); 3516 top: 100%; 3517} 3518 3519.after\\:h-\\[6px\\]::after { 3520 content: var(--tw-content); 3521 height: 6px; 3522} 3523 3524.after\\:w-\\[10px\\]::after { 3525 content: var(--tw-content); 3526 width: 10px; 3527} 3528 3529.after\\:-translate-x-1\\/2::after { 3530 content: var(--tw-content); 3531 --tw-translate-x: -50%; 3532 transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); 3533} 3534 3535@keyframes fadeOut { 3536 3537 0% { 3538 content: var(--tw-content); 3539 opacity: 1; 3540 } 3541 3542 100% { 3543 content: var(--tw-content); 3544 opacity: 0; 3545 } 3546} 3547 3548.after\\:animate-\\[fadeOut_1s_ease-out_forwards\\]::after { 3549 content: var(--tw-content); 3550 animation: fadeOut 1s ease-out forwards; 3551} 3552 3553.after\\:border-l-\\[5px\\]::after { 3554 content: var(--tw-content); 3555 border-left-width: 5px; 3556} 3557 3558.after\\:border-r-\\[5px\\]::after { 3559 content: var(--tw-content); 3560 border-right-width: 5px; 3561} 3562 3563.after\\:border-t-\\[6px\\]::after { 3564 content: var(--tw-content); 3565 border-top-width: 6px; 3566} 3567 3568.after\\:border-l-transparent::after { 3569 content: var(--tw-content); 3570 border-left-color: transparent; 3571} 3572 3573.after\\:border-r-transparent::after { 3574 content: var(--tw-content); 3575 border-right-color: transparent; 3576} 3577 3578.after\\:border-t-white::after { 3579 content: var(--tw-content); 3580 --tw-border-opacity: 1; 3581 border-top-color: rgb(255 255 255 / var(--tw-border-opacity, 1)); 3582} 3583 3584.after\\:bg-purple-500\\/30::after { 3585 content: var(--tw-content); 3586 background-color: rgb(168 85 247 / 0.3); 3587} 3588 3589.after\\:content-\\[\\"\\"\\]::after { 3590 --tw-content: ""; 3591 content: var(--tw-content); 3592} 3593 3594.focus-within\\:border-\\[\\#454545\\]:focus-within { 3595 --tw-border-opacity: 1; 3596 border-color: rgb(69 69 69 / var(--tw-border-opacity, 1)); 3597} 3598 3599.hover\\:bg-\\[\\#0f0f0f\\]:hover { 3600 --tw-bg-opacity: 1; 3601 background-color: rgb(15 15 15 / var(--tw-bg-opacity, 1)); 3602} 3603 3604.hover\\:bg-\\[\\#18181B\\]:hover { 3605 --tw-bg-opacity: 1; 3606 background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1)); 3607} 3608 3609.hover\\:bg-\\[\\#34343b\\]:hover { 3610 --tw-bg-opacity: 1; 3611 background-color: rgb(52 52 59 / var(--tw-bg-opacity, 1)); 3612} 3613 3614.hover\\:bg-\\[\\#5f3f9a\\]\\/20:hover { 3615 background-color: rgb(95 63 154 / 0.2); 3616} 3617 3618.hover\\:bg-\\[\\#5f3f9a\\]\\/40:hover { 3619 background-color: rgb(95 63 154 / 0.4); 3620} 3621 3622.hover\\:bg-red-600:hover { 3623 --tw-bg-opacity: 1; 3624 background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1)); 3625} 3626 3627.hover\\:bg-zinc-700:hover { 3628 --tw-bg-opacity: 1; 3629 background-color: rgb(63 63 70 / var(--tw-bg-opacity, 1)); 3630} 3631 3632.hover\\:bg-zinc-800\\/50:hover { 3633 background-color: rgb(39 39 42 / 0.5); 3634} 3635 3636.hover\\:text-neutral-300:hover { 3637 --tw-text-opacity: 1; 3638 color: rgb(212 212 212 / var(--tw-text-opacity, 1)); 3639} 3640 3641.hover\\:text-white:hover { 3642 --tw-text-opacity: 1; 3643 color: rgb(255 255 255 / var(--tw-text-opacity, 1)); 3644} 3645 3646.group:hover .group-hover\\:bg-\\[\\#21437982\\] { 3647 background-color: #21437982; 3648} 3649 3650.group:hover .group-hover\\:bg-\\[\\#5b2d89\\] { 3651 --tw-bg-opacity: 1; 3652 background-color: rgb(91 45 137 / var(--tw-bg-opacity, 1)); 3653} 3654 3655.group:hover .group-hover\\:bg-\\[\\#6a6a6a\\] { 3656 --tw-bg-opacity: 1; 3657 background-color: rgb(106 106 106 / var(--tw-bg-opacity, 1)); 3658} 3659 3660.group:hover .group-hover\\:bg-\\[\\#efda1a2f\\] { 3661 background-color: #efda1a2f; 3662} 3663 3664.group:hover .group-hover\\:opacity-100 { 3665 opacity: 1; 3666} 3667 3668.peer\\/bottom:hover ~ .peer-hover\\/bottom\\:rounded-b-none { 3669 border-bottom-right-radius: 0px; 3670 border-bottom-left-radius: 0px; 3671} 3672 3673.peer\\/left:hover ~ .peer-hover\\/left\\:rounded-l-none { 3674 border-top-left-radius: 0px; 3675 border-bottom-left-radius: 0px; 3676} 3677 3678.peer\\/right:hover ~ .peer-hover\\/right\\:rounded-r-none { 3679 border-top-right-radius: 0px; 3680 border-bottom-right-radius: 0px; 3681} 3682 3683.peer\\/top:hover ~ .peer-hover\\/top\\:rounded-t-none { 3684 border-top-left-radius: 0px; 3685 border-top-right-radius: 0px; 3686} 3687`,gU=(e,t,n=t)=>{const[r,o]=Ie(e);return Le(()=>{if(e===r)return;const c=setTimeout(()=>
3687o(e),e?t:n);return()=>clearTimeout(c)},[e,t,n]),r},vU=Ho(()=>B("absolute inset-0 flex items-center gap-x-2","translate-y-0","transition-transform duration-300",Mp.value&&"-translate-y-[200%]")),yU=()=>{const e=Ce(null),t=Ce(null),[n,r]=Ie(null);Ou(()=>{const s=ye.inspectState.value;s.kind==="focused"&&r(s.fiber)}),Ou(()=>{const s=Tn.value;zu(()=>{if(ye.inspectState.value.kind!=="focused"||!e.current||!t.current)return;const{totalUpdates:c,currentIndex:d,updates:f,isVisible:h,windowOffset:g}=s,m=Math.max(0,c-1),y=h?`#${g+d} Re-render`:m>0?`Ã${m}`:"";let _;if(m>0&&d>=0&&d<f.length){const w=f[d]?.fiberInfo?.selfTime;_=w>0?w<.1-Number.EPSILON?"< 0.1ms":`${Number(w.toFixed(1))}ms`:void 0}e.current.dataset.text=y?` ⢠${y}`:"",t.current.dataset.text=_?` ⢠${_}`:""})});const o=Vr(()=>{if(!n)return null;const{name:s,wrappers:c,wrapperTypes:d}=Nu(n),f=c.length?`${c.join("(")}(${s})${")".repeat(c.length)}`:s??"",h=d[0];return b("span",{title:f,className:"flex items-center gap-x-1",children:[s??"Unknown",b("span",{title:h?.title,className:"flex items-center gap-x-1 text-[10px] text-purple-400",children:!!h&&b(Ye,{children:[b("span",{className:B("rounded py-[1px] px-1","truncate",h.compiler&&"bg-purple-800 text-neutral-400",!h.compiler&&"bg-neutral-700 text-neutral-300",h.type==="memo"&&"bg-[#5f3f9a] text-white"),children:h.type},h.type),h.compiler&&b("span",{className:"text-yellow-300",children:"â¨"})]})}),d.length>1&&b("span",{className:"text-[10px] text-neutral-400",children:["Ã",d.length-1]})]})},[n]);return b("div",{className:vU,children:[o,b("div",{className:"flex items-center gap-x-2 mr-auto text-xs text-[#888]",children:[b("span",{ref:e,className:"with-data-text cursor-pointer !overflow-visible",title:"Click to toggle between rerenders and total renders"}),b("span",{ref:t,className:"with-data-text !overflow-visible"})]})]})},bU=()=>{const e=gU(ye.inspectState.value.kind==="focused",150,0),t=()=>{dt.value={view:"none"},ye.inspectState.value={kind:"inspect-off"}};if(dt.value.view!=="notifications")return b("div",{className:"react-scan-header",children:[b("div",{className:"relative flex-1 h-full",children:b("div",{className:B("react-scan-header-item is-visible",!e&&"!duration-0"),children:b(yU,{})})}),b("button",{type:"button",title:"Close",className:"react-scan-close-button",onClick:t,children:b(Ot,{name:"icon-close"})})]})},_U=({className:e,...t})=>b("div",{className:B("react-scan-toggle",e),children:[b("input",{type:"checkbox",...t}),b("div",{})]}),wU=({fps:e})=>{const t=n=>n<30?"#EF4444":n<50?"#F59E0B":"rgb(214,132,245)";return b("div",{className:B("flex items-center gap-x-1 px-2 w-full","h-6","rounded-md","font-mono leading-none","bg-[#141414]","ring-1 ring-white/[0.08]"),children:[b("div",{style:{color:t(e)},className:"text-sm font-semibold tracking-wide transition-colors ease-in-out w-full flex justify-center items-center",children:e}),b("span",{className:"text-white/30 text-[11px] font-medium tracking-wide ml-auto min-w-fit",children:"FPS"})]})},xU=()=>{const[e,t]=Ie(null);return Le(()=>{const n=setInterval(()=>{t(aR())},200);return()=>clearInterval(n)},[]),b("div",{className:B("flex items-center justify-end gap-x-2 px-1 ml-1 w-[72px]","whitespace-nowrap text-sm text-white"),children:e===null?b(Ye,{children:"ï¸"}):b(wU,{fps:e})})},Ir=()=>ui?(window.reactScanIdCounter===void 0&&(window.reactScanIdCounter=0),`${++window.reactScanIdCounter}`):"0",qr=e=>e(),Qt=class uR extends Array{constructor(t=25){super(),this.capacity=t}push(...t){const n=super.push(...t);for(;this.length>this.capacity;)this.shift();return n}static fromArray(t,n){const r=new uR(n);return r.push(...t),r}},SU=class{constructor(e){this.subscribers=new Set,this.currentValue=e}subscribe(e){return this.subscribers.add(e),e(this.currentValue),()=>{this.subscribers.delete(e)}}setState(e){this.currentValue=e,this.subscribers.forEach(t=>t(e))}getCurrentState(){return this.currentValue}},dR=150,qk=new SU(new Qt(dR)),ei=50,EU=class{constructor(){this.channels={}}publish(e,t,n=!0){const r=this.channels[t];if(!r){if(!n)return;this.channels[t]={callbacks:new Qt(ei),state:new Qt(ei)},this.channels[t].state.push(e);return}r.state.push(e),r.callbacks.forEach(o=>o(e))}getAvailableChannels(){return Qt.fromArray(Object.keys(this.channels),ei)}subscribe(e,t,n=!1){const r=()=>(n||this.channels[e].state.forEach(s=>{t(s)}),()=>{const s=this.channels[e].callbacks.filter(c=>c!==t);this.channels[e].callbacks=Qt.fromArray(s,ei)}),o=this.channels[e];return o?(o.callbacks.push(t),r()):(this.channels[e]={callbacks:new Qt(ei),state:new Qt(ei)},this.channels[e].callbacks.push(t),r())}updateChannelState(e,t,n=!0){const r=this.channels[e];if(!r){if(!n)return;const o=new Qt(ei),s={callbacks:new Qt(ei),state:o};this.channels[e]=s,s.state=t(o);return}r.state=t(r.state)}getChannelState(e){return this.channels[e].state??new Qt(ei)}},ip=new EU,fR={skipProviders:!0,skipHocs:!0,skipContainers:!0,skipMinified:!0,skipUtilities:!0,skipBoundaries:!0},jc={providers:[/Provider$/,/^Provider$/,/^Context$/],hocs:[/^with[A-Z]/,/^forward(?:Ref)?$/i,/^Forward(?:Ref)?\(/],containers:[/^(?:App)?Container$/,/^Root$/,/^ReactDev/],utilities:[/^Fragment$/,/^Suspense$/,/^ErrorBoundary$/,/^Portal$/,/^Consumer$/,/^Layout$/,/^Router/,/^Hydration/],boundaries:[/^Boundary$/,/Boundary$/,/^Provider$/,/Provider$/]},kU=(e,t=fR)=>{const n=[];return t.skipProviders&&n.push(...jc.providers),t.skipHocs&&n.push(...jc.hocs),t.skipContainers&&n.push(...jc.containers
3687),t.skipUtilities&&n.push(...jc.utilities),t.skipBoundaries&&n.push(...jc.boundaries),!n.some(r=>r.test(e))},Vk=[/^[a-z]$/,/^[a-z][0-9]$/,/^_+$/,/^[A-Za-z][_$]$/,/^[a-z]{1,2}$/],TU=e=>{for(let s=0;s<Vk.length;s++)if(Vk[s].test(e))return!0;const t=!/[aeiou]/i.test(e),n=(e.match(/\d/g)?.length??0)>e.length/2,r=/^[a-z]+$/.test(e),o=/[$_]{2,}/.test(e);return Number(t)+Number(n)+Number(r)+Number(o)>=2},CU=(e,t=fR)=>{if(!e)return[];if(!rn(e.type))return[];const r=new Array;let o=e;for(;o.return;){const c=$U(o.type);c&&!TU(c)&&kU(c,t)&&c.toLowerCase()!==c&&r.push(c),o=o.return}const s=new Array(r.length);for(let c=0;c<r.length;c++)s[c]=r[r.length-c-1];return s},$U=e=>{const t=rn(e);return t?t.replace(/^(?:Memo|Forward(?:Ref)?|With.*?)\((?<inner>.*?)\)$/,"$<inner>"):""},RU=(e,t=()=>!0)=>{let n=e;for(;n;){const r=rn(n.type);if(r&&t(r))return r;n=n.return}return null},Gk,qb="never-hidden",AU=()=>{Gk?.();const e=()=>{document.hidden&&(qb=Date.now())};document.addEventListener("visibilitychange",e),Gk=()=>{document.removeEventListener("visibilitychange",e)}},MU=e=>["pointerup","click"].includes(e)?"pointer":(e.includes("key"),["keydown","keyup"].includes(e)?"keyboard":null),Jv=null,zU=e=>{AU();const t=new Map,n=new Map,r=s=>{if(!s.interactionId)return;if(s.interactionId&&s.target&&!n.has(s.interactionId)&&n.set(s.interactionId,s.target),s.target){let d=s.target;for(;d;){if(d.id==="react-scan-toolbar-root"||d.id==="react-scan-root")return;d=d.parentElement}}const c=t.get(s.interactionId);if(c)s.duration>c.latency?(c.entries=[s],c.latency=s.duration):s.duration===c.latency&&s.startTime===c.entries[0].startTime&&c.entries.push(s);else{const d=MU(s.name);if(!d)return;const f={id:s.interactionId,latency:s.duration,entries:[s],target:s.target,type:d,startTime:s.startTime,endTime:Date.now(),processingStart:s.processingStart,processingEnd:s.processingEnd,duration:s.duration,inputDelay:s.processingStart-s.startTime,processingDuration:s.processingEnd-s.processingStart,presentationDelay:s.duration-(s.processingEnd-s.startTime),timestamp:Date.now(),timeSinceTabInactive:qb==="never-hidden"?"never-hidden":Date.now()-qb,visibilityState:document.visibilityState,timeOrigin:performance.timeOrigin,referrer:document.referrer};t.set(f.id,f),Jv||(Jv=requestAnimationFrame(()=>{requestAnimationFrame(()=>{e(t.get(f.id)),Jv=null})}))}},o=new PerformanceObserver(s=>{const c=s.getEntries();for(let d=0,f=c.length;d<f;d++){const h=c[d];r(h)}});try{o.observe({type:"event",buffered:!0,durationThreshold:16}),o.observe({type:"first-input",buffered:!0})}catch{}return()=>o.disconnect()},OU=()=>zU(e=>{ip.publish({kind:"entry-received",entry:e},"recording")}),sh=25,Li=new Qt(sh),NU=(e,t)=>{let n=null;for(const r of t){if(r.type!==e.type)continue;if(n===null){n=r;continue}const o=(s,c)=>Math.abs(s.startDateTime)-(c.startTime+c.timeOrigin);o(r,e)<o(n,e)&&(n=r)}return n},DU=e=>ip.subscribe("recording",n=>{const r=n.kind==="auto-complete-race"?Li.find(s=>s.interactionUUID===n.interactionUUID):NU(n.entry,Li);if(!r)return;const o=r.completeInteraction(n);e(o)}),PU=({onMicroTask:e,onRAF:t,onTimeout:n,abort:r})=>{queueMicrotask(()=>{r?.()!==!0&&e()&&requestAnimationFrame(()=>{r?.()!==!0&&t()&&setTimeout(()=>{r?.()!==!0&&n()},0)})})},LU=e=>{const t=eR(e);if(!t)return;let n=t?rn(t?.type):"N/A";return n||(n=RU(t,o=>o.length>2)??"N/A"),n?{componentPath:CU(t),childrenTree:{},componentName:n,elementFiber:t}:void 0},Yk=(e,t)=>{let n=null;const r=f=>{switch(e){case"pointer":return f.phase==="start"?"pointerup":f.target instanceof HTMLInputElement||f.target instanceof HTMLSelectElement?"change":"click";case"keyboard":return f.phase==="start"?"keydown":"change"}},o={current:{kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:Date.now(),interactionType:e}},s=f=>{if(f.composedPath().some(S=>S instanceof Element&&S.id==="react-scan-toolbar-root")||(Date.now()-o.current.stageStart>2e3&&(o.current={kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:Date.now(),interactionType:e}),o.current.kind!=="uninitialized-stage"))return;const g=performance.now();t?.onStart?.(o.current.interactionUUID);const m=LU(f.target);if(!m){t?.onError?.(o.current.interactionUUID);return}const y={},_=hR(y);o.current={...o.current,interactionType:e,blockingTimeStart:Date.now(),childrenTree:m.childrenTree,componentName:m.componentName,componentPath:m.componentPath,fiberRenders:y,kind:"interaction-start",interactionStartDetail
3687:g,stopListeningForRenders:_};const w=r({phase:"end",target:f.target});document.addEventListener(w,c,{once:!0}),requestAnimationFrame(()=>{document.removeEventListener(w,c)})};document.addEventListener(r({phase:"start"}),s,{capture:!0});const c=(f,h,g)=>{if(o.current.kind!=="interaction-start"&&h===n){if(e==="pointer"&&f.target instanceof HTMLSelectElement){o.current={kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:Date.now(),interactionType:e};return}t?.onError?.(o.current.interactionUUID),o.current={kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:Date.now(),interactionType:e};return}n=h,PU({abort:g,onMicroTask:()=>o.current.kind==="uninitialized-stage"?!1:(o.current={...o.current,kind:"js-end-stage",jsEndDetail:performance.now()},!0),onRAF:()=>o.current.kind!=="js-end-stage"&&o.current.kind!=="raf-stage"?(t?.onError?.(o.current.interactionUUID),o.current={kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:Date.now(),interactionType:e},!1):(o.current={...o.current,kind:"raf-stage",rafStart:performance.now()},!0),onTimeout:()=>{if(o.current.kind!=="raf-stage"){t?.onError?.(o.current.interactionUUID),o.current={kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:Date.now(),interactionType:e};return}const m=Date.now(),y=Object.freeze({...o.current,kind:"timeout-stage",blockingTimeEnd:m,commitEnd:performance.now()});o.current={kind:"uninitialized-stage",interactionUUID:Ir(),stageStart:m,interactionType:e};let _=!1;const w=T=>{_=!0;const k=T.kind==="auto-complete-race"?T.detailedTiming.commitEnd-T.detailedTiming.interactionStartDetail
3687:T.entry.latency,$={detailedTiming:y,latency:k,completedAt:Date.now(),flushNeeded:!0};t?.onComplete?.(y.interactionUUID,$,T);const z=Li.filter(N=>N.interactionUUID!==y.interactionUUID);return Li=Qt.fromArray(z,sh),$},S={completeInteraction:w,endDateTime:Date.now(),startDateTime:y.blockingTimeStart,type:e,interactionUUID:y.interactionUUID};if(Li.push(S),FU())setTimeout(()=>{if(_)return;w({kind:"auto-complete-race",detailedTiming:y,interactionUUID:y.interactionUUID});const T=Li.filter(k=>k.interactionUUID!==y.interactionUUID);Li=Qt.fromArray(T,sh)},1e3);else{const T=Li.filter(k=>k.interactionUUID!==y.interactionUUID);Li=Qt.fromArray(T,sh),w({kind:"auto-complete-race",detailedTiming:y,interactionUUID:y.interactionUUID})}}})},d=f=>{const h=Ir();c(f,h,()=>h!==n)};return e==="keyboard"&&document.addEventListener("keypress",d),()=>{document.removeEventListener(r({phase:"start"}),s,{capture:!0}),document.removeEventListener("keypress",d)}},Zk=e=>u4(e,t=>{if($u(t))return!0})?.stateNode,FU=()=>"PerformanceEventTiming"in globalThis,hR=e=>{const t=n=>{const r=rn(n.type);if(!r)return;const o=e[r];if(!o){const g=new Set,m=n.return&&sl(n.return),y=m&&rn(m[0]);y&&g.add(y);const{selfTime:_,totalTime:w}=vo(n),S=zk(n),T={current:[],changes:new Set,changesCounts:new Map},k={fiberProps:S.fiberProps||T,fiberState:S.fiberState||T,fiberContext:S.fiberContext||T};e[r]={renderCount:1,hasMemoCache:Ru(n),wasFiberRenderMount:Xk(n),parents:g,selfTime:_,totalTime:w,nodeInfo:[{element:Zk(n),name:rn(n.type)??"Unknown",selfTime:vo(n).selfTime}],changes:k};return}if(sl(n)?.[0]?.type){const g=n.return&&sl(n.return),m=g&&rn(g[0]);m&&o.parents.add(m)}const{selfTime:c,totalTime:d}=vo(n),f=zk(n);if(!f)return;const h={current:[],changes:new Set,changesCounts:new Map};o.wasFiberRenderMount=o.wasFiberRenderMount||Xk(n),o.hasMemoCache=o.hasMemoCache||Ru(n),o.changes={fiberProps:ey(o.changes?.fiberProps||h,f.fiberProps||h),fiberState:ey(o.changes?.fiberState||h,f.fiberState||h),fiberContext:ey(o.changes?.fiberContext||h,f.fiberContext||h)},o.renderCount+=1,o.selfTime+=c,o.totalTime+=d,o.nodeInfo.push({element:Zk(n),name:rn(n.type)??"Unknown",selfTime:vo(n).selfTime})};return ye.interactionListeningForRenders=t,()=>{ye.interactionListeningForRenders===t&&(ye.interactionListeningForRenders=null)}},ey=(e,t)=>{const n={current:[...e.current],changes:new Set,changesCounts:new Map};for(const r of t.current)n.current.some(o=>o.name===r.name)||n.current.push(r);for(const r of t.changes)if(typeof r=="string"||typeof r=="number"){n.changes.add(r);const o=e.changesCounts.get(r)||0,s=t.changesCounts.get(r)||0;n.changesCounts.set(r,o+s)}return n},Xk=e=>{if(!e.alternate)return!0;const t=e.alternate,n=t&&t.memoizedState!=null&&t.memoizedState.element!=null&&t.memoizedState.isDehydrated!==!0,r=e.memoizedState!=null&&e.memoizedState.element!=null&&e.memoizedState.isDehydrated!==!0;return!n&&r},IU=e=>{let t;const n=new Set,r=(h,g)=>{const m=typeof h=="function"?h(t):h;if(!Object.is(m,t)){const y=t;t=g??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(_=>_(t,y))}},o=()=>t,d={setState:r,getState:o,getInitialState:()=>f,subscribe:(h,g)=>{let m,y;g?(m=h,y=g):y=h;let _=m?m(t):void 0;const w=(S,T)=>{if(m){const k=m(S),$=m(T);Object.is(_,k)||(_=k,y(k,$))}else y(S,T)};return n.add(w),()=>n.delete(w)}},f=t=e(r,o,d);return d},pR=e=>IU,Hf=null;pR()(e=>({state:{events:[]},actions:{addEvent:t=>{e(n=>({state:{events:[...n.state.events,t]}}))},clear:()=>{e({state:{events:[]}})}}}));var ty=200,Du=pR()((e,t)=>{const n=new Set;return{state:{events:new Qt(ty)},actions:{addEvent:r=>{n.forEach(f=>f(r));const o=[...t().state.events,r],s=(f,h)=>{const g=o.find(m=>{if(m.kind!=="long-render"&&m.id!==f.id&&(f.data.startAt<=m.data.startAt&&f.data.endAt<=m.data.endAt&&f.data.endAt>=m.data.startAt||m.data.startAt<=f.data.startAt&&m.data.endAt>=f.data.startAt||f.data.startAt<=m.data.startAt&&f.data.endAt>=m.data.endAt))return!0});g&&h(g)},c=new Set;o.forEach(f=>{f.kind!=="interaction"&&s(f,()=>{c.add(f.id)})});const d=o.filter(f=>!c.has(f.id));e(()=>({state:{events:Qt.fromArray(d,ty)}}))},addListener:r=>(n.add(r),()=>{n.delete(r)}),clear:()=>{e({state:{events:new Qt(ty)}})}}}}),jU=()=>HI(Du.subscribe,Du.getState),lh=null,ch=null,ny=null,Vb,UU=()=>{const e=t=>{Vb=t.composedPath().map(n=>
3687n.id).filter(Boolean).includes("react-scan-toolbar")};return document.addEventListener("mouseover",e),ny=e,()=>{ny&&document.removeEventListener("mouseover",ny)}},HU=()=>{const e=()=>{lh=performance.now(),ch=performance.timeOrigin};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},mR=150,ry=[];function BU(){let e,t;function n(){let o=null;Hf=null,Hf={},o=hR(Hf);const s=performance.timeOrigin,c=performance.now();return e=requestAnimationFrame(()=>{t=setTimeout(()=>{const d=performance.now(),f=d-c,h=performance.timeOrigin;ry.push(d+h);const g=ry.filter(w=>d+h-w<=1e3),m=g.length;ry=g;const y=lh!==null&&ch!==null?d+h-(ch+lh)<100:null,_=Vb!==null&&Vb;if(f>mR&&!y&&document.visibilityState==="visible"&&!_){const w=h+d,S=c+s;Du.getState().actions.addEvent({kind:"long-render",id:Ir(),data:{endAt:w,startAt:S,meta:{fiberRenders:Hf,latency:f,fps:m}}})}lh=null,ch=null,o?.(),n()},0)}),o}const r=n();return()=>{r(),cancelAnimationFrame(e),clearTimeout(t)}}var qU=()=>{const e=OU(),t=UU(),n=HU(),r=BU(),o=async(f,h,g)=>{Du.getState().actions.addEvent({kind:"interaction",id:Ir(),data:{startAt:h.detailedTiming.blockingTimeStart,endAt:performance.now()+performance.timeOrigin,meta:{...h,kind:g.kind}}});const m=ip.getChannelState("recording");h.detailedTiming.stopListeningForRenders(),m.length&&ip.updateChannelState("recording",()=>new Qt(ei))},s=Yk("pointer",{onComplete:o}),c=Yk("keyboard",{onComplete:o}),d=DU(f=>{qk.setState(Qt.fromArray(qk.getCurrentState().concat(f),dR))});return()=>{t(),n(),r(),e(),s(),d(),c()}},Pu=e=>{const t=e.filter(n=>n.length>2);return t.length===0?e.at(-1)??"Unknown":t.at(-1)},on=e=>{switch(e.kind){case"interaction":{const{renderTime:t,otherJSTime:n,framePreparation:r,frameConstruction:o,frameDraw:s}=e;return t+n+r+o+(s??0)}case"dropped-frames":return e.otherTime+e.renderTime}},VU=e=>e.wasFiberRenderMount||e.hasMemoCache?!1:e.changes.context.length===0&&e.changes.props.length===0&&e.changes.state.length===0,Vu=e=>{const t=on(e.timing);switch(e.kind){case"interaction":return t<200?"low":t<500?"needs-improvement":"high";case"dropped-frames":return t<50?"low":t<mR?"needs-improvement":"high"}},lr=()=>Y0(gR),gR=$4(null),vR=({size:e=24,className:t})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:B(["lucide lucide-chevron-right",t]),children:b("path",{d:"m9 18 6-6-6-6"})}),GU=({className:e="",size:t=24,events:n=[]})=>{const r=n.includes(!0),o=n.filter(d=>d).length,s=o>99?">99":o,c=r?Math.max(t*.6,14):Math.max(t*.4,6);return b("div",{className:"relative",children:[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:`lucide lucide-bell ${e}`,children:[b("path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}),b("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"})]}),n.length>0&&o>0&&Ze.options.value.showNotificationCount&&b("div",{className:B(["absolute",r?"-top-2.5 -right-2.5":"-top-1 -right-1","rounded-full","flex items-center justify-center","text-[8px] font-medium text-white","aspect-square",r?"bg-red-500/90":"bg-purple-500/90"]),style:{width:`${c}px`,height:`${c}px`,padding:r?"0.5px":"0"},children:r&&s})]})},ap=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:e,children:[b("path",{d:"M18 6 6 18"}),b("path",{d:"m6 6 12 12"})]}),YU=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:e,children:[b("path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}),b("path",{d:"M16 9a5 5 0 0 1 0 6"}),b("path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728"})]}),ZU=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:e,children:[b("path",{d:"M16 9a5 5 0 0 1 .95 2.293"}),b("path",{d:"M19.364 5.636a9 9 0 0 1 1.889 9.96"}),b("path",{d:"m2 2 20 20"}),b("path",{d:"m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11"}),b("path",{d:"M9.828 4.172A.686.686 0 0 1 11 4.657v.686"})]}),XU=({size:e=24,className:t})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:B(["lucide lucide-arrow-left",t]),children:[b("path",{d:"m12 19-7-7 7-7"}),b("path",{d:"M19 12H5"})]}),WU=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:e,children:[b("path",{d:"M14 4.1 12 6"}),b("path",{d:"m5.1 8-2.9-.8"}),b("path",{d:"m6 12-1.9 2"}),b("path",{d:"M7.2 2.2 8 5.1"}),b("path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.
3687074z"})]}),KU=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:e,children:[b("path",{d:"M10 8h.01"}),b("path",{d:"M12 12h.01"}),b("path",{d:"M14 8h.01"}),b("path",{d:"M16 12h.01"}),b("path",{d:"M18 8h.01"}),b("path",{d:"M6 8h.01"}),b("path",{d:"M7 16h10"}),b("path",{d:"M8 12h.01"}),b("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"})]}),QU=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:e,style:{transform:"rotate(180deg)"},children:[b("circle",{cx:"12",cy:"12",r:"10"}),b("path",{d:"m4.9 4.9 14.2 14.2"})]}),JU=({className:e="",size:t=24})=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[b("polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7"}),b("polyline",{points:"16 17 22 17 22 11"})]}),yR=({children:e,triggerContent:t,wrapperProps:n})=>{const[r,o]=Ie("closed"),[s,c]=Ie(null),[d,f]=Ie({width:window.innerWidth,height:window.innerHeight}),h=Ce(null),g=Ce(null),m=Y0(u_),y=Ce(!1);Le(()=>{const k=()=>{f({width:window.innerWidth,height:window.innerHeight}),_()};return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);const _=()=>{if(h.current&&m){const k=h.current.getBoundingClientRect(),$=m.getBoundingClientRect(),z=k.left+k.width/2,N=k.top,O=new DOMRect(z-$.left,N-$.top,k.width,k.height);c(O)}};Le(()=>{_()},[h.current]),Le(()=>{if(r==="opening"){const k=setTimeout(()=>o("open"),120);return()=>clearTimeout(k)}else if(r==="closing"){const k=setTimeout(()=>o("closed"),120);return()=>clearTimeout(k)}},[r]),Le(()=>{const k=setInterval(()=>{!y.current&&r!=="closed"&&o("closing")},1e3);return()=>clearInterval(k)},[r]);const w=()=>{y.current=!0,_(),o("opening")},S=()=>{y.current=!1,_(),o("closing")},T=()=>{if(!s||!m)return{top:0,left:0};const k=m.getBoundingClientRect(),$=175,z=g.current?.offsetHeight||40,N=5,O=s.x+k.left,I=s.y+k.top;let j=O,L=I-4;return j-$/2<N?j=N+$/2:j+$/2>d.width-N&&(j=d.width-N-$/2),L-z<N&&(L=I+s.height+4),{top:L-k.top,left:j-k.left}};return b(Ye,{children:[m&&s&&r!=="closed"&&YI(b("div",{ref:g,className:B(["absolute z-100 bg-white text-black rounded-lg px-3 py-2 shadow-lg","transform transition-all duration-120 ease-[cubic-bezier(0.23,1,0.32,1)]",'after:content-[""] after:absolute after:top-[100%]',"after:left-1/2 after:-translate-x-1/2","after:w-[10px] after:h-[6px]","after:border-l-[5px] after:border-l-transparent","after:border-r-[5px] after:border-r-transparent","after:border-t-[6px] after:border-t-white","pointer-events-none",r==="opening"||r==="closing"?"opacity-0 translate-y-1":"opacity-100 translate-y-0"]),style:{top:T().top+"px",left:T().left+"px",transform:"translate(-50%, -100%)",minWidth:"175px"},children:e}),m),b("div",{ref:h,onMouseEnter:w,onMouseLeave:S,...n,children:t})]})},eH=({selectedEvent:e})=>{const{notificationState:t,setNotificationState:n,setRoute:r}=lr();return b("div",{className:B(["flex w-full justify-between items-center px-3 py-2 text-xs"]),children:[b("div",{className:B(["bg-[#18181B] flex items-center gap-x-1 p-1 rounded-sm"]),children:[b("button",{onClick:()=>{r({route:"render-visualization",routeMessage:null})},className:B(["w-1/2 flex items-center justify-center whitespace-nowrap py-[5px] px-1 gap-x-1",t.route==="render-visualization"||t.route==="render-explanation"?"text-white bg-[#7521c8] rounded-sm":"text-[#6E6E77] bg-[#18181B] rounded-sm"]),children:"Ranked"}),b("button",{onClick:()=>{r({route:"other-visualization",routeMessage:null})},className:B(["w-1/2 flex items-center justify-center whitespace-nowrap py-[5px] px-1 gap-x-1",t.route==="other-visualization"?"text-white bg-[#7521c8] rounded-sm":"text-[#6E6E77] bg-[#18181B] rounded-sm"]),children:"Overview"}),b("button",{onClick:()=>{r({route:"optimize",routeMessage:null})},className:B(["w-1/2 flex items-center justify-center whitespace-nowrap py-[5px] px-1 gap-x-1",t.route==="optimize"?"text-white bg-[#7521c8] rounded-sm":"text-[#6E6E77] bg-[#18181B] rounded-sm"]),children:b("span",{children:"Prompts"})})]}),b(yR,{triggerContent:b("button",{onClick:()=>{n(o=>{o.audioNotificationsOptions.enabled&&o.audioNotificationsOptions.audioContext.state!=="closed"&&o.audioNotificationsOptions.audioContext.close();const s=o.audioNotificationsOptions.enabled;localStorage.setItem("react-scan-notifications-audio",String(!s));const c=new AudioContext;return o.audioNotificationsOptions.enabled||K0(c),s&&c.close(),{...o,audioNotificationsOptions:s?{audioContext:null,enabled:!1}:{audioContext:c,enabled:!0}}})},className:"ml-auto",children:b("div",{className:B(["flex gap-x-2 justify-center items-center text-[#6E6E77]"]),children:[b("span",{children:"Alerts"}),t.audioNotificationsOptions.enabled?b(YU,{size:16,className:"text-[#6E6E77]"}):b(ZU,{size:16,className:"text-[#6E6E77]"})]})}),children:b(Ye,{children:"Play a chime when a slowdown is recorded"})})]})},Ds=e=>{let t="";return e.toSorted((r,o)=>o.totalTime-r.totalTime).slice(0,30).filter(r=>r.totalTime>
36875).forEach(r=>{let o="";o+="Component Name:",o+=r.name,o+=` 3688`,o+=`Rendered: ${r.count} times 3689`,o+=`Sum of self times for ${r.name} is ${r.totalTime.toFixed(0)}ms 3690`,r.changes.props.length>0&&(o+=`Changed props for all ${r.name} instances ("name:count" pairs) 3691`,r.changes.props.forEach(s=>{o+=`${s.name}:${s.count}x 3692`})),r.changes.state.length>0&&(o+=`Changed state for all ${r.name} instances ("hook index:count" pairs) 3693`,r.changes.state.forEach(s=>{o+=`${s.index}:${s.count}x 3694`})),r.changes.context.length>0&&(o+=`Changed context for all ${r.name} instances ("context display name (if exists):count" pairs) 3695`,r.changes.context.forEach(s=>{o+=`${s.name}:${s.count}x 3696`})),t+=o,t+=` 3697`}),t},tH=({renderTime:e,eHandlerTimeExcludingRenders:t,toRafTime:n,commitTime:r,framePresentTime:o,formattedReactData:s})=>`I will provide you with a set of high level, and low level performance data about an interaction in a React App: 3698### High level 3699- react component render time: ${e.toFixed(0)}ms 3700- how long it took to run javascript event handlers (EXCLUDING REACT RENDERS): ${t.toFixed(0)}ms 3701- how long it took from the last event handler time, to the last request animation frame: ${n.toFixed(0)}ms 3702 - things like prepaint, style recalculations, layerization, async web API's like observers may occur during this time 3703- how long it took from the last request animation frame to when the dom was committed: ${r.toFixed(0)}ms 3704 - during this period you will see paint, commit, potential style recalcs, and other misc browser activity. Frequently high times here imply css that makes the browser do a lot of work, or mutating expensive dom properties during the event handler stage. This can be many things, but it narrows the problem scope significantly when this is high 3705${o===null?"":`- how long it took from dom commit for the frame to be presented: ${o.toFixed(0)}ms. This is when information about how to paint the next frame is sent to the compositor threads, and when the GPU does work. If this is high, look for issues that may be a bottleneck for operations occurring during this time`} 3706 3707### Low level 3708We also have lower level information about react components, such as their render time, and which props/state/context changed when they re-rendered. 3709${s}`,nH=({interactionType:e,name:t,componentPath:n,time:r,renderTime:o,eHandlerTimeExcludingRenders:s,toRafTime:c,commitTime:d,framePresentTime:f,formattedReactData:h})=>`You will attempt to implement a performance improvement to a user interaction in a React app. You will be provided with data about the interaction, and the slow down. 3710 3711Your should split your goals into 2 parts: 3712- identifying the problem 3713- fixing the problem 3714 - it is okay to implement a fix even if you aren't 100% sure the fix solves the performance problem. When you aren't sure, you should tell the user to try repeating the interaction, and feeding the "Formatted Data" in the React Scan notifications optimize tab. This allows you to start a debugging flow with the user, where you attempt a fix, and observe the result. The user may make a mistake when they pass you the formatted data, so must make sure, given the data passed to you, that the associated data ties to the same interaction you were trying to debug. 3715 3716 3717Make sure to check if the user has the react compiler enabled (project dependent, configured through build tool), so you don't unnecessarily memoize components. If it is, you do not need to worry about memoizing user components 3718 3719One challenge you may face is the performance problem lies in a node_module, not in user code. If you are confident the problem originates because of a node_module, there are multiple strategies, which are context dependent: 3720- you can try to work around the problem, knowing which module is slow 3721- you can determine if its possible to resolve the problem in the node_module by modifying non node_module code 3722- you can monkey patch the node_module to experiment and see if it's really the problem (you can modify a functions properties to hijack the call for example) 3723- you can determine if it's feasible to replace whatever node_module is causing the problem with a performant option (this is an extreme) 3724 3725The interaction was a ${e} on the component named ${t}. This component has the following ancestors ${n}. This is the path from the component, to the root. This should be enough information to figure out where this component is in the user's code base 3726 3727This path is the component that was clicked, so it should tell you roughly where component had an event handler that triggered a state change. 3728 3729Please note that the leaf node of this path might not be user co
3729de (if they use a UI library), and they may contain many wrapper components that just pass through children that aren't relevant to the actual click. So make you sure analyze the path and understand what the user code is doing 3730 3731We have a set of high level, and low level data about the performance issue. 3732 3733The click took ${r.toFixed(0)}ms from interaction start, to when a new frame was presented to a user. 3734 3735We also provide you with a breakdown of what the browser spent time on during the period of interaction start to frame presentation. 3736 3737- react component render time: ${o.toFixed(0)}ms 3738- how long it took to run javascript event handlers (EXCLUDING REACT RENDERS): ${s.toFixed(0)}ms 3739- how long it took from the last event handler time, to the last request animation frame: ${c.toFixed(0)}ms 3740 - things like prepaint, style recalculations, layerization, async web API's like observers may occur during this time 3741- how long it took from the last request animation frame to when the dom was committed: ${d.toFixed(0)}ms 3742 - during this period you will see paint, commit, potential style recalcs, and other misc browser activity. Frequently high times here imply css that makes the browser do a lot of work, or mutating expensive dom properties during the event handler stage. This can be many things, but it narrows the problem scope significantly when this is high 3743${f===null?"":`- how long it took from dom commit for the frame to be presented: ${f.toFixed(0)}ms. This is when information about how to paint the next frame is sent to the compositor threads, and when the GPU does work. If this is high, look for issues that may be a bottleneck for operations occurring during this time`} 3744 3745 3746We also have lower level information about react components, such as their render time, and which props/state/context changed when they re-rendered. 3747 3748${h} 3749 3750You may notice components have many renders, but much fewer props/state/context changes. This normally implies most of the components could of been memoized to avoid computation 3751 3752It's also important to remember if a component had no props/state/context change, and it was memoized, it would not render. So the flow should be: 3753- find the most expensive components 3754- see what's causing them to render 3755- determine how you can make those state/props/context not change for a large set of the renders 3756- once there are no more changes left, you can memoize the component so it no longer unnecessarily re-renders. 3757 3758An important thing to note is that if you see a lot of react renders (some components with very high render counts), but javascript excluding renders is much higher than render time, it is possible that the components with lots of renders run hooks like useEffect/useLayoutEffect, which run during the JS event handler period. 3759 3760It's also good to note that react profiles hook times in development, and if many hooks are called (lets say 5,000 components all called a useEffect), it will have to profile every single one. And it may also be the case the comparison of the hooks dependency can be expensive, and that would not be tracked in render time. 3761 3762If a node_module is the component with high renders, you can experiment to see if that component is the root issue (because of hooks). You should use the same instructions for node_module debugging mentioned previously. 3763 3764`,rH=({renderTime:e,otherTime:t,formattedReactData:n})=>`You will attempt to implement a performance improvement to a large slowdown in a react app 3765 3766Your should split your goals into 2 parts: 3767- identifying the problem 3768- fixing the problem 3769 - it is okay to implement a fix even if you aren't 100% sure the fix solves the performance problem. When you aren't sure, you should tell the user to try repeating the interaction, and feeding the "Formatted Data" in the React Scan notifications optimize tab. This allows you to start a debugging flow with the user, where you attempt a fix, and observe the result. The user may make a mistake when they pass you the formatted data, so must make sure, given the data passed to you, that the associated data ties to the same interaction you were trying to debug. 3770 3771Make sure to check if the user has the react compiler enabled (project dependent, configured through build tool), so you don't unnecessarily memoize components. If it is, you do not need to worry about memoizing user components 3772 3773One challenge you may face is the performance problem lies in a node_module, not in user code. If you are confident the problem originates because of a node_module, there are multiple strategies, which are context dependent: 3774- you can try to work around the problem, knowing which module is slow 3775- you can determine if its possible to resolve the problem in the node_module by modifying non node_module code 3776- you can monkey patch the node_module to experiment and see if it's really the problem (you can modify a functions properties to hijack the call for example) 3777- you can determine if it's feasible to replace whatever node_module is causing the problem with a performant option (this is an extreme) 3778 3779 3780We have the high level time of how much react spent rendering, and what else the browser spent time on during this slowdown 3781 3782- react component render time: ${e.toFixed(0)}ms 3783- other time: ${t}ms 3784 3785 3786We also have lower level information about react components, such as their render time, and which props/state/context changed when they re-rendered. 3787 3788${n} 3789 3790You may notice components have many renders, but much fewer props/state/context changes. This normally implies most of the components could of been memoized to avoid computation 3791 3792It's also important to remember if a component had no props/state/context change, and it was memoized, it would not render. So the flow should be: 3793- find the most expensive components 3794- see what's causing them to render 3795- determine how you can make those state/props/context not change for a large set of the renders 3796- once there are no more changes left, you can memoize the component so it no longer unnecessarily re-renders. 3797 3798An important thing to note is that if you see a lot of react renders (some components with very high render counts), but other time is much higher than render time, it is possible that the components with lots of renders run hooks like useEffect/useLayoutEffect, which run outside of what we profile (just react render time). 3799 3800It's also good to note that react profiles hook times in development, and if many hooks are called (lets say 5,000 components all called a useEffect), it will have to profile every single one. And it may al
3800so be the case the comparison of the hooks dependency can be expensive, and that would not be tracked in render time. 3801 3802If a node_module is the component with high renders, you can experiment to see if that component is the root issue (because of hooks). You should use the same instructions for node_module debugging mentioned previously. 3803 3804If renders don't seem to be the problem, see if there are any expensive CSS properties being added/mutated, or any expensive DOM Element mutations/new elements being created that could cause this slowdown. 3805`,iH=({renderTime:e,otherTime:t,formattedReactData:n})=>`Your goal will be to help me find the source of a performance problem in a React App. I collected a large dataset about this specific performance problem. 3806 3807We have the high level time of how much react spent rendering, and what else the browser spent time on during this slowdown 3808 3809- react component render time: ${e.toFixed(0)}ms 3810- other time (other JavaScript, hooks like useEffect, style recalculations, layerization, paint & commit and everything else the browser might do to draw a new frame after javascript mutates the DOM): ${t}ms 3811 3812 3813We also have lower level information about react components, such as their render time, and which props/state/context changed when they re-rendered. 3814 3815${n} 3816 3817You may notice components have many renders, but much fewer props/state/context changes. This normally implies most of the components could of been memoized to avoid computation 3818 3819It's also important to remember if a component had no props/state/context change, and it was memoized, it would not render. So a flow we can go through is: 3820- find the most expensive components 3821- see what's causing them to render 3822- determine how you can make those state/props/context not change for a large set of the renders 3823- once there are no more changes left, you can memoize the component so it no longer unnecessarily re-renders. 3824 3825 3826An important thing to note is that if you see a lot of react renders (some components with very high render counts), but other time is much higher than render time, it is possible that the components with lots of renders run hooks like useEffect/useLayoutEffect, which run outside of what we profile (just react render time). 3827 3828It's also good to note that react profiles hook times in development, and if many hooks are called (lets say 5,000 components all called a useEffect), it will have to profile every single one, and this can add significant overhead when thousands of effects ran. 3829 3830If it's not possible to explain the root problem from this data, please ask me for more data explicitly, and what we would need to know to find the source of the performance problem. 3831`,aH=({renderTime:e,otherTime:t,formattedReactData:n})=>`I will provide you with a set of high level, and low level performance data about a large frame drop in a React App: 3832### High level 3833- react component render time: ${e.toFixed(0)}ms 3834- how long it took to run everything else (other JavaScript, hooks like useEffect, style recalculations, layerization, paint & commit and everything else the browser might do to draw a new frame after javascript mutates the DOM): ${t}ms 3835 3836### Low level 3837We also have lower level information about react components, such as their render time, and which props/state/context changed when they re-rendered. 3838${n}`,oH=({interactionType:e,name:t,time:n,renderTime:r,eHandlerTimeExcludingRenders:o,toRafTime:s,commitTime:c,framePresentTime:d,formattedReactData:f})=>`Your goal will be to help me find the source of a performance problem. I collected a large dataset about this specific performance problem. 3839 3840There was a ${e} on a component named ${t}. This means, roughly, the component that handled the ${e} event was named ${t}. 3841 3842We have a set of high level, and low level data about the performance issue. 3843 3844The click took ${n.toFixed(0)}ms from interaction start, to when a new frame was presented to a user. 3845 3846We also provide you with a breakdown of what the browser spent time on during the period of interaction start to frame presentation. 3847 3848- react component render time: ${r.toFixed(0)}ms 3849- how long it took to run javascript event handlers (EXCLUDING REACT RENDERS): ${o.toFixed(0)}ms 3850- how long it took from the last event handler time, to the last request animation frame: ${s.toFixed(0)}ms 3851 - things like prepaint, style recalculations, layerization, async web API's like observers may occur during this time 3852- how long it took from the last request animation frame to when the dom was committed: ${c.toFixed(0)}ms 3853 - during this period you will see paint, commit, potential style recalcs, and other misc browser activity. Frequently high times here imply css that makes the browser do a lot of work, or mutating expensive dom properties during the event handler stage. This can be many things, but it narrows the problem scope significantly when this is high 3854${d===null?"":`- how long it took from dom commit for the frame to be presented: ${d.toFixed(0)}ms. This is when information about how to paint the next frame is sent to the compositor threads, and when the GPU does work. If this is high, look for issues that may be a bottleneck for operations occurring during this time`} 3855 3856We also have lower level information about react components, such as their render time, and which props/state/context changed when they re-rendered. 3857 3858${f} 3859 3860 3861You may notice components have many renders, but much fewer props/state/context changes. This normally implies most of the components could of been memoized to avoid computation 3862 3863It's also important to remember if a component had no props/state/context change, and it was memoized, it would not render. So a flow we can go through is: 3864- find the most expensive components 3865- see what's causing them to render 3866- determine how you can make those state/props/context not change for a large set of the renders 3867- once there are no more changes left, you can memoize the component so it no longer unnecessarily re-renders. 3868 3869 3870An important thing to note is that if you see a lot of react renders (some components with very high render counts), but javascript excluding renders is much higher than render time, it is possible that the components with lots of renders run hooks like useEffect/useLayoutEffect, which run during the JS event handler peri
3870od. 3871 3872It's also good to note that react profiles hook times in development, and if many hooks are called (lets say 5,000 components all called a useEffect), it will have to profile every single one. And it may also be the case the comparison of the hooks dependency can be expensive, and that would not be tracked in render time. 3873 3874If it's not possible to explain the root problem from this data, please ask me for more data explicitly, and what we would need to know to find the source of the performance problem. 3875`,Gb=(e,t)=>qr(()=>{switch(e){case"data":switch(t.kind){case"dropped-frames":return aH({formattedReactData:Ds(t.groupedFiberRenders),renderTime:t.groupedFiberRenders.reduce((n,r)=>n+r.totalTime,0),otherTime:t.timing.otherTime});case"interaction":return tH({commitTime:t.timing.frameConstruction,eHandlerTimeExcludingRenders:t.timing.otherJSTime,formattedReactData:Ds(t.groupedFiberRenders),framePresentTime:t.timing.frameDraw,renderTime:t.groupedFiberRenders.reduce((n,r)=>n+r.totalTime,0),toRafTime:t.timing.framePreparation})}case"explanation":switch(t.kind){case"dropped-frames":return iH({formattedReactData:Ds(t.groupedFiberRenders),renderTime:t.groupedFiberRenders.reduce((n,r)=>n+r.totalTime,0),otherTime:t.timing.otherTime});case"interaction":return oH({commitTime:t.timing.frameConstruction,eHandlerTimeExcludingRenders:t.timing.otherJSTime,formattedReactData:Ds(t.groupedFiberRenders),framePresentTime:t.timing.frameDraw,interactionType:t.type,name:Pu(t.componentPath),renderTime:t.groupedFiberRenders.reduce((n,r)=>n+r.totalTime,0),time:on(t.timing),toRafTime:t.timing.framePreparation})}case"fix":switch(t.kind){case"dropped-frames":return rH({formattedReactData:Ds(t.groupedFiberRenders),renderTime:t.groupedFiberRenders.reduce((n,r)=>n+r.totalTime,0),otherTime:t.timing.otherTime});case"interaction":return nH({commitTime:t.timing.frameConstruction,componentPath:t.componentPath.join(">"),eHandlerTimeExcludingRenders:t.timing.otherJSTime,formattedReactData:Ds(t.groupedFiberRenders),framePresentTime:t.timing.frameDraw,interactionType:t.type,name:Pu(t.componentPath),renderTime:t.groupedFiberRenders.reduce((n,r)=>n+r.totalTime,0),time:on(t.timing),toRafTime:t.timing.framePreparation})}}}),sH=({selectedEvent:e})=>{const[t,n]=Ie("fix"),[r,o]=Ie(!1);return b("div",{className:B(["w-full h-full"]),children:[b("div",{className:B(["border border-[#27272A] rounded-sm h-4/5 text-xs overflow-hidden"]),children:[b("div",{className:B(["bg-[#18181B] p-1 rounded-t-sm"]),children:b("div",{className:B(["flex items-center gap-x-1"]),children:[b("button",{onClick:()=>n("fix"),className:B(["flex items-center justify-center whitespace-nowrap py-1.5 px-3 rounded-sm",t==="fix"?"text-white bg-[#7521c8]":"text-[#6E6E77] hover:text-white"]),children:"Fix"}),b("button",{onClick:()=>n("explanation"),className:B(["flex items-center justify-center whitespace-nowrap py-1.5 px-3 rounded-sm",t==="explanation"?"text-white bg-[#7521c8]":"text-[#6E6E77] hover:text-white"]),children:"Explanation"}),b("button",{onClick:()=>n("data"),className:B(["flex items-center justify-center whitespace-nowrap py-1.5 px-3 rounded-sm",t==="data"?"text-white bg-[#7521c8]":"text-[#6E6E77] hover:text-white"]),children:"Data"})]})}),b("div",{className:B(["overflow-y-auto h-full"]),children:b("pre",{className:B(["p-2 h-full","whitespace-pre-wrap break-words","text-gray-300 font-mono "]),children:Gb(t,e)})})]}),b("button",{onClick:async()=>{const s=Gb(t,e);await navigator.clipboard.writeText(s),o(!0),setTimeout(()=>o(!1),1e3)},className:B(["mt-4 px-4 py-2 bg-[#18181B] text-[#6E6E77] rounded-sm","hover:text-white transition-colors duration-200","flex items-center justify-center gap-x-2 text-xs"]),children:[b("span",{children:r?"Copied!":"Copy Prompt"}),b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:B(["transition-transform duration-200",r&&"scale-110"]),children:r?b("path",{d:"M20 6L9 17l-5-5"}):b(Ye,{children:[b("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})})]})]})},lH=(e,t)=>{switch(e.kind){case"dropped-frames":return[...t?[{name:"Total Processing Time",time:on(e.timing),color:"bg-red-500",kind:"total-processing-time"}]:[{name:"Renders",time:e.timing.renderTime,color:"bg-purple-500",kind:"render"},{name:"JavaScript, DOM updates, Draw Frame",time:e.timing.otherTime,color:"bg-[#4b4b4b]",kind:"other-frame-drop"}]];case"interaction":return[...t?[]:[{name:"Renders",time:e.timing.renderTime,color:"bg-purple-500",kind:"render"}],{name:t?"React Renders, Hooks, Other JavaScript":"JavaScript/React Hooks ",time:e.timing.otherJSTime,color:"bg-[#EFD81A]",kind:"other-javascript"},{name:"Update DOM and Draw New Frame",time:on(e.timing)-e.timing.renderTime-e.timing.otherJSTime,color:"bg-[#1D3A66]",kind:"other-not-javascript"}]}},cH=({selectedEvent:e})=>{const[t]=Ie(zp()??!1),{notificationState:n}=lr(),[r,o]=Ie(n.routeMessage?.name?[n.routeMessage.name]:[]),s=lH(e,t),c=Y0(u_);Le(()=>{if(n.routeMessage?.name){const f=c?.querySelector("#overview-scroll-container"),h=c?.querySelector(`#react-scan-overview-bar-${n.routeMessage.name}`);if(f&&h){const g=h.getBoundingClientRect().top,m=f.getBoundingClientRect().top,y=g-m;f.scrollTop=f.scrollTop+y}}},[n.route]),Le(()=>{n.route==="other-visualization"&&o(f=>n.routeMessage?.name?[n.routeMessage.name]:f)},[n.route]);const d=s.reduce((f,h)=>f+h.time,0);return b("div",{className:"rounded-sm border border-zinc-800 text-xs",children:[b("div",{className:"p-2 border-b border-zinc-800 bg-zinc-900/50",children:b("div",{className:"flex items-center justify-between",children:[b("h3",{className:"text-xs font-medium",children:"What was time spent on?"}),b("span",{className:"text-xs text-zinc-400",children:["Total: ",d.toFixed(0),"ms"]})]})}),b("div",{className:"divide-y divide-zinc-800",children:s.map(f=>{const h=r.includes(f.kind);return b("div",{id:`react-scan-overview-bar-${f.kind}`,children:[b("button",{onClick:()=>o(g=>g.includes(f.kind)?g.filter(m=>m!==f.kind):[...g,f.kind]),className:"w-full px-3 py-2 flex items-center gap-4 hover:bg-zinc-800/50 transition-colors",children:b("div",{className:"flex-1",children:[b("div",{className:"flex items-center justify-between mb-2",children:[b("div",{className:"flex items-center gap-0.5",children:[b("svg",{className:`h-4 w-4 text-zinc-400 transition-transform ${h?"rotate-90":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),b("span",{className:"font-medium flex items-center text-left",children:f.name})]}),b("span",{className:" text-zinc-400",children:[f.time.toFixed(0),"ms"]})]}),b("div",{className:"h-1 bg-zinc-800 rounded-full overflow-hidden",children:b("div",{className:`h-full ${f.color} transition-all`,style:{width:`${f.time/d*100}%`}})})]})}),h&&b("div",{className:"bg-zinc-900/30 border-t border-zinc-800 px-2.5 py-3",children:b("p",{className:" text-zinc-400 mb-4 text-xs",children:qr(()=>{switch(e.kind){case"interaction":switch(f.kind){case"render":return b(Ps,{input:dH(e)});case"other-javascript":return b(Ps,{input:fH(e)});case"other-not-javascript":return b(Ps,{input:uH(e)})}case"dropped-frames":switch(f.kind){case"total-processing-time":return b(Ps,{input:{kind:"total-processing",data:{time:on(e.timing)}}});case"render":return b(Ye,{children:b(Ps,{input:{kind:"render",data:{topByTime:e.groupedFiberRenders.toSorted((g,m)=>m.totalTime-g.totalTime).slice(0,3).map(g=>({name:g.name,percentage:g.totalTime/on(e.timing)}))}}})});case"other-frame-drop":return b(Ps,{input:{kind:"other"}})}}})})})]},f.kind)})})]})}
3875,uH=e=>{const t=e.groupedFiberRenders.reduce((s,c)=>s+c.count,0),n=e.timing.renderTime,r=on(e.timing),o=n/r*100;return t>100?{kind:"high-render-count-update-dom-draw-frame",data:{count:t,percentageOfTotal:o,copyButton:b(Wk,{})}}:{kind:"update-dom-draw-frame",data:{copyButton:b(Wk,{})}}},Wk=()=>{const[e,t]=Ie(!1),{notificationState:n}=lr();return b("button",{onClick:async()=>{n.selectedEvent&&(await navigator.clipboard.writeText(Gb("explanation",n.selectedEvent)),t(!0),setTimeout(()=>t(!1),1e3))},className:"bg-zinc-800 flex hover:bg-zinc-700 text-zinc-200 px-2 py-1 rounded gap-x-3",children:[b("span",{children:e?"Copied!":"Copy Prompt"}),b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:B(["transition-transform duration-200",e&&"scale-110"]),children:e?b("path",{d:"M20 6L9 17l-5-5"}):b(Ye,{children:[b("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})})]})},dH=e=>e.timing.renderTime/on(e.timing)>.3?{kind:"render",data:{topByTime:e.groupedFiberRenders.toSorted((t,n)=>n.totalTime-t.totalTime).slice(0,3).map(t=>({percentage:t.totalTime/on(e.timing),name:t.name}))}}:{kind:"other"},fH=e=>{const t=e.groupedFiberRenders.reduce((n,r)=>n+r.count,0);return e.timing.otherJSTime/on(e.timing)<.2?{kind:"js-explanation-base"}:e.groupedFiberRenders.find(n=>n.count>200)||e.groupedFiberRenders.reduce((n,r)=>n+r.count,0)>500?{kind:"high-render-count-high-js",data:{renderCount:t,topByCount:e.groupedFiberRenders.filter(n=>n.count>100).toSorted((n,r)=>r.count-n.count).slice(0,3)}}:e.timing.otherJSTime/on(e.timing)>.3?e.timing.renderTime>.2?{kind:"js-explanation-base"}:{kind:"low-render-count-high-js",data:{renderCount:t}}:{kind:"js-explanation-base"}},Ps=({input:e})=>{switch(e.kind){case"total-processing":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:["This is the time it took to draw the entire frame that was presented to the user. To be at 60FPS, this number needs to be ","<=16ms"]}
3875),b("p",{children:'To debug the issue, check the "Ranked" tab to see if there are significant component renders'}),b("p",{children:"On a production React build, React Scan can't access the time it took for component to render. To get that information, run React Scan on a development build"}),b("p",{children:["To understand precisely what caused the slowdown while in production, use the ",b("strong",{children:"Chrome profiler"})," and analyze the function call times."]}),b("p",{})]});case"render":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:"This is the time it took React to run components, and internal logic to handle the output of your component."}),b("div",{className:B(["flex flex-col"]),children:[b("p",{children:"The slowest components for this time period were:"}),e.data.topByTime.map(t=>b("div",{children:[b("strong",{children:t.name}),":"," ",(t.percentage*100).toFixed(0),"% of total"]},t.name))]}),b("p",{children:'To view the render times of all your components, and what caused them to render, go to the "Ranked" tab'}),b("p",{children:'The "Ranked" tab shows the render times of every component.'}),b("p",{children:"The render times of the same components are grouped together into one bar."}),b("p",{children:"Clicking the component will show you what props, state, or context caused the component to re-render."})]});case"js-explanation-base":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:"This is the period when JavaScript hooks and other JavaScript outside of React Renders run."}),b("p",{children:["The most common culprit for high JS time is expensive hooks, like expensive callbacks inside of ",b("code",{children:"useEffect"}),"'s or a large number of useEffect's called, but this can also be JavaScript event handlers (",b("code",{children:"'onclick'"}),", ",b("code",{children:"'onchange'"}),") that performed expensive computation."]}),b("p",{children:"If you have lots of components rendering that call hooks, like useEffect, it can add significant overhead even if the callbacks are not expensive. If this is the case, you can try optimizing the renders of those components to avoid the hook from having to run."}),b("p",{children:["You should profile your app using the"," ",b("strong",{children:"Chrome DevTools profiler"})," to learn exactly which functions took the longest to execute."]})]});case"high-render-count-high-js":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:"This is the period when JavaScript hooks and other JavaScript outside of React Renders run."}),e.data.renderCount===0?b(Ye,{children:[b("p",{children:"There were no renders, which means nothing related to React caused this slowdown. The most likely cause of the slowdown is a slow JavaScript event handler, or code related to a Web API"}),b("p",{children:["You should try to reproduce the slowdown while profiling your website with the",b("strong",{children:"Chrome DevTools profiler"})," to see exactly what functions took the longest to execute."]})]}):b(Ye,{children:[" ",b("p",{children:["There were ",b("strong",{children:e.data.renderCount})," renders, which could have contributed to the high JavaScript/Hook time if they ran lots of hooks, like ",b("code",{children:"useEffects"}),"."]}),b("div",{className:B(["flex flex-col"]),children:[b("p",{children:"You should try optimizing the renders of:"}),e.data.topByCount.map(t=>b("div",{children:["- ",b("strong",{children:t.name})," (rendered ",t.count,"x)"]},t.name))]}),"and then checking if the problem still exists.",b("p",{children:["You can also try profiling your app using the"," ",b("strong",{children:"Chrome DevTools profiler"})," to see exactly what functions took the longest to execute."]})]})]});case"low-render-count-high-js":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:"This is the period when JavaScript hooks and other JavaScript outside of React Renders run."}),b("p",{children:["There were only ",b("strong",{children:e.data.renderCount})," renders detected, which means either you had very expensive hooks like"," ",b("code",{children:"useEffect"}
3875),"/",b("code",{children:"useLayoutEffect"}),", or there is other JavaScript running during this interaction that took up the majority of the time."]}),b("p",{children:["To understand precisely what caused the slowdown, use the"," ",b("strong",{children:"Chrome profiler"})," and analyze the function call times."]})]});case"high-render-count-update-dom-draw-frame":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:"These are the calculations the browser is forced to do in response to the JavaScript that ran during the interaction."}),b("p",{children:"This can be caused by CSS updates/CSS recalculations, or new DOM elements/DOM mutations."}),b("p",{children:["During this interaction, there were"," ",b("strong",{children:e.data.count})," renders, which was"," ",b("strong",{children:[e.data.percentageOfTotal.toFixed(0),"%"]})," of the time spent processing"]}),b("p",{children:"The work performed as a result of the renders may have forced the browser to spend a lot of time to draw the next frame."}),b("p",{children:'You can try optimizing the renders to see if the performance problem still exists using the "Ranked" tab.'}),b("p",{children:"If you use an AI-based code editor, you can export the performance data collected as a prompt."}),b("p",{children:e.data.copyButton}),b("p",{children:"Provide this formatted data to the model and ask it to find, or fix, what could be causing this performance problem."}),b("p",{children:'For a larger selection of prompts, try the "Prompts" tab'})]});case"update-dom-draw-frame":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:"These are the calculations the browser is forced to do in response to the JavaScript that ran during the interaction."}),b("p",{children:"This can be caused by CSS updates/CSS recalculations, or new DOM elements/DOM mutations."}),b("p",{children:"If you use an AI-based code editor, you can export the performance data collected as a prompt."}),b("p",{children:e.data.copyButton}),b("p",{children:"Provide this formatted data to the model and ask it to find, or fix, what could be causing this performance problem."}),b("p",{children:'For a larger selection of prompts, try the "Prompts" tab'})]});case"other":return b("div",{className:B(["text-[#E4E4E7] text-[10px] leading-6 flex flex-col gap-y-2"]),children:[b("p",{children:["This is the time it took to run everything other than React renders. This can be hooks like ",b("code",{children:"useEffect"}),", other JavaScript not part of React, or work the browser has to do to update the DOM and draw the next frame."]}),b("p",{children:["To get a better picture of what happened, profile your app using the"," ",b("strong",{children:"Chrome profiler"})," when the performance problem arises."]})]})}},_t=null,Lt=null,ut=Zt({kind:"idle",current:null}),iy=null,cl=()=>{iy&&cancelAnimationFrame(iy),iy=requestAnimationFrame(()=>{if(!_t||!Lt)return;Lt.clearRect(0,0,_t.width,_t.height);const e="hsl(271, 76%, 53%)",t=ut.value,{alpha:n,current:r}=qr(()=>{switch(t.kind){case"transition":{const o=t.current?.alpha&&t.current.alpha>0?t.current:t.transitionTo;return{alpha:o?o.alpha:0,current:o}}case"move-out":return{alpha:t.current?.alpha??0,current:t.current};case"idle":return{alpha:1,current:t.current}}});switch(r?.rects.forEach(o=>{Lt&&(Lt.shadowColor=e,Lt.shadowBlur=6,Lt.strokeStyle=e,Lt.lineWidth=2,Lt.globalAlpha=n,Lt.beginPath(),Lt.rect(o.left,o.top,o.width,o.height),Lt.stroke(),Lt.shadowBlur=0,Lt.beginPath(),Lt.rect(o.left,o.top,o.width,o.height),Lt.stroke())}),t.kind){case"move-out":{if(t.current.alpha===0){ut.value={kind:"idle",current:null};return}t.current.alpha<=.01&&(t.current.alpha=0),t.current.alpha=Math.max(0,t.current.alpha-.03),cl();return}case"transition":{if(t.current&&t.current.alpha>0){t.current.alpha=Math.max(0,t.current.alpha-.03),cl();return}if(t.transitionTo.alpha===1){ut.value={kind:"idle",current:t.transitionTo};return}t.transitionTo.alpha=Math.min(t.transitionTo.alpha+.03,1),cl()}case"idle":return}})},ay=null,hH=e=>{if(_t=document.createElement("canvas"),Lt=_t.getContext("2d",{alpha:!0}),!Lt)return null;const t=window.devicePixelRatio||1,{innerWidth:n,innerHeight:r}=window;_t.style.width=`${n}px`,_t.style.height=`${r}px`,_t.width=n*t,_t.height=r*t,_t.style.position="fixed",_t.style.left="0",_t.style.top="0",_t.style.pointerEvents="none",_t.style.zIndex="2147483600",Lt.scale(t,t),e.appendChild(_t),ay&&window.removeEventListener("resize",ay);const o=()=>
3875{if(!_t||!Lt)return;const s=window.devicePixelRatio||1,{innerWidth:c,innerHeight:d}=window;_t.style.width=`${c}px`,_t.style.height=`${d}px`,_t.width=c*s,_t.height=d*s,Lt.scale(s,s),cl()};return ay=o,window.addEventListener("resize",o),ut.subscribe(()=>{requestAnimationFrame(()=>{cl()})}),pH};function pH(){_t?.parentNode&&_t.parentNode.removeChild(_t),_t=null,Lt=null}var eu=()=>{const e=ut.value.current?ut.value.current:ut.value.kind==="transition"?ut.value.transitionTo:null;if(e){if(ut.value.kind==="transition"){ut.value={kind:"move-out",current:ut.value.current?.alpha===0?ut.value.transitionTo:ut.value.current??ut.value.transitionTo};return}ut.value={kind:"move-out",current:{alpha:0,...e}}}},mH=({selectedEvent:e})=>{const t=on(e.timing),n=t-e.timing.renderTime,[r]=Ie(zp()),s=e.groupedFiberRenders.map(h=>({event:h,kind:"render",totalTime:r?h.count:h.totalTime})),c=qr(()=>{switch(e.kind){case"dropped-frames":return e.timing.renderTime/t<.1;case"interaction":return(e.timing.otherJSTime+e.timing.renderTime)/t<.2}});e.kind==="interaction"&&!r&&s.push({kind:"other-javascript",totalTime:e.timing.otherJSTime}),c&&!r&&(e.kind==="interaction"?s.push({kind:"other-not-javascript",totalTime:on(e.timing)-e.timing.renderTime-e.timing.otherJSTime}):s.push({kind:"other-frame-drop",totalTime:n}));const d=Ce({lastCallAt:null,timer:null}),f=s.reduce((h,g)=>h+g.totalTime,0);return b("div",{className:B(["flex flex-col h-full w-full gap-y-1"]),children:[qr(()=>{if(r&&s.length===0)return b("div",{className:"flex flex-col items-center justify-center h-full text-zinc-400",children:[b("p",{className:"text-sm w-full text-left text-white mb-1.5",children:"No data available"}),b("p",{className:"text-x w-full text-lefts",children:"No data was collected during this period"})]});if(s.length===0)return b("div",{className:"flex flex-col items-center justify-center h-full text-zinc-400",children:[b("p",{className:"text-sm w-full text-left text-white mb-1.5",children:"No renders collected"}),b("p",{className:"text-x w-full text-lefts",children:"There were no renders during this period"})]})}),s.toSorted((h,g)=>g.totalTime-h.totalTime).map(h=>b(bR,{bars:s,bar:h,debouncedMouseEnter:d,totalBarTime:f,isProduction:r},h.kind==="render"?h.event.id:h.kind))]})},gH=e=>e.current&&e.current.alpha>0?"fading-out":"fading-in",bR=({bar:e,debouncedMouseEnter:t,totalBarTime:n,isProduction:r,bars:o,depth:s=0})=>{const{setNotificationState:c,setRoute:d}=lr(),[f,h]=Ie(!1),g=e.kind==="render"?e.event.parents.size===0:!0,m=o.filter(w=>w.kind==="render"&&e.kind==="render"?e.event.parents.has(w.event.name)&&w.event.name!==e.event.name:!1),y=e.kind==="render"?Array.from(e.event.parents).filter(w=>!o.some(S=>S.kind==="render"&&S.event.name===w)):[],_=()=>{e.kind==="render"?(c(w=>({...w,selectedFiber:e.event})),d({route:"render-explanation",routeMessage:null})):d({route:"other-visualization",routeMessage:{kind:"auto-open-overview-accordion",name:e.kind}})};return b("div",{className:"w-full",children:[b("div",{className:B(["w-full flex items-center relative text-xs min-w-0"]),children:[b("button",{onMouseLeave:()=>{t.current.timer&&clearTimeout(t.current.timer),eu()},onMouseEnter:async()=>{const w=async()=>{if(t.current.lastCallAt=Date.now(),e.kind!=="render"){const z=ut.value.current?ut.value.current:ut.value.kind==="transition"?ut.value.transitionTo:null;if(!z){ut.value={kind:"idle",current:null};return}ut.value={kind:"move-out",current:{alpha:0,...z}};return}const S=ut.value,T=qr(()=>{switch(S.kind){case"transition":return S.transitionTo;case"idle":case"move-out":return S.current}}),k=[];if(S.kind==="transition"){const z=gH(S);qr(()=>{switch(z){case"fading-in":{ut.value={kind:"transition",current:S.transitionTo,transitionTo:{rects:k,alpha:0,name:e.event.name}};return}case"fading-out":{ut.value={kind:"transition",current:ut.value.current?{alpha:0,...ut.value.current}:null,transitionTo:{rects:k,alpha:0,name:e.event.name}};return}}})}else ut.value={kind:"transition",transitionTo:{rects:k,alpha:0,name:e.event.name},current:T?{alpha:0,...T}:null};const $=e.event.elements.filter(z=>z instanceof Element);for await(const z of cR($))z.forEach(({boundingClientRect:N})=>{k.push(N)}),cl()};if(t.current.lastCallAt&&Date.now()-t.current.lastCallAt<200){t.current.timer&&clearTimeout(t.current.timer),t.current.timer=setTimeout(()=>{w()},200);return}w()},onClick:_,className:B(["h-full w-[90%] flex items-center hover:bg-[#0f0f0f] rounded-l-md min-w-0 relative"]),children:[b("div",{style:{minWidth:"fit-content",width:`${e.totalTime/n*100}%`},className:B(["flex items-center rounded-sm text-white text-xs h-[28px] shrink-0",e.kind==="render"&&"bg-[#412162] group-hover:bg-[#5b2d89]",e.kind==="other-frame-drop"&&"bg-[#44444a] group-hover:bg-[#6a6a6a]",e.kind==="other-javascript"&&"bg-[#efd81a6b] group-hover:bg-[#efda1a2f]",e.kind==="other-not-javascript"&&"bg-[#214379d4] group-hover:bg-[#21437982]"])}),b("div",{className:B(["absolute inset-0 flex items-center px-2","min-w-0"]),children:b("div",{className:"flex items-center gap-x-2 min-w-0
3875w-full",children:[b("span",{className:B(["truncate"]),children:qr(()=>{switch(e.kind){case"other-frame-drop":return"JavaScript, DOM updates, Draw Frame";case"other-javascript":return"JavaScript/React Hooks";case"other-not-javascript":return"Update DOM and Draw New Frame";case"render":return e.event.name}})}),e.kind==="render"&&VU(e.event)&&b("div",{style:{lineHeight:"10px"},className:B(["px-1 py-0.5 bg-[#6a369e] flex items-center rounded-sm font-semibold text-[8px] shrink-0"]),children:"Memoizable"})]})})]}),b("button",{onClick:()=>e.kind==="render"&&!g&&h(!f),className:B(["flex items-center min-w-fit shrink-0 rounded-r-md h-[28px]",!g&&"hover:bg-[#0f0f0f]",e.kind==="render"&&!g?"cursor-pointer":"cursor-default"]),children:[b("div",{className:"w-[20px] flex items-center justify-center",children:e.kind==="render"&&!g&&b(vR,{className:B("transition-transform",f&&"rotate-90"),size:16})}),b("div",{style:{minWidth:g?"fit-content":r?"30px":"60px"},className:"flex items-center justify-end gap-x-1",children:[e.kind==="render"&&b("span",{className:B(["text-[10px]"]),children:["x",e.event.count]}),(e.kind!=="render"||!r)&&b("span",{className:"text-[10px] text-[#7346a0] pr-1",children:[e.totalTime<1?"<1":e.totalTime.toFixed(0),"ms"]})]})]}),s===0&&b("div",{className:B(["absolute right-0 top-1/2 transition-none -translate-y-1/2 bg-white text-black px-2 py-1 rounded text-xs opacity-0 group-hover:opacity-100 transition-opacity mr-16","pointer-events-none"]),children:"Click to learn more"})]}),f&&(m.length>0||y.length>0)&&b("div",{className:"pl-3 flex flex-col gap-y-1 mt-1",children:[m.toSorted((w,S)=>S.totalTime-w.totalTime).map((w,S)=>b(bR,{depth:s+1,bar:w,debouncedMouseEnter:t,totalBarTime:n,isProduction:r,bars:o},S)),y.map(w=>b("div",{className:"w-full",children:b("div",{className:"w-full flex items-center relative text-xs",children:b("div",{className:"h-full w-full flex items-center relative",children:[b("div",{className:"flex items-center rounded-sm text-white text-xs h-[28px] w-full"}),b("div",{className:"absolute inset-0 flex items-center px-2",children:b("span",{className:"truncate whitespace-nowrap text-white/70 w-full",children:w})})]})})},w))]})]})},vH=({selectedEvent:e,selectedFiber:t})=>{const{setRoute:n}=lr(),[r,o]=Ie(!0),[s]=Ie(zp());G0(()=>{const d=localStorage.getItem("react-scan-tip-shown"),f=d==="true"?!0:d==="false"?!1:null;if(f===null){o(!0),localStorage.setItem("react-scan-tip-is-shown","true");return}f||o(!1)},[]);const c=t.changes.context.length===0&&t.changes.props.length===0&&t.changes.state.length===0;return b("div",{className:B(["w-full min-h-fit h-full flex flex-col py-4 pt-0 rounded-sm"]),children:[b("div",{className:B(["flex items-start gap-x-4 "]),children:[b("button",{onClick:()=>{n({route:"render-visualization",routeMessage:null})},className:B(["text-white hover:bg-[#34343b] flex gap-x-1 justify-center items-center mb-4 w-fit px-2.5 py-1.5 text-xs rounded-sm bg-[#18181B]"]),children:[b(XU,{size:14})," ",b("span",{children:"Overview"})]}),b("div",{className:B(["flex flex-col gap-y-1"]),children:[b("div",{className:B(["text-sm font-bold text-white overflow-x-hidden"]),children:b("div",{className:"flex items-center gap-x-2 truncate",children:t.name})}),b("div",{className:B(["flex gap-x-2"]),children:[!s&&b(Ye,{children:b("div",{className:B(["text-xs text-gray-400"]),children:["⢠Render time: ",t.totalTime.toFixed(0),"ms"]})}),b("div",{className:B(["text-xs text-gray-400 mb-4"]),children:["⢠Renders: ",t.count,"x"]})]})]})]}),r&&!c&&b("div",{className:B(["w-full mb-4 bg-[#0A0A0A] border border-[#27272A] rounded-sm overflow-hidden flex relative"]),children:[b("button",{onClick:()=>{o(!1),localStorage.setItem("react-scan-tip-shown","false")},className:B(["absolute right-2 top-2 rounded-sm p-1 hover:bg-[#18181B]"]),children:b(ap,{size:12})}),b("div",{className:B(["w-1 bg-[#d36cff]"])}),b("div",{className:B(["flex-1"]),children:[b("div",{className:B(["px-3 py-2 text-gray-100 text-xs font-semibold"]),children:"How to stop renders"}),b("div",{className:B(["px-3 pb-2 text-gray-400 text-[10px]"]),children:"Stop the following props, state and context from changing between renders, and wrap the component in React.memo if not already"})]})]}),c&&b("div",{className:B(["w-full mb-4 bg-[#0A0A0A] border border-[#27272A] rounded-sm overflow-hidden flex"]),children:[b("div",{className:B(["w-1 bg-[#d36cff]"])}),b("div",{className:B(["flex-1"]),children:[b("div",{className:B(["px-3 py-2 text-gray-100 text-sm font-semibold"]),children:"No changes detected"}),b("div",{className:B(["px-3 pb-2 text-gray-400 text-xs"]),children:"This component would not of rendered if it was memoized"})]})]}),b("div",{className:B(["flex w-full"]),children:[b("div",{className:B(["flex flex-col border border-[#27272A] rounded-l-sm overflow-hidden w-1/3"]),children:[b("div",{className:B(["text-[14px] font-semibold px-2 py-2 bg-[#18181B] text-white flex justify-center"]),children:"Changed Props"}),t.changes.props.length>0?t.changes.props.toSorted((d,f)=>f.count-d.count).map(d=>b("div",{className:B(["flex flex-col justify-between items-center border-t overflow-x-auto border-[#27272A] px-1 py-1 text-wrap bg-[#0A0A0A] text-[10px]"]),children:[b("span",{className:B(["text-white "]),children:d.name}),b("div",{className:B([" text-[8px] text-[#d36cff] pl-1 py-1 "]),children:[d.count,"/",t.count,"x"]})]},d.name)):b("div",{className:B(["flex items-center justify-center h-full bg-[#0A0A0A] text-[#A1A1AA] border-t border-[#27272A]"]),children:"No changes"})]}),b("div",{className:B(["flex flex-col border border-[#27272A] border-l-0 overflow-hidden w-1/3"]),children:[b("div",{className:B([" text-[14px] font-semibold px-2 py-2 bg-[#18181B] text-white flex justify-center"]),children:"Changed State"}),t.changes.state.length>0?t.changes.state.toSorted((d,f)=>f.count-d.count).map(d=>b("div",{className:B(["flex flex-col justify-between items-center border-t overflow-x-auto border-[#27272A] px-1 py-1 text-wrap bg-[#0A0A0A] text-[10px]"]),children:[b("span",{className:B(["text-white "]),children:["index ",d.index]}),b("div",{className:B(["rounded-full text-[#d36cff] pl-1 py-1 text-[8px]"]),children:[d.count,"/",t.count,"x"]})]},d.index)):b("div",{className:B(["flex items-center justify-center h-full bg-[#0A0A0A] text-[#A1A1AA] border-t border-[#27272A]"]),children:"No changes"})]}),b("div",{className:B(["flex flex-col border border-[#27272A] border-l-0 rounded-r-sm overflow-hidden w-1/3"]),children:[b("div",{className:B([" text-[14px] font-semibold px-2 py-2 bg-[#18181B] text-white flex justify-center"]),children:"Changed Context"}),t.changes.context.length>0?t.changes.context.toSorted((d,f)=>f.count-d.count).map(d=>b("div",{className:B(["flex flex-col justify-between items-center border-t border-[#27272A] px-1 py-1 bg-[#0A0A0A] text-[10px] overflow-x-auto"]),children:[b("span",{className:B(["text-white "]),children:d.name}),b("div",{className:B(["rounded-full text-[#d36cff] pl-1 py-1 text-[8px] text-wrap"]),children:[d.count,"/",t.count,"x"]})]},d.name)):b("div",{className:B(["flex items-center justify-center h-full bg-[#0A0A0A] text-[#A1A1AA] border-t border-[#27272A] py-2"]),children:"No changes"})]})]})]})},yH=()=>{const{notificationState:e,setNotificationState:t}=lr(),[n,r]=Ie("..."),o=Ce(null);if(Le(()=>{const s=setInterval(()=>{r(c=>c==="..."?"":c+".")},500);return()=>clearInterval(s)},[]),!e.selectedEvent)return b("div",{ref:o,className:B(["h-full w-full flex flex-col items-center justify-center relative py-2 px-4"]),children:[b("div",{className:B(["p-2 flex justify-center items-center border-[#27272A] absolute top-0 right-0"]),children:b("button",{onClick:()=>{dt.value={view:"none"}}
3875,children:b(ap,{size:18,className:"text-[#6F6F78]"})})}),b("div",{className:B(["flex flex-col items-start pt-5 bg-[#0A0A0A] p-5 rounded-sm max-w-md"," shadow-lg"]),children:b("div",{className:B(["flex flex-col items-start gap-y-4"]),children:[b("div",{className:B(["flex items-center"]),children:b("span",{className:B(["text-zinc-400 font-medium text-[17px]"]),children:["Scanning for slowdowns",n]})}),e.events.length!==0&&b("p",{className:B(["text-xs"]),children:["Click on an item in the"," ",b("span",{className:B(["text-purple-400"]),children:"History"})," list to get started"]}),b("p",{className:B(["text-zinc-600 text-xs"]),children:"You don't need to keep this panel open for React Scan to record slowdowns"}),b("p",{className:B(["text-zinc-600 text-xs"]),children:"Enable audio alerts to hear a delightful ding every time a large slowdown is recorded"}),b("button",{onClick:()=>{if(e.audioNotificationsOptions.enabled){t(c=>(c.audioNotificationsOptions.audioContext?.state!=="closed"&&c.audioNotificationsOptions.audioContext?.close(),localStorage.setItem("react-scan-notifications-audio","false"),{...c,audioNotificationsOptions:{audioContext:null,enabled:!1}}));return}localStorage.setItem("react-scan-notifications-audio","true");const s=new AudioContext;K0(s),t(c=>({...c,audioNotificationsOptions:{enabled:!0,audioContext:s}}))},className:B(["px-4 py-2 bg-zinc-800 hover:bg-zinc-700 rounded-sm w-full"," text-sm flex items-center gap-x-2 justify-center"]),children:e.audioNotificationsOptions.enabled?b(Ye,{children:b("span",{className:"flex items-center gap-x-1",children:"Disable audio alerts"})}):b(Ye,{children:b("span",{className:"flex items-center gap-x-1",children:"Enable audio alerts"})})})]})})]});switch(e.route){case"render-visualization":return b(Bf,{children:b(mH,{selectedEvent:e.selectedEvent})});case"render-explanation":{if(!e.selectedFiber)throw new Error("Invariant: must have selected fiber when viewing render explanation");return b(Bf,{children:b(vH,{selectedFiber:e.selectedFiber,selectedEvent:e.selectedEvent})})}case"other-visualization":return b(Bf,{children:b("div",{className:B(["flex w-full h-full flex-col overflow-y-auto"]),id:"overview-scroll-container",children:b(cH,{selectedEvent:e.selectedEvent})})});case"optimize":return b(Bf,{children:b(sH,{selectedEvent:e.selectedEvent})})}e.route},Bf=({children:e})=>{const{notificationState:t}=lr();if(!t.selectedEvent)throw new Error("Invariant: d must have selected event when viewing render explanation");return b("div",{className:B(["w-full h-full flex flex-col gap-y-2"]),children:[b("div",{className:B(["h-[50px] w-full"]),children:b(eH,{selectedEvent:t.selectedEvent})}),b("div",{className:B(["h-calc(100%-50px) flex flex-col overflow-y-auto px-3"]),children:e})]})},bH=({selectedEvent:e})=>{const t=Vu(e);switch(e.kind){case"interaction":return b("div",{className:B(["w-full flex border-b border-[#27272A] min-h-[48px]"]),children:b("div",{className:B(["min-w-fit w-full justify-start flex items-center border-r border-[#27272A] pl-5 pr-2 text-sm gap-x-4"]),children:[b("div",{className:B(["flex items-center gap-x-2 "]),children:[b("span",{className:B(["text-[#5a5a5a] mr-0.5"]),children:e.type==="click"?"Clicked ":"Typed in "}),b("span",{children:Pu(e.componentPath)}),b("div",{className:B(["w-fit flex items-center justify-center h-fit text-white px-1 rounded-sm font-semibold text-[10px] whitespace-nowrap",t==="low"&&"bg-green-500/50",t==="needs-improvement"&&"bg-[#b77116]",t==="high"&&"bg-[#b94040]"]),children:[on(e.timing).toFixed(0),"ms processing time"]})]}),b("div",{className:B(["flex items-center gap-x-2 justify-end ml-auto"]),children:b("div",{className:B(["p-2 flex justify-center items-center border-[#27272A]"]),children:b("button",{onClick:()=>{dt.value={view:"none"}},title:"Close",children:b(ap,{size:18,className:"text-[#6F6F78]"})})})})]})});case"dropped-frames":return b("div",{className:B(["w-full flex border-b border-[#27272A] min-h-[48px]"]),children:b("div",{className:B(["min-w-fit w-full justify-start flex items-center border-r border-[#27272A] pl-5 pr-2 text-sm gap-x-4"]),children:[b("div",{className:B(["flex items-center gap-x-2 "]),children:["FPS Drop",b("div",{className:B(["w-fit flex items-center justify-center h-fit text-white px-1 rounded-sm font-semibold text-[10px] whitespace-nowrap",t==="low"&&"bg-green-500/50",t==="needs-improvement"&&"bg-[#b77116]",t==="high"&&"bg-[#b94040]"]),children:["dropped to ",e.fps," FPS"]})]}),b("div",{className:B(["flex items-center gap-x-2 w-2/4 justify-end ml-auto"]),children:b("div",{className:B(["p-2 flex justify-center items-center border-[#27272A]"]),children:b("button",{onClick:()=>{dt.value={view:"none"}}
3875,children:b(ap,{size:18,className:"text-[#6F6F78]"})})})})]})})}},_H=({flashingItemsCount:e,totalEvents:t})=>{const[n,r]=Ie(!1),o=Ce(0),s=Ce(0);return Le(()=>{if(o.current>=t)return;const c=Date.now(),d=250,f=c-s.current;if(f>=d){r(!1);const h=setTimeout(()=>{o.current=t,s.current=Date.now(),r(!0),setTimeout(()=>{r(!1)},2e3)},50);return()=>clearTimeout(h)}else{const h=d-f,g=setTimeout(()=>{r(!1),setTimeout(()=>{o.current=t,s.current=Date.now(),r(!0),setTimeout(()=>{r(!1)},2e3)},50)},h);return()=>clearTimeout(g)}},[e]),n},Kk=({item:e,shouldFlash:t})=>{const[n,r]=Ie(!1),o=e.events.map(Vu).reduce((d,f)=>{switch(f){case"high":return"high";case"needs-improvement":return d==="high"?"high":"needs-improvement";case"low":return d}},"low"),s=e.events.reduce((d,f)=>t(f.id)?d+1:d,0),c=_H({flashingItemsCount:s,totalEvents:e.events.length});return b("div",{className:B(["flex flex-col gap-y-0.5"]),children:[b("button",{onClick:()=>r(d=>!d),className:B(["pl-2 py-1.5 text-sm flex items-center rounded-sm hover:bg-[#18181B] relative overflow-hidden",c&&!n&&"after:absolute after:inset-0 after:bg-purple-500/30 after:animate-[fadeOut_1s_ease-out_forwards]"]),children:[b("div",{className:B(["w-4/5 flex items-center justify-start h-full text-xs truncate gap-x-1.5"]),children:[b("span",{className:B(["min-w-fit"]),children:b(vR,{className:B(["text-[#A1A1AA] transition-transform",n?"rotate-90":""]),size:14},`chevron-${e.timestamp}`)}),b("span",{className:B(["text-xs"]),children:e.kind==="collapsed-frame-drops"?"FPS Drops":Pu(e.events.at(0)?.componentPath??[])})]}),b("div",{className:B(["ml-auto min-w-fit flex justify-end items-center"]),children:b("div",{style:{lineHeight:"10px"},className:B(["w-fit flex items-center text-[10px] justify-center h-full text-white px-1 py-1 rounded-sm font-semibold",o==="low"&&"bg-green-500/60",o==="needs-improvement"&&"bg-[#b77116] text-[10px]",o==="high"&&"bg-[#b94040]"]),children:["x",e.events.length]})})]}),n&&b(wH,{children:e.events.toSorted((d,f)=>f.timestamp-d.timestamp).map(d=>b(_R,{event:d,shouldFlash:t(d.id)}))})]})},wH=({children:e})=>b("div",{className:"relative pl-6 flex flex-col gap-y-1",children:[b("div",{className:"absolute left-3 top-0 bottom-0 w-px bg-[#27272A]"}),e]}),xH=e=>{const t=Ce([]),[n,r]=Ie(new Set),o=Ce(!0);return Le(()=>{if(o.current){o.current=!1,t.current=e;return}const s=new Set(e.map(f=>f.id)),c=new Set(t.current.map(f=>f.id)),d=new Set;s.forEach(f=>{c.has(f)||d.add(f)}),d.size>0&&(r(d),setTimeout(()=>{r(new Set)},2e3)),t.current=e},[e]),s=>n.has(s)},SH=({shouldFlash:e})=>{const[t,n]=Ie(e);return Le(()=>{if(e){n(!0);const r=setTimeout(()=>{n(!1)},1e3);return()=>clearTimeout(r)}},[e]),t},_R=({event:e,shouldFlash:t})=>{const{notificationState:n,setNotificationState:r}=lr(),o=Vu(e),s=SH({shouldFlash:t});switch(e.kind){case"interaction":return b("button",{onClick:()=>{r(c=>({...c,selectedEvent:e,route:"render-visualization",selectedFiber:null}))},className:B(["pl-2 py-1.5 text-sm flex w-full items-center rounded-sm hover:bg-[#18181B] relative overflow-hidden",e.id===n.selectedEvent?.id&&"bg-[#18181B]",s&&"after:absolute after:inset-0 after:bg-purple-500/30 after:animate-[fadeOut_1s_ease-out_forwards]"]),children:[b("div",{className:B(["w-4/5 flex items-center justify-start h-full gap-x-1.5"]),children:[b("span",{className:B(["min-w-fit text-xs"]),children:qr(()=>{switch(e.type){case"click":return b(WU,{size:14});case"keyboard":return b(KU,{size:14})}})}),b("span",{className:B(["text-xs pr-1 truncate"]),children:Pu(e.componentPath)})]}),b("div",{className:B([" min-w-fit flex justify-end items-center ml-auto"]),children:b("div",{style:{lineHeight:"10px"},className:B(["gap-x-0.5 w-fit flex items-end justify-center h-full text-white px-1 py-1 rounded-sm font-semibold text-[10px]",o==="low"&&"bg-green-500/50",o==="needs-improvement"&&"bg-[#b77116] text-[10px]",o==="high"&&"bg-[#b94040]"]),children:b("div",{style:{lineHeight:"10px"},className:B(["text-[10px] text-white flex items-end"]),children:[on(e.timing).toFixed(0),"ms"]})})})]});case"dropped-frames":return b("button",{onClick:()=>{r(c=>({...c,selectedEvent:e,route:"render-visualization",selectedFiber:null}))},className:B(["pl-2 py-1.5 w-full text-sm flex items-center rounded-sm hover:bg-[#18181B] relative overflow-hidden",e.id===n.selectedEvent?.id&&"bg-[#18181B]",s&&"after:absolute after:inset-0 after:bg-purple-500/30 after:animate-[fadeOut_1s_ease-out_forwards]"]),children:[b("div",{className:B(["w-4/5 flex items-center justify-start h-full text-xs truncate"]),children:[b(JU,{size:14,className:"mr-1.5"})," FPS Drop"]}),b("div",{className:B([" min-w-fit flex justify-end items-center ml-auto"]),children:b("div",{style:{lineHeight:"10px"},className:B(["w-fit flex items-center justify-center h-full text-white px-1 py-1 rounded-sm text-[10px] font-bold",o==="low"&&"bg-green-500/60",o==="needs-improvement"&&"bg-[#b77116] text-[10px]",o==="high"&&"bg-[#b94040]"]),children:[e.fps," FPS"]})})]})}},EH=e=>e.reduce((n,r)=>{const o=n.at(-1);if(!o)return[{kind:"single",event:r,timestamp:r.timestamp}];switch(o.kind){case"collapsed-keyboard":return r.kind==="interaction"&&r.type==="
3875keyboard"&&r.componentPath.join("-")===o.events[0].componentPath.join("-")?[...n.filter(c=>c!==o),{kind:"collapsed-keyboard",events:[...o.events,r],timestamp:Math.max(...[...o.events,r].map(c=>c.timestamp))}]:[...n,{kind:"single",event:r,timestamp:r.timestamp}];case"single":return o.event.kind==="interaction"&&o.event.type==="keyboard"&&r.kind==="interaction"&&r.type==="keyboard"&&o.event.componentPath.join("-")===r.componentPath.join("-")?[...n.filter(c=>c!==o),{kind:"collapsed-keyboard",events:[o.event,r],timestamp:Math.max(o.event.timestamp,r.timestamp)}]:o.event.kind==="dropped-frames"&&r.kind==="dropped-frames"?[...n.filter(c=>c!==o),{kind:"collapsed-frame-drops",events:[o.event,r],timestamp:Math.max(o.event.timestamp,r.timestamp)}]:[...n,{kind:"single",event:r,timestamp:r.timestamp}];case"collapsed-frame-drops":return r.kind==="dropped-frames"?[...n.filter(c=>c!==o),{kind:"collapsed-frame-drops",events:[...o.events,r],timestamp:Math.max(...[...o.events,r].map(c=>c.timestamp))}]:[...n,{kind:"single",event:r,timestamp:r.timestamp}]}},[]),wR=(e=150)=>{const{notificationState:t}=lr(),[n,r]=Ie(t.events);return Le(()=>{setTimeout(()=>{r(t.events)},e)},[t.events]),[n,r]},kH=()=>{const{notificationState:e,setNotificationState:t}=lr(),n=xH(e.events),[r,o]=wR(),s=EH(r).toSorted((c,d)=>d.timestamp-c.timestamp);return b("div",{className:B(["w-full h-full gap-y-2 flex flex-col border-r border-[#27272A] overflow-y-auto"]),children:[b("div",{className:B(["text-sm text-[#65656D] pl-3 pr-1 w-full flex items-center justify-between"]),children:[b("span",{children:"History"}),b(yR,{wrapperProps:{className:"h-full flex items-center justify-center ml-auto"},triggerContent:b("button",{className:B(["hover:bg-[#18181B] rounded-full p-2"]),title:"Clear all events",onClick:()=>{Du.getState().actions.clear(),t(c=>({...c,selectedEvent:null,selectedFiber:null,route:c.route==="other-visualization"?"other-visualization":"render-visualization"})),o([])},children:b(QU,{className:B([""]),size:16})}),children:b("div",{className:B(["w-full flex justify-center"]),children:"Clear all events"})})]}),b("div",{className:B(["flex flex-col px-1 gap-y-1"]),children:[s.length===0&&b("div",{className:B(["flex items-center justify-center text-zinc-500 text-sm py-4"]),children:"No Events"}),s.map(c=>qr(()=>{switch(c.kind){case"collapsed-keyboard":return b(Kk,{shouldFlash:n,item:c});case"single":return b(_R,{event:c.event,shouldFlash:n(c.event.id)},c.event.id);case"collapsed-frame-drops":return b(Kk,{shouldFlash:n,item:c})}}))]})]})},TH=e=>Object.values(e).map(n=>({id:Ir(),totalTime:n.nodeInfo.reduce((r,o)=>
3875r+o.selfTime,0),count:n.nodeInfo.length,name:n.nodeInfo[0].name,deletedAll:!1,parents:n.parents,hasMemoCache:n.hasMemoCache,wasFiberRenderMount:n.wasFiberRenderMount,elements:n.nodeInfo.map(r=>r.element),changes:{context:n.changes.fiberContext.current.filter(r=>n.changes.fiberContext.changesCounts.get(r.name)).map(r=>({name:String(r.name),count:n.changes.fiberContext.changesCounts.get(r.name)??0})),props:n.changes.fiberProps.current.filter(r=>n.changes.fiberProps.changesCounts.get(r.name)).map(r=>({name:String(r.name),count:n.changes.fiberProps.changesCounts.get(r.name)??0})),state:n.changes.fiberState.current.filter(r=>n.changes.fiberState.changesCounts.get(Number(r.name))).map(r=>({index:r.name,count:n.changes.fiberState.changesCounts.get(Number(r.name))??0}))}})),CH=e=>{Le(()=>{const n=setInterval(()=>{e.forEach(r=>{r.groupedFiberRenders&&r.groupedFiberRenders.forEach(o=>{if(o.deletedAll)return;if(!o.elements||o.elements.length===0){o.deletedAll=!0;return}const s=o.elements.length;o.elements=o.elements.filter(c=>c&&c.isConnected),o.elements.length===0&&s>0&&(o.deletedAll=!0)})})},5e3);return()=>{clearInterval(n)}},[e])},xR=()=>{const e=jU(),t=[];return CH(t),e.state.events.forEach(n=>{const r=n.kind==="interaction"?n.data.meta.detailedTiming.fiberRenders:n.data.meta.fiberRenders,o=TH(r),s=o.reduce((c,d)=>c+d.totalTime,0);switch(n.kind){case"interaction":{const{commitEnd:c,jsEndDetail:d,interactionStartDetail
3875:f,rafStart:h}=n.data.meta.detailedTiming,g=Math.max(0,d-f-s),m=Math.max(n.data.meta.latency-(c-f),0);t.push({componentPath:n.data.meta.detailedTiming.componentPath,groupedFiberRenders:o,id:n.id,kind:"interaction",memory:null,timestamp:n.data.startAt,type:n.data.meta.detailedTiming.interactionType==="keyboard"?"keyboard":"click",timing:{renderTime:s,kind:"interaction",otherJSTime:g,framePreparation:h-d,frameConstruction:c-h,frameDraw:m}});return}case"long-render":{t.push({kind:"dropped-frames",id:n.id,memory:null,timing:{kind:"dropped-frames",renderTime:s,otherTime:n.data.meta.latency},groupedFiberRenders:o,timestamp:n.data.startAt,fps:n.data.meta.fps});return}}}),t},$H=1e3,RH=()=>{const{notificationState:e,setNotificationState:t}=lr(),n=Ce(null),r=Ce(null),o=Ce(0),[s]=wR(),c=s.filter(d=>Vu(d)==="high").length;return Le(()=>{const d=localStorage.getItem("react-scan-notifications-audio");if(d!=="false"&&d!=="true"){localStorage.setItem("react-scan-notifications-audio","false");return}if(d!=="false"){t(h=>h.audioNotificationsOptions.enabled?h:{...h,audioNotificationsOptions:{enabled:!0,audioContext:new AudioContext}});return}},[]),Le(()=>{const{audioNotificationsOptions:d}=e;if(!d.enabled||c===0||n.current&&n.current>=c)return;r.current&&clearTimeout(r.current);const h=Date.now()-o.current,g=Math.max(0,$H-h);r.current=setTimeout(()=>{K0(d.audioContext),n.current=c,o.current=Date.now(),r.current=null},g)},[c]),Le(()=>{c===0&&(n.current=null)},[c]),Le(()=>()=>{r.current&&clearTimeout(r.current)},[]),null},AH=W0((e,t)=>{const n=xR(),[r,o]=Ie({detailsExpanded:!1,events:n,filterBy:"latest",moreInfoExpanded:!1,route:"render-visualization",selectedEvent:n.toSorted((s,c)=>s.timestamp-c.timestamp).at(-1)??null,selectedFiber:null,routeMessage:null,audioNotificationsOptions:{enabled:!1,audioContext:null}});return r.events=n,b(gR.Provider,{value:{notificationState:r,setNotificationState:o,setRoute:({route:s,routeMessage:c})=>{o(d=>{const f={...d,route:s,routeMessage:c};switch(s){case"render-visualization":return eu(),{...f,selectedFiber:null};case"optimize":return eu(),{...f,selectedFiber:null};case"other-visualization":return eu(),{...f,selectedFiber:null};case"render-explanation":return eu(),f}})}},children:[b(RH,{}),b(MH,{ref:t})]})}),MH=W0((e,t)=>{const{notificationState:n}=lr();return b("div",{ref:t,className:B(["h-full w-full flex flex-col"]),children:[n.selectedEvent&&b("div",{className:B(["w-full h-[48px] flex flex-col",n.moreInfoExpanded&&"h-[235px]",n.moreInfoExpanded&&n.selectedEvent.kind==="dropped-frames"&&"h-[150px]"]),children:[b(bH,{selectedEvent:n.selectedEvent}),n.moreInfoExpanded&&b(zH,{})]}),b("div",{className:B(["flex ",n.selectedEvent?"h-[calc(100%-48px)]":"h-full",n.moreInfoExpanded&&"h-[calc(100%-200px)]",n.moreInfoExpanded&&n.selectedEvent?.kind==="dropped-frames"&&"h-[calc(100%-150px)]"]),children:[b("div",{className:B(["h-full min-w-[200px]"]),children:b(kH,{})}),b("div",{className:B(["w-[calc(100%-200px)] h-full overflow-y-auto"]),children:b(yH,{})})]})]})}),zH=()=>{const{notificationState:e}=lr();if(!e.selectedEvent)throw new Error("Invariant must have selected event for more info");const t=e.selectedEvent;return b("div",{className:B(["px-4 py-2 border-b border-[#27272A] bg-[#18181B]/50 h-[calc(100%-40px)]",t.kind==="dropped-frames"&&"h-[calc(100%-25px)]"]),children:b("div",{className:B(["flex flex-col gap-y-4 h-full"]),children:qr(()=>{switch(t.kind){case"interaction":return b(Ye,{children:[b("div",{className:B(["flex items-center gap-x-3"]),children:[b("span",{className:"text-[#6F6F78] text-xs font-medium",children:t.type==="click"?"Clicked component location":"Typed in component location"}),b("div",{className:"font-mono text-[#E4E4E7] flex items-center bg-[#27272A] pl-2 py-1 rounded-sm overflow-x-auto",children:t.componentPath.toReversed().map((n,r)=>b(Ye,{children:[b("span",{style:{lineHeight:"14px"},className:"text-[10px] whitespace-nowrap",children:n},n),r<t.componentPath.length-1&&b("span",{className:"text-[#6F6F78] mx-0.5",children:"â¹"})]}))})]}),b("div",{className:B(["flex items-center gap-x-3"]),children:[b("span",{className:"text-[#6F6F78] text-xs font-medium",children:"Total Time"}),b("span",{className:"text-[#E4E4E7] bg-[#27272A] px-1.5 py-1 rounded-sm text-xs",children:[on(t.timing).toFixed(0),"ms"]})]}),b("div",{className:B(["flex items-center gap-x-3"]),children:[b("span",{className:"text-[#6F6F78] text-xs font-medium",children:"Occurred"}),b("span",{className:"text-[#E4E4E7] bg-[#27272A] px-1.5 py-1 rounded-sm text-xs",children:`${((Date.now()-t.timestamp)/1e3).toFixed(0)}s ago`})]})]});case"dropped-frames":return b(Ye,{children:[b("div",{className:B(["flex items-center gap-x-3"]),children:[b("span",{className:"text-[#6F6F78] text-xs font-medium",children:"Total Time"}),b("span",{className:"text-[#E4E4E7] bg-[#27272A] px-1.5 py-1 rounded-sm text-xs",children:[on(t.timing).toFixed(0),"ms"]})]}),b("div",{className:B(["flex items-center gap-x-3"]),children:[b("span",{className:"text-[#6F6F78] text-xs font-medium",children:"Occurred"}),b("span",{className:"text-[#E4E4E7] bg-[#27272A] px-1.5 py-1 rounded-sm text-xs",children:`${((Date.now()-t.timestamp)/1e3).toFixed(0)}s ago`})]})]})}})})})},OH=J0(()=>{const e=xR(),[t,n]=Ie(e);Le(()=>{const y=setTimeout(()=>{n(e)},600);return()=>{clearTimeout(y)}},[e]);const r=ye.inspectState,o=r.value.kind==="inspecting",s=r.value.kind==="focused",[c,d]=Ie([]),f=Ft(()=>{switch(ye.inspectState.value.kind){case"inspecting":{dt.value={view:"none"},ye.inspectState.value={kind:"inspect-off"};return}case"focused":{dt.value={view:"inspector"},ye.inspectState.value={kind:"inspecting",hoveredDomElement:null};return}case"inspect-off":{dt.value={view:"none"},ye.inspectState.value={kind:"inspecting",hoveredDomElement:null};return}case"uninitialized":return}},[]),h=Ft(y=>{if(y.preventDefault(),y.stopPropagation(),!Ze.instrumentation)return;const _=!Ze.instrumentation.isPaused.value;Ze.instrumentation.isPaused.value=_;const w=Gi("react-scan-options");Un("react-scan-options",{...w,enabled:!_})},[]);Ou(()=>{ye.inspectState.value.kind==="uninitialized"&&(ye.inspectState.value={kind:"inspect-off"})});let g=null,m="#999";return o?(g=b(Ot,{name:"icon-inspect"}),m="#8e61e3"):s?(g=b(Ot,{name:"icon-focus"}),m="#8e61e3"):(g=b(Ot,{name:"icon-inspect"}),m="#999"),G0(()=>
3875{if(dt.value.view!=="notifications")return;const y=new Set(e.map(_=>_.id));d([...y.values()])},[e.length,dt.value.view]),b("div",{className:"flex max-h-9 min-h-9 flex-1 items-stretch overflow-hidden",children:[b("div",{className:"h-full flex items-center min-w-fit",children:b("button",{type:"button",id:"react-scan-inspect-element",title:"Inspect element",onClick:f,className:"button flex items-center justify-center h-full w-full pl-3 pr-2.5",style:{color:m},children:g})}),b("div",{className:"h-full flex items-center justify-center",children:b("button",{type:"button",id:"react-scan-notifications",title:"Notifications",onClick:()=>{switch(ye.inspectState.value.kind!=="inspect-off"&&(ye.inspectState.value={kind:"inspect-off"}),dt.value.view){case"inspector":{ye.inspectState.value={kind:"inspect-off"};const y=new Set(e.map(_=>_.id));d([...y.values()]),dt.value={view:"notifications"};return}case"notifications":{dt.value={view:"none"};return}case"none":{const y=new Set(e.map(_=>_.id));d([...y.values()]),dt.value={view:"notifications"};return}}},className:"button flex items-center justify-center h-full pl-2.5 pr-2.5",style:{color:m},children:b(GU,{events:t.filter(y=>!c.includes(y.id)).map(y=>Vu(y)==="high"),size:16,className:B(["text-[#999]",dt.value.view==="notifications"&&"text-[#8E61E3]"])})})}),b(_U,{checked:!Ze.instrumentation?.isPaused.value,onChange:h,className:"place-self-center",title:"Outline Re-renders"}),Ze.options.value.showFPS&&b(xU,{})]})}),NH=Ho(()=>ye.inspectState.value.kind==="inspecting"),DH=Ho(()=>B("relative","flex-1","flex flex-col","rounded-t-lg","overflow-hidden","opacity-100","transition-[opacity]",NH.value&&"opacity-0 duration-0 delay-0")),PH=Ho(()=>dt.value.view==="inspector"),LH=Ho(()=>dt.value.view==="notifications"),FH=()=>b("div",{className:B("flex flex-1 flex-col","overflow-hidden z-10","rounded-lg","bg-black","opacity-100","transition-[border-radius]","peer-hover/left:rounded-l-none","peer-hover/right:rounded-r-none","peer-hover/top:rounded-t-none","peer-hover/bottom:rounded-b-none"),children:[b("div",{className:DH,children:[b(bU,{}),b("div",{className:B("relative","flex-1 flex","text-white","bg-[#0A0A0A]","transition-opacity delay-150","overflow-hidden","border-b border-[#222]"),children:[b(Qk,{isOpen:PH,children:b(kj,{})}),b(Qk,{isOpen:LH,children:b(AH,{})})]})]}),b(OH,{})]}),Qk=({isOpen:e,children:t})=>b("div",{className:B("flex-1","opacity-0","overflow-y-auto overflow-x-hidden","transition-opacity delay-0","pointer-events-none",e.value&&"opacity-100 delay-150 pointer-events-auto"),children:b("div",{className:"absolute inset-0 flex",children:t})}),qf=(e,t,n)=>e+(t-e)*n,oy={frameInterval:1e3/60,speeds:{fast:.51,slow:.1,off:0}},Ls=ui&&window.devicePixelRatio||1,IH=()=>{const e=Ce(null),t=Ce(null),n=Ce(null),r=Ce(null),o=Ce(null),s=Ce(0),c=Ce(),d=Ce(new Map),f=Ce(!1),h=Ce(0),g=(E,R,A,q)=>{E.save(),E.strokeStyle="white",E.fillStyle="white",E.lineWidth=1.5;const te=q*.6,M=q*.5,U=R+(q-te)/2,Y=A;E.beginPath(),E.arc(U+te/2,Y+M/2,te/2,Math.PI,0,!1),E.stroke();const ne=q*.8,le=q*.5,fe=R+(q-ne)/2,pe=A+M/2;E.fillRect(fe,pe,ne,le),E.restore()},m=(E,R,A,q)=>{if(!q)return;const te=24,M=8,Y=(q?.type&&rn(q.type))??"Unknown";E.save(),E.font="12px system-ui, -apple-system, sans-serif";const le=E.measureText(Y).width,fe=A==="locked"?14:0,pe=A==="locked"?6:0,Te=le+M*2+fe+pe,Ee=R.left,Xe=R.top-te-4;if(E.fillStyle="rgb(37, 37, 38, .75)",E.beginPath(),E.roundRect(Ee,Xe,Te,te,3),E.fill(),A==="locked"){const yt=Ee+M,Or=Xe+(te-fe)/2+2;g(E,yt,Or,fe),r.current={x:yt,y:Or,width:fe,height:fe}}else r.current=null;E.fillStyle="white",E.textBaseline="middle";const Et=Ee+M+(A==="locked"?fe+pe:0);E.fillText(Y,Et,Xe+te/2),E.restore()},y=(E,R,A,q)=>{if(!n.current)return;const te=n.current;R.clearRect(0,0,E.width,E.height),R.strokeStyle="rgba(142, 97, 227, 0.5)",R.fillStyle="rgba(173, 97, 230, 0.10)",A==="locked"?R.setLineDash([]):R.setLineDash([4]),R.lineWidth=1,R.fillRect(te.left,te.top,te.width,te.height),R.strokeRect(te.left,te.top,te.width,te.height),m(R,te,A,q)},_=(E,R,A,q,te,M)=>{const U=Ze.options.value.animationSpeed,Y=oy.speeds[U]??oy.speeds.off,ne=le=>{if(le-h.current<oy.frameInterval){s.current=requestAnimationFrame(ne);return}if(h.current=le,!n.current){cancelAnimationFrame(s.current);return}n.current={left:qf(n.current.left,A.left,Y),top:qf(n.current.top,A.to
3875p,Y),width:qf(n.current.width,A.width,Y),height:qf(n.current.height,A.height,Y)},y(E,R,q,te),Math.abs(n.current.left-A.left)>.1||Math.abs(n.current.top-A.top)>.1||Math.abs(n.current.width-A.width)>.1||Math.abs(n.current.height-A.height)>.1?s.current=requestAnimationFrame(ne):(n.current=A,y(E,R,q,te),cancelAnimationFrame(s.current),R.restore())};cancelAnimationFrame(s.current),clearTimeout(c.current),s.current=requestAnimationFrame(ne),c.current=setTimeout(()=>{cancelAnimationFrame(s.current),n.current=A,y(E,R,q,te),R.restore()},1e3)},w=(E,R,A,q,te)=>{if(R.save(),!n.current){n.current=A,y(E,R,q,te),R.restore();return}_(E,R,A,q,te)},S=async(E,R,A,q)=>{if(!E||!R||!A)return;const{parentCompositeFiber:te}=bo(E),M=await Tj(E);!te||!M||w(R,A,M,q,te)},T=()=>{for(const E of d.current.values())E?.()},k=E=>{const R=E.getContext("2d");R&&R.clearRect(0,0,E.width,E.height),n.current=null,r.current=null,o.current=null,E.classList.remove("fade-in"),f.current=!1},$=E=>{if(!e.current||f.current)return;const R=q=>{!e.current||q.propertyName!=="opacity"||!f.current||(e.current.removeEventListener("transitionend",R),k(e.current),E?.())},A=d.current.get("fade-out");A&&(A(),d.current.delete("fade-out")),e.current.addEventListener("transitionend",R),d.current.set("fade-out",()=>{e.current?.removeEventListener("transitionend",R)}),f.current=!0,e.current.classList.remove("fade-in"),requestAnimationFrame(()=>{e.current?.classList.add("fade-out")})},z=()=>{e.current&&(f.current=!1,e.current.classList.remove("fade-out"),requestAnimationFrame(()=>{e.current?.classList.add("fade-in")}))},N=E=>{E!==o.current&&(o.current=E,Fb.has(E.tagName)?$():z(),ye.inspectState.value={kind:"inspecting",hoveredDomElement:E})},O=()=>{!n.current||!e.current||f.current||$()},I=Y4(E=>{if(ye.inspectState.peek().kind!=="inspecting"||!t.current)return;t.current.style.pointerEvents="none";const A=document.elementFromPoint(E?.clientX??0,E?.clientY??0);if(t.current.style.removeProperty("pointer-events"),clearTimeout(c.current),A&&A!==e.current){const{parentCompositeFiber:q}=bo(A);if(q){const te=Jh(q);if(te){N(te);return}}}O()},32),j=(E,R)=>{const A=r.current;if(!A)return!1;const q=R.getBoundingClientRect(),te=R.width/q.width,M=R.height/q.height,U=(E.clientX-q.left)*te,Y=(E.clientY-q.top)*M,ne=U/Ls,le=Y/Ls;return ne>=A.x&&ne<=A.x+A.width&&le>=A.y&&le<=A.y+A.height},L=E=>{E.kind==="focused"&&(ye.inspectState.value={kind:"inspecting",hoveredDomElement:E.focusedDomElement})},G=E=>{const R=["react-scan-inspect-element","react-scan-power"];if(E.target instanceof HTMLElement&&R.includes(E.target.id))return;const A=o.current?.tagName;if(A&&Fb.has(A))return;E.preventDefault(),E.stopPropagation();const q=o.current??document.elementFromPoint(E.clientX,E.clientY);if(!q)return;const te=E.composedPath().at(0);if(te instanceof HTMLElement&&R.includes(te.id)){const Y=new MouseEvent(E.type,E);Y.__reactScanSyntheticEvent=!0,te.dispatchEvent(Y);return}const{parentCompositeFiber:M}=bo(q);if(!M)return;const U=Jh(M);if(!U){o.current=null,ye.inspectState.value={kind:"inspect-off"};return}ye.inspectState.value={kind:"focused",focusedDomElement:U,fiber:M}},X=E=>{if(E.__reactScanSyntheticEvent)return;const R=ye.inspectState.peek(),A=e.current;if(!(!A||!t.current)){if(j(E,A)){E.preventDefault(),E.stopPropagation(),L(R);return}R.kind==="inspecting"&&G(E)}},D=E=>{if(E.key!=="Escape")return;const R=ye.inspectState.peek();if(e.current&&document.activeElement?.id!=="react-scan-root"&&(dt.value={view:"none"},R.kind==="focused"||R.kind==="inspecting"))switch(E.preventDefault(),E.stopPropagation(),R.kind){case"focused":{z(),n.current=null,o.current=R.focusedDomElement,ye.inspectState.value={kind:"inspecting",hoveredDomElement:R.focusedDomElement};break}case"inspecting":{$(()=>{Mp.value=!1,ye.inspectState.value={kind:"inspect-off"}});break}}},Z=(E,R,A)=>{d.current.get(E.kind)?.(),t.current&&E.kind!=="inspecting"&&(t.current.style.pointerEvents="none"),s.current&&cancelAnimationFrame(s.current);let q;switch(E.kind){case"inspect-off":$();return;case"inspecting":S(E.hoveredDomElement,R,A,"inspecting");break;case"focused":if(!E.focusedDomElement)return;o.current!==E.focusedDomElement&&(o.current=E.focusedDomElement),dt.value={view:"inspector"},S(E.focusedDomElement,R,A,"locked"),q=ye.lastReportTime.subscribe(()=>{if(s.current&&n.current){const{parentCompositeFiber:te}=bo(E.focusedDomElement);te&&S(E.focusedDomElement,R,A,"locked")}}),q&&d.current.set(E.kind,q);break}},ce=(E,R)=>{const A=E.getBoundingClientRect();E.width=A.width*Ls,E.height=A.height*Ls,R.scale(Ls,Ls),R.save()},H=()=>{const E=ye.inspectState.peek(),R=e.current;if(!R)return;const A=R?.getContext("2d");A&&(cancelAnimationFrame(s.current),clearTimeout(c.current),ce(R,A),n.current=null,E.kind==="focused"&&E.focusedDomElement?S(E.focusedDomElement,R,A,"locked"):E.kind==="inspecting"&&E.hoveredDomElement&&S(E.hoveredDomElement,R,A,"inspecting"))},ae=E=>{const R=ye.inspectState.peek(),A=e.current;A&&(R.kind==="inspecting"||j(E,A))&&(E.preventDefault(),E.stopPropagation(),E.stopImmediatePropagation())};return Le(()=>{const E=e.current;if(!E)return;const R=E?.getContext("2d");if(!R)return;ce(E,R);const A=ye.inspectState.subscribe(q=>{Z(q,E,R)});return window.addEventListener("scroll",H,{passive:!0}),window.addEventListener("resize",H,{passive:!0}),document.addEventListener("pointermove",I,{passive:!0,capture:!0}),document.addEventListener("pointerdown",ae,{capture:!0}),document.addEventListener("click",X,{capture:!0}),document.addEventListener("keydown",D,{capture:!0}),()=>{T(),A(),window.removeEventListener("scroll",H),window.removeEventListener("resize",H),document.removeEventListener("pointermove",I,{capture:!0}),document.removeEventListener("click",X,{capture:!0}),document.removeEventListener("pointerdown",ae,{capture:!0}),document.removeEventListener("keydown",D,{capture:!0}),s.current&&cancelAnimationFrame(s.current),clearTimeout(c.current)}},[]),b(Ye,{children:[b("div",{ref:t,className:B("fixed top-0 left-0 w-screen h-screen","z-[214748365]"),style:{pointerEvents:"none"}}),b("canvas",{ref:e,dir:"ltr",className:B("react-scan-inspector-overlay","fixed top-0 left-0 w-screen h-screen","pointer-events-none","z-[214748367]")})]})},jH=class{constructor(e,t){this.width=e,this.height=t,this.maxWidth=e-ze*2,this.maxHeight=t-ze*2}rightEdge(e){return this.width-e-ze}bottomEdge(e){return this.height-e-ze}isFullWidth(e){return e>=this.maxWidth}isFullHeight(e){return e>=this.maxHeight}},Fs,Lu=()=>{const e=window.innerWidth,t=window.innerHeight;return Fs&&Fs.width===e&&Fs.height===t||(Fs=new jH(e,t)),Fs},UH=(e,t,n,r,o)=>{if(n){if(e==="top-left")return"bottom-right";if(e==="top-right")return"bottom-left";if(e==="bottom-left")return"top-right";if(e==="bottom-right")return"top-left";const[s,c]=t.split("-");if(e==="left")return`${s}-right`;if(e==="right")return`${s}-left`;if(e==="top")return`bottom-${c}`;if(e==="bottom")return`top-${c}`}if(r){if(e==="left")return`${t.split("-")[0]}-right`;if(e==="right")return`${t.split("-")[0]}-left`}if(o){if(e==="top")return`bottom-${t.split("-")[1]}`;if(e==="bottom")return`top-${t.split("-")[1]}`}return t},hu=(e,t,n)=>{const r=getComputedStyle(document.body).direction==="rtl",o=window.innerWidth,s=window.innerHeight,c=t===Yt.width,d=c?t:Math.min(t,o-ze*2),f=c?n:Math.min(n,s-ze*2);let h,g,m=ze,y=o-d-ze,_=ze,w=s-f-ze;switch(e){case"top-right":h=r?-m:y,g=_;break;case"bottom-right":h=r?-m:y,g=w;break;case"bottom-left":h=r?-y:m,g=w;break;case"top-left":h=r?-y:m,g=_;break;default:h=m,g=_;break}return c&&(r?h=Math.min(-m,Math.max(h,-y)):h=Math.max(m,Math.min(h,y)),g=Math.max(_,Math.min(g,w))),{x:h,y:g}},HH=(e,t)=>{const[n,r]=t.split("-");return e!==n&&e!==r},BH=(e,t,n,r)=>n&&r?!0:!n&&!r?HH(e,t):n?e!==t.split("-")[0]:r?e!==t.split("-")[1]:!1,Vf=(e,t,n
3875)=>{const r=n?Yt.width:Yt.initialHeight,o=n?Lu().maxWidth:Lu().maxHeight,s=e+t;return Math.min(Math.max(r,s),o)},qH=(e,t,n,r,o)=>{const s=getComputedStyle(document.body).direction==="rtl",c=window.innerWidth-ze*2,d=window.innerHeight-ze*2;let f=t.width,h=t.height,g=n.x,m=n.y;if(s&&e.includes("right")){const T=-n.x+t.width-ze,k=Math.min(t.width+r,T);f=Math.min(c,Math.max(Yt.width,k)),g=n.x+(f-t.width)}if(s&&e.includes("left")){const T=window.innerWidth-n.x-ze,k=Math.min(t.width-r,T);f=Math.min(c,Math.max(Yt.width,k))}if(!s&&e.includes("right")){const T=window.innerWidth-n.x-ze,k=Math.min(t.width+r,T);f=Math.min(c,Math.max(Yt.width,k))}if(!s&&e.includes("left")){const T=n.x+t.width-ze,k=Math.min(t.width-r,T);f=Math.min(c,Math.max(Yt.width,k)),g=n.x-(f-t.width)}if(e.includes("bottom")){const T=window.innerHeight-n.y-ze,k=Math.min(t.height+o,T);h=Math.min(d,Math.max(Yt.initialHeight,k))}if(e.includes("top")){const T=n.y+t.height-ze,k=Math.min(t.height-o,T);h=Math.min(d,Math.max(Yt.initialHeight,k)),m=n.y-(h-t.height)}let y=ze,_=window.innerWidth-ze-f,w=ze,S=window.innerHeight-ze-h;return s?g=Math.min(-y,Math.max(g,-_)):g=Math.max(y,Math.min(g,_)),m=Math.max(w,Math.min(m,S)),{newSize:{width:f,height:h},newPosition:{x:g,y:m}}},VH=e=>{const t=Lu(),n={"top-left":Math.hypot(e.x,e.y),"top-right":Math.hypot(t.maxWidth-e.x,e.y),"bottom-left":Math.hypot(e.x,t.maxHeight-e.y),"bottom-right":Math.hypot(t.maxWidth-e.x,t.maxHeight-e.y)};let r="top-left";for(const o in n)n[o]<n[r]&&(r=o);return r},GH=(e,t,n,r,o=100)=>{const s=n!==void 0?e-n:0,c=r!==void 0?t-r:0,d=window.innerWidth/2,f=window.innerHeight/2,h=s>o,g=s<-o,m=c>o,y=c<-o;if(h||g){const _=t>f;return h?_?"bottom-right":"top-right":_?"bottom-left":"top-left"}if(m||y){const _=e>d;return m?_?"bottom-right":"bottom-left":_?"top-right":"top-left"}return e>d?t>f?"bottom-right":"top-right":t>f?"bottom-left":"top-left"},Gf=({position:e})=>{const t=Ce(null),n=Ce(null),r=Ce(null),o=Ce(null);Le(()=>{const d=t.current;if(!d)return;const f=()=>{d.classList.remove("pointer-events-none");const m=ye.inspectState.value.kind==="focused",y=dt.value.view!=="none";(m||y)&&BH(e,_e.value.corner,_e.value.dimensions.isFullWidth,_e.value.dimensions.isFullHeight)?d.classList.remove("hidden","pointer-events-none","opacity-0"):d.classList.add("hidden","pointer-events-none","opacity-0")},h=_e.subscribe(m=>{n.current!==null&&r.current!==null&&o.current!==null&&m.dimensions.width===n.current&&m.dimensions.height===r.current&&m.corner===o.current||(f(),n.current=m.dimensions.width,r.current=m.dimensions.height,o.current=m.corner)}),g=ye.inspectState.subscribe(()=>{f()});return()=>{h(),g(),n.current=null,r.current=null,o.current=null}},[]);const s=Ft(d=>{d.preventDefault(),d.stopPropagation();const f=Nb.value;if(!f)return;const h=f.style,{dimensions:g}=_e.value,m=d.clientX,y=d.clientY,_=g.width,w=g.height,S=g.position;_e.value={..._e.value,dimensions:{...g,isFullWidth:!1,isFullHeight:!1,width:_,height:w,position:S}};let T=null;const k=z=>{T||(h.transition="none",T=requestAnimationFrame(()=>{const{newSize:N,newPosition:O}=qH(e,{width:_,height:w},S,z.clientX-m,z.clientY-y);h.transform=`translate3d(${O.x}px, ${O.y}px, 0)`,h.width=`${N.width}px`,h.height=`${N.height}px`;const I=Math.floor(N.width-Ur/2),j=_e.value.componentsTree.width,L=Math.min(I,Math.max(Ur,j));_e.value={..._e.value,dimensions:{isFullWidth:!1,isFullHeight:!1,width:N.width,height:N.height,position:O},componentsTree:{..._e.value.componentsTree,width:L}},T=null}))},$=()=>{T&&(cancelAnimationFrame(T),T=null),document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",$);const{dimensions:z,corner:N}=_e.value,O=Lu(),I=O.isFullWidth(z.width),j=O.isFullHeight(z.height),L=I&&j;let G=N;(L||I||j)&&(G=VH(z.position));const X=hu(G,z.width,z.height),D=()=>{f.removeEventListener("transitionend",D)};f.addEventListener("transitionend",D),h.transform=`translate3d(${X.x}px, ${X.y}px, 0)`,_e.value={..._e.value,corner:G,dimensions:{isFullWidth:I,isFullHeight:j,width:z.width,height:z.height,position:X},lastDimensions:{isFullWidth:I,isFullHeight:j,width:z.width,height:z.height,position:X}},Un(Bi,{corner:G,dimensions:_e.value.dimensions,lastDimensions:_e.value.lastDimensions,componentsTree:_e.value.componentsTree})};document.addEventListener("pointermove",k,{passive:!0}),document.addEventListener("pointerup",$)},[]),c=Ft(d=>{d.preventDefault(),d.stopPropagation();const f=Nb.value;if(!f)return;const h=f.style,{dimensions:g,corner:m}=_e.value,y=Lu(),_=y.isFullWidth(g.width),w=y.isFullHeight(g.height),S=_&&w,T=(_||w)&&!S;let k=g.width,$=g.height;const z=UH(e,m,S,_,w);e==="left"||e==="right"?(k=_?g.width:y.maxWidth,T&&(k=_?Yt.width:y.maxWidth)):($=w?g.height:y.maxHeight,T&&($=w?Yt.initialHeight:y.maxHeight)),S&&(e==="left"||e==="right"?k=Yt.width:$=Yt.initialHeight);const N=hu(z,k,$),O={isFullWidth:y.isFullWidth(k),isFullHeight:y.isFullHeight($),width:k,height:$,position:N},I=Math.floor(k-Yt.width/2),j=_e.value.componentsTree.width,L=Math.floor(k*.3),G=_?Ur:(e==="left"||e==="right")&&!_?Math.min(I,Math.max(Ur,L)):Math.min(I,Math.max(Ur,j));requestAnimationFrame(()=>{_e.value={corner:z,dimensions:O,lastDimensions:g,componentsTree:{..._e.value.componentsTree,width:G}},h.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",h.width=`${k}px`,h.height=`${$}px`,h.transform=`translate3d(${N.x}px, ${N.y}px, 0)`}),Un(Bi,{corner:z,dimensions:O,lastDimensions:g,componentsTree:{..._e.value.componentsTree,width:G}})},[]);return b("div",{ref:t,onPointerDown:s,onDblClick:c,className:B("absolute z-50","flex items-center justify-center","group","transition-colors select-none","peer",{"resize-left peer/left":e==="left","resize-right peer/right z-10":e==="right","resize-top peer/top":e==="top","resize-bottom peer/bottom":e==="bottom"}),children:b("span",{className:"resize-line-wrapper",children:b("span",{className:"resize-line",children:b(Ot,{name:"icon-ellipsis",size:18,className:B("text-neutral-400",(e==="left"||e==="right")&&"rotate-90")})})})})},Jk={horizontal:{width:20,height:48},vertical:{width:48,height:20}},YH=()=>{const e=Ce(null),t=Ce(!1),n=Ce(0),r=Ce(0),o=Ce(!1),s=Ft((y=!0)=>
3875{if(!e.current)return;const{corner:_}=_e.value;let w,S;if(er.value){const G=er.value.orientation||"horizontal",X=Jk[G];w=X.width,S=X.height}else if(t.current){const G=_e.value.lastDimensions;w=Vf(G.width,0,!0),S=Vf(G.height,0,!1),o.current&&(o.current=!1)}else w=n.current,S=r.current;let k=hu(_,w,S);if(er.value){const{corner:G,orientation:X="horizontal"}=er.value,D=Jk[X];switch(G){case"top-left":k=X==="horizontal"?{x:-1,y:ze}:{x:ze,y:-1};break;case"bottom-left":k=X==="horizontal"?{x:-1,y:window.innerHeight-D.height-ze}:{x:ze,y:window.innerHeight-D.height+1};break;case"top-right":k=X==="horizontal"?{x:window.innerWidth-D.width+1,y:ze}:{x:window.innerWidth-D.width-ze,y:-1};break;case"bottom-right":default:k=X==="horizontal"?{x:window.innerWidth-D.width+1,y:window.innerHeight-D.height-ze}:{x:window.innerWidth-D.width-ze,y:window.innerHeight-D.height+1};break}}const $=w<Yt.width||S<Yt.initialHeight,z=y&&!$,N=e.current,O=N.style;let I=null;const j=()=>{qv(),N.removeEventListener("transitionend",j),I&&(cancelAnimationFrame(I),I=null)};N.addEventListener("transitionend",j),O.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",I=requestAnimationFrame(()=>{O.width=`${w}px`,O.height=`${S}px`,O.transform=`translate3d(${k.x}px, ${k.y}px, 0)`,I=null});const L={isFullWidth:w>=window.innerWidth-ze*2,isFullHeight:S>=window.innerHeight-ze*2,width:w,height:S,position:k};_e.value={corner:_,dimensions:L,lastDimensions:t?_e.value.lastDimensions:w>n.current?L:_e.value.lastDimensions,componentsTree:_e.value.componentsTree},z&&Un(Bi,{corner:_e.value.corner,dimensions:_e.value.dimensions,lastDimensions:_e.value.lastDimensions,componentsTree:_e.value.componentsTree}),qv()},[]),c=Ft(y=>{if(y.preventDefault(),!e.current||y.target.closest("button"))return;const _=e.current,w=_.style,{dimensions:S}=_e.value,T=y.clientX,k=y.clientY,$=S.position.x,z=S.position.y;let N=$,O=z,I=null,j=!1,L=T,G=k;const X=Z=>{I||(j=!0,L=Z.clientX,G=Z.clientY,I=requestAnimationFrame(()=>{const ce=L-T,H=G-k;N=Number($)+ce,O=Number(z)+H,w.transition="none",w.transform=`translate3d(${N}px, ${O}px, 0)`;const ae=N+S.width,E=O+S.height,R=Math.max(0,-N),A=Math.max(0,ae-window.innerWidth),q=Math.max(0,-O),te=Math.max(0,E-window.innerHeight),M=Math.min(S.width,R+A),U=Math.min(S.height,q+te),Y=M*S.height+U*S.width-M*U,ne=S.width*S.height;let le=Y>ne*.35;if(!le&&Ze.options.value.showFPS){const fe=N+S.width,pe=fe-100;le=fe<=0||pe>=window.innerWidth||O+S.height<=0||O>=window.innerHeight}if(le){const fe=N+S.width/2,pe=O+S.height/2,Te=window.innerWidth/2,Ee=window.innerHeight/2;let Xe;fe<Te?Xe=pe<Ee?"top-left":"bottom-left":Xe=pe<Ee?"top-right":"bottom-right";let Et;const yt=Math.max(R,A),Or=Math.max(q,te);Et=yt>Or?"horizontal":"vertical",_e.value={..._e.value,corner:Xe,lastDimensions:{...S,position:hu(Xe,S.width,S.height)}};const _n={corner:Xe,orientation:Et};er.value=_n,Un(oh,_n),Un(Bi,_e.value),s(!1),document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",D),I&&(cancelAnimationFrame(I),I=null)}I=null}))},D=()=>{if(!_)return;I&&(cancelAnimationFrame(I),I=null),document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",D);const Z=Math.abs(L-T),ce=Math.abs(G-k),H=Math.sqrt(Z*Z+ce*ce);if(!j||H<60)return;const ae=GH(L,G,T,k,ye.inspectState.value.kind==="focused"?80:40);if(ae===_e.value.corner){w.transition="transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)";const A=_e.value.dimensions.position;requestAnimationFrame(()=>{w.transform=`translate3d(${A.x}px, ${A.y}px, 0)`});return}const E=hu(ae,S.width,S.height);if(N===$&&O===z)return;const R=()=>{w.transition="none",qv(),_.removeEventListener("transitionend",R),I&&(cancelAnimationFrame(I),I=null)};_.addEventListener("transitionend",R),w.transition="transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",requestAnimationFrame(()=>{w.transform=`translate3d(${E.x}px, ${E.y}px, 0)`}),_e.value={corner:ae,dimensions:{isFullWidth:S.isFullWidth,isFullHeight:S.isFullHeight,width:S.width,height:S.height,position:E},lastDimensions:_e.value.lastDimensions,componentsTree:_e.value.componentsTree},Un(Bi,{corner:ae,dimensions:_e.value.dimensions,lastDimensions:_e.value.lastDimensions,componentsTree:_e.value.componentsTree})};document.addEventListener("pointermove",X),document.addEventListener("pointerup",D)},[]),d=Ft(y=>{if(y.preventDefault(),!e.current||!er.value)return;const{corner:_,orientation:w="horizontal"}=er.value,S=y.clientX,T=y.clientY;let k=null,$=!1;const z=50,N=I=>{if($||k)return;const j=I.clientX-S,L=I.clientY-T;let G=!1;if(w==="horizontal"?(_.endsWith("left")&&j>z||_.endsWith("right")&&j<-z)&&(G=!0):(_.startsWith("top")&&L>z||_.startsWith("bottom")&&L<-z)&&(G=!0),G){if($=!0,er.value=null,Un(oh,null),n.current===0&&e.current)requestAnimationFrame(()=>{if(e.current){e.current.style.width="min-content";const X=e.current.offsetWidth;n.current=X||300;const D=_e.value.lastDimensions,Z=Vf(D.width,0,!0),ce=Vf(D.height,0,!1);
3875let H=I.clientX-Z/2,ae=I.clientY-ce/2;H=Math.max(ze,Math.min(H,window.innerWidth-Z-ze)),ae=Math.max(ze,Math.min(ae,window.innerHeight-ce-ze)),_e.value={..._e.value,dimensions:{..._e.value.dimensions,position:{x:H,y:ae}}},s(!0);const E=Gi(Ns);dt.value=E||{view:"none"},setTimeout(()=>{if(e.current){const R=new PointerEvent("pointerdown",{clientX:I.clientX,clientY:I.clientY,pointerId:I.pointerId,bubbles:!0});e.current.dispatchEvent(R)}},100)}});else{s(!0);const X=Gi(Ns);dt.value=X||{view:"none"}}document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",O)}},O=()=>{document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",O)};document.addEventListener("pointermove",N),document.addEventListener("pointerup",O)},[]);Le(()=>{if(!e.current)return;wk(Ns),er.value?(r.current=36,n.current=0):(e.current.style.width="min-content",r.current=36,n.current=e.current.offsetWidth),e.current.style.maxWidth=`calc(100vw - ${ze*2}px)`,e.current.style.maxHeight=`calc(100vh - ${ze*2}px)`,s(),ye.inspectState.value.kind!=="focused"&&!er.value&&!o.current&&(_e.value={..._e.value,dimensions:{isFullWidth:!1,isFullHeight:!1,width:n.current,height:r.current,position:_e.value.dimensions.position}}),Nb.value=e.current;const y=_e.subscribe(T=>{if(!e.current)return;const{x:k,y:$}=T.dimensions.position,{width:z,height:N}=T.dimensions,O=e.current;requestAnimationFrame(()=>{O.style.transform=`translate3d(${k}px, ${$}px, 0)`,O.style.width=`${z}px`,O.style.height=`${N}px`})}),_=dt.subscribe(T=>{t.current=T.view!=="none",s(),er.value||(T.view!=="none"?Un(Ns,T):wk(Ns))}),w=ye.inspectState.subscribe(T=>{t.current=T.kind==="focused",s()}),S=()=>{s(!0)};return window.addEventListener("resize",S,{passive:!0}),()=>{window.removeEventListener("resize",S),_(),w(),y(),Un(Bi,{...Jr,corner:_e.value.corner})}},[]);const[f,h]=Ie(!1);Le(()=>{h(!0)},[]);const g=er.value;let m="";if(g){const{orientation:y="horizontal",corner:_}=g;y==="horizontal"?m=_?.endsWith("right")?"rotate-180":"":m=_?.startsWith("bottom")?"-rotate-90":"rotate-90"}return b(Ye,{children:[b(IH,{}),b(u_.Provider,{value:e.current,children:b("div",{id:"react-scan-toolbar",dir:"ltr",ref:e,onPointerDown:g?d:c,className:B("fixed inset-0",g?(()=>{const{orientation:y="horizontal",corner:_}=g;return y==="horizontal"?_?.endsWith("right")?"rounded-tl-lg rounded-bl-lg shadow-lg":"rounded-tr-lg rounded-br-lg shadow-lg":_?.startsWith("bottom")?"rounded-tl-lg rounded-tr-lg shadow-lg":"rounded-bl-lg rounded-br-lg shadow-lg"})():"rounded-lg shadow-lg","flex flex-col","font-mono text-[13px]","user-select-none","opacity-0",g?"cursor-pointer":"cursor-move","z-[124124124124]","animate-fade-in animation-duration-300 animation-delay-300","will-change-transform","[touch-action:none]"),children:g?b("button",{type:"button",onClick:()=>{er.value=null,Un(oh,null),n.current===0&&e.current&&requestAnimationFrame(()=>{if(e.current){e.current.style.width="min-content";const _=e.current.offsetWidth;n.current=_||300,s(!0)}});const y=Gi(Ns);dt.value=y||{view:"none"}},className:"flex items-center justify-center w-full h-full text-white",title:"Expand toolbar",children:b(Ot,{name:"icon-chevron-right",size:16,className:B("transition-transform",m)})}):b(Ye,{children:[b(Gf,{position:"top"}),b(Gf,{position:"bottom"}),b(Gf,{position:"left"}),b(Gf,{position:"right"}),b(FH,{})]})})})]})},u_=$4(null),ZH=()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",style:"display: none;",children:[b("title",{children:"React Scan Icons"}),b("symbol",{id:"icon-inspect",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"}),b("path",{d:"M5 3a2 2 0 0 0-2 2"}),b("path",{d:"M19 3a2 2 0 0 1 2 2"}),b("path",{d:"M5 21a2 2 0 0 1-2-2"}),b("path",{d:"M9 3h1"}),b("path",{d:"M9 21h2"}),b("path",{d:"M14 3h1"}),b("path",{d:"M3 9v1"}),b("path",{d:"M21 9v2"}),b("path",{d:"M3 14v1"})]}),b("symbol",{id:"icon-focus",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.
3875067 3.443a.5.5 0 0 1-.943.033z"}),b("path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"})]}),b("symbol",{id:"icon-next",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:b("path",{d:"M6 9h6V5l7 7-7 7v-4H6V9z"})}),b("symbol",{id:"icon-previous",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:b("path",{d:"M18 15h-6v4l-7-7 7-7v4h6v6z"})}),b("symbol",{id:"icon-close",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),b("symbol",{id:"icon-replay",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"}),b("circle",{cx:"12",cy:"12",r:"1"}),b("path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0"})]}),b("symbol",{id:"icon-ellipsis",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("circle",{cx:"12",cy:"12",r:"1"}),b("circle",{cx:"19",cy:"12",r:"1"}),b("circle",{cx:"5",cy:"12",r:"1"})]}),b("symbol",{id:"icon-copy",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),b("symbol",{id:"icon-check",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:b("path",{d:"M20 6 9 17l-5-5"})}),b("symbol",{id:"icon-chevron-right",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:b("path",{d:"m9 18 6-6-6-6"})}),b("symbol",{id:"icon-settings",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),b("circle",{cx:"12",cy:"12",r:"3"})]}),b("symbol",{id:"icon-flame",viewBox:"0 0 24 24",children:b("path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"})}),b("symbol",{id:"icon-function",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),b("path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3"}),b("path",{d:"M9 11.2h5.7"})]}),b("symbol",{id:"icon-triangle-alert",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),b("path",{d:"M12 9v4"}),b("path",{d:"M12 17h.01"})]}),b("symbol",{id:"icon-gallery-horizontal-end",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"M2 7v10"}),b("path",{d:"M6 5v14"}),b("rect",{width:"12",height:"18",x:"10",y:"3",rx:"2"})]}),b("symbol",{id:"icon-search",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("circle",{cx:"11",cy:"11",r:"8"}),b("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),b("symbol",{id:"icon-lock",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),b("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),b("symbol",{id:"icon-lock-open",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),b("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"})]}),b("symbol",{id:"icon-sanil",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[b("path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0"}),b("circle",{cx:"10",cy:"13",r:"8"}),b("path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6"}),b("path",{d:"M18 3 19.1 5.2"})]})]}),XH=class extends $r{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.handleReset=()=>{this.setState({hasError:!1,error:null})}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?b("div",{className:"fixed bottom-4 right-4 z-[124124124124]",children:b("div",{className:"p-3 bg-black rounded-lg shadow-lg w-80",children:[b("div",{className:"flex items-center gap-2 mb-2 text-red-400 text-sm font-medium",children:[b(Ot,{name:"icon-flame",className:"text-red-500",size:14}),"React Scan ran into a problem"]}),b("div",{className:"p-2 bg-black rounded font-mono text-xs text-red-300 mb-3 break-words",children:this.state.error?.message||JSON.stringify(this.state.error)}),b("button",{type:"button",onClick:this.handleReset,className:"px-3 py-1.5 bg-red-500 hover:bg-red-600 text-white rounded text-xs font-medium transition-colors flex items-center justify-center gap-1.5",children:"Restart"})]})}):this.props.children}},WH=e=>{const t=document.createElement("div");t.id="react-scan-toolbar-root",window.__REACT_SCAN_TOOLBAR_CONTAINER__=t,e.appendChild(t),uu(b(XH,{children:b(Ye,{children:[b(ZH,{}),b(YH,{})]})}),t);const n=t.remove.bind(t);return t.remove=()=>{window.__REACT_SCAN_TOOLBAR_CONTAINER__=void 0,t.hasChildNodes()&&(uu(null,t),uu(null,t)),n()},t},KH={version:"0.4.3"},ho=null,Uc=null,QH=()=>
3875{if(ho&&Uc)return{rootContainer:ho,shadowRoot:Uc};ho=document.createElement("div"),ho.id="react-scan-root",Uc=ho.attachShadow({mode:"open"});const e=document.createElement("style");return e.textContent=mU,Uc.appendChild(e),document.documentElement.appendChild(ho),{rootContainer:ho,shadowRoot:Uc}},ye={wasDetailsOpen:Zt(!0),isInIframe:Zt(ui&&window.self!==window.top),inspectState:Zt({kind:"uninitialized"}),monitor:Zt(null),fiberRoots:new Set,reportData:new Map,legacyReportData:new Map,lastReportTime:Zt(0),interactionListeningForRenders:null,changesListeners:new Map},Ze={instrumentation:null,componentAllowList:null,options:Zt({enabled:!0,log:!1,showToolbar:!0,animationSpeed:"fast",dangerouslyForceRunInProduction:!1,showFPS:!0,showNotificationCount:!0,allowInIframe:!1}),runInAllEnvironments:!1,onRender:null,scheduledOutlines:new Map,activeOutlines:new Map,Store:ye,version:KH.version};ui&&window.__REACT_SCAN_EXTENSION__&&(window.__REACT_SCAN_VERSION__=Ze.version);function JH(e){return e in Ze.options.value}var SR=e=>{const t=[],n={};for(const r in e){if(!JH(r))continue;const o=e[r];switch(r){case"enabled":case"log":case"showToolbar":case"showNotificationCount":case"dangerouslyForceRunInProduction":case"showFPS":case"allowInIframe":typeof o!="boolean"?t.push(`- ${r} must be a boolean. Got "${o}"`):n[r]=o;break;case"animationSpeed":["slow","fast","off"].includes(o)?n[r]=o:t.push(`- Invalid animation speed "${o}". Using default "fast"`);break;case"onCommitStart":typeof o!="function"?t.push(`- ${r} must be a function. Got "${o}"`):n.onCommitStart=o;break;case"onCommitFinish":typeof o!="function"?t.push(`- ${r} must be a function. Got "${o}"`):n.onCommitFinish=o;break;case"onRender":typeof o!="function"?t.push(`- ${r} must be a function. Got "${o}"`):n.onRender=o;break;case"onPaintStart":case"onPaintFinish":typeof o!="function"?t.push(`- ${r} must be a function. Got "${o}"`):n[r]=o;break;default:t.push(`- Unknown option "${r}"`)}}return t.length>0&&console.warn(`[React Scan] Invalid options: 3876${t.join(` 3877`)}`),n},eB=e=>{try{const t=SR(e);if(Object.keys(t).length===0)return;const n="showToolbar"in t&&t.showToolbar!==void 0,r={...Ze.options.value,...t},{instrumentation:o}=Ze;o&&"enabled"in t&&(o.isPaused.value=t.enabled===!1),Ze.options.value=r;try{const s=Gi("react-scan-options")?.enabled;typeof s=="boolean"&&(r.enabled=s)}catch(s){Ze.options.value._debug==="verbose"&&console.error("[React Scan Internal Error]","Failed to create notifications outline canvas",s)}return Un("react-scan-options",r),n&&ER(!!r.showToolbar),r}catch(t){Ze.options.value._debug==="verbose"&&console.error("[React Scan Internal Error]","Failed to create notifications outline canvas",t)}},tB=()=>Ze.options,Yf=null,eT,zp=()=>{if(Yf!==null)return Yf;eT??=zo();for(const e of eT.renderers.values())EI(e)==="production"&&(Yf=!0);return Yf},nB=()=>{try{if(!ui||!Ze.runInAllEnvironments&&zp()&&!Ze.options.value.dangerouslyForceRunInProduction)return;const e=Gi("react-scan-options");if(e){const n=SR(e);Object.keys(n).length>0&&(Ze.options.value={...Ze.options.value,...n})}const t=tB();pU(()=>{ER(!!t.value.showToolbar)}),!ye.monitor.value&&ui&&setTimeout(()=>{kI()||console.error("[React Scan] Failed to load. Must import React Scan before React runs.")},5e3)}catch(e){Ze.options.value._debug==="verbose"&&console.error("[React Scan Internal Error]","Failed to create notifications outline canvas",e)}},ER=e=>{window.reactScanCleanupListeners?.();const t=qU(),n=rB();window.reactScanCleanupListeners=()=>{t(),n?.()};const r=window.__REACT_SCAN_TOOLBAR_CONTAINER__;if(!e){r?.remove();return}r?.remove();const{shadowRoot:o}=QH();WH(o)},rB=()=>{try{const e=document.documentElement;return hH(e)}catch(e){Ze.options.value._debug==="verbose"&&console.error("[React Scan Internal Error]","Failed to create notifications outline canvas",e)}},iB=(e={})=>{eB(e),!(ye.isInIframe.value&&!Ze.options.value.allowInIframe&&!Ze.runInAllEnvironments)&&(e.enabled===!1&&e.showToolbar!==!0||nB())},aB=new WeakSet;const Qr={title:"Better Gradient - Free Mesh Gradient Generator & Maker",description:"Free mesh gradient generator - Create stunning mesh blur gradient backgrounds for websites, UI design, and creative projects. No signup required. E
3877xport to PNG, WebP, SVG, or CSS instantly.",keywords:"gradient generator, mesh gradient generator, gradient maker, css gradient generator, gradient background generator, mesh gradient, gradient tool, gradient creator, free gradient generator, blur gradient generator, gradient design tool",image:"https://better-gradient.com/og-image.png",url:"https://better-gradient.com"},Al=H3()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:Qr.title},{name:"description",content:Qr.description},{name:"keywords",content:Qr.keywords},{name:"author",content:"Téo Goulois"},{name:"robots",content:"index, follow"},{property:"og:title",content:Qr.title},{property:"og:description",content:Qr.description},{property:"og:type",content:"website"},{property:"og:url",content:Qr.url},{property:"og:image",content:Qr.image},{property:"og:site_name",content:"Better Gradient"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:Qr.title},{name:"twitter:description",content:Qr.description},{name:"twitter:image",content:Qr.image},{name:"theme-color",content:"#000000"},{name:"mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"}],links:[{rel:"preload",href:"/Nohemi/Nohemi-Regular-BF6438cc579d934.woff",as:"font",type:"font/woff",crossOrigin:"anonymous"},{rel:"preload",href:"/Nohemi/Nohemi-Bold-BF6438cc577b524.woff",as:"font",type:"font/woff",crossOrigin:"anonymous"},{rel:"preload",href:"/Nohemi/Nohemi-VF-BF6438cc58ad63d.ttf",as:"font",type:"font/ttf",crossOrigin:"anonymous"},{rel:"stylesheet",href:Wz},{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"manifest",href:"/manifest.json"}],scripts:[{src:"https://tally.so/widgets/embed.js",async:!0},{src:XF,async:!0,defer:!0,"data-website-id":a4.websiteId}]}),shellComponent:oB,errorComponent:e=>de.jsx(EN,{...e}),notFoundComponent:()=>de.jsx(CN,{})});function oB(e){const t=Iu.c(8),{children:n}=e,r=iz();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0],re.useEffect(sB,o);let s,c;t[1]!==r.pathname?(s=()=>{VF(r.pathname)},c=[r.pathname],t[1]=r.pathname,t[2]=s,t[3]=c):(s=t[2],c=t[3]),re.useEffect(s,c);let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=de.jsx("head",{children:de.jsx(sz,{})}),t[4]=d):d=t[4];let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=de.jsx(cz,{}),t[5]=f):f=t[5];let h;return t[6]!==n?(h=de.jsxs("html",{lang:"en",children:[d,de.jsxs("body",{className:"min-h-screen flex flex-col overscroll-none",children:[n,f]})]}),t[6]=n,t[7]=h):h=t[7],h}function sB(){ZF(),iB({enabled:!1})}async function lB(e,t,n){const r=t[0];if(Ma(r)&&r.method){const o=r,s=o.data instanceof FormData?"formData":"payload",c=new Headers({"x-tsr-redirect":"manual",...s==="payload"?{"content-type":"application/json",accept:"application/json"}:{},...o.headers instanceof Headers?Object.fromEntries(o.headers.entries()):o.headers});if(o.method==="GET"){const d=uT({payload:rr.stringify({data:o.data,context:o.context})});d&&(e.includes("?")?e+=`&${d}`:e+=`?${d}`)}return e.includes("?")?e+="&createServerFn":e+="?createServerFn",o.response==="raw"&&(e+="&raw"),await tT(()=>n(e,{method:o.method,headers:c,signal:o.signal,...cB(o)}))}return await tT(()=>n(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t),redirect:"manual"}))}function cB(e){return e.method==="POST"?e.data instanceof FormData?(e.data.set("__TSR_CONTEXT",rr.stringify(e.context)),{body:e.data}):{body:rr.stringify({data:e.data??null,context:e.context})}:{}}async function tT(e){var t;const n=await(async()=>{try{return await e()}catch(r){if(r instanceof Response)return r;throw r}})();if(!n.ok){const r=n.headers.get("content-type");throw r&&r.includes("application/json")?rr.decode(await n.json()):new Error(await n.text())}if((t=n.headers.get("content-type"))!=null&&t.includes("application/json")){let r=rr.decode(await n.json());const o=PM(r);if(o&&(r=o),Hn(r)||Rr(r)||r instanceof Error)throw r;return r}return n}function nT(e){return e.replace(/^\/|\/$/g,"")}const Gr=(e,t)=>{const n=nT("/"),r=nT(t),o=`${n?`/${n}`:""}/${r}/${e}`;return Object.assign((...c)=>lB(o,c,fetch),{url:o,functionId:e})},uB=Gr("src_lib_actions_actions_gradient_ts--getTotalExportsFromDb_createServerFn_handler","/_serverFn"),dB=qn({method:"GET",response:"data"}).handler(uB),fB=()=>({queryKey:["getTotalExportsFromDbQueryOptions"],queryFn:()=>dB(),refetchInterval:1e3*60*5}),hB=Gr("src_lib_actions_actions_gradient_ts--getPublicGradientsFromDb_createServerFn_handler","/_serverFn"),pB=qn({method:"GET",response:"data"}
3877).handler(hB),kR=()=>({queryKey:["getPublicGradientsFromDbQueryOptions"],queryFn:()=>pB()}),mB=Gr("src_lib_actions_actions_gradient_ts--saveGradientToDb_createServerFn_handler","/_serverFn"),dV=qn({method:"POST",response:"data"}).handler(mB),gB=Gr("src_lib_actions_actions_gradient_ts--updateGradientStatusInDb_createServerFn_handler","/_serverFn"),fV=qn({method:"POST",response:"data"}).handler(gB),vB=Gr("src_lib_actions_actions_gradient_ts--deleteGradientFromDb_createServerFn_handler","/_serverFn");qn({method:"POST",response:"data"}).handler(vB);const yB=Gr("src_lib_actions_actions_gradient_ts--getGradientsFromDb_createServerFn_handler","/_serverFn"),bB=qn({method:"GET",response:"data"}).handler(yB),_B=e=>({queryKey:["gradientsInfinite",e],queryFn:({pageParam:t})=>bB({data:{...e,page:t??1}}),initialPageParam:1,getNextPageParam:(t,n,r)=>t.gradients.length<e.limit?void 0:r+1}),d_="https://better-gradient.com",wB="Better Gradient",xB="Better Gradient",SB="Better Gradient is a tool for creating beautiful gradients.",EB=`${d_}/og-image.png`,An=({title:e,description:t,keywords:n,image:r,url:o,type:s="website",canonical:c,noindex:d})=>{const f=e||xB,h=t||SB,g=r||EB,m=o||d_,y=c||m;return{meta:[{title:f},{name:"description",content:h},...n?[{name:"keywords",content:n}]:[],...d?[{name:"robots",content:"noindex, nofollow"}]:[],{property:"og:type",content:s},{property:"og:site_name",content:wB},{property:"og:title",content:f},{property:"og:description",content:h},{property:"og:image",content:g},{property:"og:url",content:m},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:f},{name:"twitter:description",content:h},{name:"twitter:image",content:g}],links:[{rel:"canonical",href:y}]}},Nt=e=>`${d_}${e.startsWith("/")?e:`/${e}`}`,kB=()=>Xt(()=>import("./manage-gradients-CtQVSNNO.js"),__vite__mapDeps([0,1,2,3,4,5])),TB=an("/manage-gradients")({head:()=>({...An({title:"Manage Gradients | Better Gradient",noindex:!0})}),loader:async({context:e})=>(await e.queryClient.ensureInfiniteQueryData(_B({limit:10,status:null})),null),component:bn(kB,"component")}),CB=()=>Xt(()=>import("./editor-nXufDKf5.js"),__vite__mapDeps([6,7,3,8,2,4,5,9,10,11,12,13,1])),$B=an("/editor")({component:bn(CB,"component"),head:()=>({...An({title:"Gradient Editor â Free Mesh Gradient Maker | Better Gradient",description:"Create stunning mesh gradients with our free editor. Customize colors, blur, grain, and shapes. Export to PNG, WebP, SVG, or CSS. No signup required.",keywords:"gradient editor, mesh gradient editor, gradient maker, gradient creator, free gradient tool",url:Nt("/editor"),canonical:Nt("/editor")})})}),RB=()=>Xt(()=>import("./discovery-BAx7vHqb.js"),__vite__mapDeps([14,15])),AB=an("/discovery")({head:()=>({...An({title:"Discovery | Better Gradient",noindex:!0})}),loader:async({context:e})=>await e.queryClient.ensureQueryData(kR()),component:bn(RB,"component")}),MB=()=>Xt(()=>import("./route-BOc1nLB2.js"),__vite__mapDeps([16,12])),zB=an("/_pages")({component:bn(MB,"component")}),OB=()=>Xt(()=>import("./index-QcICeVHI.js"),__vite__mapDeps([17,3,13,5,18,19,15])),NB=an("/_pages/")({component:bn(OB,"component"),head:()=>{const{meta:e,links:t}=An({title:"Better Gradient â Free Mesh Gradient Generator & Maker",description:"Free mesh gradient generator - Create stunning blur gradient backgrounds for websites, UI design, and creative projects. No signup required. Export to PNG, WebP, SVG, or CSS instantly.",keywords:"gradient generator, mesh gradient generator, gradient maker, css gradient generator, gradient background generator, mesh gradient, gradient tool, free gradient generator, blur gradient generator, gradient creator",url:Nt("/"),canonical:Nt("/")});return{meta:e,links:[...t,{rel:"preload",href:"/logo.png",as:"image",type:"image/png"},{rel:"preload",href:"/gradients/gradient-1.webp",as:"image",type:"image/webp"}]}},loader:async({context:e})=>{e.queryClient.ensureQueryData(fB())}}),DB=()=>Xt(()=>import("./share._state-BAlQ1Bwy.js"),__vite__mapDeps([20,7,3,8,2,4,5,9,10,11])),PB=an("/share/$state")({component:bn(DB,"component"),head:({params:e})=>{const t=Nt(`/share/${e.state}`);return{...An({title:"Shared Gradient | Better Gradient",description:"Check out this mesh gradient created with Better Gradient â Free Mesh Gradient Generator.",url:t,canonical:t})}}}),LB=()=>Xt(()=>import("./text-gradient-CPskTrpn.js"),__vite__mapDeps([21,22,19,10,8])),FB=an("/_pages/text-gradient")({component:bn(LB,"component"),head:()=>({...An({title:"Text Gradient Generator â Free CSS Text Gradient Maker | Better Gradient",description:"Apply beautiful mesh gradients to text with our free text gradient generator. Preview live, customize colors, and copy the CSS code instantly. No signup required.",keywords:"text gradient generator, gradient text CSS, CSS text gradient, text gradient maker, gradient text effect, gradient typography, mesh gradient text",url:Nt("/text-gradient"),canonical:Nt("/text-gradient")})})}),IB=()=>Xt(()=>import("./tailwind-gradient-CFN7fKZy.js"),__vite__mapDeps([23,22,19,10,8])),jB=an("/_pages/tailwind-gradient")({component:bn(IB,"component"),head:()=>({...An({title:"Tailwind Gradient Generator â Free Tailwind CSS Gradient Tool | Better Gradient",description:"Generate beautiful mesh gradients and get ready-to-use Tailwind CSS code. Copy inline styles, custom CSS, or use as background images in your Tailwind projects. Free, no signup.",keywords:"tailwind gradient generator, tailwind CSS gradient, tailwind background gradient, tailwind gradient colors, tailwind mesh gradient, tailwind gradient tool",url:Nt("/tailwind-gradient"),canonical:Nt("/tailwind-gradient")})})}),UB=()=>Xt(()=>import("./resources-C_NsfSGa.js"),__vite__mapDeps([24,22,19,18])),HB=an("/_pages/resources")({head:()=>({...An({title:"Gradient Design Resources â Color Theory & CSS Docs | Better Gradient",description:"Free gradient design resources, color theory guides, CSS documentation, and design inspiration. Everything you need to master mesh gradients.",keywords:"gradient resources, color theory, css gradient documentation, design tools, gradient inspiration, web design resources",url:Nt("/resources"),canonical:Nt("/resources")})}
3877),component:bn(UB,"component")}),BB=()=>Xt(()=>import("./random-gradient-D7Cx8BPu.js"),__vite__mapDeps([25,22,19,10,8])),qB=an("/_pages/random-gradient")({component:bn(BB,"component"),head:()=>({...An({title:"Random Gradient Generator â Free Random Mesh Gradients | Better Gradient",description:"Generate random mesh gradients instantly. Click to randomize colors, shapes, and compositions. Export to PNG, WebP, SVG, or CSS. Free, no signup required.",keywords:"random gradient generator, random gradient, random mesh gradient, gradient randomizer, random color gradient, generate random gradient",url:Nt("/random-gradient"),canonical:Nt("/random-gradient")})})}),VB=()=>Xt(()=>import("./guide-DjeqR9EN.js"),__vite__mapDeps([26,22,19,27,5,18])),GB=an("/_pages/guide")({head:()=>({...An({title:"How to Create Mesh Gradients â Complete Guide | Better Gradient",description:"Complete guide to creating mesh gradients. Learn how to use the gradient generator, export options, and implement gradients in your projects.",keywords:"gradient tutorial, how to create gradients, mesh gradient guide, gradient generator tutorial, css gradient tutorial",url:Nt("/guide"),canonical:Nt("/guide")})}),component:bn(VB,"component")}),YB=()=>Xt(()=>import("./gallery-Daq5AZwO.js"),__vite__mapDeps([28,22,19,8,11,15])),ZB=an("/_pages/gallery")({loader:async({context:e})=>await e.queryClient.ensureQueryData(kR()),head:()=>({...An({title:"Gradient Gallery â Free Mesh Gradient Inspiration | Better Gradient",description:"Browse beautiful mesh gradient examples and inspiration. Discover stunning gradient color combinations for your design projects. Free gradient gallery.",keywords:"gradient examples, gradient inspiration, mesh gradient gallery, gradient color combinations, beautiful gradients, gradient designs",url:Nt("/gallery"),canonical:Nt("/gallery")})}),component:bn(YB,"component")}),XB=()=>Xt(()=>import("./index-BL5_qmXf.js"),__vite__mapDeps([29,27,5,18,19,30])),WB=an("/_pages/developers/")({head:()=>({...An({title:"Developer API â Generate Gradients Programmatically | Better Gradient",description:"Developer API for Better Gradient. Request an API key and generate mesh gradients programmatically with simple endpoints.",keywords:"gradient api, mesh gradient api, gradient generator api, webp png svg gradient, developer api",url:Nt("/developers"),canonical:Nt("/developers")})}),component:bn(XB,"component")}),KB=Gr("src_lib_actions_action_query_ts--getPosts_createServerFn_handler","/_serverFn"),QB=qn().handler(KB),JB=Gr("src_lib_actions_action_query_ts--getTags_createServerFn_handler","/_serverFn");qn().handler(JB);const eq=Gr("src_lib_actions_action_query_ts--getSinglePost_createServerFn_handler","/_serverFn"),tq=qn().handler(eq),nq=Gr("src_lib_actions_action_query_ts--getCategories_createServerFn_handler","/_serverFn");qn().handler(nq);const rq=Gr("src_lib_actions_action_query_ts--getAuthors_createServerFn_handler","/_serverFn");qn().handler(rq);const iq=()=>Xt(()=>import("./index-Ch1KmyLg.js"),__vite__mapDeps([31,18,19])),aq=an("/_pages/blog/")({head:()=>({...An({title:"Gradient Design Blog â Tutorials & Inspiration | Better Gradient",description:"Learn about mesh gradients, CSS gradients, and modern design techniques. Tutorials, guides, and inspiration for creating stunning gradient backgrounds.",keywords:"gradient tutorial, mesh gradient guide, css gradients, gradient design, web design tutorials, UI design blog",url:Nt("/blog"),canonical:Nt("/blog")})}),loader:async()=>await QB(),component:bn(iq,"component")}),oq=()=>Xt(()=>import("./confirm-DUVmmSf1.js"),__vite__mapDeps([32,27,5,18,19,30])),sq=an("/_pages/developers/confirm")({validateSearch:aL({token:Ca().optional()}),head:()=>({...An({title:"Confirm API Key | Better Gradient",description:"Confirm your Better Gradient API key request.",noindex:!0})}),component:bn(oq,"component")}),lq=()=>Xt(()=>import("./_slug-CAp1BaSU.js"),__vite__mapDeps([33,5,18,9,4])),cq=an("/_pages/blog/$slug")({component:bn(lq,"component"),loader:async({params:e})=>await tq({data:e.slug}),head:({loaderData:e})=>{const t=e?.post;if(!t)return{};const n=Nt(`/blog/${t.slug}`);return{...An({title:`${t.title}
3877 | Better Gradient Blog`,description:t.description||`Read "${t.title}" on the Better Gradient blog.`,image:t.coverImage,url:n,canonical:n,type:"article"})}}}),uq=TB.update({id:"/manage-gradients",path:"/manage-gradients",getParentRoute:()=>Al}),dq=$B.update({id:"/editor",path:"/editor",getParentRoute:()=>Al}),fq=AB.update({id:"/discovery",path:"/discovery",getParentRoute:()=>Al}),zr=zB.update({id:"/_pages",getParentRoute:()=>Al}),hq=NB.update({id:"/",path:"/",getParentRoute:()=>zr}),pq=PB.update({id:"/share/$state",path:"/share/$state",getParentRoute:()=>Al}),mq=FB.update({id:"/text-gradient",path:"/text-gradient",getParentRoute:()=>zr}),gq=jB.update({id:"/tailwind-gradient",path:"/tailwind-gradient",getParentRoute:()=>zr}),vq=HB.update({id:"/resources",path:"/resources",getParentRoute:()=>zr}),yq=qB.update({id:"/random-gradient",path:"/random-gradient",getParentRoute:()=>zr}),bq=GB.update({id:"/guide",path:"/guide",getParentRoute:()=>zr}),_q=ZB.update({id:"/gallery",path:"/gallery",getParentRoute:()=>zr}),wq=WB.update({id:"/developers/",path:"/developers/",getParentRoute:()=>zr}),xq=aq.update({id:"/blog/",path:"/blog/",getParentRoute:()=>zr}),Sq=sq.update({id:"/developers/confirm",path:"/developers/confirm",getParentRoute:()=>zr}),Eq=cq.update({id:"/blog/$slug",path:"/blog/$slug",getParentRoute:()=>zr}),kq={PagesGalleryRoute:_q,PagesGuideRoute:bq,PagesRandomGradientRoute:yq,PagesResourcesRoute:vq,PagesTailwindGradientRoute:gq,PagesTextGradientRoute:mq,PagesIndexRoute:hq,PagesBlogSlugRoute:Eq,PagesDevelopersConfirmRoute:Sq,PagesBlogIndexRoute:xq,PagesDevelopersIndexRoute:wq},Tq=zr._addFileChildren(kq),Cq={PagesRouteRoute:Tq,DiscoveryRoute:fq,EditorRoute:dq,ManageGradientsRoute:uq,ShareStateRoute:pq},$q=Al._addFileChildren(Cq)._addFileTypes(),Rq=()=>{const e=Zz(),t=ez({routeTree:$q,context:{...e},defaultPreload:"intent",Wrap:n=>de.jsx(Xz,{...e,children:n.children})});return Vz({router:t,queryClient:e.queryClient}),t},Aq=Rq();re.startTransition(()=>{eM.hydrateRoot(document,de.jsx(re.StrictMode,{children:de.jsx(uz,{router:Aq})}))});export{ti as $,u6 as A,VT as B,Yq as C,Gq as D,pl as E,w6 as F,oC as G,s0 as H,IT as I,zO as J,Wq as K,a2 as L,r6 as M,xO as N,g6 as O,GT as P,$6 as Q,tt as R,d0 as S,Zq as T,lC as U,BO as V,Xq as W,cC as X,UT as Y,jO as Z,HO as _,Do as a,hy as a$,z6 as a0,hO as a1,Jq as a2,de as a3,O6 as a4,bN as a5,xN as a6,UO as a7,nV as a8,Q6 as a9,dV as aA,_b as aB,a0 as aC,Sr as aD,EO as aE,QT as aF,HT as aG,$n as aH,yu as aI,En as aJ,Vq as aK,IO as aL,_6 as aM,Hq as aN,CO as aO,gl as aP,qq as aQ,Qq as aR,tV as aS,zq as aT,rT as aU,Ez as aV,vz as aW,py as aX,cp as aY,mz as aZ,gz as a_,cV as aa,EC as ab,Fo as ac,Oq as ad,Rp as ae,Ho as af,zu as ag,uV as ah,Zt as ai,wT as aj,Mq as ak,mu as al,lp as am,Fq as an,gu as ao,Iz as ap,Cn as aq,jq as ar,tr as as,Iq as at,kR as au,fV as av,K3 as aw,fB as ax,PB as ay,rV as az,KO as b,CT as b0,Pz as b1,_z as b2,aq as b3,sq as b4,qn as b5,Gr as b6,cq as b7,E3 as b8,sC as b9,eV as ba,fO as bb,Iu as c,e6 as d,l0 as e,s2 as f,a6 as g,i0 as h,Pq as i,R6 as j,Uq as k,ci as l,up as m,Dq as n,E6 as o,hl as p,ml as q,re as r,SO as s,PT as t,C6 as u,aC as v,Bq as w,Kq as x,S6 as y,Hr as z};
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.