PageSourceSearch

https://keyword-rank.base44.app/assets/index-QskgtpXP.js

js keyword-rank.base44.app collected 2026-10-03 03:14:58 UTC 490,698 bytes, 152 lines download raw bytes

vendor: 4,650 bytes, lines 1-9
1var og=t=>{throw TypeError(t)};var $c=(t,e,r)=>e.has(t)||og("Cannot "+r);var P=(t,e,r)=>($c(t,e,"read from private field"),r?r.call(t):e.get(t)),ue=(t,e,r)=>e.has(t)?og("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),X=(t,e,r,i)=>($c(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),ke=(t,e,r)=>($c(t,e,"access private method"),r);var tl=(t,e,r,i)=>({set _(a){X(t,e,a,r)},get _(){return P(t,e,i)}});function lb(t,e){for(var r=0;r<e.length;r++){const i=e[r];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in t)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function Zv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wc={exports:{}},Zi={},Hc={exports:{}},be={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var ag;function ub(){if(ag)return be;ag=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,b={};function x(R,z,ye){this.props=R,this.context=z,this.refs=b,this.updater=ye||T}x.prototype.isReactComponent={},x.prototype.setState=function(R,z){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,z,"setState")},x.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=x.prototype;function V(R,z,ye){this.props=R,this.context=z,this.refs=b,this.updater=ye||T}var L=V.prototype=new A;L.constructor=V,k(L,x.prototype),L.isPureReactComponent=!0;var M=Array.isArray,U=Object.prototype.hasOwnProperty,K={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function I(R,z,ye){var ve,le={},he=null,Oe=null;if(z!=null)for(ve in z.ref!==void 0&&(Oe=z.ref),z.key!==void 0&&(he=""+z.key),z)U.call(z,ve)&&!G.hasOwnProperty(ve)&&(le[ve]=z[ve]);var _e=arguments.length-2;if(_e===1)le.children=ye;else if(1<_e){for(var we=Array(_e),ht=0;ht<_e;ht++)we[ht]=arguments[ht+2];le.children=we}if(R&&R.defaultProps)for(ve in _e=R.defaultProps,_e)le[ve]===void 0&&(le[ve]=_e[ve]);return{$$typeof:t,type:R,key:he,ref:Oe,props:le,_owner:K.current}}function J(R,z){return{$$typeof:t,type:R.type,key:z,ref:R.ref,props:R.props,_owner:R._owner}}function me(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function de(R){var z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ye){return z[ye]})}var Ce=/\/+/g;function je(R,z){return typeof R=="object"&&R!==null&&R.key!=null?de(""+R.key):z.toString(36)}function Ae(R,z,ye,ve,le){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var Oe=!1;if(R===null)Oe=!0;else switch(he){case"string":case"number":Oe=!0;break;case"object":switch(R.$$typeof){case t:case e:Oe=!0}}if(Oe)return Oe=R,le=le(Oe),R=ve===""?"."+je(Oe,0):ve,M(le)?(ye="",R!=null&&(ye=R.replace(Ce,"$&/")+"/"),Ae(le,z,ye,"",function(ht){return ht})):le!=null&&(me(le)&&(le=J(le,ye+(!le.key||Oe&&Oe.key===le.key?"":(""+le.key).replace(Ce,"$&/")+"/")+R)),z.pu
vendor: 10,948 bytes, lines 9-33
9sh(le)),1;if(Oe=0,ve=ve===""?".":ve+":",M(R))for(var _e=0;_e<R.length;_e++){he=R[_e];var we=ve+je(he,_e);Oe+=Ae(he,z,ye,we,le)}else if(we=w(R),typeof we=="function")for(R=we.call(R),_e=0;!(he=R.next()).done;)he=he.value,we=ve+je(he,_e++),Oe+=Ae(he,z,ye,we,le);else if(he==="object")throw z=String(R),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Oe}function Me(R,z,ye){if(R==null)return R;var ve=[],le=0;return Ae(R,ve,"","",function(he){return z.call(ye,he,le++)}),ve}function xe(R){if(R._status===-1){var z=R._result;z=z(),z.then(function(ye){(R._status===0||R._status===-1)&&(R._status=1,R._result=ye)},function(ye){(R._status===0||R._status===-1)&&(R._status=2,R._result=ye)}),R._status===-1&&(R._status=0,R._result=z)}if(R._status===1)return R._result.default;throw R._result}var fe={current:null},q={transition:null},se={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:q,ReactCurrentOwner:K};function B(){throw Error("act(...) is not supported in production builds of React.")}return be.Children={map:Me,forEach:function(R,z,ye){Me(R,function(){z.apply(this,arguments)},ye)},count:function(R){var z=0;return Me(R,function(){z++}),z},toArray:function(R){return Me(R,function(z){return z})||[]},only:function(R){if(!me(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},be.Component=x,be.Fragment=r,be.Profiler=a,be.PureComponent=V,be.StrictMode=i,be.Suspense=h,be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,be.act=B,be.cloneElement=function(R,z,ye){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ve=k({},R.props),le=R.key,he=R.ref,Oe=R._owner;if(z!=null){if(z.ref!==void 0&&(he=z.ref,Oe=K.current),z.key!==void 0&&(le=""+z.key),R.type&&R.type.defaultProps)var _e=R.type.defaultProps;for(we in z)U.call(z,we)&&!G.hasOwnProperty(we)&&(ve[we]=z[we]===void 0&&_e!==void 0?_e[we]:z[we])}var we=arguments.length-2;if(we===1)ve.children=ye;else if(1<we){_e=Array(we);for(var ht=0;ht<we;ht++)_e[ht]=arguments[ht+2];ve.children=_e}return{$$typeof:t,type:R.type,key:le,ref:he,props:ve,_owner:Oe}},be.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:l,_context:R},R.Consumer=R},be.createElement=I,be.createFactory=function(R){var z=I.bind(null,R);return z.type=R,z},be.createRef=function(){return{current:null}},be.forwardRef=function(R){return{$$typeof:d,render:R}},be.isValidElement=me,be.lazy=function(R){return{$$typeof:g,_payload:{_status:-1,_result:R},_init:xe}},be.memo=function(R,z){return{$$typeof:m,type:R,compare:z===void 0?null:z}},be.startTransition=function(R){var z=q.transition;q.transition={};try{R()}finally{q.transition=z}},be.unstable_act=B,be.useCallback=function(R,z){return fe.current.useCallback(R,z)},be.useContext=function(R){return fe.current.useContext(R)},be.useDebugValue=function(){},be.useDeferredValue=function(R){return fe.current.useDeferredValue(R)},be.useEffect=function(R,z){return fe.current.useEffect(R,z)},be.useId=function(){return fe.current.useId()},be.useImperativeHandle=function(R,z,ye){return fe.current.useImperativeHandle(R,z,ye)},be.useInsertionEffect=function(R,z){return fe.current.useInsertionEffect(R,z)},be.useLayoutEffect=function(R,z){return fe.current.useLayoutEffect(R,z)},be.useMemo=function(R,z){return fe.current.useMemo(R,z)},be.useReducer=function(R,z,ye){return fe.current.useReducer(R,z,ye)},be.useRef=function(R){return fe.current.useRef(R)},be.useState=function(R){return fe.current.useState(R)},be.useSyncExternalStore=function(R,z,ye){return fe.current.useSyncExternalStore(R,z,ye)},be.useTransition=function(){return fe.current.useTransition()},be.version="18.3.1",be}var lg;function pf(){return lg||(lg=1,Hc.exports=ub()),Hc.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var ug;function cb(){if(ug)return Zi;ug=1;var t=pf(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,m){var g,y={},w=null,T=null;m!==void 0&&(w=""+m),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(T=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:e,type:d,key:w,ref:T,props:y,_owner:a.current}}return Zi.Fragment=r,Zi.jsx=c,Zi.jsxs=c,Zi}var cg;function db(){return cg||(cg=1,Wc.exports=cb()),Wc.exports}var S=db(),O=pf();const fb=Zv(O),e0=lb({__proto__:null,default:fb},[O]);var nl={},qc={exports:{}},At={},Kc={exports:{}},Qc={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var dg;function hb(){return dg||(dg=1,(function(t){function e(q,se){var B=q.length;q.push(se);e:for(;0<B;){var R=B-1>>>1,z=q[R];if(0<a(z,se))q[R]=se,q[B]=z,B=R;else break e}}function r(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var se=q[0],B=q.pop();if(B!==se){q[0]=B;e:for(var R=0,z=q.length,ye=z>>>1;R<ye;){var ve=2*(R+1)-1,le=q[ve],he=ve+1,Oe=q[he];if(0>a(le,B))he<z&&0>a(Oe,le)?(q[R]=Oe,q[he]=B,R=he):(q[R]=le,q[ve]=B,R=ve);else if(he<z&&0>a(Oe,B))q[R]=Oe,q[he]=B,R=he;else break e}}return se}function a(q,se){var B=q.sortIndex-se.sortIndex;return B!==0?B:q.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var h=[],m=[],g=1,y=null,w=3,T=!1,k=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(q){for(var se=r(m);se!==null;){if(se.callback===null)i(m);else if(se.startTime<=q)i(m),se.sortIndex=se.expirationTime,e(h,se);else break;se=r(m)}}function M(q){if(b=!1,L(q),!k)if(r(h)!==null)k=!0,xe(U);else{var se=r(m);se!==null&&fe(M,se.startTime-q)}}function U(q,se){k=!1,b&&(b=!1,A(I),I=-1),T=!0;var B=w;try{for(L(se),y=r(h);y!==null&&(!(y.expirationTime>se)||q&&!de());){var R=y.callback;if(typeof R=="function"){y.callback=null,w=y.priorityLevel;var z=R(y.expirationTime<=se);se=t.unstable_now(),typeof z=="function"?y.callback=z:y===r(h)&&i(h),L(se)}else i(h);y=r(h)}if(y!==null)var ye=!0;else{var ve=r(m);ve!==null&&fe(M,ve.startTime-se),ye=!1}return ye}finally{y=null,w=B,T=!1}}var K=!1,G=null,I=-1,J=5,me=-1;function de(){return!(t.unstable_now()-me<J)}function Ce(){if(G!==null){var q=t.unstable_now();me=q;var se=!0;try{se=G(!0,q)}finally{se?je():(K=!1,G=null)}}else K=!1}var je;if(typeof V=="function")je=function(){V(Ce)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,Me=Ae.port2;Ae.port1.onmessage=Ce,je=function(){Me.postMessage(null)}}else je=function(){x(Ce,0)};function xe(q){G=q,K||(K=!0,je())}function fe(q,se){I=x(function(){q(t.unstable_now())},se)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(q){q.callback=null},t.unstable_continueExecution=function(){k||T||(k=!0,xe(U))},t.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<q?Math.floor(1e3/q):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(q){switch(w){case 1:case 2:case 3:var se=3;break;default:se=w}var B=w;w=se;try{return q()}finally{w=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(q,se){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var B=w;w=q;try{return se()}finally{w=B}},t.unstable_scheduleCallback=function(q,se,B){var R=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?R+B:R):B=R,q){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=B+z,q={id:g++,callback:se,priorityLevel:q,startTime:B,expirationTime:z,sortIndex:-1},B>R?(q.sortIndex=B,e(m,q),r(h)===null&&q===r(m)&&(b?(A(I),I=-1):b=!0,fe(M,B-R))):(q.sortIndex=z,e(h,q),k||T||(k=!0,xe(U))),q},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(q){var se=w;return function(){var B=w;w=se;try{return q.apply(this,arguments)}finally{w=B}}}})(Qc)),Qc}var fg;function pb(){return fg||(fg=1,Kc.exports=hb()),Kc.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var hg;function mb(){if(hg)return At;hg=1;var t=pf(),e=pb();function r(n){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+n,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(n,s){c(n,s),c(n+"Capture",s)}function c(n,s){for(a[n]=s,n=0;n<s.length;n++)i.add(s[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},y={};function w(n){return h.call(y,n)?!0:h.call(g,n)?!1:m.test(n)?y[n]=!0:(g[n]=!0,!1)}function T(n,s,o,u){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return u?!1:o!==null?!o.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function k(n,s,o,u){if(s===null||typeof s>"u"||T(n,s,o,u))return!0;
vendor: 37,490 bytes, lines 33-37
33if(u)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function b(n,s,o,u,f,p,v){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=n,this.type=s,this.sanitizeURL=p,this.removeEmptyString=v}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){x[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var s=n[0];x[s]=new b(s,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){x[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){x[n]=new b(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){x[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){x[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){x[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){x[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){x[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function V(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var s=n.replace(A,V);x[s]=new b(s,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var s=n.replace(A,V);x[s]=new b(s,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var s=n.replace(A,V);x[s]=new b(s,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){x[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){x[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function L(n,s,o,u){var f=x.hasOwnProperty(s)?x[s]:null;(f!==null?f.type!==0:u||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(k(s,o,f,u)&&(o=null),u||f===null?w(s)&&(o===null?n.removeAttribute(s):n.setAttribute(s,""+o)):f.mustUseProperty?n[f.propertyName]=o===null?f.type===3?!1:"":o:(s=f.attributeName,u=f.attributeNamespace,o===null?n.removeAttribute(s):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,u?n.setAttributeNS(u,s,o):n.setAttribute(s,o))))}var M=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),K=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),de=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),q=Symbol.iterator;function se(n){return n===null||typeof n!="object"?null:(n=q&&n[q]||n["@@iterator"],typeof n=="function"?n:null)}var B=Object.assign,R;function z(n){if(R===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);R=s&&s[1]||""}return`
34`+R+n}var ye=!1;function ve(n,s){if(!n||ye)return"";ye=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(D){var u=D}Reflect.construct(n,[],s)}else{try{s.call()}catch(D){u=D}n.call(s.prototype)}else{try{throw Error()}catch(D){u=D}n()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var f=D.stack.split(`
35`),p=u.stack.split(`
36`),v=f.length-1,E=p.length-1;1<=v&&0<=E&&f[v]!==p[E];)E--;for(;1<=v&&0<=E;v--,E--)if(f[v]!==p[E]){if(v!==1||E!==1)do if(v--,E--,0>E||f[v]!==p[E]){var C=`
37`+f[v].replace(" at new "," at ");return n.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",n.displayName)),C}while(1<=v&&0<=E);break}}}finally{ye=!1,Error.prepareStackTrace=o}return(n=n?n.displayName||n.name:"")?z(n):""}function le(n){switch(n.tag){case 5:return z(n.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return n=ve(n.type,!1),n;case 11:return n=ve(n.type.render,!1),n;case 1:return n=ve(n.type,!0),n;default:return""}}function he(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case G:return"Fragment";case K:return"Portal";case J:return"Profiler";case I:return"StrictMode";case je:return"Suspense";case Ae:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case de:return(n.displayName||"Context")+".Consumer";case me:return(n._context.displayName||"Context")+".Provider";case Ce:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Me:return s=n.displayName||null,s!==null?s:he(n.type)||"Memo";case xe:s=n._payload,n=n._init;try{return he(n(s))}catch{}}return null}function Oe(n){var s=n.type;switch(n.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=s.render,n=n.displayName||n.name||"",s.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(s);case 8:return s===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function _e(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function we(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ht(n){var s=we(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,s),u=""+n[s];if(!n.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,p=o.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return f.call(this)},set:function(v){u=""+v,p.call(this,v)}}),Object.defineProperty(n,s,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(v){u=""+v},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function Pn(n){n._valueTracker||(n._valueTracker=ht(n))}function Nr(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var o=s.getValue(),u="";return n&&(u=we(n)?n.checked?"true":"false":n.value),n=u,n!==o?(s.setValue(n),!0):!1}function Wn(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Hn(n,s){var o=s.checked;return B({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??n._wrapperState.initialChecked})}function hh(n,s){var o=s.defaultValue==null?"":s.defaultValue,u=s.checked!=null?s.checked:s.defaultChecked;o=_e(s.value!=null?s.value:o),n._wrapperState={initialChecked:u,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ph(n,s){s=s.checked,s!=null&&L(n,"checked",s,!1)}function Xl(n,s){ph(n,s);var o=_e(s.value),u=s.type;if(o!=null)u==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+o):n.value!==""+o&&(n.value=""+o);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}s.hasOwnProperty("value")?Jl(n,s.type,o):s.hasOwnProperty("defaultValue")&&Jl(n,s.type,_e(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(n.defaultChecked=!!s.defaultChecked)}function mh(n,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var u=s.type;if(!(u!=="submit"&&u!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+n._wrapperState.initialValue,o||s===n.value||(n.value=s),n.defaultValue=s}o=n.name,o!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,o!==""&&(n.name=o)}function Jl(n,s,o){(s!=="number"||Wn(n.ownerDocument)!==n)&&(o==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+o&&(n.defaultValue=""+o))}var pi=Array.isArray;function gs(n,s,o,u){if(n=n.options,s){s={};for(var f=0;f<o.length;f++)s["$"+o[f]]=!0;for(o=0;o<n.length;o++)f=s.hasOwnProperty("$"+n[o].value),n[o].selected!==f&&(n[o].selected=f),f&&u&&(n[o].defaultSelected=!0)}else{for(o=""+_e(o),s=null,f=0;f<n.length;f++){if(n[f].value===o){n[f].selected=!0,u&&(n[f].defaultSelected=!0);return}s!==null||n[f].disabled||(s=n[f])}s!==null&&(s.selected=!0)}}function Zl(n,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return B({},s,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function gh(n,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(r(92));if(pi(o)){if(1<o.length)throw Error(r(93));o=o[0]}s=o}s==null&&(s=""),o=s}n._wrapperState={initialValue:_e(o)}}function yh(n,s){var o=_e(s.value),u=_e(s.defaultValue);o!=null&&(o=""+o,o!==n.value&&(n.value=o),s.defaultValue==null&&n.defaultValue!==o&&(n.defaultValue=o)),u!=null&&(n.defaultValue=""+u)}function vh(n){var s=n.textContent;s===n._wrapperState.initialValue&&s!==""&&s!==null&&(n.value=s)}function wh(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eu(n,s){return n==null||n==="http://www.w3.org/1999/xhtml"?wh(s):n==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Ko,xh=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,u,f){MSApp.execUnsafeLocalFunction(function(){return n(s,o,u,f)})}:n})(function(n,s){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=s;else{for(Ko=Ko||document.createElement("div"),Ko.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Ko.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;s.firstChild;)n.appendChild(s.firstChild)}});function mi(n,s){if(s){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=s;return}}n.textContent=s}var gi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fS=["Webkit","ms","Moz","O"];Object.keys(gi).forEach(function(n){fS.forEach(function(s){s=s+n.charAt(0).toUpperCase()+n.substring(1),gi[s]=gi[n]})});function Sh(n,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||gi.hasOwnProperty(n)&&gi[n]?(""+s).trim():s+"px"}function bh(n,s){n=n.style;for(var o in s)if(s.hasOwnProperty(o)){var u=o.indexOf("--")===0,f=Sh(o,s[o],u);o==="float"&&(o="cssFloat"),u?n.setProperty(o,f):n[o]=f}}var hS=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tu(n,s){if(s){if(hS[n]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function nu(n,s){if(n.indexOf("-")===-1)return typeof s.is=="string";switch(n){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 ru=null;function su(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var iu=null,ys=null,vs=null;function kh(n){if(n=Fi(n)){if(typeof iu!="function")throw Error(r(280));var s=n.stateNode;s&&(s=ga(s),iu(n.stateNode,n.type,s))}}function Eh(n){ys?vs?vs.push(n):vs=[n]:ys=n}function Th(){if(ys){var n=ys,s=vs;if(vs=ys=null,kh(n),s)for(n=0;n<s.length;n++)kh(s[n])}}function Ch(n,s){return n(s)}function Ph(){}var ou=!1;function _h(n,s,o){if(ou)return n(s,o);ou=!0;try{return Ch(n,s,o)}finally{ou=!1,(ys!==null||vs!==null)&&(Ph(),Th())}}function yi(n,s){var o=n.stateNode;if(o===null)return null;var u=ga(o);if(u===null)return null;o=u[s];e:switch(s){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)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(r(231,s,typeof o));return o}var au=!1;if(d)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){au=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{au=!1}function pS(n,s,o,u,f,p,v,E,C){var D=Array.prototype.slice.call(arguments,3);try{s.apply(o,D)}catch(W){this.onError(W)}}var wi=!1,Qo=null,Go=!1,lu=null,mS={onError:function(n){wi=!0,Qo=n}};function gS(n,s,o,u,f,p,v,E,C){wi=!1,Qo=null,pS.apply(mS,arguments)}function yS(n,s,o,u,f,p,v,E,C){if(gS.apply(this,arguments),wi){if(wi){var D=Qo;wi=!1,Qo=null}else throw Error(r(198));Go||(Go=!0,lu=D)}}function Lr(n){var s=n,o=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(o=s.return),n=s.return;while(n)}return s.tag===3?o:null}function Rh(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function Ah(n){if(Lr(n)!==n)throw Error(r(188))}function vS(n){var s=n.alternate;if(!s){if(s=Lr(n),s===null)throw Error(r(188));return s!==n?null:n}for(var o=n,u=s;;){var f=o.return;if(f===null)break;var p=f.alternate;if(p===null){if(u=f.return,u!==null){o=u;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===o)return Ah(f),n;if(p===u)return Ah(f),s;p=p.sibling}throw Error(r(188))}if(o.return!==u.return)o=f,u=p;else{for(var v=!1,E=f.child;E;){if(E===o){v=!0,o=f,u=p;break}if(E===u){v=!0,u=f,o=p;break}E=E.sibling}if(!v){for(E=p.child;E;){if(E===o){v=!0,o=p,u=f;break}if(E===u){v=!0,u=p,o=f;break}E=E.sibling}if(!v)throw Error(r(189))}}if(o.alternate!==u)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?n:s}function Oh(n){return n=vS(n),n!==null?Nh(n):null}function Nh(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var s=Nh(n);if(s!==null)return s;n=n.sibling}return null}var Lh=e.unstable_scheduleCallback,jh=e.unstable_cancelCallback,wS=e.unstable_shouldYield,xS=e.unstable_requestPaint,Qe=e.unstable_now,SS=e.unstable_getCurrentPriorityLevel,uu=e.unstable_ImmediatePriority,Dh=e.unstable_UserBlockingPriority,Yo=e.unstable_NormalPriority,bS=e.unstable_LowPriority,Mh=e.unstable_IdlePriority,Xo=null,mn=null;function kS(n){if(mn&&typeof mn.onCommitFiberRoot=="function")try{mn.onCommitFiberRoot(Xo,n,void 0,(n.current.flags&128)===128)}catch{}}var nn=Math.clz32?Math.clz32:CS,ES=Math.log,TS=Math.LN2;function CS(n){return n>>>=0,n===0?32:31-(ES(n)/TS|0)|0}var Jo=64,Zo=4194304;function xi(n){switch(n&-n){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: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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function ea(n,s){var o=n.pendingLanes;if(o===0)return 0;var u=0,f=n.suspendedLanes,p=n.pingedLanes,v=o&268435455;if(v!==0){var E=v&~f;E!==0?u=xi(E):(p&=v,p!==0&&(u=xi(p)))}else v=o&~f,v!==0?u=xi(v):p!==0&&(u=xi(p));if(u===0)return 0;if(s!==0&&s!==u&&(s&f)===0&&(f=u&-u,p=s&-s,f>=p||f===16&&(p&4194240)!==0))return s;if((u&4)!==0&&(u|=o&16),s=n.entangledLanes,s!==0)for(n=n.entanglements,s&=u;0<s;)o=31-nn(s),f=1<<o,u|=n[o],s&=~f;return u}function PS(n,s){switch(n){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _S(n,s){for(var o=n.suspendedLanes,u=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes;0<p;){var v=31-nn(p),E=1<<v,C=f[v];C===-1?((E&o)===0||(E&u)!==0)&&(f[v]=PS(E,s)):C<=s&&(n.expiredLanes|=E),p&=~E}}function cu(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Ih(){var n=Jo;return Jo<<=1,(Jo&4194240)===0&&(Jo=64),n}function du(n){for(var s=[],o=0;31>o;o++)s.push(n);return s}function Si(n,s,o){n.pendingLanes|=s,s!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,s=31-nn(s),n[s]=o}function RS(n,s){var o=n.pendingLanes&~s;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=s,n.mutableReadLanes&=s,n.entangledLanes&=s,s=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<o;){var f=31-nn(o),p=1<<f;s[f]=0,u[f]=-1,n[f]=-1,o&=~p}}function fu(n,s){var o=n.entangledLanes|=s;for(n=n.entanglements;o;){var u=31-nn(o),f=1<<u;f&s|n[u]&s&&(n[u]|=s),o&=~f}}var Le=0;function Fh(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Vh,hu,Bh,Uh,zh,pu=!1,ta=[],qn=null,Kn=null,Qn=null,bi=new Map,ki=new Map,Gn=[],AS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $h(n,s){switch(n){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":bi.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(s.pointerId)}}function Ei(n,s,o,u,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:s,domEventName:o,eventSystemFlags:u,nativeEvent:p,targetContainers:[f]},s!==null&&(s=Fi(s),s!==null&&hu(s)),n):(n.eventSystemFlags|=u,s=n.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),n)}function OS(n,s,o,u,f){switch(s){case"focusin":return qn=Ei(qn,n,s,o,u,f),!0;case"dragenter":return Kn=Ei(Kn,n,s,o,u,f),!0;case"mouseover":return Qn=Ei(Qn,n,s,o,u,f),!0;case"pointerover":var p=f.pointerId;return bi.set(p,Ei(bi.get(p)||null,n,s,o,u,f)),!0;case"gotpointercapture":return p=f.pointerId,ki.set(p,Ei(ki.get(p)||null,n,s,o,u,f)),!0}return!1}function Wh(n){var s=jr(n.target);if(s!==null){var o=Lr(s);if(o!==null){if(s=o.tag,s===13){if(s=Rh(o),s!==null){n.blockedOn=s,zh(n.priority,function(){Bh(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function na(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var o=gu(n.domEventName,n.eventSystemFlags,s[0],n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);ru=u,o.target.dispatchEvent(u),ru=null}else return s=Fi(o),s!==null&&hu(s),n.blockedOn=o,!1;s.shift()}return!0}function Hh(n,s,o){na(n)&&o.delete(s)}function NS(){pu=!1,qn!==null&&na(qn)&&(qn=null),Kn!==null&&na(Kn)&&(Kn=null),Qn!==null&&na(Qn)&&(Qn=null),bi.forEach(Hh),ki.forEach(Hh)}function Ti(n,s){n.blockedOn===s&&(n.blockedOn=null,pu||(pu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,NS)))}function Ci(n){function s(f){return Ti(f,n)}if(0<ta.length){Ti(ta[0],n);for(var o=1;o<ta.length;o++){var u=ta[o];u.blockedOn===n&&(u.blockedOn=null)}}for(qn!==null&&Ti(qn,n),Kn!==null&&Ti(Kn,n),Qn!==null&&Ti(Qn,n),bi.forEach(s),ki.forEach(s),o=0;o<Gn.length;o++)u=Gn[o],u.blockedOn===n&&(u.blockedOn=null);for(;0<Gn.length&&(o=Gn[0],o.blockedOn===null);)Wh(o),o.blockedOn===null&&Gn.shift()}var ws=M.ReactCurrentBatchConfig,ra=!0;function LS(n,s,o,u){var f=Le,p=ws.transition;ws.transition=null;try{Le=1,mu(n,s,o,u)}finally{Le=f,ws.transition=p}}function jS(n,s,o,u){var f=Le,p=ws.transition;ws.transition=null;try{Le=4,mu(n,s,o,u)}finally{Le=f,ws.transition=p}}function mu(n,s,o,u){if(ra){var f=gu(n,s,o,u);if(f===null)Lu(n,s,u,sa,o),$h(n,u);else if(OS(f,n,s,o,u))u.stopPropagation();else if($h(n,u),s&4&&-1<AS.indexOf(n)){for(;f!==null;){var p=Fi(f);if(p!==null&&Vh(p),p=gu(n,s,o,u),p===null&&Lu(n,s,u,sa,o),p===f)break;f=p}f!==null&&u.stopPropagation()}else Lu(n,s,u,null,o)}}var sa=null;function gu(n,s,o,u){if(sa=null,n=su(u),n=jr(n),n!==null)if(s=Lr(n),s===null)n=null;else if(o=s.tag,o===13){if(n=Rh(s),n!==null)return n;n=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null);return sa=n,null}function qh(n){switch(n){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(SS()){case uu:return 1;case Dh:return 4;case Yo:case bS:return 16;case Mh:return 536870912;default:return 16}default:return 16}}var Yn=null,yu=null,ia=null;function Kh(){if(ia)return ia;var n,s=yu,o=s.length,u,f="value"in Yn?Yn.value:Yn.textContent,p=f.length;for(n=0;n<o&&s[n]===f[n];n++);var v=o-n;for(u=1;u<=v&&s[o-u]===f[p-u];u++);return ia=f.slice(n,1<u?1-u:void 0)}function oa(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function aa(){return!0}function Qh(){return!1}function Mt(n){function s(o,u,f,p,v){this._reactName=o,this._targetInst=f,this.type=u,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(o=n[E],this[E]=o?o(p):p[E]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?aa:Qh,this.isPropagationStopped=Qh,this}return B(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=aa)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=aa)},persist:function(){},isPersistent:aa}),s}var xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vu=Mt(xs),Pi=B({},xs,{view:0,detail:0}),DS=Mt(Pi),wu,xu,_i,la=B({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==_i&&(_i&&n.type==="mousemove"?(wu=n.screenX-_i.screenX,xu=n.screenY-_i.screenY):xu=wu=0,_i=n),wu)},movementY:function(n){return"movementY"in n?n.movementY:xu}}),Gh=Mt(la),MS=B({},la,{dataTransfer:0}),IS=Mt(MS),FS=B({},Pi,{relatedTarget:0}),Su=Mt(FS),VS=B({},xs,{animationName:0,elapsedTime:0,pseudoElement:0}),BS=Mt(VS),US=B({},xs,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),zS=Mt(US),$S=B({},xs,{data:0}),Yh=Mt($S),WS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HS={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"},qS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KS(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=qS[n])?!!s[n]:!1}function bu(){return KS}var QS=B({},Pi,{key:function(n){if(n.key){var s=WS[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=oa(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?HS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(n){return n.type==="keypress"?oa(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?oa(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),GS=Mt(QS),YS=B({},la,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xh=Mt(YS),XS=B({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),JS=Mt(XS),ZS=B({},xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),e1=Mt(ZS),t1=B({},la,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),n1=Mt(t1),r1=[9,13,27,32],ku=d&&"CompositionEvent"in window,Ri=null;d&&"documentMode"in document&&(Ri=document.documentMode);var s1=d&&"TextEvent"in window&&!Ri,Jh=d&&(!ku||Ri&&8<Ri&&11>=Ri),Zh=" ",ep=!1;function tp(n,s){switch(n){case"keyup":return r1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function np(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ss=!1;function i1(n,s){switch(n){case"compositionend":return np(s);case"keypress":return s.which!==32?null:(ep=!0,Zh);case"textInput":return n=s.data,n===Zh&&ep?null:n;default:return null}}function o1(n,s){if(Ss)return n==="compositionend"||!ku&&tp(n,s)?(n=Kh(),ia=yu=Yn=null,Ss=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Jh&&s.locale!=="ko"?null:s.data;default:return null}}var a1={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 rp(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!a1[n.type]:s==="textarea"}function sp(n,s,o,u){Eh(u),s=ha(s,"onChange"),0<s.length&&(o=new vu("onChange","change",null,o,u),n.push({event:o,listeners:s}))}var Ai=null,Oi=null;function l1(n){bp(n,0)}function ua(n){var s=Cs(n);if(Nr(s))return n}function u1(n,s){if(n==="change")return s}var ip=!1;if(d){var Eu;if(d){var Tu="oninput"in document;if(!Tu){var op=document.createElement("div");op.setAttribute("oninput","return;"),Tu=typeof op.oninput=="function"}Eu=Tu}else Eu=!1;ip=Eu&&(!document.documentMode||9<document.documentMode)}function ap(){Ai&&(Ai.detachEvent("onpropertychange",lp),Oi=Ai=null)}function lp(n){if(n.propertyName==="value"&&ua(Oi)){var s=[];sp(s,Oi,n,su(n)),_h(l1,s)}}function c1(n,s,o){n==="focusin"?(ap(),Ai=s,Oi=o,Ai.attachEvent("onpropertychange",lp)):n==="focusout"&&ap()}function d1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ua(Oi)}function f1(n,s){if(n==="click")return ua(s)}function h1(n,s){if(n==="input"||n==="change")return ua(s)}function p1(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var rn=typeof Object.is=="function"?Object.is:p1;function Ni(n,s){if(rn(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var o=Object.keys(n),u=Object.keys(s);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var f=o[u];if(!h.call(s,f)||!rn(n[f],s[f]))return!1}return!0}function up(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function cp(n,s){var o=up(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=s&&u>=s)return{node:o,offset:s-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=up(o)}}function dp(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?dp(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function fp(){for(var n=window,s=Wn();s instanceof n.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)n=s.contentWindow;else break;s=Wn(n.document)}return s}function Cu(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}function m1(n){var s=fp(),o=n.focusedElem,u=n.selectionRange;if(s!==o&&o&&o.ownerDocument&&dp(o.ownerDocument.documentElement,o)){if(u!==null&&Cu(o)){if(s=u.start,n=u.end,n===void 0&&(n=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(n,o.value.length);else if(n=(s=o.ownerDocument||document)&&s.defaultView||window,n.getSelection){n=n.getSelection();var f=o.textContent.length,p=Math.min(u.start,f);u=u.end===void 0?p:Math.min(u.end,f),!n.extend&&p>u&&(f=u,u=p,p=f),f=cp(o,p);var v=cp(o,u);f&&v&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==v.node||n.focusOffset!==v.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),n.removeAllRanges(),p>u?(n.addRange(s),n.extend(v.node,v.offset)):(s.setEnd(v.node,v.offset),n.addRange(s)))}}for(s=[],n=o;n=n.parentNode;)n.nodeType===1&&s.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)n=s[o],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var g1=d&&"documentMode"in document&&11>=document.documentMode,bs=null,Pu=null,Li=null,_u=!1;function hp(n,s,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;_u||bs==null||bs!==Wn(u)||(u=bs,"selectionStart"in u&&Cu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Li&&Ni(Li,u)||(Li=u,u=ha(Pu,"onSelect"),0<u.length&&(s=new vu("onSelect","select",null,s,o),n.push({event:s,listeners:u}),s.target=bs)))}function ca(n,s){var o={};return o[n.toLowerCase()]=s.toLowerCase(),o["Webkit"+n]="webkit"+s,o["Moz"+n]="moz"+s,o}var ks={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionend:ca("Transition","TransitionEnd")},Ru={},pp={};d&&(pp=document.createElement("div").style,"AnimationEvent"in window||(delete ks.animationend.animation,delete ks.animationiteration.animation,delete ks.animationstart.animation),"TransitionEvent"in window||delete ks.transitionend.transition);function da(n){if(Ru[n])return Ru[n];if(!ks[n])return n;var s=ks[n],o;for(o in s)if(s.hasOwnProperty(o)&&o in pp)return Ru[n]=s[o];return n}var mp=da("animationend"),gp=da("animationiteration"),yp=da("animationstart"),vp=da("transitionend"),wp=new Map,xp="abort auxClick 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(" ");function Xn(n,s){wp.set(n,s),l(s,[n])}for(var Au=0;Au<xp.length;Au++){var Ou=xp[Au],y1=Ou.toLowerCase(),v1=Ou[0].toUpperCase()+Ou.slice(1);Xn(y1,"on"+v1)}Xn(mp,"onAnimationEnd"),Xn(gp,"onAnimationIteration"),Xn(yp,"onAnimationStart"),Xn("dblclick","onDoubleClick"),Xn("focusin","onFocus"),Xn("focusout","onBlur"),Xn(vp,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),w1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function Sp(n,s,o){var u=n.type||"unknown-event";n.currentTarget=o,yS(u,s,void 0,n),n.currentTarget=null}function bp(n,s){s=(s&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],f=u.event;u=u.listeners;e:{var p=void 0;if(s)for(var v=u.length-1;0<=v;v--){var E=u[v],C=E.instance,D=E.currentTarget;if(E=E.listener,C!==p&&f.isPropagationStopped())break e;Sp(f,E,D),p=C}else for(v=0;v<u.length;v++){if(E=u[v],C=E.instance,D=E.currentTarget,E=E.listener,C!==p&&f.isPropagationStopped())break e;Sp(f,E,D),p=C}}}if(Go)throw n=lu,Go=!1,lu=null,n}function Fe(n,s){var o=s[Vu];o===void 0&&(o=s[Vu]=new Set);var u=n+"__bubble";o.has(u)||(kp(s,n,2,!1),o.add(u))}function Nu(n,s,o){var u=0;s&&(u|=4),kp(o,n,u,s)}var fa="_reactListening"+Math.random().toString(36).slice(2);
vendor: 11,683 bytes, lines 37-38
37function Di(n){if(!n[fa]){n[fa]=!0,i.forEach(function(o){o!=="selectionchange"&&(w1.has(o)||Nu(o,!1,n),Nu(o,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[fa]||(s[fa]=!0,Nu("selectionchange",!1,s))}}function kp(n,s,o,u){switch(qh(s)){case 1:var f=LS;break;case 4:f=jS;break;default:f=mu}o=f.bind(null,s,o,n),f=void 0,!au||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),u?f!==void 0?n.addEventListener(s,o,{capture:!0,passive:f}):n.addEventListener(s,o,!0):f!==void 0?n.addEventListener(s,o,{passive:f}):n.addEventListener(s,o,!1)}function Lu(n,s,o,u,f){var p=u;if((s&1)===0&&(s&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var E=u.stateNode.containerInfo;if(E===f||E.nodeType===8&&E.parentNode===f)break;if(v===4)for(v=u.return;v!==null;){var C=v.tag;if((C===3||C===4)&&(C=v.stateNode.containerInfo,C===f||C.nodeType===8&&C.parentNode===f))return;v=v.return}for(;E!==null;){if(v=jr(E),v===null)return;if(C=v.tag,C===5||C===6){u=p=v;continue e}E=E.parentNode}}u=u.return}_h(function(){var D=p,W=su(o),H=[];e:{var $=wp.get(n);if($!==void 0){var Y=vu,ee=n;switch(n){case"keypress":if(oa(o)===0)break e;case"keydown":case"keyup":Y=GS;break;case"focusin":ee="focus",Y=Su;break;case"focusout":ee="blur",Y=Su;break;case"beforeblur":case"afterblur":Y=Su;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=IS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=JS;break;case mp:case gp:case yp:Y=BS;break;case vp:Y=e1;break;case"scroll":Y=DS;break;case"wheel":Y=n1;break;case"copy":case"cut":case"paste":Y=zS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Xh}var re=(s&4)!==0,Ge=!re&&n==="scroll",N=re?$!==null?$+"Capture":null:$;re=[];for(var _=D,j;_!==null;){j=_;var Q=j.stateNode;if(j.tag===5&&Q!==null&&(j=Q,N!==null&&(Q=yi(_,N),Q!=null&&re.push(Mi(_,Q,j)))),Ge)break;_=_.return}0<re.length&&($=new Y($,ee,null,o,W),H.push({event:$,listeners:re}))}}if((s&7)===0){e:{if($=n==="mouseover"||n==="pointerover",Y=n==="mouseout"||n==="pointerout",$&&o!==ru&&(ee=o.relatedTarget||o.fromElement)&&(jr(ee)||ee[_n]))break e;if((Y||$)&&($=W.window===W?W:($=W.ownerDocument)?$.defaultView||$.parentWindow:window,Y?(ee=o.relatedTarget||o.toElement,Y=D,ee=ee?jr(ee):null,ee!==null&&(Ge=Lr(ee),ee!==Ge||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(Y=null,ee=D),Y!==ee)){if(re=Gh,Q="onMouseLeave",N="onMouseEnter",_="mouse",(n==="pointerout"||n==="pointerover")&&(re=Xh,Q="onPointerLeave",N="onPointerEnter",_="pointer"),Ge=Y==null?$:Cs(Y),j=ee==null?$:Cs(ee),$=new re(Q,_+"leave",Y,o,W),$.target=Ge,$.relatedTarget=j,Q=null,jr(W)===D&&(re=new re(N,_+"enter",ee,o,W),re.target=j,re.relatedTarget=Ge,Q=re),Ge=Q,Y&&ee)t:{for(re=Y,N=ee,_=0,j=re;j;j=Es(j))_++;for(j=0,Q=N;Q;Q=Es(Q))j++;for(;0<_-j;)re=Es(re),_--;for(;0<j-_;)N=Es(N),j--;for(;_--;){if(re===N||N!==null&&re===N.alternate)break t;re=Es(re),N=Es(N)}re=null}else re=null;Y!==null&&Ep(H,$,Y,re,!1),ee!==null&&Ge!==null&&Ep(H,Ge,ee,re,!0)}}e:{if($=D?Cs(D):window,Y=$.nodeName&&$.nodeName.toLowerCase(),Y==="select"||Y==="input"&&$.type==="file")var ie=u1;else if(rp($))if(ip)ie=h1;else{ie=d1;var oe=c1}else(Y=$.nodeName)&&Y.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(ie=f1);if(ie&&(ie=ie(n,D))){sp(H,ie,o,W);break e}oe&&oe(n,$,D),n==="focusout"&&(oe=$._wrapperState)&&oe.controlled&&$.type==="number"&&Jl($,"number",$.value)}switch(oe=D?Cs(D):window,n){case"focusin":(rp(oe)||oe.contentEditable==="true")&&(bs=oe,Pu=D,Li=null);break;case"focusout":Li=Pu=bs=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,hp(H,o,W);break;case"selectionchange":if(g1)break;case"keydown":case"keyup":hp(H,o,W)}var ae;if(ku)e:{switch(n){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Ss?tp(n,o)&&(ge="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(ge="onCompositionStart");ge&&(Jh&&o.locale!=="ko"&&(Ss||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Ss&&(ae=Kh()):(Yn=W,yu="value"in Yn?Yn.value:Yn.textContent,Ss=!0)),oe=ha(D,ge),0<oe.length&&(ge=new Yh(ge,n,null,o,W),H.push({event:ge,listeners:oe}),ae?ge.data=ae:(ae=np(o),ae!==null&&(ge.data=ae)))),(ae=s1?i1(n,o):o1(n,o))&&(D=ha(D,"onBeforeInput"),0<D.length&&(W=new Yh("onBeforeInput","beforeinput",null,o,W),H.push({event:W,listeners:D}),W.data=ae))}bp(H,s)})}function Mi(n,s,o){return{instance:n,listener:s,currentTarget:o}}function ha(n,s){for(var o=s+"Capture",u=[];n!==null;){var f=n,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=yi(n,o),p!=null&&u.unshift(Mi(n,p,f)),p=yi(n,s),p!=null&&u.push(Mi(n,p,f))),n=n.return}return u}function Es(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Ep(n,s,o,u,f){for(var p=s._reactName,v=[];o!==null&&o!==u;){var E=o,C=E.alternate,D=E.stateNode;if(C!==null&&C===u)break;E.tag===5&&D!==null&&(E=D,f?(C=yi(o,p),C!=null&&v.unshift(Mi(o,C,E))):f||(C=yi(o,p),C!=null&&v.push(Mi(o,C,E)))),o=o.return}v.length!==0&&n.push({event:s,listeners:v})}var x1=/\r\n?/g,S1=/\u0000|\uFFFD/g;function Tp(n){return(typeof n=="string"?n:""+n).replace(x1,`
38`).replace(S1,"")}function pa(n,s,o){if(s=Tp(s),Tp(n)!==s&&o)throw Error(r(425))}function ma(){}var ju=null,Du=null;function Mu(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Iu=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,Cp=typeof Promise=="function"?Promise:void 0,k1=typeof queueMicrotask=="function"?queueMicrotask:typeof Cp<"u"?function(n){return Cp.resolve(null).then(n).catch(E1)}:Iu;function E1(n){setTimeout(function(){throw n})}function Fu(n,s){var o=s,u=0;do{var f=o.nextSibling;if(n.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(u===0){n.removeChild(f),Ci(s);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=f}while(o);Ci(s)}function Jn(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return n}function Pp(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return n;s--}else o==="/$"&&s++}n=n.previousSibling}return null}var Ts=Math.random().toString(36).slice(2),gn="__reactFiber$"+Ts,Ii="__reactProps$"+Ts,_n="__reactContainer$"+Ts,Vu="__reactEvents$"+Ts,T1="__reactListeners$"+Ts,C1="__reactHandles$"+Ts;function jr(n){var s=n[gn];if(s)return s;for(var o=n.parentNode;o;){if(s=o[_n]||o[gn]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(n=Pp(n);n!==null;){if(o=n[gn])return o;n=Pp(n)}return s}n=o,o=n.parentNode}return null}function Fi(n){return n=n[gn]||n[_n],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Cs(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function ga(n){return n[Ii]||null}var Bu=[],Ps=-1;function Zn(n){return{current:n}}function Ve(n){0>Ps||(n.current=Bu[Ps],Bu[Ps]=null,Ps--)}function Ie(n,s){Ps++,Bu[Ps]=n.current,n.current=s}var er={},pt=Zn(er),Tt=Zn(!1),Dr=er;function _s(n,s){var o=n.type.contextTypes;if(!o)return er;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===s)return u.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in o)f[p]=s[p];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=s,n.__reactInternalMemoizedMaskedChildContext=f),f}function Ct(n){return n=n.childContextTypes,n!=null}function ya(){Ve(Tt),Ve(pt)}function _p(n,s,o){if(pt.current!==er)throw Error(r(168));Ie(pt,s),Ie(Tt,o)}function Rp(n,s,o){var u=n.stateNode;if(s=s.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var f in u)if(!(f in s))throw Error(r(108,Oe(n)||"Unknown",f));return B({},o,u)}function va(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||er,Dr=pt.current,Ie(pt,n),Ie(Tt,Tt.current),!0}function Ap(n,s,o){var u=n.stateNode;if(!u)throw Error(r(169));o?(n=Rp(n,s,Dr),u.__reactInternalMemoizedMergedChildContext=n,Ve(Tt),Ve(pt),Ie(pt,n)):Ve(Tt),Ie(Tt,o)}var Rn=null,wa=!1,Uu=!1;function Op(n){Rn===null?Rn=[n]:Rn.push(n)}function P1(n){wa=!0,Op(n)}function tr(){if(!Uu&&Rn!==null){Uu=!0;var n=0,s=Le;try{var o=Rn;for(Le=1;n<o.length;n++){var u=o[n];do u=u(!0);while(u!==null)}Rn=null,wa=!1}catch(f){throw Rn!==null&&(Rn=Rn.slice(n+1)),Lh(uu,tr),f}finally{Le=s,Uu=!1}}return null}var Rs=[],As=0,xa=null,Sa=0,$t=[],Wt=0,Mr=null,An=1,On="";function Ir(n,s){Rs[As++]=Sa,Rs[As++]=xa,xa=n,Sa=s}function Np(n,s,o){$t[Wt++]=An,$t[Wt++]=On,$t[Wt++]=Mr,Mr=n;var u=An;n=On;var f=32-nn(u)-1;u&=~(1<<f),o+=1;var p=32-nn(s)+f;if(30<p){var v=f-f%5;p=(u&(1<<v)-1).toString(32),u>>=v,f-=v,An=1<<32-nn(s)+f|o<<f|u,On=p+n}else An=1<<p|o<<f|u,On=n}function zu(n){n.return!==null&&(Ir(n,1),Np(n,1,0))}function $u(n){for(;n===xa;)xa=Rs[--As],Rs[As]=null,Sa=Rs[--As],Rs[As]=null;for(;n===Mr;)Mr=$t[--Wt],$t[Wt]=null,On=$t[--Wt],$t[Wt]=null,An=$t[--Wt],$t[Wt]=null}var It=null,Ft=null,Ue=!1,sn=null;function Lp(n,s){var o=Qt(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=n,s=n.deletions,s===null?(n.deletions=[o],n.flags|=16):s.push(o)}function jp(n,s){switch(n.tag){case 5:var o=n.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(n.stateNode=s,It=n,Ft=Jn(s.firstChild),!0):!1;case 6:return s=n.pendingProps===""||s.nodeType!==3?null:s,s!==null?(n.stateNode=s,It=n,Ft=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Mr!==null?{id:An,overflow:On}:null,n.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=Qt(18,null,null,0),o.stateNode=s,o.return=n,n.child=o,It=n,Ft=null,!0):!1;default:return!1}}function Wu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Hu(n){if(Ue){var s=Ft;if(s){var o=s;if(!jp(n,s)){if(Wu(n))throw Error(r(418));s=Jn(o.nextSibling);var u=It;s&&jp(n,s)?Lp(u,o):(n.flags=n.flags&-4097|2,Ue=!1,It=n)}}else{if(Wu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Ue=!1,It=n}}}function Dp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;It=n}function ba(n){if(n!==It)return!1;if(!Ue)return Dp(n),Ue=!0,!1;var s;if((s=n.tag!==3)&&!(s=n.tag!==5)&&(s=n.type,s=s!=="head"&&s!=="body"&&!Mu(n.type,n.memoizedProps)),s&&(s=Ft)){if(Wu(n))throw Mp(),Error(r(418));for(;s;)Lp(n,s),s=Jn(s.nextSibling)}if(Dp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,s=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"){if(s===0){Ft=Jn(n.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}n=n.nextSibling}Ft=null}}else Ft=It?Jn(n.stateNode.nextSibling):null;return!0}function Mp(){for(var n=Ft;n;)n=Jn(n.nextSibling)}function Os(){Ft=It=null,Ue=!1}function qu(n){sn===null?sn=[n]:sn.push(n)}var _1=M.ReactCurrentBatchConfig;function Vi(n,s,o){if(n=o.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(r(309));var u=o.stateNode}if(!u)throw Error(r(147,n));var f=u,p=""+n;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===p?s.ref:(s=function(v){var E=f.refs;v===null?delete E[p]:E[p]=v},s._stringRef=p,s)}
vendor: 5,618 bytes, line 38
38if(typeof n!="string")throw Error(r(284));if(!o._owner)throw Error(r(290,n))}return n}function ka(n,s){throw n=Object.prototype.toString.call(s),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n))}function Ip(n){var s=n._init;return s(n._payload)}function Fp(n){function s(N,_){if(n){var j=N.deletions;j===null?(N.deletions=[_],N.flags|=16):j.push(_)}}function o(N,_){if(!n)return null;for(;_!==null;)s(N,_),_=_.sibling;return null}function u(N,_){for(N=new Map;_!==null;)_.key!==null?N.set(_.key,_):N.set(_.index,_),_=_.sibling;return N}function f(N,_){return N=ur(N,_),N.index=0,N.sibling=null,N}function p(N,_,j){return N.index=j,n?(j=N.alternate,j!==null?(j=j.index,j<_?(N.flags|=2,_):j):(N.flags|=2,_)):(N.flags|=1048576,_)}function v(N){return n&&N.alternate===null&&(N.flags|=2),N}function E(N,_,j,Q){return _===null||_.tag!==6?(_=Ic(j,N.mode,Q),_.return=N,_):(_=f(_,j),_.return=N,_)}function C(N,_,j,Q){var ie=j.type;return ie===G?W(N,_,j.props.children,Q,j.key):_!==null&&(_.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&Ip(ie)===_.type)?(Q=f(_,j.props),Q.ref=Vi(N,_,j),Q.return=N,Q):(Q=Ka(j.type,j.key,j.props,null,N.mode,Q),Q.ref=Vi(N,_,j),Q.return=N,Q)}function D(N,_,j,Q){return _===null||_.tag!==4||_.stateNode.containerInfo!==j.containerInfo||_.stateNode.implementation!==j.implementation?(_=Fc(j,N.mode,Q),_.return=N,_):(_=f(_,j.children||[]),_.return=N,_)}function W(N,_,j,Q,ie){return _===null||_.tag!==7?(_=Hr(j,N.mode,Q,ie),_.return=N,_):(_=f(_,j),_.return=N,_)}function H(N,_,j){if(typeof _=="string"&&_!==""||typeof _=="number")return _=Ic(""+_,N.mode,j),_.return=N,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case U:return j=Ka(_.type,_.key,_.props,null,N.mode,j),j.ref=Vi(N,null,_),j.return=N,j;case K:return _=Fc(_,N.mode,j),_.return=N,_;case xe:var Q=_._init;return H(N,Q(_._payload),j)}if(pi(_)||se(_))return _=Hr(_,N.mode,j,null),_.return=N,_;ka(N,_)}return null}function $(N,_,j,Q){var ie=_!==null?_.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return ie!==null?null:E(N,_,""+j,Q);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return j.key===ie?C(N,_,j,Q):null;case K:return j.key===ie?D(N,_,j,Q):null;case xe:return ie=j._init,$(N,_,ie(j._payload),Q)}if(pi(j)||se(j))return ie!==null?null:W(N,_,j,Q,null);ka(N,j)}return null}function Y(N,_,j,Q,ie){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return N=N.get(j)||null,E(_,N,""+Q,ie);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case U:return N=N.get(Q.key===null?j:Q.key)||null,C(_,N,Q,ie);case K:return N=N.get(Q.key===null?j:Q.key)||null,D(_,N,Q,ie);case xe:var oe=Q._init;return Y(N,_,j,oe(Q._payload),ie)}if(pi(Q)||se(Q))return N=N.get(j)||null,W(_,N,Q,ie,null);ka(_,Q)}return null}function ee(N,_,j,Q){for(var ie=null,oe=null,ae=_,ge=_=0,ot=null;ae!==null&&ge<j.length;ge++){ae.index>ge?(ot=ae,ae=null):ot=ae.sibling;var Re=$(N,ae,j[ge],Q);if(Re===null){ae===null&&(ae=ot);break}n&&ae&&Re.alternate===null&&s(N,ae),_=p(Re,_,ge),oe===null?ie=Re:oe.sibling=Re,oe=Re,ae=ot}if(ge===j.length)return o(N,ae),Ue&&Ir(N,ge),ie;if(ae===null){for(;ge<j.length;ge++)ae=H(N,j[ge],Q),ae!==null&&(_=p(ae,_,ge),oe===null?ie=ae:oe.sibling=ae,oe=ae);return Ue&&Ir(N,ge),ie}for(ae=u(N,ae);ge<j.length;ge++)ot=Y(ae,N,ge,j[ge],Q),ot!==null&&(n&&ot.alternate!==null&&ae.delete(ot.key===null?ge:ot.key),_=p(ot,_,ge),oe===null?ie=ot:oe.sibling=ot,oe=ot);return n&&ae.forEach(function(cr){return s(N,cr)}),Ue&&Ir(N,ge),ie}function re(N,_,j,Q){var ie=se(j);if(typeof ie!="function")throw Error(r(150));if(j=ie.call(j),j==null)throw Error(r(151));for(var oe=ie=null,ae=_,ge=_=0,ot=null,Re=j.next();ae!==null&&!Re.done;ge++,Re=j.next()){ae.index>ge?(ot=ae,ae=null):ot=ae.sibling;var cr=$(N,ae,Re.value,Q);if(cr===null){ae===null&&(ae=ot);break}n&&ae&&cr.alternate===null&&s(N,ae),_=p(cr,_,ge),oe===null?ie=cr:oe.sibling=cr,oe=cr,ae=ot}if(Re.done)return o(N,ae),Ue&&Ir(N,ge),ie;if(ae===null){for(;!Re.done;ge++,Re=j.next())Re=H(N,Re.value,Q),Re!==null&&(_=p(Re,_,ge),oe===null?ie=Re:oe.sibling=Re,oe=Re);return Ue&&Ir(N,ge),ie}for(ae=u(N,ae);!Re.done;ge++,Re=j.next())Re=Y(ae,N,ge,Re.value,Q),Re!==null&&(n&&Re.alternate!==null&&ae.delete(Re.key===null?ge:Re.key),_=p(Re,_,ge),oe===null?ie=Re:oe.sibling=Re,oe=Re);return n&&ae.forEach(function(ab){return s(N,ab)}),Ue&&Ir(N,ge),ie}function Ge(N,_,j,Q){if(typeof j=="object"&&j!==null&&j.type===G&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case U:e:{for(var ie=j.key,oe=_;oe!==null;){if(oe.key===ie){if(ie=j.type,ie===G){if(oe.tag===7){o(N,oe.sibling),_=f(oe,j.props.children),_.return=N,N=_;break e}}else if(oe.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&Ip(ie)===oe.type){o(N,oe.sibling),_=f(oe,j.props),_.ref=Vi(N,oe,j),_.return=N,N=_;break e}o(N,oe);break}else s(N,oe);oe=oe.sibling}j.type===G?(_=Hr(j.props.children,N.mode,Q,j.key),_.return=N,N=_):(Q=Ka(j.type,j.key,j.props,null,N.mode,Q),Q.ref=Vi(N,_,j),Q.return=N,N=Q)}return v(N);case K:e:{for(oe=j.key;_!==null;){if(_.key===oe)if(_.tag===4&&_.stateNode.containerInfo===j.containerInfo&&_.stateNode.implementation===j.implementation){o(N,_.sibling),_=f(_,j.children||[]),_.return=N,N=_;break e}else{o(N,_);break}else s(N,_);_=_.sibling}_=Fc(j,N.mode,Q),_.return=N,N=_}return v(N);case xe:return oe=j._init,Ge(N,_,oe(j._payload),Q)}if(pi(j))return ee(N,_,j,Q);if(se(j))return re(N,_,j,Q);ka(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,_!==null&&_.tag===6?(o(N,_.sibling),_=f(_,j),_.return=N,N=_):(o(N,_),_=Ic(j,N.mode,Q),_.return=N,N=_),v(N)):o(N,_)}return Ge}
vendor: 9,353 bytes, line 38
38var Ns=Fp(!0),Vp=Fp(!1),Ea=Zn(null),Ta=null,Ls=null,Ku=null;function Qu(){Ku=Ls=Ta=null}function Gu(n){var s=Ea.current;Ve(Ea),n._currentValue=s}function Yu(n,s,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),n===o)break;n=n.return}}function js(n,s){Ta=n,Ku=Ls=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&s)!==0&&(Pt=!0),n.firstContext=null)}function Ht(n){var s=n._currentValue;if(Ku!==n)if(n={context:n,memoizedValue:s,next:null},Ls===null){if(Ta===null)throw Error(r(308));Ls=n,Ta.dependencies={lanes:0,firstContext:n}}else Ls=Ls.next=n;return s}var Fr=null;function Xu(n){Fr===null?Fr=[n]:Fr.push(n)}function Bp(n,s,o,u){var f=s.interleaved;return f===null?(o.next=o,Xu(s)):(o.next=f.next,f.next=o),s.interleaved=o,Nn(n,u)}function Nn(n,s){n.lanes|=s;var o=n.alternate;for(o!==null&&(o.lanes|=s),o=n,n=n.return;n!==null;)n.childLanes|=s,o=n.alternate,o!==null&&(o.childLanes|=s),o=n,n=n.return;return o.tag===3?o.stateNode:null}var nr=!1;function Ju(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Up(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Ln(n,s){return{eventTime:n,lane:s,tag:0,payload:null,callback:null,next:null}}function rr(n,s,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Pe&2)!==0){var f=u.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s,Nn(n,o)}return f=u.interleaved,f===null?(s.next=s,Xu(u)):(s.next=f.next,f.next=s),u.interleaved=s,Nn(n,o)}function Ca(n,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var u=s.lanes;u&=n.pendingLanes,o|=u,s.lanes=o,fu(n,o)}}function zp(n,s){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var f=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};p===null?f=p=v:p=p.next=v,o=o.next}while(o!==null);p===null?f=p=s:p=p.next=s}else f=p=s;o={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:u.shared,effects:u.effects},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=s:n.next=s,o.lastBaseUpdate=s}function Pa(n,s,o,u){var f=n.updateQueue;nr=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var C=E,D=C.next;C.next=null,v===null?p=D:v.next=D,v=C;var W=n.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==v&&(E===null?W.firstBaseUpdate=D:E.next=D,W.lastBaseUpdate=C))}if(p!==null){var H=f.baseState;v=0,W=D=C=null,E=p;do{var $=E.lane,Y=E.eventTime;if((u&$)===$){W!==null&&(W=W.next={eventTime:Y,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var ee=n,re=E;switch($=s,Y=o,re.tag){case 1:if(ee=re.payload,typeof ee=="function"){H=ee.call(Y,H,$);break e}H=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=re.payload,$=typeof ee=="function"?ee.call(Y,H,$):ee,$==null)break e;H=B({},H,$);break e;case 2:nr=!0}}E.callback!==null&&E.lane!==0&&(n.flags|=64,$=f.effects,$===null?f.effects=[E]:$.push(E))}else Y={eventTime:Y,lane:$,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(D=W=Y,C=H):W=W.next=Y,v|=$;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;$=E,E=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);if(W===null&&(C=H),f.baseState=C,f.firstBaseUpdate=D,f.lastBaseUpdate=W,s=f.shared.interleaved,s!==null){f=s;do v|=f.lane,f=f.next;while(f!==s)}else p===null&&(f.shared.lanes=0);Ur|=v,n.lanes=v,n.memoizedState=H}}function $p(n,s,o){if(n=s.effects,s.effects=null,n!==null)for(s=0;s<n.length;s++){var u=n[s],f=u.callback;if(f!==null){if(u.callback=null,u=o,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var Bi={},yn=Zn(Bi),Ui=Zn(Bi),zi=Zn(Bi);function Vr(n){if(n===Bi)throw Error(r(174));return n}function Zu(n,s){switch(Ie(zi,s),Ie(Ui,n),Ie(yn,Bi),n=s.nodeType,n){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:eu(null,"");break;default:n=n===8?s.parentNode:s,s=n.namespaceURI||null,n=n.tagName,s=eu(s,n)}Ve(yn),Ie(yn,s)}function Ds(){Ve(yn),Ve(Ui),Ve(zi)}function Wp(n){Vr(zi.current);var s=Vr(yn.current),o=eu(s,n.type);s!==o&&(Ie(Ui,n),Ie(yn,o))}function ec(n){Ui.current===n&&(Ve(yn),Ve(Ui))}var ze=Zn(0);function _a(n){for(var s=n;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var tc=[];function nc(){for(var n=0;n<tc.length;n++)tc[n]._workInProgressVersionPrimary=null;tc.length=0}var Ra=M.ReactCurrentDispatcher,rc=M.ReactCurrentBatchConfig,Br=0,$e=null,tt=null,st=null,Aa=!1,$i=!1,Wi=0,R1=0;function mt(){throw Error(r(321))}function sc(n,s){if(s===null)return!1;for(var o=0;o<s.length&&o<n.length;o++)if(!rn(n[o],s[o]))return!1;return!0}function ic(n,s,o,u,f,p){if(Br=p,$e=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ra.current=n===null||n.memoizedState===null?L1:j1,n=o(u,f),$i){p=0;do{if($i=!1,Wi=0,25<=p)throw Error(r(301));p+=1,st=tt=null,s.updateQueue=null,Ra.current=D1,n=o(u,f)}while($i)}if(Ra.current=La,s=tt!==null&&tt.next!==null,Br=0,st=tt=$e=null,Aa=!1,s)throw Error(r(300));return n}function oc(){var n=Wi!==0;return Wi=0,n}function vn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?$e.memoizedState=st=n:st=st.next=n,st}function qt(){if(tt===null){var n=$e.alternate;n=n!==null?n.memoizedState:null}else n=tt.next;var s=st===null?$e.memoizedState:st.next;if(s!==null)st=s,tt=n;else{if(n===null)throw Error(r(310));tt=n,n={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},st===null?$e.memoizedState=st=n:st=st.next=n}return st}function Hi(n,s){return typeof s=="function"?s(n):s}function ac(n){var s=qt(),o=s.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var u=tt,f=u.baseQueue,p=o.pending;if(p!==null){if(f!==null){var v=f.next;f.next=p.next,p.next=v}u.baseQueue=f=p,o.pending=null}if(f!==null){p=f.next,u=u.baseState;var E=v=null,C=null,D=p;do{var W=D.lane;if((Br&W)===W)C!==null&&(C=C.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),u=D.hasEagerState?D.eagerState:n(u,D.action);else{var H={lane:W,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};C===null?(E=C=H,v=u):C=C.next=H,$e.lanes|=W,Ur|=W}D=D.next}while(D!==null&&D!==p);C===null?v=u:C.next=E,rn(u,s.memoizedState)||(Pt=!0),s.memoizedState=u,s.baseState=v,s.baseQueue=C,o.lastRenderedState=u}if(n=o.interleaved,n!==null){f=n;do p=f.lane,$e.lanes|=p,Ur|=p,f=f.next;while(f!==n)}else f===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function lc(n){var s=qt(),o=s.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var u=o.dispatch,f=o.pending,p=s.memoizedState;if(f!==null){o.pending=null;var v=f=f.next;do p=n(p,v.action),v=v.next;while(v!==f);rn(p,s.memoizedState)||(Pt=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),o.lastRenderedState=p}return[p,u]}function Hp(){}function qp(n,s){var o=$e,u=qt(),f=s(),p=!rn(u.memoizedState,f);if(p&&(u.memoizedState=f,Pt=!0),u=u.queue,uc(Gp.bind(null,o,u,n),[n]),u.getSnapshot!==s||p||st!==null&&st.memoizedState.tag&1){if(o.flags|=2048,qi(9,Qp.bind(null,o,u,f,s),void 0,null),it===null)throw Error(r(349));(Br&30)!==0||Kp(o,s,f)}return f}function Kp(n,s,o){n.flags|=16384,n={getSnapshot:s,value:o},s=$e.updateQueue,s===null?(s={lastEffect:null,stores:null},$e.updateQueue=s,s.stores=[n]):(o=s.stores,o===null?s.stores=[n]:o.push(n))}function Qp(n,s,o,u){s.value=o,s.getSnapshot=u,Yp(s)&&Xp(n)}function Gp(n,s,o){return o(function(){Yp(s)&&Xp(n)})}function Yp(n){var s=n.getSnapshot;n=n.value;try{var o=s();return!rn(n,o)}catch{return!0}}function Xp(n){var s=Nn(n,1);s!==null&&un(s,n,1,-1)}function Jp(n){var s=vn();return typeof n=="function"&&(n=n()),s.memoizedState=s.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:n},s.queue=n,n=n.dispatch=N1.bind(null,$e,n),[s.memoizedState,n]}function qi(n,s,o,u){return n={tag:n,create:s,destroy:o,deps:u,next:null},s=$e.updateQueue,s===null?(s={lastEffect:null,stores:null},$e.updateQueue=s,s.lastEffect=n.next=n):(o=s.lastEffect,o===null?s.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,s.lastEffect=n)),n}function Zp(){return qt().memoizedState}function Oa(n,s,o,u){var f=vn();$e.flags|=n,f.memoizedState=qi(1|s,o,void 0,u===void 0?null:u)}function Na(n,s,o,u){var f=qt();u=u===void 0?null:u;var p=void 0;if(tt!==null){var v=tt.memoizedState;if(p=v.destroy,u!==null&&sc(u,v.deps)){f.memoizedState=qi(s,o,p,u);return}}$e.flags|=n,f.memoizedState=qi(1|s,o,p,u)}function em(n,s){return Oa(8390656,8,n,s)}function uc(n,s){return Na(2048,8,n,s)}function tm(n,s){return Na(4,2,n,s)}function nm(n,s){return Na(4,4,n,s)}
vendor: 4,204 bytes, line 38
38function rm(n,s){if(typeof s=="function")return n=n(),s(n),function(){s(null)};if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function sm(n,s,o){return o=o!=null?o.concat([n]):null,Na(4,4,rm.bind(null,s,n),o)}function cc(){}function im(n,s){var o=qt();s=s===void 0?null:s;var u=o.memoizedState;return u!==null&&s!==null&&sc(s,u[1])?u[0]:(o.memoizedState=[n,s],n)}function om(n,s){var o=qt();s=s===void 0?null:s;var u=o.memoizedState;return u!==null&&s!==null&&sc(s,u[1])?u[0]:(n=n(),o.memoizedState=[n,s],n)}function am(n,s,o){return(Br&21)===0?(n.baseState&&(n.baseState=!1,Pt=!0),n.memoizedState=o):(rn(o,s)||(o=Ih(),$e.lanes|=o,Ur|=o,n.baseState=!0),s)}function A1(n,s){var o=Le;Le=o!==0&&4>o?o:4,n(!0);var u=rc.transition;rc.transition={};try{n(!1),s()}finally{Le=o,rc.transition=u}}function lm(){return qt().memoizedState}function O1(n,s,o){var u=ar(n);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},um(n))cm(s,o);else if(o=Bp(n,s,o,u),o!==null){var f=kt();un(o,n,u,f),dm(o,s,u)}}function N1(n,s,o){var u=ar(n),f={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(um(n))cm(s,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var v=s.lastRenderedState,E=p(v,o);if(f.hasEagerState=!0,f.eagerState=E,rn(E,v)){var C=s.interleaved;C===null?(f.next=f,Xu(s)):(f.next=C.next,C.next=f),s.interleaved=f;return}}catch{}finally{}o=Bp(n,s,f,u),o!==null&&(f=kt(),un(o,n,u,f),dm(o,s,u))}}function um(n){var s=n.alternate;return n===$e||s!==null&&s===$e}function cm(n,s){$i=Aa=!0;var o=n.pending;o===null?s.next=s:(s.next=o.next,o.next=s),n.pending=s}function dm(n,s,o){if((o&4194240)!==0){var u=s.lanes;u&=n.pendingLanes,o|=u,s.lanes=o,fu(n,o)}}var La={readContext:Ht,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},L1={readContext:Ht,useCallback:function(n,s){return vn().memoizedState=[n,s===void 0?null:s],n},useContext:Ht,useEffect:em,useImperativeHandle:function(n,s,o){return o=o!=null?o.concat([n]):null,Oa(4194308,4,rm.bind(null,s,n),o)},useLayoutEffect:function(n,s){return Oa(4194308,4,n,s)},useInsertionEffect:function(n,s){return Oa(4,2,n,s)},useMemo:function(n,s){var o=vn();return s=s===void 0?null:s,n=n(),o.memoizedState=[n,s],n},useReducer:function(n,s,o){var u=vn();return s=o!==void 0?o(s):s,u.memoizedState=u.baseState=s,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:s},u.queue=n,n=n.dispatch=O1.bind(null,$e,n),[u.memoizedState,n]},useRef:function(n){var s=vn();return n={current:n},s.memoizedState=n},useState:Jp,useDebugValue:cc,useDeferredValue:function(n){return vn().memoizedState=n},useTransition:function(){var n=Jp(!1),s=n[0];return n=A1.bind(null,n[1]),vn().memoizedState=n,[s,n]},useMutableSource:function(){},useSyncExternalStore:function(n,s,o){var u=$e,f=vn();if(Ue){if(o===void 0)throw Error(r(407));o=o()}else{if(o=s(),it===null)throw Error(r(349));(Br&30)!==0||Kp(u,s,o)}f.memoizedState=o;var p={value:o,getSnapshot:s};return f.queue=p,em(Gp.bind(null,u,p,n),[n]),u.flags|=2048,qi(9,Qp.bind(null,u,p,o,s),void 0,null),o},useId:function(){var n=vn(),s=it.identifierPrefix;if(Ue){var o=On,u=An;o=(u&~(1<<32-nn(u)-1)).toString(32)+o,s=":"+s+"R"+o,o=Wi++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=R1++,s=":"+s+"r"+o.toString(32)+":";return n.memoizedState=s},unstable_isNewReconciler:!1},j1={readContext:Ht,useCallback:im,useContext:Ht,useEffect:uc,useImperativeHandle:sm,useInsertionEffect:tm,useLayoutEffect:nm,useMemo:om,useReducer:ac,useRef:Zp,useState:function(){return ac(Hi)},useDebugValue:cc,useDeferredValue:function(n){var s=qt();return am(s,tt.memoizedState,n)},useTransition:function(){var n=ac(Hi)[0],s=qt().memoizedState;return[n,s]},useMutableSource:Hp,useSyncExternalStore:qp,useId:lm,unstable_isNewReconciler:!1},D1={readContext:Ht,useCallback:im,useContext:Ht,useEffect:uc,useImperativeHandle:sm,useInsertionEffect:tm,useLayoutEffect:nm,useMemo:om,useReducer:lc,useRef
vendor: 4,934 bytes, lines 38-40
38:Zp,useState:function(){return lc(Hi)},useDebugValue:cc,useDeferredValue:function(n){var s=qt();return tt===null?s.memoizedState=n:am(s,tt.memoizedState,n)},useTransition:function(){var n=lc(Hi)[0],s=qt().memoizedState;return[n,s]},useMutableSource:Hp,useSyncExternalStore:qp,useId:lm,unstable_isNewReconciler:!1};function on(n,s){if(n&&n.defaultProps){s=B({},s),n=n.defaultProps;for(var o in n)s[o]===void 0&&(s[o]=n[o]);return s}return s}function dc(n,s,o,u){s=n.memoizedState,o=o(u,s),o=o==null?s:B({},s,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var ja={isMounted:function(n){return(n=n._reactInternals)?Lr(n)===n:!1},enqueueSetState:function(n,s,o){n=n._reactInternals;var u=kt(),f=ar(n),p=Ln(u,f);p.payload=s,o!=null&&(p.callback=o),s=rr(n,p,f),s!==null&&(un(s,n,f,u),Ca(s,n,f))},enqueueReplaceState:function(n,s,o){n=n._reactInternals;var u=kt(),f=ar(n),p=Ln(u,f);p.tag=1,p.payload=s,o!=null&&(p.callback=o),s=rr(n,p,f),s!==null&&(un(s,n,f,u),Ca(s,n,f))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var o=kt(),u=ar(n),f=Ln(o,u);f.tag=2,s!=null&&(f.callback=s),s=rr(n,f,u),s!==null&&(un(s,n,u,o),Ca(s,n,u))}};function fm(n,s,o,u,f,p,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,v):s.prototype&&s.prototype.isPureReactComponent?!Ni(o,u)||!Ni(f,p):!0}function hm(n,s,o){var u=!1,f=er,p=s.contextType;return typeof p=="object"&&p!==null?p=Ht(p):(f=Ct(s)?Dr:pt.current,u=s.contextTypes,p=(u=u!=null)?_s(n,f):er),s=new s(o,p),n.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ja,n.stateNode=s,s._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=p),s}function pm(n,s,o,u){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,u),s.state!==n&&ja.enqueueReplaceState(s,s.state,null)}function fc(n,s,o,u){var f=n.stateNode;f.props=o,f.state=n.memoizedState,f.refs={},Ju(n);var p=s.contextType;typeof p=="object"&&p!==null?f.context=Ht(p):(p=Ct(s)?Dr:pt.current,f.context=_s(n,p)),f.state=n.memoizedState,p=s.getDerivedStateFromProps,typeof p=="function"&&(dc(n,s,p,o),f.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(s=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),s!==f.state&&ja.enqueueReplaceState(f,f.state,null),Pa(n,o,f,u),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308)}function Ms(n,s){try{var o="",u=s;do o+=le(u),u=u.return;while(u);var f=o}catch(p){f=`
39Error generating stack: `+p.message+`
40`+p.stack}return{value:n,source:s,stack:f,digest:null}}function hc(n,s,o){return{value:n,source:null,stack:o??null,digest:s??null}}function pc(n,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var M1=typeof WeakMap=="function"?WeakMap:Map;function mm(n,s,o){o=Ln(-1,o),o.tag=3,o.payload={element:null};var u=s.value;return o.callback=function(){Ua||(Ua=!0,Rc=u),pc(n,s)},o}function gm(n,s,o){o=Ln(-1,o),o.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var f=s.value;o.payload=function(){return u(f)},o.callback=function(){pc(n,s)}}var p=n.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(o.callback=function(){pc(n,s),typeof u!="function"&&(ir===null?ir=new Set([this]):ir.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})}),o}function ym(n,s,o){var u=n.pingCache;if(u===null){u=n.pingCache=new M1;var f=new Set;u.set(s,f)}else f=u.get(s),f===void 0&&(f=new Set,u.set(s,f));f.has(o)||(f.add(o),n=Y1.bind(null,n,s,o),s.then(n,n))}function vm(n){do{var s;if((s=n.tag===13)&&(s=n.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return n;n=n.return}while(n!==null);return null}function wm(n,s,o,u,f){return(n.mode&1)===0?(n===s?n.flags|=65536:(n.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=Ln(-1,1),s.tag=2,rr(o,s,1))),o.lanes|=1),n):(n.flags|=65536,n.lanes=f,n)}var I1=M.ReactCurrentOwner,Pt=!1;function bt(n,s,o,u){s.child=n===null?Vp(s,null,o,u):Ns(s,n.child,o,u)}function xm(n,s,o,u,f){o=o.render;var p=s.ref;return js(s,f),u=ic(n,s,o,u,p,f),o=oc(),n!==null&&!Pt?(s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~f,jn(n,s,f)):(Ue&&o&&zu(s),s.flags|=1,bt(n,s,u,f),s.child)}function Sm(n,s,o,u,f){if(n===null){var p=o.type;return typeof p=="function"&&!Mc(p)&&p.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=p,bm(n,s,p,u,f)):(n=Ka(o.type,null,u,s,s.mode,f),n.ref=s.ref,n.return=s,s.child=n)}if(p=n.child,(n.lanes&f)===0){var v=p.memoizedProps;
vendor: 14,750 bytes, line 40
40if(o=o.compare,o=o!==null?o:Ni,o(v,u)&&n.ref===s.ref)return jn(n,s,f)}return s.flags|=1,n=ur(p,u),n.ref=s.ref,n.return=s,s.child=n}function bm(n,s,o,u,f){if(n!==null){var p=n.memoizedProps;if(Ni(p,u)&&n.ref===s.ref)if(Pt=!1,s.pendingProps=u=p,(n.lanes&f)!==0)(n.flags&131072)!==0&&(Pt=!0);else return s.lanes=n.lanes,jn(n,s,f)}return mc(n,s,o,u,f)}function km(n,s,o){var u=s.pendingProps,f=u.children,p=n!==null?n.memoizedState:null;if(u.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(Fs,Vt),Vt|=o;else{if((o&1073741824)===0)return n=p!==null?p.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:n,cachePool:null,transitions:null},s.updateQueue=null,Ie(Fs,Vt),Vt|=n,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=p!==null?p.baseLanes:o,Ie(Fs,Vt),Vt|=u}else p!==null?(u=p.baseLanes|o,s.memoizedState=null):u=o,Ie(Fs,Vt),Vt|=u;return bt(n,s,f,o),s.child}function Em(n,s){var o=s.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function mc(n,s,o,u,f){var p=Ct(o)?Dr:pt.current;return p=_s(s,p),js(s,f),o=ic(n,s,o,u,p,f),u=oc(),n!==null&&!Pt?(s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~f,jn(n,s,f)):(Ue&&u&&zu(s),s.flags|=1,bt(n,s,o,f),s.child)}function Tm(n,s,o,u,f){if(Ct(o)){var p=!0;va(s)}else p=!1;if(js(s,f),s.stateNode===null)Ma(n,s),hm(s,o,u),fc(s,o,u,f),u=!0;else if(n===null){var v=s.stateNode,E=s.memoizedProps;v.props=E;var C=v.context,D=o.contextType;typeof D=="object"&&D!==null?D=Ht(D):(D=Ct(o)?Dr:pt.current,D=_s(s,D));var W=o.getDerivedStateFromProps,H=typeof W=="function"||typeof v.getSnapshotBeforeUpdate=="function";H||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==u||C!==D)&&pm(s,v,u,D),nr=!1;var $=s.memoizedState;v.state=$,Pa(s,u,v,f),C=s.memoizedState,E!==u||$!==C||Tt.current||nr?(typeof W=="function"&&(dc(s,o,W,u),C=s.memoizedState),(E=nr||fm(s,o,E,u,$,C,D))?(H||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"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=C),v.props=u,v.state=C,v.context=D,u=E):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{v=s.stateNode,Up(n,s),E=s.memoizedProps,D=s.type===s.elementType?E:on(s.type,E),v.props=D,H=s.pendingProps,$=v.context,C=o.contextType,typeof C=="object"&&C!==null?C=Ht(C):(C=Ct(o)?Dr:pt.current,C=_s(s,C));var Y=o.getDerivedStateFromProps;(W=typeof Y=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==H||$!==C)&&pm(s,v,u,C),nr=!1,$=s.memoizedState,v.state=$,Pa(s,u,v,f);var ee=s.memoizedState;E!==H||$!==ee||Tt.current||nr?(typeof Y=="function"&&(dc(s,o,Y,u),ee=s.memoizedState),(D=nr||fm(s,o,D,u,$,ee,C)||!1)?(W||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,ee,C),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,ee,C)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=ee),v.props=u,v.state=ee,v.context=C,u=D):(typeof v.componentDidUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=1024),u=!1)}return gc(n,s,o,u,p,f)}function gc(n,s,o,u,f,p){Em(n,s);var v=(s.flags&128)!==0;if(!u&&!v)return f&&Ap(s,o,!1),jn(n,s,p);u=s.stateNode,I1.current=s;var E=v&&typeof o.getDerivedStateFromError!="function"?null:u.render();return s.flags|=1,n!==null&&v?(s.child=Ns(s,n.child,null,p),s.child=Ns(s,null,E,p)):bt(n,s,E,p),s.memoizedState=u.state,f&&Ap(s,o,!0),s.child}function Cm(n){var s=n.stateNode;s.pendingContext?_p(n,s.pendingContext,s.pendingContext!==s.context):s.context&&_p(n,s.context,!1),Zu(n,s.containerInfo)}function Pm(n,s,o,u,f){return Os(),qu(f),s.flags|=256,bt(n,s,o,u),s.child}var yc={dehydrated:null,treeContext:null,retryLane:0};function vc(n){return{baseLanes:n,cachePool:null,transitions:null}}function _m(n,s,o){var u=s.pendingProps,f=ze.current,p=!1,v=(s.flags&128)!==0,E;if((E=v)||(E=n!==null&&n.memoizedState===null?!1:(f&2)!==0),E?(p=!0,s.flags&=-129):(n===null||n.memoizedState!==null)&&(f|=1),Ie(ze,f&1),n===null)return Hu(s),n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((s.mode&1)===0?s.lanes=1:n.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(v=u.children,n=u.fallback,p?(u=s.mode,p=s.child,v={mode:"hidden",children:v},(u&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=v):p=Qa(v,u,0,null),n=Hr(n,u,o,null),p.return=s,n.return=s,p.sibling=n,s.child=p,s.child.memoizedState=vc(o),s.memoizedState=yc,n):wc(s,v));if(f=n.memoizedState,f!==null&&(E=f.dehydrated,E!==null))return F1(n,s,v,u,E,f,o);if(p){p=u.fallback,v=s.mode,f=n.child,E=f.sibling;var C={mode:"hidden",children:u.children};return(v&1)===0&&s.child!==f?(u=s.child,u.childLanes=0,u.pendingProps=C,s.deletions=null):(u=ur(f,C),u.subtreeFlags=f.subtreeFlags&14680064),E!==null?p=ur(E,p):(p=Hr(p,v,o,null),p.flags|=2),p.return=s,u.return=s,u.sibling=p,s.child=u,u=p,p=s.child,v=n.child.memoizedState,v=v===null?vc(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},p.memoizedState=v,p.childLanes=n.childLanes&~o,s.memoizedState=yc,u}return p=n.child,n=p.sibling,u=ur(p,{mode:"visible",children:u.children}),(s.mode&1)===0&&(u.lanes=o),u.return=s,u.sibling=null,n!==null&&(o=s.deletions,o===null?(s.deletions=[n],s.flags|=16):o.push(n)),s.child=u,s.memoizedState=null,u}function wc(n,s){return s=Qa({mode:"visible",children:s},n.mode,0,null),s.return=n,n.child=s}function Da(n,s,o,u){return u!==null&&qu(u),Ns(s,n.child,null,o),n=wc(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function F1(n,s,o,u,f,p,v){if(o)return s.flags&256?(s.flags&=-257,u=hc(Error(r(422))),Da(n,s,v,u)):s.memoizedState!==null?(s.child=n.child,s.flags|=128,null):(p=u.fallback,f=s.mode,u=Qa({mode:"visible",children:u.children},f,0,null),p=Hr(p,f,v,null),p.flags|=2,u.return=s,p.return=s,u.sibling=p,s.child=u,(s.mode&1)!==0&&Ns(s,n.child,null,v),s.child.memoizedState=vc(v),s.memoizedState=yc,p);if((s.mode&1)===0)return Da(n,s,v,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var E=u.dgst;return u=E,p=Error(r(419)),u=hc(p,u,void 0),Da(n,s,v,u)}if(E=(v&n.childLanes)!==0,Pt||E){if(u=it,u!==null){switch(v&-v){case 4:f=2;break;case 16:f=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|v))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,Nn(n,f),un(u,n,f,-1))}return Dc(),u=hc(Error(r(421))),Da(n,s,v,u)}return f.data==="$?"?(s.flags|=128,s.child=n.child,s=X1.bind(null,n),f._reactRetry=s,null):(n=p.treeContext,Ft=Jn(f.nextSibling),It=s,Ue=!0,sn=null,n!==null&&($t[Wt++]=An,$t[Wt++]=On,$t[Wt++]=Mr,An=n.id,On=n.overflow,Mr=s),s=wc(s,u.children),s.flags|=4096,s)}function Rm(n,s,o){n.lanes|=s;var u=n.alternate;u!==null&&(u.lanes|=s),Yu(n.return,s,o)}function xc(n,s,o,u,f){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:f}:(p.isBackwards=s,p.rendering=null,p.renderingStartTime=0,p.last=u,p.tail=o,p.tailMode=f)}function Am(n,s,o){var u=s.pendingProps,f=u.revealOrder,p=u.tail;if(bt(n,s,u.children,o),u=ze.current,(u&2)!==0)u=u&1|2,s.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Rm(n,o,s);else if(n.tag===19)Rm(n,o,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(Ie(ze,u),(s.mode&1)===0)s.memoizedState=null;else switch(f){case"forwards":for(o=s.child,f=null;o!==null;)n=o.alternate,n!==null&&_a(n)===null&&(f=o),o=o.sibling;o=f,o===null?(f=s.child,s.child=null):(f=o.sibling,o.sibling=null),xc(s,!1,f,o,p);break;case"backwards":for(o=null,f=s.child,s.child=null;f!==null;){if(n=f.alternate,n!==null&&_a(n)===null){s.child=f;break}n=f.sibling,f.sibling=o,o=f,f=n}xc(s,!0,o,null,p);break;case"together":xc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ma(n,s){(s.mode&1)===0&&n!==null&&(n.alternate=null,s.alternate=null,s.flags|=2)}function jn(n,s,o){if(n!==null&&(s.dependencies=n.dependencies),Ur|=s.lanes,(o&s.childLanes)===0)return null;if(n!==null&&s.child!==n.child)throw Error(r(153));if(s.child!==null){for(n=s.child,o=ur(n,n.pendingProps),s.child=o,o.return=s;n.sibling!==null;)n=n.sibling,o=o.sibling=ur(n,n.pendingProps),o.return=s;o.sibling=null}return s.child}function V1(n,s,o){switch(s.tag){case 3:Cm(s),Os();break;case 5:Wp(s);break;case 1:Ct(s.type)&&va(s);break;case 4:Zu(s,s.stateNode.containerInfo);break;case 10:var u=s.type._context,f=s.memoizedProps.value;Ie(Ea,u._currentValue),u._currentValue=f;break;case 13:if(u=s.memoizedState,u!==null)return u.dehydrated!==null?(Ie(ze,ze.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?_m(n,s,o):(Ie(ze,ze.current&1),n=jn(n,s,o),n!==null?n.sibling:null);Ie(ze,ze.current&1);break;case 19:if(u=(o&s.childLanes)!==0,(n.flags&128)!==0){if(u)return Am(n,s,o);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ie(ze,ze.current),u)break;return null;case 22:case 23:return s.lanes=0,km(n,s,o)}return jn(n,s,o)}var Om,Sc,Nm,Lm;Om=function(n,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)n.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Sc=function(){},Nm=function(n,s,o,u){var f=n.memoizedProps;if(f!==u){n=s.stateNode,Vr(yn.current);var p=null;switch(o){case"input":f=Hn(n,f),u=Hn(n,u),p=[];break;case"select":f=B({},f,{value:void 0}),u=B({},u,{value:void 0}),p=[];break;case"textarea":f=Zl(n,f),u=Zl(n,u),p=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=ma)}tu(o,u);var v;o=null;for(D in f)if(!u.hasOwnProperty(D)&&f.hasOwnProperty(D)&&f[D]!=null)if(D==="style"){var E=f[D];for(v in E)E.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?p||(p=[]):(p=p||[]).push(D,null));for(D in u){var C=u[D];if(E=f!=null?f[D]:void 0,u.hasOwnProperty(D)&&C!==E&&(C!=null||E!=null))if(D==="style")if(E){for(v in E)!E.hasOwnProperty(v)||C&&C.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in C)C.hasOwnProperty(v)&&E[v]!==C[v]&&(o||(o={}),o[v]=C[v])}else o||(p||(p=[]),p.push(D,o)),o=C;else D==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,E=E?E.__html:void 0,C!=null&&E!==C&&(p=p||[]).push(D,C)):D==="children"?typeof C!="string"&&typeof C!="number"||(p=p||[]).push(D,""+C):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(a.hasOwnProperty(D)?(C!=null&&D==="onScroll"&&Fe("scroll",n),p||E===C||(p=[])):(p=p||[]).push(D,C))}o&&(p=p||[]).push("style",o);var D=p;(s.updateQueue=D)&&(s.flags|=4)}},Lm=function(n,s,o,u){o!==u&&(s.flags|=4)};function Ki(n,s){if(!Ue)switch(n.tailMode){case"hidden":s=n.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function gt(n){var s=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(s)for(var f=n.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=u,n.childLanes=o,s}function B1(n,s,o){var u=s.pendingProps;switch($u(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(s),null;case 1:return Ct(s.type)&&ya(),gt(s),null;case 3:return u=s.stateNode,Ds(),Ve(Tt),Ve(pt),nc(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(ba(s)?s.flags|=4:n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,sn!==null&&(Nc(sn),sn=null))),Sc(n,s),gt(s),null;case 5:ec(s);var f=Vr(zi.current);if(o=s.type,n!==null&&s.stateNode!=null)Nm(n,s,o,u,f),n.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!u){if(s.stateNode===null)throw Error(r(166));return gt(s),null}if(n=Vr(yn.current),ba(s)){u=s.stateNode,o=s.type;var p=s.memoizedProps;switch(u[gn]=s,u[Ii]=p,n=(s.mode&1)!==0,o){case"dialog":Fe("cancel",u),Fe("close",u);break;case"iframe":case"object":case"embed":Fe("load",u);break;case"video":case"audio":for(f=0;f<ji.length;f++)Fe(ji[f],u);break;case"source":Fe("error",u);break;case"img":case"image":case"link":Fe("error",u),Fe("load",u);break;case"details":Fe("toggle",u);break;case"input":hh(u,p),Fe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!p.multiple},Fe("invalid",u);break;case"textarea":gh(u,p),Fe("invalid",u)}tu(o,p),f=null;for(var v in p)if(p.hasOwnProperty(v)){var E=p[v];v==="children"?typeof E=="string"?u.textContent!==E&&(p.suppressHydrationWarning!==!0&&pa(u.textContent,E,n),f=["children",E]):typeof E=="number"&&u.textContent!==""+E&&(p.suppressHydrationWarning!==!0&&pa(u.textContent,E,n),f=["children",""+E]):a.hasOwnProperty(v)&&E!=null&&v==="onScroll"&&Fe("scroll",u)}switch(o){case"input":Pn(u),mh(u,p,!0);break;case"textarea":Pn(u),vh(u);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(u.onclick=ma)}u=f,s.updateQueue=u,u!==null&&(s.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=wh(o)),n==="http://www.w3.org/1999/xhtml"?o==="script"?(n=v.createElement("div"),n.innerHTML="<script><\/script>
40",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=v.createElement(o,{is:u.is}):(n=v.createElement(o),o==="select"&&(v=n,u.multiple?v.multiple=!0:u.size&&(v.size=u.size))):n=v.createElementNS(n,o),n[gn]=s,n[Ii]=u,Om(n,s,!1,!1),s.stateNode=n;e:{switch(v=nu(o,u),o){case"dialog":Fe("cancel",n),Fe("close",n),f=u;break;case"iframe":case"object":case"embed":Fe("load",n),f=u;break;case"video":case"audio":for(f=0;f<ji.length;f++)Fe(ji[f],n);f=u;break;case"source":Fe("error",n),f=u;break;case"img":case"image":case"link":Fe("error",n),Fe("load",n),f=u;break;case"details":Fe("toggle",n),f=u;break;case"input":hh(n,u),f=Hn(n,u),Fe("invalid",n);break;case"option":f=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},f=B({},u,{value:void 0}),Fe("invalid",n);break;case"textarea":gh(n,u),f=Zl(n,u),Fe("invalid",n);break;default:f=u}tu(o,f),E=f;for(p in E)if(E.hasOwnProperty(p)){var C=E[p];p==="style"?bh(n,C):p==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&xh(n,C)):p==="children"?typeof C=="string"?(o!=="textarea"||C!=="")&&mi(n,C):typeof C=="number"&&mi(n,""+C):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?C!=null&&p==="onScroll"&&Fe("scroll",n):C!=null&&L(n,p,C,v))}switch(o){case"input":Pn(n),mh(n,u,!1);break;case"textarea":Pn(n),vh(n);break;case"option":u.value!=null&&n.setAttribute("value",""+_e(u.value));break;case"select":n.multiple=!!u.multiple,p=u.value,p!=null?gs(n,!!u.multiple,p,!1):u.defaultValue!=null&&gs(n,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=ma)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return gt(s),null;case 6:if(n&&s.stateNode!=null)Lm(n,s,n.memoizedProps,u);else{if(typeof u!="string"&&s.stateNode===null)throw Error(r(166));if(o=Vr(zi.current),Vr(yn.current),ba(s)){if(u=s.stateNode,o=s.memoizedProps,u[gn]=s,(p=u.nodeValue!==o)&&(n=It,n!==null))switch(n.tag){case 3:pa(u.nodeValue,o,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&pa(u.nodeValue,o,(n.mode&1)!==0)}p&&(s.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[gn]=s,s.stateNode=u}return gt(s),null;case 13:if(Ve(ze),u=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ue&&Ft!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Mp(),Os(),s.flags|=98560,p=!1;else if(p=ba(s),u!==null&&u.dehydrated!==null){if(n===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[gn]=s}else Os(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gt(s),p=!1}else sn!==null&&(Nc(sn),sn=null),p=!0;if(!p)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(s.child.flags|=8192,(s.mode&1)!==0&&(n===null||(ze.current&1)!==0?nt===0&&(nt=3):Dc())),s.updateQueue!==null&&(s.flags|=4),gt(s),null);case 4:return Ds(),Sc(n,s),n===null&&Di(s.stateNode.containerInfo),gt(s),null;case 10:return Gu(s.type._context),gt(s),null;case 17:return Ct(s.type)&&ya(),gt(s),null;case 19:if(Ve(ze),p=s.memoizedState,p===null)return gt(s),null;if(u=(s.flags&128)!==0,v=p.rendering,v===null)if(u)Ki(p,!1);else{if(nt!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(v=_a(n),v!==null){for(s.flags|=128,Ki(p,!1),u=v.updateQueue,u!==null&&(s.updateQueue=u,s.flags|=4),s.subtreeFlags=0,u=o,o=s.child;o!==null;)p=o,n=u,p.flags&=14680066,v=p.alternate,v===null?(p.childLanes=0,p.lanes=n,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=v.childLanes,p.lanes=v.lanes,p.child=v.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=v.memoizedProps,p.memoizedState=v.memoizedState,p.updateQueue=v.updateQueue,p.type=v.type,n=v.dependencies,p.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),o=o.sibling;return Ie(ze,ze.current&1|2),s.child}n=n.sibling}p.tail!==null&&Qe()>Vs&&(s.flags|=128,u=!0,Ki(p,!1),s.lanes=4194304)}else{if(!u)if(n=_a(v),n!==null){if(s.flags|=128,u=!0,o=n.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),Ki(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Ue)return gt(s),null}else 2*Qe()-p.renderingStartTime>Vs&&o!==1073741824&&(s.flags|=128,u=!0,Ki(p,!1),s.lanes=4194304);p.isBackwards?(v.sibling=s.child,s.child=v):(o=p.last,o!==null?o.sibling=v:s.child=v,p.last=v)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Qe(),s.sibling=null,o=ze.current,Ie(ze,u?o&1|2:o&1),s):(gt(s),null);case 22:case 23:return jc(),u=s.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(s.flags|=8192),u&&(s.mode&1)!==0?(Vt&1073741824)!==0&&(gt(s),s.subtreeFlags&6&&(s.flags|=8192)):gt(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function U1(n,s){switch($u(s),s.tag){case 1:return Ct(s.type)&&ya(),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return Ds(),Ve(Tt),Ve(pt),nc(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 5:return ec(s),null;case 13:if(Ve(ze),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Os()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return Ve(ze),null;case 4:return Ds(),null;case 10:return Gu(s.type._context),null;case 22:case 23:return jc(),null;case 24:return null;default:return null}}var Ia=!1,yt=!1,z1=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Is(n,s){var o=n.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){He(n,s,u)}else o.current=null}function bc(n,s,o){try{o()}catch(u){He(n,s,u)}}var jm=!1;function $1(n,s){if(ju=ra,n=fp(),Cu(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var f=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var v=0,E=-1,C=-1,D=0,W=0,H=n,$=null;t:for(;;){for(var Y;H!==o||f!==0&&H.nodeType!==3||(E=v+f),H!==p||u!==0&&H.nodeType!==3||(C=v+u),H.nodeType===3&&(v+=H.nodeValue.length),(Y=H.firstChild)!==null;)$=H,H=Y;for(;;){if(H===n)break t;if($===o&&++D===f&&(E=v),$===p&&++W===u&&(C=v),(Y=H.nextSibling)!==null)break;H=$,$=H.parentNode}H=Y}o=E===-1||C===-1?null:{start:E,end:C}}else o=null}o=o||{start:0,end:0}}else o=null;for(Du={focusedElem:n,selectionRange:o},ra=!1,Z=s;Z!==null;)if(s=Z,n=s.child,(s.subtreeFlags&1028)!==0&&n!==null)n.return=s,Z=n;else for(;Z!==null;){s=Z;try{var ee=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var re=ee.memoizedProps,Ge=ee.memoizedState,N=s.stateNode,_=N.getSnapshotBeforeUpdate(s.elementType===s.type?re:on(s.type,re),Ge);N.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var j=s.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;
vendor: 17,722 bytes, line 40
40case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Q){He(s,s.return,Q)}if(n=s.sibling,n!==null){n.return=s.return,Z=n;break}Z=s.return}return ee=jm,jm=!1,ee}function Qi(n,s,o){var u=s.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&n)===n){var p=f.destroy;f.destroy=void 0,p!==void 0&&bc(s,o,p)}f=f.next}while(f!==u)}}function Fa(n,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&n)===n){var u=o.create;o.destroy=u()}o=o.next}while(o!==s)}}function kc(n){var s=n.ref;if(s!==null){var o=n.stateNode;switch(n.tag){case 5:n=o;break;default:n=o}typeof s=="function"?s(n):s.current=n}}function Dm(n){var s=n.alternate;s!==null&&(n.alternate=null,Dm(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&(delete s[gn],delete s[Ii],delete s[Vu],delete s[T1],delete s[C1])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Mm(n){return n.tag===5||n.tag===3||n.tag===4}function Im(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Mm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ec(n,s,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(n,s):o.insertBefore(n,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(n,o)):(s=o,s.appendChild(n)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=ma));else if(u!==4&&(n=n.child,n!==null))for(Ec(n,s,o),n=n.sibling;n!==null;)Ec(n,s,o),n=n.sibling}function Tc(n,s,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,s?o.insertBefore(n,s):o.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(Tc(n,s,o),n=n.sibling;n!==null;)Tc(n,s,o),n=n.sibling}var lt=null,an=!1;function sr(n,s,o){for(o=o.child;o!==null;)Fm(n,s,o),o=o.sibling}function Fm(n,s,o){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(Xo,o)}catch{}switch(o.tag){case 5:yt||Is(o,s);case 6:var u=lt,f=an;lt=null,sr(n,s,o),lt=u,an=f,lt!==null&&(an?(n=lt,o=o.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)):lt.removeChild(o.stateNode));break;case 18:lt!==null&&(an?(n=lt,o=o.stateNode,n.nodeType===8?Fu(n.parentNode,o):n.nodeType===1&&Fu(n,o),Ci(n)):Fu(lt,o.stateNode));break;case 4:u=lt,f=an,lt=o.stateNode.containerInfo,an=!0,sr(n,s,o),lt=u,an=f;break;case 0:case 11:case 14:case 15:if(!yt&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var p=f,v=p.destroy;p=p.tag,v!==void 0&&((p&2)!==0||(p&4)!==0)&&bc(o,s,v),f=f.next}while(f!==u)}sr(n,s,o);break;case 1:if(!yt&&(Is(o,s),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(E){He(o,s,E)}sr(n,s,o);break;case 21:sr(n,s,o);break;case 22:o.mode&1?(yt=(u=yt)||o.memoizedState!==null,sr(n,s,o),yt=u):sr(n,s,o);break;default:sr(n,s,o)}}function Vm(n){var s=n.updateQueue;if(s!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new z1),s.forEach(function(u){var f=J1.bind(null,n,u);o.has(u)||(o.add(u),u.then(f,f))})}}function ln(n,s){var o=s.deletions;if(o!==null)for(var u=0;u<o.length;u++){var f=o[u];try{var p=n,v=s,E=v;e:for(;E!==null;){switch(E.tag){case 5:lt=E.stateNode,an=!1;break e;case 3:lt=E.stateNode.containerInfo,an=!0;break e;case 4:lt=E.stateNode.containerInfo,an=!0;break e}E=E.return}if(lt===null)throw Error(r(160));Fm(p,v,f),lt=null,an=!1;var C=f.alternate;C!==null&&(C.return=null),f.return=null}catch(D){He(f,s,D)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Bm(s,n),s=s.sibling}function Bm(n,s){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(ln(s,n),wn(n),u&4){try{Qi(3,n,n.return),Fa(3,n)}catch(re){He(n,n.return,re)}try{Qi(5,n,n.return)}catch(re){He(n,n.return,re)}}break;case 1:ln(s,n),wn(n),u&512&&o!==null&&Is(o,o.return);break;case 5:if(ln(s,n),wn(n),u&512&&o!==null&&Is(o,o.return),n.flags&32){var f=n.stateNode;try{mi(f,"")}catch(re){He(n,n.return,re)}}if(u&4&&(f=n.stateNode,f!=null)){var p=n.memoizedProps,v=o!==null?o.memoizedProps:p,E=n.type,C=n.updateQueue;if(n.updateQueue=null,C!==null)try{E==="input"&&p.type==="radio"&&p.name!=null&&ph(f,p),nu(E,v);var D=nu(E,p);for(v=0;v<C.length;v+=2){var W=C[v],H=C[v+1];W==="style"?bh(f,H):W==="dangerouslySetInnerHTML"?xh(f,H):W==="children"?mi(f,H):L(f,W,H,D)}switch(E){case"input":Xl(f,p);break;case"textarea":yh(f,p);break;case"select":var $=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var Y=p.value;Y!=null?gs(f,!!p.multiple,Y,!1):$!==!!p.multiple&&(p.defaultValue!=null?gs(f,!!p.multiple,p.defaultValue,!0):gs(f,!!p.multiple,p.multiple?[]:"",!1))}f[Ii]=p}catch(re){He(n,n.return,re)}}break;case 6:if(ln(s,n),wn(n),u&4){if(n.stateNode===null)throw Error(r(162));f=n.stateNode,p=n.memoizedProps;try{f.nodeValue=p}catch(re){He(n,n.return,re)}}break;case 3:if(ln(s,n),wn(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Ci(s.containerInfo)}catch(re){He(n,n.return,re)}break;case 4:ln(s,n),wn(n);break;case 13:ln(s,n),wn(n),f=n.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(_c=Qe())),u&4&&Vm(n);break;case 22:if(W=o!==null&&o.memoizedState!==null,n.mode&1?(yt=(D=yt)||W,ln(s,n),yt=D):ln(s,n),wn(n),u&8192){if(D=n.memoizedState!==null,(n.stateNode.isHidden=D)&&!W&&(n.mode&1)!==0)for(Z=n,W=n.child;W!==null;){for(H=Z=W;Z!==null;){switch($=Z,Y=$.child,$.tag){case 0:case 11:case 14:case 15:Qi(4,$,$.return);break;case 1:Is($,$.return);var ee=$.stateNode;if(typeof ee.componentWillUnmount=="function"){u=$,o=$.return;try{s=u,ee.props=s.memoizedProps,ee.state=s.memoizedState,ee.componentWillUnmount()}catch(re){He(u,o,re)}}break;case 5:Is($,$.return);break;case 22:if($.memoizedState!==null){$m(H);continue}}Y!==null?(Y.return=$,Z=Y):$m(H)}W=W.sibling}e:for(W=null,H=n;;){if(H.tag===5){if(W===null){W=H;try{f=H.stateNode,D?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(E=H.stateNode,C=H.memoizedProps.style,v=C!=null&&C.hasOwnProperty("display")?C.display:null,E.style.display=Sh("display",v))}catch(re){He(n,n.return,re)}}}else if(H.tag===6){if(W===null)try{H.stateNode.nodeValue=D?"":H.memoizedProps}catch(re){He(n,n.return,re)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===n)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===n)break e;for(;H.sibling===null;){if(H.return===null||H.return===n)break e;W===H&&(W=null),H=H.return}W===H&&(W=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:ln(s,n),wn(n),u&4&&Vm(n);break;case 21:break;default:ln(s,n),wn(n)}}function wn(n){var s=n.flags;if(s&2){try{e:{for(var o=n.return;o!==null;){if(Mm(o)){var u=o;break e}o=o.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(mi(f,""),u.flags&=-33);var p=Im(n);Tc(n,p,f);break;case 3:case 4:var v=u.stateNode.containerInfo,E=Im(n);Ec(n,E,v);break;default:throw Error(r(161))}}catch(C){He(n,n.return,C)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function W1(n,s,o){Z=n,Um(n)}function Um(n,s,o){for(var u=(n.mode&1)!==0;Z!==null;){var f=Z,p=f.child;if(f.tag===22&&u){var v=f.memoizedState!==null||Ia;if(!v){var E=f.alternate,C=E!==null&&E.memoizedState!==null||yt;E=Ia;var D=yt;if(Ia=v,(yt=C)&&!D)for(Z=f;Z!==null;)v=Z,C=v.child,v.tag===22&&v.memoizedState!==null?Wm(f):C!==null?(C.return=v,Z=C):Wm(f);for(;p!==null;)Z=p,Um(p),p=p.sibling;Z=f,Ia=E,yt=D}zm(n)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,Z=p):zm(n)}}function zm(n){for(;Z!==null;){var s=Z;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:yt||Fa(5,s);break;case 1:var u=s.stateNode;if(s.flags&4&&!yt)if(o===null)u.componentDidMount();else{var f=s.elementType===s.type?o.memoizedProps:on(s.type,o.memoizedProps);u.componentDidUpdate(f,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var p=s.updateQueue;p!==null&&$p(s,p,u);break;case 3:var v=s.updateQueue;if(v!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}$p(s,v,o)}break;case 5:var E=s.stateNode;if(o===null&&s.flags&4){o=E;var C=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&o.focus();break;case"img":C.src&&(o.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var D=s.alternate;if(D!==null){var W=D.memoizedState;if(W!==null){var H=W.dehydrated;H!==null&&Ci(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}yt||s.flags&512&&kc(s)}catch($){He(s,s.return,$)}}if(s===n){Z=null;break}if(o=s.sibling,o!==null){o.return=s.return,Z=o;break}Z=s.return}}function $m(n){for(;Z!==null;){var s=Z;if(s===n){Z=null;break}var o=s.sibling;if(o!==null){o.return=s.return,Z=o;break}Z=s.return}}function Wm(n){for(;Z!==null;){var s=Z;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Fa(4,s)}catch(C){He(s,o,C)}break;case 1:var u=s.stateNode;if(typeof u.componentDidMount=="function"){var f=s.return;try{u.componentDidMount()}catch(C){He(s,f,C)}}var p=s.return;try{kc(s)}catch(C){He(s,p,C)}break;case 5:var v=s.return;try{kc(s)}catch(C){He(s,v,C)}}}catch(C){He(s,s.return,C)}if(s===n){Z=null;break}var E=s.sibling;if(E!==null){E.return=s.return,Z=E;break}Z=s.return}}var H1=Math.ceil,Va=M.ReactCurrentDispatcher,Cc=M.ReactCurrentOwner,Kt=M.ReactCurrentBatchConfig,Pe=0,it=null,Je=null,ut=0,Vt=0,Fs=Zn(0),nt=0,Gi=null,Ur=0,Ba=0,Pc=0,Yi=null,_t=null,_c=0,Vs=1/0,Dn=null,Ua=!1,Rc=null,ir=null,za=!1,or=null,$a=0,Xi=0,Ac=null,Wa=-1,Ha=0;function kt(){return(Pe&6)!==0?Qe():Wa!==-1?Wa:Wa=Qe()}function ar(n){return(n.mode&1)===0?1:(Pe&2)!==0&&ut!==0?ut&-ut:_1.transition!==null?(Ha===0&&(Ha=Ih()),Ha):(n=Le,n!==0||(n=window.event,n=n===void 0?16:qh(n.type)),n)}function un(n,s,o,u){if(50<Xi)throw Xi=0,Ac=null,Error(r(185));Si(n,o,u),((Pe&2)===0||n!==it)&&(n===it&&((Pe&2)===0&&(Ba|=o),nt===4&&lr(n,ut)),Rt(n,u),o===1&&Pe===0&&(s.mode&1)===0&&(Vs=Qe()+500,wa&&tr()))}function Rt(n,s){var o=n.callbackNode;_S(n,s);var u=ea(n,n===it?ut:0);if(u===0)o!==null&&jh(o),n.callbackNode=null,n.callbackPriority=0;else if(s=u&-u,n.callbackPriority!==s){if(o!=null&&jh(o),s===1)n.tag===0?P1(qm.bind(null,n)):Op(qm.bind(null,n)),k1(function(){(Pe&6)===0&&tr()}),o=null;else{switch(Fh(u)){case 1:o=uu;break;case 4:o=Dh;break;case 16:o=Yo;break;case 536870912:o=Mh;break;default:o=Yo}o=eg(o,Hm.bind(null,n))}n.callbackPriority=s,n.callbackNode=o}}function Hm(n,s){if(Wa=-1,Ha=0,(Pe&6)!==0)throw Error(r(327));var o=n.callbackNode;if(Bs()&&n.callbackNode!==o)return null;var u=ea(n,n===it?ut:0);if(u===0)return null;if((u&30)!==0||(u&n.expiredLanes)!==0||s)s=qa(n,u);else{s=u;var f=Pe;Pe|=2;var p=Qm();(it!==n||ut!==s)&&(Dn=null,Vs=Qe()+500,$r(n,s));do try{Q1();break}catch(E){Km(n,E)}while(!0);Qu(),Va.current=p,Pe=f,Je!==null?s=0:(it=null,ut=0,s=nt)}if(s!==0){if(s===2&&(f=cu(n),f!==0&&(u=f,s=Oc(n,f))),s===1)throw o=Gi,$r(n,0),lr(n,u),Rt(n,Qe()),o;if(s===6)lr(n,u);else{if(f=n.current.alternate,(u&30)===0&&!q1(f)&&(s=qa(n,u),s===2&&(p=cu(n),p!==0&&(u=p,s=Oc(n,p))),s===1))throw o=Gi,$r(n,0),lr(n,u),Rt(n,Qe()),o;switch(n.finishedWork=f,n.finishedLanes=u,s){case 0:case 1:throw Error(r(345));case 2:Wr(n,_t,Dn);break;case 3:if(lr(n,u),(u&130023424)===u&&(s=_c+500-Qe(),10<s)){if(ea(n,0)!==0)break;if(f=n.suspendedLanes,(f&u)!==u){kt(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=Iu(Wr.bind(null,n,_t,Dn),s);break}Wr(n,_t,Dn);break;case 4:if(lr(n,u),(u&4194240)===u)break;for(s=n.eventTimes,f=-1;0<u;){var v=31-nn(u);p=1<<v,v=s[v],v>f&&(f=v),u&=~p}if(u=f,u=Qe()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*H1(u/1960))-u,10<u){n.timeoutHandle=Iu(Wr.bind(null,n,_t,Dn),u);break}Wr(n,_t,Dn);break;case 5:Wr(n,_t,Dn);break;default:throw Error(r(329))}}}return Rt(n,Qe()),n.callbackNode===o?Hm.bind(null,n):null}function Oc(n,s){var o=Yi;return n.current.memoizedState.isDehydrated&&($r(n,s).flags|=256),n=qa(n,s),n!==2&&(s=_t,_t=o,s!==null&&Nc(s)),n}function Nc(n){_t===null?_t=n:_t.push.apply(_t,n)}function q1(n){for(var s=n;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var f=o[u],p=f.getSnapshot;f=f.value;try{if(!rn(p(),f))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function lr(n,s){for(s&=~Pc,s&=~Ba,n.suspendedLanes|=s,n.pingedLanes&=~s,n=n.expirationTimes;0<s;){var o=31-nn(s),u=1<<o;n[o]=-1,s&=~u}}function qm(n){if((Pe&6)!==0)throw Error(r(327));Bs();var s=ea(n,0);if((s&1)===0)return Rt(n,Qe()),null;var o=qa(n,s);if(n.tag!==0&&o===2){var u=cu(n);u!==0&&(s=u,o=Oc(n,u))}if(o===1)throw o=Gi,$r(n,0),lr(n,s),Rt(n,Qe()),o;if(o===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=s,Wr(n,_t,Dn),Rt(n,Qe()),null}function Lc(n,s){var o=Pe;Pe|=1;try{return n(s)}finally{Pe=o,Pe===0&&(Vs=Qe()+500,wa&&tr())}}function zr(n){or!==null&&or.tag===0&&(Pe&6)===0&&Bs();var s=Pe;Pe|=1;var o=Kt.transition,u=Le;try{if(Kt.transition=null,Le=1,n)return n()}finally{Le=u,Kt.transition=o,Pe=s,(Pe&6)===0&&tr()}}function jc(){Vt=Fs.current,Ve(Fs)}function $r(n,s){n.finishedWork=null,n.finishedLanes=0;var o=n.timeoutHandle;if(o!==-1&&(n.timeoutHandle=-1,b1(o)),Je!==null)for(o=Je.return;o!==null;){var u=o;switch($u(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&ya();break;case 3:Ds(),Ve(Tt),Ve(pt),nc();break;case 5:ec(u);break;case 4:Ds();break;case 13:Ve(ze);break;case 19:Ve(ze);break;case 10:Gu(u.type._context);break;case 22:case 23:jc()}o=o.return}if(it=n,Je=n=ur(n.current,null),ut=Vt=s,nt=0,Gi=null,Pc=Ba=Ur=0,_t=Yi=null,Fr!==null){for(s=0;s<Fr.length;s++)if(o=Fr[s],u=o.interleaved,u!==null){o.interleaved=null;var f=u.next,p=o.pending;if(p!==null){var v=p.next;p.next=f,u.next=v}o.pending=u}Fr=null}return n}function Km(n,s){do{var o=Je;try{if(Qu(),Ra.current=La,Aa){for(var u=$e.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Aa=!1}if(Br=0,st=tt=$e=null,$i=!1,Wi=0,Cc.current=null,o===null||o.return===null){nt=1,Gi=s,Je=null;break}e:{var p=n,v=o.return,E=o,C=s;if(s=ut,E.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var D=C,W=E,H=W.tag;if((W.mode&1)===0&&(H===0||H===11||H===15)){var $=W.alternate;$?(W.updateQueue=$.updateQueue,W.memoizedState=$.memoizedState,W.lanes=$.lanes):(W.updateQueue=null,W.memoizedState=null)}var Y=vm(v);if(Y!==null){Y.flags&=-257,wm(Y,v,E,p,s),Y.mode&1&&ym(p,D,s),s=Y,C=D;var ee=s.updateQueue;if(ee===null){var re=new Set;re.add(C),s.updateQueue=re}else ee.add(C);break e}else{if((s&1)===0){ym(p,D,s),Dc();break e}C=Error(r(426))}}else if(Ue&&E.mode&1){var Ge=vm(v);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),wm(Ge,v,E,p,s),qu(Ms(C,E));break e}}p=C=Ms(C,E),nt!==4&&(nt=2),Yi===null?Yi=[p]:Yi.push(p),p=v;do{switch(p.tag){case 3:p.flags|=65536,s&=-s,p.lanes|=s;var N=mm(p,C,s);zp(p,N);break e;case 1:E=C;var _=p.type,j=p.stateNode;if((p.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(ir===null||!ir.has(j)))){p.flags|=65536,s&=-s,p.lanes|=s;var Q=gm(p,E,s);zp(p,Q);break e}}p=p.return}while(p!==null)}Ym(o)}catch(ie){s=ie,Je===o&&o!==null&&(Je=o=o.return);continue}break}while(!0)}function Qm(){var n=Va.current;return Va.current=La,n===null?La:n}function Dc(){(nt===0||nt===3||nt===2)&&(nt=4),it===null||(Ur&268435455)===0&&(Ba&268435455)===0||lr(it,ut)}function qa(n,s){var o=Pe;Pe|=2;var u=Qm();(it!==n||ut!==s)&&(Dn=null,$r(n,s));do try{K1();break}catch(f){Km(n,f)}while(!0);if(Qu(),Pe=o,Va.current=u,Je!==null)throw Error(r(261));return it=null,ut=0,nt}function K1(){for(;Je!==null;)Gm(Je)}function Q1(){for(;Je!==null&&!wS();)Gm(Je)}function Gm(n){var s=Zm(n.alternate,n,Vt);n.memoizedProps=n.pendingProps,s===null?Ym(n):Je=s,Cc.current=null}function Ym(n){var s=n;do{var o=s.alternate;if(n=s.return,(s.flags&32768)===0){if(o=B1(o,s,Vt),o!==null){Je=o;return}}else{if(o=U1(o,s),o!==null){o.flags&=32767,Je=o;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{nt=6,Je=null;return}}if(s=s.sibling,s!==null){Je=s;return}Je=s=n}while(s!==null);nt===0&&(nt=5)}function Wr(n,s,o){var u=Le,f=Kt.transition;try{Kt.transition=null,Le=1,G1(n,s,o,u)}finally{Kt.transition=f,Le=u}return null}function G1(n,s,o,u){do Bs();while(or!==null);if((Pe&6)!==0)throw Error(r(327));o=n.finishedWork;var f=n.finishedLanes;if(o===null)return null;if(n.finishedWork=null,n.finishedLanes=0,o===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var p=o.lanes|o.childLanes;if(RS(n,p),n===it&&(Je=it=null,ut=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||za||(za=!0,eg(Yo,function(){return Bs(),null})),p=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||p){p=Kt.transition,Kt.transition=null;var v=Le;Le=1;var E=Pe;Pe|=4,Cc.current=null,$1(n,o),Bm(o,n),m1(Du),ra=!!ju,Du=ju=null,n.current=o,W1(o),xS(),Pe=E,Le=v,Kt.transition=p}else n.current=o;if(za&&(za=!1,or=n,$a=f),p=n.pendingLanes,p===0&&(ir=null),kS(o.stateNode),Rt(n,Qe()),s!==null)for(u=n.onRecoverableError,o=0;o<s.length;o++)f=s[o],u(f.value,{componentStack:f.stack,digest:f.digest});if(Ua)throw Ua=!1,n=Rc,Rc=null,n;return($a&1)!==0&&n.tag!==0&&Bs(),p=n.pendingLanes,(p&1)!==0?n===Ac?Xi++:(Xi=0,Ac=n):Xi=0,tr(),null}function Bs(){if(or!==null){var n=Fh($a),s=Kt.transition,o=Le;
vendor: 4,888 bytes, line 40
40try{if(Kt.transition=null,Le=16>n?16:n,or===null)var u=!1;else{if(n=or,or=null,$a=0,(Pe&6)!==0)throw Error(r(331));var f=Pe;for(Pe|=4,Z=n.current;Z!==null;){var p=Z,v=p.child;if((Z.flags&16)!==0){var E=p.deletions;if(E!==null){for(var C=0;C<E.length;C++){var D=E[C];for(Z=D;Z!==null;){var W=Z;switch(W.tag){case 0:case 11:case 15:Qi(8,W,p)}var H=W.child;if(H!==null)H.return=W,Z=H;else for(;Z!==null;){W=Z;var $=W.sibling,Y=W.return;if(Dm(W),W===D){Z=null;break}if($!==null){$.return=Y,Z=$;break}Z=Y}}}var ee=p.alternate;if(ee!==null){var re=ee.child;if(re!==null){ee.child=null;do{var Ge=re.sibling;re.sibling=null,re=Ge}while(re!==null)}}Z=p}}if((p.subtreeFlags&2064)!==0&&v!==null)v.return=p,Z=v;else e:for(;Z!==null;){if(p=Z,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Qi(9,p,p.return)}var N=p.sibling;if(N!==null){N.return=p.return,Z=N;break e}Z=p.return}}var _=n.current;for(Z=_;Z!==null;){v=Z;var j=v.child;if((v.subtreeFlags&2064)!==0&&j!==null)j.return=v,Z=j;else e:for(v=_;Z!==null;){if(E=Z,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Fa(9,E)}}catch(ie){He(E,E.return,ie)}if(E===v){Z=null;break e}var Q=E.sibling;if(Q!==null){Q.return=E.return,Z=Q;break e}Z=E.return}}if(Pe=f,tr(),mn&&typeof mn.onPostCommitFiberRoot=="function")try{mn.onPostCommitFiberRoot(Xo,n)}catch{}u=!0}return u}finally{Le=o,Kt.transition=s}}return!1}function Xm(n,s,o){s=Ms(o,s),s=mm(n,s,1),n=rr(n,s,1),s=kt(),n!==null&&(Si(n,1,s),Rt(n,s))}function He(n,s,o){if(n.tag===3)Xm(n,n,o);else for(;s!==null;){if(s.tag===3){Xm(s,n,o);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ir===null||!ir.has(u))){n=Ms(o,n),n=gm(s,n,1),s=rr(s,n,1),n=kt(),s!==null&&(Si(s,1,n),Rt(s,n));break}}s=s.return}}function Y1(n,s,o){var u=n.pingCache;u!==null&&u.delete(s),s=kt(),n.pingedLanes|=n.suspendedLanes&o,it===n&&(ut&o)===o&&(nt===4||nt===3&&(ut&130023424)===ut&&500>Qe()-_c?$r(n,0):Pc|=o),Rt(n,s)}function Jm(n,s){s===0&&((n.mode&1)===0?s=1:(s=Zo,Zo<<=1,(Zo&130023424)===0&&(Zo=4194304)));var o=kt();n=Nn(n,s),n!==null&&(Si(n,s,o),Rt(n,o))}function X1(n){var s=n.memoizedState,o=0;s!==null&&(o=s.retryLane),Jm(n,o)}function J1(n,s){var o=0;switch(n.tag){case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(s),Jm(n,o)}var Zm;Zm=function(n,s,o){if(n!==null)if(n.memoizedProps!==s.pendingProps||Tt.current)Pt=!0;else{if((n.lanes&o)===0&&(s.flags&128)===0)return Pt=!1,V1(n,s,o);Pt=(n.flags&131072)!==0}else Pt=!1,Ue&&(s.flags&1048576)!==0&&Np(s,Sa,s.index);switch(s.lanes=0,s.tag){case 2:var u=s.type;Ma(n,s),n=s.pendingProps;var f=_s(s,pt.current);js(s,o),f=ic(null,s,u,n,f,o);var p=oc();return s.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Ct(u)?(p=!0,va(s)):p=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Ju(s),f.updater=ja,s.stateNode=f,f._reactInternals=s,fc(s,u,n,o),s=gc(null,s,u,!0,p,o)):(s.tag=0,Ue&&p&&zu(s),bt(null,s,f,o),s=s.child),s;case 16:u=s.elementType;e:{switch(Ma(n,s),n=s.pendingProps,f=u._init,u=f(u._payload),s.type=u,f=s.tag=eb(u),n=on(u,n),f){case 0:s=mc(null,s,u,n,o);break e;case 1:s=Tm(null,s,u,n,o);break e;case 11:s=xm(null,s,u,n,o);break e;case 14:s=Sm(null,s,u,on(u.type,n),o);break e}throw Error(r(306,u,""))}return s;case 0:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:on(u,f),mc(n,s,u,f,o);case 1:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:on(u,f),Tm(n,s,u,f,o);case 3:e:{if(Cm(s),n===null)throw Error(r(387));u=s.pendingProps,p=s.memoizedState,f=p.element,Up(n,s),Pa(s,u,null,o);var v=s.memoizedState;if(u=v.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){f=Ms(Error(r(423)),s),s=Pm(n,s,u,o,f);break e}else if(u!==f){f=Ms(Error(r(424)),s),s=Pm(n,s,u,o,f);break e}else for(Ft=Jn(s.stateNode.containerInfo.firstChild),It=s,Ue=!0,sn=null,o=Vp(s,null,u,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Os(),u===f){s=jn(n,s,o);break e}bt(n,s,u,o)}s=s.child}return s;case 5:return Wp(s),n===null&&Hu(s),u=s.type,f=s.pendingProps,p=n!==null?n.memoizedProps:null,v=f.children,Mu(u,f)?v=null:p!==null&&Mu(u,p)&&(s.flags|=32),Em(n,s),bt(n,s,v,o),s.child;case 6:return n===null&&Hu(s),null;case 13:return _m(n,s,o);case 4:return Zu(s,s.stateNode.containerInfo),u=s.pendingProps,n===null?s.child=Ns(s,null,u,o):bt(n,s,u,o),s.child;case 11:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:on(u,f),xm(n,s,u,f,o);case 7:return bt(n,s,s.pendingProps,o),s.child;case 8:return bt(n,s,s.pendingProps.children,o),s.child;case 12:return bt(n,s,s.pendingProps.children,o),s.child;
vendor: 9,137 bytes, line 40
40case 10:e:{if(u=s.type._context,f=s.pendingProps,p=s.memoizedProps,v=f.value,Ie(Ea,u._currentValue),u._currentValue=v,p!==null)if(rn(p.value,v)){if(p.children===f.children&&!Tt.current){s=jn(n,s,o);break e}}else for(p=s.child,p!==null&&(p.return=s);p!==null;){var E=p.dependencies;if(E!==null){v=p.child;for(var C=E.firstContext;C!==null;){if(C.context===u){if(p.tag===1){C=Ln(-1,o&-o),C.tag=2;var D=p.updateQueue;if(D!==null){D=D.shared;var W=D.pending;W===null?C.next=C:(C.next=W.next,W.next=C),D.pending=C}}p.lanes|=o,C=p.alternate,C!==null&&(C.lanes|=o),Yu(p.return,o,s),E.lanes|=o;break}C=C.next}}else if(p.tag===10)v=p.type===s.type?null:p.child;else if(p.tag===18){if(v=p.return,v===null)throw Error(r(341));v.lanes|=o,E=v.alternate,E!==null&&(E.lanes|=o),Yu(v,o,s),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===s){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}bt(n,s,f.children,o),s=s.child}return s;case 9:return f=s.type,u=s.pendingProps.children,js(s,o),f=Ht(f),u=u(f),s.flags|=1,bt(n,s,u,o),s.child;case 14:return u=s.type,f=on(u,s.pendingProps),f=on(u.type,f),Sm(n,s,u,f,o);case 15:return bm(n,s,s.type,s.pendingProps,o);case 17:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:on(u,f),Ma(n,s),s.tag=1,Ct(u)?(n=!0,va(s)):n=!1,js(s,o),hm(s,u,f),fc(s,u,f,o),gc(null,s,u,!0,n,o);case 19:return Am(n,s,o);case 22:return km(n,s,o)}throw Error(r(156,s.tag))};function eg(n,s){return Lh(n,s)}function Z1(n,s,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,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 Qt(n,s,o,u){return new Z1(n,s,o,u)}function Mc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function eb(n){if(typeof n=="function")return Mc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===Ce)return 11;if(n===Me)return 14}return 2}function ur(n,s){var o=n.alternate;return o===null?(o=Qt(n.tag,s,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=s,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&14680064,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,s=n.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o}function Ka(n,s,o,u,f,p){var v=2;if(u=n,typeof n=="function")Mc(n)&&(v=1);else if(typeof n=="string")v=5;else e:switch(n){case G:return Hr(o.children,f,p,s);case I:v=8,f|=8;break;case J:return n=Qt(12,o,s,f|2),n.elementType=J,n.lanes=p,n;case je:return n=Qt(13,o,s,f),n.elementType=je,n.lanes=p,n;case Ae:return n=Qt(19,o,s,f),n.elementType=Ae,n.lanes=p,n;case fe:return Qa(o,f,p,s);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case me:v=10;break e;case de:v=9;break e;case Ce:v=11;break e;case Me:v=14;break e;case xe:v=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return s=Qt(v,o,s,f),s.elementType=n,s.type=u,s.lanes=p,s}function Hr(n,s,o,u){return n=Qt(7,n,u,s),n.lanes=o,n}function Qa(n,s,o,u){return n=Qt(22,n,u,s),n.elementType=fe,n.lanes=o,n.stateNode={isHidden:!1},n}function Ic(n,s,o){return n=Qt(6,n,null,s),n.lanes=o,n}function Fc(n,s,o){return s=Qt(4,n.children!==null?n.children:[],n.key,s),s.lanes=o,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}function tb(n,s,o,u,f){this.tag=s,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=du(0),this.expirationTimes=du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Vc(n,s,o,u,f,p,v,E,C){return n=new tb(n,s,o,E,C),s===1?(s=1,p===!0&&(s|=8)):s=0,p=Qt(3,null,null,s),n.current=p,p.stateNode=n,p.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ju(p),n}function nb(n,s,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:u==null?null:""+u,children:n,containerInfo:s,implementation:o}}function tg(n){if(!n)return er;n=n._reactInternals;e:{if(Lr(n)!==n||n.tag!==1)throw Error(r(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Ct(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(n.tag===1){var o=n.type;if(Ct(o))return Rp(n,o,s)}return s}function ng(n,s,o,u,f,p,v,E,C){return n=Vc(o,u,!0,n,f,p,v,E,C),n.context=tg(null),o=n.current,u=kt(),f=ar(o),p=Ln(u,f),p.callback=s??null,rr(o,p,f),n.current.lanes=f,Si(n,f,u),Rt(n,u),n}function Ga(n,s,o,u){var f=s.current,p=kt(),v=ar(f);return o=tg(o),s.context===null?s.context=o:s.pendingContext=o,s=Ln(p,v),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=rr(f,s,v),n!==null&&(un(n,f,v,p),Ca(n,f,v)),v}function Ya(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function rg(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<s?o:s}}function Bc(n,s){rg(n,s),(n=n.alternate)&&rg(n,s)}function rb(){return null}var sg=typeof reportError=="function"?reportError:function(n){console.error(n)};function Uc(n){this._internalRoot=n}Xa.prototype.render=Uc.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(r(409));Ga(n,s,null,null)},Xa.prototype.unmount=Uc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;zr(function(){Ga(null,n,null,null)}),s[_n]=null}};function Xa(n){this._internalRoot=n}Xa.prototype.unstable_scheduleHydration=function(n){if(n){var s=Uh();n={blockedOn:null,target:n,priority:s};for(var o=0;o<Gn.length&&s!==0&&s<Gn[o].priority;o++);Gn.splice(o,0,n),o===0&&Wh(n)}};function zc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Ja(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function ig(){}function sb(n,s,o,u,f){if(f){if(typeof u=="function"){var p=u;u=function(){var D=Ya(v);p.call(D)}}var v=ng(s,u,n,0,null,!1,!1,"",ig);return n._reactRootContainer=v,n[_n]=v.current,Di(n.nodeType===8?n.parentNode:n),zr(),v}for(;f=n.lastChild;)n.removeChild(f);if(typeof u=="function"){var E=u;u=function(){var D=Ya(C);E.call(D)}}var C=Vc(n,0,!1,null,null,!1,!1,"",ig);return n._reactRootContainer=C,n[_n]=C.current,Di(n.nodeType===8?n.parentNode:n),zr(function(){Ga(s,C,o,u)}),C}function Za(n,s,o,u,f){var p=o._reactRootContainer;if(p){var v=p;if(typeof f=="function"){var E=f;f=function(){var C=Ya(v);E.call(C)}}Ga(s,v,n,f)}else v=sb(o,s,n,f,u);return Ya(v)}Vh=function(n){switch(n.tag){case 3:var s=n.stateNode;if(s.current.memoizedState.isDehydrated){var o=xi(s.pendingLanes);o!==0&&(fu(s,o|1),Rt(s,Qe()),(Pe&6)===0&&(Vs=Qe()+500,tr()))}break;case 13:zr(function(){var u=Nn(n,1);if(u!==null){var f=kt();un(u,n,1,f)}}),Bc(n,1)}},hu=function(n){if(n.tag===13){var s=Nn(n,134217728);if(s!==null){var o=kt();un(s,n,134217728,o)}Bc(n,134217728)}},Bh=function(n){if(n.tag===13){var s=ar(n),o=Nn(n,s);if(o!==null){var u=kt();un(o,n,s,u)}Bc(n,s)}},Uh=function(){return Le},zh=function(n,s){var o=Le;try{return Le=n,s()}finally{Le=o}},iu=function(n,s,o){switch(s){case"input":if(Xl(n,o),s=o.name,o.type==="radio"&&s!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var u=o[s];if(u!==n&&u.form===n.form){var f=ga(u);if(!f)throw Error(r(90));Nr(u),Xl(u,f)}}}break;case"textarea":yh(n,o);break;case"select":s=o.value,s!=null&&gs(n,!!o.multiple,s,!1)}},Ch=Lc,Ph=zr;var ib={usingClientEntryPoint:!1,Events:[Fi,Cs,ga,Eh,Th,Lc]},Ji={findFiberByHostInstance:jr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ob={bundleType:Ji.bundleType,version:Ji.version,rendererPackageName:Ji.rendererPackageName,rendererConfig:Ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Oh(n),n===null?null:n.stateNode},findFiberByHostInstance:Ji.findFiberByHostInstance||rb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var el=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!el.isDisabled&&el.supportsFiber)try{Xo=el.inject(ob),mn=el}catch{}}return At.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ib,At.createPortal=function(n,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zc(s))throw Error(r(200));return nb(n,s,null,o)},At.createRoot=function(n,s){if(!zc(n))throw Error(r(299));var o=!1,u="",f=sg;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=Vc(n,1,!1,null,null,o,!1,u,f),n[_n]=s.current,Di(n.nodeType===8?n.parentNode:n),new Uc(s)},At.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Oh(s),n=n===null?null:n.stateNode,n},At.flushSync=function(n){return zr(n)},At.hydrate=function(n,s,o){if(!Ja(s))throw Error(r(200));return Za(null,n,s,!0,o)},At.hydrateRoot=function(n,s,o){if(!zc(n))throw Error(r(405));var u=o!=null&&o.hydratedSources||null,f=!1,p="",v=sg;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),s=ng(s,null,n,1,o??null,f,!1,p,v),n[_n]=s.current,Di(n),u)for(n=0;n<u.length;n++)o=u[n],f=o._getVersion,f=f(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,f]:s.mutableSourceEagerHydrationData.push(o,f);return new Xa(s)},At.render=function(n,s,o){if(!Ja(s))throw Error(r(200));return Za(null,n,s,!1,o)},At.unmountComponentAtNode=function(n){if(!Ja(n))throw Error(r(40));return n._reactRootContainer?(zr(function(){Za(null,null,n,!1,function(){n._reactRootContainer=null,n[_n]=null})}),!0):!1},At.unstable_batchedUpdates=Lc,At.unstable_renderSubtreeIntoContainer=function(n,s,o,u){if(!Ja(o))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Za(n,s,o,!1,u)},At.version="18.3.1-next-f1338f8080-20240426",At}var pg;function t0(){if(pg)return qc.exports;pg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),qc.exports=mb(),qc.exports}var mg;function gb(){if(mg)return nl;mg=1;var t=t0();return nl.createRoot=t.createRoot,nl.hydrateRoot=t.hydrateRoot,nl}var yb=gb();const vb=Zv(yb),wb=20,xb=1e6,Bn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Gc=0;function Sb(){return Gc=(Gc+1)%Number.MAX_VALUE,Gc.toString()}const Yc=new Map,gg=t=>{if(Yc.has(t))return;const e=setTimeout(()=>{Yc.delete(t),po({type:Bn.REMOVE_TOAST,toastId:t})},xb);Yc.set(t,e)},bb=(t,e)=>{switch(e.type){case Bn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,wb)};case Bn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case Bn.DISMISS_TOAST:{const{toastId:r}=e;return r?gg(r):t.toasts.forEach(i=>{gg(i.id)}),{...t,toasts:t.toasts.map(i=>
40i.id===r||r===void 0?{...i,open:!1}:i)}}case Bn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},hl=[];let pl={toasts:[]};function po(t){pl=bb(pl,t),hl.forEach(e=>{e(pl)})}function kb({...t}){const e=Sb(),r=a=>po({type:Bn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>po({type:Bn.DISMISS_TOAST,toastId:e});return po({type:Bn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:r}}function Eb(){const[t,e]=O.useState(pl);return O.useEffect(()=>(hl.push(e),()=>{const r=hl.indexOf(e);r>-1&&hl.splice(r,1)}),[t]),{...t,toast:kb,dismiss:r=>po({type:Bn.DISMISS_TOAST,toastId:r})}}function n0(t){var e,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=n0(t[e]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function r0(){for(var t,e,r=0,i="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=n0(t))&&(i&&(i+=" "),i+=e);return i}const yg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,vg=r0,mf=(t,e)=>r=>{var i;if((e==null?void 0:e.variants)==null)return vg(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:l}=e,c=Object.keys(a).map(m=>{const g=r==null?void 0:r[m],y=l==null?void 0:l[m];if(g===null)return null;const w=yg(g)||yg(y);return a[m][w]}),d=r&&Object.entries(r).reduce((m,g)=>{let[y,w]=g;return w===void 0||(m[y]=w),m},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((m,g)=>{let{class:y,className:w,...T}=g;return Object.entries(T).every(k=>{let[b,x]=k;return Array.isArray(x)?x.includes({...l,...d}[b]):{...l,...d}[b]===x})?[...m,y,w]:m},[]);return vg(t,c,h,r==null?void 0:r.class,r==null?void 0:r.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const Tb=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s0=(...t)=>t.filter((e,r,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===r).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var Cb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Pb=O.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:c,...d},h)=>O.createElement("svg",{ref:h,...Cb,width:e,height:e,stroke:t,strokeWidth:i?Number(r)*24/Number(e):r,className:s0("lucide",a),...d},[...c.map(([m,g])=>O.createElement(m,g)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const tn=(t,e)=>{const r=O.forwardRef(({className:i,...a},l)=>O.createElement(Pb,{ref:l,iconNode:e,className:s0(`lucide-${Tb(t)}`,i),...a}));return r.displayName=`${t}`,r};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const _b=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Rb=tn("ExternalLink",_b);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Ab=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ob=tn("FileText",Ab);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Nb=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
vendor: 6,304 bytes, lines 75-120
75]],Lb=tn("Hash",Nb);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const jb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],wg=tn("Search",jb);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Db=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Mb=tn("Shield",Db);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Ib=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Fb=tn("Sparkles",Ib);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Vb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],i0=tn("Target",Vb);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Bb=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Ub=tn("TrendingUp",Bb);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const zb=[["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",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$b=tn("TriangleAlert",zb);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const Wb=[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]],Hb=tn("Type",Wb);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const qb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kb=tn("X",qb);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Qb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],o0=tn("Zap",Qb),Gb=(t,e)=>{const r=new Array(t.length+e.length);for(let i=0;i<t.length;i++)r[i]=t[i];for(let i=0;i<e.length;i++)r[t.length+i]=e[i];return r},Yb=(t,e)=>({classGroupId:t,validator:e}),a0=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Cl="-",xg=[],Xb="arbitrary..",Jb=t=>{const e=ek(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Zb(c);const d=c.split(Cl),h=d[0]===""&&d.length>1?1:0;return l0(d,h,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=i[c],m=r[c];return h?m?Gb(m,h):h:m||xg}return r[c]||xg}}},l0=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const a=t[e],l=r.nextPart.get(a);if(l){const m=l0(t,e+1,l);if(m)return m}const c=r.validators;if(c===null)return;const d=e===0?t.join(Cl):t.slice(e).join(Cl),h=c.length;for(let m=0;m<h;m++){const g=c[m];if(g.validator(d))return g.classGroupId}},Zb=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),i=e.slice(0,r);return i?Xb+i:void 0})(),ek=t=>{const{theme:e,classGroups:r}=t;return tk(r,e)},tk=(t,e)=>{const r=a0();for(const i in t){const a=t[i];gf(a,r,i,e)}return r},gf=(t,e,r,i)=>{const a=t.length;for(let l=0;l<a;l++){const c=t[l];nk(c,e,r,i)}},nk=(t,e,r,i)=>{if(typeof t=="string"){rk(t,e,r);return}if(typeof t=="function"){sk(t,e,r,i);return}ik(t,e,r,i)},rk=(t,e,r)=>{const i=t===""?e:u0(e,t);i.classGroupId=r},sk=(t,e,r,i)=>{if(ok(t)){gf(t(i),e,r,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Yb(r,t))},ik=(t,e,r,i)=>{const a=Object.entries(t),l=a.length;for(let c=0;c<l;c++){const[d,h]=a[c];gf(h,u0(e,d),r,i)}},u0=(t,e)=>{let r=t;const i=e.split(Cl),a=i.length;for(let l=0;l<a;l++){const c=i[l];let d=r.nextPart.get(c);d||(d=a0(),r.nextPart.set(c,d)),r=d}return r},ok=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,ak=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),i=Object.create(null);const a=(l,c)=>{r[l]=c,e++,e>t&&(e=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return a(l,c),c},set(l,c){l in r?r[l]=c:a(l,c)}}},bd="!",Sg=":",lk=[],bg=(t,e,r,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:i,isExternal:a}),uk=t=>{const{prefix:e,experimentalParseClassName:r}=t;let i=a=>{const l=[];let c=0,d=0,h=0,m;const g=a.length;for(let b=0;b<g;b++){const x=a[b];if(c===0&&d===0){if(x===Sg){l.push(a.slice(h,b)),h=b+1;continue}if(x==="/"){m=b;continue}}x==="["?c++:x==="]"?c--:x==="("?d++:x===")"&&d--}const y=l.length===0?a:a.slice(h);let w=y,T=!1;y.endsWith(bd)?(w=y.slice(0,-1),T=!0):y.startsWith(bd)&&(w=y.slice(1),T=!0);const k=m&&m>h?m-h:void 0;return bg(l,T,w,k)};if(e){const a=e+Sg,l=i;i=c=>c.startsWith(a)?l(c.slice(a.length)):bg(lk,!1,c,void 0,!0)}if(r){const a=i;i=l=>r({className:l,parseClassName:a})}return i},ck=t=>{const e=new Map;
vendor: 1,081 bytes, line 120
120return t.orderSensitiveModifiers.forEach((r,i)=>{e.set(r,1e6+i)}),r=>{const i=[];let a=[];for(let l=0;l<r.length;l++){const c=r[l],d=c[0]==="[",h=e.has(c);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(c)):a.push(c)}return a.length>0&&(a.sort(),i.push(...a)),i}},dk=t=>({cache:ak(t.cacheSize),parseClassName:uk(t),sortModifiers:ck(t),...Jb(t)}),fk=/\s+/,hk=(t,e)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,c=[],d=t.trim().split(fk);let h="";for(let m=d.length-1;m>=0;m-=1){const g=d[m],{isExternal:y,modifiers:w,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:b}=r(g);if(y){h=g+(h.length>0?" "+h:h);continue}let x=!!b,A=i(x?k.substring(0,b):k);if(!A){if(!x){h=g+(h.length>0?" "+h:h);continue}if(A=i(k),!A){h=g+(h.length>0?" "+h:h);continue}x=!1}const V=w.length===0?"":w.length===1?w[0]:l(w).join(":"),L=T?V+bd:V,M=L+A;if(c.indexOf(M)>-1)continue;c.push(M);const U=a(A,x);for(let K=0;K<U.length;++K){const G=U[K];c.push(L+G)}h=g+(h.length>0?" "+h:h)}return h},pk=(...t)=>{let e=0,r,i,a="";for(;e<t.length;
vendor: 4,382 bytes, line 120
120)(r=t[e++])&&(i=c0(r))&&(a&&(a+=" "),a+=i);return a},c0=t=>{if(typeof t=="string")return t;let e,r="";for(let i=0;i<t.length;i++)t[i]&&(e=c0(t[i]))&&(r&&(r+=" "),r+=e);return r},mk=(t,...e)=>{let r,i,a,l;const c=h=>{const m=e.reduce((g,y)=>y(g),t());return r=dk(m),i=r.cache.get,a=r.cache.set,l=d,d(h)},d=h=>{const m=i(h);if(m)return m;const g=hk(h,r);return a(h,g),g};return l=c,(...h)=>l(pk(...h))},gk=[],rt=t=>{const e=r=>r[t]||gk;return e.isThemeGetter=!0,e},d0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yk=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wk=/\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$/,xk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=t=>yk.test(t),Se=t=>!!t&&!Number.isNaN(Number(t)),fr=t=>!!t&&Number.isInteger(Number(t)),Xc=t=>t.endsWith("%")&&Se(t.slice(0,-1)),Mn=t=>vk.test(t),h0=()=>!0,kk=t=>wk.test(t)&&!xk.test(t),yf=()=>!1,Ek=t=>Sk.test(t),Tk=t=>bk.test(t),Ck=t=>!te(t)&&!ne(t),Pk=t=>Rr(t,g0,yf),te=t=>d0.test(t),qr=t=>Rr(t,y0,kk),kg=t=>Rr(t,Dk,Se),_k=t=>Rr(t,w0,h0),Rk=t=>Rr(t,v0,yf),Eg=t=>Rr(t,p0,yf),Ak=t=>Rr(t,m0,Tk),rl=t=>Rr(t,x0,Ek),ne=t=>f0.test(t),eo=t=>hs(t,y0),Ok=t=>hs(t,v0),Tg=t=>hs(t,p0),Nk=t=>hs(t,g0),Lk=t=>hs(t,m0),sl=t=>hs(t,x0,!0),jk=t=>hs(t,w0,!0),Rr=(t,e,r)=>{const i=d0.exec(t);return i?i[1]?e(i[1]):r(i[2]):!1},hs=(t,e,r=!1)=>{const i=f0.exec(t);return i?i[1]?e(i[1]):r:!1},p0=t=>t==="position"||t==="percentage",m0=t=>t==="image"||t==="url",g0=t=>t==="length"||t==="size"||t==="bg-size",y0=t=>t==="length",Dk=t=>t==="number",v0=t=>t==="family-name",w0=t=>t==="number"||t==="weight",x0=t=>t==="shadow",Mk=()=>{const t=rt("color"),e=rt("font"),r=rt("text"),i=rt("font-weight"),a=rt("tracking"),l=rt("leading"),c=rt("breakpoint"),d=rt("container"),h=rt("spacing"),m=rt("radius"),g=rt("shadow"),y=rt("inset-shadow"),w=rt("text-shadow"),T=rt("drop-shadow"),k=rt("blur"),b=rt("perspective"),x=rt("aspect"),A=rt("ease"),V=rt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...M(),ne,te],K=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],I=()=>[ne,te,h],J=()=>[dr,"full","auto",...I()],me=()=>[fr,"none","subgrid",ne,te],de=()=>["auto",{span:["full",fr,ne,te]},fr,ne,te],Ce=()=>[fr,"auto",ne,te],je=()=>["auto","min","max","fr",ne,te],Ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Me=()=>["start","end","center","stretch","center-safe","end-safe"],xe=()=>["auto",...I()],fe=()=>[dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],q=()=>[dr,"screen","full","dvw","lvw","svw","min","max","fit",...I()],se=()=>[dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],B=()=>[t,ne,te],R=()=>[...M(),Tg,Eg,{position:[ne,te]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Nk,Pk,{size:[ne,te]}],ve=()=>[Xc,eo,qr],le=()=>["","none","full",m,ne,te],he=()=>["",Se,eo,qr],Oe=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Se,Xc,Tg,Eg],ht=()=>["","none",k,ne,te],Pn=()=>["none",Se,ne,te],Nr=()=>["none",Se,ne,te],Wn=()=>[Se,ne,te],Hn=()=>[dr,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mn],breakpoint:[Mn],color:[h0],container:[Mn],"drop-shadow":[Mn],ease:["in","out","in-out"],font:[Ck],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mn],shadow:[Mn],spacing:["px",Se],text:[Mn],"text-shadow":[Mn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dr,te,ne,x]}
vendor: 4,941 bytes, line 120
120],container:["container"],columns:[{columns:[Se,te,ne,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:U()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{"inset-s":J(),start:J()}],end:[{"inset-e":J(),end:J()}],"inset-bs":[{"inset-bs":J()}],"inset-be":[{"inset-be":J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[fr,"auto",ne,te]}],basis:[{basis:[dr,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,dr,"auto","initial","none",te]}],grow:[{grow:["",Se,ne,te]}],shrink:[{shrink:["",Se,ne,te]}],order:[{order:[fr,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":je()}],"auto-rows":[{"auto-rows":je()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...Ae(),"normal"]}],"justify-items":[{"justify-items":[...Me(),"normal"]}],"justify-self":[{"justify-self":["auto",...Me()]}],"align-content":[{content:["normal",...Ae()]}],"align-items":[{items:[...Me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Me(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ae()}],"place-items":[{"place-items":[...Me(),"baseline"]}],"place-self":[{"place-self":["auto",...Me()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:xe()}],mx:[{mx:xe()}],my:[{my:xe()}],ms:[{ms:xe()}],me:[{me:xe()}],mbs:[{mbs:xe()}],mbe:[{mbe:xe()}],mt:[{mt:xe()}],mr:[{mr:xe()}],mb:[{mb:xe()}],ml:[{ml:xe()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[d,"screen",...fe()]}],"min-w":[{"min-w":[d,"screen","none",...fe()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,eo,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,jk,_k]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xc,te]}],"font-family":[{font:[Ok,Rk,e]}],"font-features":[{"font-features":[te]}],"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:[a,ne,te]}],"line-clamp":[{"line-clamp":[Se,"none",ne,kg]}],leading:[{leading:[l,...I()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"w
120avy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ne,qr]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Se,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],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",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fr,ne,te],radial:["",ne,te],conic:[fr,ne,te]},Lk,Ak]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Oe(),"hidden","none"]}],"divide-style":[{divide:[...Oe(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,756 bytes, line 120
120],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ne,te]}],"outline-w":[{outline:["",Se,eo,qr]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",g,sl,rl]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",y,sl,rl]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Se,qr]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",w,sl,rl]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Se,ne,te]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"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":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:ht()}],brightness:[{brightness:[Se,ne,te]}],contrast:[{contrast:[Se,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",T,sl,rl]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Se,ne,te]}],"hue-rotate":[{"hue-rotate":[Se,ne,te]}],invert:[{invert:["",Se,ne,te]}],saturate:[{saturate:[Se,ne,te]}],sepia:[{sepia:["",Se,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":ht()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",Se,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ne,te]}],ease:[{ease:["linear","initial",A,ne,te]}],delay:[{delay:[Se,ne,te]}],animate:[{animate:["none",V,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ne,te]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Pn()}],"rotate-x":[{"rotate-x":Pn()}],"rotate-y":[{"rotate-y":Pn()}],"rotate-z":[{"rotate-z":Pn()}],scale:[{scale:Nr()}],"scale-x":[{"scale-x":Nr()}],"scale-y":[{"scale-y":Nr()}],"scale-z":[{"scale-z":Nr()}],"scale-3d":["scale-3d"],skew:[{skew:Wn()}],"skew-x":[{"skew-x":Wn()}],"skew-y":[{"skew-y":Wn()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Hn()}],"translate-x":[{"translate-x":Hn()}],"translate-y":[{"translate-y":Hn()}],"translate-z":[{"translate-z":Hn()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,955 bytes, line 120
120],"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",ne,te]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",ne,te]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Se,eo,qr,kg]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},Ik=mk(Mk);function Dt(...t){return Ik(r0(t))}const S0=O.forwardRef(({...t},e)=>S.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));S0.displayName="ToastProvider";const b0=O.forwardRef(({...t},e)=>S.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));b0.displayName="ToastViewport";const Fk=mf("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),k0=O.forwardRef(({className:t,variant:e,...r},i)=>S.jsx("div",{ref:i,className:Dt(Fk({variant:e}),t),...r}));k0.displayName="Toast";const Vk=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));Vk.displayName="ToastAction";const E0=O.forwardRef(({className:t,...e},r)=>S.jsx("button",{ref:r,className:Dt("absolute right-2 top-2 rounded-md p-1 text-foreground
120/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:S.jsx(Kb,{className:"h-4 w-4"})}));E0.displayName="ToastClose";const T0=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("text-sm font-semibold",t),...e}));T0.displayName="ToastTitle";const C0=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("text-sm opacity-90",t),...e}));C0.displayName="ToastDescription";function Bk(){const{toasts:t}=Eb();return S.jsxs(S0,{children:[t.map(function({id:e,title:r,description:i,action:a,...l}){return S.jsxs(k0,{...l,children:[S.jsxs("div",{className:"grid gap-1",children:[r&&S.jsx(T0,{children:r}),i&&S.jsx(C0,{children:i})]}),a,S.jsx(E0,{})]},e)}),S.jsx(b0,{})]})}var Do=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Uk={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},mr,hf,$v,zk=($v=class{constructor(){ue(this,mr,Uk);ue(this,hf,!1)}setTimeoutProvider(t){X(this,mr,t)}setTimeout(t,e){return P(this,mr).setTimeout(t,e)}clearTimeout(t){P(this,mr).clearTimeout(t)}setInterval(t,e){return P(this,mr).setInterval(t,e)}clearInterval(t){P(this,mr).clearInterval(t)}},mr=new WeakMap,hf=new WeakMap,$v),Xr=new zk;function $k(t){setTimeout(t,0)}var ds=typeof window>"u"||"Deno"in globalThis;function Nt(){}function Wk(t,e){return typeof t=="function"?t(e):t}function kd(t){return typeof t=="number"&&t>=0&&t!==1/0}function P0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Er(t,e){return typeof t=="function"?t(e):t}function Zt(t,e){return typeof t=="function"?t(e):t}function Cg(t,e){const{type:r="all",exact:i,fetchStatus:a,predicate:l,queryKey:c,stale:d}=t;if(c){if(i){if(e.queryHash!==vf(c,e.options))return!1}else if(!So(e.queryKey,c))return!1}if(r!=="all"){const h=e.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||a&&a!==e.state.fetchStatus||l&&!l(e))}function Pg(t,e){const{exact:r,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(r){if(xo(e.options.mutationKey)!==xo(l))return!1}else if(!So(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function vf(t,e){return((e==null?void 0:e.queryKeyHashFn)||xo)(t)}function xo(t){return JSON.stringify(t,(e,r)=>Td(r)?Object.keys(r).sort().reduce((i,a)=>(i[a]=r[a],i),{}):r)}function So(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>So(t[r],e[r])):!1}var Hk=Object.prototype.hasOwnProperty;function _0(t,e,r=0){if(t===e)return t;if(r>500)return e;const i=_g(t)&&_g(e);if(!i&&!(Td(t)&&Td(e)))return e;const l=(i?t:Object.keys(t)).length,c=i?e:Object.keys(e),d=c.length,h=i?new Array(d):{};let m=0;for(let g=0;g<d;g++){const y=i?g:c[g],w=t[y],T=e[y];if(w===T){h[y]=w,(i?g<l:Hk.call(t,y))&&m++;continue}if(w===null||T===null||typeof w!="object"||typeof T!="object"){h[y]=T;continue}const k=_0(w,T,r+1);h[y]=k,k===w&&m++}return l===d&&m===l?t:h}function Ed(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function _g(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Td(t){if(!Rg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Rg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Rg(t){return Object.prototype.toString.call(t)==="[object Object]"}function qk(t){return new Promise(e=>{Xr.setTimeout(e,t)})}function Cd(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?_0(t,e):e}function Kk(t,e,r=0){const i=[...t,e];return r&&i.length>r?i.slice(1):i}function Qk(t,e,r=0){const i=[e,...t];return r&&i.length>r?i.slice(0,-1):i}var wf=Symbol();function R0(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===wf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function A0(t,e){return typeof t=="function"?t(...e):!!t}function Gk(t,e,r){let i=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),i||(i=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),t}var es,gr,Ks,Wv,Yk=(Wv=class extends Do{constructor(){super();ue(this,es);ue(this,gr);ue(this,Ks);X(this,Ks,e=>{if(!ds&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){P(this,gr)||this.setEventListener(P(this,Ks))}onUnsubscribe(){var e;this.hasListeners()||((e=P(this,gr))==null||e.call(this),X(this,gr,void 0))}setEventListener(e){var r;X(this,Ks,e),(r=P(this,gr))==null||r.call(this),X(this,gr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){P(this,es)!==e&&(X(this,es,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,597 bytes, line 120
120this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof P(this,es)=="boolean"?P(this,es):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},es=new WeakMap,gr=new WeakMap,Ks=new WeakMap,Wv),xf=new Yk;function Pd(){let t,e;const r=new Promise((a,l)=>{t=a,e=l});r.status="pending",r.catch(()=>{});function i(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},r.reject=a=>{i({status:"rejected",reason:a}),e(a)},r}var Xk=$k;function Jk(){let t=[],e=0,r=d=>{d()},i=d=>{d()},a=Xk;const l=d=>{e?t.push(d):a(()=>{r(d)})},c=()=>{const d=t;t=[],d.length&&a(()=>{i(()=>{d.forEach(h=>{r(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var ft=Jk(),Qs,yr,Gs,Hv,Zk=(Hv=class extends Do{constructor(){super();ue(this,Qs,!0);ue(this,yr);ue(this,Gs);X(this,Gs,e=>{if(!ds&&window.addEventListener){const r=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){P(this,yr)||this.setEventListener(P(this,Gs))}onUnsubscribe(){var e;this.hasListeners()||((e=P(this,yr))==null||e.call(this),X(this,yr,void 0))}setEventListener(e){var r;X(this,Gs,e),(r=P(this,yr))==null||r.call(this),X(this,yr,e(this.setOnline.bind(this)))}setOnline(e){P(this,Qs)!==e&&(X(this,Qs,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return P(this,Qs)}},Qs=new WeakMap,yr=new WeakMap,Gs=new WeakMap,Hv),Pl=new Zk;function eE(t){return Math.min(1e3*2**t,3e4)}function O0(t){return(t??"online")==="online"?Pl.isOnline():!0}var _d=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function N0(t){let e=!1,r=0,i;const a=Pd(),l=()=>a.status!=="pending",c=b=>{var x;if(!l()){const A=new _d(b);w(A),(x=t.onCancel)==null||x.call(t,A)}},d=()=>{e=!0},h=()=>{e=!1},m=()=>xf.isFocused()&&(t.networkMode==="always"||Pl.isOnline())&&t.canRun(),g=()=>O0(t.networkMode)&&t.canRun(),y=b=>{l()||(i==null||i(),a.resolve(b))},w=b=>{l()||(i==null||i(),a.reject(b))},T=()=>new Promise(b=>{var x;i=A=>{(l()||m())&&b(A)},(x=t.onPause)==null||x.call(t)}).then(()=>{var b;i=void 0,l()||(b=t.onContinue)==null||b.call(t)}),k=()=>{if(l())return;let b;const x=r===0?t.initialPromise:void 0;try{b=x??t.fn()}catch(A){b=Promise.reject(A)}Promise.resolve(b).then(y).catch(A=>{var K;if(l())return;const V=t.retry??(ds?0:3),L=t.retryDelay??eE,M=typeof L=="function"?L(r,A):L,U=V===!0||typeof V=="number"&&r<V||typeof V=="function"&&V(r,A);if(e||!U){w(A);return}r++,(K=t.onFail)==null||K.call(t,r,A),qk(M).then(()=>m()?void 0:T()).then(()=>{e?w(A):k()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?k():T().then(k),a)}}var ts,qv,L0=(qv=class{constructor(){ue(this,ts)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kd(this.gcTime)&&X(this,ts,Xr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ds?1/0:300*1e3))}clearGcTimeout(){P(this,ts)&&(Xr.clearTimeout(P(this,ts)),X(this,ts,void 0))}},ts=new WeakMap,qv),ns,Ys,Jt,rs,at,Ao,ss,dn,In,Kv,tE=(Kv=class extends L0{constructor(e){super();ue(this,dn);ue(this,ns);ue(this,Ys);ue(this,Jt);ue(this,rs);ue(this,at);ue(this,Ao);ue(this,ss);X(this,ss,!1),X(this,Ao,e.defaultOptions),this.setOptions(e.options),this.observers=[],X(this,rs,e.client),X(this,Jt,P(this,rs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,X(this,ns,Og(this.options)),this.state=e.state??P(this,ns),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=P(this,at))==null?void 0:e.promise}setOptions(e){if(this.options={...P(this,Ao),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Og(this.options);r.data!==void 0&&(this.setState(Ag(r.data,r.dataUpdatedAt)),X(this,ns,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Jt).remove(this)}setData(e,r){const i=Cd(this.state.data,e,this.options);return ke(this,dn,In).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(e,r){ke(this,dn,In).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var i,a;const r=(i=P(this,at))==null?void 0:i.promise;
vendor: 3,556 bytes, line 120
120return(a=P(this,at))==null||a.cancel(e),r?r.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,ns))}isActive(){return this.observers.some(e=>Zt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Er(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:!P0(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=P(this,at))==null||r.continue()}onOnline(){var r;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=P(this,at))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),P(this,Jt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(P(this,at)&&(P(this,ss)?P(this,at).cancel({revert:!0}):P(this,at).cancelRetry()),this.scheduleGc()),P(this,Jt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,dn,In).call(this,{type:"invalidate"})}async fetch(e,r){var h,m,g,y,w,T,k,b,x,A,V,L;if(this.state.fetchStatus!=="idle"&&((h=P(this,at))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(P(this,at))return P(this,at).continueRetry(),P(this,at).promise}if(e&&this.setOptions(e),!this.options.queryFn){const M=this.observers.find(U=>U.options.queryFn);M&&this.setOptions(M.options)}const i=new AbortController,a=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(X(this,ss,!0),i.signal)})},l=()=>{const M=R0(this.options,r),K=(()=>{const G={client:P(this,rs),queryKey:this.queryKey,meta:this.meta};return a(G),G})();return X(this,ss,!1),this.options.persister?this.options.persister(M,K,this):M(K)},d=(()=>{const M={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:P(this,rs),state:this.state,fetchFn:l};return a(M),M})();(m=this.options.behavior)==null||m.onFetch(d,this),X(this,Ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&ke(this,dn,In).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),X(this,at,N0({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:M=>{M instanceof _d&&M.revert&&this.setState({...P(this,Ys),fetchStatus:"idle"}),i.abort()},onFail:(M,U)=>{ke(this,dn,In).call(this,{type:"failed",failureCount:M,error:U})},onPause:()=>{ke(this,dn,In).call(this,{type:"pause"})},onContinue:()=>{ke(this,dn,In).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const M=await P(this,at).start();if(M===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(M),(T=(w=P(this,Jt).config).onSuccess)==null||T.call(w,M,this),(b=(k=P(this,Jt).config).onSettled)==null||b.call(k,M,this.state.error,this),M}
120catch(M){if(M instanceof _d){if(M.silent)return P(this,at).promise;if(M.revert){if(this.state.data===void 0)throw M;return this.state.data}}throw ke(this,dn,In).call(this,{type:"error",error:M}),(A=(x=P(this,Jt).config).onError)==null||A.call(x,M,this),(L=(V=P(this,Jt).config).onSettled)==null||L.call(V,this.state.data,M,this),M}finally{this.scheduleGc()}}},ns=new WeakMap,Ys=new WeakMap,Jt=new WeakMap,rs=new WeakMap,at=new WeakMap,Ao=new WeakMap,ss=new WeakMap,dn=new WeakSet,In=function(e){const r=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...j0(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Ag(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,Ys,e.manual?a:void 0),a;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=r(this.state),ft.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),P(this,Jt).notify({query:this,type:"updated",action:e})})},Kv);function j0(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O0(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Ag(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Og(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ot,Ee,Oo,Et,is,Xs,Fn,vr,No,Js,Zs,os,as,wr,ei,Ne,io,Rd,Ad,Od,Nd,Ld,jd,Dd,D0,Qv,nE=(Qv=class extends Do{constructor(e,r){super();ue(this,Ne);ue(this,Ot);ue(this,Ee);ue(this,Oo);ue(this,Et);ue(this,is);ue(this,Xs);ue(this,Fn);ue(this,vr);ue(this,No);ue(this,Js);ue(this,Zs);ue(this,os);ue(this,as);ue(this,wr);ue(this,ei,new Set);this.options=r,X(this,Ot,e),X(this,vr,null),X(this,Fn,Pd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,Ee).addObserver(this),Ng(P(this,Ee),this.options)?ke(this,Ne,io).call(this):this.updateResult(),ke(this,Ne,Nd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Md(P(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Md(P(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,Ne,Ld).call(this),ke(this,Ne,jd).call(this),P(this,Ee).removeObserver(this)}setOptions(e){const r=this.options,i=P(this,Ee);if(this.options=P(this,Ot).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Zt(this.options.enabled,P(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ke(this,Ne,Dd).call(this),P(this,Ee).setOptions(this.options),r._defaulted&&!Ed(this.options,r)&&P(this,Ot).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,Ee),observer:this});const a=this.hasListeners();a&&Lg(P(this,Ee),i,this.options,r)&&ke(this,Ne,io).call(this),this.updateResult(),a&&(P(this,Ee)!==i||Zt(this.options.enabled,P(this,Ee))!==Zt(r.enabled,P(this,Ee))||Er(this.options.staleTime,P(this,Ee))!==Er(r.staleTime,P(this,Ee)))&&ke(this,Ne,Rd).call(this);const l=ke(this,Ne,Ad).call(this);a&&(P(this,Ee)!==i||Zt(this.options.enabled,P(this,Ee))!==Zt(r.enabled,P(this,Ee))||l!==P(this,wr))&&ke(this,Ne,Od).call(this,l)}getOptimisticResult(e){const r=P(this,Ot).getQueryCache().build(P(this,Ot),e),i=this.createResult(r,e);return sE(this,i)&&(X(this,Et,i),X(this,Xs,this.options),X(this,is,P(this,Ee).state)),i}getCurrentResult(){return P(this,Et)}trackResult(e,r){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),r==null||r(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&P(this,Fn).status==="pending"&&P(this,Fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){P(this,ei).add(e)}getCurrentQuery(){return P(this,Ee)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=P(this,Ot).defaultQueryOptions(e),i=P(this,Ot).getQueryCache().build(P(this,Ot),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(e){return ke(this,Ne,io).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,Et)))}createResult(e,r){var J;const i=P(this,Ee),a=this.options,l=P(this,Et),c=P(this,is),d=P(this,Xs),m=e!==i?e.state:P(this,Oo),{state:g}=e;let y={...g},w=!1,T;if(r._optimisticResults){const me=this.hasListeners(),de=!me&&Ng(e,r),Ce=me&&Lg(e,i,r,a);(de||Ce)&&(y={...y,...j0(g.data,e.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:k,errorUpdatedAt:b,status:x}=y;T=y.data;let A=!1;if(r.placeholderData!==void 0&&T===void 0&&x==="pending"){let me;l!=null&&l.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(me=l.data,A=!0):me=typeof r.placeholderData=="function"?r.placeholderData((J=P(this,Zs))==null?void 0:J.state.data,P(this,Zs)):r.placeholderData,me!==void 0&&(x="success",T=Cd(l==null?void 0:l.data,me,r),w=!0)}if(r.select&&T!==void 0&&!A)if(l&&T===(c==null?void 0:c.data)&&r.select===P(this,No))T=P(this,Js);else try{X(this,No,r.select),T=r.select(T),T=Cd(l==null?void 0:l.data,T,r),X(this,Js,T),X(this,vr,null)}catch(me){X(this,vr,me)}P(this,vr)&&(k=P(this,vr),T=P(this,Js),b=Date.now(),x="error");const V=y.fetchStatus==="fetching",L=x==="pending",M=x==="error",U=L&&V,K=T!==void 0,I={status:x,fetchStatus:y.fetchStatus,isPending:L,isSuccess:x==="success",isError:M,isInitialLoading:U,isLoading:U,data:T,dataUpdatedAt:y.dataUpdatedAt,error:k,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdate
vendor: 4,401 bytes, line 120
120Count:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:V,isRefetching:V&&!L,isLoadingError:M&&!K,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:M&&K,isStale:Sf(e,r),refetch:this.refetch,promise:P(this,Fn),isEnabled:Zt(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const me=I.data!==void 0,de=I.status==="error"&&!me,Ce=Me=>{de?Me.reject(I.error):me&&Me.resolve(I.data)},je=()=>{const Me=X(this,Fn,I.promise=Pd());Ce(Me)},Ae=P(this,Fn);switch(Ae.status){case"pending":e.queryHash===i.queryHash&&Ce(Ae);break;case"fulfilled":(de||I.data!==Ae.value)&&je();break;case"rejected":(!de||I.error!==Ae.reason)&&je();break}}return I}updateResult(){const e=P(this,Et),r=this.createResult(P(this,Ee),this.options);if(X(this,is,P(this,Ee).state),X(this,Xs,this.options),P(this,is).data!==void 0&&X(this,Zs,P(this,Ee)),Ed(r,e))return;X(this,Et,r);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!P(this,ei).size)return!0;const c=new Set(l??P(this,ei));return this.options.throwOnError&&c.add("error"),Object.keys(P(this,Et)).some(d=>{const h=d;return P(this,Et)[h]!==e[h]&&c.has(h)})};ke(this,Ne,D0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,Ne,Nd).call(this)}},Ot=new WeakMap,Ee=new WeakMap,Oo=new WeakMap,Et=new WeakMap,is=new WeakMap,Xs=new WeakMap,Fn=new WeakMap,vr=new WeakMap,No=new WeakMap,Js=new WeakMap,Zs=new WeakMap,os=new WeakMap,as=new WeakMap,wr=new WeakMap,ei=new WeakMap,Ne=new WeakSet,io=function(e){ke(this,Ne,Dd).call(this);let r=P(this,Ee).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Nt)),r},Rd=function(){ke(this,Ne,Ld).call(this);const e=Er(this.options.staleTime,P(this,Ee));if(ds||P(this,Et).isStale||!kd(e))return;const i=P0(P(this,Et).dataUpdatedAt,e)+1;X(this,os,Xr.setTimeout(()=>{P(this,Et).isStale||this.updateResult()},i))},Ad=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,Ee)):this.options.refetchInterval)??!1},Od=function(e){ke(this,Ne,jd).call(this),X(this,wr,e),!(ds||Zt(this.options.enabled,P(this,Ee))===!1||!kd(P(this,wr))||P(this,wr)===0)&&X(this,as,Xr.setInterval(()=>{(this.options.refetchIntervalInBackground||xf.isFocused())&&ke(this,Ne,io).call(this)},P(this,wr)))},Nd=function(){ke(this,Ne,Rd).call(this),ke(this,Ne,Od).call(this,ke(this,Ne,Ad).call(this))},Ld=function(){P(this,os)&&(Xr.clearTimeout(P(this,os)),X(this,os,void 0))},jd=function(){P(this,as)&&(Xr.clearInterval(P(this,as)),X(this,as,void 0))},Dd=function(){const e=P(this,Ot).getQueryCache().build(P(this,Ot),this.options);if(e===P(this,Ee))return;const r=P(this,Ee);X(this,Ee,e),X(this,Oo,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},D0=function(e){ft.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(P(this,Et))}),P(this,Ot).getQueryCache().notify({query:P(this,Ee),type:"observerResultsUpdated"})})},Qv);function rE(t,e){return Zt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ng(t,e){return rE(t,e)||t.state.data!==void 0&&Md(t,e,e.refetchOnMount)}function Md(t,e,r){if(Zt(e.enabled,t)!==!1&&Er(e.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&Sf(t,e)}return!1}function Lg(t,e,r,i){return(t!==e||Zt(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Sf(t,r)}function Sf(t,e){return Zt(e.enabled,t)!==!1&&t.isStaleByTime(Er(e.staleTime,t))}function sE(t,e){return!Ed(t.getCurrentResult(),e)}function jg(t){return{onFetch:(e,r)=>{var g,y,w,T,k;const i=e.options,a=(w=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((T=e.state.data)==null?void 0:T.pages)||[],c=((k=e.state.data)==null?void 0:k.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const m=async()=>{let b=!1;const x=L=>{Gk(L,()=>e.signal,()=>b=!0)},A=R0(e.options,e.fetchOptions),V=async(L,M,U)=>{if(b)return Promise.reject();if(M==null&&L.pages.length)return Promise.resolve(L);const G=(()=>{const de={client:e.client,queryKey:e.queryKey,pageParam:M,direction:U?"backward":"forward",meta:e.options.meta};return x(de),de})(),I=await A(G),{maxPages:J}=e.options,me=U?Qk:Kk;
120return{pages:me(L.pages,I,J),pageParams:me(L.pageParams,M,J)}};if(a&&l.length){const L=a==="backward",M=L?iE:Dg,U={pages:l,pageParams:c},K=M(i,U);d=await V(U,K,L)}else{const L=t??l.length;do{const M=h===0?c[0]??i.initialPageParam:Dg(i,d);if(h>0&&M==null)break;d=await V(d,M),h++}while(h<L)}return d};e.options.persister?e.fetchFn=()=>{var b,x;return(x=(b=e.options).persister)==null?void 0:x.call(b,m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=m}}}function Dg(t,{pages:e,pageParams:r}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,r[i],r):void 0}function iE(t,{pages:e,pageParams:r}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,r[0],r):void 0}var Lo,xn,vt,ls,Sn,hr,Gv,oE=(Gv=class extends L0{constructor(e){super();ue(this,Sn);ue(this,Lo);ue(this,xn);ue(this,vt);ue(this,ls);X(this,Lo,e.client),this.mutationId=e.mutationId,X(this,vt,e.mutationCache),X(this,xn,[]),this.state=e.state||aE(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){P(this,xn).includes(e)||(P(this,xn).push(e),this.clearGcTimeout(),P(this,vt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,xn,P(this,xn).filter(r=>r!==e)),this.scheduleGc(),P(this,vt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){P(this,xn).length||(this.state.status==="pending"?this.scheduleGc():P(this,vt).remove(this))}continue(){var e;return((e=P(this,ls))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var c,d,h,m,g,y,w,T,k,b,x,A,V,L,M,U,K,G;const r=()=>{ke(this,Sn,hr).call(this,{type:"continue"})},i={client:P(this,Lo),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,ls,N0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(I,J)=>{ke(this,Sn,hr).call(this,{type:"failed",failureCount:I,error:J})},onPause:()=>{ke(this,Sn,hr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,vt).canRun(this)}));const a=this.state.status==="pending",l=!P(this,ls).canStart();try{if(a)r();else{ke(this,Sn,hr).call(this,{type:"pending",variables:e,isPaused:l}),P(this,vt).config.onMutate&&await P(this,vt).config.onMutate(e,this,i);const J=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,e,i));J!==this.state.context&&ke(this,Sn,hr).call(this,{type:"pending",context:J,variables:e,isPaused:l})}const I=await P(this,ls).start();return await((m=(h=P(this,vt).config).onSuccess)==null?void 0:m.call(h,I,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,I,e,this.state.context,i)),await((T=(w=P(this,vt).config).onSettled)==null?void 0:T.call(w,I,null,this.state.variables,this.state.context,this,i)),await((b=(k=this.options).onSettled)==null?void 0:b.call(k,I,null,e,this.state.context,i)),ke(this,Sn,hr).call(this,{type:"success",data:I}),I}catch(I){try{await((A=(x=P(this,vt).config).onError)==null?void 0:A.call(x,I,e,this.state.context,this,i))}catch(J){Promise.reject(J)}try{await((L=(V=this.options).onError)==null?void 0:L.call(V,I,e,this.state.context,i))}catch(J){Promise.reject(J)}try{await((U=(M=P(this,vt).config).onSettled)==null?void 0:U.call(M,void 0,I,this.state.variables,this.state.context,this,i))}catch(J){Promise.reject(J)}try{await((G=(K=this.options).onSettled)==null?void 0:G.call(K,void 0,I,e,this.state.context,i))}catch(J){Promise.reject(J)}throw ke(this,Sn,hr).call(this,{type:"error",error:I}),I}finally{P(this,vt).runNext(this)}}},Lo=new WeakMap,xn=new WeakMap,vt=new WeakMap,ls=new WeakMap,Sn=new WeakSet,hr=function(e){const r=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPau
120sed:!1,status:"error"}}};this.state=r(this.state),ft.batch(()=>{P(this,xn).forEach(i=>{i.onMutationUpdate(e)}),P(this,vt).notify({mutation:this,type:"updated",action:e})})},Gv);function aE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,fn,jo,Yv,lE=(Yv=class extends Do{constructor(e={}){super();ue(this,Vn);ue(this,fn);ue(this,jo);this.config=e,X(this,Vn,new Set),X(this,fn,new Map),X(this,jo,0)}build(e,r,i){const a=new oE({client:e,mutationCache:this,mutationId:++tl(this,jo)._,options:e.defaultMutationOptions(r),state:i});return this.add(a),a}add(e){P(this,Vn).add(e);const r=il(e);if(typeof r=="string"){const i=P(this,fn).get(r);i?i.push(e):P(this,fn).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(P(this,Vn).delete(e)){const r=il(e);if(typeof r=="string"){const i=P(this,fn).get(r);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&P(this,fn).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=il(e);if(typeof r=="string"){const i=P(this,fn).get(r),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const r=il(e);if(typeof r=="string"){const a=(i=P(this,fn).get(r))==null?void 0:i.find(l=>
vendor: 4,718 bytes, line 120
120l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{P(this,Vn).forEach(e=>{this.notify({type:"removed",mutation:e})}),P(this,Vn).clear(),P(this,fn).clear()})}getAll(){return Array.from(P(this,Vn))}find(e){const r={exact:!0,...e};return this.getAll().find(i=>Pg(r,i))}findAll(e={}){return this.getAll().filter(r=>Pg(e,r))}notify(e){ft.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return ft.batch(()=>Promise.all(e.map(r=>r.continue().catch(Nt))))}},Vn=new WeakMap,fn=new WeakMap,jo=new WeakMap,Yv);function il(t){var e;return(e=t.options.scope)==null?void 0:e.id}var bn,Xv,uE=(Xv=class extends Do{constructor(e={}){super();ue(this,bn);this.config=e,X(this,bn,new Map)}build(e,r,i){const a=r.queryKey,l=r.queryHash??vf(a,r);let c=this.get(l);return c||(c=new tE({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(r),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(c)),c}add(e){P(this,bn).has(e.queryHash)||(P(this,bn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=P(this,bn).get(e.queryHash);r&&(e.destroy(),r===e&&P(this,bn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ft.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return P(this,bn).get(e)}getAll(){return[...P(this,bn).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(i=>Cg(r,i))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(i=>Cg(e,i)):r}notify(e){ft.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},bn=new WeakMap,Xv),qe,xr,Sr,ti,ni,br,ri,si,Jv,cE=(Jv=class{constructor(t={}){ue(this,qe);ue(this,xr);ue(this,Sr);ue(this,ti);ue(this,ni);ue(this,br);ue(this,ri);ue(this,si);X(this,qe,t.queryCache||new uE),X(this,xr,t.mutationCache||new lE),X(this,Sr,t.defaultOptions||{}),X(this,ti,new Map),X(this,ni,new Map),X(this,br,0)}mount(){tl(this,br)._++,P(this,br)===1&&(X(this,ri,xf.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,qe).onFocus())})),X(this,si,Pl.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,qe).onOnline())})))}unmount(){var t,e;tl(this,br)._--,P(this,br)===0&&((t=P(this,ri))==null||t.call(this),X(this,ri,void 0),(e=P(this,si))==null||e.call(this),X(this,si,void 0))}isFetching(t){return P(this,qe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return P(this,xr).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=P(this,qe).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=P(this,qe).build(this,e),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Er(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return P(this,qe).findAll(t).map(({queryKey:e,state:r})=>{const i=r.data;return[e,i]})}setQueryData(t,e,r){const i=this.defaultQueryOptions({queryKey:t}),a=P(this,qe).get(i.queryHash),l=a==null?void 0:a.state.data,c=Wk(e,l);if(c!==void 0)return P(this,qe).build(this,i).setData(c,{...r,manual:!0})}setQueriesData(t,e,r){return ft.batch(()=>P(this,qe).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=P(this,qe).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=P(this,qe);ft.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=P(this,qe);return ft.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},i=ft.batch(()=>P(this,qe).findAll(t).map(a=>a.cancel(r)));return Promise.all(i).then(Nt).catch(Nt)}invalidateQueries(t,e={}){return ft.batch(()=>(P(this,qe).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},i=ft.batch(()=>P(this,qe).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,r);return r.throwOnError||(l=l.catch(Nt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Nt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=P(this,qe).build(this,e);return r.isStaleByTime(Er(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}
120prefetchQuery(t){return this.fetchQuery(t).then(Nt).catch(Nt)}fetchInfiniteQuery(t){return t.behavior=jg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Nt).catch(Nt)}ensureInfiniteQueryData(t){return t.behavior=jg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Pl.isOnline()?P(this,xr).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,qe)}getMutationCache(){return P(this,xr)}getDefaultOptions(){return P(this,Sr)}setDefaultOptions(t){X(this,Sr,t)}setQueryDefaults(t,e){P(this,ti).set(xo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...P(this,ti).values()],r={};return e.forEach(i=>{So(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,e){P(this,ni).set(xo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...P(this,ni).values()],r={};return e.forEach(i=>{So(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...P(this,Sr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=vf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===wf&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...P(this,Sr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){P(this,qe).clear(),P(this,xr).clear()}},qe=new WeakMap,xr=new WeakMap,Sr=new WeakMap,ti=new WeakMap,ni=new WeakMap,br=new WeakMap,ri=new WeakMap,si=new WeakMap,Jv),M0=O.createContext(void 0),dE=t=>{const e=O.useContext(M0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},fE=({client:t,children:e})=>(O.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),S.jsx(M0.Provider,{value:t,children:e})),I0=O.createContext(!1),hE=()=>O.useContext(I0);I0.Provider;function pE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var mE=O.createContext(pE()),gE=()=>O.useContext(mE),yE=(t,e,r)=>{const i=r!=null&&r.state.error&&typeof t.throwOnError=="function"?A0(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},vE=t=>{O.useEffect(()=>{t.clearReset()},[t])},wE=({result:t,errorResetBoundary:e,throwOnError:r,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||A0(r,[t.error,i])),xE=t=>{if(t.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>r(i(...a)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},SE=(t,e)=>t.isLoading&&t.isFetching&&!e,bE=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Mg=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function kE(t,e,r){var w,T,k,b;const i=hE(),a=gE(),l=dE(),c=l.defaultQueryOptions(t);(T=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||T.call(w,c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=i?"isRestoring":"optimistic",xE(c),yE(c,a,d),vE(a);const h=!l.getQueryCache().get(c.queryHash),[m]=O.useState(()=>new e(l,c)),g=m.getOptimisticResult(c),y=!i&&t.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(x=>{const A=y?m.subscribe(ft.batchCalls(x)):Nt;return m.updateResult(),A},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),O.useEffect(()=>{m.setOptions(c)},[c,m]),bE(c,g))throw Mg(c,m,a);if(wE({result:g,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw g.error;if((b=(k=l.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||b.call(k,c,g),c.experimental_prefetchInRender&&!ds&&SE(g,i)){const x=h?Mg(c,m,a):d==null?void 0:d.promise;x==null||x.catch(Nt).finally(()=>{m.updateResult()})}return c.notifyOnChangeProps?g:m.trackResult(g)}function EE(t,e){return kE(t,nE)}const TE=new cE({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});t0();/**
121 * @remix-run/router v1.23.2
122 *
123 * Copyright (c) Remix Software Inc.
124 *
125 * This source code is licensed under the MIT license found in the
126 * LICENSE.md file in the root directory of this source tree.
127 *
128 * @license MIT
129 */function bo(){return bo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bo.apply(this,arguments)}var kr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(kr||(kr={}));const Ig="popstate";function CE(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:c,hash:d}=i.location;return Id("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 9,647 bytes, lines 129-138
129function r(i,a){return typeof a=="string"?a:_l(a)}return _E(e,r,null,t)}function et(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function bf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function PE(){return Math.random().toString(36).substr(2,8)}function Fg(t,e){return{usr:t.state,key:t.key,idx:e}}function Id(t,e,r,i){return r===void 0&&(r=null),bo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ui(e):e,{state:r,key:e&&e.key||i||PE()})}function _l(t){let{pathname:e="/",search:r="",hash:i=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function ui(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function _E(t,e,r,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,c=a.history,d=kr.Pop,h=null,m=g();m==null&&(m=0,c.replaceState(bo({},c.state,{idx:m}),""));function g(){return(c.state||{idx:null}).idx}function y(){d=kr.Pop;let x=g(),A=x==null?null:x-m;m=x,h&&h({action:d,location:b.location,delta:A})}function w(x,A){d=kr.Push;let V=Id(b.location,x,A);m=g()+1;let L=Fg(V,m),M=b.createHref(V);try{c.pushState(L,"",M)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(M)}l&&h&&h({action:d,location:b.location,delta:1})}function T(x,A){d=kr.Replace;let V=Id(b.location,x,A);m=g();let L=Fg(V,m),M=b.createHref(V);c.replaceState(L,"",M),l&&h&&h({action:d,location:b.location,delta:0})}function k(x){let A=a.location.origin!=="null"?a.location.origin:a.location.href,V=typeof x=="string"?x:_l(x);return V=V.replace(/ $/,"%20"),et(A,"No window.location.(origin|href) available to create URL for href: "+V),new URL(V,A)}let b={get action(){return d},get location(){return t(a,c)},listen(x){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Ig,y),h=x,()=>{a.removeEventListener(Ig,y),h=null}},createHref(x){return e(a,x)},createURL:k,encodeLocation(x){let A=k(x);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:T,go(x){return c.go(x)}};return b}var Vg;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Vg||(Vg={}));function RE(t,e,r){return r===void 0&&(r="/"),AE(t,e,r)}function AE(t,e,r,i){let a=typeof e=="string"?ui(e):e,l=kf(a.pathname||"/",r);if(l==null)return null;let c=F0(t);OE(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let m=$E(l);d=BE(c[h],m)}return d}function F0(t,e,r,i){e===void 0&&(e=[]),r===void 0&&(r=[]),i===void 0&&(i="");let a=(l,c,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};h.relativePath.startsWith("/")&&(et(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let m=Tr([i,h.relativePath]),g=r.concat(h);l.children&&l.children.length>0&&(et(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),F0(l.children,e,g,m)),!(l.path==null&&!l.index)&&e.push({path:m,score:FE(m,l.index),routesMeta:g})};return t.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,c);else for(let h of V0(l.path))a(l,c,h)}),e}function V0(t){let e=t.split("/");if(e.length===0)return[];let[r,...i]=e,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let c=V0(i.join("/")),d=[];return d.push(...c.map(h=>h===""?l:[l,h].join("/"))),a&&d.push(...c),d.map(h=>t.startsWith("/")&&h===""?"/":h)}function OE(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:VE(e.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const NE=/^:[\w-]+$/,LE=3,jE=2,DE=1,ME=10,IE=-2,Bg=t=>t==="*";function FE(t,e){let r=t.split("/"),i=r.length;return r.some(Bg)&&(i+=IE),e&&(i+=jE),r.filter(a=>!Bg(a)).reduce((a,l)=>a+(NE.test(l)?LE:l===""?DE:ME),i)}function VE(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function BE(t,e,r){let{routesMeta:i}=t,a={},l="/",c=[];for(let d=0;d<i.length;++d){let h=i[d],m=d===i.length-1,g=l==="/"?e:e.slice(l.length)||"/",y=UE({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),w=h.route;if(!y)return null;Object.assign(a,y.params),c.push({params:a,pathname:Tr([l,y.pathname]),pathnameBase:QE(Tr([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=Tr([l,y.pathnameBase]))}return c}function UE(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,i]=zE(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((m,g,y)=>{let{paramName:w,isOptional:T}=g;if(w==="*"){let b=d[y]||"";c=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}const k=d[y];return T&&!k?m[w]=void 0:m[w]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:t}}function zE(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),bf(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function $E(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return bf(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function kf(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,i=t.charAt(r);return i&&i!=="/"?null:t.slice(r)||"/"}const WE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HE=t=>WE.test(t);function qE(t,e){e===void 0&&(e="/");let{pathname:r,search:i="",hash:a=""}=typeof t=="string"?ui(t):t,l;if(r)if(HE(r))l=r;else{if(r.includes("//")){let c=r;r=r.replace(/\/\/+/g,"/"),bf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+r))}r.startsWith("/")?l=Ug(r.substring(1),"/"):l=Ug(r,e)}else l=e;return{pathname:l,search:GE(i),hash:YE(a)}}function Ug(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Jc(t,e,r,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function KE(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function B0(t,e){let r=KE(t);return e?r.map((i,a)=>a===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function U0(t,e,r,i){i===void 0&&(i=!1);let a;typeof t=="string"?a=ui(t):(a=bo({},t),et(!a.pathname||!a.pathname.includes("?"),Jc("?","pathname","search",a)),et(!a.pathname||!a.pathname.includes("#"),Jc("#","pathname","hash",a)),et(!a.search||!a.search.includes("#"),Jc("#","search","hash",a)));let l=t===""||a.pathname==="",c=l?"/":a.pathname,d;if(c==null)d=r;else{let y=e.length-1;if(!i&&c.startsWith("..")){let w=c.split("/");for(;w[0]==="..";)w.shift(),y-=1;a.pathname=w.join("/")}d=y>=0?e[y]:"/"}let h=qE(a,d),m=c&&c!=="/"&&c.endsWith("/"),g=(l||c===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}const Tr=t=>t.join("/").replace(/\/\/+/g,"/"),QE=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),GE=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,YE=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function XE(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const z0=["post","put","patch","delete"];new Set(z0);const JE=["get",...z0];new Set(JE);/**
130 * React Router v6.30.3
131 *
132 * Copyright (c) Remix Software Inc.
133 *
134 * This source code is licensed under the MIT license found in the
135 * LICENSE.md file in the root directory of this source tree.
136 *
137 * @license MIT
138 */function ko(){return ko=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ko.apply(this,arguments)}const Ef=O.createContext(null),ZE=O.createContext(null),ps=O.createContext(null),Fl=O.createContext(null),Ar=O.createContext({outlet:null,matches:[],isDataRoute:!1}),$0=O.createContext(null);function eT(t,e){let{relative:r}=e===void 0?{}:e;Mo()||et(!1);let{basename:i,navigator:a}=O.useContext(ps),{hash:l,pathname:c,search:d}=H0(t,{relative:r}),h=c;return i!=="/"&&(h=c==="/"?i:Tr([i,c])),a.createHref({pathname:h,search:d,hash:l})}function Mo(){return O.useContext(Fl)!=null}function Io(){return Mo()||et(!1),O.useContext(Fl).location}function W0(t){O.useContext(ps).static||O.useLayoutEffect(t)}function tT(){let{isDataRoute:t}=O.useContext(Ar);return t?gT():nT()}function nT(){Mo()||et(!1);
vendor: 4,681 bytes, line 138
138let t=O.useContext(Ef),{basename:e,future:r,navigator:i}=O.useContext(ps),{matches:a}=O.useContext(Ar),{pathname:l}=Io(),c=JSON.stringify(B0(a,r.v7_relativeSplatPath)),d=O.useRef(!1);return W0(()=>{d.current=!0}),O.useCallback(function(m,g){if(g===void 0&&(g={}),!d.current)return;if(typeof m=="number"){i.go(m);return}let y=U0(m,JSON.parse(c),l,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Tr([e,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[e,i,c,l,t])}const rT=O.createContext(null);function sT(t){let e=O.useContext(Ar).outlet;return e&&O.createElement(rT.Provider,{value:t},e)}function H0(t,e){let{relative:r}=e===void 0?{}:e,{future:i}=O.useContext(ps),{matches:a}=O.useContext(Ar),{pathname:l}=Io(),c=JSON.stringify(B0(a,i.v7_relativeSplatPath));return O.useMemo(()=>U0(t,JSON.parse(c),l,r==="path"),[t,c,l,r])}function iT(t,e){return oT(t,e)}function oT(t,e,r,i){Mo()||et(!1);let{navigator:a}=O.useContext(ps),{matches:l}=O.useContext(Ar),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let m=Io(),g;if(e){var y;let x=typeof e=="string"?ui(e):e;h==="/"||(y=x.pathname)!=null&&y.startsWith(h)||et(!1),g=x}else g=m;let w=g.pathname||"/",T=w;if(h!=="/"){let x=h.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(x.length).join("/")}let k=RE(t,{pathname:T}),b=dT(k&&k.map(x=>Object.assign({},x,{params:Object.assign({},d,x.params),pathname:Tr([h,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?h:Tr([h,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,r,i);return e&&b?O.createElement(Fl.Provider,{value:{location:ko({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:kr.Pop}},b):b}function aT(){let t=mT(),e=XE(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},e),r?O.createElement("pre",{style:a},r):null,null)}const lT=O.createElement(aT,null);class uT extends O.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?O.createElement(Ar.Provider,{value:this.props.routeContext},O.createElement($0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cT(t){let{routeContext:e,match:r,children:i}=t,a=O.useContext(Ef);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),O.createElement(Ar.Provider,{value:e},i)}function dT(t,e,r,i){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),i===void 0&&(i=null),t==null){var l;if(!r)return null;if(r.errors)t=r.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let c=t,d=(a=r)==null?void 0:a.errors;if(d!=null){let g=c.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);g>=0||et(!1),c=c.slice(0,Math.min(c.length,g+1))}let h=!1,m=-1;if(r&&i&&i.v7_partialHydration)for(let g=0;g<c.length;g++){let y=c[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(m=g),y.route.id){let{loaderData:w,errors:T}=r,k=y.route.loader&&w[y.route.id]===void 0&&(!T||T[y.route.id]===void 0);if(y.route.lazy||k){h=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((g,y,w)=>{let T,k=!1,b=null,x=null;r&&(T=d&&y.route.id?d[y.route.id]:void 0,b=y.route.errorElement||lT,h&&(m<0&&w===0?(yT("route-fallback"),k=!0,x=null):m===w&&(k=!0,x=y.route.hydrateFallbackElement||null)));let A=e.concat(c.slice(0,w+1)),V=()=>{let L;return T?L=b:k?L=x:y.route.Component?L=O.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=g,O.createElement(cT,{match:y,routeContext:{outlet:g,matches:A,isDataRoute:r!=null},children:L})};return r&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?O.createElement(uT,{location:r.location,revalidation:r.revalidation,component:b,error:T,children:V(),routeC
138ontext:{outlet:null,matches:A,isDataRoute:!0}}):V()},null)}var q0=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(q0||{}),K0=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(K0||{});function fT(t){let e=O.useContext(Ef);return e||et(!1),e}function hT(t){let e=O.useContext(ZE);return e||et(!1),e}function pT(t){let e=O.useContext(Ar);return e||et(!1),e}function Q0(t){let e=pT(),r=e.matches[e.matches.length-1];return r.route.id||et(!1),r.route.id}function mT(){var t;let e=O.useContext($0),r=hT(),i=Q0();return e!==void 0?e:(t=r.errors)==null?void 0:t[i]}function gT(){let{router:t}=fT(q0.UseNavigateStable),e=Q0(K0.UseNavigateStable),r=O.useRef(!1);return W0(()=>{r.current=!0}),O.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,ko({fromRouteId:e},l)))},[t,e])}const zg={};function yT(t,e,r){zg[t]||(zg[t]=!0)}function vT(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function wT(t){return sT(t.context)}function Qr(t){et(!1)}function xT(t){let{basename:e="/",children:r=null,location:i,navigationType:a=kr.Pop,navigator:l,static:c=!1,future:d}=t;Mo()&&et(!1);let h=e.replace(/^\/*/,"/"),m=O.useMemo(()=>({basename:h,navigator:l,static:c,future:ko({v7_relativeSplatPath:!1},d)}),[h,d,l,c]);typeof i=="string"&&(i=ui(i));let{pathname:g="/",search:y="",hash:w="",state:T=null,key:k="default"}=i,b=O.useMemo(()=>{let x=kf(g,h);return x==null?null:{location:{pathname:x,search:y,hash:w,state:T,key:k},navigationType:a}},[h,g,y,w,T,k,a]);return b==null?null:O.createElement(ps.Provider,{value:m},O.createElement(Fl.Provider,{children:r,value:b}))}function ST(t){let{children:e,location:r}=t;return iT(Fd(e),r)}new Promise(()=>{});function Fd(t,e){e===void 0&&(e=[]);let r=[];return O.Children.forEach(t,(i,a)=>{if(!O.isValidElement(i))return;let l=[...e,a];if(i.type===O.Fragment){r.push.apply(r,Fd(i.props.children,l));return}i.type!==Qr&&et(!1),!i.props.index||!i.props.children||et(!1);let c={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Fd(i.props.children,l)),r.push(c)}),r}/**
139 * React Router DOM v6.30.3
140 *
141 * Copyright (c) Remix Software Inc.
142 *
143 * This source code is licensed under the MIT license found in the
144 * LICENSE.md file in the root directory of this source tree.
145 *
146 * @license MIT
147 */function Vd(){return Vd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Vd.apply(this,arguments)}function bT(t,e){if(t==null)return{};var r={},i=Object.keys(t),a,l;for(l=0;l<i.length;l++)a=i[l],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function kT(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ET(t,e){return t.button===0&&(!e||e==="_self")&&!kT(t)}const TT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],CT="6";try{window.__reactRouterVersion=CT}catch{}const PT="startTransition",$g=e0[PT];function _T(t){let{basename:e,children:r,future:i,window:a}=t,l=O.useRef();l.current==null&&(l.current=CE({window:a,v5Compat:!0}));let c=l.current,[d,h]=O.useState({action:c.action,location:c.location}),{v7_startTransition:m}=i||{},g=O.useCallback(y=>{m&&$g?$g(()=>h(y)):h(y)},[h,m]);return O.useLayoutEffect(()=>c.listen(g),[c,g]),O.useEffect(()=>vT(i),[i]),O.createElement(xT,{basename:e,children:r,location:d.location,navigationType:d.action,navigator:c,future:i})}const RT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ml=O.forwardRef(function(e,r){let{onClick:i,relative:a,reloadDocument:l,replace:c,state:d,target:h,to:m,preventScrollReset:g,viewTransition:y}
147=e,w=bT(e,TT),{basename:T}=O.useContext(ps),k,b=!1;if(typeof m=="string"&&AT.test(m)&&(k=m,RT))try{let L=new URL(window.location.href),M=m.startsWith("//")?new URL(L.protocol+m):new URL(m),U=kf(M.pathname,T);M.origin===L.origin&&U!=null?m=U+M.search+M.hash:b=!0}catch{}let x=eT(m,{relative:a}),A=OT(m,{replace:c,state:d,target:h,preventScrollReset:g,relative:a,viewTransition:y});function V(L){i&&i(L),L.defaultPrevented||A(L)}return O.createElement("a",Vd({},w,{href:k||x,onClick:b||l?i:V,ref:r,target:h}))});var Wg;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Wg||(Wg={}));var Hg;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Hg||(Hg={}));function OT(t,e){let{target:r,replace:i,state:a,preventScrollReset:l,relative:c,viewTransition:d}=e===void 0?{}:e,h=tT(),m=Io(),g=H0(t,{relative:c});return O.useCallback(y=>{if(ET(y,r)){y.preventDefault();let w=i!==void 0?i:_l(m)===_l(g);h(t,{replace:w,state:a,preventScrollReset:l,relative:c,viewTransition:d})}},[m,h,g,i,a,r,t,l,c,d])}function G0(t,e){return function(){return t.apply(e,arguments)}}const{toString:NT}=Object.prototype,{getPrototypeOf:Tf}=Object,{iterator:Vl,toStringTag:Y0}=Symbol,Bl=(t=>e=>{const r=NT.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),pn=t=>(t=t.toLowerCase(),e=>Bl(e)===t),Ul=t=>e=>typeof e===t,{isArray:ci}=Array,ii=Ul("undefined");function Fo(t){return t!==null&&!ii(t)&&t.constructor!==null&&!ii(t.constructor)&&Lt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const X0=pn("ArrayBuffer");function LT(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&X0(t.buffer),e}const jT=Ul("string"),Lt=Ul("function"),J0=Ul("number"),Vo=t=>t!==null&&typeof t=="object",DT=t=>t===!0||t===!1,gl=t=>{if(Bl(t)!=="object")return!1;const e=Tf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Y0 in t)&&!(Vl in t)},MT=t=>{if(!Vo(t)||Fo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},IT=pn("Date"),FT=pn("File"),VT=pn("Blob"),BT=pn("FileList"),UT=t=>Vo(t)&&Lt(t.pipe),zT=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Lt(t.append)&&((e=Bl(t))==="formdata"||e==="object"&&Lt(t.toString)&&t.toString()==="[object FormData]"))},$T=pn("URLSearchParams"),[WT,HT,qT,KT]=["ReadableStream","Request","Response","Headers"].map(pn),QT=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bo(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),ci(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Fo(t))return;const l=r?Object.getOwnPropertyNames(t):Object.keys(t),c=l.length;let d;for(i=0;i<c;i++)d=l[i],e.call(null,t[d],d,t)}}function Z0(t,e){if(Fo(t))return null;e=e.toLowerCase();const r=Object.keys(t);let i=r.length,a;for(;i-- >0;)if(a=r[i],e===a.toLowerCase())return a;return null}const Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ew=t=>!ii(t)&&t!==Jr;function Bd(){const{caseless:t,skipUndefined:e}=ew(this)&&this||{},r={},i=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const c=t&&Z0(r,l)||l;gl(r[c])&&gl(a)?r[c]=Bd(r[c],a):gl(a)?r[c]=Bd({},a):ci(a)?r[c]=a.slice():(!e||!ii(a))&&(r[c]=a)};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&Bo(arguments[a],i);return r}const GT=(t,e,r,{allOwnKeys:i}={})=>(Bo(e,(a,l)=>{r&&Lt(a)?Object.defineProperty(t,l,{value:G0(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),YT=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),XT=(t,e,r,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},JT=(t,e,r,i)=>{let a,l,c;const d={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;
vendor: 1,540 bytes, line 147
147)c=a[l],(!i||i(c,t,e))&&!d[c]&&(e[c]=t[c],d[c]=!0);t=r!==!1&&Tf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},ZT=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const i=t.indexOf(e,r);return i!==-1&&i===r},eC=t=>{if(!t)return null;if(ci(t))return t;let e=t.length;if(!J0(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},tC=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Tf(Uint8Array)),nC=(t,e)=>{const i=(t&&t[Vl]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},rC=(t,e)=>{let r;const i=[];for(;(r=t.exec(e))!==null;)i.push(r);return i},sC=pn("HTMLFormElement"),iC=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,a){return i.toUpperCase()+a}),qg=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),oC=pn("RegExp"),tw=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),i={};Bo(r,(a,l)=>{let c;(c=e(a,l,t))!==!1&&(i[l]=c||a)}),Object.defineProperties(t,i)},aC=t=>{tw(t,(e,r)=>{if(Lt(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(Lt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},lC=(t,e)=>{const r={},i=a=>{a.forEach(l=>{r[l]=!0})};return ci(t)?i(t):i(String(t).split(e)),r},uC=()=>{},cC=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function dC(t){return!!(t&&Lt(t.append)&&t[Y0]==="FormData"&&t[Vl])}const fC=t=>{const e=new Array(10),r=(i,a)=>{if(Vo(i)){if(e.indexOf(i)>=0)return;if(Fo(i))return i;
vendor: 9,679 bytes, lines 147-148
147if(!("toJSON"in i)){e[a]=i;const l=ci(i)?[]:{};return Bo(i,(c,d)=>{const h=r(c,a+1);!ii(h)&&(l[d]=h)}),e[a]=void 0,l}}return i};return r(t,0)},hC=pn("AsyncFunction"),pC=t=>t&&(Vo(t)||Lt(t))&&Lt(t.then)&&Lt(t.catch),nw=((t,e)=>t?setImmediate:e?((r,i)=>(Jr.addEventListener("message",({source:a,data:l})=>{a===Jr&&l===r&&i.length&&i.shift()()},!1),a=>{i.push(a),Jr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Lt(Jr.postMessage)),mC=typeof queueMicrotask<"u"?queueMicrotask.bind(Jr):typeof process<"u"&&process.nextTick||nw,gC=t=>t!=null&&Lt(t[Vl]),F={isArray:ci,isArrayBuffer:X0,isBuffer:Fo,isFormData:zT,isArrayBufferView:LT,isString:jT,isNumber:J0,isBoolean:DT,isObject:Vo,isPlainObject:gl,isEmptyObject:MT,isReadableStream:WT,isRequest:HT,isResponse:qT,isHeaders:KT,isUndefined:ii,isDate:IT,isFile:FT,isBlob:VT,isRegExp:oC,isFunction:Lt,isStream:UT,isURLSearchParams:$T,isTypedArray:tC,isFileList:BT,forEach:Bo,merge:Bd,extend:GT,trim:QT,stripBOM:YT,inherits:XT,toFlatObject:JT,kindOf:Bl,kindOfTest:pn,endsWith:ZT,toArray:eC,forEachEntry:nC,matchAll:rC,isHTMLForm:sC,hasOwnProperty:qg,hasOwnProp:qg,reduceDescriptors:tw,freezeMethods:aC,toObjectSet:lC,toCamelCase:iC,noop:uC,toFiniteNumber:cC,findKey:Z0,global:Jr,isContextDefined:ew,isSpecCompliantForm:dC,toJSONObject:fC,isAsyncFn:hC,isThenable:pC,setImmediate:nw,asap:mC,isIterable:gC};let pe=class rw extends Error{static from(e,r,i,a,l,c){const d=new rw(e.message,r||e.code,i,a,l);return d.cause=e,d.name=e.name,c&&Object.assign(d,c),d}constructor(e,r,i,a,l){super(e),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}};pe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";pe.ERR_BAD_OPTION="ERR_BAD_OPTION";pe.ECONNABORTED="ECONNABORTED";pe.ETIMEDOUT="ETIMEDOUT";pe.ERR_NETWORK="ERR_NETWORK";pe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";pe.ERR_DEPRECATED="ERR_DEPRECATED";pe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";pe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";pe.ERR_CANCELED="ERR_CANCELED";pe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";pe.ERR_INVALID_URL="ERR_INVALID_URL";const yC=null;function Ud(t){return F.isPlainObject(t)||F.isArray(t)}function sw(t){return F.endsWith(t,"[]")?t.slice(0,-2):t}function Kg(t,e,r){return t?t.concat(e).map(function(a,l){return a=sw(a),!r&&l?"["+a+"]":a}).join(r?".":""):e}function vC(t){return F.isArray(t)&&!t.some(Ud)}const wC=F.toFlatObject(F,{},null,function(e){return/^is[A-Z]/.test(e)});function zl(t,e,r){if(!F.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=F.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,x){return!F.isUndefined(x[b])});const i=r.metaTokens,a=r.visitor||g,l=r.dots,c=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(e);if(!F.isFunction(a))throw new TypeError("visitor must be a function");function m(k){if(k===null)return"";if(F.isDate(k))return k.toISOString();if(F.isBoolean(k))return k.toString();if(!h&&F.isBlob(k))throw new pe("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(k)||F.isTypedArray(k)?h&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function g(k,b,x){let A=k;if(k&&!x&&typeof k=="object"){if(F.endsWith(b,"{}"))b=i?b:b.slice(0,-2),k=JSON.stringify(k);else if(F.isArray(k)&&vC(k)||(F.isFileList(k)||F.endsWith(b,"[]"))&&(A=F.toArray(k)))return b=sw(b),A.forEach(function(L,M){!(F.isUndefined(L)||L===null)&&e.append(c===!0?Kg([b],M,l):c===null?b:b+"[]",m(L))}),!1}return Ud(k)?!0:(e.append(Kg(x,b,l),m(k)),!1)}const y=[],w=Object.assign(wC,{defaultVisitor:g,convertValue:m,isVisitable:Ud});function T(k,b){if(!F.isUndefined(k)){if(y.indexOf(k)!==-1)throw Error("Circular reference detected in "+b.join("."));y.push(k),F.forEach(k,function(A,V){(!(F.isUndefined(A)||A===null)&&a.call(e,A,F.isString(V)?V.trim():V,b,w))===!0&&T(A,b?b.concat(V):[V])}),y.pop()}}if(!F.isObject(t))throw new TypeError("data must be an object");return T(t),e}function Qg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Cf(t,e){this._pairs=[],t&&zl(t,this,e)}const iw=Cf.prototype;iw.append=function(e,r){this._pairs.push([e,r])};iw.toString=function(e){const r=e?function(i){return e.call(this,i,Qg)}:Qg;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function xC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ow(t,e,r){if(!e)return t;const i=r&&r.encode||xC,a=F.isFunction(r)?{serialize:r}:r,l=a&&a.serialize;let c;if(l?c=l(e,a):c=F.isURLSearchParams(e)?e.toString():new Cf(e,a).toString(i),c){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class Gg{constructor(){this.handlers=[]}use(e,r,i){return this.handlers.push({fulfilled:e,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Pf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},SC=typeof URLSearchParams<"u"?URLSearchParams:Cf,bC=typeof FormData<"u"?FormData:null,kC=typeof Blob<"u"?Blob:null,EC={isBrowser:!0,classes:{URLSearchParams:SC,FormData:bC,Blob:kC},protocols:["http","https","file","blob","url","data"]},_f=typeof window<"u"&&typeof document<"u",zd=typeof navigator=="object"&&navigator||void 0,TC=_f&&(!zd||["ReactNative","NativeScript","NS"].indexOf(zd.product)<0),CC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PC=_f&&window.location.href||"http://localhost",_C=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_f,hasStandardBrowserEnv:TC,hasStandardBrowserWebWorkerEnv:CC,navigator:zd,origin:PC},Symbol.toStringTag,{value:"Module"})),xt={..._C,...EC};function RC(t,e){return zl(t,new xt.classes.URLSearchParams,{visitor:function(r,i,a,l){return xt.isNode&&F.isBuffer(r)?(this.append(i,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}function AC(t){return F.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function OC(t){const e={},r=Object.keys(t);let i;const a=r.length;let l;for(i=0;i<a;i++)l=r[i],e[l]=t[l];return e}function aw(t){function e(r,i,a,l){let c=r[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),h=l>=r.length;return c=!c&&F.isArray(a)?a.length:c,h?(F.hasOwnProp(a,c)?a[c]=[a[c],i]:a[c]=i,!d):((!a[c]||!F.isObject(a[c]))&&(a[c]=[]),e(r,i,a[c],l)&&F.isArray(a[c])&&(a[c]=OC(a[c])),!d)}if(F.isFormData(t)&&F.isFunction(t.entries)){const r={};return F.forEachEntry(t,(i,a)=>{e(AC(i),a,r,0)}),r}return null}function NC(t,e,r){if(F.isString(t))try{return(e||JSON.parse)(t),F.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const Uo={transitional:Pf,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",a=i.indexOf("application/json")>-1,l=F.isObject(e);if(l&&F.isHTMLForm(e)&&(e=new FormData(e)),F.isFormData(e))return a?JSON.stringify(aw(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e)||F.isReadableStream(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(l){if(i.indexOf("application/x-www-form-urlencoded")>-1)return RC(e,this.formSerializer).toString();if((d=F.isFileList(e))||i.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return zl(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return l||a?(r.setContentType("application/json",!1),NC(e)):e}],transformResponse:[function(e){const r=this.transitional||Uo.transitional,i=r&&r.forcedJSONParsing,a=this.responseType==="json";if(F.isResponse(e)||F.isReadableStream(e))return e;if(e&&F.isString(e)&&(i&&!this.responseType||a)){const c=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(d){if(c)throw d.name==="SyntaxError"?pe.from(d,pe.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],t=>{Uo.headers[t]={}});const LC=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jC=t=>{const e={};let r,i,a;return t&&t.split(`
148`).forEach(function(c){a=c.indexOf(":"),r=c.substring(0,a).trim().toLowerCase(),i=c.substring(a+1).trim(),!(!r||e[r]&&LC[r])&&(r==="set-cookie"?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e},Yg=Symbol("internals");function to(t){return t&&String(t).trim().toLowerCase()}function yl(t){return t===!1||t==null?t:F.isArray(t)?t.map(yl):String(t)}function DC(t){const e=Object.create(null),r=/([^\s,;
148=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)e[i[1]]=i[2];return e}const MC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Zc(t,e,r,i,a){if(F.isFunction(i))return i.call(this,e,r);if(a&&(e=r),!!F.isString(e)){if(F.isString(i))return e.indexOf(i)!==-1;if(F.isRegExp(i))return i.test(e)}}function IC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,i)=>r.toUpperCase()+i)}function FC(t,e){const r=F.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(a,l,c){return this[i].call(this,e,a,l,c)},configurable:!0})})}let jt=class{constructor(e){e&&this.set(e)}set(e,r,i){const a=this;function l(d,h,m){const g=to(h);if(!g)throw new Error("header name must be a non-empty string");const y=F.findKey(a,g);(!y||a[y]===void 0||m===!0||m===void 0&&a[y]!==!1)&&(a[y||h]=yl(d))}const c=(d,h)=>F.forEach(d,(m,g)=>l(m,g,h));if(F.isPlainObject(e)||e instanceof this.constructor)c(e,r);else if(F.isString(e)&&(e=e.trim())&&!MC(e))c(jC(e),r);else if(F.isObject(e)&&F.isIterable(e)){let d={},h,m;for(const g of e){if(!F.isArray(g))throw TypeError("Object iterator must return a key-value pair");d[m=g[0]]=(h=d[m])?F.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}c(d,r)}else e!=null&&l(r,e,i);return this}get(e,r){if(e=to(e),e){const i=F.findKey(this,e);if(i){const a=this[i];if(!r)return a;
vendor: 4,916 bytes, lines 148-149
148if(r===!0)return DC(a);if(F.isFunction(r))return r.call(this,a,i);if(F.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=to(e),e){const i=F.findKey(this,e);return!!(i&&this[i]!==void 0&&(!r||Zc(this,this[i],i,r)))}return!1}delete(e,r){const i=this;let a=!1;function l(c){if(c=to(c),c){const d=F.findKey(i,c);d&&(!r||Zc(i,i[d],d,r))&&(delete i[d],a=!0)}}return F.isArray(e)?e.forEach(l):l(e),a}clear(e){const r=Object.keys(this);let i=r.length,a=!1;for(;i--;){const l=r[i];(!e||Zc(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const r=this,i={};return F.forEach(this,(a,l)=>{const c=F.findKey(i,l);if(c){r[c]=yl(a),delete r[l];return}const d=e?IC(l):String(l).trim();d!==l&&delete r[l],r[d]=yl(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return F.forEach(this,(i,a)=>{i!=null&&i!==!1&&(r[a]=e&&F.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
149`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const i=new this(e);return r.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[Yg]=this[Yg]={accessors:{}}).accessors,a=this.prototype;function l(c){const d=to(c);i[d]||(FC(a,c),i[d]=!0)}return F.isArray(e)?e.forEach(l):l(e),this}};jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(jt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[r]=i}}});F.freezeMethods(jt);function ed(t,e){const r=this||Uo,i=e||r,a=jt.from(i.headers);let l=i.data;return F.forEach(t,function(d){l=d.call(r,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function lw(t){return!!(t&&t.__CANCEL__)}let zo=class extends pe{constructor(e,r,i){super(e??"canceled",pe.ERR_CANCELED,r,i),this.name="CanceledError",this.__CANCEL__=!0}};function uw(t,e,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):e(new pe("Request failed with status code "+r.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function VC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function BC(t,e){t=t||10;const r=new Array(t),i=new Array(t);let a=0,l=0,c;return e=e!==void 0?e:1e3,function(h){const m=Date.now(),g=i[l];c||(c=m),r[a]=h,i[a]=m;let y=l,w=0;for(;y!==a;)w+=r[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),m-c<e)return;const T=g&&m-g;return T?Math.round(w*1e3/T):void 0}}function UC(t,e){let r=0,i=1e3/e,a,l;const c=(m,g=Date.now())=>{r=g,a=null,l&&(clearTimeout(l),l=null),t(...m)};return[(...m)=>{const g=Date.now(),y=g-r;y>=i?c(m,g):(a=m,l||(l=setTimeout(()=>{l=null,c(a)},i-y)))},()=>a&&c(a)]}const Rl=(t,e,r=3)=>{let i=0;const a=BC(50,250);return UC(l=>{const c=l.loaded,d=l.lengthComputable?l.total:void 0,h=c-i,m=a(h),g=c<=d;i=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:h,rate:m||void 0,estimated:m&&d&&g?(d-c)/m:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(y)},r)},Xg=(t,e)=>{const r=t!=null;return[i=>e[0]({lengthComputable:r,total:t,loaded:i}),e[1]]},Jg=t=>(...e)=>F.asap(()=>t(...e)),zC=xt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,xt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(xt.origin),xt.navigator&&/(msie|trident)/i.test(xt.navigator.userAgent)):()=>!0,$C=xt.hasStandardBrowserEnv?{write(t,e,r,i,a,l,c){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];F.isNumber(r)&&d.push(`expires=${new Date(r).toUTCString()}`),F.isString(i)&&d.push(`path=${i}`),F.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),F.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function WC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function HC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function cw(t,e,r){let i=!WC(e);return t&&(i||r==!1)?HC(t,e):e}const Zg=t=>t instanceof jt?{...t}:t;function fs(t,e){e=e||{};const r={};function i(m,g,y,w){return F.isPlainObject(m)&&F.isPlainObject(g)?F.merge.call({caseless:w},m,g):F.isPlainObject(g)?F.merge({},g):F.isArray(g)?g.slice():g}function a(m,g,y,w){if(F.isUndefined(g)){if(!F.isUndefined(m))return i(void 0,m,y,w)}else return i(m,g,y,w)}function l(m,g){if(!F.isUndefined(g))return i(void 0,g)}function c(m,g){if(F.isUndefined(g)){if(!F.isUndefined(m))return i(void 0,m)}else return i(void 0,g)}
vendor: 5,722 bytes, line 149
149function d(m,g,y){if(y in e)return i(m,g);if(y in t)return i(void 0,m)}const h={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(m,g,y)=>a(Zg(m),Zg(g),y,!0)};return F.forEach(Object.keys({...t,...e}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const y=F.hasOwnProp(h,g)?h[g]:a,w=y(t[g],e[g],g);F.isUndefined(w)&&y!==d||(r[g]=w)}),r}const dw=t=>{const e=fs({},t);let{data:r,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:l,headers:c,auth:d}=e;if(e.headers=c=jt.from(c),e.url=ow(cw(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),F.isFormData(r)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(F.isFunction(r.getHeaders)){const h=r.getHeaders(),m=["content-type","content-length"];Object.entries(h).forEach(([g,y])=>{m.includes(g.toLowerCase())&&c.set(g,y)})}}if(xt.hasStandardBrowserEnv&&(i&&F.isFunction(i)&&(i=i(e)),i||i!==!1&&zC(e.url))){const h=a&&l&&$C.read(l);h&&c.set(a,h)}return e},qC=typeof XMLHttpRequest<"u",KC=qC&&function(t){return new Promise(function(r,i){const a=dw(t);let l=a.data;const c=jt.from(a.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=a,g,y,w,T,k;function b(){T&&T(),k&&k(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function A(){if(!x)return;const L=jt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),U={data:!d||d==="text"||d==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:L,config:t,request:x};uw(function(G){r(G),b()},function(G){i(G),b()},U),x=null}"onloadend"in x?x.onloadend=A:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(A)},x.onabort=function(){x&&(i(new pe("Request aborted",pe.ECONNABORTED,t,x)),x=null)},x.onerror=function(M){const U=M&&M.message?M.message:"Network Error",K=new pe(U,pe.ERR_NETWORK,t,x);K.event=M||null,i(K),x=null},x.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const U=a.transitional||Pf;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),i(new pe(M,U.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,t,x)),x=null},l===void 0&&c.setContentType(null),"setRequestHeader"in x&&F.forEach(c.toJSON(),function(M,U){x.setRequestHeader(U,M)}),F.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),d&&d!=="json"&&(x.responseType=a.responseType),m&&([w,k]=Rl(m,!0),x.addEventListener("progress",w)),h&&x.upload&&([y,T]=Rl(h),x.upload.addEventListener("progress",y),x.upload.addEventListener("loadend",T)),(a.cancelToken||a.signal)&&(g=L=>{x&&(i(!L||L.type?new zo(null,t,x):L),x.abort(),x=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const V=VC(a.url);if(V&&xt.protocols.indexOf(V)===-1){i(new pe("Unsupported protocol "+V+":",pe.ERR_BAD_REQUEST,t));return}x.send(l||null)})},QC=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let i=new AbortController,a;const l=function(m){if(!a){a=!0,d();const g=m instanceof Error?m:this.reason;i.abort(g instanceof pe?g:new zo(g instanceof Error?g.message:g))}};let c=e&&setTimeout(()=>{c=null,l(new pe(`timeout of ${e}ms exceeded`,pe.ETIMEDOUT))},e);const d=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),t=null)};t.forEach(m=>m.addEventListener("abort",l));const{signal:h}=i;return h.unsubscribe=()=>F.asap(d),h}},GC=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let i=0,a;for(;i<r;)a=i+e,yield t.slice(i,a),i=a},YC=async function*(t,e){for await(const r of XC(t))yield*GC(r,e)},XC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:i}=await e.read();if(r)break;yield i}}finally{await e.cancel()}},ey=(t,e,r,i)=>{const a=YC(t,e);let l=0,c,d=h=>{c||(c=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await a.next();if(m){d(),h.close();return}let y=g.byteLength;if(r){let w=l+=y;r(w)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),a.return()}},{highWaterMark:2})},ty=64*1024,{isFunction:ol}=F,JC=(({Request:t,Response:e})=>({Request:t,Response:e}))(F.global),{ReadableStream:ny,TextEncoder:ry}=F.global,sy=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ZC=t=>{t=F.merge.call({skipUndefined:!0},JC,t);const{fetch:e,Request:r,Response:i}=t,a=e?ol(e):typeof fetch=="function",l=ol(r),c=ol(i);if(!a)return!1;const d=a&&ol(ny),h=a&&(typeof ry=="function"?(k=>b=>k.encode(b))(new ry):async k=>new Uint8Array(await new r(k).arrayBuffer())),m=l&&d&&sy(()=>{let k=!1;const b=new r(xt.origin,{body:new ny,method:"POST",get duplex(){return k=!0,"half"}}).headers.has("Content-Type");return k&&!b}),g=c&&d&&sy(()=>F.isReadableStream(new i("").body)),y={stream:g&&(k=>k.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!y[k]&&(y[k]=(b,x)=>{let A=b&&b[k];if(A)return A.call(b);throw new pe(`Response type '${k}' is not supported`,pe.ERR_NOT_SUPPORT,x)})});const w=async k=>
vendor: 2,590 bytes, line 149
149{if(k==null)return 0;if(F.isBlob(k))return k.size;if(F.isSpecCompliantForm(k))return(await new r(xt.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(F.isArrayBufferView(k)||F.isArrayBuffer(k))return k.byteLength;if(F.isURLSearchParams(k)&&(k=k+""),F.isString(k))return(await h(k)).byteLength},T=async(k,b)=>{const x=F.toFiniteNumber(k.getContentLength());return x??w(b)};return async k=>{let{url:b,method:x,data:A,signal:V,cancelToken:L,timeout:M,onDownloadProgress:U,onUploadProgress:K,responseType:G,headers:I,withCredentials:J="same-origin",fetchOptions:me}=dw(k),de=e||fetch;G=G?(G+"").toLowerCase():"text";let Ce=QC([V,L&&L.toAbortSignal()],M),je=null;const Ae=Ce&&Ce.unsubscribe&&(()=>{Ce.unsubscribe()});let Me;try{if(K&&m&&x!=="get"&&x!=="head"&&(Me=await T(I,A))!==0){let R=new r(b,{method:"POST",body:A,duplex:"half"}),z;if(F.isFormData(A)&&(z=R.headers.get("content-type"))&&I.setContentType(z),R.body){const[ye,ve]=Xg(Me,Rl(Jg(K)));A=ey(R.body,ty,ye,ve)}}F.isString(J)||(J=J?"include":"omit");const xe=l&&"credentials"in r.prototype,fe={...me,signal:Ce,method:x.toUpperCase(),headers:I.normalize().toJSON(),body:A,duplex:"half",credentials:xe?J:void 0};je=l&&new r(b,fe);let q=await(l?de(je,me):de(b,fe));const se=g&&(G==="stream"||G==="response");if(g&&(U||se&&Ae)){const R={};["status","statusText","headers"].forEach(le=>{R[le]=q[le]});const z=F.toFiniteNumber(q.headers.get("content-length")),[ye,ve]=U&&Xg(z,Rl(Jg(U),!0))||[];q=new i(ey(q.body,ty,ye,()=>{ve&&ve(),Ae&&Ae()}),R)}G=G||"text";let B=await y[F.findKey(y,G)||"text"](q,k);return!se&&Ae&&Ae(),await new Promise((R,z)=>{uw(R,z,{data:B,headers:jt.from(q.headers),status:q.status,statusText:q.statusText,config:k,request:je})})}catch(xe){throw Ae&&Ae(),xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)?Object.assign(new pe("Network Error",pe.ERR_NETWORK,k,je,xe&&xe.response),{cause:xe.cause||xe}):pe.from(xe,xe&&xe.code,k,je,xe&&xe.response)}}},eP=new Map,fw=t=>{let e=t&&t.env||{};const{fetch:r,Request:i,Response:a}=e,l=[i,a,r];let c=l.length,d=c,h,m,g=eP;for(;d--;)h=l[d],m=g.get(h),m===void 0&&g.set(h,m=d?new Map:ZC(e)),g=m;return m};fw();const Rf={http:yC,xhr:KC,fetch:{get:fw}};F.forEach(Rf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const iy=t=>`- ${t}`,tP=t=>F.isFunction(t)||t===null||t===!1;function nP(t,e){t=F.isArray(t)?t:[t];const{length:r}=t;let i,a;const l={};for(let c=0;c<r;c++){i=t[c];let d;if(a=i,!tP(i)&&(a=Rf[(d=String(i)).toLowerCase()],a===void 0))throw new pe(`Unknown adapter '${d}'`);
vendor: 5,276 bytes, lines 149-152
149if(a&&(F.isFunction(a)||(a=a.get(e))))break;l[d||"#"+c]=a}if(!a){const c=Object.entries(l).map(([h,m])=>`adapter ${h} `+(m===!1?"is not supported by the environment":"is not available in the build"));let d=r?c.length>1?`since :
150`+c.map(iy).join(`
151`):" "+iy(c[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return a}const hw={getAdapter:nP,adapters:Rf};function td(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new zo(null,t)}function oy(t){return td(t),t.headers=jt.from(t.headers),t.data=ed.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),hw.getAdapter(t.adapter||Uo.adapter,t)(t).then(function(i){return td(t),i.data=ed.call(t,t.transformResponse,i),i.headers=jt.from(i.headers),i},function(i){return lw(i)||(td(t),i&&i.response&&(i.response.data=ed.call(t,t.transformResponse,i.response),i.response.headers=jt.from(i.response.headers))),Promise.reject(i)})}const pw="1.13.5",$l={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{$l[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const ay={};$l.transitional=function(e,r,i){function a(l,c){return"[Axios v"+pw+"] Transitional option '"+l+"'"+c+(i?". "+i:"")}return(l,c,d)=>{if(e===!1)throw new pe(a(c," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!ay[c]&&(ay[c]=!0,console.warn(a(c," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(l,c,d):!0}};$l.spelling=function(e){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function rP(t,e,r){if(typeof t!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],c=e[l];if(c){const d=t[l],h=d===void 0||c(d,l,t);if(h!==!0)throw new pe("option "+l+" must be "+h,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+l,pe.ERR_BAD_OPTION)}}const vl={assertOptions:rP,validators:$l},Gt=vl.validators;let us=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Gg,response:new Gg}}async request(e,r){try{return await this._request(e,r)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?l&&!String(i.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(i.stack+=`
152`+l):i.stack=l}catch{}}throw i}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=fs(this.defaults,r);const{transitional:i,paramsSerializer:a,headers:l}=r;i!==void 0&&vl.assertOptions(i,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean),legacyInterceptorReqResOrdering:Gt.transitional(Gt.boolean)},!1),a!=null&&(F.isFunction(a)?r.paramsSerializer={serialize:a}:vl.assertOptions(a,{encode:Gt.function,serialize:Gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vl.assertOptions(r,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=l&&F.merge(l.common,l[r.method]);l&&F.forEach(["delete","get","head","post","put","patch","common"],k=>{delete l[k]}),r.headers=jt.concat(c,l);const d=[];let h=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(r)===!1)return;h=h&&b.synchronous;const x=r.transitional||Pf;x&&x.legacyInterceptorReqResOrdering?d.unshift(b.fulfilled,b.rejected):d.push(b.fulfilled,b.rejected)});const m=[];this.interceptors.response.forEach(function(b){m.push(b.fulfilled,b.rejected)});let g,y=0,w;if(!h){const k=[oy.bind(this),void 0];for(k.unshift(...d),k.push(...m),w=k.length,g=Promise.resolve(r);y<w;)g=g.then(k[y++],k[y++]);return g}w=d.length;let T=r;for(;y<w;){const k=d[y++],b=d[y++];try{T=k(T)}catch(x){b.call(this,x);break}}try{g=oy.call(this,T)}catch(k){return Promise.reject(k)}for(y=0,w=m.length;y<w;)g=g.then(m[y++],m[y++]);return g}getUri(e){e=fs(this.defaults,e);const r=cw(e.baseURL,e.url,e.allowAbsoluteUrls);return ow(r,e.params,e.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(e){us.prototype[e]=function(r,i){return this.request(fs(i||{},{method:e,url:r,data:(i||{}).data}))}});F.forEach(["post","put","patch"],function(e){function r(i){return function(l,c,d){return this.request(fs(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}us.prototype[e]=r(),us.prototype[e+"Form"]=r(!0)});let sP=class mw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(d=>{i.subscribe(d),l=d}).then(a);return c.cancel=function(){i.unsubscribe(l)},c},e(function(l,c,d){i.reason||(i.reason=new zo(l,c,d),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
152subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=i=>{e.abort(i)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new mw(function(a){e=a}),cancel:e}}};function iP(t){return function(r){return t.apply(null,r)}}function oP(t){return F.isObject(t)&&t.isAxiosError===!0}const $d={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($d).forEach(([t,e])=>{$d[e]=t});function gw(t){const e=new us(t),r=G0(us.prototype.request,e);return F.extend(r,us.prototype,e,{allOwnKeys:!0}),F.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return gw(fs(t,a))},r}const Xe=gw(Uo);Xe.Axios=us;Xe.CanceledError=zo;Xe.CancelToken=sP;Xe.isCancel=lw;Xe.VERSION=pw;Xe.toFormData=zl;Xe.AxiosError=pe;Xe.Cancel=Xe.CanceledError;Xe.all=function(e){return Promise.all(e)};Xe.spread=iP;Xe.isAxiosError=oP;Xe.mergeConfig=fs;Xe.AxiosHeaders=jt;Xe.formToJSON=t=>aw(F.isHTMLForm(t)?new FormData(t):t);Xe.getAdapter=hw.getAdapter;Xe.HttpStatusCode=$d;Xe.default=Xe;const{Axios:X2,AxiosError:J2,CanceledError:Z2,isCancel:eL,CancelToken:tL,VERSION:nL,all:rL,Cancel:sL,isAxiosError:iL,spread:oL,toFormData:aL,AxiosHeaders:lL,HttpStatusCode:uL,formToJSON:cL,getAdapter:dL,mergeConfig:fL}=Xe,aP=typeof window>"u",ly=!aP&&window.self!==window.top,nd=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),ct=[];for(let t=0;t<256;++t)ct.push((t+256).toString(16).slice(1));function lP(t,e=0){return(ct[t[e+0]]+ct[t[e+1]]+ct[t[e+2]]+ct[t[e+3]]+"-"+ct[t[e+4]]+ct[t[e+5]]+"-"+ct[t[e+6]]+ct[t[e+7]]+"-"+ct[t[e+8]]+ct[t[e+9]]+"-"+ct[t[e+10]]+ct[t[e+11]]+ct[t[e+12]]+ct[t[e+13]]+ct[t[e+14]]+ct[t[e+15]]).toLowerCase()}let rd;const uP=new Uint8Array(16);function cP(){if(!rd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rd=crypto.getRandomValues.bind(crypto)}return rd(uP)}const dP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),uy={randomUUID:dP};function fP(t,e,r){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??cP();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,lP(i)}function hP(t,e,r){return uy.randomUUID&&!t?uy.randomUUID():fP(t)}class pP extends Error{constructor(e,r,i,a,l){super(e),this.name="Base44Error",this.status=r,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function oo({baseURL:t,headers:e={},token:r,interceptResponses:i=!0,onError:a}){const l=Xe.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return r&&(l.defaults.headers.common.Authorization=`Bearer ${r}`),l.interceptors.request.use(c=>{typeof window<"u"&&c.headers.set("X-Origin-URL",window.location.href);const d=hP();if(c.requestId=d,ly)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),i&&l.interceptors.response.use(c=>{var d;const h=(d=c.config)===null||d===void 0?void 0:d.requestId;try{ly&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,h,m,g,y,w,T,k;const b=((h=(d=c.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((g=(m=c.response)===null||m===void 0?void 0:m.data)===null||g===void 0?void 0:g.detail)||c.message,x=new pP(b,(y=c.response)===null||y===void 0?void 0:y.status,(T=(w=c.response)===null||w===void 0?void 0:w.data)===null||T===void 0?void 0:T.code,(k=c.response)===null||k===void 0?void 0:k.data,c);return a==null||a(x),Promise.reject(x)}),l}function cy(t){const{axios:e,appId:r,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return gP(e,r,l,i)}})}function mP(t){var e;try{const r=JSON.parse(t);return{type:r.type,data:r.data,id:r.id||((e=r.data)===null||e===void 0?void 0:e.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}function gP(t,e,r,i){const a=`/apps/${e}/entities/${r}`;return{async list(l,c,d,h){const m={};return l&&(m.sort=l),c&&(m.limit=c),d&&(m.skip=d),h&&(m.fields=Array.isArray(h)?h.join(","):h),t.get(a,{params:m})},async filter(l,c,d,h,m){const g={q:JSON.stringify(l)};return c&&(g.sort=c),d&&(g.limit=d),h&&(g.skip=h),m&&(g.fields=Array.isArray(m)?m.join(","):m),t.get(a,{params:g})},async get(l){return t.get(`${a}/${l}`)},async create(l){return t.post(a,l)},async update(l,c){return t.put(`${a}/${l}`,c)},async delete(l){return t.delete(`${a}/${l}`)},async deleteMany(l){return t.delete(a,{data:l})},async bulkCreate(l){return t.post(`${a}/bulk`,l)},async updateMany(l,c){return t.patch(`${a}/update-many`,{query:l,data:c})},async bulkUpdate(l){return t.put(`${a}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),t.post(`${a}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${e}:${r}`;return i().subscribeToRoom(c,{update_model:m=>{const g=mP(m.data);if(g)try{l(g)}catch(y){console.error("[Base44 SDK] Subscription callback error:",y)}}})}}}function yP(t,e){return{async call(r,i,a){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...d}=a??{},h={...d,...l&&{path_params:l},...c&&{query_params:c}};return await t.post(`/apps/${e}/integrations/custom/${r}/${i}`,h)}}}function dy(t,e){const r=yP(t,e);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?r:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async d=>
152{if(typeof d=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${d}`);let h,m;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(h=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?h.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?h.append(g,JSON.stringify(d[g])):h.append(g,d[g])}),m="multipart/form-data"):(h=d,m="application/json"),a==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${c}`,h||d,{headers:{"Content-Type":m}}):t.post(`/apps/${e}/integration-endpoints/installable/${a}/integration-endpoints/${c}`,h||d,{headers:{"Content-Type":m}})}}})}})}function vP(){return typeof window>"u"?!1:window!==window.parent}function wP(t,e,r){const l=Math.round(window.screenX+(window.outerWidth-500)/2),c=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${c},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",m),clearInterval(g),d.closed||d.close()},m=y=>{var w;if(y.origin!==r||y.source!==d||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;h();const T=new URL(e),{access_token:k,is_new_user:b}=y.data;T.searchParams.set("access_token",k),b!=null&&T.searchParams.set("is_new_user",String(b)),window.location.href=T.toString()},g=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",m)}function xP(t,e,r,i){return{async me(){return t.get(`/apps/${r}/entities/User/me`)},async updateMe(a){return t.put(`/apps/${r}/entities/User/me`,a)},redirectToLogin(a){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=a?new URL(a,window.location.origin).toString():window.location.href,c=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(a,l="/"){const c=new URL(l,window.location.origin).toString(),d=`app_id=${r}&from_url=${encodeURIComponent(c)}`;let h;a==="sso"?h=`/apps/${r}/auth/sso/login`:h=`/apps/auth${a==="google"?"":`/${a}`}/login`;const m=`${i.appBaseUrl}/api${h}?${d}`;if(vP()){const g=`${m}&popup_origin=${encodeURIComponent(window.location.origin)}`;return wP(g,c,window.location.origin)}window.location.href=m},logout(a){if(delete t.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const l=a||window.location.href,c=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(a,l=!0){if(a&&(t.defaults.headers.common.Authorization=`Bearer ${a}`,e.defaults.headers.common.Authorization=`Bearer ${a}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",a),window.localStorage.setItem("token",a)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(a,l,c){var d;try{const h=await t.post(`/apps/${r}/auth/login`,{email:a,password:l,...c&&{turnstile_token:c}}),{access_token:m,user:g}=h;return m&&this.setToken(m),{access_token:m,user:g}}catch(h){throw((d=h.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),h}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(a,l){return t.post(`/apps/${r}/users/invite-user`,{user_email:a,role:l})},register(a){return t.post(`/apps/${r}/auth/register`,a)},verifyOtp({email:a,otpCode:l}){return t.post(`/apps/${r}/auth/verify-otp`,{email:a,otp_code:l})},resendOtp(a){return t.post(`/apps/${r}/auth/resend-otp`,{email:a})},resetPasswordRequest(a){return t.post(`/apps/${r}/auth/reset-password-request`,{email:a})},resetPassword({resetToken:a,newPassword:l}){return t.post(`/apps/${r}/auth/reset-password`,{reset_token:a,new_password:l})},changePassword({userId:a,currentPassword:l,newPassword:c}){return t.post(`/apps/${r}/auth/change-password`,{user_id:a,current_password:l,new_password:c})}}}function SP(t,e){return{async getAccessToken(r){const i=`/apps/${e}/auth/sso/accesstoken/${r}`;return t.get(i)}}}function bP(t,e){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${r}`)).access_token},async getConnection(r){var i;if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${r}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${r}/token`)).access_token},async getCurrentAppUserConnection(r){var i;if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${r}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}}}}function kP(t,e){return{async connectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${r}/initiate`)).redirect_url},async disconnectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${r}`)}}}function Eo(t={}){const{storageKey:e="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(r),l){if(i&&EP(l,{storageKey:e}),a){c.delete(r);const d=`${window.location.pathname}
152${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function EP(t,e){const{storageKey:r="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(r,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function fy(t,e,r){const i=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,a=l=>{const c=new Headers;if(r!=null&&r.getAuthHeaders){const d=r.getAuthHeaders();Object.entries(d).forEach(([h,m])=>{m!=null&&c.set(h,String(m))})}return l&&new Headers(l).forEach((d,h)=>{c.set(h,d)}),c};return{async invoke(l,c){if(typeof c=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(m=>m instanceof File)?(d=new FormData,Object.keys(c).forEach(m=>{c[m]instanceof File?d.append(m,c[m],c[m].name):typeof c[m]=="object"&&c[m]!==null?d.append(m,JSON.stringify(c[m])):d.append(m,c[m])}),h="multipart/form-data"):(d=c,h="application/json"),t.post(`/apps/${e}/functions/${l}`,d||c,{headers:{"Content-Type":h}})},async fetch(l,c={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,m=a(c.headers),g={...c,headers:m};return await fetch(i(r==null?void 0:r.baseURL,h),g)}}}function hy({axios:t,getSocket:e,appId:r,serverUrl:i,token:a}){const l=`/apps/${r}/agents`,c={},d=()=>t.get(`${l}/conversations`),h=b=>t.get(`${l}/conversations/${b}`);return{getConversations:d,getConversation:h,listConversations:b=>t.get(`${l}/conversations`,{params:b}),createConversation:b=>t.post(`${l}/conversations`,b),addMessage:async(b,x)=>t.post(`${l}/conversations/v2/${b.id}/messages`,x),subscribeToConversation:(b,x)=>{const A=`/agent-conversations/${b}`,V=e(),L=h(b).then(M=>(c[b]=M,M));return V.subscribeToRoom(A,{connect:()=>{},update_model:async({data:M})=>{const U=JSON.parse(M);if(U._message){await L;const K=U._message,G=c[b];if(G){const I=G.messages||[],J=I.findIndex(de=>de.id===K.id),me=J!==-1?I.map((de,Ce)=>Ce===J?K:de):[...I,K];c[b]={...G,messages:me},x==null||x(c[b])}}}})},getWhatsAppConnectURL:b=>{const x=`${i}/api/apps/${r}/agents/${encodeURIComponent(b)}/whatsapp`,A=a??Eo();return A?`${x}?token=${A}`:x},getTelegramConnectURL:b=>{const x=`${i}/api/apps/${r}/agents/${encodeURIComponent(b)}/telegram`,A=a??Eo();return A?`${x}?token=${A}`:x}}}function py(t,e){const r=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(r,{params:i})},async getStats(i={}){return await t.get(`${r}/stats`,{params:i})}}}function TP(t,e){return{async inviteUser(r,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:r,role:i})}}}const Cn=Object.create(null);Cn.open="0";Cn.close="1";Cn.ping="2";Cn.pong="3";Cn.message="4";Cn.upgrade="5";Cn.noop="6";const wl=Object.create(null);
vendor: 30,080 bytes, line 152
152Object.keys(Cn).forEach(t=>{wl[Cn[t]]=t});const Wd={type:"error",data:"parser error"},yw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",vw=typeof ArrayBuffer=="function",ww=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Af=({type:t,data:e},r,i)=>yw&&e instanceof Blob?r?i(e):my(e,i):vw&&(e instanceof ArrayBuffer||ww(e))?r?i(e):my(new Blob([e]),i):i(Cn[t]+(e||"")),my=(t,e)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];e("b"+(i||""))},r.readAsDataURL(t)};function gy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let sd;function CP(t,e){if(yw&&t.data instanceof Blob)return t.data.arrayBuffer().then(gy).then(e);if(vw&&(t.data instanceof ArrayBuffer||ww(t.data)))return e(gy(t.data));Af(t,!1,r=>{sd||(sd=new TextEncoder),e(sd.encode(r))})}const yy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ao=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<yy.length;t++)ao[yy.charCodeAt(t)]=t;const PP=t=>{let e=t.length*.75,r=t.length,i,a=0,l,c,d,h;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const m=new ArrayBuffer(e),g=new Uint8Array(m);for(i=0;i<r;i+=4)l=ao[t.charCodeAt(i)],c=ao[t.charCodeAt(i+1)],d=ao[t.charCodeAt(i+2)],h=ao[t.charCodeAt(i+3)],g[a++]=l<<2|c>>4,g[a++]=(c&15)<<4|d>>2,g[a++]=(d&3)<<6|h&63;return m},_P=typeof ArrayBuffer=="function",Of=(t,e)=>{if(typeof t!="string")return{type:"message",data:xw(t,e)};const r=t.charAt(0);return r==="b"?{type:"message",data:RP(t.substring(1),e)}:wl[r]?t.length>1?{type:wl[r],data:t.substring(1)}:{type:wl[r]}:Wd},RP=(t,e)=>{if(_P){const r=PP(t);return xw(r,e)}else return{base64:!0,data:t}},xw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Sw="�",AP=(t,e)=>{const r=t.length,i=new Array(r);let a=0;t.forEach((l,c)=>{Af(l,!1,d=>{i[c]=d,++a===r&&e(i.join(Sw))})})},OP=(t,e)=>{const r=t.split(Sw),i=[];for(let a=0;a<r.length;a++){const l=Of(r[a],e);if(i.push(l),l.type==="error")break}return i};function NP(){return new TransformStream({transform(t,e){CP(t,r=>{const i=r.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(r)})}})}let id;function al(t){return t.reduce((e,r)=>e+r.length,0)}function ll(t,e){if(t[0].length===e)return t.shift();const r=new Uint8Array(e);let i=0;for(let a=0;a<e;a++)r[a]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),r}function LP(t,e){id||(id=new TextDecoder);const r=[];let i=0,a=-1,l=!1;return new TransformStream({transform(c,d){for(r.push(c);;){if(i===0){if(al(r)<1)break;const h=ll(r,1);l=(h[0]&128)===128,a=h[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(al(r)<2)break;const h=ll(r,2);a=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(al(r)<8)break;const h=ll(r,8),m=new DataView(h.buffer,h.byteOffset,h.length),g=m.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(Wd);break}a=g*Math.pow(2,32)+m.getUint32(4),i=3}else{if(al(r)<a)break;const h=ll(r,a);d.enqueue(Of(l?h:id.decode(h),e)),i=0}if(a===0||a>t){d.enqueue(Wd);break}}}})}const bw=4;function Ze(t){if(t)return jP(t)}function jP(t){for(var e in Ze.prototype)t[e]=Ze.prototype[e];return t}Ze.prototype.on=Ze.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Ze.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Ze.prototype.off=Ze.prototype.removeListener=Ze.prototype.removeAllListeners=Ze.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,a=0;a<r.length;a++)if(i=r[a],i===e||i.fn===e){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Ze.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,a=r.length;i<a;++i)r[i].apply(this,e)}return this};Ze.prototype.emitReserved=Ze.prototype.emit;Ze.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Ze.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Wl=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),en=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),DP="arraybuffer";function kw(t,...e){return e.reduce((r,i)=>(t.hasOwnProperty(i)&&(r[i]=t[i]),r),{})}const MP=en.setTimeout,IP=en.clearTimeout;function Hl(t,e){e.useNativeTimers?(t.setTimeoutFn=MP.bind(en),t.clearTimeoutFn=IP.bind(en)):(t.setTimeoutFn=en.setTimeout.bind(en),t.clearTimeoutFn=en.clearTimeout.bind(en))}const FP=1.33;function VP(t){return typeof t=="string"?BP(t):Math.ceil((t.byteLength||t.size)*FP)}function BP(t){let e=0,r=0;for(let i=0,a=t.length;i<a;i++)e=t.charCodeAt(i),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(i++,r+=4);return r}function Ew(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function UP(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function zP(t){let e={},r=t.split("&");for(let i=0,a=r.length;i<a;i++){let l=r[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}class $P extends Error{constructor(e,r,i){super(e),this.description=r,this.context=i,this.type="TransportError"}}class Nf extends Ze{constructor(e){super(),this.writable=!1,Hl(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,i){return super.emitReserved("error",new $P(e,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const r=Of(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const r=UP(e);return r.length?"?"+r:""}}class WP extends Nf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};OP(e,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,AP(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Ew()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}}let Tw=!1;try{Tw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const HP=Tw;function qP(){}class KP extends WP{constructor(e){if(super(e),typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,r){const i=this.request({method:"POST",data:e});i.on("success",r),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=e}}class kn extends Ze{constructor(e,r,i){super(),this.createRequest=e,Hl(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const r=kw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=kn.requestsCount++,kn.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=qP,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete kn.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}kn.requestsCount=0;kn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",vy);else if(typeof addEventListener=="function"){const t="onpagehide"in en?"pagehide":"unload";addEventListener(t,vy,!1)}}function vy(){for(let t in kn.requests)kn.requests.hasOwnProperty(t)&&kn.requests[t].abort()}const QP=(function(){const t=Cw({xdomain:!1});return t&&t.responseType!==null})();class GP extends KP{constructor(e){super(e);const r=e&&e.forceBase64;this.supportsBinary=QP&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new kn(Cw,this.uri(),e)}}function Cw(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||HP))return new XMLHttpRequest}catch{}if(!e)try{return new en[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Pw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class YP extends Nf{get name(){return"websocket"}doOpen(){const e=this.uri(),r=this.opts.protocols,i=Pw?{}:kw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,i)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const i=e[r],a=r===e.length-1;Af(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&Wl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Ew()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}}const od=en.WebSocket||en.MozWebSocket;class XP extends YP{createSocket(e,r,i){return Pw?new od(e,r,i):r?new od(e,r):new od(e)}doWrite(e,r){this.ws.send(r)}}class JP extends Nf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const r=LP(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(r).getReader(),a=NP();a.readable.pipeTo(e.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:d,value:h})=>{d||(this.onPacket(h),l())}).catch(d=>{})};l();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const i=e[r],a=r===e.length-1;this._writer.write(i).then(()=>{a&&Wl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ZP={websocket:XP,webtransport:JP,polling:GP},e_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Hd(t){if(t.length>8e3)throw"URI too long";const e=t,r=t.indexOf("["),i=t.indexOf("]");r!=-1&&i!=-1&&(t=t.substring(0,r)+t.substring(r,i).replace(/:/g,";")+t.substring(i,t.length));let a=e_.exec(t||""),l={},c=14;for(;c--;)l[t_[c]]=a[c]||"";return r!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=n_(l,l.path),l.queryKey=r_(l,l.query),l}function n_(t,e){const r=/\/{2,9}/g,i=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function r_(t,e){const r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(r[a]=l)}),r}const qd=typeof addEventListener=="function"&&typeof removeEventListener=="function",xl=[];qd&&addEventListener("offline",()=>{xl.forEach(t=>t())},!1);class Cr extends Ze{constructor(e,r){if(super(),this.binaryType=DP,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){const i=Hd(e);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Hd(r.host).host);Hl(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=zP(this.opts.query)),qd&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},xl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const r=Object.assign({},this.opts.query);r.EIO=bw,r.transport=e,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Cr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Cr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(r+=VP(a)),i>0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Wl(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,i){return this._sendPacket("message",e,r,i),this}send(e,r,i){return this._sendPacket("message",e,r,i),this}_sendPacket(e,r,i,a){if(typeof r=="function"&&(a=r,r=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:r,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Cr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),qd&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=xl.indexOf(this._offlineEventListener);i!==-1&&xl.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}}Cr.protocol=bw;class s_ extends Cr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),i=!1;Cr.priorWebsocketSuccess=!1;const a=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Cr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=r.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),r.close(),r=null)}const c=y=>{const w=new Error("probe error: "+y);w.transport=r.name,l(),this.emitReserved("upgradeError",w)};function d(){c("transport closed")}function h(){c("socket closed")}function m(y){r&&y.name!==r.name&&l()}const g=()=>{r.removeListener("open",a),r.removeListener("error",c),r.removeListener("close",d),this.off("close",h),this.off("upgrading",m)};r.once("open",a),r.once("error",c),r.once("close",d),this.once("close",h),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const r=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&r.push(e[i]);return r}}let i_=class extends s_{constructor(e,r={}){const i=typeof e=="object"?e:r;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>ZP[a]).filter(a=>!!a)),super(e,i)}};function o_(t,e="",r){let i=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),i=Hd(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(r&&r.port===i.port?"":":"+i.port),i}const a_=typeof ArrayBuffer=="function",l_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,_w=Object.prototype.toString,u_=typeof Blob=="function"||typeof Blob<"u"&&_w.call(Blob)==="[object BlobConstructor]",c_=typeof File=="function"||typeof File<"u"&&_w.call(File)==="[object FileConstructor]";function Lf(t){return a_&&(t instanceof ArrayBuffer||l_(t))||u_&&t instanceof Blob||c_&&t instanceof File}function Sl(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,i=t.length;r<i;r++)if(Sl(t[r]))return!0;return!1}if(Lf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Sl(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Sl(t[r]))return!0;return!1}function d_(t){const e=[],r=t.data,i=t;return i.data=Kd(r,e),i.attachments=e.length,{packet:i,buffers:e}}function Kd(t,e){if(!t)return t;if(Lf(t)){const r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){const r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=Kd(t[i],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){const r={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Kd(t[i],e));return r}return t}function f_(t,e){return t.data=Qd(t.data,e),delete t.attachments,t}function Qd(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=Qd(t[r],e);else if(typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Qd(t[r],e));return t}const h_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Te;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Te||(Te={}));class p_{constructor(e){this.replacer=e}encode(e){return(e.type===Te.EVENT||e.type===Te.ACK)&&Sl(e)?this.encodeAsBinary({type:e.type===Te.EVENT?Te.BINARY_EVENT:Te.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===Te.BINARY_EVENT||e.type===Te.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){const r=d_(e),i=this.encodeAsString(r.packet),a=r.buffers;return a.unshift(i),a}}class jf extends Ze{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);const i=r.type===Te.BINARY_EVENT;i||r.type===Te.BINARY_ACK?(r.type=i?Te.EVENT:Te.ACK,this.reconstructor=new m_(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Lf(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0;const i={type:Number(e.charAt(0))};if(Te[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Te.BINARY_EVENT||i.type===Te.BINARY_ACK){const l=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);const c=e.substring(l,r);if(c!=Number(c)||e.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(c)}if(e.charAt(r+1)==="/"){const l=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););i.nsp=e.substring(l,r)}else i.nsp="/";const a=e.charAt(r+1);if(a!==""&&Number(a)==a){const l=r+1;for(;++r;){const c=e.charAt(r);if(c==null||Number(c)!=c){--r;break}if(r===e.length)break}i.id=Number(e.substring(l,r+1))}if(e.charAt(++r)){const l=this.tryParse(e.substr(r));if(jf.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case Te.CONNECT:return wy(r);case Te.DISCONNECT:return r===void 0;case Te.CONNECT_ERROR:return typeof r=="string"||wy(r);case Te.EVENT:case Te.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&h_.indexOf(r[0])===-1);case Te.ACK:case Te.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class m_{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const r=f_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function wy(t){return Object.prototype.toString.call(t)==="[object Object]"}const g_=Object.freeze(Object.defineProperty({__proto__:null,Decoder:jf,Encoder:p_,get PacketType(){return Te}},Symbol.toStringTag,{value:"Module"}));function hn(t,e,r){return t.on(e,r),function(){t.off(e,r)}}const y_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Rw extends Ze{constructor(e,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[hn(e,"open",this.onopen.bind(this)),hn(e,"packet",this.onpacket.b
vendor: 2,660 bytes, line 152
152ind(this)),hn(e,"error",this.onerror.bind(this)),hn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var i,a,l;if(y_.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const c={type:Te.EVENT,data:r};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const g=this.ids++,y=r.pop();this._registerAckCallback(g,y),c.id=g}const d=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(e,r){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[e]=r;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);r.call(this,new Error("operation has timed out"))},a),c=(...d)=>{this.io.clearTimeoutFn(l),r.apply(this,d)};c.withError=!0,this.acks[e]=c}emitWithAck(e,...r){return new Promise((i,a)=>{const l=(c,d)=>c?a(c):i(d);l.withError=!0,r.push(l),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(a)):(this._queue.shift(),r&&r(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Te.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}
vendor: 7,049 bytes, line 152
152_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Te.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Te.EVENT:case Te.BINARY_EVENT:this.onevent(e);break;case Te.ACK:case Te.BINARY_ACK:this.onack(e);break;case Te.DISCONNECT:this.ondisconnect();break;case Te.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const r=this;let i=!1;return function(...a){i||(i=!0,r.packet({type:Te.ACK,id:e,data:a}))}}onack(e){const r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Te.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(e===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(e===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,e.data)}}}function di(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}di.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};di.prototype.reset=function(){this.attempts=0};di.prototype.setMin=function(t){this.ms=t};di.prototype.setMax=function(t){this.max=t};di.prototype.setJitter=function(t){this.jitter=t};class Gd extends Ze{constructor(e,r){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Hl(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new di({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;const a=r.parser||g_;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new i_(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=hn(r,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},c=hn(r,"error",l);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),r.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(a),this.subs.push(c),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(hn(e,"ping",this.onping.bind(this)),hn(e,"data",this.ondata.bind(this)),hn(e,"error",this.onerror.bind(this)),hn(e,"close",this.onclose.bind(this)),hn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){Wl(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new Rw(this,e,r),this.nsps[e]=i),i}_destroy(e){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(e){const r=this.encoder.encode(e);for(let i=0;i<r.length;
152i++)this.engine.write(r[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const no={};function bl(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const r=o_(t,e.path||"/socket.io"),i=r.source,a=r.id,l=r.path,c=no[a]&&l in no[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||c;let h;return d?h=new Gd(i,e):(no[a]||(no[a]=new Gd(i,e)),h=no[a]),r.query&&!e.query&&(e.query=r.queryKey),h.socket(r.path,e)}Object.assign(bl,{Manager:Gd,Socket:Rw,io:bl,connect:bl});function xy(t,e){var r;const i=bl(t.serverUrl,{path:t.mountPath,transports:t.transports,query:{app_id:t.appId,token:(r=t.token)!==null&&r!==void 0?r:Eo()}});return i.on("connect",async()=>{var a;return console.log("connect",i.id),(a=e.connect)===null||a===void 0?void 0:a.call(e)}),i.on("update_model",async a=>{var l;return(l=e.update_model)===null||l===void 0?void 0:l.call(e,a)}),i.on("error",async a=>{var l;return(l=e.error)===null||l===void 0?void 0:l.call(e,a)}),i.on("connect_error",async a=>{var l;return console.error("connect_error",a),(l=e.error)===null||l===void 0?void 0:l.call(e,a)}),i}function v_({config:t}){let e={...t};const r={},i={connect:async()=>{const T=[];Object.keys(r).forEach(k=>{h(k);const b=y(k);b==null||b.forEach(({connect:x})=>{const A=async()=>x==null?void 0:x();T.push(A())})}),await Promise.all(T)},update_model:async T=>{const b=y(T.room).map(x=>{var A;return(A=x.update_model)===null||A===void 0?void 0:A.call(x,T)});await Promise.all(b)},error:async T=>{console.error("error",T);const k=Object.values(r).flat().map(b=>{var x;return(x=b.error)===null||x===void 0?void 0:x.call(b,T)});await Promise.all(k)}};let a=xy(t,i);function l(){c()}function c(){a&&a.disconnect()}function d(T){l(),e={...e,...T},a=xy(e,i)}function h(T){a.emit("join",T)}function m(T){a.emit("leave",T)}async function g(T,k){var b;const x=JSON.stringify(k);return(b=i.update_model)===null||b===void 0?void 0:b.call(i,{room:T,data:x})}function y(T){return r[T]}return{socket:a,subscribeToRoom:(T,k)=>(r[T]||(h(T),r[T]=[]),r[T].push(k),()=>{var b,x;r[T]=(x=(b=r[T])===null||b===void 0?void 0:b.filter(A=>A!==k))!==null&&x!==void 0?x:[],r[T].length===0&&m(T)}),updateConfig:d,updateModel:g,disconnect:c}}const ro=typeof window<"u"?window:{base44SharedInstances:{}};function w_(t,e){return ro.base44SharedInstances||(ro.base44SharedInstances={}),ro.base44SharedInstances[t]||(ro.base44SharedInstances[t]={instance:e()}),ro.base44SharedInstances[t].instance}const x_="__user_heartbeat_event__",S_="__initialization_event__",b_="__session_duration_event__",Sy="analytics-enable",by="base44_analytics_session_id",k_={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},E_="analytics",De=w_(E_,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...k_,...N_()}})),T_=({axiosClient:t,serverUrl:e,appId:r,userAuthModule:i})=>{var a;const{maxQueueSize:l,throttleTime:c,batchSize:d}=De.config;if(!(!((a=De.config)===null||a===void 0)&&a.enabled))return{track:()=>{},cleanup:()=>{}};let h;const m=`${e}/api/apps/${r}/analytics/track/batch`,g=async L=>{await t.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:L}})},y=L=>{try{const M=JSON.stringify({events:L}),U=new Blob([M],{type:"application/json"});return typeof navigator>"u"||M.length>6e4||!navigator.sendBeacon(m,U)}catch{return!1}},w=async(L,M={})=>
152{if(L.length===0)return;const U=await O_(i),K=L.map(A_(U));try{(!M.isBeacon||!y(K))&&await g(K)}catch{}},T=()=>{Ey(w,{throttleTime:c,batchSize:d})},k=L=>{if(De.requestsQueue.length>=l)return;const M=R_();De.requestsQueue.push({...L,...M}),T()},b=()=>{Ey(w,{throttleTime:c,batchSize:d}),h=Ty(k),P_()},x=()=>{ky(),h==null||h(),__(k);const L=De.requestsQueue.splice(0);w(L,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?x():document.visibilityState==="visible"&&b())},V=()=>{ky(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return T(),h=Ty(k),C_(k),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:k,cleanup:V}};function ky(){De.isProcessing=!1}async function Ey(t,e){if(De.isProcessing)return;De.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=e??{};for(;De.isProcessing&&De.requestsQueue.length>0;){const a=De.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,r))}De.isProcessing=!1}function Ty(t){var e;if(De.isHeartBeatProcessing||((e=De.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};De.isHeartBeatProcessing=!0;const r=setInterval(()=>{t({eventName:x_})},De.config.heartBeatInterval);return()=>{clearInterval(r),De.isHeartBeatProcessing=!1}}function C_(t){typeof window>"u"||De.wasInitializationTracked||(De.wasInitializationTracked=!0,t({eventName:S_,properties:{referrer:document==null?void 0:document.referrer}}))}function P_(){typeof window>"u"||De.sessionStartTime!==null||(De.sessionStartTime=new Date().toISOString())}function __(t){if(typeof window>"u"||De.sessionStartTime===null)return;const e=new Date().getTime()-new Date(De.sessionStartTime).getTime();De.sessionStartTime=null,t({eventName:b_,properties:{sessionDuration:e}})}function R_(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function A_(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let ad=null;async function O_(t){if(!De.sessionContext){if(!ad){const e=L_();ad=t.me().then(r=>({user_id:r.id,session_id:e})).catch(()=>({user_id:null,session_id:e}))}De.sessionContext=await ad}return De.sessionContext}function N_(){if(typeof window>"u")return;const e=new URLSearchParams(window.location.search).get(Sy);if(e==null||!e.length)return;const r=new URLSearchParams(window.location.search);r.delete(Sy);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function L_(){if(typeof window>"u")return nd();try{const t=localStorage.getItem(by);if(!t){const e=nd();return localStorage.setItem(by,e),e}return t}catch{return nd()}}function j_(t){var e,r;const{serverUrl:i="https://base44.app",appId:a,token:l,serviceToken:c,requiresAuth:d=!1,appBaseUrl:h,options:m,functionsVersion:g,headers:y}=t,w=typeof h=="string"?h:"",T={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:a,token:l};let k=null;const b=()=>(k||(k=v_({config:T})),k),x={...y,"X-App-Id":String(a)},A=g?{...x,"Base44-Functions-Version":g}:x,V=oo({baseURL:`${i}/api`,headers:x,token:l,onError:m==null?void 0:m.onError}),L=oo({baseURL:`${i}/api`,headers:A,token:l,interceptResponses:!1,onError:m==null?void 0:m.onError}),M={...x,...l?{"on-behalf-of":`Bearer ${l}`}:{}},U=oo({baseURL:`${i}/api`,headers:M,token:c,onError:m==null?void 0:m.onError}),K=oo({baseURL:`${i}/api`,headers:A,token:c,interceptResponses:!1}),G=xP(V,L,a,{appBaseUrl:w}),I={entities:cy({axios:V,appId:a,getSocket:b}),integrations:dy(V,a),connectors:kP(V,a),auth:G,functions:fy(L,a,{getAuthHeaders:()=>{const de={},Ce=l||Eo();return Ce&&(de.Authorization=`Bearer ${Ce}`),de},baseURL:(e=L.defaults)===null||e===void 0?void 0:e.baseURL}),agents:hy({axios:V,getSocket:b,appId:a,serverUrl:i,token:l}),appLogs:py(V,a),users:TP(V,a),analytics:T_({axiosClient:V,serverUrl:i,appId:a,userAuthModule:G}),cleanup:()=>{I.analytics.cleanup(),k&&k.disconnect()}},J={entities:cy({axios:U,appId:a,getSocket:b}),integrations:dy(U,a),sso:SP(U,a),connectors:bP(U,a),functions:fy(K,a,{getAuthHeaders:()=>{const de={};return c&&(de.Authorization=`Bearer ${c}`),de},baseURL:(r=K.defaults)===null||r===void 0?void 0:r.baseURL}),agents:hy({axios:U,getSocket:b,appId:a,serverUrl:i,token:l}),appLogs:py(U,a),cleanup:()=>{k&&k.disconnect()}};if(typeof window<"u"){const de=l||Eo();de&&I.auth.setToken(de)}return d&&typeof window<"u"&&setTimeout(async()=>{try{await I.auth.isAuthenticated()||I.auth.redirectToLogin(window.location.href)}catch(de){console.error("Authentication check failed:",de),I.auth.redirectToLogin(window.location.href)}},0),{...I,setToken(de){I.auth.setToken(de),k&&k.updateConfig({token:de}),T.token=de},getConfig(){return{serverUrl:i,appId:a,requiresAuth:d}},get asServiceRole(){if(!c)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return J}}}const Aw=typeof window>"u",D_=Aw?{localStorage:new Map}:window,mo=D_.localStorage,M_=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Us=(t,{defaultValue:e=void 0,removeFromUrl:r=!1}={})=>
152{if(Aw)return e;const i=`base44_${M_(t)}`,a=new URLSearchParams(window.location.search),l=a.get(t);if(r){a.delete(t);const d=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return mo.setItem(i,l),l;if(e)return mo.setItem(i,e),e;const c=mo.getItem(i);return c||null},I_=()=>(Us("clear_access_token")==="true"&&(mo.removeItem("base44_access_token"),mo.removeItem("token")),{appId:Us("app_id",{defaultValue:"69ee0a05249851feaa317aa2"}),token:Us("access_token",{removeFromUrl:!0}),fromUrl:Us("from_url",{defaultValue:window.location.href}),functionsVersion:Us("functions_version",{defaultValue:"prod"}),appBaseUrl:Us("app_base_url",{defaultValue:void 0})}),lo={...I_()},{appId:F_,token:V_,functionsVersion:B_,appBaseUrl:U_}=lo,uo=j_({appId:F_,token:V_,functionsVersion:B_,serverUrl:"",requiresAuth:!1,appBaseUrl:U_});function z_({}){var a;const e=Io().pathname.substring(1),{data:r,isFetched:i}=EE({queryKey:["user"],queryFn:async()=>{try{return{user:await uo.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return S.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:S.jsx("div",{className:"max-w-md w-full",children:S.jsxs("div",{className:"text-center space-y-6",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),S.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),S.jsxs("div",{className:"space-y-3",children:[S.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),S.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",S.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&r.isAuthenticated&&((a=r.user)==null?void 0:a.role)==="admin"&&S.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:S.jsxs("div",{className:"flex items-start space-x-3",children:[S.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:S.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),S.jsxs("div",{className:"text-left space-y-1",children:[S.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),S.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),S.jsx("div",{className:"pt-6",children:S.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[S.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Ow=O.createContext(),$_=({children:t})=>{const[e,r]=O.useState(null),[i,a]=O.useState(!1),[l,c]=O.useState(!0),[d,h]=O.useState(!0),[m,g]=O.useState(null),[y,w]=O.useState(!1),[T,k]=O.useState(null);O.useEffect(()=>{b()},[]);const b=async()=>{var L,M;try{h(!0),g(null);const U=oo({baseURL:"/api/apps/public",headers:{"X-App-Id":lo.appId},token:lo.token,interceptResponses:!0});try{const K=await U.get(`/prod/public-settings/by-id/${lo.appId}`);k(K),lo.token?await x():(c(!1),a(!1),w(!0)),h(!1)}catch(K){if(console.error("App state check failed:",K),K.status===403&&((M=(L=K.data)==null?void 0:L.extra_data)!=null&&M.reason)){const G=K.data.extra_data.reason;g(G==="auth_required"?{type:"auth_required",message:"Authentication required"}:G==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:G,message:K.message})}else g({type:"unknown",message:K.message||"Failed to load app"});h(!1),c(!1)}}catch(U){console.error("Unexpected error:",U),g({type:"unknown",message:U.message||"An unexpected error occurred"}),h(!1),c(!1)}},x=async()=>{try{c(!0);const L=await uo.auth.me();r(L),a(!0),c(!1),w(!0)}catch(L){console.error("User auth check failed:",L),c(!1),a(!1),w(!0),(L.status===401||L.status===403)&&g({type:"auth_required",message:"Authentication required"})}},A=(L=!0)=>{r(null),a(!1),L?uo.auth.logout(window.location.href):uo.auth.logout()},V=()=>{uo.auth.redirectToLogin(window.location.href)};return S.jsx(Ow.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:m,appPublicSettings:T,authChecked:y,logout:A,navigateToLogin:V,checkUserAuth:x,checkAppState:b},children:t})},W_=()=>{const t=O.useContext(Ow);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},H_=()=>S.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:S.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:S.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),S.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),S.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),S.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[S.jsx("p",{children:"If you believe this is an error, you can:"}),S.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[S.jsx("li",{children:"Verify you are logged in with the correct account"}),S.jsx("li",{children:"Contact the app administrator for access"}),S.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function q_(){return S.jsx("nav",{className:"border-b bg-card/80 backdrop-blur-md sticky top-0 z-50",children:S.jsxs("div",{className:"max-w-4xl mx-auto px-4 h-16 flex items-center justify-between",children:[S.jsxs(ml,{to:"/",className:"flex items-center gap-2.5 group",children:[S.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shadow-sm group-hover:shadow-md transition-shadow",children:S.jsx(o0,{className:"w-4 h-4 text-primary-foreground"})}),S.jsx("span",{className:"font-bold text-lg tracking-tight",children:"Keyword Finder"})]}),S.jsx("a",{href:"https://orestislink.com",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-primary font-medium transition-colors",children:"by OrestisLink"})]})})}function K_(){return S.jsx("footer",{className:"border-t bg-card/60 backdrop-blur-sm",children:S.jsx("div",{className:"max-w-4xl mx-auto px-4 py-8",children:S.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[S.jsxs("div",{className:"text-center md:text-left",children:[S.jsxs("p",{className:"text-sm font-medium",children:["Brought to you by"," ",S.jsxs("a",{href:"https://orestislink.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary font-semibold hover:underline inline-flex items-center gap-1",children:["OrestisLink",S.jsx(Rb,{className:"w-3 h-3"})]})]}),S.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["© ",new Date().getFullYear()," OrestisLink. All rights reserved. Created by Orestis Tzamanos."]})]}),S.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[S.jsx(ml,{to:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),S.jsx(ml,{to:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),S.jsx(ml,{to:"/copyright",className:"hover:text-foreground transition-colors",children:"Copyright"})]})]})})})}function Q_(){return S.jsxs("div",{className:"min-h-screen flex flex-col",children:[S.jsx(q_,{}),S.jsx("main",{className:"flex-1",children:S.jsx(wT,{})}),S.jsx(K_,{})]})}const Nw=O.createContext({});function G_(t){const e=O.useRef(null);return e.current===null&&(e.current=t()),e.current}const Df=O.createContext(null),Lw=O.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Y_(t=!0){const e=O.useContext(Df);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:i,register:a}=e,l=O.useId();O.useEffect(()=>{t&&a(l)},[t]);const c=O.useCallback(()=>t&&i&&i(l),[l,i,t]);return!r&&i?[!1,c]:[!0]}const Mf=typeof window<"u",X_=Mf?O.useLayoutEffect:O.useEffect,Bt=t=>t;let jw=Bt;function If(t){let e;return()=>(e===void 0&&(e=t()),e)}const oi=(t,e,r)=>{const i=e-t;return i===0?1:(r-t)/i},Un=t=>t*1e3,zn=t=>t/1e3,J_={useManualTiming:!1};function Z_(t){let e=new Set,r=new Set,i=!1,a=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(h.schedule(m),t()),m(c)}const h={schedule:(m,g=!1,y=!1)=>{const T=y&&i?e:r;return g&&l.add(m),T.has(m)||T.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[e,r]=[r,e],e.forEach(d),e.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const ul=["read","resolveKeyframes","update","preRender","render","postRender"],eR=40;function Dw(t,e){let r=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,c=ul.reduce((A,V)=>(A[V]=Z_(l),A),{}),{read:d,resolveKeyframes:h,update:m,preRender:g,render:y,postRender:w}=c,T=()=>{const A=performance.now();r=!1,a.delta=i?1e3/60:Math.max(Math.min(A-a.timestamp,eR),1),a.timestamp=A,a.isProcessing=!0,d.process(a),h.process(a),m.process(a),g.process(a),y.process(a),w.process(a),a.isProcessing=!1,r&&e&&(i=!1,t(T))},k=()=>{r=!0,i=!0,a.isProcessing||t(T)};return{schedule:ul.reduce((A,V)=>{const L=c[V];return A[V]=(M,U=!1,K=!1)=>(r||k(),L.schedule(M,U,K)),A},{}),cancel:A=>{for(let V=0;V<ul.length;V++)c[ul[V]].cancel(A)},state:a,steps:c}}const{schedule:Be,cancel:Pr,state:dt,steps:ld}=Dw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bt,!0),Mw=O.createContext({strict:!1}
vendor: 27,482 bytes, line 152
152),Cy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ai={};for(const t in Cy)ai[t]={isEnabled:e=>Cy[t].some(r=>!!e[r])};function tR(t){for(const e in t)ai[e]={...ai[e],...t[e]}}const nR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Al(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nR.has(t)}let Iw=t=>!Al(t);function rR(t){t&&(Iw=e=>e.startsWith("on")?!Al(e):t(e))}try{rR(require("@emotion/is-prop-valid").default)}catch{}function sR(t,e,r){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(Iw(a)||r===!0&&Al(a)||!e&&!Al(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function iR(t){if(typeof Proxy>"u")return t;const e=new Map,r=(...i)=>t(...i);return new Proxy(r,{get:(i,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const ql=O.createContext({});function To(t){return typeof t=="string"||Array.isArray(t)}function Kl(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ff=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vf=["initial",...Ff];function Ql(t){return Kl(t.animate)||Vf.some(e=>To(t[e]))}function Fw(t){return!!(Ql(t)||t.variants)}function oR(t,e){if(Ql(t)){const{initial:r,animate:i}=t;return{initial:r===!1||To(r)?r:void 0,animate:To(i)?i:void 0}}return t.inherit!==!1?e:{}}function aR(t){const{initial:e,animate:r}=oR(t,O.useContext(ql));return O.useMemo(()=>({initial:e,animate:r}),[Py(e),Py(r)])}function Py(t){return Array.isArray(t)?t.join(" "):t}const lR=Symbol.for("motionComponentSymbol");function zs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function uR(t,e,r){return O.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),r&&(typeof r=="function"?r(i):zs(r)&&(r.current=i))},[e])}const Bf=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cR="framerAppearId",Vw="data-"+Bf(cR),{schedule:Uf}=Dw(queueMicrotask,!1),Bw=O.createContext({});function dR(t,e,r,i,a){var l,c;const{visualElement:d}=O.useContext(ql),h=O.useContext(Mw),m=O.useContext(Df),g=O.useContext(Lw).reducedMotion,y=O.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g}));const w=y.current,T=O.useContext(Bw);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&fR(y.current,r,a,T);const k=O.useRef(!1);O.useInsertionEffect(()=>{w&&k.current&&w.update(r,m)});const b=r[Vw],x=O.useRef(!!b&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,b))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,b)));return X_(()=>{w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),Uf.render(w.render),x.current&&w.animationState&&w.animationState.animateChanges())}),O.useEffect(()=>{w&&(!x.current&&w.animationState&&w.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)===null||A===void 0||A.call(window,b)}),x.current=!1))}),w}function fR(t,e,r,i){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:m}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:Uw(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&zs(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:m})}function Uw(t){if(t)return t.options.allowProjection!==!1?t.projection:Uw(t.parent)}function hR({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:i,Component:a}){var l,c;t&&tR(t);function d(m,g){let y;const w={...O.useContext(Lw),...m,layoutId:pR(m)},{isStatic:T}=w,k=aR(m),b=i(m,T);if(!T&&Mf){mR();const x=gR(w);y=x.MeasureLayout,k.visualElement=dR(a,b,w,e,x.ProjectionNode)}return S.jsxs(ql.Provider,{value:k,children:[y&&k.visualElement?S.jsx(y,{visualElement:k.visualElement,...w}):null,r(a,m,uR(b,k.visualElement,g),b,T,k.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(c=(l=a.displayName)!==null&&l!==void 0?l:a.name)!==null&&c!==void 0?c:""})`}`;const h=O.forwardRef(d);return h[lR]=a,h}function pR({layoutId:t}){const e=O.useContext(Nw).id;return e&&t!==void 0?e+"-"+t:t}function mR(t,e){O.useContext(Mw).strict}function gR(t){const{drag:e,layout:r}=ai;if(!e&&!r)return{};const i={...e,...r};return{MeasureLayout:e!=null&&e.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const yR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zf(t){return typeof t!="string"||t.includes("-")?!1:!!(yR.indexOf(t)>-1||/[A-Z]/u.test(t))}function _y(t){const e=[{},{}];return t==null||t.values.forEach((r,i)=>{e[0][i]=r.get(),e[1][i]=r.getVelocity()}),e}function $f(t,e,r,i){if(typeof e=="function"){const[a,l]=_y(i);e=e(r!==void 0?r:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=_y(i);e=e(r!==void 0?r:t.custom,a,l)}return e}const Yd=t=>Array.isArray(t),vR=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),wR=t=>Yd(t)?t[t.length-1]||0:t,St=t=>!!(t&&t.getVelocity);function kl(t){const e=St(t)?t.get():t;return vR(e)?e.toValue():e}function xR({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:r},i,a,l){const c={latestValues:SR(i,a,l,t),renderState:e()};return r&&(c.onMount=d=>r({props:i,current:d,...c}),c.onUpdate=d=>r(d)),c}const zw=t=>(e,r)=>{const i=O.useContext(ql),a=O.useContext(Df),l=()=>xR(t,e,i,a);return r?l():G_(l)};function SR(t,e,r,i){const a={},l=i(t,{});for(const w in l)a[w]=kl(l[w]);let{initial:c,animate:d}=t;const h=Ql(t),m=Fw(t);e&&m&&!h&&t.inherit!==!1&&(c===void 0&&(c=e.initial),d===void 0&&(d=e.animate));let g=r?r.initial===!1:!1;g=g||c===!1;const y=g?d:c;if(y&&typeof y!="boolean"&&!Kl(y)){const w=Array.isArray(y)?y:[y];for(let T=0;T<w.length;T++){const k=$f(t,w[T]);if(k){const{transitionEnd:b,transition:x,...A}=k;for(const V in A){let L=A[V];if(Array.isArray(L)){const M=g?L.length-1:0;L=L[M]}L!==null&&(a[V]=L)}for(const V in b)a[V]=b[V]}}}return a}const fi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ms=new Set(fi),$w=t=>e=>typeof e=="string"&&e.startsWith(t),Ww=$w("--"),bR=$w("var(--"),Wf=t=>bR(t)?kR.test(t.split("/*")[0].trim()):!1,kR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hw=(t,e)=>e&&typeof t=="number"?e.transform(t):t,$n=(t,e,r)=>r>e?e:r<t?t:r,hi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Co={...hi,transform:t=>$n(0,1,t)},cl={...hi,default:1},$o=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),pr=$o("deg"),En=$o("%"),ce=$o("px"),ER=$o("vh"),TR=$o("vw"),Ry={...En,parse:t=>En.parse(t)/100,transform:t=>En.transform(t*100)},CR={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,radius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,top:ce,right:ce,bottom:ce,left:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,backgroundPositionX:ce,backgroundPositionY:ce},PR={rotate:pr,rotateX:pr,rotateY:pr,rotateZ:pr,scale:cl,scaleX:cl,scaleY:cl,scaleZ:cl,skew:pr,skewX:pr,skewY:pr,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:Co,originX:Ry,originY:Ry,originZ:ce},Ay={...hi,transform:Math.round},Hf={...CR,...PR,zIndex:Ay,size:ce,fillOpacity:Co,strokeOpacity:Co,numOctaves:Ay},_R={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RR=fi.length;function AR(t,e,r){let i="",a=!0;for(let l=0;l<RR;l++){const c=fi[l],d=t[c];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(c.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||r){const m=Hw(d,Hf[c]);if(!h){a=!1;const g=_R[c]||c;i+=`${g}(${m}) `}r&&(e[c]=m)}}return i=i.trim(),r?i=r(e,a?"":i):a&&(i="none"),i}function qf(t,e,r){const{style:i,vars:a,transformOrigin:l}=t;let c=!1,d=!1;for(const h in e){const m=e[h];if(ms.has(h)){c=!0;continue}else if(Ww(h)){a[h]=m;continue}else{const g=Hw(m,Hf[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(c||r?i.transform=AR(e,t.transform,r):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:m="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${m} ${g}`}}const OR={offset:"stroke-dashoffset",array:"stroke-dasharray"},NR={offset:"strokeDashoffset",array:"strokeDasharray"};function LR(t,e,r=1,i=0,a=!0){t.pathLength=1;const l=a?OR:NR;t[l.offset]=ce.transform(-i);const c=ce.transform(e),d=ce.transform(r);t[l.array]=`${c} ${d}`}function Oy(t,e,r){return typeof t=="string"?t:ce.transform(e+r*t)}function jR(t,e,r){const i=Oy(e,t.x,t.width),a=Oy(r,t.y,t.height);return`${i} ${a}`}function Kf(t,{attrX:e,attrY:r,attrScale:i,originX:a,originY:l,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...m},g,y){if(qf(t,m,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:T,dimensions:k}=t;w.transform&&(k&&(T.transform=w.transform),delete w.transform),k&&(a!==void 0||l!==void 0||T.transform)&&(T.transformOrigin=jR(k,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),r!==void 0&&(w.y=r),i!==void 0&&(w.scale=i),c!==void 0&&LR(w,c,d,h,!1)}const Qf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qw=()=>({...Qf(),attrs:{}}),Gf=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Kw(t,{style:e,vars:r},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const l in r)t.style.setProperty(l,r[l])}const Qw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gw(t,e,r,i){Kw(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(Qw.has(a)?a:Bf(a),e.attrs[a])}const Ol={};function DR(t){Object.assign(Ol,t)}function Yw(t,{layout:e,layoutId:r}){return ms.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Ol[t]||t==="opacity")}function Yf(t,e,r){var i;const{style:a}=t,l={};for(const c in a)(St(a[c])||e.style&&St(e.style[c])||Yw(c,t)||((i=r==null?void 0:r.getValue(c))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[c]=a[c]);return l}function Xw(t,e,r){const i=Yf(t,e,r);for(const a in t)if(St(t[a])||St(e[a])){const l=fi.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function MR(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Ny=["x","y","width","height","cx","cy","r"],IR={useVisualState:zw({scrapeMotionValuesFromProps:Xw,createRenderState:qw,onUpdate:({props:t,prevProps:e,current:r,renderState:i,latestValues:a})=>{if(!r)return;let l=!!t.drag;if(!l){for(const d in a)if(ms.has(d)){l=!0;break}}if(!l)return;let c=!e;if(e)for(let d=0;d<Ny.length;d++){const h=Ny[d];t[h]!==e[h]&&(c=!0)}c&&Be.read(()=>{MR(r,i),Be.render(()=>{Kf(i,a,Gf(r.tagName),t.transformTemplate),Gw(r,i)})})}})},FR={useVisualState:zw({scrapeMotionValuesFromProps:Yf,createRenderState:Qf})};function Jw(t,e,r){for(const i in e)!St(e[i])&&!Yw(i,r)&&(t[i]=e[i])}function VR({transformTemplate:t},e){return O.useMemo(()=>{const r=Qf();return qf(r,e,t),Object.assign({},r.vars,r.style)},[e])}function BR(t,e){const r=t.style||{},i={};return Jw(i,r,t),Object.assign(i,VR(t,e)),i}function UR(t,e){const r={},i=BR(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}function zR(t,e,r,i){const a=O.useMemo(()=>{const l=qw();return Kf(l,e,Gf(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};Jw(l,t.style,t),a.style={...l,...a.style}}return a}function $R(t=!1){return(r,i,a,{latestValues:l},c)=>{const h=(zf(r)?zR:UR)(i,l,c,r),m=sR(i,typeof r=="string",t),g=r!==O.Fragment?{...m,...h,ref:a}:{},{children:y}=i,w=O.useMemo(()=>St(y)?y.get():y,[y]);return O.createElement(r,{...g,children:w})}}function WR(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...zf(i)?IR:FR,preloadedFeatures:t,useRender:$R(a),createVisualElement:e,Component:i};return hR(c)}}function Zw(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Gl(t,e,r){const i=t.getProps();return $f(i,e,r!==void 0?r:i.custom,t)}const HR=If(()=>window.ScrollTimeline!==void 0);class qR{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=r}attachTimeline(e,r){const i=this.animations.map(a=>{if(HR()&&a.attachTimeline)return a.attachTimeline(e);if(typeof r=="function")return r(a)});return()=>{i.forEach((a,l)=>{a&&a(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let r=0;r<this.animations.length;r++)e=Math.max(e,this.animations[r].duration);return e}runAll(e){this.animations.forEach(r=>r[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class KR extends qR{then(e,r){return Promise.all(this.animations).then(e).catch(r)}}function Xf(t,e){return t?t[e]||t.default||t:void 0}const Xd=2e4;function ex(t){let e=0;const r=50;let i=t.next(e);for(;!i.done&&e<Xd;)e+=r,i=t.next(e);return e>=Xd?1/0:e}function Jf(t){return typeof t=="function"}function Ly(t,e){t.timeline=e,t.onfinish=null}const Zf=t=>Array.isArray(t)&&typeof t[0]=="number",QR={linearEasing:void 0};function GR(t,e){const r=If(t);return()=>{var i;return(i=QR[e])!==null&&i!==void 0?i:r()}}const Nl=GR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tx=(t,e,r=10)=>{let i="";const a=Math.max(Math.round(e/r),2);for(let l=0;l<a;l++)i+=t(oi(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function nx(t){return!!(typeof t=="function"&&Nl()||!t||typeof t=="string"&&(t in Jd||Nl())||Zf(t)||Array.isArray(t)&&t.every(nx))}const co=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`,Jd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:co([0,.65,.55,1]),circOut:co([.55,0,1,.45]),backIn:co([.31,.01,.66,-.59]),backOut:co([.33,1.53,.69,.99])};function rx(t,e){if(t)return typeof t=="function"&&Nl()?tx(t,e):Zf(t)?co(t):Array.isArray(t)?t.map(r=>rx(r,e)||Jd.easeOut):Jd[t]}const cn={x:!1,y:!1};function sx(){return cn.x||cn.y}function YR(t,e,r){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let a=document;const l=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function ix(t,e){const r=YR(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[r,a,()=>i.abort()]}function jy(t){return e=>{e.pointerType==="touch"||sx()||t(e)}}function XR(t,e,r={}){const[i,a,l]=ix(t,r),c=jy(d=>{const{target:h}=d,m=e(d);if(typeof m!="function"||!h)return;const g=jy(y=>{m(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,a)});return i.forEach(d=>{d.addEventListener("pointerenter",c,a)}),l}const ox=(t,e)=>e?t===e?!0:ox(t,e.parentElement):!1,eh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,JR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ZR(t){return JR.has(t.tagName)||t.tabIndex!==-1}const fo=new WeakSet;function Dy(t){return e=>{e.key==="Enter"&&t(e)}}function ud(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const eA=(t,e)=>{const r=t.currentTarget;if(!r)return;const i=Dy(()=>{if(fo.has(r))return;ud(r,"down");const a=Dy(()=>{ud(r,"up")}),l=()=>ud(r,"cancel");r.addEventListener("keyup",a,e),r.addEventListener("blur",l,e)});r.addEventListener("keydown",i,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),e)};function My(t){return eh(t)&&!sx()}function tA(t,e,r={}){const[i,a,l]=ix(t,r),c=d=>{const h=d.currentTarget;if(!My(d)||fo.has(h))return;fo.add(h);const m=e(d),g=(T,k)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),!(!My(T)||!fo.has(h))&&(fo.delete(h),typeof m=="function"&&m(T,{success:k}))},y=T=>{g(T,r.useGlobalTarget||ox(h,T.target))},w=T=>{g(T,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{!ZR(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(r.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),d.addEventListener("focus",m=>eA(m,a),a)}),l}function nA(t){return t==="x"||t==="y"?cn[t]?null:(cn[t]=!0,()=>{cn[t]=!1}):cn.x||cn.y?null:(cn.x=cn.y=!0,()=>{cn.x=cn.y=!1})}const ax=new Set(["width","height","top","left","right","bottom",...fi]);let El;function rA(){El=void 0}const Tn={now:()=>(El===void 0&&Tn.set(dt.isProcessing||J_.useManualTiming?dt.timestamp:performance.now()),El),set:t=>{El=t,queueMicrotask(rA)}};function th(t,e){t.indexOf(e)===-1&&t.push(e)}function nh(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class rh{constructor(){this.subscriptions=[]}add(e){return th(this.subscriptions,e),()=>nh(this.subscriptions,e)}notify(e,r,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,i);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(e,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function lx(t,e){return e?t*(1e3/e):0}const Iy=30,sA=t=>!isNaN(parseFloat(t));class iA{constructor(e,r={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=Tn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=Tn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=sA(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new rh);const i=this.events[e].add(r);return e==="change"?()=>{i(),Be.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Iy)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Iy);return lx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Po(t,e){return new iA(t,e)}function oA(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Po(r))}function aA(t,e){const r=Gl(t,e);let{transitionEnd:i={},transition:a={},...l}=r||{};l={...l,...i};for(const c in l){const d=wR(l[c]);oA(t,c,d)}}function lA(t){return!!(St(t)&&t.add)}function Zd(t,e){const r=t.getValue("willChange");if(lA(r))return r.add(e)}function ux(t){return t.props[Vw]}const cx=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,uA=1e-7,cA=12;function dA(t,e,r,i,a){let l,c,d=0;do c=e+(r-e)/2,l=cx(c,i,a)-t,l>0?r=c:e=c;while(Math.abs(l)>uA&&++d<cA);return c}function Wo(t,e,r,i){if(t===e&&r===i)return Bt;const a=l=>dA(l,0,1,t,r);return l=>l===0||l===1?l:cx(a(l),e,i)}const dx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,fx=t=>e=>1-t(1-e),hx=Wo(.33,1.53,.69,.99),sh=fx(hx),px=dx(sh),mx=t=>(t*=2)<1?.5*sh(t):.5*(2-Math.pow(2,-10*(t-1))),ih=t=>1-Math.sin(Math.acos(t)),gx=fx(ih),yx=dx(ih),vx=t=>/^0[^.\s]+$/u.test(t);function fA(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||vx(t):!0}const go=t=>Math.round(t*1e5)/1e5,oh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hA(t){return t==null}const pA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ah=(t,e)=>r=>!!(typeof r=="string"&&pA.test(r)&&r.startsWith(t)||e&&!hA(r)&&Object.prototype.hasOwnProperty.call(r,e)),wx=(t,e,r)=>i=>{if(typeof i!="string")return i;const[a,l,c,d]=i.match(oh);return{[t]:parseFloat(a),[e]:parseFloat(l),[r]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},mA=t=>$n(0,255,t),cd={...hi,transform:t=>Math.round(mA(t))},Zr={test:ah("rgb","red"),parse:wx("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+cd.transform(t)+", "+cd.transform(e)+", "+cd.transform(r)+", "+go(Co.transform(i))+")"};function gA(t){let e="",r="",i="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const ef={test:ah("#"),parse:gA,transform:Zr.transform},$s={test:ah("hsl","hue"),parse:wx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+En.transform(go(e))+", "+En.transform(go(r))+", "+go(Co.transform(i))+")"},wt={test:t=>Zr.test(t)||ef.test(t)||$s.test(t),parse:t=>Zr.test(t)?Zr.parse(t):$s.test(t)?$s.parse(t):ef.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Zr.transform(t):$s.transform(t)},yA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vA(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(oh))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(yA))===null||r===void 0?void 0:r.length)||0)>0}const xx="number",Sx="color",wA="var",xA="var(",Fy="${}",SA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _o(t){const e=t.toString(),r=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(SA,h=>(wt.test(h)?(i.color.push(l),a.push(Sx),r.push(wt.parse(h))):h.startsWith(xA)?(i.var.push(l),a.push(wA),r.push(h)):(i.number.push(l),a.push(xx),r.push(parseFloat(h))),++l,Fy)).split(Fy);return{values:r,split:d,indexes:i,types:a}}function bx(t){return _o(t).values}function kx(t){const{split:e,types:r}=_o(t),i=e.length;return a=>{let l="";for(let c=0;c<i;c++)if(l+=e[c],a[c]!==void 0){const d=r[c];d===xx?l+=go(a[c]):d===Sx?l+=wt.transform(a[c]):l+=a[c]}return l}}const bA=t=>typeof t=="number"?0:t;function kA(t){const e=bx(t);return kx(t)(e.map(bA))}const _r={test:vA,parse:bx,createTransformer:kx,getAnimatableNone:kA},EA=new Set(["brightness","contrast","saturate","opacity"]);function TA(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=r.match(oh)||[];if(!i)return t;const a=r.replace(i,"");let l=EA.has(e)?1:0;return i!==r&&(l*=100),e+"("+l+a+")"}const CA=/\b([a-z-]*)\(.*?\)/gu,tf={..._r,getAnimatableNone:t=>{const e=t.match(CA);return e?e.map(TA).join(" "):t}},PA={...Hf,color:wt,backgroundColor:wt,outlineColor:wt,fill:wt,stroke:wt,borderColor:wt,borderTopColor:wt,borderRightColor:wt,borderBottomColor:wt,borderLeftColor:wt,filter:tf,WebkitFilter:tf},lh=t=>PA[t];function Ex(t,e){let r=lh(t);return r!==tf&&(r=_r),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const _A=new Set(["auto","none","0"]);function RA(t,e,r){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!_A.has(l)&&_o(l).values.length&&(a=t[i]),i++}if(a&&r)for(const l of e)t[l]=Ex(r,a)}const Vy=t=>t===hi||t===ce,By=(t,e)=>parseFloat(t.split(", ")[e]),Uy=(t,e)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return By(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?By(l[1],t):0}},AA=new Set(["x","y","z"]),OA=fi.filter(t=>!AA.has(t));function NA(t){const e=[];return OA.forEach(r=>{const i=t.getValue(r);i!==void 0&&(e.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),e}const li={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Uy(4,13),y:Uy(5,14)};li.translateX=li.x;li.translateY=li.y;const cs=new Set;let nf=!1,rf=!1;function Tx(){if(rf){const t=Array.from(cs).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),r=new Map;e.forEach(i=>
vendor: 7,903 bytes, line 152
152{const a=NA(i);a.length&&(r.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=r.get(i);a&&a.forEach(([l,c])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(c)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}rf=!1,nf=!1,cs.forEach(t=>t.complete()),cs.clear()}function Cx(){cs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(rf=!0)})}function LA(){Cx(),Tx()}class uh{constructor(e,r,i,a,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=i,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(cs.add(this),nf||(nf=!0,Be.read(Cx),Be.resolveKeyframes(Tx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:i,motionValue:a}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const c=a==null?void 0:a.get(),d=e[e.length-1];if(c!==void 0)e[0]=c;else if(i&&r){const h=i.readValue(r,d);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=d),a&&c===void 0&&a.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),cs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,cs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Px=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),jA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DA(t){const e=jA.exec(t);if(!e)return[,];const[,r,i,a]=e;return[`--${r??i}`,a]}function _x(t,e,r=1){const[i,a]=DA(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const c=l.trim();return Px(c)?parseFloat(c):c}return Wf(a)?_x(a,e,r+1):a}const Rx=t=>e=>e.test(t),MA={test:t=>t==="auto",parse:t=>t},Ax=[hi,ce,En,pr,TR,ER,MA],zy=t=>Ax.find(Rx(t));class Ox extends uh{constructor(e,r,i,a,l){super(e,r,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:r,name:i}=this;if(!r||!r.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let m=e[h];if(typeof m=="string"&&(m=m.trim(),Wf(m))){const g=_x(m,r.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!ax.has(i)||e.length!==2)return;const[a,l]=e,c=zy(a),d=zy(l);if(c!==d)if(Vy(c)&&Vy(d))for(let h=0;h<e.length;h++){const m=e[h];typeof m=="string"&&(e[h]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:r}=this,i=[];for(let a=0;a<e.length;a++)fA(e[a])&&i.push(a);i.length&&RA(e,i,r)}measureInitialState(){const{element:e,unresolvedKeyframes:r,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=li[i](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var e;const{element:r,name:i,unresolvedKeyframes:a}=this;if(!r||!r.current)return;const l=r.getValue(i);l&&l.jump(this.measuredOrigin,!1);const c=a.length-1,d=a[c];a[c]=li[i](r.measureViewportBox(),window.getComputedStyle(r.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,m])=>{r.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const $y=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_r.test(t)||t==="0")&&!t.startsWith("url("));function IA(t){const e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function FA(t,e,r,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],c=$y(a,e),d=$y(l,e);return!c||!d?!1:IA(t)||(r==="spring"||Jf(r))&&i}const VA=t=>t!==null;function Yl(t,{repeat:e,repeatType:r="loop"},i){const a=t.filter(VA),l=e&&r!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const BA=40;class Nx{constructor({autoplay:e=!0,delay:r=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Tn.now(),this.options={autoplay:e,delay:r,type:i,repeat:a,repeatDelay:l,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>BA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&LA(),this._resolved}onKeyframesResolved(e,r){this.resolvedAt=Tn.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:c,onComplete:d,onUpdate:h,isGenerator:m}=this.options;if(!m&&!FA(e,i,a,l))if(c)this.options.duration=0;else{h&&h(Yl(e,this.options,r)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,r);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:r,...g},this.onPostResolved())}onPostResolved(){}then(e,r){return this.currentFinishedPromise.then(e,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const We=(t,e,r)=>t+(e-t)*r;function dd(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function UA({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,e/=100,r/=100;let a=0,l=0,c=0;if(!e)a=l=c=r;else{const d=r<.5?r*(1+e):r+e-r*e,h=2*r-d;a=dd(h,d,t+1/3),l=dd(h,d,t),c=dd(h,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:i}}function Ll(t,e){return r=>r>0?e:t}const fd=(t,e,r)=>{const i=t*t,a=r*(e*e-i)+i;return a<0?0:Math.sqrt(a)},zA=[ef,Zr,$s],$A=t=>zA.find(e=>e.test(t));function Wy(t){const e=$A(t);if(!e)return!1;let r=e.parse(t);return e===$s&&(r=UA(r)),r}const Hy=(t,e)=>{const r=Wy(t),i=Wy(e);if(!r||!i)return Ll(t,e);const a={...r};return l=>(a.red=fd(r.red,i.red,l),a.green=fd(r.green,i.green,l),a.blue=fd(r.blue,i.blue,l),a.alpha=We(r.alpha,i.alpha,l),Zr.transform(a))},WA=(t,e)=>r=>e(t(r)),Ho=(...t)=>t.reduce(WA),sf=new Set(["none","hidden"]);function HA(t,e){return sf.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function qA(t,e){return r=>We(t,e,r)}function ch(t){return typeof t=="number"?qA:typeof t=="string"?Wf(t)?Ll:wt.test(t)?Hy:GA:Array.isArray(t)?Lx:typeof t=="object"?wt.test(t)?Hy:KA:Ll}function Lx(t,e){const r=[...t],i=r.length,a=t.map((l,c)=>ch(l)(l,e[c]));return l=>{for(let c=0;c<i;c++)r[c]=a[c](l);return r}}function KA(t,e){const r={...t,...e},i={};for(const a in r)t[a]!==void 0&&e[a]!==void 0&&(i[a]=ch(t[a])(t[a],e[a]));return a=>{for(const l in i)r[l]=i[l](a);return r}}function QA(t,e){var r;const i=[],a={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const c=e.types[l],d=t.indexes[c][a[c]],h=(r=t.values[d])!==null&&r!==void 0?r:0;i[l]=h,a[c]++}return i}const GA=(t,e)=>{const r=_r.createTransformer(e),i=_o(t),a=_o(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?sf.has(t)&&!a.values.length||sf.has(e)&&!i.values.length?HA(t,e):Ho(Lx(QA(i,a),a.values),r):Ll(t,e)};function jx(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?We(t,e,r):ch(t)(t,e)}const YA=5;function Dx(t,e,r){const i=Math.max(e-YA,0);return lx(r-t(i),e-i)}const Ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hd=.001;function XA({duration:t=Ke.duration,bounce:e=Ke.bounce,velocity:r=Ke.velocity,mass:i=Ke.mass}){let a,l,c=1-e;c=$n(Ke.minDamping,Ke.maxDamping,c),t=$n(Ke.minDuration,Ke.maxDuration,zn(t)),c<1?(a=m=>{const g=m*c,y=g*t,w=g-r,T=of(m,c),k=Math.exp(-y);return hd-w/T*k}
vendor: 61,835 bytes, line 152
152,l=m=>{const y=m*c*t,w=y*r+r,T=Math.pow(c,2)*Math.pow(m,2)*t,k=Math.exp(-y),b=of(Math.pow(m,2),c);return(-a(m)+hd>0?-1:1)*((w-T)*k)/b}):(a=m=>{const g=Math.exp(-m*t),y=(m-r)*t+1;return-hd+g*y},l=m=>{const g=Math.exp(-m*t),y=(r-m)*(t*t);return g*y});const d=5/t,h=ZA(a,l,d);if(t=Un(t),isNaN(h))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:t};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:c*2*Math.sqrt(i*m),duration:t}}}const JA=12;function ZA(t,e,r){let i=r;for(let a=1;a<JA;a++)i=i-t(i)/e(i);return i}function of(t,e){return t*Math.sqrt(1-e*e)}const eO=["duration","bounce"],tO=["stiffness","damping","mass"];function qy(t,e){return e.some(r=>t[r]!==void 0)}function nO(t){let e={velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1,...t};if(!qy(t,tO)&&qy(t,eO))if(t.visualDuration){const r=t.visualDuration,i=2*Math.PI/(r*1.2),a=i*i,l=2*$n(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Ke.mass,stiffness:a,damping:l}}else{const r=XA(t);e={...e,...r,mass:Ke.mass},e.isResolvedFromDuration=!0}return e}function Mx(t=Ke.visualDuration,e=Ke.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=r;const l=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:m,mass:g,duration:y,velocity:w,isResolvedFromDuration:T}=nO({...r,velocity:-zn(r.velocity||0)}),k=w||0,b=m/(2*Math.sqrt(h*g)),x=c-l,A=zn(Math.sqrt(h/g)),V=Math.abs(x)<5;i||(i=V?Ke.restSpeed.granular:Ke.restSpeed.default),a||(a=V?Ke.restDelta.granular:Ke.restDelta.default);let L;if(b<1){const U=of(A,b);L=K=>{const G=Math.exp(-b*A*K);return c-G*((k+b*A*x)/U*Math.sin(U*K)+x*Math.cos(U*K))}}else if(b===1)L=U=>c-Math.exp(-A*U)*(x+(k+A*x)*U);else{const U=A*Math.sqrt(b*b-1);L=K=>{const G=Math.exp(-b*A*K),I=Math.min(U*K,300);return c-G*((k+b*A*x)*Math.sinh(I)+U*x*Math.cosh(I))/U}}const M={calculatedDuration:T&&y||null,next:U=>{const K=L(U);if(T)d.done=U>=y;else{let G=0;b<1&&(G=U===0?Un(k):Dx(L,U,K));const I=Math.abs(G)<=i,J=Math.abs(c-K)<=a;d.done=I&&J}return d.value=d.done?c:K,d},toString:()=>{const U=Math.min(ex(M),Xd),K=tx(G=>M.next(U*G).value,U,30);return U+"ms "+K}};return M}function Ky({keyframes:t,velocity:e=0,power:r=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:h,restDelta:m=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},T=I=>d!==void 0&&I<d||h!==void 0&&I>h,k=I=>d===void 0?h:h===void 0||Math.abs(d-I)<Math.abs(h-I)?d:h;let b=r*e;const x=y+b,A=c===void 0?x:c(x);A!==x&&(b=A-y);const V=I=>-b*Math.exp(-I/i),L=I=>A+V(I),M=I=>{const J=V(I),me=L(I);w.done=Math.abs(J)<=m,w.value=w.done?A:me};let U,K;const G=I=>{T(w.value)&&(U=I,K=Mx({keyframes:[w.value,k(w.value)],velocity:Dx(L,I,w.value),damping:a,stiffness:l,restDelta:m,restSpeed:g}))};return G(0),{calculatedDuration:null,next:I=>{let J=!1;return!K&&U===void 0&&(J=!0,M(I),G(I)),U!==void 0&&I>=U?K.next(I-U):(!J&&M(I),w)}}}const rO=Wo(.42,0,1,1),sO=Wo(0,0,.58,1),Ix=Wo(.42,0,.58,1),iO=t=>Array.isArray(t)&&typeof t[0]!="number",oO={linear:Bt,easeIn:rO,easeInOut:Ix,easeOut:sO,circIn:ih,circInOut:yx,circOut:gx,backIn:sh,backInOut:px,backOut:hx,anticipate:mx},Qy=t=>{if(Zf(t)){jw(t.length===4);const[e,r,i,a]=t;return Wo(e,r,i,a)}else if(typeof t=="string")return oO[t];return t};function aO(t,e,r){const i=[],a=r||jx,l=t.length-1;for(let c=0;c<l;c++){let d=a(t[c],t[c+1]);if(e){const h=Array.isArray(e)?e[c]||Bt:e;d=Ho(h,d)}i.push(d)}return i}function lO(t,e,{clamp:r=!0,ease:i,mixer:a}={}){const l=t.length;if(jw(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const c=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=aO(e,i,a),h=d.length,m=g=>{if(c&&g<t[0])return e[0];let y=0;if(h>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const w=oi(t[y],t[y+1],g);return d[y](w)};return r?g=>m($n(t[0],t[l-1],g)):m}function uO(t,e){const r=t[t.length-1];for(let i=1;i<=e;i++){const a=oi(0,e,i);t.push(We(r,1,a))}}function cO(t){const e=[0];return uO(e,t.length-1),e}function dO(t,e){return t.map(r=>r*e)}function fO(t,e){return t.map(()=>e||Ix).splice(0,t.length-1)}function jl({duration:t=300,keyframes:e,times:r,ease:i="easeInOut"}){const a=iO(i)?i.map(Qy):Qy(i),l={done:!1,value:e[0]},c=dO(r&&r.length===e.length?r:cO(e),t),d=lO(c,e,{ease:Array.isArray(a)?a:fO(e,a)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const hO=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Be.update(e,!0),stop:()=>Pr(e),now:()=>dt.isProcessing?dt.timestamp:Tn.now()}},pO={decay:Ky,inertia:Ky,tween:jl,keyframes:jl,spring:Mx},mO=t=>t/100;class dh extends Nx{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:r,motionValue:i,element:a,keyframes:l}=this.options,c=(a==null?void 0:a.KeyframeResolver)||uh,d=(h,m)=>this.onKeyframesResolved(h,m);this.resolver=new c(l,d,r,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=this.options,d=Jf(r)?r:pO[r]||jl;let h,m;d!==jl&&typeof e[0]!="number"&&(h=Ho(mO,jx(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(m=d({...this.options,keyframes:[...e].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=ex(g));const{calculatedDuration:y}=g,w=y+a,T=w*(i+1)-a;return{generator:g,mirroredGenerator:m,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:w,totalDuration:T}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,r=!1){const{resolved:i}=this;if(!i){const{keyframes:I}=this.options;return{done:!0,value:I[I.length-1]}}const{finalKeyframe:a,generator:l,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:m,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:T,repeatType:k,repeatDelay:b,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),r?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const A=this.currentTime-w*(this.speed>=0?1:-1),V=this.speed>=0?A<0:A>g;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let L=this.currentTime,M=l;if(T){const I=Math.min(this.currentTime,g)/y;let J=Math.floor(I),me=I%1;!me&&I>=1&&(me=1),me===1&&J--,J=Math.min(J,T+1),!!(J%2)&&(k==="reverse"?(me=1-me,b&&(me-=b/y)):k==="mirror"&&(M=c)),L=$n(0,1,me)*y}const U=V?{done:!1,value:h[0]}:M.next(L);d&&(U.value=d(U.value));let{done:K}=U;!V&&m!==null&&(K=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&K);return G&&a!==void 0&&(U.value=Yl(h,this.options,a)),x&&x(U.value),G&&this.finish(),U}get duration(){const{resolved:e}=this;return e?zn(e.calculatedDuration):0}get time(){return zn(this.currentTime)}set time(e){e=Un(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=hO,onPlay:r,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),r&&r();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const gO=new Set(["opacity","clipPath","filter","transform"]);function yO(t,e,r,{delay:i=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeInOut",times:h}={}){const m={[e]:r};h&&(m.offset=h);const g=rx(d,a);return Array.isArray(g)&&(m.easing=g),t.animate(m,{delay:i,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const vO=If(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Dl=10,wO=2e4;function xO(t){return Jf(t.type)||t.type==="spring"||!nx(t.ease)}function SO(t,e){const r=new dh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const a=[];let l=0;for(;!i.done&&l<wO;)i=r.sample(l),a.push(i.value),l+=Dl;return{times:void 0,keyframes:a,duration:l-Dl,ease:"linear"}}const Fx={anticipate:mx,backInOut:px,circInOut:yx};function bO(t){return t in Fx}class Gy extends Nx{constructor(e){super(e);const{name:r,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new Ox(l,(c,d)=>this.onKeyframesResolved(c,d),r,i,a),this.resolver.scheduleResolve()}initPlayback(e,r){let{duration:i=300,times:a,ease:l,type:c,motionValue:d,name:h,startTime:m}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&Nl()&&bO(l)&&(l=Fx[l]),xO(this.options)){const{onComplete:y,onUpdate:w,motionValue:T,element:k,...b}=this.options,x=SO(e,b);e=x.keyframes,e.length===1&&(e[1]=e[0]),i=x.duration,a=x.times,l=x.ease,c="keyframes"}const g=yO(d.owner.current,h,e,{...this.options,duration:i,times:a,ease:l});return g.startTime=m??this.calcStartTime(),this.pendingTimeline?(Ly(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(Yl(e,this.options,r)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:a,type:c,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:r}=e;return zn(r)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:r}=e;return zn(r.currentTime||0)}set time(e){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.currentTime=Un(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:r}=e;return r.playbackRate}set speed(e){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:r}=e;return r.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:r}=e;return r.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:r}=this;if(!r)return Bt;const{animation:i}=r;Ly(i,e)}return Bt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:r}=e;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:r}=e;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:r,keyframes:i,duration:a,type:l,ease:c,times:d}=e;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:g,onComplete:y,element:w,...T}=this.options,k=new dh({...T,keyframes:i,duration:a,type:l,ease:c,times:d,isGenerator:!0}),b=Un(this.time);m.setWithVelocity(k.sample(b-Dl).value,k.sample(b).value,Dl)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:r,name:i,repeatDelay:a,repeatType:l,damping:c,type:d}=e;if(!r||!r.owner||!(r.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=r.owner.getProps();return vO()&&i&&gO.has(i)&&!h&&!m&&!a&&l!=="mirror"&&c!==0&&d!=="inertia"}}const kO={type:"spring",stiffness:500,damping:25,restSpeed:10},EO=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),TO={type:"keyframes",duration:.8},CO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PO=(t,{keyframes:e})=>e.length>2?TO:ms.has(t)?t.startsWith("scale")?EO(e[1]):kO:CO;function _O({when:t,delay:e,delayChildren:r,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:c,repeatDelay:d,from:h,elapsed:m,...g}){return!!Object.keys(g).length}const fh=(t,e,r,i={},a,l)=>c=>{const d=Xf(i,t)||{},h=d.delay||i.delay||0;let{elapsed:m=0}=i;m=m-Un(h);let g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-m,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};_O(d)||(g={...g,...PO(t,g)}),g.duration&&(g.duration=Un(g.duration)),g.repeatDelay&&(g.repeatDelay=Un(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const w=Yl(g.keyframes,d);if(w!==void 0)return Be.update(()=>{g.onUpdate(w),g.onComplete()}),new KR([])}return!l&&Gy.supports(g)?new Gy(g):new dh(g)};function RO({protectedKeys:t,needsAnimating:e},r){const i=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,i}function Vx(t,e,{delay:r=0,transitionOverride:i,type:a}={}){var l;let{transition:c=t.getDefaultTransition(),transitionEnd:d,...h}=e;i&&(c=i);const m=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const y in h){const w=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),T=h[y];if(T===void 0||g&&RO(g,y))continue;const k={delay:r,...Xf(c||{},y)};let b=!1;if(window.MotionHandoffAnimation){const A=ux(t);if(A){const V=window.MotionHandoffAnimation(A,y,Be);V!==null&&(k.startTime=V,b=!0)}}Zd(t,y),w.start(fh(y,w,T,t.shouldReduceMotion&&ax.has(y)?{type:!1}:k,t,b));const x=w.animation;x&&m.push(x)}return d&&Promise.all(m).then(()=>{Be.update(()=>{d&&aA(t,d)})}),m}function af(t,e,r={}){var i;const a=Gl(t,e,r.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(l=r.transitionOverride);const c=a?()=>Promise.all(Vx(t,a,r)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=l;return AO(t,e,g+m,y,w,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,g]=h==="beforeChildren"?[c,d]:[d,c];return m().then(()=>g())}else return Promise.all([c(),d(r.delay)])}function AO(t,e,r=0,i=0,a=1,l){const c=[],d=(t.variantChildren.size-1)*i,h=a===1?(m=0)=>m*i:(m=0)=>d-m*i;return Array.from(t.variantChildren).sort(OO).forEach((m,g)=>{m.notify("AnimationStart",e),c.push(af(m,e,{...l,delay:r+h(g)}).then(()=>m.notify("AnimationComplete",e)))}),Promise.all(c)}function OO(t,e){return t.sortNodePosition(e)}function NO(t,e,r={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>af(t,l,r));i=Promise.all(a)}else if(typeof e=="string")i=af(t,e,r);else{const a=typeof e=="function"?Gl(t,e,r.custom):e;i=Promise.all(Vx(t,a,r))}return i.then(()=>{t.notify("AnimationComplete",e)})}const LO=Vf.length;function Bx(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?Bx(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;r<LO;r++){const i=Vf[r],a=t.props[i];(To(a)||a===!1)&&(e[i]=a)}return e}const jO=[...Ff].reverse(),DO=Ff.length;function MO(t){return e=>Promise.all(e.map(({animation:r,options:i})=>NO(t,r,i)))}function IO(t){let e=MO(t),r=Yy(),i=!0;const a=h=>(m,g)=>{var y;const w=Gl(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(w){const{transition:T,transitionEnd:k,...b}=w;m={...m,...b,...k}}return m};function l(h){e=h(t)}function c(h){const{props:m}=t,g=Bx(t.parent)||{},y=[],w=new Set;let T={},k=1/0;for(let x=0;x<DO;x++){const A=jO[x],V=r[A],L=m[A]!==void 0?m[A]:g[A],M=To(L),U=A===h?V.isActive:null;U===!1&&(k=x);let K=L===g[A]&&L!==m[A]&&M;if(K&&i&&t.manuallyAnimateOnMount&&(K=!1),V.protectedKeys={...T},!V.isActive&&U===null||!L&&!V.prevProp||Kl(L)||typeof L=="boolean")continue;const G=FO(V.prevProp,L);let I=G||A===h&&V.isActive&&!K&&M||x>k&&M,J=!1;const me=Array.isArray(L)?L:[L];let de=me.reduce(a(A),{});U===!1&&(de={});const{prevResolvedValues:Ce={}}=V,je={...Ce,...de},Ae=fe=>{I=!0,w.has(fe)&&(J=!0,w.delete(fe)),V.needsAnimating[fe]=!0;const q=t.getValue(fe);q&&(q.liveStyle=!1)};for(const fe in je){const q=de[fe],se=Ce[fe];if(T.hasOwnProperty(fe))continue;let B=!1;Yd(q)&&Yd(se)?B=!Zw(q,se):B=q!==se,B?q!=null?Ae(fe):w.add(fe):q!==void 0&&w.has(fe)?Ae(fe):V.protectedKeys[fe]=!0}V.prevProp=L,V.prevResolvedValues=de,V.isActive&&(T={...T,...de}),i&&t.blockInitialAnimation&&(I=!1),I&&(!(K&&G)||J)&&y.push(...me.map(fe=>({animation:fe,options:{type:A}})))}if(w.size){const x={};w.forEach(A=>{const V=t.getBaseTarget(A),L=t.getValue(A);L&&(L.liveStyle=!0),x[A]=V??null}),y.push({animation:x})}let b=!!y.length;return i&&(m.initial===!1||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(y):Promise.resolve()}function d(h,m){var g;if(r[h].isActive===m)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(w=>{var T;return(T=w.animationState)===null||T===void 0?void 0:T.setActive(h,m)}),r[h].isActive=m;const y=c(h);for(const w in r)r[w].protectedKeys={};return y}return{animateChanges:c,setActive:d,setAnimateFunction:l,getState:()=>r,reset:()=>{r=Yy(),i=!0}}}function FO(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Zw(e,t):!1}function Kr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yy(){return{animate:Kr(!0),whileInView:Kr(),whileHover:Kr(),whileTap:Kr(),whileDrag:Kr(),whileFocus:Kr(),exit:Kr()}}class Or{constructor(e){this.isMounted=!1,this.node=e}update(){}}class VO extends Or{constructor(e){super(e),e.animationState||(e.animationState=IO(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Kl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let BO=0;class UO extends Or{constructor(){super(...arguments),this.id=BO++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);r&&!e&&a.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const zO={animation:{Feature:VO},exit:{Feature:UO}};function Ro(t,e,r,i={passive:!0}){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r)}function qo(t){return{point:{x:t.pageX,y:t.pageY}}}const $O=t=>e=>eh(e)&&t(e,qo(e));function yo(t,e,r,i){return Ro(t,e,$O(r),i)}const Xy=(t,e)=>Math.abs(t-e);function WO(t,e){const r=Xy(t.x,e.x),i=Xy(t.y,e.y);return Math.sqrt(r**2+i**2)}class Ux{constructor(e,r,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=md(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,T=WO(y.offset,{x:0,y:0})>=3;if(!w&&!T)return;const{point:k}=y,{timestamp:b}=dt;this.history.push({...k,timestamp:b});const{onStart:x,onMove:A}=this.handlers;w||(x&&x(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=pd(w,this.transformPagePoint),Be.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:T,onSessionEnd:k,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=md(y.type==="pointercancel"?this.lastMoveEventInfo:pd(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(y,x),k&&k(y,x)},!eh(e))return;this.dragSnapToOrigin=l,this.handlers=r,this.transformPagePoint=i,this.contextWindow=a||window;const c=qo(e),d=pd(c,this.transformPagePoint),{point:h}=d,{timestamp:m}=dt;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=r;g&&g(e,md(d,this.history)),this.removeListeners=Ho(yo(this.contextWindow,"pointermove",this.handlePointerMove),yo(this.contextWindow,"pointerup",this.handlePointerUp),yo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Pr(this.updatePoint)}}function pd(t,e){return e?{point:e(t.point)}:t}function Jy(t,e){return{x:t.x-e.x,y:t.y-e.y}}function md({point:t},e){return{point:t,delta:Jy(t,zx(e)),offset:Jy(t,HO(e)),velocity:qO(e,.1)}}function HO(t){return t[0]}function zx(t){return t[t.length-1]}function qO(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null;const a=zx(t);for(;r>=0&&(i=t[r],!(a.timestamp-i.timestamp>Un(e)));)r--;if(!i)return{x:0,y:0};const l=zn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const $x=1e-4,KO=1-$x,QO=1+$x,Wx=.01,GO=0-Wx,YO=0+Wx;function zt(t){return t.max-t.min}function XO(t,e,r){return Math.abs(t-e)<=r}function Zy(t,e,r,i=.5){t.origin=i,t.originPoint=We(e.min,e.max,t.origin),t.scale=zt(r)/zt(e),t.translate=We(r.min,r.max,t.origin)-t.originPoint,(t.scale>=KO&&t.scale<=QO||isNaN(t.scale))&&(t.scale=1),(t.translate>=GO&&t.translate<=YO||isNaN(t.translate))&&(t.translate=0)}function vo(t,e,r,i){Zy(t.x,e.x,r.x,i?i.originX:void 0),Zy(t.y,e.y,r.y,i?i.originY:void 0)}function ev(t,e,r){t.min=r.min+e.min,t.max=t.min+zt(e)}function JO(t,e,r){ev(t.x,e.x,r.x),ev(t.y,e.y,r.y)}function tv(t,e,r){t.min=e.min-r.min,t.max=t.min+zt(e)}function wo(t,e,r){tv(t.x,e.x,r.x),tv(t.y,e.y,r.y)}function ZO(t,{min:e,max:r},i){return e!==void 0&&t<e?t=i?We(e,t,i.min):Math.max(t,e):r!==void 0&&t>r&&(t=i?We(r,t,i.max):Math.min(t,r)),t}function nv(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function eN(t,{top:e,left:r,bottom:i,right:a}){return{x:nv(t.x,r,a),y:nv(t.y,e,i)}}function rv(t,e){let r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function tN(t,e){return{x:rv(t.x,e.x),y:rv(t.y,e.y)}}function nN(t,e){let r=.5;const i=zt(t),a=zt(e);return a>i?r=oi(e.min,e.max-i,t.min):i>a&&(r=oi(t.min,t.max-a,e.min)),$n(0,1,r)}function rN(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const lf=.35;function sN(t=lf){return t===!1?t=0:t===!0&&(t=lf),{x:sv(t,"left","right"),y:sv(t,"top","bottom")}}function sv(t,e,r){return{min:iv(t,e),max:iv(t,r)}}function iv(t,e){return typeof t=="number"?t:t[e]||0}const ov=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ws=()=>({x:ov(),y:ov()}),av=()=>({min:0,max:0}),Ye=()=>({x:av(),y:av()});function Xt(t){return[t("x"),t("y")]}function Hx({top:t,left:e,right:r,bottom:i}){return{x:{min:e,max:r},y:{min:t,max:i}}}function iN({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function oN(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function gd(t){return t===void 0||t===1}function uf({scale:t,scaleX:e,scaleY:r}){return!gd(t)||!gd(e)||!gd(r)}function Gr(t){return uf(t)||qx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function qx(t){return lv(t.x)||lv(t.y)}function lv(t){return t&&t!=="0%"}function Ml(t,e,r){const i=t-r,a=e*i;return r+a}function uv(t,e,r,i,a){return a!==void 0&&(t=Ml(t,a,i)),Ml(t,r,i)+e}function cf(t,e=0,r=1,i,a){t.min=uv(t.min,e,r,i,a),t.max=uv(t.max,e,r,i,a)}function Kx(t,{x:e,y:r}){cf(t.x,e.translate,e.scale,e.originPoint),cf(t.y,r.translate,r.scale,r.originPoint)}const cv=.999999999999,dv=1.0000000000001;function aN(t,e,r,i=!1){const a=r.length;if(!a)return;e.x=e.y=1;let l,c;for(let d=0;d<a;d++){l=r[d],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&qs(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,Kx(t,c)),i&&Gr(l.latestValues)&&qs(t,l.latestValues))}e.x<dv&&e.x>cv&&(e.x=1),e.y<dv&&e.y>cv&&(e.y=1)}function Hs(t,e){t.min=t.min+e,t.max=t.max+e}function fv(t,e,r,i,a=.5){const l=We(t.min,t.max,a);cf(t,e,r,l,i)}function qs(t,e){fv(t.x,e.x,e.scaleX,e.scale,e.originX),fv(t.y,e.y,e.scaleY,e.scale,e.originY)}function Qx(t,e){return Hx(oN(t.getBoundingClientRect(),e))}function lN(t,e,r){const i=Qx(t,r),{scroll:a}=e;return a&&(Hs(i.x,a.offset.x),Hs(i.y,a.offset.y)),i}const Gx=({current:t})=>t?t.ownerDocument.defaultView:null,uN=new WeakMap;class cN{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ye(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(qo(g).point)},l=(g,y)=>{const{drag:w,dragPropagation:T,onDragStart:k}=this.getProps();if(w&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nA(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xt(x=>{let A=this.getAxisMotionValue(x).get()||0;if(En.test(A)){const{projection:V}=this.visualElement;if(V&&V.layout){const L=V.layout.layoutBox[x];L&&(A=zt(L)*(parseFloat(A)/100))}}this.originPoint[x]=A}),k&&Be.postRender(()=>k(g,y)),Zd(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(g,y)=>{const{dragPropagation:w,dragDirectionLock:T,onDirectionLock:k,onDrag:b}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:x}=y;if(T&&this.currentDirection===null){this.currentDirection=dN(x),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",y.point,x),this.updateAxis("y",y.point,x),this.visualElement.render(),b&&b(g,y)},d=(g,y)=>this.stop(g,y),h=()=>Xt(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Ux(e,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Gx(this.visualElement)})}stop(e,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&Be.postRender(()=>l(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,i){const{drag:a}=this.getProps();if(!i||!dl(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let c=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(c=ZO(c,this.constraints[e],this.elastic[e])),l.set(c)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;r&&zs(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=eN(a.layoutBox,r):this.constraints=!1,this.elastic=sN(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Xt(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=rN(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!zs(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=lN(i,a.root,this.visualElement.getTransformPagePoint());let c=tN(a.layout.layoutBox,l);if(r){const d=r(iN(c));this.hasMutatedConstraints=!!d,d&&(c=Hx(d))}return c}startAnimation(e){const{drag:r,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},m=Xt(g=>{if(!dl(g,r,this.currentDirection))return;let y=h&&h[g]||{};c&&(y={min:0,max:0});const w=a?200:1e6,T=a?40:1e7,k={type:"inertia",velocity:i?e[g]:0,bounceStiffness:w,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,k)});return Promise.all(m).then(d)}startAxisValueAnimation(e,r){const i=this.getAxisMotionValue(e);return Zd(this.visualElement,e),i.start(fh(e,i,0,r,this.visualElement,!1))}stopAnimation(){Xt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Xt(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[r];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Xt(r=>{const{drag:i}=this.getProps();if(!dl(r,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(r);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[r];l.set(e[r]-We(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!zs(r)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Xt(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();a[c]=nN({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Xt(c=>{if(!dl(c,e,null))return;const d=this.getAxisMotionValue(c),{min:h,max:m}=this.constraints[c];d.set(We(h,m,a[c]))})}addListeners(){if(!this.visualElement.current)return;uN.set(this.visualElement,this);const e=this.visualElement.current,r=yo(e,"pointerdown",h=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();zs(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Be.read(i);const c=Ro(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Xt(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{c(),r(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=lf,dragMomentum:d=!0}=e;return{...e,drag:r,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function dl(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function dN(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class fN extends Or{constructor(e){super(e),this.removeGroupControls=Bt,this.removeListeners=Bt,this.controls=new cN(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const hv=t=>(e,r)=>{t&&Be.postRender(()=>t(e,r))};class hN extends Or{constructor(){super(...arguments),this.removePointerDownListener=Bt}onPointerDown(e){this.session=new Ux(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gx(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:hv(e),onStart:hv(r),onMove:i,onEnd:(l,c)=>{delete this.session,a&&Be.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=yo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Tl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const so={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ce.test(t))t=parseFloat(t);else return t;const r=pv(t,e.target.x),i=pv(t,e.target.y);return`${r}% ${i}%`}},pN={correct:(t,{treeScale:e,projectionDelta:r})=>{const i=t,a=_r.parse(t);if(a.length>5)return i;const l=_r.createTransformer(t),c=typeof a[0]!="number"?1:0,d=r.x.scale*e.x,h=r.y.scale*e.y;a[0+c]/=d,a[1+c]/=h;const m=We(d,h,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),l(a)}};class mN extends O.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;DR(gN),l&&(r.group&&r.group.add(l),i&&i.register&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Tl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:i,drag:a,isPresent:l}=this.props,c=i.projection;return c&&(c.isPresent=l,a||e.layoutDependency!==r||r===void 0?c.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?c.promote():c.relegate()||Be.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Uf.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Yx(t){const[e,r]=Y_(),i=O.useContext(Nw);return S.jsx(mN,{...t,layoutGroup:i,switchLayoutGroup:O.useContext(Bw),isPresent:e,safeToRemove:r})}const gN={borderRadius:{...so,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:so,borderTopRightRadius:so,borderBottomLeftRadius:so,borderBottomRightRadius:so,boxShadow:pN};function yN(t,e,r){const i=St(t)?t:Po(t);return i.start(fh("",i,e,r)),i.animation}function vN(t){return t instanceof SVGElement&&t.tagName!=="svg"}const wN=(t,e)=>t.depth-e.depth;class xN{constructor(){this.children=[],this.isDirty=!1}add(e){th(this.children,e),this.isDirty=!0}remove(e){nh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(wN),this.isDirty=!1,this.children.forEach(e)}}function SN(t,e){const r=Tn.now(),i=({timestamp:a})=>{const l=a-r;l>=e&&(Pr(i),t(l-e))};return Be.read(i,!0),()=>Pr(i)}const Xx=["TopLeft","TopRight","BottomLeft","BottomRight"],bN=Xx.length,mv=t=>typeof t=="string"?parseFloat(t):t,gv=t=>typeof t=="number"||ce.test(t);function kN(t,e,r,i,a,l){a?(t.opacity=We(0,r.opacity!==void 0?r.opacity:1,EN(i)),t.opacityExit=We(e.opacity!==void 0?e.opacity:1,0,TN(i))):l&&(t.opacity=We(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let c=0;c<bN;c++){const d=`border${Xx[c]}Radius`;let h=yv(e,d),m=yv(r,d);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||gv(h)===gv(m)?(t[d]=Math.max(We(mv(h),mv(m),i),0),(En.test(m)||En.test(h))&&(t[d]+="%")):t[d]=m}(e.rotate||r.rotate)&&(t.rotate=We(e.rotate||0,r.rotate||0,i))}function yv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const EN=Jx(0,.5,gx),TN=Jx(.5,.95,Bt);function Jx(t,e,r){return i=>i<t?0:i>e?1:r(oi(t,e,i))}function vv(t,e){t.min=e.min,t.max=e.max}function Yt(t,e){vv(t.x,e.x),vv(t.y,e.y)}function wv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function xv(t,e,r,i,a){return t-=e,t=Ml(t,1/r,i),a!==void 0&&(t=Ml(t,1/a,i)),t}function CN(t,e=0,r=1,i=.5,a,l=t,c=t){if(En.test(e)&&(e=parseFloat(e),e=We(c.min,c.max,e/100)-c.min),typeof e!="number")return;let d=We(l.min,l.max,i);t===l&&(d-=e),t.min=xv(t.min,e,r,d,a),t.max=xv(t.max,e,r,d,a)}function Sv(t,e,[r,i,a],l,c){CN(t,e[r],e[i],e[a],e.scale,l,c)}const PN=["x","scaleX","originX"],_N=["y","scaleY","originY"];function bv(t,e,r,i){Sv(t.x,e,PN,r?r.x:void 0,i?i.x:void 0),Sv(t.y,e,_N,r?r.y:void 0,i?i.y:void 0)}function kv(t){return t.translate===0&&t.scale===1}function Zx(t){return kv(t.x)&&kv(t.y)}function Ev(t,e){return t.min===e.min&&t.max===e.max}function RN(t,e){return Ev(t.x,e.x)&&Ev(t.y,e.y)}function Tv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eS(t,e){return Tv(t.x,e.x)&&Tv(t.y,e.y)}function Cv(t){return zt(t.x)/zt(t.y)}function Pv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class AN{constructor(){this.members=[]}add(e){th(this.members,e),e.scheduleRender()}remove(e){if(nh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let i;for(let a=r;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,r){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,r&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:i}=e;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ON(t,e,r){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,c=(r==null?void 0:r.z)||0;if((a||l||c)&&(i=`translate3d(${a}px, ${l}px, ${c}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:m,rotate:g,rotateX:y,rotateY:w,skewX:T,skewY:k}=r;m&&(i=`perspective(${m}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),T&&(i+=`skewX(${T}deg) `),k&&(i+=`skewY(${k}deg) `)}const d=t.x.scale*e.x,h=t.y.scale*e.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const Yr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ho=typeof window<"u"&&window.MotionDebug!==void 0,yd=["","X","Y","Z"],NN={visibility:"hidden"},_v=1e3;let LN=0;function vd(t,e,r,i){const{latestValues:a}=e;a[t]&&(r[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function tS(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=ux(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",Be,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&tS(i)}function nS({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(c={},d=e==null?void 0:e()){this.id=LN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ho&&(Yr.totalNodes=Yr.resolvedTargetDeltas=Yr.recalculatedProjection=0),this.nodes.forEach(MN),this.nodes.forEach(UN),this.nodes.forEach(zN),this.nodes.forEach(IN),ho&&window.MotionDebug.record(Yr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new xN)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new rh),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vN(c),this.instance=c;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||h)&&(this.isLayoutDirty=!0),t){let y;const w=()=>this.root.updateBlockedByResize=!1;t(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=SN(w,250),Tl.hasAnimatedSinceResize&&(Tl.hasAnimatedSinceResize=!1,this.nodes.forEach(Av))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:T,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||g.getDefaultTransition()||KN,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=g.getProps(),V=!this.targetLayout||!eS(this.targetLayout,k)||T,L=!w&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||L||w&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,L);const M={...Xf(b,"layout"),onPlay:x,onComplete:A};(g.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else w||Av(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($N),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Rv);return}this.isUpdating||this.nodes.forEach(VN),this.isUpdating=!1,this.nodes.forEach(BN),this.nodes.forEach(jN),this.nodes.forEach(DN),this.clearAllSnapshots();const d=Tn.now();dt.delta=$n(0,1e3/60,d-dt.timestamp),dt.timestamp=d,dt.isProcessing=!0,ld.update.process(dt),ld.preRender.process(dt),ld.render.process(dt),dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Uf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(FN),this.sharedNodes.forEach(WN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ye(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Zx(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;c&&(d||Gr(this.latestValues)||g)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),QN(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return Ye();const h=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(GN))){const{scroll:g}=this.root;g&&(Hs(h.x,g.offset.x),Hs(h.y,g.offset.y))}return h}removeElementScroll(c){var d;const h=Ye();if(Yt(h,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:y,options:w}=g;g!==this.root&&y&&w.layoutScroll&&(y.wasRoot&&Yt(h,c),Hs(h.x,y.offset.x),Hs(h.y,y.offset.y))}return h}applyTransform(c,d=!1){const h=Ye();Yt(h,c);for(let m=0;m<this.path.length;m++){const g=this.path[m];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&qs(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Gr(g.latestValues)&&qs(h,g.latestValues)}return Gr(this.latestValues)&&qs(h,this.latestValues),h}removeTransform(c){const d=Ye();Yt(d,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Gr(m.latestValues))continue;uf(m.latestValues)&&m.updateSnapshot();const g=Ye(),y=m.measurePageBox();Yt(g,y),bv(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return Gr(this.latestValues)&&bv(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!(!this.layout||!(y||w))){if(this.resolvedRelativeTargetAt=dt.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),wo(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ye(),this.targetWithTransforms=Ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yt(this.target,this.layout.layoutBox),Kx(this.target,this.targetDelta)):Yt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),wo(this.relativeTargetOrigin,this.target,T.target),Yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ho&&Yr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||uf(this.parent.latestValues)||qx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===dt.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;Yt(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,T=this.treeScale.y;aN(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ye());const{target:k}=d;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(wv(this.prevProjectionDelta.x,this.projectionDelta.x),wv(this.prevProjectionDelta.y,this.projectionDelta.y)),vo(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==T||!Pv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k)),ho&&Yr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ws(),this.projectionDelta=Ws(),this.projectionDeltaWithTransform=Ws()}setAnimationOrigin(c,d=!1){const h=this.snapshot,m=h?h.latestValues:{},g={...this.latestValues},y=Ws();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=Ye(),T=h?h.source:void 0,k=this.layout?this.layout.source:void 0,b=T!==k,x=this.getStack(),A=!x||x.members.length<=1,V=!!(b&&!A&&this.options.crossfade===!0&&!this.path.some(qN));this.animationProgress=0;let L;this.mixTargetDelta=M=>{const U=M/1e3;Ov(y.x,c.x,U),Ov(y.y,c.y,U),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),HN(this.relativeTarget,this.relativeTargetOrigin,w,U),L&&RN(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=Ye()),Yt(L,this.relativeTarget)),b&&(this.animationValues=g,kN(g,m,this.latestValues,U,V,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Be.update(()=>{Tl.hasAnimatedSinceResize=!0,this.currentAnimation=yN(0,_v,{...c,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_v),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:m,latestValues:g}=c;if(!(!d||!h||!m)){if(this!==c&&this.layout&&m&&rS(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Ye();const y=zt(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const w=zt(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+w}Yt(d,h),qs(d,g),vo(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new AN),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:d}=this.options;return d?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:d}=this.options;return d?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const m={};h.z&&vd("z",c,m,this.animationValues);for(let g=0;g<yd.length;g++)vd(`rotate${yd[g]}`,c,m,this.animationValues),vd(`skew${yd[g]}`,c,m,this.animationValues);c.render();for(const g in m)c.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);c.scheduleRender()}getProjectionStyles(c){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return NN;const m={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=kl(c==null?void 0:c.pointerEvents)||"",m.transform=g?g(this.latestValues,""):"none",m;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=kl(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Gr(this.latestValues)&&(b.transform=g?g({},""):"none",this.hasProjected=!1),b}const w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),m.transform=ON(this.projectionDeltaWithTransform,this.treeScale,w),g&&(m.transform=g(w,m.transform));const{x:T,y:k}=this.projectionDelta;m.transformOrigin=`${T.origin*100}% ${k.origin*100}% 0`,y.animationValues?m.opacity=y===this?(h=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:m.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const b in Ol){if(w[b]===void 0)continue;const{correct:x,applyTo:A}=Ol[b],V=m.transform==="none"?w[b]:x(w[b],y);if(A){const L=A.length;for(let M=0;M<L;M++)m[A[M]]=V}else m[b]=V}return this.options.layoutId&&(m.pointerEvents=y===this?kl(c==null?void 0:c.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Rv),this.root.sharedNodes.clear()}}}function jN(t){t.updateLayout()}function DN(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,c=r.source!==t.layout.source;l==="size"?Xt(y=>{const w=c?r.measuredBox[y]:r.layoutBox[y],T=zt(w);w.min=i[y].min,w.max=w.min+T}):rS(l,r.layoutBox,i)&&Xt(y=>{const w=c?r.measuredBox[y]:r.layoutBox[y],T=zt(i[y]);w.max=w.min+T,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+T)});const d=Ws();vo(d,i,r.layoutBox);const h=Ws();c?vo(h,t.applyTransform(a,!0),r.measuredBox):vo(h,i,r.layoutBox);const m=!Zx(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:T}=y;if(w&&T){const k=Ye();wo(k,r.layoutBox,w.layoutBox);const b=Ye();wo(b,i,T.layoutBox),eS(k,b)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=k,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function MN(t){ho&&Yr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function IN(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function FN(t){t.clearSnapshot()}function Rv(t){t.clearMeasurements()}function VN(t){t.isLayoutDirty=!1}function BN(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Av(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function UN(t){t.resolveTargetDelta()}function zN(t){t.calcProjection()}
vendor: 6,595 bytes, line 152
152function $N(t){t.resetSkewAndRotation()}function WN(t){t.removeLeadSnapshot()}function Ov(t,e,r){t.translate=We(e.translate,0,r),t.scale=We(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Nv(t,e,r,i){t.min=We(e.min,r.min,i),t.max=We(e.max,r.max,i)}function HN(t,e,r,i){Nv(t.x,e.x,r.x,i),Nv(t.y,e.y,r.y,i)}function qN(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const KN={duration:.45,ease:[.4,0,.1,1]},Lv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),jv=Lv("applewebkit/")&&!Lv("chrome/")?Math.round:Bt;function Dv(t){t.min=jv(t.min),t.max=jv(t.max)}function QN(t){Dv(t.x),Dv(t.y)}function rS(t,e,r){return t==="position"||t==="preserve-aspect"&&!XO(Cv(e),Cv(r),.2)}function GN(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const YN=nS({attachResizeListener:(t,e)=>Ro(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},sS=nS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!wd.current){const t=new YN({});t.mount(window),t.setOptions({layoutScroll:!0}),wd.current=t}return wd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),XN={pan:{Feature:hN},drag:{Feature:fN,ProjectionNode:sS,MeasureLayout:Yx}};function Mv(t,e,r){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,l=i[a];l&&Be.postRender(()=>l(e,qo(e)))}class JN extends Or{mount(){const{current:e}=this.node;e&&(this.unmount=XR(e,r=>(Mv(this.node,r,"Start"),i=>Mv(this.node,i,"End"))))}unmount(){}}class ZN extends Or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ho(Ro(this.node.current,"focus",()=>this.onFocus()),Ro(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Iv(t,e,r){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),l=i[a];l&&Be.postRender(()=>l(e,qo(e)))}class e2 extends Or{mount(){const{current:e}=this.node;e&&(this.unmount=tA(e,r=>(Iv(this.node,r,"Start"),(i,{success:a})=>Iv(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const df=new WeakMap,xd=new WeakMap,t2=t=>{const e=df.get(t.target);e&&e(t)},n2=t=>{t.forEach(t2)};function r2({root:t,...e}){const r=t||document;xd.has(r)||xd.set(r,{});const i=xd.get(r),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(n2,{root:t,...e})),i[a]}function s2(t,e,r){const i=r2(e);return df.set(t,r),i.observe(t),()=>{df.delete(t),i.unobserve(t)}}const i2={some:0,all:1};class o2 extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:l}=e,c={root:r?r.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:i2[a]},d=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=m?g:y;w&&w(h)};return s2(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(a2(e,r))&&this.startObserver()}unmount(){}}function a2({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const l2={inView:{Feature:o2},tap:{Feature:e2},focus:{Feature:ZN},hover:{Feature:JN}},u2={layout:{ProjectionNode:sS,MeasureLayout:Yx}},ff={current:null},iS={current:!1};function c2(){if(iS.current=!0,!!Mf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ff.current=t.matches;t.addListener(e),e()}else ff.current=!1}const d2=[...Ax,wt,_r],f2=t=>d2.find(Rx(t)),Fv=new WeakMap;function h2(t,e,r){for(const i in e){const a=e[i],l=r[i];if(St(a))t.addValue(i,a);else if(St(l))t.addValue(i,Po(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const c=t.getValue(i);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=t.getStaticValue(i);t.addValue(i,Po(c!==void 0?c:a,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Vv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class p2{scrapeMotionValuesFromProps(e,r,i){return{}}constructor({parent:e,props:r,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=uh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=Tn.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Be.render(this.render,!1,!0))};const{latestValues:h,renderState:m,onUpdate:g}=c;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=r.initial?{...h}:{},this.renderState=m,this.parent=e,this.props=r,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Ql(r),this.isVariantNode=Fw(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...w}=this.scrapeMotionValuesFromProps(r,{},this);for(const T in w){const k=w[T];h[T]!==void 0&&St(k)&&k.set(h[T],!1)}}mount(e){this.current=e,Fv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,235 bytes, line 152
152h((r,i)=>this.bindToMotionValue(i,r)),iS.current||c2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ff.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Fv.delete(this.current),this.projection&&this.projection.unmount(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=ms.has(e),a=r.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&Be.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=r.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{a(),l(),c&&c(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ai){const r=ai[e];if(!r)continue;const{isEnabled:i,Feature:a}=r;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ye()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<Vv.length;i++){const a=Vv[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=e[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=h2(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){const i=this.values.get(e);r!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&r!==void 0&&(i=Po(r===null?void 0:r,{owner:this}),this.addValue(e,i)),i}readValue(e,r){var i;let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(Px(a)||vx(a))?a=parseFloat(a):!f2(a)&&_r.test(r)&&(a=Ex(e,r)),this.setBaseTarget(e,St(a)?a.get():a)),St(a)?a.get():a}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const c=$f(this.props,i,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);c&&(a=c[e])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!St(l)?l:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new rh),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class oS extends p2{constructor(){super(...arguments),this.KeyframeResolver=Ox}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:i}){delete r[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;St(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function m2(t){return window.getComputedStyle(t)}class g2 extends oS{constructor(){super(...arguments),this.type="html",this.renderInstance=Kw}readValueFromInstance(e,r){if(ms.has(r)){const i=lh(r);return i&&i.default||0}else{const i=m2(e),a=(Ww(r)?i.getPropertyValue(r):i[r])||0;
152return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:r}){return Qx(e,r)}build(e,r,i){qf(e,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,r,i){return Yf(e,r,i)}}class y2 extends oS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ye}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(ms.has(r)){const i=lh(r);return i&&i.default||0}return r=Qw.has(r)?r:Bf(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,i){return Xw(e,r,i)}build(e,r,i){Kf(e,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,i,a){Gw(e,r,i,a)}mount(e){this.isSVGTag=Gf(e.tagName),super.mount(e)}}const v2=(t,e)=>zf(t)?new y2(e):new g2(e,{allowProjection:t!==O.Fragment}),w2=WR({...zO,...l2,...XN,...u2},v2),Ut=iR(w2),aS=O.forwardRef(({className:t,type:e,...r},i)=>S.jsx("input",{type:e,className:Dt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:i,...r}));aS.displayName="Input";function Bv(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function x2(...t){return e=>{let r=!1;const i=t.map(a=>{const l=Bv(a,e);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():Bv(t[a],null)}}}}var S2=Symbol.for("react.lazy"),Il=e0[" use ".trim().toString()];function b2(t){return typeof t=="object"&&t!==null&&"then"in t}function lS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===S2&&"_payload"in t&&b2(t._payload)}function k2(t){const e=T2(t),r=O.forwardRef((i,a)=>{let{children:l,...c}=i;lS(l)&&typeof Il=="function"&&(l=Il(l._payload));const d=O.Children.toArray(l),h=d.find(P2);if(h){const m=h.props.children,g=d.map(y=>y===h?O.Children.count(m)>1?O.Children.only(null):O.isValidElement(m)?m.props.children:null:y);return S.jsx(e,{...c,ref:a,children:O.isValidElement(m)?O.cloneElement(m,void 0,g):null})}return S.jsx(e,{...c,ref:a,children:l})});return r.displayName=`${t}.Slot`,r}var E2=k2("Slot");function T2(t){const e=O.forwardRef((r,i)=>{let{children:a,...l}=r;if(lS(a)&&typeof Il=="function"&&(a=Il(a._payload)),O.isValidElement(a)){const c=R2(a),d=_2(l,a.props);return a.type!==O.Fragment&&(d.ref=i?x2(i,c):c),O.cloneElement(a,d)}return O.Children.count(a)>1?O.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var C2=Symbol("radix.slottable");function P2(t){return O.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===C2}function _2(t,e){const r={...e};for(const i in e){const a=t[i],l=e[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...t,...r}}function R2(t){var i,a;let e=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const A2=mf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),uS=O.forwardRef(({className:t,variant:e,size:r,asChild:i=!1,...a},l)=>{const c=i?E2:"button";return S.jsx(c,{className:Dt(A2({variant:e,size:r,className:t})),ref:l,...a})});uS.displayName="Button";const Uv=["best","review","top","under","vs","buy"];function zv(t){const e=t.toLowerCase().trim().split(/\s+/),r=e.length;let i=0;r>=5?i=30:r===4?i=20:r===3&&(i=10);let a=e.reduce((m,g)=>m+(Uv.includes(g)?10:0),0);a=Math.min(a,30);let l=0;r<=2?l=30:r===3&&(l=10);let c=i+a-l;c=Math.max(0,Math.min(c,100));let d;c<=40?d="Hard":c<=70?d="Medium":d="Easy";const h=e.filter(m=>Uv.includes(m));return{score:c,difficulty:d,wordCount:r,lengthScore:i,intentScore:a,penalty:l,matchedBuyerWords:h}}const cS=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("rounded-xl border bg-card text-card-foreground shadow",t),...e}));
152cS.displayName="Card";const O2=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("flex flex-col space-y-1.5 p-6",t),...e}));O2.displayName="CardHeader";const N2=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("font-semibold leading-none tracking-tight",t),...e}));N2.displayName="CardTitle";const L2=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("text-sm text-muted-foreground",t),...e}));L2.displayName="CardDescription";const dS=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("p-6 pt-0",t),...e}));dS.displayName="CardContent";const j2=O.forwardRef(({className:t,...e},r)=>S.jsx("div",{ref:r,className:Dt("flex items-center p-6 pt-0",t),...e}));j2.displayName="CardFooter";const D2=mf("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function M2({className:t,variant:e,...r}){return S.jsx("div",{className:Dt(D2({variant:e}),t),...r})}const I2={Hard:{color:"#ef4444",bgColor:"#fef2f2",label:"Hard to Rank"},Medium:{color:"#f59e0b",bgColor:"#fffbeb",label:"Moderate"},Easy:{color:"#22c55e",bgColor:"#f0fdf4",label:"Easy to Rank"}};function F2({score:t,difficulty:e}){const r=I2[e],i=2*Math.PI*54,a=i-t/100*i;return S.jsxs("div",{className:"flex flex-col items-center gap-3",children:[S.jsxs("div",{className:"relative w-36 h-36",children:[S.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 120 120",children:[S.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"hsl(var(--border))",strokeWidth:"8"}),S.jsx(Ut.circle,{cx:"60",cy:"60",r:"54",fill:"none",stroke:r.color,strokeWidth:"8",strokeLinecap:"round",strokeDasharray:i,initial:{strokeDashoffset:i},animate:{strokeDashoffset:a},transition:{duration:1.2,ease:"easeOut"}})]}),S.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[S.jsx(Ut.span,{className:"text-3xl font-bold font-mono",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{delay:.3,duration:.5},children:t}),S.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"/ 100"})]})]}),S.jsx(Ut.div,{className:"px-4 py-1.5 rounded-full text-sm font-semibold",style:{backgroundColor:r.bgColor,color:r.color},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.6},children:r.label})]})}function fl({icon:t,label:e,value:r,delay:i}){return S.jsxs(Ut.div,{className:"flex items-center gap-3 p-3 rounded-lg bg-muted/50",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:i,duration:.4},children:[S.jsx("div",{className:"p-2 rounded-md bg-primary/10",children:S.jsx(t,{className:"w-4 h-4 text-primary"})}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-muted-foreground font-medium",children:e}),S.jsx("p",{className:"text-sm font-semibold",children:r})]})]})}function V2({keyword:t,result:e}){return S.jsx(Ut.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.5},children:S.jsxs(cS,{className:"overflow-hidden border-0 shadow-lg",children:[S.jsx("div",{className:"h-1 bg-gradient-to-r from-primary via-chart-2 to-chart-4"}),S.jsxs(dS,{className:"p-6 md:p-8",children:[S.jsxs("div",{className:"text-center mb-6",children:[S.jsx("p",{className:"text-xs uppercase tracking-widest text-muted-foreground font-medium mb-2",children:"Analysis for"}),S.jsxs("h2",{className:"text-xl md:text-2xl font-bold break-words",children:['"',t,'"']})]}),S.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8",children:[S.jsx("div",{className:"flex-shrink-0",children:S.jsx(F2,{score:e.score,difficulty:e.difficulty})}),S.jsxs("div",{className:"flex-1 w-full grid gap-3",children:[S.jsx(fl,{icon:Lb,label:"Word Count",value:`${e.wordCount} word${e.wordCount!==1?"s":""}`,delay:.2}),S.jsx(fl,{icon:Hb,label:"Length Score",value:`+${e.lengthScore} pts`,delay:.3}),S.jsx(fl,{icon:i0,label:"Buyer Intent Score",value:`+${e.intentScore} pts`,delay:.4}),e.penalty>0&&S.jsx(fl,{icon:$b,label:"Short Keyword Penalty",value:`-${e.penalty} pts`,delay:.5})]})]}),e.matchedBuyerWords.length>0&&S.jsxs(Ut.div,{className:"mt-6 pt-5 border-t",initial:{opacity:0}
152,animate:{opacity:1},transition:{delay:.7},children:[S.jsx("p",{className:"text-xs uppercase tracking-widest text-muted-foreground font-medium mb-3",children:"Buyer Intent Words Detected"}),S.jsx("div",{className:"flex flex-wrap gap-2",children:e.matchedBuyerWords.map(r=>S.jsx(M2,{className:"bg-primary/10 text-primary border-primary/20 hover:bg-primary/20",children:r},r))})]})]})]})})}function B2(){const[t,e]=O.useState(""),[r,i]=O.useState(null),[a,l]=O.useState(""),c=d=>{if(d.preventDefault(),!t.trim())return;const h=zv(t);i(h),l(t.trim())};return S.jsxs("div",{className:"space-y-8",children:[S.jsx("form",{onSubmit:c,className:"relative",children:S.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[S.jsxs("div",{className:"relative flex-1",children:[S.jsx(wg,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),S.jsx(aS,{value:t,onChange:d=>e(d.target.value),placeholder:"Enter a keyword to analyze...",className:"pl-12 h-14 text-base rounded-xl border-2 border-border focus:border-primary bg-card shadow-sm"})]}),S.jsxs(uS,{type:"submit",disabled:!t.trim(),className:"h-14 px-8 rounded-xl text-base font-semibold shadow-md hover:shadow-lg transition-all",children:[S.jsx(Fb,{className:"w-5 h-5 mr-2"}),"Analyze"]})]})}),r&&S.jsx(V2,{keyword:a,result:r}),!r&&S.jsxs(Ut.div,{className:"text-center py-16 px-4",initial:{opacity:0}
152,animate:{opacity:1},transition:{delay:.3},children:[S.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-accent mb-4",children:S.jsx(wg,{className:"w-7 h-7 text-accent-foreground"})}),S.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Enter a keyword to get started"}),S.jsx("p",{className:"text-muted-foreground max-w-md mx-auto text-sm leading-relaxed",children:"Type any keyword or phrase above to discover its ranking opportunity score. Longer keywords with buyer intent words score higher."}),S.jsx("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:["best wireless headphones under 50","top running shoes review","laptop vs tablet for students"].map(d=>S.jsx("button",{onClick:()=>{e(d);const h=zv(d);i(h),l(d)},className:"text-xs px-3 py-1.5 rounded-full bg-muted hover:bg-accent text-muted-foreground hover:text-accent-foreground transition-colors cursor-pointer",children:d},d))})]})]})}function Sd({icon:t,text:e}){return S.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-card border text-xs font-medium text-muted-foreground",children:[S.jsx(t,{className:"w-3.5 h-3.5 text-primary"}),e]})}function U2(){return S.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12 md:py-20",children:[S.jsxs(Ut.div,{className:"text-center mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[S.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-accent text-accent-foreground text-xs font-semibold tracking-wide uppercase mb-6",children:[S.jsx(o0,{className:"w-3.5 h-3.5"}),"Free Tool for Affiliate Marketers"]}),S.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-tight leading-tight mb-4",children:["Keyword Opportunity",S.jsx("br",{}),S.jsx("span",{className:"text-primary",children:"Finder"})]}),S.jsx("p",{className:"text-muted-foreground text-base md:text-lg max-w-2xl mx-auto leading-relaxed",children:"Instantly analyze any keyword's ranking potential. Get a score based on word count, buyer intent signals, and keyword length to find the best opportunities."}),S.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mt-6",children:[S.jsx(Sd,{icon:Ub,text:"Opportunity Score"}),S.jsx(Sd,{icon:i0,text:"Buyer Intent Detection"}),S.jsx(Sd,{icon:Ob,text:"Instant Analysis"})]})]}),S.jsx(Ut.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:S.jsx(B2,{})}),S.jsx(Ut.div,{className:"mt-16 grid md:grid-cols-3 gap-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},children:[{title:"Long-Tail Keywords",description:"Keywords with 4+ words score higher — they're less competitive and easier to rank for."},{title:"Buyer Intent",description:"Words like 'best', 'review', 'top', 'under', 'vs', and 'buy' signal purchase intent."},{title:"Scoring System",description:"Scores range from 0-100. Higher scores mean better ranking opportunities for affiliates."}].map((t,e)=>S.jsxs("div",{className:"p-6 rounded-xl bg-card border shadow-sm hover:shadow-md transition-shadow",children:[S.jsx("h3",{className:"font-semibold mb-2",children:t.title}),S.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]},e))})]})}function z2(){return S.jsx("div",{className:"max-w-3xl mx-auto px-4 py-12 md:py-20",children:S.jsxs(Ut.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[S.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold tracking-tight mb-2",children:"Terms of Service"}),S.jsxs("p",{className:"text-muted-foreground mb-10",children:["Last updated: ",new Date().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),S.jsxs("div",{className:"prose prose-sm max-w-none space-y-6 text-foreground",children:[S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"1. Acceptance of Terms"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'By accessing and using the Keyword Opportunity Finder tool ("Service"), provided by OrestisLink, you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use the Service.'})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"2. Description of Service"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'The Keyword Opportunity Finder is a free online tool designed for affiliate marketers to analyze keyword ranking potential. The tool provides scores based on keyword length, buyer intent signals, and other heuristic factors. The Service is provided "as is" and is intended for informational purposes only.'})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"3. Use Restrictions"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"You agree not to: (a) use the Service for any unlawful purpose; (b) attempt to reverse engineer, decompile, or disassemble the scoring algorithm; (c) use automated systems or bots to access the Service in a manner that c
152ould impair its performance; (d) reproduce, duplicate, or sell any part of the Service without express written permission from OrestisLink."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"4. Intellectual Property"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"All content, design, code, and underlying algorithms of the Keyword Opportunity Finder are the exclusive intellectual property of OrestisLink and its creator, Orestis Tzamanos. All rights are reserved. No part of this Service may be copied, modified, distributed, or used without prior written authorization."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"5. Disclaimer of Warranties"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'The Service is provided on an "as is" and "as available" basis without warranties of any kind, either express or implied. OrestisLink does not guarantee the accuracy, reliability, or completeness of the keyword scores or difficulty assessments. Results are estimates based on heuristic analysis and should not be relied upon as definitive ranking predictions.'})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"6. Limitation of Liability"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"In no event shall OrestisLink or Orestis Tzamanos be liable for any indirect, incidental, special, consequential, or punitive damages arising out of or in connection with your use of the Service. Your sole remedy for dissatisfaction with the Service is to stop using it."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"7. Modifications"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"OrestisLink reserves the right to modify these Terms at any time. Continued use of the Service after any modifications constitutes acceptance of the updated Terms."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"8. Governing Law"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"These Terms shall be governed by and construed in accordance with applicable international law. Any disputes arising from these Terms shall be resolved through good faith negotiation or, if necessary, binding arbitration."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"9. Contact"}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["For questions about these Terms, please contact OrestisLink at"," ",S.jsx("a",{href:"https://orestislink.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"orestislink.com"}),"."]})]})]})]})})}function $2(){return S.jsx("div",{className:"max-w-3xl mx-auto px-4 py-12 md:py-20",children:S.jsxs(Ut.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[S.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold tracking-tight mb-2",children:"Privacy Policy"}),S.jsxs("p",{className:"text-muted-foreground mb-10",children:["Last updated: ",new Date().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),S.jsxs("div",{className:"prose prose-sm max-w-none space-y-6 text-foreground",children:[S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"1. Introduction"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'OrestisLink ("we", "us", "our") respects your privacy. This Privacy Policy explains how information is handled when you use the Keyword Opportunity Finder tool ("Service"). This Service is created and maintained by Orestis Tzamanos.'})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"2. Information We Collect"}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["The Keyword Opportunity Finder processes keywords entirely in your browser. We do ",S.jsx("strong",{children:"not"})," collect, store, or transmit the keywords you enter. No personal data, search queries, or usage data is sent to our servers for keyword analysis."]})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"3. Cookies and Tracking"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"This Service may use essential cookies required for the website to function properly. We do not use any advertising cookies or third-party tracking technologies for the purpose of profiling or targeted advertising."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"4. Third-Party Services"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"The Service may contain links to external websites (such as orestislink.com). We are not responsible for the privacy practices or content of third-party websites. We encourage you to review the privacy policies of any external sites you visit."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"5. Data Security"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Since no personal data is collected or stored by this tool, data security risks are minimal. All keyword analysis is performed client-side in your web browser."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"6. Children's Privacy"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"This Service is not directed to children under 13. We do not knowingly collect personal information from children."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"7. 
152Changes to This Policy"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'We may update this Privacy Policy from time to time. Any changes will be reflected on this page with an updated "Last updated" date.'})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"8. Contact"}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["For questions about this Privacy Policy, please contact OrestisLink at"," ",S.jsx("a",{href:"https://orestislink.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"orestislink.com"}),"."]})]})]})]})})}function W2(){const t=new Date().getFullYear();return S.jsx("div",{className:"max-w-3xl mx-auto px-4 py-12 md:py-20",children:S.jsxs(Ut.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx("div",{className:"p-3 rounded-xl bg-primary/10",children:S.jsx(Mb,{className:"w-6 h-6 text-primary"})}),S.jsx("div",{children:S.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold tracking-tight",children:"Copyright Notice"})})]}),S.jsxs("p",{className:"text-muted-foreground mb-10",children:["Effective: ",new Date().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),S.jsxs("div",{className:"prose prose-sm max-w-none space-y-6 text-foreground",children:[S.jsxs("section",{className:"p-6 rounded-xl bg-card border shadow-sm",children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"Copyright Statement"}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["© ",t," OrestisLink. All rights reserved."]}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed mt-3",children:["The Keyword Opportunity Finder, including but not limited to its design, user interface, source code, scoring algorithm, documentation, and all associated intellectual property, is the exclusive property of ",S.jsx("strong",{children:"OrestisLink"}),", created by ",S.jsx("strong",{children:"Orestis Tzamanos"}),"."]})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"Protected Elements"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"The following elements are protected under applicable copyright and intellectual property laws:"}),S.jsx("ul",{className:"mt-3 space-y-2",children:["The Keyword Opportunity Finder scoring algorithm and methodology","All source code, including frontend and backend implementations","User interface design, layout, and visual elements","The OrestisLink brand name, logos, and associated trademarks","All written content, documentation, and descriptive text","The compilation and arrangement of all Service components"].map((e,r)=>S.jsxs("li",{className:"flex items-start gap-3 text-muted-foreground",children:[S.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-full bg-primary flex-shrink-0"}),S.jsx("span",{children:e})]},r))})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"Prohibited Uses"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Without the express written consent of OrestisLink, you may not:"}),S.jsx("ul",{className:"mt-3 space-y-2",children:["Copy, reproduce, or duplicate the Service or any part thereof","Modify, adapt, or create derivative works based on the Service","Distribute, publish, or transmit the Service's code or design","Reverse engineer, decompile, or disassemble the scoring algorithm","Use any automated means to extract data or content from the Service","Remove or alter any copyright notices, trademarks, or attributions"].map((e,r)=>S.jsxs("li",{className:"flex items-start gap-3 text-muted-foreground",children:[S.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-full bg-destructive flex-shrink-0"}),S.jsx("span",{children:e})]},r))})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"Enforcement"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"OrestisLink actively monitors for unauthorized use of its intellectual property. Violations of this Copyright Notice may result in legal action, including but not limited to claims for damages, injunctive relief, and recovery of legal costs. We reserve all rights under applicable copyright, trademark, and intellectual property laws."})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"Attribution"}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["This tool was conceptualized, designed, and developed by ",S.jsx("strong",{children:"Orestis Tzamanos"}),", CEO of OrestisLink. Any authorized use of this tool must include proper attribution to OrestisLink and its creator."]})]}),S.jsxs("section",{children:[S.jsx("h2",{className:"text-xl font-bold mb-3",children:"Contact for Permissions"}),S.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["For licensing inquiries, permission requests, or to report copyright infringement, please contact OrestisLink at"," ",S.jsx("a",{href:"https://orestislink.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:"orestislink.com"}),"."]})]})]})]})})}const H2=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:r,navigateToLogin:i}=W_();if(e||t)return S.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:S.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return S.jsx(H_,{});if(r.type==="auth_required")return i(),null}return S.jsxs(ST,{children:[S.jsxs(Qr,{element:S.jsx(Q_,{}),children:[S.jsx(Qr,{path:"/",element:S.jsx(U2,{})}),S.jsx(Qr,{path:"/terms",element:S.jsx(z2,{})}),S.jsx(Qr,{path:"/privacy",element:S.jsx($2,{})}),S.jsx(Qr,{path:"/copyright",element:S.jsx(W2,{})})]}),S.jsx(Qr,{path:"*",element:S.jsx(z_,{})})]})};function q2(){return S.jsx($_,{children:S.jsxs(fE,{client:TE,children:[S.jsx(_T,{children:S.jsx(H2,{})}),S.jsx(Bk,{})]})})}vb.createRoot(document.getElementById("root")).render(S.jsx(q2,{}));

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.