PageSourceSearch

https://rafterhome.com/assets/index-DhP0OKWk.js

js rafterhome.com collected 2026-10-06 08:45:42 UTC 636,050 bytes, 633 lines download raw bytes

vendor: 6,199 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChiefOfStaff-ClddAm1z.js","assets/arrow-up-right-CbAAzimS.js","assets/Membership-BIWm6PC1.js","assets/trending-up-CeSvGuho.js","assets/check-B8c7Sr-r.js","assets/pricing-CNW4CvJx.js","assets/GetStarted-Dbmd6Y-o.js","assets/AboutUs-WX3KLmqx.js","assets/JoinUs-By9t4IxL.js","assets/Friends-BW8_I8JZ.js","assets/gift-XcDn9Bi8.js","assets/HomeServices-BLjd2kHP.js","assets/JobberPopup-DU-LMXgv.js","assets/map-pin-gMAdE4Av.js","assets/house-Cz0Jwt0E.js","assets/CertaProLP-K4UDxwmZ.js","assets/PrivateClientChatDemo-BivXfVJL.js","assets/TestimonialVideo-DZ_ooEXd.js","assets/MemberTestimonials-BBlRXTza.js","assets/CorcoranLP-BlTh3m78.js","assets/BenefitHubLP-CJ_On8P7.js","assets/tag-BlQJ9XP2.js","assets/LifeBalanceLP-BT230Eos.js","assets/NewHomeownerLP-B7jUBqk0.js","assets/CTADashboard-B8dE3SC0.js","assets/calendar-DX-a5JNp.js","assets/PrivateClient-CO7JLHnV.js","assets/PrivateClientPure-pGViNW4c.js","assets/PrivateClientPureSchedule-Cxdxfm81.js","assets/pureBrandLogos-D9t4iPak.js","assets/PrivateClientPureConfirmed-l2Sfcb3z.js","assets/PartnersReyInsurance-DoxVCzB3.js"])))=>i.map(i=>d[i]);
2var VS=Object.defineProperty;var Zg=t=>{throw TypeError(t)};var $S=(t,e,n)=>e in t?VS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var He=(t,e,n)=>$S(t,typeof e!="symbol"?e+"":e,n),_d=(t,e,n)=>e.has(t)||Zg("Cannot "+n);var N=(t,e,n)=>(_d(t,e,"read from private field"),n?n.call(t):e.get(t)),xe=(t,e,n)=>e.has(t)?Zg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),re=(t,e,n,s)=>(_d(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n),Oe=(t,e,n)=>(_d(t,e,"access private method"),n);var jl=(t,e,n,s)=>({set _(o){re(t,e,o,n)},get _(){return N(t,e,s)}});function HS(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var YO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function XO(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:function(){return t[s]}})}),n}var kd={exports:{}},Po={},Ed={exports:{}},Pe={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var ey;function WS(){if(ey)return Pe;ey=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function k(O,$,ye){this.props=O,this.context=$,this.refs=_,this.updater=ye||w}k.prototype.isReactComponent={},k.prototype.setState=function(O,$){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,$,"setState")},k.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=k.prototype;function P(O,$,ye){this.props=O,this.context=$,this.refs=_,this.updater=ye||w}var C=P.prototype=new E;C.constructor=P,S(C,k.prototype),C.isPureReactComponent=!0;var A=Array.isArray,D=Object.prototype.hasOwnProperty,V={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function B(O,$,ye){var be,ve={},J=null,ke=null;if($!=null)for(be in $.ref!==void 0&&(ke=$.ref),$.key!==void 0&&(J=""+$.key),$)D.call($,be)&&!X.hasOwnProperty(be)&&(ve[be]=$[be]);var je=arguments.length-2;if(je===1)ve.children=ye;else if(1<je){for(var _e=Array(je),gt=0;gt<je;gt++)_e[gt]=arguments[gt+2];ve.children=_e}if(O&&O.defaultProps)for(be in je=O.defaultProps,je)ve[be]===void 0&&(ve[be]=je[be]);return{$$typeof:t,type:O,key:J,ref:ke,props:ve,_owner:V.current}}function G(O,$){return{$$typeof:t,type:O.type,key:$,ref:O.ref,props:O.props,_owner:O._owner}}function ee(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function ue(O){var $={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ye){return $[ye]})}var Ce=/\/+/g;function Ae(O,$){return typeof O=="object"&&O!==null&&O.key!=null?ue(""+O.key):$.toString(36)}function he(O,$,ye,be,ve){var J=typeof O;(J==="undefined"||J==="boolean")&&(O=null);var ke=!1;
vendor: 11,302 bytes, lines 10-34
10if(O===null)ke=!0;else switch(J){case"string":case"number":ke=!0;break;case"object":switch(O.$$typeof){case t:case e:ke=!0}}if(ke)return ke=O,ve=ve(ke),O=be===""?"."+Ae(ke,0):be,A(ve)?(ye="",O!=null&&(ye=O.replace(Ce,"$&/")+"/"),he(ve,$,ye,"",function(gt){return gt})):ve!=null&&(ee(ve)&&(ve=G(ve,ye+(!ve.key||ke&&ke.key===ve.key?"":(""+ve.key).replace(Ce,"$&/")+"/")+O)),$.push(ve)),1;if(ke=0,be=be===""?".":be+":",A(O))for(var je=0;je<O.length;je++){J=O[je];var _e=be+Ae(J,je);ke+=he(J,$,ye,_e,ve)}else if(_e=x(O),typeof _e=="function")for(O=_e.call(O),je=0;!(J=O.next()).done;)J=J.value,_e=be+Ae(J,je++),ke+=he(J,$,ye,_e,ve);else if(J==="object")throw $=String(O),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return ke}function ge(O,$,ye){if(O==null)return O;var be=[],ve=0;return he(O,be,"","",function(J){return $.call(ye,J,ve++)}),be}function Te(O){if(O._status===-1){var $=O._result;$=$(),$.then(function(ye){(O._status===0||O._status===-1)&&(O._status=1,O._result=ye)},function(ye){(O._status===0||O._status===-1)&&(O._status=2,O._result=ye)}),O._status===-1&&(O._status=0,O._result=$)}if(O._status===1)return O._result.default;throw O._result}var ie={current:null},H={transition:null},te={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:H,ReactCurrentOwner:V};function U(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:ge,forEach:function(O,$,ye){ge(O,function(){$.apply(this,arguments)},ye)},count:function(O){var $=0;return ge(O,function(){$++}),$},toArray:function(O){return ge(O,function($){return $})||[]},only:function(O){if(!ee(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Pe.Component=k,Pe.Fragment=n,Pe.Profiler=o,Pe.PureComponent=P,Pe.StrictMode=s,Pe.Suspense=d,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Pe.act=U,Pe.cloneElement=function(O,$,ye){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var be=S({},O.props),ve=O.key,J=O.ref,ke=O._owner;if($!=null){if($.ref!==void 0&&(J=$.ref,ke=V.current),$.key!==void 0&&(ve=""+$.key),O.type&&O.type.defaultProps)var je=O.type.defaultProps;for(_e in $)D.call($,_e)&&!X.hasOwnProperty(_e)&&(be[_e]=$[_e]===void 0&&je!==void 0?je[_e]:$[_e])}var _e=arguments.length-2;if(_e===1)be.children=ye;else if(1<_e){je=Array(_e);for(var gt=0;gt<_e;gt++)je[gt]=arguments[gt+2];be.children=je}return{$$typeof:t,type:O.type,key:ve,ref:J,props:be,_owner:ke}},Pe.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:l,_context:O},O.Consumer=O},Pe.createElement=B,Pe.createFactory=function(O){var $=B.bind(null,O);return $.type=O,$},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(O){return{$$typeof:f,render:O}},Pe.isValidElement=ee,Pe.lazy=function(O){return{$$typeof:m,_payload:{_status:-1,_result:O},_init:Te}},Pe.memo=function(O,$){return{$$typeof:h,type:O,compare:$===void 0?null:$}},Pe.startTransition=function(O){var $=H.transition;H.transition={};try{O()}finally{H.transition=$}},Pe.unstable_act=U,Pe.useCallback=function(O,$){return ie.current.useCallback(O,$)},Pe.useContext=function(O){return ie.current.useContext(O)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(O){return ie.current.useDeferredValue(O)},Pe.useEffect=function(O,$){return ie.current.useEffect(O,$)},Pe.useId=function(){return ie.current.useId()},Pe.useImperativeHandle=function(O,$,ye){return ie.current.useImperativeHandle(O,$,ye)},Pe.useInsertionEffect=function(O,$){return ie.current.useInsertionEffect(O,$)},Pe.useLayoutEffect=function(O,$){return ie.current.useLayoutEffect(O,$)},Pe.useMemo=function(O,$){return ie.current.useMemo(O,$)},Pe.useReducer=function(O,$,ye){return ie.current.useReducer(O,$,ye)},Pe.useRef=function(O){return ie.current.useRef(O)},Pe.useState=function(O){return ie.current.useState(O)},Pe.useSyncExternalStore=function(O,$,ye){return ie.current.useSyncExternalStore(O,$,ye)},Pe.useTransition=function(){return ie.current.useTransition()},Pe.version="18.3.1",Pe}var ty;function eh(){return ty||(ty=1,Ed.exports=WS()),Ed.exports}/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var ny;function qS(){if(ny)return Po;ny=1;var t=eh(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(f,d,h){var m,y={},x=null,w=null;h!==void 0&&(x=""+h),d.key!==void 0&&(x=""+d.key),d.ref!==void 0&&(w=d.ref);for(m in d)s.call(d,m)&&!l.hasOwnProperty(m)&&(y[m]=d[m]);if(f&&f.defaultProps)for(m in d=f.defaultProps,d)y[m]===void 0&&(y[m]=d[m]);return{$$typeof:e,type:f,key:x,ref:w,props:y,_owner:o.current}}return Po.Fragment=n,Po.jsx=c,Po.jsxs=c,Po}var ry;function KS(){return ry||(ry=1,kd.exports=qS()),kd.exports}var p=KS(),T=eh();const dt=hx(T),QS=HS({__proto__:null,default:dt},[T]);var Nl={},Cd={exports:{}},qt={},Td={exports:{}},Rd={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var sy;function GS(){return sy||(sy=1,(function(t){function e(H,te){var U=H.length;H.push(te);e:for(;0<U;){var O=U-1>>>1,$=H[O];if(0<o($,te))H[O]=te,H[U]=$,U=O;else break e}}function n(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var te=H[0],U=H.pop();if(U!==te){H[0]=U;e:for(var O=0,$=H.length,ye=$>>>1;O<ye;){var be=2*(O+1)-1,ve=H[be],J=be+1,ke=H[J];if(0>o(ve,U))J<$&&0>o(ke,ve)?(H[O]=ke,H[J]=U,O=J):(H[O]=ve,H[be]=U,O=be);else if(J<$&&0>o(ke,U))H[O]=ke,H[J]=U,O=J;else break e}}return te}function o(H,te){var U=H.sortIndex-te.sortIndex;return U!==0?U:H.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var d=[],h=[],m=1,y=null,x=3,w=!1,S=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(H){for(var te=n(h);te!==null;){if(te.callback===null)s(h);else if(te.startTime<=H)s(h),te.sortIndex=te.expirationTime,e(d,te);else break;te=n(h)}}function A(H){if(_=!1,C(H),!S)if(n(d)!==null)S=!0,Te(D);else{var te=n(h);te!==null&&ie(A,te.startTime-H)}}function D(H,te){S=!1,_&&(_=!1,E(B),B=-1),w=!0;var U=x;try{for(C(te),y=n(d);y!==null&&(!(y.expirationTime>te)||H&&!ue());){var O=y.callback;if(typeof O=="function"){y.callback=null,x=y.priorityLevel;var $=O(y.expirationTime<=te);te=t.unstable_now(),typeof $=="function"?y.callback=$:y===n(d)&&s(d),C(te)}else s(d);y=n(d)}if(y!==null)var ye=!0;else{var be=n(h);be!==null&&ie(A,be.startTime-te),ye=!1}return ye}finally{y=null,x=U,w=!1}}var V=!1,X=null,B=-1,G=5,ee=-1;function ue(){return!(t.unstable_now()-ee<G)}function Ce(){if(X!==null){var H=t.unstable_now();ee=H;var te=!0;try{te=X(!0,H)}finally{te?Ae():(V=!1,X=null)}}else V=!1}var Ae;if(typeof P=="function")Ae=function(){P(Ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ge=he.port2;he.port1.onmessage=Ce,Ae=function(){ge.postMessage(null)}}else Ae=function(){k(Ce,0)};function Te(H){X=H,V||(V=!0,Ae())}function ie(H,te){B=k(function(){H(t.unstable_now())},te)}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(H){H.callback=null},t.unstable_continueExecution=function(){S||w||(S=!0,Te(D))},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return n(d)},t.unstable_next=function(H){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var U=x;x=te;try{return H()}finally{x=U}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(H,te){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var U=x;x=H;try{return te()}finally{x=U}},t.unstable_scheduleCallback=function(H,te,U){var O=t.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?O+U:O):U=O,H){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=U+$,H={id:m++,callback:te,priorityLevel:H,startTime:U,expirationTime:$,sortIndex:-1},U>O?(H.sortIndex=U,e(h,H),n(d)===null&&H===n(h)&&(_?(E(B),B=-1):_=!0,ie(A,U-O))):(H.sortIndex=$,e(d,H),S||w||(S=!0,Te(D))),H},t.unstable_shouldYield=ue,t.unstable_wrapCallback=function(H){var te=x;return function(){var U=x;x=te;try{return H.apply(this,arguments)}finally{x=U}}}})(Rd)),Rd}var iy;function YS(){return iy||(iy=1,Td.exports=GS()),Td.exports}/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var oy;function XS(){if(oy)return qt;oy=1;var t=eh(),e=YS();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function l(r,i){c(r,i),c(r+"Capture",i)}function c(r,i){for(o[r]=i,r=0;r<i.length;r++)s.add(i[r])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},y={};function x(r){return d.call(y,r)?!0:d.call(m,r)?!1:h.test(r)?y[r]=!0:(m[r]=!0,!1)}function w(r,i,a,u){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function S(r,i,a,u){if(i===null||typeof i>"u"||w(r,i,a,u))return!0;
vendor: 47,182 bytes, lines 34-39
34if(u)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function _(r,i,a,u,g,v,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=g,this.mustUseProperty=a,this.propertyName=r,this.type=i,this.sanitizeURL=v,this.removeEmptyString=b}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){k[r]=new _(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];k[i]=new _(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new _(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new _(r,2,!1,r,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(r){k[r]=new _(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new _(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new _(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new _(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new _(r,5,!1,r.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function P(r){return r[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(r){var i=r.replace(E,P);k[i]=new _(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(E,P);k[i]=new _(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(E,P);k[i]=new _(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new _(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new _(r,1,!1,r.toLowerCase(),null,!0,!0)});function C(r,i,a,u){var g=k.hasOwnProperty(i)?k[i]:null;(g!==null?g.type!==0:u||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,a,g,u)&&(a=null),u||g===null?x(i)&&(a===null?r.removeAttribute(i):r.setAttribute(i,""+a)):g.mustUseProperty?r[g.propertyName]=a===null?g.type===3?!1:"":a:(i=g.attributeName,u=g.attributeNamespace,a===null?r.removeAttribute(i):(g=g.type,a=g===3||g===4&&a===!0?"":""+a,u?r.setAttributeNS(u,i,a):r.setAttribute(i,a))))}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),V=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),ee=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),H=Symbol.iterator;function te(r){return r===null||typeof r!="object"?null:(r=H&&r[H]||r["@@iterator"],typeof r=="function"?r:null)}var U=Object.assign,O;function $(r){if(O===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);O=i&&i[1]||""}return`
35`+O+r}var ye=!1;function be(r,i){if(!r||ye)return"";ye=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(z){var u=z}Reflect.construct(r,[],i)}else{try{i.call()}catch(z){u=z}r.call(i.prototype)}else{try{throw Error()}catch(z){u=z}r()}}catch(z){if(z&&u&&typeof z.stack=="string"){for(var g=z.stack.split(`
36`),v=u.stack.split(`
37`),b=g.length-1,R=v.length-1;1<=b&&0<=R&&g[b]!==v[R];)R--;for(;1<=b&&0<=R;b--,R--)if(g[b]!==v[R]){if(b!==1||R!==1)do if(b--,R--,0>R||g[b]!==v[R]){var j=`
38`+g[b].replace(" at new "," at ");return r.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",r.displayName)),j}while(1<=b&&0<=R);break}}}finally{ye=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?$(r):""}function ve(r){switch(r.tag){case 5:return $(r.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return r=be(r.type,!1),r;case 11:return r=be(r.type.render,!1),r;case 1:return r=be(r.type,!0),r;default:return""}}function J(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case X:return"Fragment";case V:return"Portal";case G:return"Profiler";case B:return"StrictMode";case Ae:return"Suspense";case he:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case ue:return(r.displayName||"Context")+".Consumer";case ee:return(r._context.displayName||"Context")+".Provider";case Ce:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ge:return i=r.displayName||null,i!==null?i:J(r.type)||"Memo";case Te:i=r._payload,r=r._init;try{return J(r(i))}catch{}}return null}function ke(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(i);case 8:return i===B?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function je(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function _e(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function gt(r){var i=_e(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),u=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var g=a.get,v=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return g.call(this)},set:function(b){u=""+b,v.call(this,b)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(b){u=""+b},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function nn(r){r._valueTracker||(r._valueTracker=gt(r))}function bt(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return r&&(u=_e(r)?r.checked?"true":"false":r.value),r=u,r!==a?(i.setValue(r),!0):!1}function yn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function rn(r,i){var a=i.checked;return U({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function sn(r,i){var a=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;a=je(i.value!=null?i.value:a),r._wrapperState={initialChecked:u,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Ee(r,i){i=i.checked,i!=null&&C(r,"checked",i,!1)}function St(r,i){Ee(r,i);var a=je(i.value),u=i.type;if(a!=null)u==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(u==="submit"||u==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?xn(r,i.type,a):i.hasOwnProperty("defaultValue")&&xn(r,i.type,je(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function vn(r,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,a||i===r.value||(r.value=i),r.defaultValue=i}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function xn(r,i,a){(i!=="number"||yn(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var cr=Array.isArray;function ur(r,i,a,u){if(r=r.options,i){i={};for(var g=0;g<a.length;g++)i["$"+a[g]]=!0;for(a=0;a<r.length;a++)g=i.hasOwnProperty("$"+r[a].value),r[a].selected!==g&&(r[a].selected=g),g&&u&&(r[a].defaultSelected=!0)}else{for(a=""+je(a),i=null,g=0;g<r.length;g++){if(r[g].value===a){r[g].selected=!0,u&&(r[g].defaultSelected=!0);return}i!==null||r[g].disabled||(i=r[g])}i!==null&&(i.selected=!0)}}function Wn(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function cp(r,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(cr(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}r._wrapperState={initialValue:je(a)}}function up(r,i){var a=je(i.value),u=je(i.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),i.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),u!=null&&(r.defaultValue=""+u)}function dp(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function fp(r){switch(r){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 Fc(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?fp(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var _a,hp=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,u,g){MSApp.execUnsafeLocalFunction(function(){return r(i,a,u,g)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(_a=_a||document.createElement("div"),_a.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=_a.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Hi(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var Wi={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},qb=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(r){qb.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Wi[i]=Wi[r]})});function pp(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||Wi.hasOwnProperty(r)&&Wi[r]?(""+i).trim():i+"px"}function mp(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var u=a.indexOf("--")===0,g=pp(a,i[a],u);a==="float"&&(a="cssFloat"),u?r.setProperty(a,g):r[a]=g}}var Kb=U({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 Lc(r,i){if(i){if(Kb[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Dc(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 Mc=null;function Ic(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Bc=null,Us=null,Vs=null;function gp(r){if(r=po(r)){if(typeof Bc!="function")throw Error(n(280));var i=r.stateNode;i&&(i=qa(i),Bc(r.stateNode,r.type,i))}}function yp(r){Us?Vs?Vs.push(r):Vs=[r]:Us=r}function vp(){if(Us){var r=Us,i=Vs;if(Vs=Us=null,gp(r),i)for(r=0;r<i.length;r++)gp(i[r])}}function xp(r,i){return r(i)}function wp(){}var zc=!1;function bp(r,i,a){if(zc)return r(i,a);zc=!0;try{return xp(r,i,a)}finally{zc=!1,(Us!==null||Vs!==null)&&(wp(),vp())}}function qi(r,i){var a=r.stateNode;if(a===null)return null;var u=qa(a);if(u===null)return null;a=u[i];e:switch(i){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)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var Uc=!1;if(f)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{Uc=!1}function Qb(r,i,a,u,g,v,b,R,j){var z=Array.prototype.slice.call(arguments,3);try{i.apply(a,z)}catch(K){this.onError(K)}}var Qi=!1,ka=null,Ea=!1,Vc=null,Gb={onError:function(r){Qi=!0,ka=r}};function Yb(r,i,a,u,g,v,b,R,j){Qi=!1,ka=null,Qb.apply(Gb,arguments)}function Xb(r,i,a,u,g,v,b,R,j){if(Yb.apply(this,arguments),Qi){if(Qi){var z=ka;Qi=!1,ka=null}else throw Error(n(198));Ea||(Ea=!0,Vc=z)}}function Zr(r){var i=r,a=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(a=i.return),r=i.return;while(r)}return i.tag===3?a:null}function Sp(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function _p(r){if(Zr(r)!==r)throw Error(n(188))}function Jb(r){var i=r.alternate;if(!i){if(i=Zr(r),i===null)throw Error(n(188));return i!==r?null:r}for(var a=r,u=i;;){var g=a.return;if(g===null)break;var v=g.alternate;if(v===null){if(u=g.return,u!==null){a=u;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===a)return _p(g),r;if(v===u)return _p(g),i;v=v.sibling}throw Error(n(188))}if(a.return!==u.return)a=g,u=v;else{for(var b=!1,R=g.child;R;){if(R===a){b=!0,a=g,u=v;break}if(R===u){b=!0,u=g,a=v;break}R=R.sibling}if(!b){for(R=v.child;R;){if(R===a){b=!0,a=v,u=g;break}if(R===u){b=!0,u=v,a=g;break}R=R.sibling}if(!b)throw Error(n(189))}}if(a.alternate!==u)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:i}function kp(r){return r=Jb(r),r!==null?Ep(r):null}function Ep(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Ep(r);if(i!==null)return i;r=r.sibling}return null}var Cp=e.unstable_scheduleCallback,Tp=e.unstable_cancelCallback,Zb=e.unstable_shouldYield,e2=e.unstable_requestPaint,st=e.unstable_now,t2=e.unstable_getCurrentPriorityLevel,$c=e.unstable_ImmediatePriority,Rp=e.unstable_UserBlockingPriority,Ca=e.unstable_NormalPriority,n2=e.unstable_LowPriority,Pp=e.unstable_IdlePriority,Ta=null,Nn=null;function r2(r){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Ta,r,void 0,(r.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:o2,s2=Math.log,i2=Math.LN2;function o2(r){return r>>>=0,r===0?32:31-(s2(r)/i2|0)|0}var Ra=64,Pa=4194304;function Gi(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Aa(r,i){var a=r.pendingLanes;if(a===0)return 0;var u=0,g=r.suspendedLanes,v=r.pingedLanes,b=a&268435455;if(b!==0){var R=b&~g;R!==0?u=Gi(R):(v&=b,v!==0&&(u=Gi(v)))}else b=a&~g,b!==0?u=Gi(b):v!==0&&(u=Gi(v));if(u===0)return 0;if(i!==0&&i!==u&&(i&g)===0&&(g=u&-u,v=i&-i,g>=v||g===16&&(v&4194240)!==0))return i;if((u&4)!==0&&(u|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=u;0<i;)a=31-wn(i),g=1<<a,u|=r[a],i&=~g;return u}function a2(r,i){switch(r){case 1:case 2:case 4:return i+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 i+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 l2(r,i){for(var a=r.suspendedLanes,u=r.pingedLanes,g=r.expirationTimes,v=r.pendingLanes;0<v;){var b=31-wn(v),R=1<<b,j=g[b];j===-1?((R&a)===0||(R&u)!==0)&&(g[b]=a2(R,i)):j<=i&&(r.expiredLanes|=R),v&=~R}}function Hc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Ap(){var r=Ra;return Ra<<=1,(Ra&4194240)===0&&(Ra=64),r}function Wc(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function Yi(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-wn(i),r[i]=a}function c2(r,i){var a=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var u=r.eventTimes;for(r=r.expirationTimes;0<a;){var g=31-wn(a),v=1<<g;i[g]=0,u[g]=-1,r[g]=-1,a&=~v}}function qc(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var u=31-wn(a),g=1<<u;g&i|r[u]&i&&(r[u]|=i),a&=~g}}var Ve=0;function jp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Np,Kc,Op,Fp,Lp,Qc=!1,ja=[],dr=null,fr=null,hr=null,Xi=new Map,Ji=new Map,pr=[],u2="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 Dp(r,i){switch(r){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":hr=null;break;case"pointerover":case"pointerout":Xi.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(i.pointerId)}}function Zi(r,i,a,u,g,v){return r===null||r.nativeEvent!==v?(r={blockedOn:i,domEventName:a,eventSystemFlags:u,nativeEvent:v,targetContainers:[g]},i!==null&&(i=po(i),i!==null&&Kc(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,g!==null&&i.indexOf(g)===-1&&i.push(g),r)}function d2(r,i,a,u,g){switch(i){case"focusin":return dr=Zi(dr,r,i,a,u,g),!0;case"dragenter":return fr=Zi(fr,r,i,a,u,g),!0;case"mouseover":return hr=Zi(hr,r,i,a,u,g),!0;case"pointerover":var v=g.pointerId;return Xi.set(v,Zi(Xi.get(v)||null,r,i,a,u,g)),!0;case"gotpointercapture":return v=g.pointerId,Ji.set(v,Zi(Ji.get(v)||null,r,i,a,u,g)),!0}return!1}function Mp(r){var i=es(r.target);if(i!==null){var a=Zr(i);if(a!==null){if(i=a.tag,i===13){if(i=Sp(a),i!==null){r.blockedOn=i,Lp(r.priority,function(){Op(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Na(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=Yc(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var u=new a.constructor(a.type,a);Mc=u,a.target.dispatchEvent(u),Mc=null}else return i=po(a),i!==null&&Kc(i),r.blockedOn=a,!1;i.shift()}return!0}function Ip(r,i,a){Na(r)&&a.delete(i)}function f2(){Qc=!1,dr!==null&&Na(dr)&&(dr=null),fr!==null&&Na(fr)&&(fr=null),hr!==null&&Na(hr)&&(hr=null),Xi.forEach(Ip),Ji.forEach(Ip)}function eo(r,i){r.blockedOn===i&&(r.blockedOn=null,Qc||(Qc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,f2)))}function to(r){function i(g){return eo(g,r)}if(0<ja.length){eo(ja[0],r);for(var a=1;a<ja.length;a++){var u=ja[a];u.blockedOn===r&&(u.blockedOn=null)}}for(dr!==null&&eo(dr,r),fr!==null&&eo(fr,r),hr!==null&&eo(hr,r),Xi.forEach(i),Ji.forEach(i),a=0;a<pr.length;a++)u=pr[a],u.blockedOn===r&&(u.blockedOn=null);for(;0<pr.length&&(a=pr[0],a.blockedOn===null);)Mp(a),a.blockedOn===null&&pr.shift()}var $s=A.ReactCurrentBatchConfig,Oa=!0;function h2(r,i,a,u){var g=Ve,v=$s.transition;$s.transition=null;try{Ve=1,Gc(r,i,a,u)}finally{Ve=g,$s.transition=v}}function p2(r,i,a,u){var g=Ve,v=$s.transition;$s.transition=null;try{Ve=4,Gc(r,i,a,u)}finally{Ve=g,$s.transition=v}}function Gc(r,i,a,u){if(Oa){var g=Yc(r,i,a,u);if(g===null)hu(r,i,u,Fa,a),Dp(r,u);else if(d2(g,r,i,a,u))u.stopPropagation();else if(Dp(r,u),i&4&&-1<u2.indexOf(r)){for(;g!==null;){var v=po(g);if(v!==null&&Np(v),v=Yc(r,i,a,u),v===null&&hu(r,i,u,Fa,a),v===g)break;g=v}g!==null&&u.stopPropagation()}else hu(r,i,u,null,a)}}var Fa=null;function Yc(r,i,a,u){if(Fa=null,r=Ic(u),r=es(r),r!==null)if(i=Zr(r),i===null)r=null;else if(a=i.tag,a===13){if(r=Sp(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return Fa=r,null}function Bp(r){switch(r){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(t2()){case $c:return 1;case Rp:return 4;case Ca:case n2:return 16;case Pp:return 536870912;default:return 16}default:return 16}}var mr=null,Xc=null,La=null;function zp(){if(La)return La;var r,i=Xc,a=i.length,u,g="value"in mr?mr.value:mr.textContent,v=g.length;for(r=0;r<a&&i[r]===g[r];r++);var b=a-r;for(u=1;u<=b&&i[a-u]===g[v-u];u++);return La=g.slice(r,1<u?1-u:void 0)}function Da(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Ma(){return!0}function Up(){return!1}function Yt(r){function i(a,u,g,v,b){this._reactName=a,this._targetInst=g,this.type=u,this.nativeEvent=v,this.target=b,this.currentTarget=null;for(var R in r)r.hasOwnProperty(R)&&(a=r[R],this[R]=a?a(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ma:Up,this.isPropagationStopped=Up,this}return U(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ma)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ma)},persist:function(){},isPersistent:Ma}),i}var Hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jc=Yt(Hs),no=U({},Hs,{view:0,detail:0}),m2=Yt(no),Zc,eu,ro,Ia=U({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ro&&(ro&&r.type==="mousemove"?(Zc=r.screenX-ro.screenX,eu=r.screenY-ro.screenY):eu=Zc=0,ro=r),Zc)},movementY:function(r){return"movementY"in r?r.movementY:eu}}),Vp=Yt(Ia),g2=U({},Ia,{dataTransfer:0}),y2=Yt(g2),v2=U({},no,{relatedTarget:0}),tu=Yt(v2),x2=U({},Hs,{animationName:0,elapsedTime:0,pseudoElement:0}),w2=Yt(x2),b2=U({},Hs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),S2=Yt(b2),_2=U({},Hs,{data:0}),$p=Yt(_2),k2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E2={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"},C2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T2(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=C2[r])?!!i[r]:!1}function nu(){return T2}var R2=U({},no,{key:function(r){if(r.key){var i=k2[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Da(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?E2[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nu,charCode:function(r){return r.type==="keypress"?Da(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Da(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),P2=Yt(R2),A2=U({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hp=Yt(A2),j2=U({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nu}),N2=Yt(j2),O2=U({},Hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),F2=Yt(O2),L2=U({},Ia,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),D2=Yt(L2),M2=[9,13,27,32],ru=f&&"CompositionEvent"in window,so=null;f&&"documentMode"in document&&(so=document.documentMode);var I2=f&&"TextEvent"in window&&!so,Wp=f&&(!ru||so&&8<so&&11>=so),qp=" ",Kp=!1;function Qp(r,i){switch(r){case"keyup":return M2.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ws=!1;function B2(r,i){switch(r){case"compositionend":return Gp(i);case"keypress":return i.which!==32?null:(Kp=!0,qp);case"textInput":return r=i.data,r===qp&&Kp?null:r;default:return null}}function z2(r,i){if(Ws)return r==="compositionend"||!ru&&Qp(r,i)?(r=zp(),La=Xc=mr=null,Ws=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Wp&&i.locale!=="ko"?null:i.data;default:return null}}var U2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yp(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!U2[r.type]:i==="textarea"}function Xp(r,i,a,u){yp(u),i=$a(i,"onChange"),0<i.length&&(a=new Jc("onChange","change",null,a,u),r.push({event:a,listeners:i}))}var io=null,oo=null;function V2(r){mm(r,0)}function Ba(r){var i=Ys(r);if(bt(i))return r}function $2(r,i){if(r==="change")return i}var Jp=!1;if(f){var su;if(f){var iu="oninput"in document;if(!iu){var Zp=document.createElement("div");Zp.setAttribute("oninput","return;"),iu=typeof Zp.oninput=="function"}su=iu}else su=!1;Jp=su&&(!document.documentMode||9<document.documentMode)}function em(){io&&(io.detachEvent("onpropertychange",tm),oo=io=null)}function tm(r){if(r.propertyName==="value"&&Ba(oo)){var i=[];Xp(i,oo,r,Ic(r)),bp(V2,i)}}function H2(r,i,a){r==="focusin"?(em(),io=i,oo=a,io.attachEvent("onpropertychange",tm)):r==="focusout"&&em()}function W2(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ba(oo)}function q2(r,i){if(r==="click")return Ba(i)}function K2(r,i){if(r==="input"||r==="change")return Ba(i)}function Q2(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var bn=typeof Object.is=="function"?Object.is:Q2;function ao(r,i){if(bn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),u=Object.keys(i);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var g=a[u];if(!d.call(i,g)||!bn(r[g],i[g]))return!1}return!0}function nm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function rm(r,i){var a=nm(r);r=0;for(var u;a;){if(a.nodeType===3){if(u=r+a.textContent.length,r<=i&&u>=i)return{node:a,offset:i-r};r=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nm(a)}}function sm(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?sm(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function im(){for(var r=window,i=yn();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=yn(r.document)}return i}function ou(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function G2(r){var i=im(),a=r.focusedElem,u=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&sm(a.ownerDocument.documentElement,a)){if(u!==null&&ou(a)){if(i=u.start,r=u.end,r===void 0&&(r=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(r,a.value.length);else if(r=(i=a.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var g=a.textContent.length,v=Math.min(u.start,g);u=u.end===void 0?v:Math.min(u.end,g),!r.extend&&v>u&&(g=u,u=v,v=g),g=rm(a,v);var b=rm(a,u);g&&b&&(r.rangeCount!==1||r.anchorNode!==g.node||r.anchorOffset!==g.offset||r.focusNode!==b.node||r.focusOffset!==b.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),r.removeAllRanges(),v>u?(r.addRange(i),r.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),r.addRange(i)))}}for(i=[],r=a;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)r=i[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Y2=f&&"documentMode"in document&&11>=document.documentMode,qs=null,au=null,lo=null,lu=!1;function om(r,i,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;lu||qs==null||qs!==yn(u)||(u=qs,"selectionStart"in u&&ou(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}),lo&&ao(lo,u)||(lo=u,u=$a(au,"onSelect"),0<u.length&&(i=new Jc("onSelect","select",null,i,a),r.push({event:i,listeners:u}),i.target=qs)))}function za(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var Ks={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionend:za("Transition","TransitionEnd")},cu={},am={};f&&(am=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 Ua(r){if(cu[r])return cu[r];if(!Ks[r])return r;var i=Ks[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in am)return cu[r]=i[a];return r}var lm=Ua("animationend"),cm=Ua("animationiteration"),um=Ua("animationstart"),dm=Ua("transitionend"),fm=new Map,hm="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 gr(r,i){fm.set(r,i),l(i,[r])}for(var uu=0;uu<hm.length;uu++){var du=hm[uu],X2=du.toLowerCase(),J2=du[0].toUpperCase()+du.slice(1);gr(X2,"on"+J2)}gr(lm,"onAnimationEnd"),gr(cm,"onAnimationIteration"),gr(um,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(dm,"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 co="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(" "),Z2=new Set("cancel close invalid load scroll toggle".split(" ").concat(co));function pm(r,i,a){var u=r.type||"unknown-event";r.currentTarget=a,Xb(u,i,void 0,r),r.currentTarget=null}function mm(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var u=r[a],g=u.event;u=u.listeners;e:{var v=void 0;if(i)for(var b=u.length-1;0<=b;b--){var R=u[b],j=R.instance,z=R.currentTarget;if(R=R.listener,j!==v&&g.isPropagationStopped())break e;pm(g,R,z),v=j}else for(b=0;b<u.length;b++){if(R=u[b],j=R.instance,z=R.currentTarget,R=R.listener,j!==v&&g.isPropagationStopped())break e;pm(g,R,z),v=j}}}if(Ea)throw r=Vc,Ea=!1,Vc=null,r}function qe(r,i){var a=i[xu];a===void 0&&(a=i[xu]=new Set);var u=r+"__bubble";a.has(u)||(gm(i,r,2,!1),a.add(u))}function fu(r,i,a){var u=0;i&&(u|=4),gm(a,r,u,i)}var Va="_reactListening"+Math.random().toString(36).slice(2);function uo(r){if(!r[Va]){r[Va]=!0,s.forEach(function(a){a!=="selectionchange"&&(Z2.has(a)||fu(a,!1,r),fu(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Va]||(i[Va]=!0,fu("selectionchange",!1,i))}}function gm(r,i,a,u){switch(Bp(i)){case 1:var g=h2;break;case 4:g=p2;break;default:g=Gc}a=g.bind(null,i,a,r),g=void 0,!Uc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(g=!0),u?g!==void 0?r.addEventListener(i,a,{capture:!0,passive:g}):r.addEventListener(i,a,!0):g!==void 0?r.addEventListener(i,a,{passive:g}):r.addEventListener(i,a,!1)}function hu(r,i,a,u,g){var v=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var R=u.stateNode.containerInfo;if(R===g||R.nodeType===8&&R.parentNode===g)break;if(b===4)for(b=u.return;b!==null;){var j=b.tag;if((j===3||j===4)&&(j=b.stateNode.containerInfo,j===g||j.nodeType===8&&j.parentNode===g))return;b=b.return}for(;R!==null;){if(b=es(R),b===null)return;if(j=b.tag,j===5||j===6){u=v=b;continue e}R=R.parentNode}}u=u.return}bp(function(){var z=v,K=Ic(a),Q=[];e:{var q=fm.get(r);if(q!==void 0){var ne=Jc,ae=r;switch(r){case"keypress":if(Da(a)===0)break e;case"keydown":case"keyup":ne=P2;break;case"focusin":ae="focus",ne=tu;break;case"focusout":ae="blur",ne=tu;break;case"beforeblur":case"afterblur":ne=tu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=y2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=N2;break;case lm:case cm:case um:ne=w2;break;case dm:ne=F2;break;case"scroll":ne=m2;break;case"wheel":ne=D2;break;case"copy":case"cut":case"paste":ne=S2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=Hp}var de=(i&4)!==0,it=!de&&r==="scroll",M=de?q!==null?q+"Capture":null:q;de=[];for(var F=z,I;F!==null;){I=F;var Y=I.stateNode;if(I.tag===5&&Y!==null&&(I=Y,M!==null&&(Y=qi(F,M),Y!=null&&de.push(fo(F,Y,I)))),it)break;F=F.return}0<de.length&&(q=new ne(q,ae,null,a,K),Q.push({event:q,listeners:de}))}}if((i&7)===0){e:{if(q=r==="mouseover"||r==="pointerover",ne=r==="mouseout"||r==="pointerout",q&&a!==Mc&&(ae=a.relatedTarget||a.fromElement)&&(es(ae)||ae[qn]))break e;if((ne||q)&&(q=K.window===K?K:(q=K.ownerDocument)?q.defaultView||q.parentWindow:window,ne?(ae=a.relatedTarget||a.toElement,ne=z,ae=ae?es(ae):null,ae!==null&&(it=Zr(ae),ae!==it||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(ne=null,ae=z),ne!==ae)){if(de=Vp,Y="onMouseLeave",M="onMouseEnter",F="mouse",(r==="pointerout"||r==="pointerover")&&(de=Hp,Y="onPointerLeave",M="onPointerEnter",F="pointer"),it=ne==null?q:Ys(ne),I=ae==null?q:Ys(ae),q=new de(Y,F+"leave",ne,a,K),q.target=it,q.relatedTarget=I,Y=null,es(K)===z&&(de=new de(M,F+"enter",ae,a,K),de.target=I,de.relatedTarget=it,Y=de),it=Y,ne&&ae)t:{for(de=ne,M=ae,F=0,I=de;I;I=Qs(I))F++;for(I=0,Y=M;Y;Y=Qs(Y))I++;for(;0<F-I;)de=Qs(de),F--;for(;0<I-F;)M=Qs(M),I--;for(;F--;){if(de===M||M!==null&&de===M.alternate)break t;de=Qs(de),M=Qs(M)}de=null}else de=null;ne!==null&&ym(Q,q,ne,de,!1),ae!==null&&it!==null&&ym(Q,it,ae,de,!0)}}e:{if(q=z?Ys(z):window,ne=q.nodeName&&q.nodeName.toLowerCase(),ne==="select"||ne==="input"&&q.type==="file")var fe=$2;else if(Yp(q))if(Jp)fe=K2;else{fe=W2;var pe=H2}else(ne=q.nodeName)&&ne.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(fe=q2);if(fe&&(fe=fe(r,z))){Xp(Q,fe,a,K);break e}pe&&pe(r,q,z),r==="focusout"&&(pe=q._wrapperState)&&pe.controlled&&q.type==="number"&&xn(q,"number",q.value)}switch(pe=z?Ys(z):window,r){case"focusin":(Yp(pe)||pe.contentEditable==="true")&&(qs=pe,au=z,lo=null);break;case"focusout":lo=au=qs=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,om(Q,a,K);break;case"selectionchange":if(Y2)break;case"keydown":case"keyup":om(Q,a,K)}var me;if(ru)e:{switch(r){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Ws?Qp(r,a)&&(Se="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Wp&&a.locale!=="ko"&&(Ws||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Ws&&(me=zp()):(mr=K,Xc="value"in mr?mr.value:mr.textContent,Ws=!0)),pe=$a(z,Se),0<pe.length&&(Se=new $p(Se,r,null,a,K),Q.push({event:Se,listeners:pe}),me?Se.data=me:(me=Gp(a),me!==null&&(Se.data=me)))),(me=I2?B2(r,a):z2(r,a))&&(z=$a(z,"onBeforeInput"),0<z.length&&(K=new $p("onBeforeInput","beforeinput",null,a,K),Q.push({event:K,listeners:z}),K.data=me))}mm(Q,i)})}function fo(r,i,a){return{instance:r,listener:i,currentTarget:a}}function $a(r,i){for(var a=i+"Capture",u=[];r!==null;){var g=r,v=g.stateNode;g.tag===5&&v!==null&&(g=v,v=qi(r,a),v!=null&&u.unshift(fo(r,v,g)),v=qi(r,i),v!=null&&u.push(fo(r,v,g))),r=r.return}return u}function Qs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function ym(r,i,a,u,g){for(var v=i._reactName,b=[];a!==null&&a!==u;){var R=a,j=R.alternate,z=R.stateNode;if(j!==null&&j===u)break;R.tag===5&&z!==null&&(R=z,g?(j=qi(a,v),j!=null&&b.unshift(fo(a,j,R))):g||(j=qi(a,v),j!=null&&b.push(fo(a,j,R)))),a=a.return}b.length!==0&&r.push({event:i,listeners:b})}var eS=/\r\n?/g,tS=/\u0000|\uFFFD/g;function vm(r){return(typeof r=="string"?r:""+r).replace(eS,`
39`).replace(tS,"")}function Ha(r,i,a){if(i=vm(i),vm(r)!==i&&a)throw Error(n(425))}function Wa(){}var pu=null,mu=null;function gu(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var yu=typeof setTimeout=="function"?setTimeout:void 0,nS=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,rS=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(r){return xm.resolve(null).then(r).catch(sS)}:yu;function sS(r){setTimeout(function(){throw r})}function vu(r,i){var a=i,u=0;do{var g=a.nextSibling;if(r.removeChild(a),g&&g.nodeType===8)if(a=g.data,a==="/$"){if(u===0){r.removeChild(g),to(i);return}u--}else a!=="$"&&a!=="$?"&&a!=="$!"||u++;a=g}while(a);to(i)}function yr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function wm(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return r;i--}else a==="/$"&&i++}r=r.previousSibling}return null}var Gs=Math.random().toString(36).slice(2),On="__reactFiber$"+Gs,ho="__reactProps$"+Gs,qn="__reactContainer$"+Gs,xu="__reactEvents$"+Gs,iS="__reactListeners$"+Gs,oS="__reactHandles$"+Gs;function es(r){var i=r[On];if(i)return i;for(var a=r.parentNode;a;){if(i=a[qn]||a[On]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=wm(r);r!==null;){if(a=r[On])return a;r=wm(r)}return i}r=a,a=r.parentNode}return null}function po(r){return r=r[On]||r[qn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ys(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function qa(r){return r[ho]||null}var wu=[],Xs=-1;function vr(r){return{current:r}}function Ke(r){0>Xs||(r.current=wu[Xs],wu[Xs]=null,Xs--)}function $e(r,i){Xs++,wu[Xs]=r.current,r.current=i}var xr={},Pt=vr(xr),Ut=vr(!1),ts=xr;function Js(r,i){var a=r.type.contextTypes;if(!a)return xr;var u=r.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var g={},v;for(v in a)g[v]=i[v];return u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=g),g}function Vt(r){return r=r.childContextTypes,r!=null}function Ka(){Ke(Ut),Ke(Pt)}function bm(r,i,a){if(Pt.current!==xr)throw Error(n(168));$e(Pt,i),$e(Ut,a)}function Sm(r,i,a){var u=r.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return a;u=u.getChildContext();for(var g in u)if(!(g in i))throw Error(n(108,ke(r)||"Unknown",g));return U({},a,u)}function Qa(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||xr,ts=Pt.current,$e(Pt,r),$e(Ut,Ut.current),!0}function _m(r,i,a){var u=r.stateNode;if(!u)throw Error(n(169));a?(r=Sm(r,i,ts),u.__reactInternalMemoizedMergedChildContext=r,Ke(Ut),Ke(Pt),$e(Pt,r)):Ke(Ut),$e(Ut,a)}var Kn=null,Ga=!1,bu=!1;function km(r){Kn===null?Kn=[r]:Kn.push(r)}function aS(r){Ga=!0,km(r)}function wr(){if(!bu&&Kn!==null){bu=!0;var r=0,i=Ve;try{var a=Kn;for(Ve=1;r<a.length;r++){var u=a[r];do u=u(!0);while(u!==null)}Kn=null,Ga=!1}catch(g){throw Kn!==null&&(Kn=Kn.slice(r+1)),Cp($c,wr),g}finally{Ve=i,bu=!1}}return null}var Zs=[],ei=0,Ya=null,Xa=0,on=[],an=0,ns=null,Qn=1,Gn="";function rs(r,i){Zs[ei++]=Xa,Zs[ei++]=Ya,Ya=r,Xa=i}function Em(r,i,a){on[an++]=Qn,on[an++]=Gn,on[an++]=ns,ns=r;var u=Qn;r=Gn;var g=32-wn(u)-1;u&=~(1<<g),a+=1;var v=32-wn(i)+g;if(30<v){var b=g-g%5;v=(u&(1<<b)-1).toString(32),u>>=b,g-=b,Qn=1<<32-wn(i)+g|a<<g|u,Gn=v+r}else Qn=1<<v|a<<g|u,Gn=r}function Su(r){r.return!==null&&(rs(r,1),Em(r,1,0))}function _u(r){for(;r===Ya;)Ya=Zs[--ei],Zs[ei]=null,Xa=Zs[--ei],Zs[ei]=null;for(;r===ns;)ns=on[--an],on[an]=null,Gn=on[--an],on[an]=null,Qn=on[--an],on[an]=null}var Xt=null,Jt=null,Ye=!1,Sn=null;function Cm(r,i){var a=dn(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=r,i=r.deletions,i===null?(r.deletions=[a],r.flags|=16):i.push(a)}
vendor: 4,296 bytes, line 39
39function Tm(r,i){switch(r.tag){case 5:var a=r.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Xt=r,Jt=yr(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Xt=r,Jt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=ns!==null?{id:Qn,overflow:Gn}:null,r.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=dn(18,null,null,0),a.stateNode=i,a.return=r,r.child=a,Xt=r,Jt=null,!0):!1;default:return!1}}function ku(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Eu(r){if(Ye){var i=Jt;if(i){var a=i;if(!Tm(r,i)){if(ku(r))throw Error(n(418));i=yr(a.nextSibling);var u=Xt;i&&Tm(r,i)?Cm(u,a):(r.flags=r.flags&-4097|2,Ye=!1,Xt=r)}}else{if(ku(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ye=!1,Xt=r}}}function Rm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Xt=r}function Ja(r){if(r!==Xt)return!1;if(!Ye)return Rm(r),Ye=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!gu(r.type,r.memoizedProps)),i&&(i=Jt)){if(ku(r))throw Pm(),Error(n(418));for(;i;)Cm(r,i),i=yr(i.nextSibling)}if(Rm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(i===0){Jt=yr(r.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}r=r.nextSibling}Jt=null}}else Jt=Xt?yr(r.stateNode.nextSibling):null;return!0}function Pm(){for(var r=Jt;r;)r=yr(r.nextSibling)}function ti(){Jt=Xt=null,Ye=!1}function Cu(r){Sn===null?Sn=[r]:Sn.push(r)}var lS=A.ReactCurrentBatchConfig;function mo(r,i,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var u=a.stateNode}if(!u)throw Error(n(147,r));var g=u,v=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===v?i.ref:(i=function(b){var R=g.refs;b===null?delete R[v]:R[v]=b},i._stringRef=v,i)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function Za(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Am(r){var i=r._init;return i(r._payload)}function jm(r){function i(M,F){if(r){var I=M.deletions;I===null?(M.deletions=[F],M.flags|=16):I.push(F)}}function a(M,F){if(!r)return null;for(;F!==null;)i(M,F),F=F.sibling;return null}function u(M,F){for(M=new Map;F!==null;)F.key!==null?M.set(F.key,F):M.set(F.index,F),F=F.sibling;return M}function g(M,F){return M=Rr(M,F),M.index=0,M.sibling=null,M}function v(M,F,I){return M.index=I,r?(I=M.alternate,I!==null?(I=I.index,I<F?(M.flags|=2,F):I):(M.flags|=2,F)):(M.flags|=1048576,F)}function b(M){return r&&M.alternate===null&&(M.flags|=2),M}function R(M,F,I,Y){return F===null||F.tag!==6?(F=yd(I,M.mode,Y),F.return=M,F):(F=g(F,I),F.return=M,F)}function j(M,F,I,Y){var fe=I.type;return fe===X?K(M,F,I.props.children,Y,I.key):F!==null&&(F.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===Te&&Am(fe)===F.type)?(Y=g(F,I.props),Y.ref=mo(M,F,I),Y.return=M,Y):(Y=_l(I.type,I.key,I.props,null,M.mode,Y),Y.ref=mo(M,F,I),Y.return=M,Y)}function z(M,F,I,Y){return F===null||F.tag!==4||F.stateNode.containerInfo!==I.containerInfo||F.stateNode.implementation!==I.implementation?(F=vd(I,M.mode,Y),F.return=M,F):(F=g(F,I.children||[]),F.return=M,F)}function K(M,F,I,Y,fe){return F===null||F.tag!==7?(F=ds(I,M.mode,Y,fe),F.return=M,F):(F=g(F,I),F.return=M,F)}function Q(M,F,I){if(typeof F=="string"&&F!==""||typeof F=="number")return F=yd(""+F,M.mode,I),F.return=M,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case D:return I=_l(F.type,F.key,F.props,null,M.mode,I),I.ref=mo(M,null,F),I.return=M,I;case V:return F=vd(F,M.mode,I),F.return=M,F;case Te:var Y=F._init;return Q(M,Y(F._payload),I)}if(cr(F)||te(F))return F=ds(F,M.mode,I,null),F.return=M,F;Za(M,F)}return null}function q(M,F,I,Y){var fe=F!==null?F.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return fe!==null?null:R(M,F,""+I,Y);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case D:return I.key===fe?j(M,F,I,Y):null;case V:return I.key===fe?z(M,F,I,Y):null;case Te:return fe=I._init,q(M,F,fe(I._payload),Y)}
vendor: 6,770 bytes, line 39
39if(cr(I)||te(I))return fe!==null?null:K(M,F,I,Y,null);Za(M,I)}return null}function ne(M,F,I,Y,fe){if(typeof Y=="string"&&Y!==""||typeof Y=="number")return M=M.get(I)||null,R(F,M,""+Y,fe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case D:return M=M.get(Y.key===null?I:Y.key)||null,j(F,M,Y,fe);case V:return M=M.get(Y.key===null?I:Y.key)||null,z(F,M,Y,fe);case Te:var pe=Y._init;return ne(M,F,I,pe(Y._payload),fe)}if(cr(Y)||te(Y))return M=M.get(I)||null,K(F,M,Y,fe,null);Za(F,Y)}return null}function ae(M,F,I,Y){for(var fe=null,pe=null,me=F,Se=F=0,xt=null;me!==null&&Se<I.length;Se++){me.index>Se?(xt=me,me=null):xt=me.sibling;var Ie=q(M,me,I[Se],Y);if(Ie===null){me===null&&(me=xt);break}r&&me&&Ie.alternate===null&&i(M,me),F=v(Ie,F,Se),pe===null?fe=Ie:pe.sibling=Ie,pe=Ie,me=xt}if(Se===I.length)return a(M,me),Ye&&rs(M,Se),fe;if(me===null){for(;Se<I.length;Se++)me=Q(M,I[Se],Y),me!==null&&(F=v(me,F,Se),pe===null?fe=me:pe.sibling=me,pe=me);return Ye&&rs(M,Se),fe}for(me=u(M,me);Se<I.length;Se++)xt=ne(me,M,Se,I[Se],Y),xt!==null&&(r&&xt.alternate!==null&&me.delete(xt.key===null?Se:xt.key),F=v(xt,F,Se),pe===null?fe=xt:pe.sibling=xt,pe=xt);return r&&me.forEach(function(Pr){return i(M,Pr)}),Ye&&rs(M,Se),fe}function de(M,F,I,Y){var fe=te(I);if(typeof fe!="function")throw Error(n(150));if(I=fe.call(I),I==null)throw Error(n(151));for(var pe=fe=null,me=F,Se=F=0,xt=null,Ie=I.next();me!==null&&!Ie.done;Se++,Ie=I.next()){me.index>Se?(xt=me,me=null):xt=me.sibling;var Pr=q(M,me,Ie.value,Y);if(Pr===null){me===null&&(me=xt);break}r&&me&&Pr.alternate===null&&i(M,me),F=v(Pr,F,Se),pe===null?fe=Pr:pe.sibling=Pr,pe=Pr,me=xt}if(Ie.done)return a(M,me),Ye&&rs(M,Se),fe;if(me===null){for(;!Ie.done;Se++,Ie=I.next())Ie=Q(M,Ie.value,Y),Ie!==null&&(F=v(Ie,F,Se),pe===null?fe=Ie:pe.sibling=Ie,pe=Ie);return Ye&&rs(M,Se),fe}for(me=u(M,me);!Ie.done;Se++,Ie=I.next())Ie=ne(me,M,Se,Ie.value,Y),Ie!==null&&(r&&Ie.alternate!==null&&me.delete(Ie.key===null?Se:Ie.key),F=v(Ie,F,Se),pe===null?fe=Ie:pe.sibling=Ie,pe=Ie);return r&&me.forEach(function(US){return i(M,US)}),Ye&&rs(M,Se),fe}function it(M,F,I,Y){if(typeof I=="object"&&I!==null&&I.type===X&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case D:e:{for(var fe=I.key,pe=F;pe!==null;){if(pe.key===fe){if(fe=I.type,fe===X){if(pe.tag===7){a(M,pe.sibling),F=g(pe,I.props.children),F.return=M,M=F;break e}}else if(pe.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===Te&&Am(fe)===pe.type){a(M,pe.sibling),F=g(pe,I.props),F.ref=mo(M,pe,I),F.return=M,M=F;break e}a(M,pe);break}else i(M,pe);pe=pe.sibling}I.type===X?(F=ds(I.props.children,M.mode,Y,I.key),F.return=M,M=F):(Y=_l(I.type,I.key,I.props,null,M.mode,Y),Y.ref=mo(M,F,I),Y.return=M,M=Y)}return b(M);case V:e:{for(pe=I.key;F!==null;){if(F.key===pe)if(F.tag===4&&F.stateNode.containerInfo===I.containerInfo&&F.stateNode.implementation===I.implementation){a(M,F.sibling),F=g(F,I.children||[]),F.return=M,M=F;break e}else{a(M,F);break}else i(M,F);F=F.sibling}F=vd(I,M.mode,Y),F.return=M,M=F}return b(M);case Te:return pe=I._init,it(M,F,pe(I._payload),Y)}if(cr(I))return ae(M,F,I,Y);if(te(I))return de(M,F,I,Y);Za(M,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,F!==null&&F.tag===6?(a(M,F.sibling),F=g(F,I),F.return=M,M=F):(a(M,F),F=yd(I,M.mode,Y),F.return=M,M=F),b(M)):a(M,F)}return it}var ni=jm(!0),Nm=jm(!1),el=vr(null),tl=null,ri=null,Tu=null;function Ru(){Tu=ri=tl=null}function Pu(r){var i=el.current;Ke(el),r._currentValue=i}function Au(r,i,a){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===a)break;r=r.return}}function si(r,i){tl=r,Tu=ri=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&($t=!0),r.firstContext=null)}function ln(r){var i=r._currentValue;if(Tu!==r)if(r={context:r,memoizedValue:i,next:null},ri===null){if(tl===null)throw Error(n(308));ri=r,tl.dependencies={lanes:0,firstContext:r}}else ri=ri.next=r;return i}var ss=null;function ju(r){ss===null?ss=[r]:ss.push(r)}function Om(r,i,a,u){var g=i.interleaved;return g===null?(a.next=a,ju(i)):(a.next=g.next,g.next=a),i.interleaved=a,Yn(r,u)}function Yn(r,i){r.lanes|=i;var a=r.alternate;for(a!==null&&(a.lanes|=i),a=r,r=r.return;r!==null;)r.childLanes|=i,a=r.alternate,a!==null&&(a.childLanes|=i),a=r,r=r.return;return a.tag===3?a.stateNode:null}var br=!1;function Nu(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fm(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Xn(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Sr(r,i,a){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(Me&2)!==0){var g=u.pending;return g===null?i.next=i:(i.next=g.next,g.next=i),u.pending=i,Yn(r,a)}return g=u.interleaved,g===null?(i.next=i,ju(u)):(i.next=g.next,g.next=i),u.interleaved=i,Yn(r,a)}function nl(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var u=i.lanes;u&=r.pendingLanes,a|=u,i.lanes=a,qc(r,a)}}function Lm(r,i){var a=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var g=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};v===null?g=v=b:v=v.next=b,a=a.next}while(a!==null);v===null?g=v=i:v=v.next=i}else g=v=i;a={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:u.shared,effects:u.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function rl(r,i,a,u){var g=r.updateQueue;br=!1;var v=g.firstBaseUpdate,b=g.lastBaseUpdate,R=g.shared.pending;if(R!==null){g.shared.pending=null;var j=R,z=j.next;j.next=null,b===null?v=z:b.next=z,b=j;var K=r.alternate;K!==null&&(K=K.updateQueue,R=K.lastBaseUpdate,R!==b&&(R===null?K.firstBaseUpdate=z:R.next=z,K.lastBaseUpdate=j))}if(v!==null){var Q=g.baseState;b=0,K=z=j=null,R=v;do{var q=R.lane,ne=R.eventTime;if((u&q)===q){K!==null&&(K=K.next={eventTime:ne,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ae=r,de=R;switch(q=i,ne=a,de.tag){case 1:if(ae=de.payload,typeof ae=="function"){Q=ae.call(ne,Q,q);break e}Q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=de.payload,q=typeof ae=="function"?ae.call(ne,Q,q):ae,q==null)break e;Q=U({},Q,q);break e;case 2:br=!0}}R.callback!==null&&R.lane!==0&&(r.flags|=64,q=g.effects,q===null?g.effects=[R]:q.push(R))}else ne={eventTime:ne,lane:q,tag:R.tag,payload:R.payload,callback:R.callback,next:null}
vendor: 8,674 bytes, line 39
39,K===null?(z=K=ne,j=Q):K=K.next=ne,b|=q;if(R=R.next,R===null){if(R=g.shared.pending,R===null)break;q=R,R=q.next,q.next=null,g.lastBaseUpdate=q,g.shared.pending=null}}while(!0);if(K===null&&(j=Q),g.baseState=j,g.firstBaseUpdate=z,g.lastBaseUpdate=K,i=g.shared.interleaved,i!==null){g=i;do b|=g.lane,g=g.next;while(g!==i)}else v===null&&(g.shared.lanes=0);as|=b,r.lanes=b,r.memoizedState=Q}}function Dm(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var u=r[i],g=u.callback;if(g!==null){if(u.callback=null,u=a,typeof g!="function")throw Error(n(191,g));g.call(u)}}}var go={},Fn=vr(go),yo=vr(go),vo=vr(go);function is(r){if(r===go)throw Error(n(174));return r}function Ou(r,i){switch($e(vo,i),$e(yo,r),$e(Fn,go),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Fc(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Fc(i,r)}Ke(Fn),$e(Fn,i)}function ii(){Ke(Fn),Ke(yo),Ke(vo)}function Mm(r){is(vo.current);var i=is(Fn.current),a=Fc(i,r.type);i!==a&&($e(yo,r),$e(Fn,a))}function Fu(r){yo.current===r&&(Ke(Fn),Ke(yo))}var Xe=vr(0);function sl(r){for(var i=r;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Lu=[];function Du(){for(var r=0;r<Lu.length;r++)Lu[r]._workInProgressVersionPrimary=null;Lu.length=0}var il=A.ReactCurrentDispatcher,Mu=A.ReactCurrentBatchConfig,os=0,Je=null,ht=null,yt=null,ol=!1,xo=!1,wo=0,cS=0;function At(){throw Error(n(321))}function Iu(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!bn(r[a],i[a]))return!1;return!0}function Bu(r,i,a,u,g,v){if(os=v,Je=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,il.current=r===null||r.memoizedState===null?hS:pS,r=a(u,g),xo){v=0;do{if(xo=!1,wo=0,25<=v)throw Error(n(301));v+=1,yt=ht=null,i.updateQueue=null,il.current=mS,r=a(u,g)}while(xo)}if(il.current=cl,i=ht!==null&&ht.next!==null,os=0,yt=ht=Je=null,ol=!1,i)throw Error(n(300));return r}function zu(){var r=wo!==0;return wo=0,r}function Ln(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Je.memoizedState=yt=r:yt=yt.next=r,yt}function cn(){if(ht===null){var r=Je.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var i=yt===null?Je.memoizedState:yt.next;if(i!==null)yt=i,ht=r;else{if(r===null)throw Error(n(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},yt===null?Je.memoizedState=yt=r:yt=yt.next=r}return yt}function bo(r,i){return typeof i=="function"?i(r):i}function Uu(r){var i=cn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var u=ht,g=u.baseQueue,v=a.pending;if(v!==null){if(g!==null){var b=g.next;g.next=v.next,v.next=b}u.baseQueue=g=v,a.pending=null}if(g!==null){v=g.next,u=u.baseState;var R=b=null,j=null,z=v;do{var K=z.lane;if((os&K)===K)j!==null&&(j=j.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),u=z.hasEagerState?z.eagerState:r(u,z.action);else{var Q={lane:K,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};j===null?(R=j=Q,b=u):j=j.next=Q,Je.lanes|=K,as|=K}z=z.next}while(z!==null&&z!==v);j===null?b=u:j.next=R,bn(u,i.memoizedState)||($t=!0),i.memoizedState=u,i.baseState=b,i.baseQueue=j,a.lastRenderedState=u}if(r=a.interleaved,r!==null){g=r;do v=g.lane,Je.lanes|=v,as|=v,g=g.next;while(g!==r)}else g===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function Vu(r){var i=cn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var u=a.dispatch,g=a.pending,v=i.memoizedState;if(g!==null){a.pending=null;var b=g=g.next;do v=r(v,b.action),b=b.next;while(b!==g);bn(v,i.memoizedState)||($t=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),a.lastRenderedState=v}return[v,u]}function Im(){}function Bm(r,i){var a=Je,u=cn(),g=i(),v=!bn(u.memoizedState,g);if(v&&(u.memoizedState=g,$t=!0),u=u.queue,$u(Vm.bind(null,a,u,r),[r]),u.getSnapshot!==i||v||yt!==null&&yt.memoizedState.tag&1){if(a.flags|=2048,So(9,Um.bind(null,a,u,g,i),void 0,null),vt===null)throw Error(n(349));(os&30)!==0||zm(a,i,g)}return g}function zm(r,i,a){r.flags|=16384,r={getSnapshot:i,value:a},i=Je.updateQueue,i===null?(i={lastEffect:null,stores:null},Je.updateQueue=i,i.stores=[r]):(a=i.stores,a===null?i.stores=[r]:a.push(r))}function Um(r,i,a,u){i.value=a,i.getSnapshot=u,$m(i)&&Hm(r)}function Vm(r,i,a){return a(function(){$m(i)&&Hm(r)})}function $m(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!bn(r,a)}catch{return!0}}function Hm(r){var i=Yn(r,1);i!==null&&Cn(i,r,1,-1)}function Wm(r){var i=Ln();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:r},i.queue=r,r=r.dispatch=fS.bind(null,Je,r),[i.memoizedState,r]}function So(r,i,a,u){return r={tag:r,create:i,destroy:a,deps:u,next:null},i=Je.updateQueue,i===null?(i={lastEffect:null,stores:null},Je.updateQueue=i,i.lastEffect=r.next=r):(a=i.lastEffect,a===null?i.lastEffect=r.next=r:(u=a.next,a.next=r,r.next=u,i.lastEffect=r)),r}function qm(){return cn().memoizedState}function al(r,i,a,u){var g=Ln();Je.flags|=r,g.memoizedState=So(1|i,a,void 0,u===void 0?null:u)}function ll(r,i,a,u){var g=cn();u=u===void 0?null:u;var v=void 0;if(ht!==null){var b=ht.memoizedState;if(v=b.destroy,u!==null&&Iu(u,b.deps)){g.memoizedState=So(i,a,v,u);return}}Je.flags|=r,g.memoizedState=So(1|i,a,v,u)}function Km(r,i){return al(8390656,8,r,i)}function $u(r,i){return ll(2048,8,r,i)}function Qm(r,i){return ll(4,2,r,i)}function Gm(r,i){return ll(4,4,r,i)}function Ym(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function Xm(r,i,a){return a=a!=null?a.concat([r]):null,ll(4,4,Ym.bind(null,i,r),a)}function Hu(){}function Jm(r,i){var a=cn();i=i===void 0?null:i;var u=a.memoizedState;return u!==null&&i!==null&&Iu(i,u[1])?u[0]:(a.memoizedState=[r,i],r)}function Zm(r,i){var a=cn();i=i===void 0?null:i;var u=a.memoizedState;return u!==null&&i!==null&&Iu(i,u[1])?u[0]:(r=r(),a.memoizedState=[r,i],r)}function eg(r,i,a){return(os&21)===0?(r.baseState&&(r.baseState=!1,$t=!0),r.memoizedState=a):(bn(a,i)||(a=Ap(),Je.lanes|=a,as|=a,r.baseState=!0),i)}function uS(r,i){var a=Ve;Ve=a!==0&&4>a?a:4,r(!0);var u=Mu.transition;Mu.transition={};try{r(!1),i()}finally{Ve=a,Mu.transition=u}}function tg(){return cn().memoizedState}function dS(r,i,a){var u=Cr(r);if(a={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null},ng(r))rg(i,a);else if(a=Om(r,i,a,u),a!==null){var g=Bt();Cn(a,r,u,g),sg(a,i,u)}}function fS(r,i,a){var u=Cr(r),g={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null};if(ng(r))rg(i,g);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var b=i.lastRenderedState,R=v(b,a);if(g.hasEagerState=!0,g.eagerState=R,bn(R,b)){var j=i.interleaved;j===null?(g.next=g,ju(i)):(g.next=j.next,j.next=g),i.interleaved=g;return}}catch{}finally{}a=Om(r,i,g,u),a!==null&&(g=Bt(),Cn(a,r,u,g),sg(a,i,u))}}function ng(r){var i=r.alternate;return r===Je||i!==null&&i===Je}function rg(r,i){xo=ol=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function sg(r,i,a){if((a&4194240)!==0){var u=i.lanes;u&=r.pendingLanes,a|=u,i.lanes=a,qc(r,a)}}var cl={readContext:ln,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},hS={readContext:ln,useCallback:function(r,i){return Ln().memoizedState=[r,i===void 0?null:i],r},useContext:ln,useEffect:Km,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,al(4194308,4,Ym.bind(null,i,r),a)},useLayoutEffect:function(r,i){return al(4194308,4,r,i)},useInsertionEffect:function(r,i){return al(4,2,r,i)},useMemo:function(r,i){var a=Ln();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var u=Ln();return i=a!==void 0?a(i):i,u.memoizedState=u.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},u.queue=r,r=r.dispatch=dS.bind(null,Je,r),[u.memoizedState,r]}
vendor: 7,454 bytes, lines 39-41
39,useRef:function(r){var i=Ln();return r={current:r},i.memoizedState=r},useState:Wm,useDebugValue:Hu,useDeferredValue:function(r){return Ln().memoizedState=r},useTransition:function(){var r=Wm(!1),i=r[0];return r=uS.bind(null,r[1]),Ln().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var u=Je,g=Ln();if(Ye){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),vt===null)throw Error(n(349));(os&30)!==0||zm(u,i,a)}g.memoizedState=a;var v={value:a,getSnapshot:i};return g.queue=v,Km(Vm.bind(null,u,v,r),[r]),u.flags|=2048,So(9,Um.bind(null,u,v,a,i),void 0,null),a},useId:function(){var r=Ln(),i=vt.identifierPrefix;if(Ye){var a=Gn,u=Qn;a=(u&~(1<<32-wn(u)-1)).toString(32)+a,i=":"+i+"R"+a,a=wo++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=cS++,i=":"+i+"r"+a.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},pS={readContext:ln,useCallback:Jm,useContext:ln,useEffect:$u,useImperativeHandle:Xm,useInsertionEffect:Qm,useLayoutEffect:Gm,useMemo:Zm,useReducer:Uu,useRef:qm,useState:function(){return Uu(bo)},useDebugValue:Hu,useDeferredValue:function(r){var i=cn();return eg(i,ht.memoizedState,r)},useTransition:function(){var r=Uu(bo)[0],i=cn().memoizedState;return[r,i]},useMutableSource:Im,useSyncExternalStore:Bm,useId:tg,unstable_isNewReconciler:!1},mS={readContext:ln,useCallback:Jm,useContext:ln,useEffect:$u,useImperativeHandle:Xm,useInsertionEffect:Qm,useLayoutEffect:Gm,useMemo:Zm,useReducer:Vu,useRef:qm,useState:function(){return Vu(bo)},useDebugValue:Hu,useDeferredValue:function(r){var i=cn();return ht===null?i.memoizedState=r:eg(i,ht.memoizedState,r)},useTransition:function(){var r=Vu(bo)[0],i=cn().memoizedState;return[r,i]},useMutableSource:Im,useSyncExternalStore:Bm,useId:tg,unstable_isNewReconciler:!1};function _n(r,i){if(r&&r.defaultProps){i=U({},i),r=r.defaultProps;for(var a in r)i[a]===void 0&&(i[a]=r[a]);return i}return i}function Wu(r,i,a,u){i=r.memoizedState,a=a(u,i),a=a==null?i:U({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var ul={isMounted:function(r){return(r=r._reactInternals)?Zr(r)===r:!1},enqueueSetState:function(r,i,a){r=r._reactInternals;var u=Bt(),g=Cr(r),v=Xn(u,g);v.payload=i,a!=null&&(v.callback=a),i=Sr(r,v,g),i!==null&&(Cn(i,r,g,u),nl(i,r,g))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var u=Bt(),g=Cr(r),v=Xn(u,g);v.tag=1,v.payload=i,a!=null&&(v.callback=a),i=Sr(r,v,g),i!==null&&(Cn(i,r,g,u),nl(i,r,g))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=Bt(),u=Cr(r),g=Xn(a,u);g.tag=2,i!=null&&(g.callback=i),i=Sr(r,g,u),i!==null&&(Cn(i,r,u,a),nl(i,r,u))}};function ig(r,i,a,u,g,v,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,v,b):i.prototype&&i.prototype.isPureReactComponent?!ao(a,u)||!ao(g,v):!0}function og(r,i,a){var u=!1,g=xr,v=i.contextType;return typeof v=="object"&&v!==null?v=ln(v):(g=Vt(i)?ts:Pt.current,u=i.contextTypes,v=(u=u!=null)?Js(r,g):xr),i=new i(a,v),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ul,r.stateNode=i,i._reactInternals=r,u&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=g,r.__reactInternalMemoizedMaskedChildContext=v),i}function ag(r,i,a,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,u),i.state!==r&&ul.enqueueReplaceState(i,i.state,null)}function qu(r,i,a,u){var g=r.stateNode;g.props=a,g.state=r.memoizedState,g.refs={},Nu(r);var v=i.contextType;typeof v=="object"&&v!==null?g.context=ln(v):(v=Vt(i)?ts:Pt.current,g.context=Js(r,v)),g.state=r.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(Wu(r,i,v,a),g.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(i=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),i!==g.state&&ul.enqueueReplaceState(g,g.state,null),rl(r,a,g,u),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308)}function oi(r,i){try{var a="",u=i;do a+=ve(u),u=u.return;while(u);var g=a}catch(v){g=`
40Error generating stack: `+v.message+`
41`+v.stack}return{value:r,source:i,stack:g,digest:null}}function Ku(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function Qu(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var gS=typeof WeakMap=="function"?WeakMap:Map;function lg(r,i,a){a=Xn(-1,a),a.tag=3,a.payload={element:null};var u=i.value;return a.callback=function(){yl||(yl=!0,cd=u),Qu(r,i)},a}function cg(r,i,a){a=Xn(-1,a),a.tag=3;var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var g=i.value;a.payload=function(){return u(g)},a.callback=function(){Qu(r,i)}}var v=r.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(a.callback=function(){Qu(r,i),typeof u!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),a}function ug(r,i,a){var u=r.pingCache;if(u===null){u=r.pingCache=new gS;var g=new Set;u.set(i,g)}else g=u.get(i),g===void 0&&(g=new Set,u.set(i,g));g.has(a)||(g.add(a),r=AS.bind(null,r,i,a),i.then(r,r))}function dg(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function fg(r,i,a,u,g){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=Xn(-1,1),i.tag=2,Sr(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=g,r)}var yS=A.ReactCurrentOwner,$t=!1;function It(r,i,a,u){i.child=r===null?Nm(i,null,a,u):ni(i,r.child,a,u)}function hg(r,i,a,u,g){a=a.render;var v=i.ref;return si(i,g),u=Bu(r,i,a,u,v,g),a=zu(),r!==null&&!$t?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~g,Jn(r,i,g)):(Ye&&a&&Su(i),i.flags|=1,It(r,i,u,g),i.child)}function pg(r,i,a,u,g){if(r===null){var v=a.type;return typeof v=="function"&&!gd(v)&&v.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=v,mg(r,i,v,u,g)):(r=_l(a.type,null,u,i,i.mode,g),r.ref=i.ref,r.return=i,i.child=r)}if(v=r.child,(r.lanes&g)===0){var b=v.memoizedProps;if(a=a.compare,a=a!==null?a:ao,a(b,u)&&r.ref===i.ref)return Jn(r,i,g)}return i.flags|=1,r=Rr(v,u),r.ref=i.ref,r.return=i,i.child=r}function mg(r,i,a,u,g){if(r!==null){var v=r.memoizedProps;if(ao(v,u)&&r.ref===i.ref)if($t=!1,i.pendingProps=u=v,(r.lanes&g)!==0)(r.flags&131072)!==0&&($t=!0);else return i.lanes=r.lanes,Jn(r,i,g)}return Gu(r,i,a,u,g)}function gg(r,i,a){var u=i.pendingProps,g=u.children,v=r!==null?r.memoizedState:null;if(u.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(li,Zt),Zt|=a;else{if((a&1073741824)===0)return r=v!==null?v.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,$e(li,Zt),Zt|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=v!==null?v.baseLanes:a,$e(li,Zt),Zt|=u}else v!==null?(u=v.baseLanes|a,i.memoizedState=null):u=a,$e(li,Zt),Zt|=u;return It(r,i,g,a),i.child}function yg(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}
vendor: 13,702 bytes, line 41
41function Gu(r,i,a,u,g){var v=Vt(a)?ts:Pt.current;return v=Js(i,v),si(i,g),a=Bu(r,i,a,u,v,g),u=zu(),r!==null&&!$t?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~g,Jn(r,i,g)):(Ye&&u&&Su(i),i.flags|=1,It(r,i,a,g),i.child)}function vg(r,i,a,u,g){if(Vt(a)){var v=!0;Qa(i)}else v=!1;if(si(i,g),i.stateNode===null)fl(r,i),og(i,a,u),qu(i,a,u,g),u=!0;else if(r===null){var b=i.stateNode,R=i.memoizedProps;b.props=R;var j=b.context,z=a.contextType;typeof z=="object"&&z!==null?z=ln(z):(z=Vt(a)?ts:Pt.current,z=Js(i,z));var K=a.getDerivedStateFromProps,Q=typeof K=="function"||typeof b.getSnapshotBeforeUpdate=="function";Q||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R!==u||j!==z)&&ag(i,b,u,z),br=!1;var q=i.memoizedState;b.state=q,rl(i,u,b,g),j=i.memoizedState,R!==u||q!==j||Ut.current||br?(typeof K=="function"&&(Wu(i,a,K,u),j=i.memoizedState),(R=br||ig(i,a,R,u,q,j,z))?(Q||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=j),b.props=u,b.state=j,b.context=z,u=R):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{b=i.stateNode,Fm(r,i),R=i.memoizedProps,z=i.type===i.elementType?R:_n(i.type,R),b.props=z,Q=i.pendingProps,q=b.context,j=a.contextType,typeof j=="object"&&j!==null?j=ln(j):(j=Vt(a)?ts:Pt.current,j=Js(i,j));var ne=a.getDerivedStateFromProps;(K=typeof ne=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R!==Q||q!==j)&&ag(i,b,u,j),br=!1,q=i.memoizedState,b.state=q,rl(i,u,b,g);var ae=i.memoizedState;R!==Q||q!==ae||Ut.current||br?(typeof ne=="function"&&(Wu(i,a,ne,u),ae=i.memoizedState),(z=br||ig(i,a,z,u,q,ae,j)||!1)?(K||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(u,ae,j),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(u,ae,j)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||R===r.memoizedProps&&q===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||R===r.memoizedProps&&q===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=ae),b.props=u,b.state=ae,b.context=j,u=z):(typeof b.componentDidUpdate!="function"||R===r.memoizedProps&&q===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||R===r.memoizedProps&&q===r.memoizedState||(i.flags|=1024),u=!1)}return Yu(r,i,a,u,v,g)}function Yu(r,i,a,u,g,v){yg(r,i);var b=(i.flags&128)!==0;if(!u&&!b)return g&&_m(i,a,!1),Jn(r,i,v);u=i.stateNode,yS.current=i;var R=b&&typeof a.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,r!==null&&b?(i.child=ni(i,r.child,null,v),i.child=ni(i,null,R,v)):It(r,i,R,v),i.memoizedState=u.state,g&&_m(i,a,!0),i.child}function xg(r){var i=r.stateNode;i.pendingContext?bm(r,i.pendingContext,i.pendingContext!==i.context):i.context&&bm(r,i.context,!1),Ou(r,i.containerInfo)}function wg(r,i,a,u,g){return ti(),Cu(g),i.flags|=256,It(r,i,a,u),i.child}var Xu={dehydrated:null,treeContext:null,retryLane:0};function Ju(r){return{baseLanes:r,cachePool:null,transitions:null}}function bg(r,i,a){var u=i.pendingProps,g=Xe.current,v=!1,b=(i.flags&128)!==0,R;if((R=b)||(R=r!==null&&r.memoizedState===null?!1:(g&2)!==0),R?(v=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(g|=1),$e(Xe,g&1),r===null)return Eu(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(b=u.children,r=u.fallback,v?(u=i.mode,v=i.child,b={mode:"hidden",children:b},(u&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=b):v=kl(b,u,0,null),r=ds(r,u,a,null),v.return=i,r.return=i,v.sibling=r,i.child=v,i.child.memoizedState=Ju(a),i.memoizedState=Xu,r):Zu(i,b));if(g=r.memoizedState,g!==null&&(R=g.dehydrated,R!==null))return vS(r,i,b,u,R,g,a);if(v){v=u.fallback,b=i.mode,g=r.child,R=g.sibling;var j={mode:"hidden",children:u.children};return(b&1)===0&&i.child!==g?(u=i.child,u.childLanes=0,u.pendingProps=j,i.deletions=null):(u=Rr(g,j),u.subtreeFlags=g.subtreeFlags&14680064),R!==null?v=Rr(R,v):(v=ds(v,b,a,null),v.flags|=2),v.return=i,u.return=i,u.sibling=v,i.child=u,u=v,v=i.child,b=r.child.memoizedState,b=b===null?Ju(a):{baseLanes:b.baseLanes|a,cachePool:null,transitions:b.transitions},v.memoizedState=b,v.childLanes=r.childLanes&~a,i.memoizedState=Xu,u}return v=r.child,r=v.sibling,u=Rr(v,{mode:"visible",children:u.children}),(i.mode&1)===0&&(u.lanes=a),u.return=i,u.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=u,i.memoizedState=null,u}function Zu(r,i){return i=kl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function dl(r,i,a,u){return u!==null&&Cu(u),ni(i,r.child,null,a),r=Zu(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function vS(r,i,a,u,g,v,b){if(a)return i.flags&256?(i.flags&=-257,u=Ku(Error(n(422))),dl(r,i,b,u)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(v=u.fallback,g=i.mode,u=kl({mode:"visible",children:u.children},g,0,null),v=ds(v,g,b,null),v.flags|=2,u.return=i,v.return=i,u.sibling=v,i.child=u,(i.mode&1)!==0&&ni(i,r.child,null,b),i.child.memoizedState=Ju(b),i.memoizedState=Xu,v);if((i.mode&1)===0)return dl(r,i,b,null);if(g.data==="$!"){if(u=g.nextSibling&&g.nextSibling.dataset,u)var R=u.dgst;return u=R,v=Error(n(419)),u=Ku(v,u,void 0),dl(r,i,b,u)}if(R=(b&r.childLanes)!==0,$t||R){if(u=vt,u!==null){switch(b&-b){case 4:g=2;break;case 16:g=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:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(u.suspendedLanes|b))!==0?0:g,g!==0&&g!==v.retryLane&&(v.retryLane=g,Yn(r,g),Cn(u,r,g,-1))}return md(),u=Ku(Error(n(421))),dl(r,i,b,u)}return g.data==="$?"?(i.flags|=128,i.child=r.child,i=jS.bind(null,r),g._reactRetry=i,null):(r=v.treeContext,Jt=yr(g.nextSibling),Xt=i,Ye=!0,Sn=null,r!==null&&(on[an++]=Qn,on[an++]=Gn,on[an++]=ns,Qn=r.id,Gn=r.overflow,ns=i),i=Zu(i,u.children),i.flags|=4096,i)}function Sg(r,i,a){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),Au(r.return,i,a)}function ed(r,i,a,u,g){var v=r.memoizedState;v===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:g}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=a,v.tailMode=g)}function _g(r,i,a){var u=i.pendingProps,g=u.revealOrder,v=u.tail;if(It(r,i,u.children,a),u=Xe.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Sg(r,a,i);else if(r.tag===19)Sg(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}if($e(Xe,u),(i.mode&1)===0)i.memoizedState=null;else switch(g){case"forwards":for(a=i.child,g=null;a!==null;)r=a.alternate,r!==null&&sl(r)===null&&(g=a),a=a.sibling;a=g,a===null?(g=i.child,i.child=null):(g=a.sibling,a.sibling=null),ed(i,!1,g,a,v);break;case"backwards":for(a=null,g=i.child,i.child=null;g!==null;){if(r=g.alternate,r!==null&&sl(r)===null){i.child=g;break}r=g.sibling,g.sibling=a,a=g,g=r}ed(i,!0,a,null,v);break;case"together":ed(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function fl(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function Jn(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),as|=i.lanes,(a&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,a=Rr(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=Rr(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function xS(r,i,a){switch(i.tag){case 3:xg(i),ti();break;case 5:Mm(i);break;case 1:Vt(i.type)&&Qa(i);break;case 4:Ou(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,g=i.memoizedProps.value;$e(el,u._currentValue),u._currentValue=g;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?($e(Xe,Xe.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?bg(r,i,a):($e(Xe,Xe.current&1),r=Jn(r,i,a),r!==null?r.sibling:null);$e(Xe,Xe.current&1);break;case 19:if(u=(a&i.childLanes)!==0,(r.flags&128)!==0){if(u)return _g(r,i,a);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),$e(Xe,Xe.current),u)break;return null;case 22:case 23:return i.lanes=0,gg(r,i,a)}return Jn(r,i,a)}var kg,td,Eg,Cg;kg=function(r,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},td=function(){},Eg=function(r,i,a,u){var g=r.memoizedProps;if(g!==u){r=i.stateNode,is(Fn.current);var v=null;switch(a){case"input":g=rn(r,g),u=rn(r,u),v=[];break;case"select":g=U({},g,{value:void 0}),u=U({},u,{value:void 0}),v=[];break;case"textarea":g=Wn(r,g),u=Wn(r,u),v=[];break;default:typeof g.onClick!="function"&&typeof u.onClick=="function"&&(r.onclick=Wa)}Lc(a,u);var b;a=null;for(z in g)if(!u.hasOwnProperty(z)&&g.hasOwnProperty(z)&&g[z]!=null)if(z==="style"){var R=g[z];for(b in R)R.hasOwnProperty(b)&&(a||(a={}),a[b]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(o.hasOwnProperty(z)?v||(v=[]):(v=v||[]).push(z,null));for(z in u){var j=u[z];if(R=g!=null?g[z]:void 0,u.hasOwnProperty(z)&&j!==R&&(j!=null||R!=null))if(z==="style")if(R){for(b in R)!R.hasOwnProperty(b)||j&&j.hasOwnProperty(b)||(a||(a={}),a[b]="");for(b in j)j.hasOwnProperty(b)&&R[b]!==j[b]&&(a||(a={}),a[b]=j[b])}else a||(v||(v=[]),v.push(z,a)),a=j;else z==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,R=R?R.__html:void 0,j!=null&&R!==j&&(v=v||[]).push(z,j)):z==="children"?typeof j!="string"&&typeof j!="number"||(v=v||[]).push(z,""+j):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(o.hasOwnProperty(z)?(j!=null&&z==="onScroll"&&qe("scroll",r),v||R===j||(v=[])):(v=v||[]).push(z,j))}a&&(v=v||[]).push("style",a);var z=v;(i.updateQueue=z)&&(i.flags|=4)}},Cg=function(r,i,a,u){a!==u&&(i.flags|=4)};function _o(r,i){if(!Ye)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function jt(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,u=0;if(i)for(var g=r.child;g!==null;)a|=g.lanes|g.childLanes,u|=g.subtreeFlags&14680064,u|=g.flags&14680064,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)a|=g.lanes|g.childLanes,u|=g.subtreeFlags,u|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=u,r.childLanes=a,i}function wS(r,i,a){var u=i.pendingProps;switch(_u(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(i),null;case 1:return Vt(i.type)&&Ka(),jt(i),null;case 3:return u=i.stateNode,ii(),Ke(Ut),Ke(Pt),Du(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(Ja(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sn!==null&&(fd(Sn),Sn=null))),td(r,i),jt(i),null;case 5:Fu(i);var g=is(vo.current);if(a=i.type,r!==null&&i.stateNode!=null)Eg(r,i,a,u,g),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(n(166));return jt(i),null}if(r=is(Fn.current),Ja(i)){u=i.stateNode,a=i.type;var v=i.memoizedProps;switch(u[On]=i,u[ho]=v,r=(i.mode&1)!==0,a){case"dialog":qe("cancel",u),qe("close",u);break;case"iframe":case"object":case"embed":qe("load",u);break;case"video":case"audio":for(g=0;g<co.length;g++)qe(co[g],u);break;case"source":qe("error",u);break;case"img":case"image":case"link":qe("error",u),qe("load",u);break;case"details":qe("toggle",u);break;case"input":sn(u,v),qe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!v.multiple},qe("invalid",u);break;case"textarea":cp(u,v),qe("invalid",u)}Lc(a,v),g=null;for(var b in v)if(v.hasOwnProperty(b)){var R=v[b];b==="children"?typeof R=="string"?u.textContent!==R&&(v.suppressHydrationWarning!==!0&&Ha(u.textContent,R,r),g=["children",R]):typeof R=="number"&&u.textContent!==""+R&&(v.suppressHydrationWarning!==!0&&Ha(u.textContent,R,r),g=["children",""+R]):o.hasOwnProperty(b)&&R!=null&&b==="onScroll"&&qe("scroll",u)}switch(a){case"input":nn(u),vn(u,v,!0);break;case"textarea":nn(u),dp(u);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(u.onclick=Wa)}u=g,i.updateQueue=u,u!==null&&(i.flags|=4)}else{b=g.nodeType===9?g:g.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=fp(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=b.createElement("div"),r.innerHTML="<script><\/script>
41",r=r.removeChild(r.firstChild)):typeof u.is=="string"?r=b.createElement(a,{is:u.is}):(r=b.createElement(a),a==="select"&&(b=r,u.multiple?b.multiple=!0:u.size&&(b.size=u.size))):r=b.createElementNS(r,a),r[On]=i,r[ho]=u,kg(r,i,!1,!1),i.stateNode=r;e:{switch(b=Dc(a,u),a){case"dialog":qe("cancel",r),qe("close",r),g=u;break;case"iframe":case"object":case"embed":qe("load",r),g=u;break;case"video":case"audio":for(g=0;g<co.length;g++)qe(co[g],r);g=u;break;case"source":qe("error",r),g=u;break;case"img":case"image":case"link":qe("error",r),qe("load",r),g=u;break;case"details":qe("toggle",r),g=u;break;case"input":sn(r,u),g=rn(r,u),qe("invalid",r);break;case"option":g=u;break;case"select":r._wrapperState={wasMultiple:!!u.multiple},g=U({},u,{value:void 0}),qe("invalid",r);break;case"textarea":cp(r,u),g=Wn(r,u),qe("invalid",r);break;default:g=u}Lc(a,g),R=g;for(v in R)if(R.hasOwnProperty(v)){var j=R[v];v==="style"?mp(r,j):v==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&hp(r,j)):v==="children"?typeof j=="string"?(a!=="textarea"||j!=="")&&Hi(r,j):typeof j=="number"&&Hi(r,""+j):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(o.hasOwnProperty(v)?j!=null&&v==="onScroll"&&qe("scroll",r):j!=null&&C(r,v,j,b))}switch(a){case"input":nn(r),vn(r,u,!1);break;case"textarea":nn(r),dp(r);break;case"option":u.value!=null&&r.setAttribute("value",""+je(u.value));break;case"select":r.multiple=!!u.multiple,v=u.value,v!=null?ur(r,!!u.multiple,v,!1):u.defaultValue!=null&&ur(r,!!u.multiple,u.defaultValue,!0);break;default:typeof g.onClick=="function"&&(r.onclick=Wa)}switch(a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return jt(i),null;case 6:if(r&&i.stateNode!=null)Cg(r,i,r.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(n(166));if(a=is(vo.current),is(Fn.current),Ja(i)){if(u=i.stateNode,a=i.memoizedProps,u[On]=i,(v=u.nodeValue!==a)&&(r=Xt,r!==null))switch(r.tag){case 3:Ha(u.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Ha(u.nodeValue,a,(r.mode&1)!==0)}v&&(i.flags|=4)}else u=(a.nodeType===9?a:a.ownerDocument).createTextNode(u),u[On]=i,i.stateNode=u}return jt(i),null;case 13:if(Ke(Xe),u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ye&&Jt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Pm(),ti(),i.flags|=98560,v=!1;else if(v=Ja(i),u!==null&&u.dehydrated!==null){if(r===null){if(!v)throw Error(n(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(317));v[On]=i}else ti(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;jt(i),v=!1}else Sn!==null&&(fd(Sn),Sn=null),v=!0;if(!v)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(u=u!==null,u!==(r!==null&&r.memoizedState!==null)&&u&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Xe.current&1)!==0?pt===0&&(pt=3):md())),i.updateQueue!==null&&(i.flags|=4),jt(i),null);case 4:return ii(),td(r,i),r===null&&uo(i.stateNode.containerInfo),jt(i),null;case 10:return Pu(i.type._context),jt(i),null;case 17:return Vt(i.type)&&Ka(),jt(i),null;case 19:if(Ke(Xe),v=i.memoizedState,v===null)return jt(i),null;if(u=(i.flags&128)!==0,b=v.rendering,b===null)if(u)_o(v,!1);else{if(pt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(b=sl(r),b!==null){for(i.flags|=128,_o(v,!1),u=b.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=a,a=i.child;a!==null;)v=a,r=u,v.flags&=14680066,b=v.alternate,b===null?(v.childLanes=0,v.lanes=r,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=b.childLanes,v.lanes=b.lanes,v.child=b.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=b.memoizedProps,v.memoizedState=b.memoizedState,v.updateQueue=b.updateQueue,v.type=b.type,r=b.dependencies,v.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return $e(Xe,Xe.current&1|2),i.child}r=r.sibling}v.tail!==null&&st()>ci&&(i.flags|=128,u=!0,_o(v,!1),i.lanes=4194304)}else{if(!u)if(r=sl(b),r!==null){if(i.flags|=128,u=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),_o(v,!0),v.tail===null&&v.tailMode==="hidden"&&!b.alternate&&!Ye)return jt(i),null}else 2*st()-v.renderingStartTime>ci&&a!==1073741824&&(i.flags|=128,u=!0,_o(v,!1),i.lanes=4194304);v.isBackwards?(b.sibling=i.child,i.child=b):(a=v.last,a!==null?a.sibling=b:i.child=b,v.last=b)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=st(),i.sibling=null,a=Xe.current,$e(Xe,u?a&1|2:a&1),i):(jt(i),null);case 22:case 23:return pd(),u=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==u&&(i.flags|=8192),u&&(i.mode&1)!==0?(Zt&1073741824)!==0&&(jt(i),i.subtreeFlags&6&&(i.flags|=8192)):jt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function bS(r,i){switch(_u(i),i.tag){case 1:return Vt(i.type)&&Ka(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return ii(),Ke(Ut),Ke(Pt),Du(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return Fu(i),null;case 13:if(Ke(Xe),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ti()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Ke(Xe),null;case 4:return ii(),null;case 10:return Pu(i.type._context),null;case 22:case 23:return pd(),null;case 24:return null;default:return null}}var hl=!1,Nt=!1,SS=typeof WeakSet=="function"?WeakSet:Set,oe=null;function ai(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(u){et(r,i,u)}else a.current=null}
vendor: 19,234 bytes, line 41
41function nd(r,i,a){try{a()}catch(u){et(r,i,u)}}var Tg=!1;function _S(r,i){if(pu=Oa,r=im(),ou(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var g=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var b=0,R=-1,j=-1,z=0,K=0,Q=r,q=null;t:for(;;){for(var ne;Q!==a||g!==0&&Q.nodeType!==3||(R=b+g),Q!==v||u!==0&&Q.nodeType!==3||(j=b+u),Q.nodeType===3&&(b+=Q.nodeValue.length),(ne=Q.firstChild)!==null;)q=Q,Q=ne;for(;;){if(Q===r)break t;if(q===a&&++z===g&&(R=b),q===v&&++K===u&&(j=b),(ne=Q.nextSibling)!==null)break;Q=q,q=Q.parentNode}Q=ne}a=R===-1||j===-1?null:{start:R,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(mu={focusedElem:r,selectionRange:a},Oa=!1,oe=i;oe!==null;)if(i=oe,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,oe=r;else for(;oe!==null;){i=oe;try{var ae=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var de=ae.memoizedProps,it=ae.memoizedState,M=i.stateNode,F=M.getSnapshotBeforeUpdate(i.elementType===i.type?de:_n(i.type,de),it);M.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var I=i.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Y){et(i,i.return,Y)}if(r=i.sibling,r!==null){r.return=i.return,oe=r;break}oe=i.return}return ae=Tg,Tg=!1,ae}function ko(r,i,a){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do{if((g.tag&r)===r){var v=g.destroy;g.destroy=void 0,v!==void 0&&nd(i,a,v)}g=g.next}while(g!==u)}}function pl(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var u=a.create;a.destroy=u()}a=a.next}while(a!==i)}}function rd(r){var i=r.ref;if(i!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof i=="function"?i(r):i.current=r}}function Rg(r){var i=r.alternate;i!==null&&(r.alternate=null,Rg(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[On],delete i[ho],delete i[xu],delete i[iS],delete i[oS])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Pg(r){return r.tag===5||r.tag===3||r.tag===4}function Ag(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Pg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function sd(r,i,a){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Wa));else if(u!==4&&(r=r.child,r!==null))for(sd(r,i,a),r=r.sibling;r!==null;)sd(r,i,a),r=r.sibling}function id(r,i,a){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(u!==4&&(r=r.child,r!==null))for(id(r,i,a),r=r.sibling;r!==null;)id(r,i,a),r=r.sibling}var _t=null,kn=!1;function _r(r,i,a){for(a=a.child;a!==null;)jg(r,i,a),a=a.sibling}function jg(r,i,a){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Ta,a)}catch{}switch(a.tag){case 5:Nt||ai(a,i);case 6:var u=_t,g=kn;_t=null,_r(r,i,a),_t=u,kn=g,_t!==null&&(kn?(r=_t,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):_t.removeChild(a.stateNode));break;case 18:_t!==null&&(kn?(r=_t,a=a.stateNode,r.nodeType===8?vu(r.parentNode,a):r.nodeType===1&&vu(r,a),to(r)):vu(_t,a.stateNode));break;case 4:u=_t,g=kn,_t=a.stateNode.containerInfo,kn=!0,_r(r,i,a),_t=u,kn=g;break;case 0:case 11:case 14:case 15:if(!Nt&&(u=a.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){g=u=u.next;do{var v=g,b=v.destroy;v=v.tag,b!==void 0&&((v&2)!==0||(v&4)!==0)&&nd(a,i,b),g=g.next}while(g!==u)}_r(r,i,a);break;case 1:if(!Nt&&(ai(a,i),u=a.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=a.memoizedProps,u.state=a.memoizedState,u.componentWillUnmount()}catch(R){et(a,i,R)}_r(r,i,a);break;case 21:_r(r,i,a);break;case 22:a.mode&1?(Nt=(u=Nt)||a.memoizedState!==null,_r(r,i,a),Nt=u):_r(r,i,a);break;default:_r(r,i,a)}}function Ng(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new SS),i.forEach(function(u){var g=NS.bind(null,r,u);a.has(u)||(a.add(u),u.then(g,g))})}}function En(r,i){var a=i.deletions;if(a!==null)for(var u=0;u<a.length;u++){var g=a[u];try{var v=r,b=i,R=b;e:for(;R!==null;){switch(R.tag){case 5:_t=R.stateNode,kn=!1;break e;case 3:_t=R.stateNode.containerInfo,kn=!0;break e;case 4:_t=R.stateNode.containerInfo,kn=!0;break e}R=R.return}if(_t===null)throw Error(n(160));jg(v,b,g),_t=null,kn=!1;var j=g.alternate;j!==null&&(j.return=null),g.return=null}catch(z){et(g,i,z)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Og(i,r),i=i.sibling}function Og(r,i){var a=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(En(i,r),Dn(r),u&4){try{ko(3,r,r.return),pl(3,r)}catch(de){et(r,r.return,de)}try{ko(5,r,r.return)}catch(de){et(r,r.return,de)}}break;case 1:En(i,r),Dn(r),u&512&&a!==null&&ai(a,a.return);break;case 5:if(En(i,r),Dn(r),u&512&&a!==null&&ai(a,a.return),r.flags&32){var g=r.stateNode;try{Hi(g,"")}catch(de){et(r,r.return,de)}}if(u&4&&(g=r.stateNode,g!=null)){var v=r.memoizedProps,b=a!==null?a.memoizedProps:v,R=r.type,j=r.updateQueue;if(r.updateQueue=null,j!==null)try{R==="input"&&v.type==="radio"&&v.name!=null&&Ee(g,v),Dc(R,b);var z=Dc(R,v);for(b=0;b<j.length;b+=2){var K=j[b],Q=j[b+1];K==="style"?mp(g,Q):K==="dangerouslySetInnerHTML"?hp(g,Q):K==="children"?Hi(g,Q):C(g,K,Q,z)}switch(R){case"input":St(g,v);break;case"textarea":up(g,v);break;case"select":var q=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!v.multiple;var ne=v.value;ne!=null?ur(g,!!v.multiple,ne,!1):q!==!!v.multiple&&(v.defaultValue!=null?ur(g,!!v.multiple,v.defaultValue,!0):ur(g,!!v.multiple,v.multiple?[]:"",!1))}g[ho]=v}catch(de){et(r,r.return,de)}}break;case 6:if(En(i,r),Dn(r),u&4){if(r.stateNode===null)throw Error(n(162));g=r.stateNode,v=r.memoizedProps;try{g.nodeValue=v}catch(de){et(r,r.return,de)}}break;case 3:if(En(i,r),Dn(r),u&4&&a!==null&&a.memoizedState.isDehydrated)try{to(i.containerInfo)}catch(de){et(r,r.return,de)}break;case 4:En(i,r),Dn(r);break;case 13:En(i,r),Dn(r),g=r.child,g.flags&8192&&(v=g.memoizedState!==null,g.stateNode.isHidden=v,!v||g.alternate!==null&&g.alternate.memoizedState!==null||(ld=st())),u&4&&Ng(r);break;case 22:if(K=a!==null&&a.memoizedState!==null,r.mode&1?(Nt=(z=Nt)||K,En(i,r),Nt=z):En(i,r),Dn(r),u&8192){if(z=r.memoizedState!==null,(r.stateNode.isHidden=z)&&!K&&(r.mode&1)!==0)for(oe=r,K=r.child;K!==null;){for(Q=oe=K;oe!==null;){switch(q=oe,ne=q.child,q.tag){case 0:case 11:case 14:case 15:ko(4,q,q.return);break;case 1:ai(q,q.return);var ae=q.stateNode;if(typeof ae.componentWillUnmount=="function"){u=q,a=q.return;try{i=u,ae.props=i.memoizedProps,ae.state=i.memoizedState,ae.componentWillUnmount()}catch(de){et(u,a,de)}}break;case 5:ai(q,q.return);break;case 22:if(q.memoizedState!==null){Dg(Q);continue}}ne!==null?(ne.return=q,oe=ne):Dg(Q)}K=K.sibling}e:for(K=null,Q=r;;){if(Q.tag===5){if(K===null){K=Q;try{g=Q.stateNode,z?(v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(R=Q.stateNode,j=Q.memoizedProps.style,b=j!=null&&j.hasOwnProperty("display")?j.display:null,R.style.display=pp("display",b))}catch(de){et(r,r.return,de)}}}else if(Q.tag===6){if(K===null)try{Q.stateNode.nodeValue=z?"":Q.memoizedProps}catch(de){et(r,r.return,de)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===r)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===r)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===r)break e;K===Q&&(K=null),Q=Q.return}K===Q&&(K=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:En(i,r),Dn(r),u&4&&Ng(r);break;case 21:break;default:En(i,r),Dn(r)}}function Dn(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(Pg(a)){var u=a;break e}a=a.return}throw Error(n(160))}switch(u.tag){case 5:var g=u.stateNode;u.flags&32&&(Hi(g,""),u.flags&=-33);var v=Ag(r);id(r,v,g);break;case 3:case 4:var b=u.stateNode.containerInfo,R=Ag(r);sd(r,R,b);break;default:throw Error(n(161))}}catch(j){et(r,r.return,j)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function kS(r,i,a){oe=r,Fg(r)}function Fg(r,i,a){for(var u=(r.mode&1)!==0;oe!==null;){var g=oe,v=g.child;if(g.tag===22&&u){var b=g.memoizedState!==null||hl;if(!b){var R=g.alternate,j=R!==null&&R.memoizedState!==null||Nt;R=hl;var z=Nt;if(hl=b,(Nt=j)&&!z)for(oe=g;oe!==null;)b=oe,j=b.child,b.tag===22&&b.memoizedState!==null?Mg(g):j!==null?(j.return=b,oe=j):Mg(g);for(;v!==null;)oe=v,Fg(v),v=v.sibling;oe=g,hl=R,Nt=z}Lg(r)}else(g.subtreeFlags&8772)!==0&&v!==null?(v.return=g,oe=v):Lg(r)}}function Lg(r){for(;oe!==null;){var i=oe;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Nt||pl(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!Nt)if(a===null)u.componentDidMount();else{var g=i.elementType===i.type?a.memoizedProps:_n(i.type,a.memoizedProps);u.componentDidUpdate(g,a.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var v=i.updateQueue;v!==null&&Dm(i,v,u);break;case 3:var b=i.updateQueue;if(b!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Dm(i,b,a)}break;case 5:var R=i.stateNode;if(a===null&&i.flags&4){a=R;var j=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&a.focus();break;case"img":j.src&&(a.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var z=i.alternate;if(z!==null){var K=z.memoizedState;if(K!==null){var Q=K.dehydrated;Q!==null&&to(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Nt||i.flags&512&&rd(i)}catch(q){et(i,i.return,q)}}if(i===r){oe=null;break}if(a=i.sibling,a!==null){a.return=i.return,oe=a;break}oe=i.return}}function Dg(r){for(;oe!==null;){var i=oe;if(i===r){oe=null;break}var a=i.sibling;if(a!==null){a.return=i.return,oe=a;break}oe=i.return}}function Mg(r){for(;oe!==null;){var i=oe;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{pl(4,i)}catch(j){et(i,a,j)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var g=i.return;try{u.componentDidMount()}catch(j){et(i,g,j)}}var v=i.return;try{rd(i)}catch(j){et(i,v,j)}break;case 5:var b=i.return;try{rd(i)}catch(j){et(i,b,j)}}}catch(j){et(i,i.return,j)}if(i===r){oe=null;break}var R=i.sibling;if(R!==null){R.return=i.return,oe=R;break}oe=i.return}}var ES=Math.ceil,ml=A.ReactCurrentDispatcher,od=A.ReactCurrentOwner,un=A.ReactCurrentBatchConfig,Me=0,vt=null,ut=null,kt=0,Zt=0,li=vr(0),pt=0,Eo=null,as=0,gl=0,ad=0,Co=null,Ht=null,ld=0,ci=1/0,Zn=null,yl=!1,cd=null,kr=null,vl=!1,Er=null,xl=0,To=0,ud=null,wl=-1,bl=0;function Bt(){return(Me&6)!==0?st():wl!==-1?wl:wl=st()}function Cr(r){return(r.mode&1)===0?1:(Me&2)!==0&&kt!==0?kt&-kt:lS.transition!==null?(bl===0&&(bl=Ap()),bl):(r=Ve,r!==0||(r=window.event,r=r===void 0?16:Bp(r.type)),r)}function Cn(r,i,a,u){if(50<To)throw To=0,ud=null,Error(n(185));Yi(r,a,u),((Me&2)===0||r!==vt)&&(r===vt&&((Me&2)===0&&(gl|=a),pt===4&&Tr(r,kt)),Wt(r,u),a===1&&Me===0&&(i.mode&1)===0&&(ci=st()+500,Ga&&wr()))}function Wt(r,i){var a=r.callbackNode;l2(r,i);var u=Aa(r,r===vt?kt:0);if(u===0)a!==null&&Tp(a),r.callbackNode=null,r.callbackPriority=0;else if(i=u&-u,r.callbackPriority!==i){if(a!=null&&Tp(a),i===1)r.tag===0?aS(Bg.bind(null,r)):km(Bg.bind(null,r)),rS(function(){(Me&6)===0&&wr()}),a=null;else{switch(jp(u)){case 1:a=$c;break;case 4:a=Rp;break;case 16:a=Ca;break;case 536870912:a=Pp;break;default:a=Ca}a=Kg(a,Ig.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function Ig(r,i){if(wl=-1,bl=0,(Me&6)!==0)throw Error(n(327));var a=r.callbackNode;if(ui()&&r.callbackNode!==a)return null;var u=Aa(r,r===vt?kt:0);if(u===0)return null;if((u&30)!==0||(u&r.expiredLanes)!==0||i)i=Sl(r,u);else{i=u;var g=Me;Me|=2;var v=Ug();(vt!==r||kt!==i)&&(Zn=null,ci=st()+500,cs(r,i));do try{RS();break}catch(R){zg(r,R)}while(!0);Ru(),ml.current=v,Me=g,ut!==null?i=0:(vt=null,kt=0,i=pt)}if(i!==0){if(i===2&&(g=Hc(r),g!==0&&(u=g,i=dd(r,g))),i===1)throw a=Eo,cs(r,0),Tr(r,u),Wt(r,st()),a;if(i===6)Tr(r,u);else{if(g=r.current.alternate,(u&30)===0&&!CS(g)&&(i=Sl(r,u),i===2&&(v=Hc(r),v!==0&&(u=v,i=dd(r,v))),i===1))throw a=Eo,cs(r,0),Tr(r,u),Wt(r,st()),a;switch(r.finishedWork=g,r.finishedLanes=u,i){case 0:case 1:throw Error(n(345));case 2:us(r,Ht,Zn);break;case 3:if(Tr(r,u),(u&130023424)===u&&(i=ld+500-st(),10<i)){if(Aa(r,0)!==0)break;if(g=r.suspendedLanes,(g&u)!==u){Bt(),r.pingedLanes|=r.suspendedLanes&g;break}r.timeoutHandle=yu(us.bind(null,r,Ht,Zn),i);break}us(r,Ht,Zn);break;case 4:if(Tr(r,u),(u&4194240)===u)break;for(i=r.eventTimes,g=-1;0<u;){var b=31-wn(u);v=1<<b,b=i[b],b>g&&(g=b),u&=~v}if(u=g,u=st()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*ES(u/1960))-u,10<u){r.timeoutHandle=yu(us.bind(null,r,Ht,Zn),u);break}us(r,Ht,Zn);break;case 5:us(r,Ht,Zn);break;default:throw Error(n(329))}}}return Wt(r,st()),r.callbackNode===a?Ig.bind(null,r):null}function dd(r,i){var a=Co;return r.current.memoizedState.isDehydrated&&(cs(r,i).flags|=256),r=Sl(r,i),r!==2&&(i=Ht,Ht=a,i!==null&&fd(i)),r}function fd(r){Ht===null?Ht=r:Ht.push.apply(Ht,r)}function CS(r){for(var i=r;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var u=0;u<a.length;u++){var g=a[u],v=g.getSnapshot;g=g.value;try{if(!bn(v(),g))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Tr(r,i){for(i&=~ad,i&=~gl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-wn(i),u=1<<a;r[a]=-1,i&=~u}}function Bg(r){if((Me&6)!==0)throw Error(n(327));ui();var i=Aa(r,0);if((i&1)===0)return Wt(r,st()),null;var a=Sl(r,i);if(r.tag!==0&&a===2){var u=Hc(r);u!==0&&(i=u,a=dd(r,u))}if(a===1)throw a=Eo,cs(r,0),Tr(r,i),Wt(r,st()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,us(r,Ht,Zn),Wt(r,st()),null}function hd(r,i){var a=Me;Me|=1;try{return r(i)}finally{Me=a,Me===0&&(ci=st()+500,Ga&&wr())}}function ls(r){Er!==null&&Er.tag===0&&(Me&6)===0&&ui();var i=Me;Me|=1;var a=un.transition,u=Ve;try{if(un.transition=null,Ve=1,r)return r()}finally{Ve=u,un.transition=a,Me=i,(Me&6)===0&&wr()}}function pd(){Zt=li.current,Ke(li)}function cs(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,nS(a)),ut!==null)for(a=ut.return;a!==null;){var u=a;switch(_u(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Ka();break;case 3:ii(),Ke(Ut),Ke(Pt),Du();break;case 5:Fu(u);break;case 4:ii();break;case 13:Ke(Xe);break;case 19:Ke(Xe);break;case 10:Pu(u.type._context);break;case 22:case 23:pd()}a=a.return}if(vt=r,ut=r=Rr(r.current,null),kt=Zt=i,pt=0,Eo=null,ad=gl=as=0,Ht=Co=null,ss!==null){for(i=0;i<ss.length;i++)if(a=ss[i],u=a.interleaved,u!==null){a.interleaved=null;var g=u.next,v=a.pending;if(v!==null){var b=v.next;v.next=g,u.next=b}a.pending=u}ss=null}return r}function zg(r,i){do{var a=ut;try{if(Ru(),il.current=cl,ol){for(var u=Je.memoizedState;u!==null;){var g=u.queue;g!==null&&(g.pending=null),u=u.next}ol=!1}if(os=0,yt=ht=Je=null,xo=!1,wo=0,od.current=null,a===null||a.return===null){pt=1,Eo=i,ut=null;break}e:{var v=r,b=a.return,R=a,j=i;if(i=kt,R.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var z=j,K=R,Q=K.tag;if((K.mode&1)===0&&(Q===0||Q===11||Q===15)){var q=K.alternate;q?(K.updateQueue=q.updateQueue,K.memoizedState=q.memoizedState,K.lanes=q.lanes):(K.updateQueue=null,K.memoizedState=null)}var ne=dg(b);if(ne!==null){ne.flags&=-257,fg(ne,b,R,v,i),ne.mode&1&&ug(v,z,i),i=ne,j=z;var ae=i.updateQueue;if(ae===null){var de=new Set;de.add(j),i.updateQueue=de}else ae.add(j);break e}else{if((i&1)===0){ug(v,z,i),md();break e}j=Error(n(426))}}else if(Ye&&R.mode&1){var it=dg(b);if(it!==null){(it.flags&65536)===0&&(it.flags|=256),fg(it,b,R,v,i),Cu(oi(j,R));break e}}v=j=oi(j,R),pt!==4&&(pt=2),Co===null?Co=[v]:Co.push(v),v=b;do{switch(v.tag){case 3:v.flags|=65536,i&=-i,v.lanes|=i;var M=lg(v,j,i);Lm(v,M);break e;case 1:R=j;var F=v.type,I=v.stateNode;if((v.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(kr===null||!kr.has(I)))){v.flags|=65536,i&=-i,v.lanes|=i;var Y=cg(v,R,i);Lm(v,Y);break e}}v=v.return}while(v!==null)}$g(a)}catch(fe){i=fe,ut===a&&a!==null&&(ut=a=a.return);continue}break}while(!0)}function Ug(){var r=ml.current;return ml.current=cl,r===null?cl:r}function md(){(pt===0||pt===3||pt===2)&&(pt=4),vt===null||(as&268435455)===0&&(gl&268435455)===0||Tr(vt,kt)}function Sl(r,i){var a=Me;Me|=2;var u=Ug();(vt!==r||kt!==i)&&(Zn=null,cs(r,i));do try{TS();break}catch(g){zg(r,g)}while(!0);if(Ru(),Me=a,ml.current=u,ut!==null)throw Error(n(261));return vt=null,kt=0,pt}function TS(){for(;ut!==null;)Vg(ut)}function RS(){for(;ut!==null&&!Zb();)Vg(ut)}function Vg(r){var i=qg(r.alternate,r,Zt);r.memoizedProps=r.pendingProps,i===null?$g(r):ut=i,od.current=null}function $g(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=wS(a,i,Zt),a!==null){ut=a;return}}else{if(a=bS(a,i),a!==null){a.flags&=32767,ut=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{pt=6,ut=null;return}}if(i=i.sibling,i!==null){ut=i;return}ut=i=r}while(i!==null);pt===0&&(pt=5)}function us(r,i,a){var u=Ve,g=un.transition;try{un.transition=null,Ve=1,PS(r,i,a,u)}finally{un.transition=g,Ve=u}return null}function PS(r,i,a,u){do ui();while(Er!==null);if((Me&6)!==0)throw Error(n(327));a=r.finishedWork;var g=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var v=a.lanes|a.childLanes;if(c2(r,v),r===vt&&(ut=vt=null,kt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||vl||(vl=!0,Kg(Ca,function(){return ui(),null})),v=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||v){v=un.transition,un.transition=null;var b=Ve;Ve=1;var R=Me;Me|=4,od.current=null,_S(r,a),Og(a,r),G2(mu),Oa=!!pu,mu=pu=null,r.current=a,kS(a),e2(),Me=R,Ve=b,un.transition=v}else r.current=a;if(vl&&(vl=!1,Er=r,xl=g),v=r.pendingLanes,v===0&&(kr=null),r2(a.stateNode),Wt(r,st()),i!==null)for(u=r.onRecoverableError,a=0;a<i.length;a++)g=i[a],u(g.value,{componentStack:g.stack,digest:g.digest});if(yl)throw yl=!1,r=cd,cd=null,r;return(xl&1)!==0&&r.tag!==0&&ui(),v=r.pendingLanes,(v&1)!==0?r===ud?To++:(To=0,ud=r):To=0,wr(),null}function ui(){if(Er!==null){var r=jp(xl),i=un.transition,a=Ve;try{if(un.transition=null,Ve=16>r?16:r,Er===null)var u=!1;
vendor: 2,559 bytes, line 41
41else{if(r=Er,Er=null,xl=0,(Me&6)!==0)throw Error(n(331));var g=Me;for(Me|=4,oe=r.current;oe!==null;){var v=oe,b=v.child;if((oe.flags&16)!==0){var R=v.deletions;if(R!==null){for(var j=0;j<R.length;j++){var z=R[j];for(oe=z;oe!==null;){var K=oe;switch(K.tag){case 0:case 11:case 15:ko(8,K,v)}var Q=K.child;if(Q!==null)Q.return=K,oe=Q;else for(;oe!==null;){K=oe;var q=K.sibling,ne=K.return;if(Rg(K),K===z){oe=null;break}if(q!==null){q.return=ne,oe=q;break}oe=ne}}}var ae=v.alternate;if(ae!==null){var de=ae.child;if(de!==null){ae.child=null;do{var it=de.sibling;de.sibling=null,de=it}while(de!==null)}}oe=v}}if((v.subtreeFlags&2064)!==0&&b!==null)b.return=v,oe=b;else e:for(;oe!==null;){if(v=oe,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:ko(9,v,v.return)}var M=v.sibling;if(M!==null){M.return=v.return,oe=M;break e}oe=v.return}}var F=r.current;for(oe=F;oe!==null;){b=oe;var I=b.child;if((b.subtreeFlags&2064)!==0&&I!==null)I.return=b,oe=I;else e:for(b=F;oe!==null;){if(R=oe,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:pl(9,R)}}catch(fe){et(R,R.return,fe)}if(R===b){oe=null;break e}var Y=R.sibling;if(Y!==null){Y.return=R.return,oe=Y;break e}oe=R.return}}if(Me=g,wr(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Ta,r)}catch{}u=!0}return u}finally{Ve=a,un.transition=i}}return!1}function Hg(r,i,a){i=oi(a,i),i=lg(r,i,1),r=Sr(r,i,1),i=Bt(),r!==null&&(Yi(r,1,i),Wt(r,i))}function et(r,i,a){if(r.tag===3)Hg(r,r,a);else for(;i!==null;){if(i.tag===3){Hg(i,r,a);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(kr===null||!kr.has(u))){r=oi(a,r),r=cg(i,r,1),i=Sr(i,r,1),r=Bt(),i!==null&&(Yi(i,1,r),Wt(i,r));break}}i=i.return}}function AS(r,i,a){var u=r.pingCache;u!==null&&u.delete(i),i=Bt(),r.pingedLanes|=r.suspendedLanes&a,vt===r&&(kt&a)===a&&(pt===4||pt===3&&(kt&130023424)===kt&&500>st()-ld?cs(r,0):ad|=a),Wt(r,i)}function Wg(r,i){i===0&&((r.mode&1)===0?i=1:(i=Pa,Pa<<=1,(Pa&130023424)===0&&(Pa=4194304)));var a=Bt();r=Yn(r,i),r!==null&&(Yi(r,i,a),Wt(r,a))}function jS(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),Wg(r,a)}function NS(r,i){var a=0;switch(r.tag){case 13:var u=r.stateNode,g=r.memoizedState;g!==null&&(a=g.retryLane);break;case 19:u=r.stateNode;break;default:throw Error(n(314))}u!==null&&u.delete(i),Wg(r,a)}var qg;qg=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||Ut.current)$t=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return $t=!1,xS(r,i,a);$t=(r.flags&131072)!==0}
vendor: 14,776 bytes, line 41
41else $t=!1,Ye&&(i.flags&1048576)!==0&&Em(i,Xa,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;fl(r,i),r=i.pendingProps;var g=Js(i,Pt.current);si(i,a),g=Bu(null,i,u,r,g,a);var v=zu();return i.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Vt(u)?(v=!0,Qa(i)):v=!1,i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Nu(i),g.updater=ul,i.stateNode=g,g._reactInternals=i,qu(i,u,r,a),i=Yu(null,i,u,!0,v,a)):(i.tag=0,Ye&&v&&Su(i),It(null,i,g,a),i=i.child),i;case 16:u=i.elementType;e:{switch(fl(r,i),r=i.pendingProps,g=u._init,u=g(u._payload),i.type=u,g=i.tag=FS(u),r=_n(u,r),g){case 0:i=Gu(null,i,u,r,a);break e;case 1:i=vg(null,i,u,r,a);break e;case 11:i=hg(null,i,u,r,a);break e;case 14:i=pg(null,i,u,_n(u.type,r),a);break e}throw Error(n(306,u,""))}return i;case 0:return u=i.type,g=i.pendingProps,g=i.elementType===u?g:_n(u,g),Gu(r,i,u,g,a);case 1:return u=i.type,g=i.pendingProps,g=i.elementType===u?g:_n(u,g),vg(r,i,u,g,a);case 3:e:{if(xg(i),r===null)throw Error(n(387));u=i.pendingProps,v=i.memoizedState,g=v.element,Fm(r,i),rl(i,u,null,a);var b=i.memoizedState;if(u=b.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){g=oi(Error(n(423)),i),i=wg(r,i,u,a,g);break e}else if(u!==g){g=oi(Error(n(424)),i),i=wg(r,i,u,a,g);break e}else for(Jt=yr(i.stateNode.containerInfo.firstChild),Xt=i,Ye=!0,Sn=null,a=Nm(i,null,u,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ti(),u===g){i=Jn(r,i,a);break e}It(r,i,u,a)}i=i.child}return i;case 5:return Mm(i),r===null&&Eu(i),u=i.type,g=i.pendingProps,v=r!==null?r.memoizedProps:null,b=g.children,gu(u,g)?b=null:v!==null&&gu(u,v)&&(i.flags|=32),yg(r,i),It(r,i,b,a),i.child;case 6:return r===null&&Eu(i),null;case 13:return bg(r,i,a);case 4:return Ou(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=ni(i,null,u,a):It(r,i,u,a),i.child;case 11:return u=i.type,g=i.pendingProps,g=i.elementType===u?g:_n(u,g),hg(r,i,u,g,a);case 7:return It(r,i,i.pendingProps,a),i.child;case 8:return It(r,i,i.pendingProps.children,a),i.child;case 12:return It(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(u=i.type._context,g=i.pendingProps,v=i.memoizedProps,b=g.value,$e(el,u._currentValue),u._currentValue=b,v!==null)if(bn(v.value,b)){if(v.children===g.children&&!Ut.current){i=Jn(r,i,a);break e}}else for(v=i.child,v!==null&&(v.return=i);v!==null;){var R=v.dependencies;if(R!==null){b=v.child;for(var j=R.firstContext;j!==null;){if(j.context===u){if(v.tag===1){j=Xn(-1,a&-a),j.tag=2;var z=v.updateQueue;if(z!==null){z=z.shared;var K=z.pending;K===null?j.next=j:(j.next=K.next,K.next=j),z.pending=j}}v.lanes|=a,j=v.alternate,j!==null&&(j.lanes|=a),Au(v.return,a,i),R.lanes|=a;break}j=j.next}}else if(v.tag===10)b=v.type===i.type?null:v.child;else if(v.tag===18){if(b=v.return,b===null)throw Error(n(341));b.lanes|=a,R=b.alternate,R!==null&&(R.lanes|=a),Au(b,a,i),b=v.sibling}else b=v.child;if(b!==null)b.return=v;else for(b=v;b!==null;){if(b===i){b=null;break}if(v=b.sibling,v!==null){v.return=b.return,b=v;break}b=b.return}v=b}It(r,i,g.children,a),i=i.child}return i;case 9:return g=i.type,u=i.pendingProps.children,si(i,a),g=ln(g),u=u(g),i.flags|=1,It(r,i,u,a),i.child;case 14:return u=i.type,g=_n(u,i.pendingProps),g=_n(u.type,g),pg(r,i,u,g,a);case 15:return mg(r,i,i.type,i.pendingProps,a);case 17:return u=i.type,g=i.pendingProps,g=i.elementType===u?g:_n(u,g),fl(r,i),i.tag=1,Vt(u)?(r=!0,Qa(i)):r=!1,si(i,a),og(i,u,g),qu(i,u,g,a),Yu(null,i,u,!0,r,a);case 19:return _g(r,i,a);case 22:return gg(r,i,a)}throw Error(n(156,i.tag))};function Kg(r,i){return Cp(r,i)}function OS(r,i,a,u){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,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 dn(r,i,a,u){return new OS(r,i,a,u)}function gd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function FS(r){if(typeof r=="function")return gd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ce)return 11;if(r===ge)return 14}return 2}function Rr(r,i){var a=r.alternate;return a===null?(a=dn(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function _l(r,i,a,u,g,v){var b=2;if(u=r,typeof r=="function")gd(r)&&(b=1);else if(typeof r=="string")b=5;else e:switch(r){case X:return ds(a.children,g,v,i);case B:b=8,g|=8;break;case G:return r=dn(12,a,i,g|2),r.elementType=G,r.lanes=v,r;case Ae:return r=dn(13,a,i,g),r.elementType=Ae,r.lanes=v,r;case he:return r=dn(19,a,i,g),r.elementType=he,r.lanes=v,r;case ie:return kl(a,g,v,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ee:b=10;break e;case ue:b=9;break e;case Ce:b=11;break e;case ge:b=14;break e;case Te:b=16,u=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=dn(b,a,i,g),i.elementType=r,i.type=u,i.lanes=v,i}function ds(r,i,a,u){return r=dn(7,r,u,i),r.lanes=a,r}function kl(r,i,a,u){return r=dn(22,r,u,i),r.elementType=ie,r.lanes=a,r.stateNode={isHidden:!1},r}function yd(r,i,a){return r=dn(6,r,null,i),r.lanes=a,r}function vd(r,i,a){return i=dn(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function LS(r,i,a,u,g){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wc(0),this.expirationTimes=Wc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.identifierPrefix=u,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function xd(r,i,a,u,g,v,b,R,j){return r=new LS(r,i,a,R,j),i===1?(i=1,v===!0&&(i|=8)):i=0,v=dn(3,null,null,i),r.current=v,v.stateNode=r,v.memoizedState={element:u,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(v),r}function DS(r,i,a){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:u==null?null:""+u,children:r,containerInfo:i,implementation:a}}function Qg(r){if(!r)return xr;r=r._reactInternals;e:{if(Zr(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Vt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(Vt(a))return Sm(r,a,i)}return i}function Gg(r,i,a,u,g,v,b,R,j){return r=xd(a,u,!0,r,g,v,b,R,j),r.context=Qg(null),a=r.current,u=Bt(),g=Cr(a),v=Xn(u,g),v.callback=i??null,Sr(a,v,g),r.current.lanes=g,Yi(r,g,u),Wt(r,u),r}function El(r,i,a,u){var g=i.current,v=Bt(),b=Cr(g);return a=Qg(a),i.context===null?i.context=a:i.pendingContext=a,i=Xn(v,b),i.payload={element:r},u=u===void 0?null:u,u!==null&&(i.callback=u),r=Sr(g,i,b),r!==null&&(Cn(r,g,b,v),nl(r,g,b)),b}function Cl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Yg(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function wd(r,i){Yg(r,i),(r=r.alternate)&&Yg(r,i)}function MS(){return null}var Xg=typeof reportError=="function"?reportError:function(r){console.error(r)};function bd(r){this._internalRoot=r}Tl.prototype.render=bd.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));El(r,i,null,null)},Tl.prototype.unmount=bd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;ls(function(){El(null,r,null,null)}),i[qn]=null}};function Tl(r){this._internalRoot=r}Tl.prototype.unstable_scheduleHydration=function(r){if(r){var i=Fp();r={blockedOn:null,target:r,priority:i};for(var a=0;a<pr.length&&i!==0&&i<pr[a].priority;a++);pr.splice(a,0,r),a===0&&Mp(r)}};function Sd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Rl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Jg(){}function IS(r,i,a,u,g){if(g){if(typeof u=="function"){var v=u;u=function(){var z=Cl(b);v.call(z)}}var b=Gg(i,u,r,0,null,!1,!1,"",Jg);return r._reactRootContainer=b,r[qn]=b.current,uo(r.nodeType===8?r.parentNode:r),ls(),b}for(;g=r.lastChild;)r.removeChild(g);if(typeof u=="function"){var R=u;u=function(){var z=Cl(j);R.call(z)}}var j=xd(r,0,!1,null,null,!1,!1,"",Jg);return r._reactRootContainer=j,r[qn]=j.current,uo(r.nodeType===8?r.parentNode:r),ls(function(){El(i,j,a,u)}),j}function Pl(r,i,a,u,g){var v=a._reactRootContainer;if(v){var b=v;if(typeof g=="function"){var R=g;g=function(){var j=Cl(b);R.call(j)}}El(i,b,r,g)}else b=IS(a,i,r,g,u);return Cl(b)}Np=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=Gi(i.pendingLanes);a!==0&&(qc(i,a|1),Wt(i,st()),(Me&6)===0&&(ci=st()+500,wr()))}break;case 13:ls(function(){var u=Yn(r,1);if(u!==null){var g=Bt();Cn(u,r,1,g)}}),wd(r,1)}},Kc=function(r){if(r.tag===13){var i=Yn(r,134217728);if(i!==null){var a=Bt();Cn(i,r,134217728,a)}wd(r,134217728)}},Op=function(r){if(r.tag===13){var i=Cr(r),a=Yn(r,i);if(a!==null){var u=Bt();Cn(a,r,i,u)}wd(r,i)}},Fp=function(){return Ve},Lp=function(r,i){var a=Ve;try{return Ve=r,i()}finally{Ve=a}},Bc=function(r,i,a){switch(i){case"input":if(St(r,a),i=a.name,a.type==="radio"&&i!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var u=a[i];if(u!==r&&u.form===r.form){var g=qa(u);if(!g)throw Error(n(90));bt(u),St(u,g)}}}break;case"textarea":up(r,a);break;case"select":i=a.value,i!=null&&ur(r,!!a.multiple,i,!1)}},xp=hd,wp=ls;var BS={usingClientEntryPoint:!1,Events:[po,Ys,qa,yp,vp,hd]},Ro={findFiberByHostInstance:es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zS={bundleType:Ro.bundleType,version:Ro.version,rendererPackageName:Ro.rendererPackageName,rendererConfig:Ro.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=kp(r),r===null?null:r.stateNode},findFiberByHostInstance:Ro.findFiberByHostInstance||MS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Al.isDisabled&&Al.supportsFiber)try{Ta=Al.inject(zS),Nn=Al}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BS,qt.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sd(i))throw Error(n(200));return DS(r,i,null,a)},qt.createRoot=function(r,i){if(!Sd(r))throw Error(n(299));var a=!1,u="",g=Xg;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),i=xd(r,1,!1,null,null,a,!1,u,g),r[qn]=i.current,uo(r.nodeType===8?r.parentNode:r),new bd(i)},qt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=kp(i),r=r===null?null:r.stateNode,r},qt.flushSync=function(r){return ls(r)},qt.hydrate=function(r,i,a){if(!Rl(i))throw Error(n(200));return Pl(null,r,i,!0,a)},qt.hydrateRoot=function(r,i,a){if(!Sd(r))throw Error(n(405));var u=a!=null&&a.hydratedSources||null,g=!1,v="",b=Xg;if(a!=null&&(a.unstable_strictMode===!0&&(g=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),i=Gg(i,null,r,1,a??null,g,!1,v,b),r[qn]=i.current,uo(r),u)for(r=0;r<u.length;r++)a=u[r],g=a._getVersion,g=g(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,g]:i.mutableSourceEagerHydrationData.push(a,g);return new Tl(i)},qt.render=function(r,i,a){if(!Rl(i))throw Error(n(200));return Pl(null,r,i,!1,a)},qt.unmountComponentAtNode=function(r){if(!Rl(r))throw Error(n(40));return r._reactRootContainer?(ls(function(){Pl(null,null,r,!1,function(){r._reactRootContainer=null,r[qn]=null})}),!0):!1},qt.unstable_batchedUpdates=hd,qt.unstable_renderSubtreeIntoContainer=function(r,i,a,u){if(!Rl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Pl(r,i,a,!1,u)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var ay;function px(){if(ay)return Cd.exports;ay=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(),Cd.exports=XS(),Cd.exports}var ly;function JS(){if(ly)return Nl;ly=1;var t=px();return Nl.createRoot=t.createRoot,Nl.hydrateRoot=t.hydrateRoot,Nl}var ZS=JS();const e_=hx(ZS),t_="modulepreload",n_=function(t){return"/"+t},cy={},De=function(e,n,s){let o=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=c(n.map(h=>{if(h=n_(h),h in cy)return;cy[h]=!0;const m=h.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":t_,m||(x.as="script"),x.crossOrigin="",x.href=h,d&&x.setAttribute("nonce",d),document.head.appendChild(x),m)return new Promise((w,S)=>
41{x.addEventListener("load",w),x.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return o.then(c=>{for(const f of c||[])f.status==="rejected"&&l(f.reason);return e().catch(l)})},r_=20,s_=1e6,sr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Pd=0;function i_(){return Pd=(Pd+1)%Number.MAX_VALUE,Pd.toString()}const Ad=new Map,uy=t=>{if(Ad.has(t))return;const e=setTimeout(()=>{Ad.delete(t),$o({type:sr.REMOVE_TOAST,toastId:t})},s_);Ad.set(t,e)},o_=(t,e)=>{switch(e.type){case sr.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,r_)};case sr.UPDATE_TOAST:return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case sr.DISMISS_TOAST:{const{toastId:n}=e;return n?uy(n):t.toasts.forEach(s=>{uy(s.id)}),{...t,toasts:t.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case sr.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Wl=[];let ql={toasts:[]};function $o(t){ql=o_(ql,t),Wl.forEach(e=>{e(ql)})}function a_({...t}){const e=i_(),n=o=>$o({type:sr.UPDATE_TOAST,toast:{...o,id:e}}),s=()=>$o({type:sr.DISMISS_TOAST,toastId:e});return $o({type:sr.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:o=>{o||s()}}}),{id:e,dismiss:s,update:n}}function l_(){const[t,e]=T.useState(ql);return T.useEffect(()=>(Wl.push(e),()=>{const n=Wl.indexOf(e);n>-1&&Wl.splice(n,1)}),[t]),{...t,toast:a_,dismiss:n=>$o({type:sr.DISMISS_TOAST,toastId:n})}}function mx(t){var e,n,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=mx(t[e]))&&(s&&(s+=" "),s+=n)}else for(n in t)t[n]&&(s&&(s+=" "),s+=n);return s}function gx(){for(var t,e,n=0,s="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=mx(t))&&(s&&(s+=" "),s+=e);return s}const dy=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,fy=gx,c_=(t,e)=>n=>{var s;if((e==null?void 0:e.variants)==null)return fy(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=e,c=Object.keys(o).map(h=>{const m=n==null?void 0:n[h],y=l==null?void 0:l[h];if(m===null)return null;const x=dy(m)||dy(y);return o[h][x]}),f=n&&Object.entries(n).reduce((h,m)=>{let[y,x]=m;return x===void 0||(h[y]=x),h},{}),d=e==null||(s=e.compoundVariants)===null||s===void 0?void 0:s.reduce((h,m)=>{let{class:y,className:x,...w}=m;return Object.entries(w).every(S=>{let[_,k]=S;return Array.isArray(k)?k.includes({...l,...f}[_]):{...l,...f}[_]===k})?[...h,y,x]:h},[]);return fy(t,c,d,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.475.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const u_=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yx=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim();/**
47 * @license lucide-react v0.475.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var d_={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"};/**
52 * @license lucide-react v0.475.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const f_=T.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:l,iconNode:c,...f},d)=>T.createElement("svg",{ref:d,...d_,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:yx("lucide",o),...f},[...c.map(([h,m])=>T.createElement(h,m)),...Array.isArray(l)?l:[l]]));/**
57 * @license lucide-react v0.475.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const Ue=(t,e)=>{const n=T.forwardRef(({className:s,...o},l)=>T.createElement(f_,{ref:l,iconNode:e,className:yx(`lucide-${u_(t)}`,s),...o}));return n.displayName=`${t}`,n};/**
62 * @license lucide-react v0.475.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const h_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ns=Ue("ArrowRight",h_);/**
67 * @license lucide-react v0.475.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const p_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],m_=Ue("Bell",p_);/**
72 * @license lucide-react v0.475.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const g_=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],y_=Ue("CalendarCheck",g_);/**
77 * @license lucide-react v0.475.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const v_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],x_=Ue("ChevronDown",v_);/**
82 * @license lucide-react v0.475.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const w_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],b_=Ue("ChevronLeft",w_);/**
87 * @license lucide-react v0.475.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const S_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],__=Ue("ChevronRight",S_);/**
92 * @license lucide-react v0.475.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const k_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],th=Ue("CircleCheck",k_);/**
97 * @license lucide-react v0.475.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const E_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],C_=Ue("CircleDollarSign",E_);/**
102 * @license lucide-react v0.475.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const T_=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],R_=Ue("DollarSign",T_);/**
107 * @license lucide-react v0.475.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const P_=[["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:"m9 15 2 2 4-4",key:"1grp1n"}]],A_=Ue("FileCheck",P_);/**
112 * @license lucide-react v0.475.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const j_=[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]],N_=Ue("FileSearch",j_);/**
117 * @license lucide-react v0.475.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const O_=[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]],F_=Ue("Hammer",O_);/**
122 * @license lucide-react v0.475.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const L_=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],D_=Ue("ListChecks",L_);/**
127 * @license lucide-react v0.475.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const M_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vc=Ue("LoaderCircle",M_);/**
132 * @license lucide-react v0.475.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const I_=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],B_=Ue("Lock",I_);/**
137 * @license lucide-react v0.475.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const z_=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],U_=Ue("Menu",z_);/**
142 * @license lucide-react v0.475.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const V_=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],vx=Ue("MessageCircle",V_);/**
147 * @license lucide-react v0.475.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const $_=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],H_=Ue("MessageSquare",$_);/**
152 * @license lucide-react v0.475.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const W_=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],nh=Ue("Radio",W_);/**
157 * @license lucide-react v0.475.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const q_=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],K_=Ue("Receipt",q_);
161/**
162 * @license lucide-react v0.475.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const Q_=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],G_=Ue("Search",Q_);/**
167 * @license lucide-react v0.475.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const Y_=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X_=Ue("ShieldCheck",Y_);/**
172 * @license lucide-react v0.475.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const J_=[["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"}]],Z_=Ue("Shield",J_);/**
177 * @license lucide-react v0.475.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const ek=[["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"}]],tk=Ue("Sparkles",ek);/**
182 * @license lucide-react v0.475.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const nk=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],hy=Ue("Star",nk);/**
187 * @license lucide-react v0.475.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const rk=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],sk=Ue("TrendingDown",rk);/**
192 * @license lucide-react v0.475.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const ik=[["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"}]],ok=Ue("TriangleAlert",ik);/**
197 * @license lucide-react v0.475.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const ak=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],xx=Ue("Users",ak);/**
202 * @license lucide-react v0.475.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const lk=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],ck=Ue("Wrench",lk);/**
207 * @license lucide-react v0.475.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const uk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,493 bytes, line 211
211],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Go=Ue("X",uk),dk=(t,e)=>{const n=new Array(t.length+e.length);for(let s=0;s<t.length;s++)n[s]=t[s];for(let s=0;s<e.length;s++)n[t.length+s]=e[s];return n},fk=(t,e)=>({classGroupId:t,validator:e}),wx=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),rc="-",py=[],hk="arbitrary..",pk=t=>{const e=gk(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return mk(c);const f=c.split(rc),d=f[0]===""&&f.length>1?1:0;return bx(f,d,e)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=s[c],h=n[c];return d?h?dk(h,d):d:h||py}return n[c]||py}}},bx=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],l=n.nextPart.get(o);if(l){const h=bx(t,e+1,l);if(h)return h}const c=n.validators;if(c===null)return;const f=e===0?t.join(rc):t.slice(e).join(rc),d=c.length;for(let h=0;h<d;h++){const m=c[h];if(m.validator(f))return m.classGroupId}},mk=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),s=e.slice(0,n);return s?hk+s:void 0})(),gk=t=>{const{theme:e,classGroups:n}=t;return yk(n,e)},yk=(t,e)=>{const n=wx();for(const s in t){const o=t[s];rh(o,n,s,e)}return n},rh=(t,e,n,s)=>{const o=t.length;for(let l=0;l<o;l++){const c=t[l];vk(c,e,n,s)}},vk=(t,e,n,s)=>{if(typeof t=="string"){xk(t,e,n);return}if(typeof t=="function"){wk(t,e,n,s);return}bk(t,e,n,s)},xk=(t,e,n)=>{const s=t===""?e:Sx(e,t);s.classGroupId=n},wk=(t,e,n,s)=>{if(Sk(t)){rh(t(s),e,n,s);return}e.validators===null&&(e.validators=[]),e.validators.push(fk(n,t))},bk=(t,e,n,s)=>{const o=Object.entries(t),l=o.length;for(let c=0;c<l;c++){const[f,d]=o[c];rh(d,Sx(e,f),n,s)}},Sx=(t,e)=>{let n=t;const s=e.split(rc),o=s.length;for(let l=0;l<o;l++){const c=s[l];let f=n.nextPart.get(c);f||(f=wx(),n.nextPart.set(c,f)),n=f}return n},Sk=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,_k=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),s=Object.create(null);const o=(l,c)=>{n[l]=c,e++,e>t&&(e=0,s=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=s[l])!==void 0)return o(l,c),c},set(l,c){l in n?n[l]=c:o(l,c)}}},rf="!",my=":",kk=[],gy=(t,e,n,s,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:s,isExternal:o}),Ek=t=>{const{prefix:e,experimentalParseClassName:n}=t;let s=o=>{const l=[];let c=0,f=0,d=0,h;const m=o.length;for(let _=0;_<m;_++){const k=o[_];if(c===0&&f===0){if(k===my){l.push(o.slice(d,_)),d=_+1;continue}if(k==="/"){h=_;continue}}k==="["?c++:k==="]"?c--:k==="("?f++:k===")"&&f--}const y=l.length===0?o:o.slice(d);let x=y,w=!1;y.endsWith(rf)?(x=y.slice(0,-1),w=!0):y.startsWith(rf)&&(x=y.slice(1),w=!0);const S=h&&h>d?h-d:void 0;return gy(l,w,x,S)};if(e){const o=e+my,l=s;s=c=>c.startsWith(o)?l(c.slice(o.length)):gy(kk,!1,c,void 0,!0)}if(n){const o=s;s=l=>n({className:l,parseClassName:o})}return s},Ck=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,s)=>{e.set(n,1e6+s)}),n=>{const s=[];let o=[];for(let l=0;l<n.length;l++){const c=n[l],f=c[0]==="[",d=e.has(c);f||d?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(c)):o.push(c)}return o.length>0&&(o.sort(),s.push(...o)),s}},Tk=t=>({cache:_k(t.cacheSize),parseClassName:Ek(t),sortModifiers:Ck(t),...pk(t)}),Rk=/\s+/,Pk=(t,e)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:l}=e,c=[],f=t.trim().split(Rk);let d="";for(let h=f.length-1;h>=0;h-=1){const m=f[h],{isExternal:y,modifiers:x,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:_}=n(m);if(y){d=m+(d.length>0?" "+d:d);continue}let k=!!_,E=s(k?S.substring(0,_):S);if(!E){if(!k){d=m+(d.length>0?" "+d:d);continue}if(E=s(S),!E){d=m+(d.length>0?" "+d:d);continue}k=!1}const P=x.length===0?"":x.length===1?x[0]:l(x).join(":"),C=w?P+rf:P,A=C+E;if(c.indexOf(A)>-1)continue;c.push(A);const D=o(E,k);for(let V=0;V<D.length;++V){const X=D[V];c.push(C+X)}d=m+(d.length>0?" "+d:d)}return d},Ak=(...t)=>{let e=0,n,s,o="";for(;e<t.length;)(n=t[e++])&&(s=_x(n))&&(o&&(o+=" "),o+=s);return o},_x=t=>{if(typeof t=="string")return t;let e,n="";for(let s=0;s<t.length;s++)t[s]&&(e=_x(t[s]))&&(n&&(n+=" "),n+=e);return n},jk=(t,...e)=>{let n,s,o,l;const c=d=>{const h=e.reduce((m,y)=>y(m),t());return n=Tk(h),s=n.cache.get,o=n.cache.set,l=f,f(d)},f=d=>{const h=s(d);if(h)return h;const m=Pk(d,n);return o(d,m),m};return l=c,(...d)=>l(Ak(...d))},Nk=[],mt=t=>{const e=n=>n[t]||Nk;return e.isThemeGetter=!0,e},kx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ok=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Fk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lk=/\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$/,Dk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ik=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ar=t=>Ok.test(t),Re=t=>!!t&&!Number.isNaN(Number(t)),jr=t=>!!t&&Number.isInteger(Number(t)),jd=t=>t.endsWith("%")&&Re(t.slice(0,-1)),er=t=>Fk.test(t),Cx=()=>!0,Bk=t=>Lk.test(t)&&!Dk.test(t),sh=()=>!1,zk=t=>Mk.test(t),Uk=t=>Ik.test(t),Vk=t=>!le(t)&&!ce(t),$k=t=>Yr(t,Px,sh),le=t=>kx.test(t),fs=t=>Yr(t,Ax,Bk),yy=t=>Yr(t,Xk,Re),Hk=t=>Yr(t,Nx,Cx),Wk=t=>Yr(t,jx,sh),vy=t=>Yr(t,Tx,sh),qk=t=>Yr(t,Rx,Uk),Ol=t=>Yr(t,Ox,zk),ce=t=>Ex.test(t),Ao=t=>Is(t,Ax),Kk=t=>Is(t,jx),xy=t=>Is(t,Tx),Qk=t=>Is(t,Px),Gk=t=>Is(t,Rx),Fl=t=>
vendor: 4,263 bytes, line 211
211Is(t,Ox,!0),Yk=t=>Is(t,Nx,!0),Yr=(t,e,n)=>{const s=kx.exec(t);return s?s[1]?e(s[1]):n(s[2]):!1},Is=(t,e,n=!1)=>{const s=Ex.exec(t);return s?s[1]?e(s[1]):n:!1},Tx=t=>t==="position"||t==="percentage",Rx=t=>t==="image"||t==="url",Px=t=>t==="length"||t==="size"||t==="bg-size",Ax=t=>t==="length",Xk=t=>t==="number",jx=t=>t==="family-name",Nx=t=>t==="number"||t==="weight",Ox=t=>t==="shadow",Jk=()=>{const t=mt("color"),e=mt("font"),n=mt("text"),s=mt("font-weight"),o=mt("tracking"),l=mt("leading"),c=mt("breakpoint"),f=mt("container"),d=mt("spacing"),h=mt("radius"),m=mt("shadow"),y=mt("inset-shadow"),x=mt("text-shadow"),w=mt("drop-shadow"),S=mt("blur"),_=mt("perspective"),k=mt("aspect"),E=mt("ease"),P=mt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...A(),ce,le],V=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],B=()=>[ce,le,d],G=()=>[Ar,"full","auto",...B()],ee=()=>[jr,"none","subgrid",ce,le],ue=()=>["auto",{span:["full",jr,ce,le]},jr,ce,le],Ce=()=>[jr,"auto",ce,le],Ae=()=>["auto","min","max","fr",ce,le],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],Te=()=>["auto",...B()],ie=()=>[Ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],H=()=>[Ar,"screen","full","dvw","lvw","svw","min","max","fit",...B()],te=()=>[Ar,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],U=()=>[t,ce,le],O=()=>[...A(),xy,vy,{position:[ce,le]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Qk,$k,{size:[ce,le]}],be=()=>[jd,Ao,fs],ve=()=>["","none","full",h,ce,le],J=()=>["",Re,Ao,fs],ke=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[Re,jd,xy,vy],gt=()=>["","none",S,ce,le],nn=()=>["none",Re,ce,le],bt=()=>["none",Re,ce,le],yn=()=>[Re,ce,le],rn=()=>[Ar,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[er],breakpoint:[er],color:[Cx],container:[er],"drop-shadow":[er],ease:["in","out","in-out"],font:[Vk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[er],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[er],shadow:[er],spacing:["px",Re],text:[er],"text-shadow":[er],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ar,le,ce,k]}],container:["container"],columns:[{columns:[Re,le,ce,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:D()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}
vendor: 4,784 bytes, line 211
211],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[jr,"auto",ce,le]}],basis:[{basis:[Ar,"full","auto",f,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Ar,"auto","initial","none",le]}],grow:[{grow:["",Re,ce,le]}],shrink:[{shrink:["",Re,ce,le]}],order:[{order:[jr,"first","last","none",ce,le]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:ue()}],"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":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:Te()}],mx:[{mx:Te()}],my:[{my:Te()}],ms:[{ms:Te()}],me:[{me:Te()}],mbs:[{mbs:Te()}],mbe:[{mbe:Te()}],mt:[{mt:Te()}],mr:[{mr:Te()}],mb:[{mb:Te()}],ml:[{ml:Te()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[f,"screen",...ie()]}],"min-w":[{"min-w":[f,"screen","none",...ie()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",n,Ao,fs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Yk,Hk]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jd,le]}],"font-family":[{font:[Kk,Wk,e]}],"font-features":[{"font-features":[le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,le]}],"line-clamp":[{"line-clamp":[Re,"none",ce,yy]}],leading:[{leading:[l,...B()]}],"list-image":[{"list-image":["none",ce,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ce,fs]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[Re,"auto",ce,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,le]}],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",ce,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jr,ce,le],radial:["",ce,le],conic:[jr,ce,le]},Gk,qk]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:be()}
vendor: 8,988 bytes, line 211
211],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-bs":[{"border-bs":U()}],"border-color-be":[{"border-be":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ce,le]}],"outline-w":[{outline:["",Re,Ao,fs]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",m,Fl,Ol]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",y,Fl,Ol]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[Re,fs]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",x,Fl,Ol]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[Re,ce,le]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[ce,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,le]}],filter:[{filter:["","none",ce,le]}],blur:[{blur:gt()}],brightness:[{brightness:[Re,ce,le]}],contrast:[{contrast:[Re,ce,le]}],"drop-shadow":[{"drop-shadow":["","none",w,Fl,Ol]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",Re,ce,le]}],"hue-rotate":[{"hue-rotate":[Re,ce,le]}],invert:[{invert:["",Re,ce,le]}],saturate:[{saturate:[Re,ce,le]}],sepia:[{sepia:["",Re,ce,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,le]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ce,le]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ce,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ce,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ce,le]}],"backdrop-invert":[{"backdrop-invert":["",Re,ce,le]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ce,le]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ce,le]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ce,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ce,le]}],ease:[{ease:["linear","initial",E,ce,le]}],delay:[{delay:[Re,ce,le]}],animate:[{animate:["none",P,ce,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ce,le]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:nn()}],"rotate-x":[{"rotate-x":nn()}],"rotate-y":[{"rotate-y":nn()}],"rotate-z":[{"rotate-z":nn()}],scale:[{scale:bt()}],"scale-x":[{"scale-x":bt()}],"scale-y":[{"scale-y":bt()}],"scale-z":[{"scale-z":bt()}],"scale-3d":["scale-3d"],skew:[{skew:yn()}],"skew-x":[{"skew-x":yn()}],"skew-y":[{"skew-y":yn()}],transform:[{transform:[ce,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rn()}],"translate-x":[{"translate-x":rn()}],"translate-y":[{"translate-y":rn()}],"translate-z":[{"translate-z":rn()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"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",ce,le]}],"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":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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"]}
211],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",ce,le]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[Re,Ao,fs,yy]}],stroke:[{stroke:["none",...U()]}],"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"]}},Zk=jk(Jk);function fa(...t){return Zk(gx(t))}const Fx=T.forwardRef(({...t},e)=>p.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}));Fx.displayName="ToastProvider";const Lx=T.forwardRef(({...t},e)=>p.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}));Lx.displayName="ToastViewport";const eE=c_("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"}}),Dx=T.forwardRef(({className:t,variant:e,...n},s)=>
211p.jsx("div",{ref:s,className:fa(eE({variant:e}),t),...n}));Dx.displayName="Toast";const tE=T.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:fa("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}));tE.displayName="ToastAction";const Mx=T.forwardRef(({className:t,...e},n)=>p.jsx("button",{ref:n,className:fa("absolute right-2 top-2 rounded-md p-1 text-foreground/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:p.jsx(Go,{className:"h-4 w-4"})}));Mx.displayName="ToastClose";const Ix=T.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:fa("text-sm font-semibold",t),...e}));Ix.displayName="ToastTitle";const Bx=T.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:fa("text-sm opacity-90",t),...e}));Bx.displayName="ToastDescription";function nE(){const{toasts:t}=l_();return p.jsxs(Fx,{children:[t.map(function({id:e,title:n,description:s,action:o,...l}){return p.jsxs(Dx,{...l,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(Ix,{children:n}),s&&p.jsx(Bx,{children:s})]}),o,p.jsx(Mx,{})]},e)}),p.jsx(Lx,{})]})}var ha=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(){}},rE={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Lr,Zf,nx,sE=(nx=class{constructor(){xe(this,Lr,rE);xe(this,Zf,!1)}setTimeoutProvider(t){re(this,Lr,t)}setTimeout(t,e){return N(this,Lr).setTimeout(t,e)}clearTimeout(t){N(this,Lr).clearTimeout(t)}setInterval(t,e){return N(this,Lr).setInterval(t,e)}clearInterval(t){N(this,Lr).clearInterval(t)}},Lr=new WeakMap,Zf=new WeakMap,nx),vs=new sE;function iE(t){setTimeout(t,0)}var Os=typeof window>"u"||"Deno"in globalThis;function Qt(){}function oE(t,e){return typeof t=="function"?t(e):t}function sf(t){return typeof t=="number"&&t>=0&&t!==1/0}function zx(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Wr(t,e){return typeof t=="function"?t(e):t}function mn(t,e){return typeof t=="function"?t(e):t}function wy(t,e){const{type:n="all",exact:s,fetchStatus:o,predicate:l,queryKey:c,stale:f}=t;if(c){if(s){if(e.queryHash!==ih(c,e.options))return!1}else if(!Xo(e.queryKey,c))return!1}if(n!=="all"){const d=e.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||o&&o!==e.state.fetchStatus||l&&!l(e))}function by(t,e){const{exact:n,status:s,predicate:o,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(n){if(Yo(e.options.mutationKey)!==Yo(l))return!1}else if(!Xo(e.options.mutationKey,l))return!1}return!(s&&e.state.status!==s||o&&!o(e))}function ih(t,e){return((e==null?void 0:e.queryKeyHashFn)||Yo)(t)}function Yo(t){return JSON.stringify(t,(e,n)=>af(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function Xo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Xo(t[n],e[n])):!1}var aE=Object.prototype.hasOwnProperty;function Ux(t,e,n=0){if(t===e)return t;if(n>500)return e;const s=Sy(t)&&Sy(e);if(!s&&!(af(t)&&af(e)))return e;const l=(s?t:Object.keys(t)).length,c=s?e:Object.keys(e),f=c.length,d=s?new Array(f):{};let h=0;for(let m=0;m<f;m++){const y=s?m:c[m],x=t[y],w=e[y];if(x===w){d[y]=x,(s?m<l:aE.call(t,y))&&h++;continue}if(x===null||w===null||typeof x!="object"||typeof w!="object"){d[y]=w;continue}const S=Ux(x,w,n+1);d[y]=S,S===x&&h++}return l===f&&h===l?t:d}function of(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Sy(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function af(t){if(!_y(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!_y(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function _y(t){return Object.prototype.toString.call(t)==="[object Object]"}function lE(t){return new Promise(e=>{vs.setTimeout(e,t)})}function lf(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Ux(t,e):e}function cE(t,e,n=0){const s=[...t,e];return n&&s.length>n?s.slice(1):s}function uE(t,e,n=0){const s=[e,...t];return n&&s.length>n?s.slice(0,-1):s}var oh=Symbol();function Vx(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===oh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function $x(t,e){return typeof t=="function"?t(...e):!!t}function dE(t,e,n){let s=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??(o=e()),s||(s=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),t}var bs,Dr,wi,rx,fE=(rx=class extends ha{constructor(){super();xe(this,bs);xe(this,Dr);xe(this,wi);re(this,wi,e=>{if(!Os&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,Dr)||this.setEventListener(N(this,wi))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,Dr))==null||e.call(this),re(this,Dr,void 0))}setEventListener(e){var n;re(this,wi,e),(n=N(this,Dr))==null||n.call(this),re(this,Dr,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){N(this,bs)!==e&&(re(this,bs,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,677 bytes, line 211
211this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof N(this,bs)=="boolean"?N(this,bs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},bs=new WeakMap,Dr=new WeakMap,wi=new WeakMap,rx),ah=new fE;function cf(){let t,e;const n=new Promise((o,l)=>{t=o,e=l});n.status="pending",n.catch(()=>{});function s(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{s({status:"fulfilled",value:o}),t(o)},n.reject=o=>{s({status:"rejected",reason:o}),e(o)},n}var hE=iE;function pE(){let t=[],e=0,n=f=>{f()},s=f=>{f()},o=hE;const l=f=>{e?t.push(f):o(()=>{n(f)})},c=()=>{const f=t;t=[],f.length&&o(()=>{s(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;e++;try{d=f()}finally{e--,e||c()}return d},batchCalls:f=>(...d)=>{l(()=>{f(...d)})},schedule:l,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{o=f}}}var Tt=pE(),bi,Mr,Si,sx,mE=(sx=class extends ha{constructor(){super();xe(this,bi,!0);xe(this,Mr);xe(this,Si);re(this,Si,e=>{if(!Os&&window.addEventListener){const n=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){N(this,Mr)||this.setEventListener(N(this,Si))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,Mr))==null||e.call(this),re(this,Mr,void 0))}setEventListener(e){var n;re(this,Si,e),(n=N(this,Mr))==null||n.call(this),re(this,Mr,e(this.setOnline.bind(this)))}setOnline(e){N(this,bi)!==e&&(re(this,bi,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return N(this,bi)}},bi=new WeakMap,Mr=new WeakMap,Si=new WeakMap,sx),sc=new mE;function gE(t){return Math.min(1e3*2**t,3e4)}function Hx(t){return(t??"online")==="online"?sc.isOnline():!0}var uf=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Wx(t){let e=!1,n=0,s;const o=cf(),l=()=>o.status!=="pending",c=_=>{var k;if(!l()){const E=new uf(_);x(E),(k=t.onCancel)==null||k.call(t,E)}},f=()=>{e=!0},d=()=>{e=!1},h=()=>ah.isFocused()&&(t.networkMode==="always"||sc.isOnline())&&t.canRun(),m=()=>Hx(t.networkMode)&&t.canRun(),y=_=>{l()||(s==null||s(),o.resolve(_))},x=_=>{l()||(s==null||s(),o.reject(_))},w=()=>new Promise(_=>{var k;s=E=>{(l()||h())&&_(E)},(k=t.onPause)==null||k.call(t)}).then(()=>{var _;s=void 0,l()||(_=t.onContinue)==null||_.call(t)}),S=()=>{if(l())return;let _;const k=n===0?t.initialPromise:void 0;try{_=k??t.fn()}catch(E){_=Promise.reject(E)}Promise.resolve(_).then(y).catch(E=>{var V;if(l())return;const P=t.retry??(Os?0:3),C=t.retryDelay??gE,A=typeof C=="function"?C(n,E):C,D=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,E);if(e||!D){x(E);return}n++,(V=t.onFail)==null||V.call(t,n,E),lE(A).then(()=>h()?void 0:w()).then(()=>{e?x(E):S()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(s==null||s(),o),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?S():w().then(S),o)}}var Ss,ix,qx=(ix=class{constructor(){xe(this,Ss)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sf(this.gcTime)&&re(this,Ss,vs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Os?1/0:300*1e3))}clearGcTimeout(){N(this,Ss)&&(vs.clearTimeout(N(this,Ss)),re(this,Ss,void 0))}},Ss=new WeakMap,ix),_s,_i,pn,ks,wt,aa,Es,Rn,tr,ox,yE=(ox=class extends qx{constructor(e){super();xe(this,Rn);xe(this,_s);xe(this,_i);xe(this,pn);xe(this,ks);xe(this,wt);xe(this,aa);xe(this,Es);re(this,Es,!1),re(this,aa,e.defaultOptions),this.setOptions(e.options),this.observers=[],re(this,ks,e.client),re(this,pn,N(this,ks).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,re(this,_s,Ey(this.options)),this.state=e.state??N(this,_s),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=N(this,wt))==null?void 0:e.promise}setOptions(e){if(this.options={...N(this,aa),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Ey(this.options);n.data!==void 0&&(this.setState(ky(n.data,n.dataUpdatedAt)),re(this,_s,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,pn).remove(this)}setData(e,n){const s=lf(this.state.data,e,this.options);return Oe(this,Rn,tr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(e,n){Oe(this,Rn,tr).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var s,o;const n=(s=N(this,wt))==null?void 0:s.promise;return(o=N(this,wt))==null||o.cancel(e),n?n.then(Qt).catch(Qt):Prom
211ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,_s))}isActive(){return this.observers.some(e=>mn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Wr(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:!zx(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,wt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,wt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),N(this,pn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(N(this,wt)&&(N(this,Es)?N(this,wt).cancel({revert:!0}):N(this,wt).cancelRetry()),this.scheduleGc()),N(this,pn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,Rn,tr).call(this,{type:"invalidate"})}async fetch(e,n){var d,h,m,y,x,w,S,_,k,E,P,C;if(this.state.fetchStatus!=="idle"&&((d=N(this,wt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,wt))return N(this,wt).continueRetry(),N(this,wt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const A=this.observers.find(D=>D.options.queryFn);A&&this.setOptions(A.options)}const s=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(re(this,Es,!0),s.signal)})},l=()=>{const A=Vx(this.options,n),V=(()=>{const X={client:N(this,ks),queryKey:this.queryKey,meta:this.meta};return o(X),X})();return re(this,Es,!1),this.options.persister?this.options.persister(A,V,this):A(V)},f=(()=>{const A={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,ks),state:this.state,fetchFn:l};return o(A),A})();(h=this.options.behavior)==null||h.onFetch(f,this),re(this,_i,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=f.fetchOptions)==null?void 0:m.meta))&&Oe(this,Rn,tr).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta}),re(this,wt,Wx({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:A=>{A instanceof uf&&A.revert&&this.setState({...N(this,_i),fetchStatus:"idle"}),s.abort()},onFail:(A,D)=>{Oe(this,Rn,tr).call(this,{type:"failed",failureCount:A,error:D})},onPause:()=>{Oe(this,Rn,tr).call(this,{type:"pause"})},onContinue:()=>{Oe(this,Rn,tr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const A=await N(this,wt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(w=(x=N(this,pn).config).onSuccess)==null||w.call(x,A,this),(_=(S=N(this,pn).config).onSettled)==null||_.call(S,A,this.state.error,this),A}catch(A){if(A instanceof uf){if(A.silent)return N(this,wt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Oe(this,Rn,tr).call(this,{type:"error",error:A}),(E=(k=N(this,pn).config).onError)==null||E.call(k,A,this),(C=(P=N(this,pn).config).onSettled)==null||C.call(P,this.state.data,A,this),A}finally{this.scheduleGc()}}},_s=new WeakMap,_i=new WeakMap,pn=new WeakMap,ks=new WeakMap,wt=new WeakMap,aa=new WeakMap,Es=new WeakMap,Rn=new WeakSet,tr=function(e){const n=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Kx(s.data,this.options),fetchMeta:e.meta??null};case"success":const o={...s,...ky(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return re(this,_i,e.manual?o:void 0),o;case"error":const l=e.error;
vendor: 9,652 bytes, line 211
211return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),N(this,pn).notify({query:this,type:"updated",action:e})})},ox);function Kx(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Hx(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ky(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ey(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,s=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Kt,Fe,la,zt,Cs,ki,nr,Ir,ca,Ei,Ci,Ts,Rs,Br,Ti,ze,Do,df,ff,hf,pf,mf,gf,yf,Qx,ax,vE=(ax=class extends ha{constructor(e,n){super();xe(this,ze);xe(this,Kt);xe(this,Fe);xe(this,la);xe(this,zt);xe(this,Cs);xe(this,ki);xe(this,nr);xe(this,Ir);xe(this,ca);xe(this,Ei);xe(this,Ci);xe(this,Ts);xe(this,Rs);xe(this,Br);xe(this,Ti,new Set);this.options=n,re(this,Kt,e),re(this,Ir,null),re(this,nr,cf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Fe).addObserver(this),Cy(N(this,Fe),this.options)?Oe(this,ze,Do).call(this):this.updateResult(),Oe(this,ze,pf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vf(N(this,Fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vf(N(this,Fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,ze,mf).call(this),Oe(this,ze,gf).call(this),N(this,Fe).removeObserver(this)}setOptions(e){const n=this.options,s=N(this,Fe);if(this.options=N(this,Kt).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mn(this.options.enabled,N(this,Fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Oe(this,ze,yf).call(this),N(this,Fe).setOptions(this.options),n._defaulted&&!of(this.options,n)&&N(this,Kt).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Fe),observer:this});const o=this.hasListeners();o&&Ty(N(this,Fe),s,this.options,n)&&Oe(this,ze,Do).call(this),this.updateResult(),o&&(N(this,Fe)!==s||mn(this.options.enabled,N(this,Fe))!==mn(n.enabled,N(this,Fe))||Wr(this.options.staleTime,N(this,Fe))!==Wr(n.staleTime,N(this,Fe)))&&Oe(this,ze,df).call(this);const l=Oe(this,ze,ff).call(this);o&&(N(this,Fe)!==s||mn(this.options.enabled,N(this,Fe))!==mn(n.enabled,N(this,Fe))||l!==N(this,Br))&&Oe(this,ze,hf).call(this,l)}getOptimisticResult(e){const n=N(this,Kt).getQueryCache().build(N(this,Kt),e),s=this.createResult(n,e);return wE(this,s)&&(re(this,zt,s),re(this,ki,this.options),re(this,Cs,N(this,Fe).state)),s}getCurrentResult(){return N(this,zt)}trackResult(e,n){return new Proxy(e,{get:(s,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&N(this,nr).status==="pending"&&N(this,nr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(e){N(this,Ti).add(e)}getCurrentQuery(){return N(this,Fe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=N(this,Kt).defaultQueryOptions(e),s=N(this,Kt).getQueryCache().build(N(this,Kt),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(e){return Oe(this,ze,Do).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,zt)))}createResult(e,n){var G;const s=N(this,Fe),o=this.options,l=N(this,zt),c=N(this,Cs),f=N(this,ki),h=e!==s?e.state:N(this,la),{state:m}=e;let y={...m},x=!1,w;if(n._optimisticResults){const ee=this.hasListeners(),ue=!ee&&Cy(e,n),Ce=ee&&Ty(e,s,n,o);(ue||Ce)&&(y={...y,...Kx(m.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:k}=y;w=y.data;let E=!1;if(n.placeholderData!==void 0&&w===void 0&&k==="pending"){let ee;l!=null&&l.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(ee=l.data,E=!0):ee=typeof n.placeholderData=="function"?n.placeholderData((G=N(this,Ci))==null?void 0:G.state.data,N(this,Ci)):n.placeholderData,ee!==void 0&&(k="success",w=lf(l==null?void 0:l.data,ee,n),x=!0)}if(n.select&&w!==void 0&&!E)if(l&&w===(c==null?void 0:c.data)&&n.select===N(this,ca))w=N(this,Ei);else try{re(this,ca,n.select),w=n.select(w),w=lf(l==null?void 0:l.data,w,n),re(this,Ei,w),re(this,Ir,null)}catch(ee){re(this,Ir,ee)}N(this,Ir)&&(S=N(this,Ir),w=N(this,Ei),_=Date.now(),k="error");const P=y.fetchStatus==="fetching",C=k==="pending",A=k==="error",D=C&&P,V=w!==void 0,B={status:k,fetchStatus:y.fetchStatus,isPending:C,isSuccess:k==="success",isError:A,isInitialLoading:D,isLoading:D,data:w,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:_,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!C,isLoadingError:A&&!V,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:A&&V,isStale:lh(e,n),refetch:this.refetch,promise:N(this,nr),isEnabled:mn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ee=B.data!==void 0,ue=B.status==="error"&&!ee,Ce=ge=>{ue?ge.reject(B.error):ee&&ge.resolve(B.data)},Ae=()=>{const ge=re(this,nr,B.promise=cf());Ce(ge)},he=N(this,nr);switch(he.status){case"pending":e.queryHash===s.queryHash&&Ce(he);break;case"fulfilled":(ue||B.data!==he.value)&&Ae();break;case"rejected":(!ue||B.error!==he.reason)&&Ae();break}}return B}updateResult(){const e=N(this,zt),n=this.createResult(N(this,Fe),this.options);if(re(this,Cs,N(this,Fe).state),re(this,ki,this.options),N(this,Cs).data!==void 0&&re(this,Ci,N(this,Fe)),of(n,e))return;re(this,zt,n);const s=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!N(this,Ti).size)return!0;const c=new Set(l??N(this,Ti));return this.options.throwOnError&&c.add("error"),Object.keys(N(this,zt)).some(f=>{const d=f;return N(this,zt)[d]!==e[d]&&c.has(d)})};Oe(this,ze,Qx).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,ze,pf).call(this)}},Kt=new WeakMap,Fe=new WeakMap,la=new WeakMap,zt=new WeakMap,Cs=new WeakMap,ki=new WeakMap,nr=new WeakMap,Ir=new WeakMap,ca=new WeakMap,Ei=new WeakMap,Ci=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Br=new WeakMap,Ti=new WeakMap,ze=new WeakSet,Do=function(e){Oe(this,ze,yf).call(this);let n=N(this,Fe).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Qt)),n},df=function(){Oe(this,ze,mf).call(this);const e=Wr(this.options.staleTime,N(this,Fe));if(Os||N(this,zt).isStale||!sf(e))return;const s=zx(N(this,zt).dataUpdatedAt,e)+1;re(this,Ts,vs.setTimeout(()=>{N(this,zt).isStale||this.updateResult()},s))},ff=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Fe)):this.options.refetchInterval)??!1},hf=function(e){Oe(this,ze,gf).call(this),re(this,Br,e),!(Os||mn(this.options.enabled,N(this,Fe))===!1||!sf(N(this,Br))||N(this,Br)===0)&&re(this,Rs,vs.setInterval(()=>{(this.options.refetchIntervalInBackground||ah.isFocused())&&Oe(this,ze,Do).call(this)},N(this,Br)))},pf=function(){Oe(this,ze,df).call(this),Oe(this,ze,hf).call(this,Oe(this,ze,ff).call(this))},mf=function(){N(this,Ts)&&(vs.clearTimeout(N(this,Ts)),re(this,Ts,void 0))},gf=function(){N(this,Rs)&&(vs.clearInterval(N(this,Rs)),re(this,Rs,void 0))},yf=function(){const e=N(this,Kt).getQueryCache().build(N(this,Kt),this.options);if(e===N(this,Fe))return;const n=N(this,Fe);re(this,Fe,e),re(this,la,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Qx=function(e){Tt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(N(this,zt))}),N(this,Kt).getQueryCache().notify({query:N(this,Fe),type:"observerResultsUpdated"})})},ax);function xE(t,e){return mn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Cy(t,e){return xE(t,e)||t.state.data!==void 0&&vf(t,e,e.refetchOnMount)}function vf(t,e,n){if(mn(e.enabled,t)!==!1&&Wr(e.staleTime,t)!=="static"){const s=typeof n=="function"?n(t):n;return s==="always"||s!==!1&&lh(t,e)}return!1}function Ty(t,e,n,s){return(t!==e||mn(s.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&lh(t,n)}function lh(t,e){return mn(e.enabled,t)!==!1&&t.isStaleByTime(Wr(e.staleTime,t))}function wE(t,e){return!of(t.getCurrentResult(),e)}function Ry(t){return{onFetch:(e,n)=>{var m,y,x,w,S;const s=e.options,o=(x=(y=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,l=((w=e.state.data)==null?void 0:w.pages)||[],c=((S=e.state.data)==null?void 0:S.pageParams)||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let _=!1;const k=C=>{dE(C,()=>e.signal,()=>_=!0)},E=Vx(e.options,e.fetchOptions),P=async(C,A,D)=>{if(_)return Promise.reject();
vendor: 4,265 bytes, line 211
211if(A==null&&C.pages.length)return Promise.resolve(C);const X=(()=>{const ue={client:e.client,queryKey:e.queryKey,pageParam:A,direction:D?"backward":"forward",meta:e.options.meta};return k(ue),ue})(),B=await E(X),{maxPages:G}=e.options,ee=D?uE:cE;return{pages:ee(C.pages,B,G),pageParams:ee(C.pageParams,A,G)}};if(o&&l.length){const C=o==="backward",A=C?bE:Py,D={pages:l,pageParams:c},V=A(s,D);f=await P(D,V,C)}else{const C=t??l.length;do{const A=d===0?c[0]??s.initialPageParam:Py(s,f);if(d>0&&A==null)break;f=await P(f,A),d++}while(d<C)}return f};e.options.persister?e.fetchFn=()=>{var _,k;return(k=(_=e.options).persister)==null?void 0:k.call(_,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=h}}}function Py(t,{pages:e,pageParams:n}){const s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,n[s],n):void 0}function bE(t,{pages:e,pageParams:n}){var s;return e.length>0?(s=t.getPreviousPageParam)==null?void 0:s.call(t,e[0],e,n[0],n):void 0}var ua,Mn,Ft,Ps,In,Nr,lx,SE=(lx=class extends qx{constructor(e){super();xe(this,In);xe(this,ua);xe(this,Mn);xe(this,Ft);xe(this,Ps);re(this,ua,e.client),this.mutationId=e.mutationId,re(this,Ft,e.mutationCache),re(this,Mn,[]),this.state=e.state||_E(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){N(this,Mn).includes(e)||(N(this,Mn).push(e),this.clearGcTimeout(),N(this,Ft).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){re(this,Mn,N(this,Mn).filter(n=>n!==e)),this.scheduleGc(),N(this,Ft).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){N(this,Mn).length||(this.state.status==="pending"?this.scheduleGc():N(this,Ft).remove(this))}continue(){var e;return((e=N(this,Ps))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var c,f,d,h,m,y,x,w,S,_,k,E,P,C,A,D,V,X;const n=()=>{Oe(this,In,Nr).call(this,{type:"continue"})},s={client:N(this,ua),meta:this.options.meta,mutationKey:this.options.mutationKey};re(this,Ps,Wx({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(B,G)=>{Oe(this,In,Nr).call(this,{type:"failed",failureCount:B,error:G})},onPause:()=>{Oe(this,In,Nr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Ft).canRun(this)}));const o=this.state.status==="pending",l=!N(this,Ps).canStart();try{if(o)n();else{Oe(this,In,Nr).call(this,{type:"pending",variables:e,isPaused:l}),N(this,Ft).config.onMutate&&await N(this,Ft).config.onMutate(e,this,s);const G=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,e,s));G!==this.state.context&&Oe(this,In,Nr).call(this,{type:"pending",context:G,variables:e,isPaused:l})}const B=await N(this,Ps).start();return await((h=(d=N(this,Ft).config).onSuccess)==null?void 0:h.call(d,B,e,this.state.context,this,s)),await((y=(m=this.options).onSuccess)==null?void 0:y.call(m,B,e,this.state.context,s)),await((w=(x=N(this,Ft).config).onSettled)==null?void 0:w.call(x,B,null,this.state.variables,this.state.context,this,s)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,B,null,e,this.state.context,s)),Oe(this,In,Nr).call(this,{type:"success",data:B}),B}catch(B){try{await((E=(k=N(this,Ft).config).onError)==null?void 0:E.call(k,B,e,this.state.context,this,s))}catch(G){Promise.reject(G)}try{await((C=(P=this.options).onError)==null?void 0:C.call(P,B,e,this.state.context,s))}catch(G){Promise.reject(G)}try{await((D=(A=N(this,Ft).config).onSettled)==null?void 0:D.call(A,void 0,B,this.state.variables,this.state.context,this,s))}catch(G){Promise.reject(G)}try{await((X=(V=this.options).onSettled)==null?void 0:X.call(V,void 0,B,e,this.state.context,s))}catch(G){Promise.reject(G)}throw Oe(this,In,Nr).call(this,{type:"error",error:B}),B}finally{N(this,Ft).runNext(this)}}},ua=new WeakMap,Mn=new WeakMap,Ft=new WeakMap,Ps=new WeakMap,In=new WeakSet,Nr=function(e){const n=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
211case"pending":return{...s,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{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tt.batch(()=>{N(this,Mn).forEach(s=>{s.onMutationUpdate(e)}),N(this,Ft).notify({mutation:this,type:"updated",action:e})})},lx);function _E(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rr,Pn,da,cx,kE=(cx=class extends ha{constructor(e={}){super();xe(this,rr);xe(this,Pn);xe(this,da);this.config=e,re(this,rr,new Set),re(this,Pn,new Map),re(this,da,0)}build(e,n,s){const o=new SE({client:e,mutationCache:this,mutationId:++jl(this,da)._,options:e.defaultMutationOptions(n),state:s});return this.add(o),o}add(e){N(this,rr).add(e);const n=Ll(e);if(typeof n=="string"){const s=N(this,Pn).get(n);s?s.push(e):N(this,Pn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(N(this,rr).delete(e)){const n=Ll(e);if(typeof n=="string"){const s=N(this,Pn).get(n);if(s)if(s.length>1){const o=s.indexOf(e);o!==-1&&s.splice(o,1)}else s[0]===e&&N(this,Pn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ll(e);if(typeof n=="string"){const s=N(this,Pn).get(n),o=s==null?void 0:s.find(l=>l.state.status==="pending");return!o||o===e}else return!0}runNext(e){var s;const n=Ll(e);if(typeof n=="string"){const o=(s=N(this,Pn).get(n))==null?void 0:s.find(l=>
vendor: 4,532 bytes, line 211
211l!==e&&l.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{N(this,rr).forEach(e=>{this.notify({type:"removed",mutation:e})}),N(this,rr).clear(),N(this,Pn).clear()})}getAll(){return Array.from(N(this,rr))}find(e){const n={exact:!0,...e};return this.getAll().find(s=>by(n,s))}findAll(e={}){return this.getAll().filter(n=>by(e,n))}notify(e){Tt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Tt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Qt))))}},rr=new WeakMap,Pn=new WeakMap,da=new WeakMap,cx);function Ll(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Bn,ux,EE=(ux=class extends ha{constructor(e={}){super();xe(this,Bn);this.config=e,re(this,Bn,new Map)}build(e,n,s){const o=n.queryKey,l=n.queryHash??ih(o,n);let c=this.get(l);return c||(c=new yE({client:e,queryKey:o,queryHash:l,options:e.defaultQueryOptions(n),state:s,defaultOptions:e.getQueryDefaults(o)}),this.add(c)),c}add(e){N(this,Bn).has(e.queryHash)||(N(this,Bn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=N(this,Bn).get(e.queryHash);n&&(e.destroy(),n===e&&N(this,Bn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return N(this,Bn).get(e)}getAll(){return[...N(this,Bn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(s=>wy(n,s))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(s=>wy(e,s)):n}notify(e){Tt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Bn=new WeakMap,ux),nt,zr,Ur,Ri,Pi,Vr,Ai,ji,dx,CE=(dx=class{constructor(t={}){xe(this,nt);xe(this,zr);xe(this,Ur);xe(this,Ri);xe(this,Pi);xe(this,Vr);xe(this,Ai);xe(this,ji);re(this,nt,t.queryCache||new EE),re(this,zr,t.mutationCache||new kE),re(this,Ur,t.defaultOptions||{}),re(this,Ri,new Map),re(this,Pi,new Map),re(this,Vr,0)}mount(){jl(this,Vr)._++,N(this,Vr)===1&&(re(this,Ai,ah.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,nt).onFocus())})),re(this,ji,sc.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,nt).onOnline())})))}unmount(){var t,e;jl(this,Vr)._--,N(this,Vr)===0&&((t=N(this,Ai))==null||t.call(this),re(this,Ai,void 0),(e=N(this,ji))==null||e.call(this),re(this,ji,void 0))}isFetching(t){return N(this,nt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return N(this,zr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,nt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=N(this,nt).build(this,e),s=n.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Wr(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return N(this,nt).findAll(t).map(({queryKey:e,state:n})=>{const s=n.data;return[e,s]})}setQueryData(t,e,n){const s=this.defaultQueryOptions({queryKey:t}),o=N(this,nt).get(s.queryHash),l=o==null?void 0:o.state.data,c=oE(e,l);if(c!==void 0)return N(this,nt).build(this,s).setData(c,{...n,manual:!0})}setQueriesData(t,e,n){return Tt.batch(()=>N(this,nt).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,nt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=N(this,nt);Tt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=N(this,nt);return Tt.batch(()=>(n.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},s=Tt.batch(()=>N(this,nt).findAll(t).map(o=>o.cancel(n)));return Promise.all(s).then(Qt).catch(Qt)}invalidateQueries(t,e={}){return Tt.batch(()=>(N(this,nt).findAll(t).forEach(n=>{n.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 n={...e,cancelRefetch:e.cancelRefetch??!0},s=Tt.batch(()=>N(this,nt).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(Qt)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(Qt)}
211fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=N(this,nt).build(this,e);return n.isStaleByTime(Wr(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Qt).catch(Qt)}fetchInfiniteQuery(t){return t.behavior=Ry(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Qt).catch(Qt)}ensureInfiniteQueryData(t){return t.behavior=Ry(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return sc.isOnline()?N(this,zr).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,nt)}getMutationCache(){return N(this,zr)}getDefaultOptions(){return N(this,Ur)}setDefaultOptions(t){re(this,Ur,t)}setQueryDefaults(t,e){N(this,Ri).set(Yo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...N(this,Ri).values()],n={};return e.forEach(s=>{Xo(t,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(t,e){N(this,Pi).set(Yo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...N(this,Pi).values()],n={};return e.forEach(s=>{Xo(t,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...N(this,Ur).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ih(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===oh&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...N(this,Ur).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){N(this,nt).clear(),N(this,zr).clear()}},nt=new WeakMap,zr=new WeakMap,Ur=new WeakMap,Ri=new WeakMap,Pi=new WeakMap,Vr=new WeakMap,Ai=new WeakMap,ji=new WeakMap,dx),Gx=T.createContext(void 0),TE=t=>{const e=T.useContext(Gx);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},RE=({client:t,children:e})=>(T.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),p.jsx(Gx.Provider,{value:t,children:e})),Yx=T.createContext(!1),PE=()=>T.useContext(Yx);Yx.Provider;function AE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var jE=T.createContext(AE()),NE=()=>T.useContext(jE),OE=(t,e,n)=>{const s=n!=null&&n.state.error&&typeof t.throwOnError=="function"?$x(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&(e.isReset()||(t.retryOnMount=!1))},FE=t=>{T.useEffect(()=>{t.clearReset()},[t])},LE=({result:t,errorResetBoundary:e,throwOnError:n,query:s,suspense:o})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&(o&&t.data===void 0||$x(n,[t.error,s])),DE=t=>{if(t.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...o)=>n(s(...o)):n(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},ME=(t,e)=>t.isLoading&&t.isFetching&&!e,IE=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Ay=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function BE(t,e,n){var x,w,S,_;const s=PE(),o=NE(),l=TE(),c=l.defaultQueryOptions(t);(w=(x=l.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||w.call(x,c);const f=l.getQueryCache().get(c.queryHash);c._optimisticResults=s?"isRestoring":"optimistic",DE(c),OE(c,o,f),FE(o);const d=!l.getQueryCache().get(c.queryHash),[h]=T.useState(()=>new e(l,c)),m=h.getOptimisticResult(c),y=!s&&t.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(k=>{const E=y?h.subscribe(Tt.batchCalls(k)):Qt;return h.updateResult(),E},[h,y]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),T.useEffect(()=>{h.setOptions(c)},[c,h]),IE(c,m))throw Ay(c,h,o);if(LE({result:m,errorResetBoundary:o,throwOnError:c.throwOnError,query:f,suspense:c.suspense}))throw m.error;if((_=(S=l.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||_.call(S,c,m),c.experimental_prefetchInRender&&!Os&&ME(m,s)){const k=d?Ay(c,h,o):f==null?void 0:f.promise;k==null||k.catch(Qt).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?m:h.trackResult(m)}function zE(t,e){return BE(t,vE)}const UE=new CE({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var VE=px();/**
212 * @remix-run/router v1.23.2
213 *
214 * Copyright (c) Remix Software Inc.
215 *
216 * This source code is licensed under the MIT license found in the
217 * LICENSE.md file in the root directory of this source tree.
218 *
219 * @license MIT
220 */function Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Jo.apply(this,arguments)}var $r;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})($r||($r={}));const jy="popstate";function $E(t){t===void 0&&(t={});function e(s,o){let{pathname:l,search:c,hash:f}=s.location;return xf("",{pathname:l,search:c,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 11,685 bytes, lines 220-229
220function n(s,o){return typeof o=="string"?o:ic(o)}return WE(e,n,null,t)}function lt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function ch(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function HE(){return Math.random().toString(36).substr(2,8)}function Ny(t,e){return{usr:t.state,key:t.key,idx:e}}function xf(t,e,n,s){return n===void 0&&(n=null),Jo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Mi(e):e,{state:n,key:e&&e.key||s||HE()})}function ic(t){let{pathname:e="/",search:n="",hash:s=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function Mi(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let s=t.indexOf("?");s>=0&&(e.search=t.substr(s),t=t.substr(0,s)),t&&(e.pathname=t)}return e}function WE(t,e,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:l=!1}=s,c=o.history,f=$r.Pop,d=null,h=m();h==null&&(h=0,c.replaceState(Jo({},c.state,{idx:h}),""));function m(){return(c.state||{idx:null}).idx}function y(){f=$r.Pop;let k=m(),E=k==null?null:k-h;h=k,d&&d({action:f,location:_.location,delta:E})}function x(k,E){f=$r.Push;let P=xf(_.location,k,E);h=m()+1;let C=Ny(P,h),A=_.createHref(P);try{c.pushState(C,"",A)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;o.location.assign(A)}l&&d&&d({action:f,location:_.location,delta:1})}function w(k,E){f=$r.Replace;let P=xf(_.location,k,E);h=m();let C=Ny(P,h),A=_.createHref(P);c.replaceState(C,"",A),l&&d&&d({action:f,location:_.location,delta:0})}function S(k){let E=o.location.origin!=="null"?o.location.origin:o.location.href,P=typeof k=="string"?k:ic(k);return P=P.replace(/ $/,"%20"),lt(E,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,E)}let _={get action(){return f},get location(){return t(o,c)},listen(k){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(jy,y),d=k,()=>{o.removeEventListener(jy,y),d=null}},createHref(k){return e(o,k)},createURL:S,encodeLocation(k){let E=S(k);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:x,replace:w,go(k){return c.go(k)}};return _}var Oy;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Oy||(Oy={}));function qE(t,e,n){return n===void 0&&(n="/"),KE(t,e,n)}function KE(t,e,n,s){let o=typeof e=="string"?Mi(e):e,l=uh(o.pathname||"/",n);if(l==null)return null;let c=Xx(t);QE(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=oC(l);f=rC(c[d],h)}return f}function Xx(t,e,n,s){e===void 0&&(e=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(l,c,f)=>{let d={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};d.relativePath.startsWith("/")&&(lt(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let h=qr([s,d.relativePath]),m=n.concat(d);l.children&&l.children.length>0&&(lt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),Xx(l.children,e,m,h)),!(l.path==null&&!l.index)&&e.push({path:h,score:tC(h,l.index),routesMeta:m})};return t.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let d of Jx(l.path))o(l,c,d)}),e}function Jx(t){let e=t.split("/");if(e.length===0)return[];let[n,...s]=e,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(s.length===0)return o?[l,""]:[l];let c=Jx(s.join("/")),f=[];return f.push(...c.map(d=>d===""?l:[l,d].join("/"))),o&&f.push(...c),f.map(d=>t.startsWith("/")&&d===""?"/":d)}function QE(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:nC(e.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const GE=/^:[\w-]+$/,YE=3,XE=2,JE=1,ZE=10,eC=-2,Fy=t=>t==="*";function tC(t,e){let n=t.split("/"),s=n.length;return n.some(Fy)&&(s+=eC),e&&(s+=XE),n.filter(o=>!Fy(o)).reduce((o,l)=>o+(GE.test(l)?YE:l===""?JE:ZE),s)}function nC(t,e){return t.length===e.length&&t.slice(0,-1).every((s,o)=>s===e[o])?t[t.length-1]-e[e.length-1]:0}function rC(t,e,n){let{routesMeta:s}=t,o={},l="/",c=[];for(let f=0;f<s.length;++f){let d=s[f],h=f===s.length-1,m=l==="/"?e:e.slice(l.length)||"/",y=sC({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),x=d.route;if(!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:qr([l,y.pathname]),pathnameBase:dC(qr([l,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(l=qr([l,y.pathnameBase]))}return c}function sC(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,s]=iC(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let l=o[0],c=l.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:s.reduce((h,m,y)=>{let{paramName:x,isOptional:w}=m;if(x==="*"){let _=f[y]||"";c=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const S=f[y];return w&&!S?h[x]=void 0:h[x]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:c,pattern:t}}function iC(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),ch(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 s=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(s.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(s.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),s]}function oC(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ch(!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 uh(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,s=t.charAt(n);return s&&s!=="/"?null:t.slice(n)||"/"}const aC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lC=t=>aC.test(t);function cC(t,e){e===void 0&&(e="/");let{pathname:n,search:s="",hash:o=""}=typeof t=="string"?Mi(t):t,l;if(n)if(lC(n))l=n;else{if(n.includes("//")){let c=n;n=n.replace(/\/\/+/g,"/"),ch(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+n))}n.startsWith("/")?l=Ly(n.substring(1),"/"):l=Ly(n,e)}else l=e;return{pathname:l,search:fC(s),hash:hC(o)}}function Ly(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Nd(t,e,n,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function uC(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function dh(t,e){let n=uC(t);return e?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function fh(t,e,n,s){s===void 0&&(s=!1);let o;typeof t=="string"?o=Mi(t):(o=Jo({},t),lt(!o.pathname||!o.pathname.includes("?"),Nd("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),Nd("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),Nd("#","search","hash",o)));let l=t===""||o.pathname==="",c=l?"/":o.pathname,f;if(c==null)f=n;else{let y=e.length-1;if(!s&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),y-=1;o.pathname=x.join("/")}f=y>=0?e[y]:"/"}let d=cC(o,f),h=c&&c!=="/"&&c.endsWith("/"),m=(l||c===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}const qr=t=>t.join("/").replace(/\/\/+/g,"/"),dC=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),fC=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,hC=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function pC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Zx=["post","put","patch","delete"];new Set(Zx);const mC=["get",...Zx];new Set(mC);/**
221 * React Router v6.30.3
222 *
223 * Copyright (c) Remix Software Inc.
224 *
225 * This source code is licensed under the MIT license found in the
226 * LICENSE.md file in the root directory of this source tree.
227 *
228 * @license MIT
229 */function Zo(){return Zo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Zo.apply(this,arguments)}const hh=T.createContext(null),gC=T.createContext(null),Xr=T.createContext(null),xc=T.createContext(null),lr=T.createContext({outlet:null,matches:[],isDataRoute:!1}),ew=T.createContext(null);function yC(t,e){let{relative:n}=e===void 0?{}:e;Ii()||lt(!1);let{basename:s,navigator:o}=T.useContext(Xr),{hash:l,pathname:c,search:f}=nw(t,{relative:n}),d=c;return s!=="/"&&(d=c==="/"?s:qr([s,c])),o.createHref({pathname:d,search:f,hash:l})}function Ii(){return T.useContext(xc)!=null}function Bs(){return Ii()||lt(!1),T.useContext(xc).location}function tw(t){T.useContext(Xr).static||T.useLayoutEffect(t)}function ph(){let{isDataRoute:t}=T.useContext(lr);return t?AC():vC()}function vC(){Ii()||lt(!1);let t=T.useContext(hh),{basename:e,future:n,navigator:s}=T.useContext(Xr),{matches:o}=T.useContext(lr),{pathname:l}=Bs(),c=JSON.stringify(dh(o,n.v7_relativeSplatPath)),f=T.useRef(!1);return tw(()=>{f.current=!0}),T.useCallback(function(h,m){if(m===void 0&&(m={}),!f.current)return;if(typeof h=="number"){s.go(h);return}let y=fh(h,JSON.parse(c),l,m.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:qr([e,y.pathname])),(m.replace?s.replace:s.push)(y,m.state,m)},[e,s,c,l,t])}function JO(){let{matches:t}=T.useContext(lr),e=t[t.length-1];return e?e.params:{}}function nw(t,e){let{relative:n}=e===void 0?{}:e,{future:s}=T.useContext(Xr),{matches:o}=T.useContext(lr),{pathname:l}=Bs(),c=JSON.stringify(dh(o,s.v7_relativeSplatPath));return T.useMemo(()=>fh(t,JSON.parse(c),l,n==="path"),[t,c,l,n])}function xC(t,e){return wC(t,e)}function wC(t,e,n,s){Ii()||lt(!1);let{navigator:o}=T.useContext(Xr),{matches:l}=T.useContext(lr),c=l[l.length-1],f=c?c.params:{};c&&c.pathname;let d=c?c.pathnameBase:"/";c&&c.route;let h=Bs(),m;if(e){var y;let k=typeof e=="string"?Mi(e):e;d==="/"||(y=k.pathname)!=null&&y.startsWith(d)||lt(!1),m=k}else m=h;let x=m.pathname||"/",w=x;if(d!=="/"){let k=d.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(k.length).join("/")}let S=qE(t,{pathname:w}),_=EC(S&&S.map(k=>Object.assign({},k,{params:Object.assign({},f,k.params),pathname:qr([d,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?d:qr([d,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,s);return e&&_?T.createElement(xc.Provider,{value:{location:Zo({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:$r.Pop}},_):_}function bC(){let t=PC(),e=pC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application 
229Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:o},n):null,null)}const SC=T.createElement(bC,null);class _C extends T.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,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?T.createElement(lr.Provider,{value:this.props.routeContext},T.createElement(ew.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kC(t){let{routeContext:e,match:n,children:s}=t,o=T.useContext(hh);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(lr.Provider,{value:e},s)}function EC(t,e,n,s){var o;if(e===void 0&&(e=[]),n===void 0&&(n=null),s===void 0&&(s=null),t==null){var l;if(!n)return null;if(n.errors)t=n.matches;else if((l=s)!=null&&l.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let c=t,f=(o=n)==null?void 0:o.errors;if(f!=null){let m=c.findIndex(y=>y.route.id&&(f==null?void 0:f[y.route.id])!==void 0);m>=0||lt(!1),c=c.slice(0,Math.min(c.length,m+1))}let d=!1,h=-1;if(n&&s&&s.v7_partialHydration)for(let m=0;m<c.length;m++){let y=c[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=m),y.route.id){let{loaderData:x,errors:w}=n,S=y.route.loader&&x[y.route.id]===void 0&&(!w||w[y.route.id]===void 0);if(y.route.lazy||S){d=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((m,y,x)=>{let w,S=!1,_=null,k=null;n&&(w=f&&y.route.id?f[y.route.id]:void 0,_=y.route.errorElement||SC,d&&(h<0&&x===0?(jC("route-fallback"),S=!0,k=null):h===x&&(S=!0,k=y.route.hydrateFallbackElement||null)));let E=e.concat(c.slice(0,x+1)),P=()=>{let C;return w?C=_:S?C=k:y.route.Component?C=T.createElement(y.route.Component,null):y.route.element?C=y.route.element:C=m,T.createElement(kC,{match:y,routeContext:{outlet:m,matches:E,isDataRoute:n!=null},children:C})};return n&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?T.createElement(_C,{location:n.location,revalidation:n.revalidation,component:_,error:w,children:P(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):P()},null)}var rw=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(rw||{}),sw=(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})(sw||{});function CC(t){let e=T.useContext(hh);return e||lt(!1),e}function TC(t){let e=T.useContext(gC);return e||lt(!1),e}function RC(t){let e=T.useContext(lr);return e||lt(!1),e}function iw(t){let e=RC(),n=e.matches[e.matches.length-1];return n.route.id||lt(!1),n.route.id}function PC(){var t;let e=T.useContext(ew),n=TC(),s=iw();return e!==void 0?e:(t=n.errors)==null?void 0:t[s]}function AC(){let{router:t}=CC(rw.UseNavigateStable),e=iw(sw.UseNavigateStable),n=T.useRef(!1);return tw(()=>{n.current=!0}),T.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Zo({fromRouteId:e},l)))},[t,e])}const Dy={};function jC(t,e,n){Dy[t]||(Dy[t]=!0)}function NC(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function se(t){let{to:e,replace:n,state:s,relative:o}=t;Ii()||lt(!1);let{future:l,static:c}=T.useContext(Xr),{matches:f}=T.useContext(lr),{pathname:d}=Bs(),h=ph(),m=fh(e,dh(f,l.v7_relativeSplatPath),d,o==="path"),y=JSON.stringify(m);return T.useEffect(()=>h(JSON.parse(y),{replace:n,state:s,relative:o}),[h,y,o,n,s]),null}function W(t){lt(!1)}function OC(t){let{basename:e="/",children:n=null,location:s,navigationType:o=$r.Pop,navigator:l,static:c=!1,future:f}=t;Ii()&&lt(!1);let d=e.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:d,navigator:l,static:c,future:Zo({v7_relativeSplatPath:!1},f)}),[d,f,l,c]);typeof s=="string"&&(s=Mi(s));
229let{pathname:m="/",search:y="",hash:x="",state:w=null,key:S="default"}=s,_=T.useMemo(()=>{let k=uh(m,d);return k==null?null:{location:{pathname:k,search:y,hash:x,state:w,key:S},navigationType:o}},[d,m,y,x,w,S,o]);return _==null?null:T.createElement(Xr.Provider,{value:h},T.createElement(xc.Provider,{children:n,value:_}))}function FC(t){let{children:e,location:n}=t;return xC(wf(e),n)}new Promise(()=>{});function wf(t,e){e===void 0&&(e=[]);let n=[];return T.Children.forEach(t,(s,o)=>{if(!T.isValidElement(s))return;let l=[...e,o];if(s.type===T.Fragment){n.push.apply(n,wf(s.props.children,l));return}s.type!==W&&lt(!1),!s.props.index||!s.props.children||lt(!1);let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=wf(s.props.children,l)),n.push(c)}),n}/**
230 * React Router DOM v6.30.3
231 *
232 * Copyright (c) Remix Software Inc.
233 *
234 * This source code is licensed under the MIT license found in the
235 * LICENSE.md file in the root directory of this source tree.
236 *
237 * @license MIT
238 */function bf(){return bf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},bf.apply(this,arguments)}function LC(t,e){if(t==null)return{};var n={},s=Object.keys(t),o,l;for(l=0;l<s.length;l++)o=s[l],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function DC(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function MC(t,e){return t.button===0&&(!e||e==="_self")&&!DC(t)}function Sf(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let s=t[n];return e.concat(Array.isArray(s)?s.map(o=>[n,o]):[[n,s]])},[]))}function IC(t,e){let n=Sf(t);return e&&e.forEach((s,o)=>{n.has(o)||e.getAll(o).forEach(l=>{n.append(o,l)})}),n}const BC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],zC="6";try{window.__reactRouterVersion=zC}catch{}const UC="startTransition",My=QS[UC];function VC(t){let{basename:e,children:n,future:s,window:o}=t,l=T.useRef();l.current==null&&(l.current=$E({window:o,v5Compat:!0}));let c=l.current,[f,d]=T.useState({action:c.action,location:c.location}),{v7_startTransition:h}=s||{},m=T.useCallback(y=>{h&&My?My(()=>d(y)):d(y)},[d,h]);return T.useLayoutEffect(()=>c.listen(m),[c,m]),T.useEffect(()=>NC(s),[s]),T.createElement(OC,{basename:e,children:n,location:f.location,navigationType:f.action,navigator:c,future:s})}const $C=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,We=T.forwardRef(function(e,n){let{onClick:s,relative:o,reloadDocument:l,replace:c,state:f,target:d,to:h,preventScrollReset:m,viewTransition:y}=e,x=LC(e,BC),{basename:w}=T.useContext(Xr),S,_=!1;if(typeof h=="string"&&HC.test(h)&&(S=h,$C))try{let C=new URL(window.location.href),A=h.startsWith("//")?new URL(C.protocol+h):new URL(h),D=uh(A.pathname,w);A.origin===C.origin&&D!=null?h=D+A.search+A.hash:_=!0}catch{}let k=yC(h,{relative:o}),E=WC(h,{replace:c,state:f,target:d,preventScrollReset:m,relative:o,viewTransition:y});function P(C){s&&s(C),C.defaultPrevented||E(C)}return T.createElement("a",bf({},x,{href:S||k,onClick:_||l?s:P,ref:n,target:d}))});var Iy;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Iy||(Iy={}));var By;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(By||(By={}));function WC(t,e){let{target:n,replace:s,state:o,preventScrollReset:l,relative:c,viewTransition:f}=e===void 0?{}:e,d=ph(),h=Bs(),m=nw(t,{relative:c}
vendor: 4,233 bytes, line 238
238);return T.useCallback(y=>{if(MC(y,n)){y.preventDefault();let x=s!==void 0?s:ic(h)===ic(m);d(t,{replace:x,state:o,preventScrollReset:l,relative:c,viewTransition:f})}},[h,d,m,s,o,n,t,l,c,f])}function qC(t){let e=T.useRef(Sf(t)),n=T.useRef(!1),s=Bs(),o=T.useMemo(()=>IC(s.search,n.current?null:e.current),[s.search]),l=ph(),c=T.useCallback((f,d)=>{const h=Sf(typeof f=="function"?f(o):f);n.current=!0,l("?"+h,d)},[l,o]);return[o,c]}function ow(t,e){return function(){return t.apply(e,arguments)}}const{toString:KC}=Object.prototype,{getPrototypeOf:Ni}=Object,{iterator:pa,toStringTag:aw}=Symbol,oc=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ea=(t,e)=>{let n=t;const s=[];for(;n!=null&&n!==Object.prototype;){if(s.indexOf(n)!==-1)return!1;if(s.push(n),oc(n,e))return!0;n=Ni(n)}return!1},QC=(t,e)=>t!=null&&ea(t,e)?t[e]:void 0,mh=(t=>e=>{const n=KC.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jn=t=>(t=t.toLowerCase(),e=>mh(e)===t),wc=t=>e=>typeof e===t,{isArray:Fs}=Array,Oi=wc("undefined");function Bi(t){return t!==null&&!Oi(t)&&t.constructor!==null&&!Oi(t.constructor)&&Gt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const lw=jn("ArrayBuffer");function GC(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&lw(t.buffer),e}const YC=wc("string"),Gt=wc("function"),cw=wc("number"),zi=t=>t!==null&&typeof t=="object",XC=t=>t===!0||t===!1,Kl=t=>{if(!zi(t))return!1;const e=Ni(t);return(e===null||e===Object.prototype||Ni(e)===null)&&!ea(t,aw)&&!ea(t,pa)},JC=t=>{if(!zi(t)||Bi(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},ZC=jn("Date"),e5=jn("File"),t5=t=>!!(t&&typeof t.uri<"u"),n5=t=>t&&typeof t.getParts<"u",r5=jn("Blob"),s5=jn("FileList"),i5=t=>zi(t)&&Gt(t.pipe);function o5(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const zy=o5(),Uy=typeof zy.FormData<"u"?zy.FormData:void 0,a5=t=>{if(!t)return!1;if(Uy&&t instanceof Uy)return!0;const e=Ni(t);if(!e||e===Object.prototype||!Gt(t.append))return!1;const n=mh(t);return n==="formdata"||n==="object"&&Gt(t.toString)&&t.toString()==="[object FormData]"},l5=jn("URLSearchParams"),[c5,u5,d5,f5]=["ReadableStream","Request","Response","Headers"].map(jn),h5=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ma(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,o;if(typeof t!="object"&&(t=[t]),Fs(t))for(s=0,o=t.length;s<o;s++)e.call(null,t[s],s,t);else{if(Bi(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),c=l.length;let f;for(s=0;s<c;s++)f=l[s],e.call(null,t[f],f,t)}}function uw(t,e){if(Bi(t))return null;e=e.toLowerCase();const n=Object.keys(t);let s=n.length,o;for(;s-- >0;)if(o=n[s],e===o.toLowerCase())return o;return null}const xs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dw=t=>!Oi(t)&&t!==xs;function _f(...t){const{caseless:e,skipUndefined:n}=dw(this)&&this||{},s={},o=(l,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=e&&typeof c=="string"&&uw(s,c)||c,d=oc(s,f)?s[f]:void 0;Kl(d)&&Kl(l)?s[f]=_f(d,l):Kl(l)?s[f]=_f({},l):Fs(l)?s[f]=l.slice():(!n||!Oi(l))&&(s[f]=l)};for(let l=0,c=t.length;l<c;l++){const f=t[l];if(!f||Bi(f)||(ma(f,o),typeof f!="object"||Fs(f)))continue;const d=Object.getOwnPropertySymbols(f);for(let h=0;h<d.length;h++){const m=d[h];E5.call(f,m)&&o(f[m],m)}}return s}const p5=(t,e,n,{allOwnKeys:s}={})=>(ma(e,(o,l)=>{n&&Gt(o)?Object.defineProperty(t,l,{__proto__:null,value:ow(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),t),m5=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),g5=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},y5=(t,e,n,s)=>{let o,l,c;const f={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),l=o.length;l-- >0;
vendor: 4,283 bytes, lines 238-239
238)c=o[l],(!s||s(c,t,e))&&!f[c]&&(e[c]=t[c],f[c]=!0);t=n!==!1&&Ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},v5=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},x5=t=>{if(!t)return null;if(Fs(t))return t;let e=t.length;if(!cw(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},w5=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ni(Uint8Array)),b5=(t,e)=>{const s=(t&&t[pa]).call(t);let o;for(;(o=s.next())&&!o.done;){const l=o.value;e.call(t,l[0],l[1])}},S5=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},_5=jn("HTMLFormElement"),k5=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),{propertyIsEnumerable:E5}=Object.prototype,C5=jn("RegExp"),fw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};ma(n,(o,l)=>{let c;(c=e(o,l,t))!==!1&&(s[l]=c||o)}),Object.defineProperties(t,s)},T5=t=>{fw(t,(e,n)=>{if(Gt(t)&&["arguments","caller","callee"].includes(n))return!1;const s=t[n];if(Gt(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},R5=(t,e)=>{const n={},s=o=>{o.forEach(l=>{n[l]=!0})};return Fs(t)?s(t):s(String(t).split(e)),n},P5=()=>{},A5=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function j5(t){return!!(t&&Gt(t.append)&&t[aw]==="FormData"&&t[pa])}const N5=t=>{const e=new WeakSet,n=s=>{if(zi(s)){if(e.has(s))return;if(Bi(s))return s;if(!("toJSON"in s)){e.add(s);const o=Fs(s)?[]:{};return ma(s,(l,c)=>{const f=n(l);!Oi(f)&&(o[c]=f)}),e.delete(s),o}}return s};return n(t)},O5=jn("AsyncFunction"),F5=t=>t&&(zi(t)||Gt(t))&&Gt(t.then)&&Gt(t.catch),hw=((t,e)=>t?setImmediate:e?((n,s)=>(xs.addEventListener("message",({source:o,data:l})=>{o===xs&&l===n&&s.length&&s.shift()()},!1),o=>{s.push(o),xs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gt(xs.postMessage)),L5=typeof queueMicrotask<"u"?queueMicrotask.bind(xs):typeof process<"u"&&process.nextTick||hw,pw=t=>t!=null&&Gt(t[pa]),D5=t=>t!=null&&ea(t,pa)&&pw(t),L={isArray:Fs,isArrayBuffer:lw,isBuffer:Bi,isFormData:a5,isArrayBufferView:GC,isString:YC,isNumber:cw,isBoolean:XC,isObject:zi,isPlainObject:Kl,isEmptyObject:JC,isReadableStream:c5,isRequest:u5,isResponse:d5,isHeaders:f5,isUndefined:Oi,isDate:ZC,isFile:e5,isReactNativeBlob:t5,isReactNative:n5,isBlob:r5,isRegExp:C5,isFunction:Gt,isStream:i5,isURLSearchParams:l5,isTypedArray:w5,isFileList:s5,forEach:ma,merge:_f,extend:p5,trim:h5,stripBOM:m5,inherits:g5,toFlatObject:y5,kindOf:mh,kindOfTest:jn,endsWith:v5,toArray:x5,forEachEntry:b5,matchAll:S5,isHTMLForm:_5,hasOwnProperty:oc,hasOwnProp:oc,hasOwnInPrototypeChain:ea,getSafeProp:QC,reduceDescriptors:fw,freezeMethods:T5,toObjectSet:R5,toCamelCase:k5,noop:P5,toFiniteNumber:A5,findKey:uw,global:xs,isContextDefined:dw,isSpecCompliantForm:j5,toJSONObject:N5,isAsyncFn:O5,isThenable:F5,setImmediate:hw,asap:L5,isIterable:pw,isSafeIterable:D5},M5=L.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"]),I5=t=>{const e={};let n,s,o;return t&&t.split(`
239`).forEach(function(c){o=c.indexOf(":"),n=c.substring(0,o).trim().toLowerCase(),s=c.substring(o+1).trim(),!(!n||e[n]&&M5[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e};function B5(t){let e=0,n=t.length;for(;e<n;){const s=t.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;n>e;){const s=t.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const z5=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),U5=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function gh(t,e){return L.isArray(t)?t.map(n=>gh(n,e)):B5(String(t).replace(e,""))}const V5=t=>gh(t,z5),$5=t=>gh(t,U5);function mw(t){const e=Object.create(null);return L.forEach(t.toJSON(),(n,s)=>{e[s]=$5(n)}),e}const Vy=Symbol("internals");function jo(t){return t&&String(t).trim().toLowerCase()}function Ql(t){return t===!1||t==null?t:L.isArray(t)?t.map(Ql):V5(String(t))}function H5(t){const e=Object.create(null),n=/([^\s,;
239=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const W5=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Od(t,e,n,s,o){if(L.isFunction(s))return s.call(this,e,n);if(o&&(e=n),!!L.isString(e)){if(L.isString(s))return e.indexOf(s)!==-1;if(L.isRegExp(s))return s.test(e)}}function q5(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function K5(t,e){const n=L.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{__proto__:null,value:function(o,l,c){return this[s].call(this,e,o,l,c)},configurable:!0})})}let Mt=class{constructor(e){e&&this.set(e)}set(e,n,s){const o=this;function l(f,d,h){const m=jo(d);if(!m)return;const y=L.findKey(o,m);(!y||o[y]===void 0||h===!0||h===void 0&&o[y]!==!1)&&(o[y||d]=Ql(f))}const c=(f,d)=>L.forEach(f,(h,m)=>l(h,m,d));if(L.isPlainObject(e)||e instanceof this.constructor)c(e,n);else if(L.isString(e)&&(e=e.trim())&&!W5(e))c(I5(e),n);else if(L.isObject(e)&&L.isSafeIterable(e)){let f=Object.create(null),d,h;for(const m of e){if(!L.isArray(m))throw new TypeError("Object iterator must return a key-value pair");h=m[0],L.hasOwnProp(f,h)?(d=f[h],f[h]=L.isArray(d)?[...d,m[1]]:[d,m[1]]):f[h]=m[1]}c(f,n)}else e!=null&&l(n,e,s);return this}get(e,n){if(e=jo(e),e){const s=L.findKey(this,e);if(s){const o=this[s];if(!n)return o;if(n===!0)return H5(o);if(L.isFunction(n))return n.call(this,o,s);if(L.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=jo(e),e){const s=L.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||Od(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let o=!1;function l(c){if(c=jo(c),c){const f=L.findKey(s,c);f&&(!n||Od(s,s[f],f,n))&&(delete s[f],o=!0)}}return L.isArray(e)?e.forEach(l):l(e),o}clear(e){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const l=n[s];(!e||Od(this,this[l],l,e,!0))&&(delete this[l],o=!0)}return o}normalize(e){const n=this,s={};return L.forEach(this,(o,l)=>{const c=L.findKey(s,l);if(c){n[c]=Ql(o),delete n[l];return}const f=e?q5(l):String(l).trim();f!==l&&delete n[l],n[f]=Ql(o),s[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return L.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=e&&L.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
240`)}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,...n){const s=new this(e);return n.forEach(o=>s.set(o)),s}static accessor(e){const s=(this[Vy]=this[Vy]={accessors:{}}).accessors,o=this.prototype;function l(c){const f=jo(c);s[f]||(K5(o,c),s[f]=!0)}return L.isArray(e)?e.forEach(l):l(e),this}};Mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Mt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}});L.freezeMethods(Mt);const Q5="[REDACTED ****]";function G5(t){if(L.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(L.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Y5(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),s=[],o=l=>{if(l===null||typeof l!="object"||L.isBuffer(l))return l;if(s.indexOf(l)!==-1)return;l instanceof Mt&&(l=l.toJSON()),s.push(l);let c;if(L.isArray(l))c=[],l.forEach((f,d)=>{const h=o(f);L.isUndefined(h)||(c[d]=h)});else{if(!L.isPlainObject(l)&&G5(l))return s.pop(),l;c=Object.create(null);for(const[f,d]of Object.entries(l)){const h=n.has(f.toLowerCase())?Q5:o(d);L.isUndefined(h)||(c[f]=h)}}return s.pop(),c};return o(t)}let Z=class gw extends Error{static from(e,n,s,o,l,c){const f=new gw(e.message,n||e.code,s,o,l);return Object.defineProperty(f,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),f.name=e.name,e.status!=null&&f.status==null&&(f.status=e.status),c&&Object.assign(f,c),f}constructor(e,n,s,o,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&L.hasOwnProp(e,"redact")?e.redact:void 0,s=L.isArray(n)&&n.length>0?Y5(e,n):L.toJSONObject(e);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:s,code:this.code,status:this.status}}};Z.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Z.ERR_BAD_OPTION="ERR_BAD_OPTION";Z.ECONNABORTED="ECONNABORTED";Z.ETIMEDOUT="ETIMEDOUT";Z.ECONNREFUSED="ECONNREFUSED";Z.ERR_NETWORK="ERR_NETWORK";Z.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Z.ERR_DEPRECATED="ERR_DEPRECATED";Z.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Z.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Z.ERR_CANCELED="ERR_CANCELED";Z.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Z.ERR_INVALID_URL="ERR_INVALID_URL";Z.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const X5=null,yw=100;function kf(t){return L.isPlainObject(t)||L.isArray(t)}function vw(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function Fd(t,e,n){return t?t.concat(e).map(function(o,l){return o=vw(o),!n&&l?"["+o+"]":o}).join(n?".":""):e}function J5(t){return L.isArray(t)&&!t.some(kf)}const Z5=L.toFlatObject(L,{},null,function(e){return/^is[A-Z]/.test(e)});function bc(t,e,n){if(!L.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,C){return!L.isUndefined(C[P])});const s=n.metaTokens,o=n.visitor||S,l=n.dots,c=n.indexes,f=n.Blob||typeof Blob<"u"&&Blob,d=n.maxDepth===void 0?yw:n.maxDepth,h=f&&L.isSpecCompliantForm(e),m=[];
vendor: 2,493 bytes, line 240
240if(!L.isFunction(o))throw new TypeError("visitor must be a function");function y(E){if(E===null)return"";if(L.isDate(E))return E.toISOString();if(L.isBoolean(E))return E.toString();if(!h&&L.isBlob(E))throw new Z("Blob is not supported. Use a Buffer instead.");if(L.isArrayBuffer(E)||L.isTypedArray(E)){if(h&&typeof f=="function")return new f([E]);if(typeof Buffer<"u")return Buffer.from(E);throw new Z("Blob is not supported. Use a Buffer instead.",Z.ERR_NOT_SUPPORT)}return E}function x(E){if(E>d)throw new Z("Object is too deeply nested ("+E+" levels). Max depth: "+d,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(E,P){if(d===1/0)return JSON.stringify(E);const C=[];return JSON.stringify(E,function(D,V){if(!L.isObject(V))return V;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(V),x(P+C.length-1),V})}function S(E,P,C){let A=E;if(L.isReactNative(e)&&L.isReactNativeBlob(E))return e.append(Fd(C,P,l),y(E)),!1;if(E&&!C&&typeof E=="object"){if(L.endsWith(P,"{}"))P=s?P:P.slice(0,-2),E=w(E,1);else if(L.isArray(E)&&J5(E)||(L.isFileList(E)||L.endsWith(P,"[]"))&&(A=L.toArray(E)))return P=vw(P),A.forEach(function(V,X){!(L.isUndefined(V)||V===null)&&e.append(c===!0?Fd([P],X,l):c===null?P:P+"[]",y(V))}),!1}return kf(E)?!0:(e.append(Fd(C,P,l),y(E)),!1)}const _=Object.assign(Z5,{defaultVisitor:S,convertValue:y,isVisitable:kf});function k(E,P,C=0){if(!L.isUndefined(E)){if(x(C),m.indexOf(E)!==-1)throw new Error("Circular reference detected in "+P.join("."));m.push(E),L.forEach(E,function(D,V){(!(L.isUndefined(D)||D===null)&&o.call(e,D,L.isString(V)?V.trim():V,P,_))===!0&&k(D,P?P.concat(V):[V],C+1)}),m.pop()}}if(!L.isObject(t))throw new TypeError("data must be an object");return k(t),e}function $y(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(s){return e[s]})}function yh(t,e){this._pairs=[],t&&bc(t,this,e)}const xw=yh.prototype;xw.append=function(e,n){this._pairs.push([e,n])};xw.toString=function(e){const n=e?s=>e.call(this,s,$y):$y;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function eT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ww(t,e,n){if(!e)return t;t=t||"";const s=L.isFunction(n)?{serialize:n}:n,o=L.getSafeProp(s,"encode")||eT,l=L.getSafeProp(s,"serialize");let c;if(l?c=l(e,s):c=L.isURLSearchParams(e)?e.toString():new yh(e,s).toString(o),c){const f=t.indexOf("#");
vendor: 5,067 bytes, line 240
240f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class Hy{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L.forEach(this.handlers,function(s){s!==null&&e(s)})}}const vh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},tT=typeof URLSearchParams<"u"?URLSearchParams:yh,nT=typeof FormData<"u"?FormData:null,rT=typeof Blob<"u"?Blob:null,sT={isBrowser:!0,classes:{URLSearchParams:tT,FormData:nT,Blob:rT},protocols:["http","https","file","blob","url","data"]},xh=typeof window<"u"&&typeof document<"u",Ef=typeof navigator=="object"&&navigator||void 0,iT=xh&&(!Ef||["ReactNative","NativeScript","NS"].indexOf(Ef.product)<0),oT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aT=xh&&window.location.href||"http://localhost",lT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xh,hasStandardBrowserEnv:iT,hasStandardBrowserWebWorkerEnv:oT,navigator:Ef,origin:aT},Symbol.toStringTag,{value:"Module"})),Rt={...lT,...sT};function cT(t,e){return bc(t,new Rt.classes.URLSearchParams,{visitor:function(n,s,o,l){return Rt.isNode&&L.isBuffer(n)?(this.append(s,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const Wy=yw;function bw(t){if(t>Wy)throw new Z("FormData field is too deeply nested ("+t+" levels). Max depth: "+Wy,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function uT(t){const e=[],n=/\w+|\[(\w*)]/g;let s;for(;(s=n.exec(t))!==null;)bw(e.length),e.push(s[0]==="[]"?"":s[1]||s[0]);return e}function dT(t){const e={},n=Object.keys(t);let s;const o=n.length;let l;for(s=0;s<o;s++)l=n[s],e[l]=t[l];return e}function Sw(t){function e(n,s,o,l){bw(l);let c=n[l++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),d=l>=n.length;return c=!c&&L.isArray(o)?o.length:c,d?(L.hasOwnProp(o,c)?o[c]=L.isArray(o[c])?o[c].concat(s):[o[c],s]:o[c]=s,!f):((!L.hasOwnProp(o,c)||!L.isObject(o[c]))&&(o[c]=[]),e(n,s,o[c],l)&&L.isArray(o[c])&&(o[c]=dT(o[c])),!f)}if(L.isFormData(t)&&L.isFunction(t.entries)){const n={};return L.forEachEntry(t,(s,o)=>{e(uT(s),o,n,0)}),n}return null}const di=(t,e)=>t!=null&&L.hasOwnProp(t,e)?t[e]:void 0;function fT(t,e,n){if(L.isString(t))try{return(e||JSON.parse)(t),L.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const ga={transitional:vh,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,l=L.isObject(e);if(l&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return o?JSON.stringify(Sw(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e)||L.isReadableStream(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let f;if(l){const d=di(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return cT(e,d).toString();if((f=L.isFileList(e))||s.indexOf("multipart/form-data")>-1){const h=di(this,"env"),m=h&&h.FormData;return bc(f?{"files[]":e}:e,m&&new m,d)}}return l||o?(n.setContentType("application/json",!1),fT(e)):e}],transformResponse:[function(e){const n=di(this,"transitional")||ga.transitional,s=n&&n.forcedJSONParsing,o=di(this,"responseType"),l=o==="json";if(L.isResponse(e)||L.isReadableStream(e))return e;if(e&&L.isString(e)&&(s&&!o||l)){const f=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,di(this,"parseReviver"))}catch(d){if(f)throw d.name==="SyntaxError"?Z.from(d,Z.ERR_BAD_RESPONSE,this,null,di(this,"response")):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch","query"],t=>{ga.headers[t]={}});function Ld(t,e){const n=this||ga,s=e||n,o=Mt.from(s.headers);let l=s.data;return L.forEach(t,function(f){l=f.call(n,l,o.normalize(),e?e.status:void 0)}),o.normalize(),l}function _w(t){return!!(t&&t.__CANCEL__)}let ya=class extends Z{constructor(e,n,s){super(e??"canceled",Z.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function kw(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new Z("Request failed with status code "+n.status,n.status>=400&&n.status<500?Z.ERR_BAD_REQUEST:Z.ERR_BAD_RESPONSE,n.config,n.request,n))}function hT(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function pT(t,e){t=t||10;const n=new Array(t),s=new Array(t);let o=0,l=0,c;return e=e!==void 0?e:1e3,function(d){const h=Date.now(),m=s[l];
vendor: 9,302 bytes, line 240
240c||(c=h),n[o]=d,s[o]=h;let y=l,x=0;for(;y!==o;)x+=n[y++],y=y%t;if(o=(o+1)%t,o===l&&(l=(l+1)%t),h-c<e)return;const w=m&&h-m;return w?Math.round(x*1e3/w):void 0}}function mT(t,e){let n=0,s=1e3/e,o,l;const c=(h,m=Date.now())=>{n=m,o=null,l&&(clearTimeout(l),l=null),t(...h)};return[(...h)=>{const m=Date.now(),y=m-n;y>=s?c(h,m):(o=h,l||(l=setTimeout(()=>{l=null,c(o)},s-y)))},()=>o&&c(o)]}const ac=(t,e,n=3)=>{let s=0;const o=pT(50,250);return mT(l=>{if(!l||typeof l.loaded!="number")return;const c=l.loaded,f=l.lengthComputable?l.total:void 0,d=f!=null?Math.min(c,f):c,h=Math.max(0,d-s),m=o(h);s=Math.max(s,d);const y={loaded:d,total:f,progress:f?d/f:void 0,bytes:h,rate:m||void 0,estimated:m&&f?(f-d)/m:void 0,event:l,lengthComputable:f!=null,[e?"download":"upload"]:!0};t(y)},n)},qy=(t,e)=>{const n=t!=null;return[s=>e[0]({lengthComputable:n,total:t,loaded:s}),e[1]]},Ky=t=>(...e)=>L.asap(()=>t(...e)),gT=Rt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Rt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,yT=Rt.hasStandardBrowserEnv?{write(t,e,n,s,o,l,c){if(typeof document>"u")return;const f=[`${t}=${encodeURIComponent(e)}`];L.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),L.isString(s)&&f.push(`path=${s}`),L.isString(o)&&f.push(`domain=${o}`),l===!0&&f.push("secure"),L.isString(c)&&f.push(`SameSite=${c}`),document.cookie=f.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const s=e[n].replace(/^\s+/,""),o=s.indexOf("=");if(o!==-1&&s.slice(0,o)===t)try{return decodeURIComponent(s.slice(o+1))}catch{return s.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vT(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function xT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const wT=/^https?:(?!\/\/)/i,bT=/[\t\n\r]/g;function ST(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function _T(t){return ST(t).replace(bT,"")}function Qy(t,e){if(typeof t=="string"&&wT.test(_T(t)))throw new Z('Invalid URL: missing "//" after protocol',Z.ERR_INVALID_URL,e)}function Ew(t,e,n,s){Qy(e,s);let o=!vT(e);return t&&(o||n===!1)?(Qy(t,s),xT(t,e)):e}const Gy=t=>t instanceof Mt?{...t}:t;function Ls(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(m,y,x,w){return L.isPlainObject(m)&&L.isPlainObject(y)?L.merge.call({caseless:w},m,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function o(m,y,x,w){if(L.isUndefined(y)){if(!L.isUndefined(m))return s(void 0,m,x,w)}else return s(m,y,x,w)}function l(m,y){if(!L.isUndefined(y))return s(void 0,y)}function c(m,y){if(L.isUndefined(y)){if(!L.isUndefined(m))return s(void 0,m)}else return s(void 0,y)}function f(m){const y=L.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!L.isUndefined(y))if(L.isPlainObject(y)){if(L.hasOwnProp(y,m))return y[m]}else return;const x=L.hasOwnProp(t,"transitional")?t.transitional:void 0;if(L.isPlainObject(x)&&L.hasOwnProp(x,m))return x[m]}function d(m,y,x){if(L.hasOwnProp(e,x))return s(m,y);if(L.hasOwnProp(t,x))return s(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,allowedSocketPaths:c,responseEncoding:c,validateStatus:d,headers:(m,y,x)=>o(Gy(m),Gy(y),x,!0)};return L.forEach(Object.keys({...t,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const x=L.hasOwnProp(h,y)?h[y]:o,w=L.hasOwnProp(t,y)?t[y]:void 0,S=L.hasOwnProp(e,y)?e[y]:void 0,_=x(w,S,y);L.isUndefined(_)&&x!==d||(n[y]=_)}),L.hasOwnProp(e,"validateStatus")&&L.isUndefined(e.validateStatus)&&f("validateStatusUndefinedResolves")===!1&&(L.hasOwnProp(t,"validateStatus")?n.validateStatus=s(void 0,t.validateStatus):delete n.validateStatus),n}const kT=["content-type","content-length"];function ET(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([s,o])=>{kT.includes(s.toLowerCase())&&t.set(s,o)})}const CT=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Cw(t){const e=Ls({},t),n=x=>L.hasOwnProp(e,x)?e[x]:void 0,s=n("data");let o=n("withXSRFToken");const l=n("xsrfHeaderName"),c=n("xsrfCookieName");let f=n("headers");const d=n("auth"),h=n("baseURL"),m=n("allowAbsoluteUrls"),y=n("url");if(e.headers=f=Mt.from(f),e.url=ww(Ew(h,y,m,e),n("params"),n("paramsSerializer")),d){const x=L.getSafeProp(d,"username")||"",w=L.getSafeProp(d,"password")||"";try{f.set("Authorization","Basic "+btoa(x+":"+(w?CT(w):"")))}catch(S){throw Z.from(S,Z.ERR_BAD_OPTION_VALUE,t)}}if(L.isFormData(s)&&(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv||L.isReactNative(s)?f.setContentType(void 0):L.isFunction(s.getHeaders)&&ET(f,s.getHeaders(),n("formDataHeaderPolicy"))),Rt.hasStandardBrowserEnv&&(L.isFunction(o)&&(o=o(e)),o===!0||o==null&&gT(e.url))){const w=l&&c&&yT.read(c);w&&f.set(l,w)}return e}const TT=typeof XMLHttpRequest<"u",RT=TT&&function(t){return new Promise(function(n,s){const o=Cw(t);let l=o.data;const c=Mt.from(o.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=o,m,y,x,w,S;function _(){w&&w(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function E(){if(!k)return;const C=Mt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),D={data:!f||f==="text"||f==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:C,config:t,request:k};kw(function(X){n(X),_()},function(X){s(X),_()},D),k=null}"onloadend"in k?k.onloadend=E:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.startsWith("file:"))||setTimeout(E)},k.onabort=function(){k&&(s(new Z("Request aborted",Z.ECONNABORTED,t,k)),_(),k=null)},k.onerror=function(A){const D=A&&A.message?A.message:"Network Error",V=new Z(D,Z.ERR_NETWORK,t,k);V.event=A||null,s(V),_(),k=null},k.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const D=o.transitional||vh;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),s(new Z(A,D.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,t,k)),_(),k=null},l===void 0&&c.setContentType(null),"setRequestHeader"in k&&L.forEach(mw(c),function(A,D){k.setRequestHeader(D,A)}),L.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),f&&f!=="json"&&(k.responseType=o.responseType),h&&([x,S]=ac(h,!0),k.addEventListener("progress",x)),d&&k.upload&&([y,w]=ac(d),k.upload.addEventListener("progress",y),k.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(m=C=>{k&&(s(!C||C.type?new ya(null,t,k):C),k.abort(),_(),k=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const P=hT(o.url);if(P&&!Rt.protocols.includes(P)){s(new Z("Unsupported protocol "+P+":",Z.ERR_BAD_REQUEST,t)),_();return}k.send(l||null)})},PT=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let s=!1;const o=function(d){if(!s){s=!0,c();const h=d instanceof Error?d:this.reason;n.abort(h instanceof Z?h:new ya(h instanceof Error?h.message:h))}};let l=e&&setTimeout(()=>{l=null,o(new Z(`timeout of ${e}ms exceeded`,Z.ETIMEDOUT))},e);const c=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),t=null)};t.forEach(d=>d.addEventListener("abort",o,{once:!0}));const{signal:f}=n;return f.unsubscribe=()=>L.asap(c),f},AT=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let s=0,o;for(;s<n;)o=s+e,yield t.slice(s,o),s=o},jT=async function*(t,e){for await(const n of NT(t))yield*AT(n,e)},NT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:s}=await e.read();if(n)break;yield s}}finally{await e.cancel()}},Yy=(t,e,n,s)=>{const o=jT(t,e);let l=0,c,f=d=>{c||(c=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await o.next();if(h){f(),d.close();return}let y=m.byteLength;if(n){let x=l+=y;n(x)}d.enqueue(new Uint8Array(m))}catch(h){throw f(h),h}},cancel(d){return f(d),o.return()}},{highWaterMark:2})},lc=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,OT=(t,e,n)=>e+2<n&&lc(t.charCodeAt(e+1))&&lc(t.charCodeAt(e+2));function FT(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),s=t.slice(e+1);if(/;base64/i.test(n)){let c=s.length;const f=s.length;for(let w=0;w<f;w++)if(s.charCodeAt(w)===37&&w+2<f){const S=s.charCodeAt(w+1),_=s.charCodeAt(w+2);lc(S)&&lc(_)&&(c-=2,w+=2)}let d=0,h=f-1;const m=w=>w>
vendor: 4,930 bytes, line 240
240=2&&s.charCodeAt(w-2)===37&&s.charCodeAt(w-1)===51&&(s.charCodeAt(w)===68||s.charCodeAt(w)===100);h>=0&&(s.charCodeAt(h)===61?(d++,h--):m(h)&&(d++,h-=3)),d===1&&h>=0&&(s.charCodeAt(h)===61||m(h))&&d++;const x=Math.floor(c/4)*3-(d||0);return x>0?x:0}let l=0;for(let c=0,f=s.length;c<f;c++){const d=s.charCodeAt(c);if(d===37&&OT(s,c,f))l+=1,c+=2;else if(d<128)l+=1;else if(d<2048)l+=2;else if(d>=55296&&d<=56319&&c+1<f){const h=s.charCodeAt(c+1);h>=56320&&h<=57343?(l+=4,c++):l+=3}else l+=3}return l}const wh="1.18.1",Xy=64*1024,{isFunction:Dl}=L,LT=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Jy=t=>{if(!L.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Zy=(t,...e)=>{try{return!!t(...e)}catch{return!1}},DT=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},MT=t=>{const e=L.global!==void 0&&L.global!==null?L.global:globalThis,{ReadableStream:n,TextEncoder:s}=e;t=L.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:l,Response:c}=t,f=o?Dl(o):typeof fetch=="function",d=Dl(l),h=Dl(c);if(!f)return!1;const m=f&&Dl(n),y=f&&(typeof s=="function"?(E=>P=>E.encode(P))(new s):async E=>new Uint8Array(await new l(E).arrayBuffer())),x=d&&m&&Zy(()=>{let E=!1;const P=new l(Rt.origin,{body:new n,method:"POST",get duplex(){return E=!0,"half"}}),C=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),E&&!C}),w=h&&m&&Zy(()=>L.isReadableStream(new c("").body)),S={stream:w&&(E=>E.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!S[E]&&(S[E]=(P,C)=>{let A=P&&P[E];if(A)return A.call(P);throw new Z(`Response type '${E}' is not supported`,Z.ERR_NOT_SUPPORT,C)})});const _=async E=>{if(E==null)return 0;if(L.isBlob(E))return E.size;if(L.isSpecCompliantForm(E))return(await new l(Rt.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(L.isArrayBufferView(E)||L.isArrayBuffer(E))return E.byteLength;if(L.isURLSearchParams(E)&&(E=E+""),L.isString(E))return(await y(E)).byteLength},k=async(E,P)=>{const C=L.toFiniteNumber(E.getContentLength());return C??_(P)};return async E=>{let{url:P,method:C,data:A,signal:D,cancelToken:V,timeout:X,onDownloadProgress:B,onUploadProgress:G,responseType:ee,headers:ue,withCredentials:Ce="same-origin",fetchOptions:Ae,maxContentLength:he,maxBodyLength:ge}=Cw(E);const Te=L.isNumber(he)&&he>-1,ie=L.isNumber(ge)&&ge>-1,H=J=>L.hasOwnProp(E,J)?E[J]:void 0;let te=o||fetch;ee=ee?(ee+"").toLowerCase():"text";let U=PT([D,V&&V.toAbortSignal()],X),O=null;const $=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let ye,be=null;const ve=()=>new Z("Request body larger than maxBodyLength limit",Z.ERR_BAD_REQUEST,E,O);try{let J;const ke=H("auth");if(ke){const Ee=L.getSafeProp(ke,"username")||"",St=L.getSafeProp(ke,"password")||"";J={username:Ee,password:St}}if(DT(P)){const Ee=new URL(P,Rt.origin);if(!J&&(Ee.username||Ee.password)){const St=Jy(Ee.username),vn=Jy(Ee.password);J={username:St,password:vn}}(Ee.username||Ee.password)&&(Ee.username="",Ee.password="",P=Ee.href)}if(J&&(ue.delete("authorization"),ue.set("Authorization","Basic "+btoa(LT((J.username||"")+":"+(J.password||""))))),Te&&typeof P=="string"&&P.startsWith("data:")&&FT(P)>he)throw new Z("maxContentLength size of "+he+" exceeded",Z.ERR_BAD_RESPONSE,E,O);if(ie&&C!=="get"&&C!=="head"){const Ee=await _(A);if(typeof Ee=="number"&&isFinite(Ee)&&(ye=Ee,Ee>ge))throw ve()}const je=ie&&(L.isReadableStream(A)||L.isStream(A)),_e=(Ee,St,vn)=>Yy(Ee,Xy,xn=>{if(ie&&xn>ge)throw be=ve();St&&St(xn)},vn);if(x&&C!=="get"&&C!=="head"&&(G||je)){if(ye=ye??await k(ue,A),ye!==0||je){let Ee=new l(P,{method:"POST",body:A,duplex:"half"}),St;if(L.isFormData(A)&&(St=Ee.headers.get("content-type"))&&ue.setContentType(St),Ee.body){const[vn,xn]=G&&qy(ye,ac(Ky(G)))||[];A=_e(Ee.body,vn,xn)}}}else if(je&&!d&&m&&C!=="get"&&C!=="head")A=_e(A);else if(je&&d&&!x&&C!=="get"&&C!=="head")throw new Z("Stream request bodies are not supported by the current fetch implementation",Z.ERR_NOT_SUPPORT,E,O);L.isString(Ce)||(Ce=Ce?"include":"omit");const gt=d&&"credentials"in l.prototype;if(L.isFormData(A)){const Ee=ue.getContentType();Ee&&/^multipart\/form-data/i.test(Ee)&&!/boundary=/i.test(Ee)&&ue.delete("content-type")}ue.set("User-Agent","axios/"+wh,!1);const nn={...Ae,signal:U,method:C.toUpperCase(),headers:mw(ue.normalize()),body:A,duplex:"half",credentials:gt?Ce:void 0};O=d&&new l(P,nn);let bt=await(d?te(O,Ae):te(P,nn));const yn=Mt.from(bt.headers);if(Te){const Ee=L.toFiniteNumber(yn.getContentLength());if(Ee!=null&&Ee>he)throw new Z("maxContentLength size of "+he+" exceeded",Z.ERR_BAD_RESPONSE,E,O)}const rn=w&&(ee==="stream"||ee==="response");if(w&&bt.body&&(B||Te||rn&&$)){const Ee={};["status","statusText","headers"].forEach(Wn=>{Ee[Wn]=bt[Wn]});const St=L.toFiniteNumber(yn.getContentLength()),[vn,xn]=B&&qy(St,ac(Ky(B),!0))||[];let cr=0;const ur=Wn=>
vendor: 4,510 bytes, lines 240-242
240{if(Te&&(cr=Wn,cr>he))throw new Z("maxContentLength size of "+he+" exceeded",Z.ERR_BAD_RESPONSE,E,O);vn&&vn(Wn)};bt=new c(Yy(bt.body,Xy,ur,()=>{xn&&xn(),$&&$()}),Ee)}ee=ee||"text";let sn=await S[L.findKey(S,ee)||"text"](bt,E);if(Te&&!w&&!rn){let Ee;if(sn!=null&&(typeof sn.byteLength=="number"?Ee=sn.byteLength:typeof sn.size=="number"?Ee=sn.size:typeof sn=="string"&&(Ee=typeof s=="function"?new s().encode(sn).byteLength:sn.length)),typeof Ee=="number"&&Ee>he)throw new Z("maxContentLength size of "+he+" exceeded",Z.ERR_BAD_RESPONSE,E,O)}return!rn&&$&&$(),await new Promise((Ee,St)=>{kw(Ee,St,{data:sn,headers:Mt.from(bt.headers),status:bt.status,statusText:bt.statusText,config:E,request:O})})}catch(J){if($&&$(),U&&U.aborted&&U.reason instanceof Z){const ke=U.reason;throw ke.config=E,O&&(ke.request=O),J!==ke&&Object.defineProperty(ke,"cause",{__proto__:null,value:J,writable:!0,enumerable:!1,configurable:!0}),ke}if(be)throw O&&!be.request&&(be.request=O),be;if(J instanceof Z)throw O&&!J.request&&(J.request=O),J;if(J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)){const ke=new Z("Network Error",Z.ERR_NETWORK,E,O,J&&J.response);throw Object.defineProperty(ke,"cause",{__proto__:null,value:J.cause||J,writable:!0,enumerable:!1,configurable:!0}),ke}throw Z.from(J,J&&J.code,E,O,J&&J.response)}}},IT=new Map,Tw=t=>{let e=t&&t.env||{};const{fetch:n,Request:s,Response:o}=e,l=[s,o,n];let c=l.length,f=c,d,h,m=IT;for(;f--;)d=l[f],h=m.get(d),h===void 0&&m.set(d,h=f?new Map:MT(e)),m=h;return h};Tw();const bh={http:X5,xhr:RT,fetch:{get:Tw}};L.forEach(bh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const e0=t=>`- ${t}`,BT=t=>L.isFunction(t)||t===null||t===!1;function zT(t,e){t=L.isArray(t)?t:[t];const{length:n}=t;let s,o;const l={};for(let c=0;c<n;c++){s=t[c];let f;if(o=s,!BT(s)&&(o=bh[(f=String(s)).toLowerCase()],o===void 0))throw new Z(`Unknown adapter '${f}'`);if(o&&(L.isFunction(o)||(o=o.get(e))))break;l[f||"#"+c]=o}if(!o){const c=Object.entries(l).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?c.length>1?`since :
241`+c.map(e0).join(`
242`):" "+e0(c[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+f,Z.ERR_NOT_SUPPORT)}return o}const Rw={getAdapter:zT,adapters:bh};function Dd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ya(null,t)}function t0(t){return Dd(t),t.headers=Mt.from(t.headers),t.data=Ld.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rw.getAdapter(t.adapter||ga.adapter,t)(t).then(function(s){Dd(t),t.response=s;try{s.data=Ld.call(t,t.transformResponse,s)}finally{delete t.response}return s.headers=Mt.from(s.headers),s},function(s){if(!_w(s)&&(Dd(t),s&&s.response)){t.response=s.response;try{s.response.data=Ld.call(t,t.transformResponse,s.response)}finally{delete t.response}s.response.headers=Mt.from(s.response.headers)}return Promise.reject(s)})}const Sc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Sc[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const n0={};Sc.transitional=function(e,n,s){function o(l,c){return"[Axios v"+wh+"] Transitional option '"+l+"'"+c+(s?". "+s:"")}return(l,c,f)=>{if(e===!1)throw new Z(o(c," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED);return n&&!n0[c]&&(n0[c]=!0,console.warn(o(c," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,c,f):!0}};Sc.spelling=function(e){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function UT(t,e,n){if(typeof t!="object"||t===null)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let o=s.length;for(;o-- >0;){const l=s[o],c=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(c){const f=t[l],d=f===void 0||c(f,l,t);if(d!==!0)throw new Z("option "+l+" must be "+d,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z("Unknown option "+l,Z.ERR_BAD_OPTION)}}const Gl={assertOptions:UT,validators:Sc},Ot=Gl.validators;let As=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Hy,response:new Hy}}async request(e,n){try{return await this._request(e,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>
vendor: 3,918 bytes, lines 242-246
242{if(!o.stack)return"";const c=o.stack.indexOf(`
243`);return c===-1?"":o.stack.slice(c+1)})();try{if(!s.stack)s.stack=l;else if(l){const c=l.indexOf(`
244`),f=c===-1?-1:l.indexOf(`
245`,c+1),d=f===-1?"":l.slice(f+1);String(s.stack).endsWith(d)||(s.stack+=`
246`+l)}}catch{}}throw s}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ls(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:l}=n;s!==void 0&&Gl.assertOptions(s,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean),legacyInterceptorReqResOrdering:Ot.transitional(Ot.boolean),advertiseZstdAcceptEncoding:Ot.transitional(Ot.boolean),validateStatusUndefinedResolves:Ot.transitional(Ot.boolean)},!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:Gl.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Gl.assertOptions(n,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&L.merge(l.common,l[n.method]);l&&L.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete l[S]}),n.headers=Mt.concat(c,l);const f=[];let d=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;d=d&&_.synchronous;const k=n.transitional||vh;k&&k.legacyInterceptorReqResOrdering?f.unshift(_.fulfilled,_.rejected):f.push(_.fulfilled,_.rejected)});const h=[];this.interceptors.response.forEach(function(_){h.push(_.fulfilled,_.rejected)});let m,y=0,x;if(!d){const S=[t0.bind(this),void 0];for(S.unshift(...f),S.push(...h),x=S.length,m=Promise.resolve(n);y<x;)m=m.then(S[y++],S[y++]);return m}x=f.length;let w=n;for(;y<x;){const S=f[y++],_=f[y++];try{w=S(w)}catch(k){_.call(this,k);break}}try{m=t0.call(this,w)}catch(S){return Promise.reject(S)}for(y=0,x=h.length;y<x;)m=m.then(h[y++],h[y++]);return m}getUri(e){e=Ls(this.defaults,e);const n=Ew(e.baseURL,e.url,e.allowAbsoluteUrls,e);return ww(n,e.params,e.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(e){As.prototype[e]=function(n,s){return this.request(Ls(s||{},{method:e,url:n,data:s&&L.hasOwnProp(s,"data")?s.data:void 0}))}});L.forEach(["post","put","patch","query"],function(e){function n(s){return function(l,c,f){return this.request(Ls(f||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}As.prototype[e]=n(),e!=="query"&&(As.prototype[e+"Form"]=n(!0))});let VT=class Pw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const s=this;this.promise.then(o=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](o);s._listeners=null}),this.promise.then=o=>{let l;const c=new Promise(f=>{s.subscribe(f),l=f}).then(o);return c.cancel=function(){s.unsubscribe(l)},c},e(function(l,c,f){s.reason||(s.reason=new ya(l,c,f),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=s=>{e.abort(s)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Pw(function(o){e=o}),cancel:e}}};function $T(t){return function(n){return t.apply(null,n)}}function HT(t){return L.isObject(t)&&t.isAxiosError===!0}const Cf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
246alContent: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(Cf).forEach(([t,e])=>{Cf[e]=t});function Aw(t){const e=new As(t),n=ow(As.prototype.request,e);return L.extend(n,As.prototype,e,{allOwnKeys:!0}),L.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Aw(Ls(t,o))},n}const ct=Aw(ga);ct.Axios=As;ct.CanceledError=ya;ct.CancelToken=VT;ct.isCancel=_w;ct.VERSION=wh;ct.toFormData=bc;ct.AxiosError=Z;ct.Cancel=ct.CanceledError;ct.all=function(e){return Promise.all(e)};ct.spread=$T;ct.isAxiosError=HT;ct.mergeConfig=Ls;ct.AxiosHeaders=Mt;ct.formToJSON=t=>Sw(L.isHTMLForm(t)?new FormData(t):t);ct.getAdapter=Rw.getAdapter;ct.HttpStatusCode=Cf;ct.default=ct;const{Axios:n6,AxiosError:r6,CanceledError:s6,isCancel:i6,CancelToken:o6,VERSION:a6,all:l6,Cancel:c6,isAxiosError:u6,spread:d6,toFormData:f6,AxiosHeaders:h6,HttpStatusCode:p6,formToJSON:m6,getAdapter:g6,mergeConfig:y6,create:v6}=ct,jw=typeof window>"u",r0=!jw&&window.self!==window.top,WT=!jw&&typeof document>"u",Nw=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Et=[];for(let t=0;t<256;++t)Et.push((t+256).toString(16).slice(1));function qT(t,e=0){return(Et[t[e+0]]+Et[t[e+1]]+Et[t[e+2]]+Et[t[e+3]]+"-"+Et[t[e+4]]+Et[t[e+5]]+"-"+Et[t[e+6]]+Et[t[e+7]]+"-"+Et[t[e+8]]+Et[t[e+9]]+"-"+Et[t[e+10]]+Et[t[e+11]]+Et[t[e+12]]+Et[t[e+13]]+Et[t[e+14]]+Et[t[e+15]]).toLowerCase()}let Md;const KT=new Uint8Array(16);function QT(){if(!Md){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Md=crypto.getRandomValues.bind(crypto)}return Md(KT)}const GT=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s0={randomUUID:GT};function YT(t,e,n){var o;t=t||{};const s=t.random??((o=t.rng)==null?void 0:o.call(t))??QT();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,qT(s)}function XT(t,e,n){return s0.randomUUID&&!t?s0.randomUUID():YT(t)}const No=typeof window<"u"?window:{base44SharedInstances:{}};function JT(t,e){return No.base44SharedInstances||(No.base44SharedInstances={}),No.base44SharedInstances[t]||(No.base44SharedInstances[t]={instance:e()}),No.base44SharedInstances[t].instance}const ZT="__user_heartbeat_event__",eR="__initialization_event__",tR="__session_duration_event__",i0="analytics-enable",o0="base44_analytics_session_id",nR={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},rR="analytics",Be=JT(rR,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...nR,...dR()}})),sR=({axiosClient:t,serverUrl:e,appId:n,userAuthModule:s,enabled:o})=>{var l;const{maxQueueSize:c,throttleTime:f,batchSize:d}=Be.config;if(!o||!(!((l=Be.config)===null||l===void 0)&&l.enabled)||WT)return{track:()=>{},cleanup:()=>{}};let h;const m=`${e}/api/apps/${n}/analytics/track/batch`,y=async A=>{await t.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:A}})},x=A=>{try{const D=JSON.stringify({events:A}),V=new Blob([D],{type:"application/json"});return typeof navigator>"u"||D.length>6e4||!navigator.sendBeacon(m,V)}catch{return!1}},w=async(A,D={})=>
246{if(A.length===0)return;const V=await uR(s),X=A.map(cR(V));try{(!D.isBeacon||!x(X))&&await y(X)}catch{}},S=()=>{l0(w,{throttleTime:f,batchSize:d})},_=A=>{if(Be.requestsQueue.length>=c)return;const D=lR();Be.requestsQueue.push({...A,...D}),S()},k=()=>{l0(w,{throttleTime:f,batchSize:d}),h=c0(_),oR()},E=()=>{a0(),h==null||h(),aR(_);const A=Be.requestsQueue.splice(0);w(A,{isBeacon:!0})},P=()=>{typeof window>"u"||(document.visibilityState==="hidden"?E():document.visibilityState==="visible"&&k())},C=()=>{a0(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",P)};return S(),h=c0(_),iR(_),typeof window<"u"&&window.addEventListener("visibilitychange",P),{track:_,cleanup:C}};function a0(){Be.isProcessing=!1}async function l0(t,e){if(Be.isProcessing)return;Be.isProcessing=!0;const{throttleTime:n=1e3,batchSize:s=30}=e??{};for(;Be.isProcessing&&Be.requestsQueue.length>0;){const o=Be.requestsQueue.splice(0,s);o.length&&await t(o),await new Promise(l=>setTimeout(l,n))}Be.isProcessing=!1}function c0(t){var e;if(typeof window>"u"||Be.isHeartBeatProcessing||((e=Be.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Be.isHeartBeatProcessing=!0;const n=setInterval(()=>{t({eventName:ZT})},Be.config.heartBeatInterval);return()=>{clearInterval(n),Be.isHeartBeatProcessing=!1}}function iR(t){typeof window>"u"||Be.wasInitializationTracked||(Be.wasInitializationTracked=!0,t({eventName:eR,properties:{referrer:document==null?void 0:document.referrer}}))}function oR(){typeof window>"u"||Be.sessionStartTime!==null||(Be.sessionStartTime=new Date().toISOString())}function aR(t){if(typeof window>"u"||Be.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Be.sessionStartTime).getTime();Be.sessionStartTime=null,t({eventName:tR,properties:{sessionDuration:e}})}function lR(){var t,e;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(e=(t=window.location)===null||t===void 0?void 0:t.pathname)!==null&&e!==void 0?e:null}}function cR(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let Mo=null;function u0(){Be.sessionContext=null,Mo=null}async function uR(t){if(!Be.sessionContext){if(!t.hasToken())return{user_id:null,session_id:cc()};if(!Mo){const s=cc();Mo=t.me().then(o=>({user_id:o.id,session_id:s})).catch(()=>({user_id:null,session_id:s}))}const e=Mo,n=await e;return Mo===e&&(Be.sessionContext=n),n}return Be.sessionContext}function dR(){if(typeof window>"u"||!window.location)return;const e=new URLSearchParams(window.location.search).get(i0);if(e==null||!e.length)return;const n=new URLSearchParams(window.location.search);n.delete(i0);const s=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",s),{enabled:e==="true"}}function d0(){var t;return(t=Be.fallbackSessionId)!==null&&t!==void 0?t:Be.fallbackSessionId=Nw()}function cc(){if(typeof window>"u")return d0();try{const t=localStorage.getItem(o0);if(!t){const e=Nw();return localStorage.setItem(o0,e),e}return t}catch{return d0()}}class fR extends Error{constructor(e,n,s,o,l){super(e),this.name="Base44Error",this.status=n,this.code=s,this.data=o,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function hi({baseURL:t,headers:e={},token:n,interceptResponses:s=!0,onError:o}){const l=ct.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(c=>{typeof window<"u"&&(window.location&&c.headers.set("X-Origin-URL",window.location.href),c.headers.get("Authorization")||c.headers.set("X-Base44-Anonymous-Id",cc()));const f=XT();if(c.requestId=f,r0)try{window.parent.postMessage({type:"api-request-start",requestId:f,data:{url:t+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),s&&l.interceptors.response.use(c=>{var f;const d=(f=c.config)===null||f===void 0?void 0:f.requestId;try{r0&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var f,d,h,m,y,x,w,S,_,k,E,P;const C=(f=c.response)===null||f===void 0?void 0:f.data,A=((d=C==null?void 0:C.error)===null||d===void 0?void 0:d.message)||(C==null?void 0:C.message)||(C==null?void 0:C.detail)||c.message,D=new fR(A,(h=c.response)===null||h===void 0?void 0:h.status,(k=(x=(y=(m=C==null?void 0:C.error)===null||m===void 0?void 0:m.code)!==null&&y!==void 0?y:C==null?void 0:C.code)!==null&&x!==void 0?x:(_=(S=(w=c.response)===null||w===void 0?void 0:w.headers)===null||S===void 0?void 0:S.get)===null||_===void 0?void 0:_.call(S,"x-base44-connector-error"))!==null&&k!==void 0?k:(P=(E=c.response)===null||E===void 0?void 0:E.headers)===null||P===void 0?void 0:P["x-base44-connector-error"],C,c);return o==null||o(D),Promise.reject(D)}),l}function f0(t){const{axios:e,appId:n,getSocket:s}=t;return new Proxy({},{get(o,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return mR(e,n,l,s)}})}function hR(t){var e;try{const n=JSON.parse(t);
246return{type:n.type,data:n.data,id:n.id||((e=n.data)===null||e===void 0?void 0:e.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const pR=100;function h0(t){return typeof t=="object"&&t!==null}function mR(t,e,n,s){const o=`/apps/${e}/entities/${n}`,l=d=>Array.isArray(d)?d.join(","):d,c=(d,h,m,y,x)=>{const w={};return x&&(w.q=JSON.stringify(x)),d&&(w.sort=d),h&&(w.limit=h),m&&(w.skip=m),y&&(w.fields=l(y)),t.get(o,{params:w})},f=(d,h)=>{const m={};return h&&(m.q=JSON.stringify(h)),m.limit=d.limit||pR,d.cursor&&(m.cursor=d.cursor),"distinct"in d?m.distinct=d.distinct:(d.sort&&(m.sort=d.sort),d.fields&&(m.fields=l(d.fields))),t.get(`${o}/v2/list`,{params:m})};return{async list(...d){const[h,m,y,x]=d;return h0(h)?f(h):c(h,m,y,x)},async filter(d,...h){const[m,y,x,w]=h;return h0(m)?f(m,d):c(m,y,x,w,d)},async get(d){return t.get(`${o}/${d}`)},async create(d){return t.post(o,d)},async update(d,h){return t.put(`${o}/${d}`,h)},async delete(d){return t.delete(`${o}/${d}`)},async deleteMany(d){return t.delete(o,{data:d})},async bulkCreate(d){return t.post(`${o}/bulk`,d)},async updateMany(d,h){return t.patch(`${o}/update-many`,{query:d,data:h})},async count(d){const h={};return d&&(h.q=JSON.stringify(d)),(await t.get(`${o}/count`,{params:h})).count},async aggregate(d){return t.post(`${o}/aggregate`,d)},async upsert(d,h){return t.post(`${o}/upsert`,{records:d,key:h.key})},async bulkUpdate(d){return t.put(`${o}/bulk`,d)},async importEntities(d){const h=new FormData;return h.append("file",d,d.name),t.post(`${o}/import`,h,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(d){const h=`entities:${e}:${n}`;return s().subscribeToRoom(h,{update_model:x=>{var w;const S=hR(x.data);if(S){S.type!=="delete"&&(!((w=S.data)===null||w===void 0)&&w._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${S.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${S.id}")\` to fetch the full record.`);try{d(S)}catch(_){console.error("[Base44 SDK] Subscription callback error:",_)}}}})}}}function gR(t,e){return{async call(n,s,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(s!=null&&s.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...f}=o??{},d={...f,...l&&{path_params:l},...c&&{query_params:c}};return await t.post(`/apps/${e}/integrations/custom/${n}/${s}`,d)}}}function p0(t,e){const n=gR(t,e);return new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async f=>{if(typeof f=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${f}`);let d,h;return f instanceof FormData||f&&Object.values(f).some(m=>m instanceof File)?(d=new FormData,Object.keys(f).forEach(m=>{f[m]instanceof File?d.append(m,f[m],f[m].name):typeof f[m]=="object"&&f[m]!==null?d.append(m,JSON.stringify(f[m])):d.append(m,f[m])}),h="multipart/form-data"):(d=f,h="application/json"),o==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${c}`,d||f,{headers:{"Content-Type":h}}):t.post(`/apps/${e}/integration-endpoints/installable/${o}/integration-endpoints/${c}`,d||f,{headers:{"Content-Type":h}})}}})}})}function yR(){return typeof window>"u"?!1:window!==window.parent}function vR(t,e,n){const l=Math.round(window.screenX+(window.outerWidth-500)/2),c=Math.round(window.screenY+(window.outerHeight-600)/2),f=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${c},resizable=yes,scrollbars=yes`);if(!f)return;const d=()=>{window.removeEventListener("message",h),clearInterval(m),f.closed||f.close()},h=y=>{var x;if(y.origin!==n||y.source!==f||!(!((x=y.data)===null||x===void 0)&&x.access_token))return;d();const w=new URL(e),{access_token:S,is_new_user:_}=y.data;w.searchParams.set("access_token",S),_!=null&&w.searchParams.set("is_new_user",String(_)),window.location.href=w.toString()},m=setInterval(()=>{f.closed&&d()},500);window.addEventListener("message",h)}function xR(t,e,n,s){let o=null;const l=()=>{o=null};let c=!!s.token;return{hasToken(){return c},async me(){const f=o??t.get(`/apps/${n}/entities/User/me`).finally(()=>{o===f&&(o=null)});return o=f,f},async updateMe(f){return t.put(`/apps/${n}/entities/User/me`,f)},redirectToLogin(f){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const d=f?new URL(f,window.location.origin).toString():window.location.href,h=`${s.appBaseUrl}/login?from_url=${encodeURIComponent(d)}`;window.location.href=h},loginWithProvider(f,d="/"){const h=new URL(d,window.location.origin).toString(),m=`app_id=${n}&from_url=${encodeURIComponent(h)}`;let y;f==="sso"?y=`/apps/${n}/auth/sso/login`:y=`/apps/auth${f==="google"?"":`/${f}`}/login`;const x=`${s.appBaseUrl}/api${y}?${m}`;if(yR()){const w=`${x}&popup_origin=${encodeURIComponent(window.location.origin)}`;return vR(w,h,window.location.origin)}window.location.href=x},logout(f){if(delete t.defaults.headers.common.Authorization,l(),u0(),c=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(m){console.error("Failed to remove token from localStorage:",m)}const d=f||window.location.href,h=`${s.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(d)}`;window.location.href=h}},setToken(f,d=!0){if(f&&(l(),u0(),c=!0,t.defaults.headers.common.Authorization=`Bearer ${f}`,e.defaults.headers.common.Authorization=`Bearer ${f}`,d&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",f),window.localStorage.setItem("token",f)}catch(h){console.error("Failed to save token to localStorage:",h)}},async loginViaEmailPassword(f,d,h){var m;try{const y=await t.post(`/apps/${n}/auth/login`,{email:f,password:d,...h&&{turnstile_token:h}}),{access_token:x,user:w}=y;return x&&this.setToken(x),{access_token:x,user:w}}catch(y){throw((m=y.response)===null||m===void 0?void 0:m.status)===401&&await this.logout(),y}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(f,d){return t.post(`/apps/${n}/users/invite-user`,{user_email:f,role:d})},register(f){return t.post(`/apps/${n}/auth/register`,f)},verifyOtp({email:f,otpCode:d}){return t.post(`/apps/${n}/auth/verify-otp`,{email:f,otp_code:d})},resendOtp(f){return t.post(`/apps/${n}/auth/resend-otp`,{email:f})},resetPasswordRequest(f){return t.post(`/apps/${n}/auth/reset-password-request`,{email:f})},resetPassword({resetToken:f,newPassword:d}){return t.post(`/apps/${n}/auth/reset-password`,{reset_token:f,new_password:d})},changePassword({userId:f,currentPassword:d,newPassword:h}){return t.post(`/apps/${n}/auth/change-password`,{user_id:f,current_password:d,new_password:h})}}}function wR(t,e){return{async getAccessToken(n){const s=`/apps/${e}/auth/sso/accesstoken/${n}`;return t.get(s)},async getIdToken(n){const s=`/apps/${e}/auth/sso/idtoken/${n}`;return t.get(s)}}}const bR=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
246function SR(t,e){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var s;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async getWorkspaceConnection(n){var s;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var s;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async callApi(n,s){return Ow(n,"Integration type"),_R(t,`/apps/${e}/connectors/${encodeURIComponent(n)}/call`,s)}}}function Ow(t,e){if(!t||typeof t!="string")throw new Error(`${e} is required and must be a string`)}async function _R(t,e,n){var s,o,l,c,f,d,h,m,y;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");Ow(n.path,"Request path");const x=(s=n.method)!==null&&s!==void 0?s:"GET";if(!bR.has(x))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const S=await t.post(e,{method:x,...n.host==null?{}:{host:n.host},path:n.path,query:(o=n.query)!==null&&o!==void 0?o:{},headers:(l=n.headers)!==null&&l!==void 0?l:{},body:(c=n.body)!==null&&c!==void 0?c:null});return{success:S.success,phase:S.phase,status:(f=S.status_code)!==null&&f!==void 0?f:null,data:S.data,dataBase64:(d=S.data_base64)!==null&&d!==void 0?d:null,contentType:(h=S.content_type)!==null&&h!==void 0?h:null,headers:(m=S.headers)!==null&&m!==void 0?m:{},creditsCharged:(y=S.credits_charged)!==null&&y!==void 0?y:0}}function kR(t,e){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Hr(t={}){const{storageKey:e="base44_access_token",paramName:n="access_token",saveToStorage:s=!0,removeFromUrl:o=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(n),l){if(s&&ER(l,{storageKey:e}),o){c.delete(n);const f=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,f)}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 ER(t,e){const{storageKey:n="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(n,t),window.localStorage.setItem("token",t),!0}catch(s){return console.error("Error saving token to local storage:",s),!1}}function x6(t){const{storageKey:e="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage)return!1;try{return window.localStorage.removeItem(e),!0}catch(n){return console.error("Error removing token from local storage:",n),!1}}function w6(t,e){const{serverUrl:n,appId:s,loginPath:o="/login"}=e;if(!n||!s)throw new Error("serverUrl and appId are required to construct login URL");const l=encodeURIComponent(t||(typeof window<"u"?window.location.href:""));return`${n}${o}?from_url=${l}&app_id=${s}`}function CR({axios:t,serviceRoleAxios:e,appId:n,serverUrl:s,functionsVersion:o,platformHeaders:l}){const c=new Headers(l),f=d=>{const h=d.defaults.headers.common.Authorization;return typeof h=="string"&&h.startsWith("Bearer ")?h:null};return async function(h,m={}){TR(h);const{fetch:y=fetch,...x}=m,w=new Headers(m.headers),S=(_,k)=>{k&&!w.has(_)&&w.set(_,k)};return S("Authorization",f(t)),S("Base44-Service-Authorization",f(e)),S("Base44-App-Id",n),S("Base44-Api-Url",s),S("Base44-Functions-Version",o),S("Base44-State",c.get("Base44-State")),S("X-Data-Env",c.get("X-Data-Env")),y(h,{...x,headers:w})}}function TR(t){if(typeof t!="string"||t==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const e=t.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${t}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function m0(t,e,n){const s=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,o=l=>{const c=new Headers;if(n!=null&&n.getAuthHeaders){const f=n.getAuthHeaders();Object.entries(f).forEach(([d,h])=>{h!=null&&c.set(d,String(h))})}return l&&new Headers(l).forEach((f,d)=>{c.set(d,f)}),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 f,d;return c instanceof FormData||c&&Object.values(c).some(h=>
246h instanceof File)?(f=new FormData,Object.keys(c).forEach(h=>{c[h]instanceof File?f.append(h,c[h],c[h].name):typeof c[h]=="object"&&c[h]!==null?f.append(h,JSON.stringify(c[h])):f.append(h,c[h])}),d="multipart/form-data"):(f=c,d="application/json"),t.post(`/apps/${e}/functions/${l}`,f||c,{headers:{"Content-Type":d}})},async fetch(l,c={}){const d=`/functions${l.startsWith("/")?l:`/${l}`}`,h=o(c.headers),m={...c,headers:h};return await fetch(s(n==null?void 0:n.baseURL,d),m)}}}function g0({axios:t,getSocket:e,appId:n,serverUrl:s,token:o}){const l=`/apps/${n}/agents`,c={},f=()=>t.get(`${l}/conversations`),d=_=>t.get(`${l}/conversations/${_}`);return{getConversations:f,getConversation:d,listConversations:_=>t.get(`${l}/conversations`,{params:_}),createConversation:_=>t.post(`${l}/conversations`,_),addMessage:async(_,k)=>t.post(`${l}/conversations/v2/${_.id}/messages`,k),subscribeToConversation:(_,k)=>{const E=`/agent-conversations/${_}`,P=e(),C=d(_).then(A=>(c[_]=A,A));return P.subscribeToRoom(E,{connect:()=>{},update_model:async({data:A})=>{const D=JSON.parse(A);if(D._message){await C;const V=D._message,X=c[_];if(X){const B=X.messages||[],G=B.findIndex(ue=>ue.id===V.id),ee=G!==-1?B.map((ue,Ce)=>Ce===G?V:ue):[...B,V];c[_]={...X,messages:ee},k==null||k(c[_])}}}})},getWhatsAppConnectURL:_=>{const k=`${s}/api/apps/${n}/agents/${encodeURIComponent(_)}/whatsapp`,E=o??Hr();return E?`${k}?token=${E}`:k},getTelegramConnectURL:_=>{const k=`${s}/api/apps/${n}/agents/${encodeURIComponent(_)}/telegram`,E=o??Hr();return E?`${k}?token=${E}`:k}}}const y0={openai:"openai",typesafe:"typesafe"};function v0({serverUrl:t,token:e,appId:n,headers:s={}}){return{connection:({provider:l="openai"}={})=>{var c;if(!Object.prototype.hasOwnProperty.call(y0,l))throw new Error(`Unsupported AI Gateway provider: ${l}`);const f=y0[l];return{baseURL:`${t}/api/apps/${n}/ai/${f}/v1`,token:(c=e??Hr())!==null&&c!==void 0?c:"",headers:{...s}}}}}function x0(t,e){const n=`/app-logs/${e}`;return{async logUserInApp(s){await t.post(`${n}/log-user-in-app/${s}`)},async fetchLogs(s={}){return await t.get(n,{params:s})},async getStats(s={}){return await t.get(`${n}/stats`,{params:s})}}}function RR(t,e){return{async getPublicSettings(){return t.get(`/apps/public/prod/public-settings/by-id/${e}`)}}}function PR(t,e){return{async inviteUser(n,s){if(s!=="user"&&s!=="admin")throw new Error(`Invalid role: "${s}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:n,role:s})}}}const Hn=Object.create(null);Hn.open="0";Hn.close="1";Hn.ping="2";Hn.pong="3";Hn.message="4";Hn.upgrade="5";Hn.noop="6";const Yl=Object.create(null);Object.keys(Hn).forEach(t=>{Yl[Hn[t]]=t});const Tf={type:"error",data:"parser error"},Fw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Lw=typeof ArrayBuffer=="function",Dw=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Sh=({type:t,data:e},n,s)=>Fw&&e instanceof Blob?n?s(e):w0(e,s):Lw&&(e instanceof ArrayBuffer||Dw(e))?n?s(e):w0(new Blob([e]),s):s(Hn[t]+(e||"")),w0=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)};function b0(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Id;function AR(t,e){if(Fw&&t.data instanceof Blob)return t.data.arrayBuffer().then(b0).then(e);if(Lw&&(t.data instanceof ArrayBuffer||Dw(t.data)))return e(b0(t.data));Sh(t,!1,n=>{Id||(Id=new TextEncoder),e(Id.encode(n))})}const S0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Io=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<S0.length;t++)Io[S0.charCodeAt(t)]=t;const jR=t=>{let e=t.length*.75,n=t.length,s,o=0,l,c,f,d;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const h=new ArrayBuffer(e),m=new Uint8Array(h);for(s=0;s<n;s+=4)l=Io[t.charCodeAt(s)],c=Io[t.charCodeAt(s+1)],f=Io[t.charCodeAt(s+2)],d=Io[t.charCodeAt(s+3)],m[o++]=l<<2|c>>4,m[o++]=(c&15)<<4|f>>2,m[o++]=(f&3)<<6|d&63;return h},NR=typeof ArrayBuffer=="function",_h=(t,e)=>{if(typeof t!="string")return{type:"message",data:Mw(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:OR(t.substring(1),e)}:Yl[n]?t.length>1?{type:Yl[n],data:t.substring(1)}:{type:Yl[n]}:Tf},OR=(t,e)=>{if(NR){const n=jR(t);return Mw(n,e)}else return{base64:!0,data:t}},Mw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Iw="�",FR=(t,e)=>{const n=t.length,s=new Array(n);let o=0;t.forEach((l,c)=>{Sh(l,!1,f=>{s[c]=f,++o===n&&e(s.join(Iw))})})},LR=(t,e)=>{const n=t.split(Iw),s=[];for(let o=0;o<n.length;o++){const l=_h(n[o],e);if(s.push(l),l.type==="error")break}return s};function DR(){return new TransformStream({transform(t,e){AR(t,n=>{const s=n.length;let o;if(s<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,s);else if(s<65536){o=new Uint8Array(3);const l=new DataView(o.buffer);l.setUint8(0,126),l.setUint16(1,s)}else{o=new Uint8Array(9);const l=new DataView(o.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}let Bd;function Ml(t){return t.reduce((e,n)=>e+n.length,0)}function Il(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let s=0;for(let o=0;o<e;o++)n[o]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),n}function MR(t,e){Bd||(Bd=new TextDecoder);const n=[];let s=0,o=-1,l=!1;return new TransformStream({transform(c,f){for(n.push(c);;){if(s===0){if(Ml(n)<1)break;const d=Il(n,1);l=(d[0]&128)===128,o=d[0]&127,o<126?s=3:o===126?s=1:s=2}else if(s===1){if(Ml(n)<2)break;const d=Il(n,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),s=3}else if(s===2){if(Ml(n)<8)break;const d=Il(n,8),h=new DataView(d.buffer,d.byteOffset,d.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){f.enqueue(Tf);break}o=m*Math.pow(2,32)+h.getUint32(4),s=3}else{if(Ml(n)<o)break;const d=Il(n,o);f.enqueue(_h(l?d:Bd.decode(d),e)),s=0}if(o===0||o>t){f.enqueue(Tf);break}}}})}const Bw=4;function ft(t){if(t)return IR(t)}function IR(t){for(var e in ft.prototype)t[e]=ft.prototype[e];return t}ft.prototype.on=ft.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};ft.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};ft.prototype.off=ft.prototype.removeListener=ft.prototype.removeAllListeners=ft.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];
vendor: 24,686 bytes, line 246
246if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,o=0;o<n.length;o++)if(s=n[o],s===e||s.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};ft.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,o=n.length;s<o;++s)n[s].apply(this,e)}return this};ft.prototype.emitReserved=ft.prototype.emit;ft.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};ft.prototype.hasListeners=function(t){return!!this.listeners(t).length};const _c=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),gn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),BR="arraybuffer";function zw(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const zR=gn.setTimeout,UR=gn.clearTimeout;function kc(t,e){e.useNativeTimers?(t.setTimeoutFn=zR.bind(gn),t.clearTimeoutFn=UR.bind(gn)):(t.setTimeoutFn=gn.setTimeout.bind(gn),t.clearTimeoutFn=gn.clearTimeout.bind(gn))}const VR=1.33;function $R(t){return typeof t=="string"?HR(t):Math.ceil((t.byteLength||t.size)*VR)}function HR(t){let e=0,n=0;for(let s=0,o=t.length;s<o;s++)e=t.charCodeAt(s),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(s++,n+=4);return n}function Uw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function WR(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function qR(t){let e={},n=t.split("&");for(let s=0,o=n.length;s<o;s++){let l=n[s].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}class KR extends Error{constructor(e,n,s){super(e),this.description=n,this.context=s,this.type="TransportError"}}class kh extends ft{constructor(e){super(),this.writable=!1,kc(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,s){return super.emitReserved("error",new KR(e,n,s)),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 n=_h(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=WR(e);return n.length?"?"+n:""}}class QR extends kh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};LR(e,this.socket.binaryType).forEach(n),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,FR(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Uw()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let Vw=!1;try{Vw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const GR=Vw;function YR(){}class XR extends QR{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(o,l)=>{this.onError("xhr post error",o,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}class Un extends ft{constructor(e,n,s){super(),this.createRequest=e,kc(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const n=zw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&s.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var o;s.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Un.requestsCount++,Un.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=YR,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Un.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()}}Un.requestsCount=0;Un.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",_0);else if(typeof addEventListener=="function"){const t="onpagehide"in gn?"pagehide":"unload";addEventListener(t,_0,!1)}}function _0(){for(let t in Un.requests)Un.requests.hasOwnProperty(t)&&Un.requests[t].abort()}const JR=(function(){const t=$w({xdomain:!1});return t&&t.responseType!==null})();class ZR extends XR{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=JR&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Un($w,this.uri(),e)}}function $w(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||GR))return new XMLHttpRequest}catch{}if(!e)try{return new gn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Hw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class eP extends kh{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,s=Hw?{}:zw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,s)}catch(o){return this.emitReserved("error",o)}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 n=0;n<e.length;n++){const s=e[n],o=n===e.length-1;Sh(s,this.supportsBinary,l=>{try{this.doWrite(s,l)}catch{}o&&_c(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Uw()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const zd=gn.WebSocket||gn.MozWebSocket;class tP extends eP{createSocket(e,n,s){return Hw?new zd(e,n,s):n?new zd(e,n):new zd(e)}doWrite(e,n){this.ws.send(n)}}class nP extends kh{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 n=MR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(n).getReader(),o=DR();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();const l=()=>{s.read().then(({done:f,value:d})=>{f||(this.onPacket(d),l())}).catch(f=>{})};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 n=0;n<e.length;n++){const s=e[n],o=n===e.length-1;this._writer.write(s).then(()=>{o&&_c(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const rP={websocket:tP,webtransport:nP,polling:ZR},sP=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,iP=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rf(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let o=sP.exec(t||""),l={},c=14;for(;c--;)l[iP[c]]=o[c]||"";return n!=-1&&s!=-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=oP(l,l.path),l.queryKey=aP(l,l.query),l}function oP(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function aP(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,o,l){o&&(n[o]=l)}),n}const Pf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xl=[];Pf&&addEventListener("offline",()=>{Xl.forEach(t=>t())},!1);class Kr extends ft{constructor(e,n){if(super(),this.binaryType=BR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const s=Rf(e);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=Rf(n.host).host);kc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(s=>{const o=s.prototype.name;this.transports.push(o),this._transportsByName[o]=s}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=qR(this.opts.query)),Pf&&(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 n=Object.assign({},this.opts.query);n.EIO=Bw,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Kr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Kr.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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let s=0;s<this.writeBuffer.length;s++){const o=this.writeBuffer[s].data;if(o&&(n+=$R(o)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_c(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,s){return this._sendPacket("message",e,n,s),this}send(e,n,s){return this._sendPacket("message",e,n,s),this}_sendPacket(e,n,s,o){if(typeof n=="function"&&(o=n,n=void 0),typeof s=="function"&&(o=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const l={type:e,data:n,options:s};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(Kr.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,n){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(),Pf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Xl.indexOf(this._offlineEventListener);s!==-1&&Xl.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Kr.protocol=Bw;class lP extends Kr{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 n=this.createTransport(e),s=!1;Kr.priorWebsocketSuccess=!1;const o=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Kr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=n.name,this.emitReserved("upgradeError",x)}}))};function l(){s||(s=!0,m(),n.close(),n=null)}const c=y=>{const x=new Error("probe error: "+y);x.transport=n.name,l(),this.emitReserved("upgradeError",x)};function f(){c("transport closed")}function d(){c("socket closed")}function h(y){n&&y.name!==n.name&&l()}const m=()=>{n.removeListener("open",o),n.removeListener("error",c),n.removeListener("close",f),this.off("close",d),this.off("upgrading",h)};n.once("open",o),n.once("error",c),n.once("close",f),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&n.push(e[s]);return n}}let cP=class extends lP{constructor(e,n={}){const s=typeof e=="object"?e:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(o=>rP[o]).filter(o=>!!o)),super(e,s)}};function uP(t,e="",n){let s=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),s=Rf(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const l=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+l+":"+s.port+e,s.href=s.protocol+"://"+l+(n&&n.port===s.port?"":":"+s.port),s}const dP=typeof ArrayBuffer=="function",fP=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ww=Object.prototype.toString,hP=typeof Blob=="function"||typeof Blob<"u"&&Ww.call(Blob)==="[object BlobConstructor]",pP=typeof File=="function"||typeof File<"u"&&Ww.call(File)==="[object FileConstructor]";function Eh(t){return dP&&(t instanceof ArrayBuffer||fP(t))||hP&&t instanceof Blob||pP&&t instanceof File}function Jl(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n<s;n++)if(Jl(t[n]))return!0;return!1}if(Eh(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Jl(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Jl(t[n]))return!0;return!1}function mP(t){const e=[],n=t.data,s=t;return s.data=Af(n,e),s.attachments=e.length,{packet:s,buffers:e}}function Af(t,e){if(!t)return t;if(Eh(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let s=0;s<t.length;s++)n[s]=Af(t[s],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=Af(t[s],e));return n}return t}function gP(t,e){return t.data=jf(t.data,e),delete t.attachments,t}function jf(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 n=0;n<t.length;n++)t[n]=jf(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=jf(t[n],e));return t}const yP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Le;(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"})(Le||(Le={}));class vP{constructor(e){this.replacer=e}encode(e){return(e.type===Le.EVENT||e.type===Le.ACK)&&Jl(e)?this.encodeAsBinary({type:e.type===Le.EVENT?Le.BINARY_EVENT:Le.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Le.BINARY_EVENT||e.type===Le.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=mP(e),s=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(s),o}}class Ch extends ft{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const s=n.type===Le.BINARY_EVENT;s||n.type===Le.BINARY_ACK?(n.type=s?Le.EVENT:Le.ACK,this.reconstructor=new xP(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Eh(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const s={type:Number(e.charAt(0))};if(Le[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Le.BINARY_EVENT||s.type===Le.BINARY_ACK){const l=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const c=e.substring(l,n);if(c!=Number(c)||e.charAt(n)!=="-")throw new Error("Illegal attachments");s.attachments=Number(c)}if(e.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););s.nsp=e.substring(l,n)}else s.nsp="/";const o=e.charAt(n+1);if(o!==""&&Number(o)==o){const l=n+1;for(;++n;){const c=e.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===e.length)break}s.id=Number(e.substring(l,n+1))}if(e.charAt(++n)){const l=this.tryParse(e.substr(n));if(Ch.isPayloadValid(s.type,l))s.data=l;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Le.CONNECT:return k0(n);case Le.DISCONNECT:return n===void 0;case Le.CONNECT_ERROR:return typeof n=="string"||k0(n);case Le.EVENT:case Le.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&yP.indexOf(n[0])===-1);case Le.ACK:case Le.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}
vendor: 3,848 bytes, line 246
246class xP{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=gP(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function k0(t){return Object.prototype.toString.call(t)==="[object Object]"}const wP=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ch,Encoder:vP,get PacketType(){return Le}},Symbol.toStringTag,{value:"Module"}));function An(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const bP=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class qw extends ft{constructor(e,n,s){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=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[An(e,"open",this.onopen.bind(this)),An(e,"packet",this.onpacket.bind(this)),An(e,"error",this.onerror.bind(this)),An(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,...n){var s,o,l;if(bP.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:Le.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,y=n.pop();this._registerAckCallback(m,y),c.id=m}const f=(o=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!f||(d?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(e,n){var s;const o=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===e&&this.sendBuffer.splice(f,1);n.call(this,new Error("operation has timed out"))},o),c=(...f)=>{this.io.clearTimeoutFn(l),n.apply(this,f)};c.withError=!0,this.acks[e]=c}emitWithAck(e,...n){return new Promise((s,o)=>{const l=(c,f)=>c?o(c):s(f);l.withError=!0,n.push(l),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...l)=>(this._queue[0],o!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...l)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:Le.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
vendor: 7,087 bytes, line 246
246_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Le.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 Le.EVENT:case Le.BINARY_EVENT:this.onevent(e);break;case Le.ACK:case Le.BINARY_ACK:this.onack(e);break;case Le.DISCONNECT:this.ondisconnect();break;case Le.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.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 n=this;let s=!1;return function(...o){s||(s=!0,n.packet({type:Le.ACK,id:e,data:o}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:Le.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 n=this._anyListeners;for(let s=0;s<n.length;s++)if(e===n[s])return n.splice(s,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 n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(e===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,e.data)}}}function Ui(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}Ui.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Ui.prototype.reset=function(){this.attempts=0};Ui.prototype.setMin=function(t){this.ms=t};Ui.prototype.setMax=function(t){this.max=t};Ui.prototype.setJitter=function(t){this.jitter=t};class Nf extends ft{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,kc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Ui({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const o=n.parser||wP;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 cP(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const o=An(n,"open",function(){s.onopen(),e&&e()}),l=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),e?e(f):this.maybeReconnectOnOpen()},c=An(n,"error",l);if(this._timeout!==!1){const f=this._timeout,d=this.setTimeoutFn(()=>{o(),l(new Error("timeout")),n.close()},f);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),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(An(e,"ping",this.onping.bind(this)),An(e,"data",this.ondata.bind(this)),An(e,"error",this.onerror.bind(this)),An(e,"close",this.onclose.bind(this)),An(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){_c(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new qw(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let s=0;s<n.length;s++)this.engine.write(n[s],e.options)}
246cleanup(){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,n){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Oo={};function Zl(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=uP(t,e.path||"/socket.io"),s=n.source,o=n.id,l=n.path,c=Oo[o]&&l in Oo[o].nsps,f=e.forceNew||e["force new connection"]||e.multiplex===!1||c;let d;return f?d=new Nf(s,e):(Oo[o]||(Oo[o]=new Nf(s,e)),d=Oo[o]),n.query&&!e.query&&(e.query=n.queryKey),d.socket(n.path,e)}Object.assign(Zl,{Manager:Nf,Socket:qw,io:Zl,connect:Zl});const SP=250;function E0(t,e){var n;const s=(n=t.token)!==null&&n!==void 0?n:Hr(),o={app_id:t.appId};s?o.token=s:o.anonymous_id=cc();const l=Zl(t.serverUrl,{path:t.mountPath,transports:t.transports,query:o});return l.on("connect",async()=>{var c;return console.log("connect",l.id),(c=e.connect)===null||c===void 0?void 0:c.call(e)}),l.on("update_model",async c=>{var f;return(f=e.update_model)===null||f===void 0?void 0:f.call(e,c)}),l.on("error",async c=>{var f;return(f=e.error)===null||f===void 0?void 0:f.call(e,c)}),l.on("connect_error",async c=>{var f;return console.error("connect_error",c),(f=e.error)===null||f===void 0?void 0:f.call(e,c)}),l}function _P({config:t}){let e={...t};const n={},s={},o={connect:async()=>{const E=[];Object.keys(n).forEach(P=>{const C=x(P);C.length!==0&&(h(P),C.forEach(({connect:A})=>{const D=async()=>A==null?void 0:A();E.push(D())}))}),await Promise.all(E)},update_model:async E=>{const C=x(E.room).map(A=>{var D;return(D=A.update_model)===null||D===void 0?void 0:D.call(A,E)});await Promise.all(C)},error:async E=>{console.error("error",E);const P=Object.values(n).flat().map(C=>{var A;return(A=C.error)===null||A===void 0?void 0:A.call(C,E)});await Promise.all(P)}};let l=E0(t,o);function c(){f()}function f(){S(),l&&l.disconnect()}function d(E){c(),e={...e,...E},l=E0(e,o)}function h(E){l.emit("join",E)}function m(E){l.emit("leave",E)}async function y(E,P){var C;const A=JSON.stringify(P);return(C=o.update_model)===null||C===void 0?void 0:C.call(o,{room:E,data:A})}function x(E){var P;return(P=n[E])!==null&&P!==void 0?P:[]}function w(E){const P=s[E];P&&(clearTimeout(P),delete s[E])}function S(){Object.keys(s).forEach(E=>{var P,C;clearTimeout(s[E]),delete s[E],((C=(P=n[E])===null||P===void 0?void 0:P.length)!==null&&C!==void 0?C:0)===0&&delete n[E]})}function _(E){w(E),s[E]=setTimeout(()=>{var P,C;delete s[E],!(((C=(P=n[E])===null||P===void 0?void 0:P.length)!==null&&C!==void 0?C:0)>0)&&(m(E),delete n[E])},SP)}return{socket:l,subscribeToRoom:(E,P)=>{n[E]?w(E):(h(E),n[E]=[]),n[E].push(P);let C=!1;return()=>{var A,D;C||(C=!0,n[E]=(D=(A=n[E])===null||A===void 0?void 0:A.filter(V=>V!==P))!==null&&D!==void 0?D:[],n[E].length===0&&_(E))}},updateConfig:d,updateModel:y,disconnect:f}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
247  PartySocket requires a global 'EventTarget' class to be available!
248  You can polyfill this global by adding this to your code before any partysocket imports: 
249  
250  \`\`\`
251  import 'partysocket/event-target-polyfill';
252  \`\`\`
253  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
254`);
vendor: 5,074 bytes, line 254
254var Kw=class extends Event{constructor(e,n){super("error",n);He(this,"message");He(this,"error");this.message=e.message,this.error=e}},Qw=class extends Event{constructor(e=1e3,n="",s){super("close",s);He(this,"code");He(this,"reason");He(this,"wasClean",!0);this.code=e,this.reason=n}},Ud={Event,ErrorEvent:Kw,CloseEvent:Qw};function kP(t,e){if(!t)throw new Error(e)}function EP(t){return new t.constructor(t.type,t)}function CP(t){return"data"in t?new MessageEvent(t.type,t):"code"in t||"reason"in t?new Qw(t.code||1999,t.reason||"unknown reason",t):"error"in t?new Kw(t.error,t):new Event(t.type,t)}var fx,TP=typeof process<"u"&&typeof((fx=process.versions)==null?void 0:fx.node)<"u"&&typeof document>"u",Bl=TP?CP:EP,hs={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},C0=!1,RP=class ms extends EventTarget{constructor(n,s,o={}){super();He(this,"_ws");He(this,"_retryCount",-1);He(this,"_uptimeTimeout");He(this,"_connectTimeout");He(this,"_shouldReconnect",!0);He(this,"_connectLock",!1);He(this,"_binaryType","blob");He(this,"_closeCalled",!1);He(this,"_messageQueue",[]);He(this,"_url");He(this,"_protocols");He(this,"_options");He(this,"onclose",null);He(this,"onerror",null);He(this,"onmessage",null);He(this,"onopen",null);He(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:s=hs.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),s),kP(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(o=>{var l;return(l=this._ws)==null?void 0:l.send(o)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Bl(n))});He(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Bl(n))});He(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Bl(n)),this._connect()});He(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Bl(n))});this._url=n,this._protocols=s,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return ms.CONNECTING}get OPEN(){return ms.OPEN}get CLOSING(){return ms.CLOSING}get CLOSED(){return ms.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((s,o)=>(typeof o=="string"?s+=o.length:o instanceof Blob?s+=o.size:s+=o.byteLength,s),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?ms.CLOSED:ms.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,s){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,s)}reconnect(n,s){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,s),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:s=hs.maxEnqueuedMessages}=this._options;this._messageQueue.length<s&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=hs.reconnectionDelayGrowFactor,minReconnectionDelay:s=hs.minReconnectionDelay,maxReconnectionDelay:o=hs.maxReconnectionDelay}=this._options;let l=0;return this._retryCount>0&&(l=s*Math.pow(n,this._retryCount-1),l>o&&(l=o)),this._debug("next delay",l),l}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const s=n();if(!s)return Promise.resolve(null);if(typeof s=="string"||Array.isArray(s))return Promise.resolve(s);if(s.then)return s}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const s=n();if(typeof s=="string")return Promise.resolve(s);if(s.then)return s}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
254const{maxRetries:n=hs.maxRetries,connectionTimeout:s=hs.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([o,l])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!C0&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
255
256For example, if you're using node.js, run \`npm install ws\`, and then in your code:
257
258import PartySocket from 'partysocket';
259import WS from 'ws';
260
261const partysocket = new PartySocket({
262  host: "127.0.0.1:1999",
263  room: "test-room",
264  WebSocket: WS
265});
266
267`),C0=!0);const c=this._options.WebSocket||WebSocket;this._debug("connect",{url:o,protocols:l}),this._ws=l?new c(o,l):new c(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),s)}).catch(o=>{this._connectLock=!1,this._handleError(new Ud.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Ud.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,s){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,s),this._handleClose(new Ud.CloseEvent(n,s,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
268 * Reconnecting WebSocket
269 * by Pedro Ladaria <[email protected]>
270 * https://github.com/pladaria/reconnecting-websocket
271 * License MIT
272 */const PP=1e3,AP=3e3,jP=new Set([405,409,422,503]),NP=new Set([400,403,404]);function OP(t){const e=t&&typeof t=="object"?t.status:void 0;return typeof e=="number"?e:void 0}function FP(t){return t instanceof Error?t:new Error(String(t))}class LP{constructor(e,n,s,o,l){var c;this.onClose=l,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(c=o==null?void 0:o.id)!==null&&c!==void 0?c:crypto.randomUUID();let f=s.transport==="proxy";const d=async()=>{var x;if(this.closed)throw new Error("Actor connection is closed");if(!f)try{const{websocket_url:w,token:S}=await s.mintConnectionToken(e,n,this.id),_=w.includes("?")?"&":"?";return`${w}${_}token=${encodeURIComponent(S)}`}catch(w){const S=OP(w);if(!(s.transport!=="direct"&&S!==void 0&&jP.has(S))){S!==void 0&&NP.has(S)&&this.close();try{(x=s.onMintError)===null||x===void 0||x.call(s,FP(w))}catch{}throw w}f=!0}return MP(s.host,e,n,this.id,s.appId,s.getAuthToken(),s.functionsVersion)},h=new RP(d);this.ws=h;let m=Date.now();const y=()=>{m=Date.now()};h.addEventListener("open",y),h.addEventListener("message",x=>{y();let w;try{w=JSON.parse(x.data)}catch{return}if((w&&typeof w=="object"?w.type:void 0)!=="__pong")for(const _ of this.listeners)_(w)}),this.heartbeat=setInterval(()=>{if(Date.now()-m>AP){y(),h.readyState===h.OPEN&&h.reconnect();return}try{h.send(JSON.stringify({type:"__ping"}))}catch{}},PP)}subscribe(e){return this.listeners.add(e),{unsubscribe:()=>{this.listeners.delete(e)}}}send(e){this.closed||this.ws.send(JSON.stringify(e))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function DP(t,e,n,s){let o=null;return{connect(l){if(o)return o;const c=new LP(t,e,n,l,()=>{s.delete(c),o===c&&(o=null)});return o=c,s.add(c),c}}}function MP(t,e,n,s,o,l,c){let f=t.replace(/^(http|https|ws|wss):\/\//,"");f.endsWith("/")&&(f=f.slice(0,-1));const d=f.startsWith("localhost:")||f.startsWith("127.0.0.1:")||f.startsWith("192.168.")||f.startsWith("10.")||f.startsWith("172.")&&f.split(".")[1]>="16"&&f.split(".")[1]<="31"||f.startsWith("[::ffff:7f00:1]:"),h=new URLSearchParams([["_pk",s],["app_id",o],["handler",e]]);return l&&h.append("token",l),c&&h.append("fv",c),`${d?"ws":"wss"}://${f}/parties/${e}/${n}?${h}`}function IP(t,e){return t&&!t.startsWith("/")?t:e??t}function BP(t){const e=new Set;return{module:new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"))return l=>DP(o,l,t,e)}}),closeAll:()=>{for(const s of[...e])s.close()}}}function Gw(t){var e,n,s,o;const{serverUrl:l="https://base44.app",appId:c,analytics:f,token:d,serviceToken:h,requiresAuth:m=!1,appBaseUrl:y,options:x,functionsVersion:w,headers:S}=t,_=typeof y=="string"?y:"",k={serverUrl:l,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:c,token:d};let E=null;const P=()=>(E||(E=_P({config:k})),E),C={...S,"X-App-Id":String(c)},A=S==null?void 0:S["Base44-State"],D=A?{"Base44-State":A}:{},V=w?{...C,"Base44-Functions-Version":w}:C,X=hi({baseURL:`${l}/api`,headers:C,token:d,onError:x==null?void 0:x.onError}),B=hi({baseURL:`${l}/api`,headers:V,token:d,interceptResponses:!1,onError:x==null?void 0:x.onError}),G={...C,...d?{"on-behalf-of":`Bearer ${d}`}:{}},ee=hi({baseURL:`${l}/api`,headers:G,token:h,onError:x==null?void 0:x.onError}),ue=hi({baseURL:`${l}/api`,headers:V,token:h,interceptResponses:!1}),Ce=hi({baseURL:`${l}/api`,headers:C}),Ae=xR(X,B,c,{appBaseUrl:_,token:d});if(typeof window<"u"){const H=d||Hr();H&&Ae.setToken(H)}const he=BP({appId:c,host:IP(l,typeof window<"u"?(e=window.location)===null||e===void 0?void 0:e.origin:void 0),functionsVersion:w,getAuthToken:()=>d||Hr(),mintConnectionToken:async(H,te,U)=>{const O=d||Hr();return await Ce.post(`/apps/${c}/actors/${encodeURIComponent(H)}/connection-token`,{room:te,connection_id:U},{headers:{...O?{Authorization:`Bearer ${O}`}:{},...w?{"Base44-Functions-Version":w}:{}}})},transport:x==null?void 0:x.actorsTransport,onMintError:x==null?void 0:x.onError}),ge={entities:f0({axios:X,appId:c,getSocket:P}),integrations:p0(X,c),connectors:kR(X,c),auth:Ae,functions:m0(B,c,{getAuthHeaders:()=>{const H={},te=d||Hr();return te&&(H.Authorization=`Bearer ${te}`),H},baseURL:(n=B.defaults)===null||n===void 0?void 0:n.baseURL}
272),agents:g0({axios:X,getSocket:P,appId:c,serverUrl:l,token:d}),aiGateway:v0({serverUrl:l,token:d,appId:c,headers:D}),appLogs:x0(X,c),app:RR(X,c),users:PR(X,c),analytics:sR({axiosClient:X,serverUrl:l,appId:c,userAuthModule:Ae,enabled:(s=f==null?void 0:f.enabled)!==null&&s!==void 0?s:!0}),actors:he.module,cleanup:()=>{ge.analytics.cleanup(),he.closeAll(),E&&E.disconnect()}},Te={entities:f0({axios:ee,appId:c,getSocket:P}),integrations:p0(ee,c),sso:wR(ee,c),connectors:SR(ee,c),functions:m0(ue,c,{getAuthHeaders:()=>{const H={};return h&&(H.Authorization=`Bearer ${h}`),H},baseURL:(o=ue.defaults)===null||o===void 0?void 0:o.baseURL}),agents:g0({axios:ee,getSocket:P,appId:c,serverUrl:l,token:d}),aiGateway:v0({serverUrl:l,token:h,appId:c,headers:D}),appLogs:x0(ee,c),cleanup:()=>{E&&E.disconnect()}};return m&&typeof window<"u"&&setTimeout(async()=>{try{await ge.auth.isAuthenticated()||ge.auth.redirectToLogin(window.location.href)}catch(H){console.error("Authentication check failed:",H),ge.auth.redirectToLogin(window.location.href)}},0),{...ge,fetchWithAuth:CR({axios:X,serviceRoleAxios:ee,appId:String(c),serverUrl:l,functionsVersion:w,platformHeaders:S}),setToken(H){ge.auth.setToken(H),E&&E.updateConfig({token:H}),k.token=H},getConfig(){return{serverUrl:l,appId:c,requiresAuth:m}},get asServiceRole(){if(!h)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Te}}}function S6(t){const e=t.headers.get("Authorization"),n=t.headers.get("Base44-Service-Authorization"),s=t.headers.get("Base44-App-Id"),o=t.headers.get("Base44-Api-Url"),l=t.headers.get("Base44-Functions-Version"),c=t.headers.get("Base44-State"),f=t.headers.get("X-Data-Env");if(!s)throw new Error("Base44-App-Id header is required, but is was not found on the request");let d,h;if(n!==null){if(n===""||!n.startsWith("Bearer ")||n.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');d=n.split(" ")[1]}if(e!==null){if(e===""||!e.startsWith("Bearer ")||e.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');h=e.split(" ")[1]}const m={};return c&&(m["Base44-State"]=c),(f==="dev"||f==="prod")&&(m["X-Data-Env"]=f),Gw({serverUrl:o||"https://base44.app",appId:s,token:h,serviceToken:d,functionsVersion:l??void 0,headers:m})}const Yw=typeof window>"u",zP=Yw?{localStorage:new Map}:window,Ho=zP.localStorage,UP=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),fi=(t,{defaultValue:e=void 0,removeFromUrl:n=!1}={})=>{if(Yw)return e;const s=`base44_${UP(t)}`,o=new URLSearchParams(window.location.search),l=o.get(t);if(n){o.delete(t);const f=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,f)}if(l)return Ho.setItem(s,l),l;if(e)return Ho.setItem(s,e),e;const c=Ho.getItem(s);return c||null},VP=()=>(fi("clear_access_token")==="true"&&(Ho.removeItem("base44_access_token"),Ho.removeItem("token")),{appId:fi("app_id",{defaultValue:"69ed1a68d76c21a3e1394b53"}),token:fi("access_token",{removeFromUrl:!0}),fromUrl:fi("from_url",{defaultValue:window.location.href}),functionsVersion:fi("functions_version",{defaultValue:"prod"}),appBaseUrl:fi("app_base_url",{defaultValue:void 0})}),Bo={...VP()},{appId:$P,token:HP,functionsVersion:WP,appBaseUrl:qP}=Bo,zn=Gw({appId:$P,token:HP,functionsVersion:WP,serverUrl:"",requiresAuth:!1,appBaseUrl:qP});function KP({}){var o;const e=Bs().pathname.substring(1),{data:n,isFetched:s}=zE({queryKey:["user"],queryFn:async()=>{try{return{user:await zn.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return p.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:p.jsx("div",{className:"max-w-md w-full",children:p.jsxs("div",{className:"text-center space-y-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),p.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),p.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",p.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),s&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&p.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:p.jsxs("div",{className:"flex items-start space-x-3",children:[p.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:p.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),p.jsxs("div",{className:"text-left space-y-1",children:[p.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),p.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."})]})]})}),p.jsx("div",{className:"pt-6",children:p.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:[p.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.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 Xw=T.createContext(),QP=({children:t})=>{const[e,n]=T.useState(null),[s,o]=T.useState(!1),[l,c]=T.useState(!0),[f,d]=T.useState(!0),[h,m]=T.useState(null),[y,x]=T.useState(!1),[w,S]=T.useState(null);T.useEffect(()=>{_()},[]);const _=async()=>{var C,A;try{d(!0),m(null);const D=hi({baseURL:"/api/apps/public",headers:{"X-App-Id":Bo.appId},token:Bo.token,interceptResponses:!0});try{const V=await D.get(`/prod/public-settings/by-id/${Bo.appId}`);S(V),Bo.token?await k():(c(!1),o(!1),x(!0)),d(!1)}catch(V){if(console.error("App state check failed:",V),V.status===403&&((A=(C=V.data)==null?void 0:C.extra_data)!=null&&A.reason)){const X=V.data.extra_data.reason;m(X==="auth_required"?{type:"auth_required",message:"Authentication required"}:X==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:X,message:V.message})}else m({type:"unknown",message:V.message||"Failed to load app"});d(!1),c(!1)}}catch(D){console.error("Unexpected error:",D),m({type:"unknown",message:D.message||"An unexpected error occurred"}),d(!1),c(!1)}},k=async()=>{try{c(!0);const C=await zn.auth.me();n(C),o(!0),c(!1),x(!0)}catch(C){console.error("User auth check failed:",C),c(!1),o(!1),x(!0),(C.status===401||C.status===403)&&m({type:"auth_required",message:"Authentication required"})}},E=(C=!0)=>{n(null),o(!1),C?zn.auth.logout(window.location.href):zn.auth.logout()},P=()=>{zn.auth.redirectToLogin(window.location.href)};return p.jsx(Xw.Provider,{value:{user:e,isAuthenticated:s,isLoadingAuth:l,isLoadingPublicSettings:f,authError:h,appPublicSettings:w,authChecked:y,logout:E,navigateToLogin:P,checkUserAuth:k,checkAppState:_},children:t})},GP=()=>{const t=T.useContext(Xw);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},YP=()=>p.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:p.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:p.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.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"})})}),p.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),p.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."}),p.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[p.jsx("p",{children:"If you believe this is an error, you can:"}),p.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[p.jsx("li",{children:"Verify you are logged in with the correct account"}),p.jsx("li",{children:"Contact the app administrator for access"}),p.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function Fo(t,e,n){let s=document.querySelector(t);if(!s){s=document.createElement("meta");const o=t.match(/\[([^=]+)="([^"]+)"\]/);s.setAttribute(o[1],o[2]),document.head.appendChild(s)}s.setAttribute(e,n)}function Ec({title:t,description:e,ogTitle:n}){t&&typeof document<"u"&&(document.title=t),T.useEffect(()=>{t&&(document.title=t),e&&Fo('meta[name="description"]',"content",e);const s=n||t;s&&Fo('meta[property="og:title"]',"content",s),e&&Fo('meta[property="og:description"]',"content",e),s&&Fo('meta[name="twitter:title"]',"content",s),e&&Fo('meta[name="twitter:description"]',"content",e)},[t,e,n])}const Of="rafter_utm",T0={utm_source:"",utm_medium:"",utm_campaign:"",utm_content:"",utm_term:""};function Jw(){const t=new URLSearchParams(window.location.search);return{utm_source:t.get("utm_source")||"",utm_medium:t.get("utm_medium")||"",utm_campaign:t.get("utm_campaign")||"",utm_content:t.get("utm_content")||"",utm_term:t.get("utm_term")||""}}if(typeof window<"u")try{if(!sessionStorage.getItem(Of)){const e=Jw();Object.values(e).some(Boolean)&&sessionStorage.setItem(Of,JSON.stringify(e))}}catch{}function va(){if(typeof window>"u")return T0;try{const t=sessionStorage.getItem(Of);if(t)return{...T0,...JSON.parse(t)}}catch{}return Jw()}function ta(t={},e=""){const n=va(),s=new URLSearchParams,o=n.utm_source||t.utm_source,l=n.utm_medium||t.utm_medium,c=n.utm_campaign||t.utm_campaign,f=n.utm_content||t.utm_content,d=n.utm_term||t.utm_term;o&&s.set("utm_source",o),l&&s.set("utm_medium",l),c&&s.set("utm_campaign",c),f&&s.set("utm_content",f),d&&s.set("utm_term",d);const h=s.toString();return`https://app.rafterhome.com${e}${h?`?${h}`:""}`}const Th=T.createContext({});function Rh(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const Cc=T.createContext(null),Ph=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class XP extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function JP({children:t,isPresent:e}){const n=T.useId(),s=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=T.useContext(Ph);return T.useInsertionEffect(()=>{const{width:c,height:f,top:d,left:h}=o.current;if(e||!s.current||!c||!f)return;s.current.dataset.motionPopId=n;
vendor: 101,206 bytes, lines 272-280
272const m=document.createElement("style");return l&&(m.nonce=l),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
273          [data-motion-pop-id="${n}"] {
274            position: absolute !important;
275            width: ${c}px !important;
276            height: ${f}px !important;
277            top: ${d}px !important;
278            left: ${h}px !important;
279          }
280        `),()=>{document.head.removeChild(m)}},[e]),p.jsx(XP,{isPresent:e,childRef:s,sizeRef:o,children:T.cloneElement(t,{ref:s})})}const ZP=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:l,mode:c})=>{const f=Rh(eA),d=T.useId(),h=T.useCallback(y=>{f.set(y,!0);for(const x of f.values())if(!x)return;s&&s()},[f,s]),m=T.useMemo(()=>({id:d,initial:e,isPresent:n,custom:o,onExitComplete:h,register:y=>(f.set(y,!1),()=>f.delete(y))}),l?[Math.random(),h]:[n,h]);return T.useMemo(()=>{f.forEach((y,x)=>f.set(x,!1))},[n]),T.useEffect(()=>{!n&&!f.size&&s&&s()},[n]),c==="popLayout"&&(t=p.jsx(JP,{isPresent:n,children:t})),p.jsx(Cc.Provider,{value:m,children:t})};function eA(){return new Map}function Zw(t=!0){const e=T.useContext(Cc);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=e,l=T.useId();T.useEffect(()=>{t&&o(l)},[t]);const c=T.useCallback(()=>t&&s&&s(l),[l,s,t]);return!n&&s?[!1,c]:[!0]}const zl=t=>t.key||"";function R0(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const Ah=typeof window<"u",e1=Ah?T.useLayoutEffect:T.useEffect,Tc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:l="sync",propagate:c=!1})=>{const[f,d]=Zw(c),h=T.useMemo(()=>R0(t),[t]),m=c&&!f?[]:h.map(zl),y=T.useRef(!0),x=T.useRef(h),w=Rh(()=>new Map),[S,_]=T.useState(h),[k,E]=T.useState(h);e1(()=>{y.current=!1,x.current=h;for(let A=0;A<k.length;A++){const D=zl(k[A]);m.includes(D)?w.delete(D):w.get(D)!==!0&&w.set(D,!1)}},[k,m.length,m.join("-")]);const P=[];if(h!==S){let A=[...h];for(let D=0;D<k.length;D++){const V=k[D],X=zl(V);m.includes(X)||(A.splice(D,0,V),P.push(V))}l==="wait"&&P.length&&(A=P),E(R0(A)),_(h);return}const{forceRender:C}=T.useContext(Th);return p.jsx(p.Fragment,{children:k.map(A=>{const D=zl(A),V=c&&!f?!1:h===k||m.includes(D),X=()=>{if(w.has(D))w.set(D,!0);else return;let B=!0;w.forEach(G=>{G||(B=!1)}),B&&(C==null||C(),E(x.current),c&&(d==null||d()),s&&s())};return p.jsx(ZP,{isPresent:V,initial:!y.current||n?void 0:!1,custom:V?void 0:e,presenceAffectsLayout:o,mode:l,onExitComplete:V?void 0:X,children:A},D)})})},en=t=>t;let t1=en;function jh(t){let e;return()=>(e===void 0&&(e=t()),e)}const Fi=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},ir=t=>t*1e3,or=t=>t/1e3,tA={useManualTiming:!1};function nA(t){let e=new Set,n=new Set,s=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(h){l.has(h)&&(d.schedule(h),t()),h(c)}const d={schedule:(h,m=!1,y=!1)=>{const w=y&&s?e:n;return m&&l.add(h),w.has(h)||w.add(h),h},cancel:h=>{n.delete(h),l.delete(h)},process:h=>{if(c=h,s){o=!0;return}s=!0,[e,n]=[n,e],e.forEach(f),e.clear(),s=!1,o&&(o=!1,d.process(h))}};return d}const Ul=["read","resolveKeyframes","update","preRender","render","postRender"],rA=40;function n1(t,e){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=Ul.reduce((E,P)=>(E[P]=nA(l),E),{}),{read:f,resolveKeyframes:d,update:h,preRender:m,render:y,postRender:x}=c,w=()=>{const E=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(E-o.timestamp,rA),1),o.timestamp=E,o.isProcessing=!0,f.process(o),d.process(o),h.process(o),m.process(o),y.process(o),x.process(o),o.isProcessing=!1,n&&e&&(s=!1,t(w))},S=()=>{n=!0,s=!0,o.isProcessing||t(w)};return{schedule:Ul.reduce((E,P)=>{const C=c[P];return E[P]=(A,D=!1,V=!1)=>(n||S(),C.schedule(A,D,V)),E},{}),cancel:E=>{for(let P=0;P<Ul.length;P++)c[Ul[P]].cancel(E)},state:o,steps:c}}const{schedule:Ge,cancel:Qr,state:Ct,steps:Vd}=n1(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0),r1=T.createContext({strict:!1}),P0={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"]},Li={};for(const t in P0)Li[t]={isEnabled:e=>P0[t].some(n=>!!e[n])};function sA(t){for(const e in t)Li[e]={...Li[e],...t[e]}}const iA=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 uc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iA.has(t)}let s1=t=>!uc(t);function oA(t){t&&(s1=e=>e.startsWith("on")?!uc(e):t(e))}try{oA(require("@emotion/is-prop-valid").default)}catch{}function aA(t,e,n){const s={};for(const o in t)o==="values"&&typeof t.values=="object"||(s1(o)||n===!0&&uc(o)||!e&&!uc(o)||t.draggable&&o.startsWith("onDrag"))&&(s[o]=t[o]);return s}function lA(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,o)=>o==="create"?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}const Rc=T.createContext({});function na(t){return typeof t=="string"||Array.isArray(t)}function Pc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Nh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oh=["initial",...Nh];function Ac(t){return Pc(t.animate)||Oh.some(e=>na(t[e]))}function i1(t){return!!(Ac(t)||t.variants)}function cA(t,e){if(Ac(t)){const{initial:n,animate:s}=t;return{initial:n===!1||na(n)?n:void 0,animate:na(s)?s:void 0}}return t.inherit!==!1?e:{}}function uA(t){const{initial:e,animate:n}=cA(t,T.useContext(Rc));return T.useMemo(()=>({initial:e,animate:n}),[A0(e),A0(n)])}function A0(t){return Array.isArray(t)?t.join(" "):t}const dA=Symbol.for("motionComponentSymbol");function pi(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function fA(t,e,n){return T.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):pi(n)&&(n.current=s))},[e])}const Fh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hA="framerAppearId",o1="data-"+Fh(hA),{schedule:Lh}=n1(queueMicrotask,!1),a1=T.createContext({});function pA(t,e,n,s,o){var l,c;const{visualElement:f}=T.useContext(Rc),d=T.useContext(r1),h=T.useContext(Cc),m=T.useContext(Ph).reducedMotion,y=T.useRef(null);s=s||d.renderer,!y.current&&s&&(y.current=s(t,{visualState:e,parent:f,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const x=y.current,w=T.useContext(a1);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&mA(y.current,n,o,w);const S=T.useRef(!1);T.useInsertionEffect(()=>{x&&S.current&&x.update(n,h)});const _=n[o1],k=T.useRef(!!_&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,_))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,_)));return e1(()=>{x&&(S.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),Lh.render(x.render),k.current&&x.animationState&&x.animationState.animateChanges())}),T.useEffect(()=>{x&&(!k.current&&x.animationState&&x.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,_)}),k.current=!1))}),x}function mA(t,e,n,s){const{layoutId:o,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:l1(t.parent)),t.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||f&&pi(f),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:h})}function l1(t){if(t)return t.options.allowProjection!==!1?t.projection:l1(t.parent)}function gA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:o}){var l,c;t&&sA(t);function f(h,m){let y;const x={...T.useContext(Ph),...h,layoutId:yA(h)},{isStatic:w}=x,S=uA(h),_=s(h,w);if(!w&&Ah){vA();const k=xA(x);y=k.MeasureLayout,S.visualElement=pA(o,_,x,e,k.ProjectionNode)}return p.jsxs(Rc.Provider,{value:S,children:[y&&S.visualElement?p.jsx(y,{visualElement:S.visualElement,...x}):null,n(o,h,fA(_,S.visualElement,m),_,w,S.visualElement)]})}f.displayName=`motion.${typeof o=="string"?o:`create(${(c=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&c!==void 0?c:""})`}`;const d=T.forwardRef(f);return d[dA]=o,d}function yA({layoutId:t}){const e=T.useContext(Th).id;return e&&t!==void 0?e+"-"+t:t}function vA(t,e){T.useContext(r1).strict}function xA(t){const{drag:e,layout:n}=Li;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const wA=["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 Dh(t){return typeof t!="string"||t.includes("-")?!1:!!(wA.indexOf(t)>-1||/[A-Z]/u.test(t))}function j0(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Mh(t,e,n,s){if(typeof e=="function"){const[o,l]=j0(s);e=e(n!==void 0?n:t.custom,o,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,l]=j0(s);e=e(n!==void 0?n:t.custom,o,l)}return e}const Ff=t=>Array.isArray(t),bA=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),SA=t=>Ff(t)?t[t.length-1]||0:t,Dt=t=>!!(t&&t.getVelocity);function ec(t){const e=Dt(t)?t.get():t;return bA(e)?e.toValue():e}function _A({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,o,l){const c={latestValues:kA(s,o,l,t),renderState:e()};return n&&(c.onMount=f=>n({props:s,current:f,...c}),c.onUpdate=f=>n(f)),c}const c1=t=>(e,n)=>{const s=T.useContext(Rc),o=T.useContext(Cc),l=()=>_A(t,e,s,o);return n?l():Rh(l)};function kA(t,e,n,s){const o={},l=s(t,{});for(const x in l)o[x]=ec(l[x]);let{initial:c,animate:f}=t;const d=Ac(t),h=i1(t);e&&h&&!d&&t.inherit!==!1&&(c===void 0&&(c=e.initial),f===void 0&&(f=e.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const y=m?f:c;if(y&&typeof y!="boolean"&&!Pc(y)){const x=Array.isArray(y)?y:[y];for(let w=0;w<x.length;w++){const S=Mh(t,x[w]);if(S){const{transitionEnd:_,transition:k,...E}=S;for(const P in E){let C=E[P];if(Array.isArray(C)){const A=m?C.length-1:0;C=C[A]}C!==null&&(o[P]=C)}for(const P in _)o[P]=_[P]}}}return o}const Vi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zs=new Set(Vi),u1=t=>e=>typeof e=="string"&&e.startsWith(t),d1=u1("--"),EA=u1("var(--"),Ih=t=>EA(t)?CA.test(t.split("/*")[0].trim()):!1,CA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,f1=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ar=(t,e,n)=>n>e?e:n<t?t:n,$i={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ra={...$i,transform:t=>ar(0,1,t)},Vl={...$i,default:1},xa=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Or=xa("deg"),Vn=xa("%"),we=xa("px"),TA=xa("vh"),RA=xa("vw"),N0={...Vn,parse:t=>Vn.parse(t)/100,transform:t=>Vn.transform(t*100)},PA={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},AA={rotate:Or,rotateX:Or,rotateY:Or,rotateZ:Or,scale:Vl,scaleX:Vl,scaleY:Vl,scaleZ:Vl,skew:Or,skewX:Or,skewY:Or,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:ra,originX:N0,originY:N0,originZ:we},O0={...$i,transform:Math.round},Bh={...PA,...AA,zIndex:O0,size:we,fillOpacity:ra,strokeOpacity:ra,numOctaves:O0},jA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NA=Vi.length;function OA(t,e,n){let s="",o=!0;for(let l=0;l<NA;l++){const c=Vi[l],f=t[c];if(f===void 0)continue;let d=!0;if(typeof f=="number"?d=f===(c.startsWith("scale")?1:0):d=parseFloat(f)===0,!d||n){const h=f1(f,Bh[c]);if(!d){o=!1;const m=jA[c]||c;s+=`${m}(${h}) `}n&&(e[c]=h)}}return s=s.trim(),n?s=n(e,o?"":s):o&&(s="none"),s}function zh(t,e,n){const{style:s,vars:o,transformOrigin:l}=t;let c=!1,f=!1;for(const d in e){const h=e[d];if(zs.has(d)){c=!0;continue}else if(d1(d)){o[d]=h;continue}else{const m=f1(h,Bh[d]);d.startsWith("origin")?(f=!0,l[d]=m):s[d]=m}}if(e.transform||(c||n?s.transform=OA(e,t.transform,n):s.transform&&(s.transform="none")),f){const{originX:d="50%",originY:h="50%",originZ:m=0}=l;s.transformOrigin=`${d} ${h} ${m}`}}const FA={offset:"stroke-dashoffset",array:"stroke-dasharray"},LA={offset:"strokeDashoffset",array:"strokeDasharray"};function DA(t,e,n=1,s=0,o=!0){t.pathLength=1;const l=o?FA:LA;t[l.offset]=we.transform(-s);const c=we.transform(e),f=we.transform(n);t[l.array]=`${c} ${f}`}function F0(t,e,n){return typeof t=="string"?t:we.transform(e+n*t)}function MA(t,e,n){const s=F0(e,t.x,t.width),o=F0(n,t.y,t.height);return`${s} ${o}`}function Uh(t,{attrX:e,attrY:n,attrScale:s,originX:o,originY:l,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...h},m,y){if(zh(t,h,y),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:x,style:w,dimensions:S}=t;x.transform&&(S&&(w.transform=x.transform),delete x.transform),S&&(o!==void 0||l!==void 0||w.transform)&&(w.transformOrigin=MA(S,o!==void 0?o:.5,l!==void 0?l:.5)),e!==void 0&&(x.x=e),n!==void 0&&(x.y=n),s!==void 0&&(x.scale=s),c!==void 0&&DA(x,c,f,d,!1)}const Vh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),h1=()=>({...Vh(),attrs:{}}),$h=t=>typeof t=="string"&&t.toLowerCase()==="svg";function p1(t,{style:e,vars:n},s,o){Object.assign(t.style,e,o&&o.getProjectionStyles(s));for(const l in n)t.style.setProperty(l,n[l])}const m1=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 g1(t,e,n,s){p1(t,e,void 0,s);for(const o in e.attrs)t.setAttribute(m1.has(o)?o:Fh(o),e.attrs[o])}const dc={};function IA(t){Object.assign(dc,t)}function y1(t,{layout:e,layoutId:n}){return zs.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!dc[t]||t==="opacity")}function Hh(t,e,n){var s;const{style:o}=t,l={};for(const c in o)(Dt(o[c])||e.style&&Dt(e.style[c])||y1(c,t)||((s=n==null?void 0:n.getValue(c))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(l[c]=o[c]);return l}function v1(t,e,n){const s=Hh(t,e,n);for(const o in t)if(Dt(t[o])||Dt(e[o])){const l=Vi.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[l]=t[o]}return s}function BA(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 L0=["x","y","width","height","cx","cy","r"],zA={useVisualState:c1({scrapeMotionValuesFromProps:v1,createRenderState:h1,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:o})=>{if(!n)return;let l=!!t.drag;if(!l){for(const f in o)if(zs.has(f)){l=!0;break}}if(!l)return;let c=!e;if(e)for(let f=0;f<L0.length;f++){const d=L0[f];t[d]!==e[d]&&(c=!0)}c&&Ge.read(()=>{BA(n,s),Ge.render(()=>{Uh(s,o,$h(n.tagName),t.transformTemplate),g1(n,s)})})}})},UA={useVisualState:c1({scrapeMotionValuesFromProps:Hh,createRenderState:Vh})};function x1(t,e,n){for(const s in e)!Dt(e[s])&&!y1(s,n)&&(t[s]=e[s])}function VA({transformTemplate:t},e){return T.useMemo(()=>{const n=Vh();return zh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function $A(t,e){const n=t.style||{},s={};return x1(s,n,t),Object.assign(s,VA(t,e)),s}function HA(t,e){const n={},s=$A(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function WA(t,e,n,s){const o=T.useMemo(()=>{const l=h1();return Uh(l,e,$h(s),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};x1(l,t.style,t),o.style={...l,...o.style}}return o}function qA(t=!1){return(n,s,o,{latestValues:l},c)=>{const d=(Dh(n)?WA:HA)(s,l,c,n),h=aA(s,typeof n=="string",t),m=n!==T.Fragment?{...h,...d,ref:o}:{},{children:y}=s,x=T.useMemo(()=>Dt(y)?y.get():y,[y]);return T.createElement(n,{...m,children:x})}}function KA(t,e){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...Dh(s)?zA:UA,preloadedFeatures:t,useRender:qA(o),createVisualElement:e,Component:s};return gA(c)}}function w1(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function jc(t,e,n){const s=t.getProps();return Mh(s,e,n!==void 0?n:s.custom,t)}const QA=jh(()=>window.ScrollTimeline!==void 0);class GA{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,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(o=>{if(QA()&&o.attachTimeline)return o.attachTimeline(e);if(typeof n=="function")return n(o)});return()=>{s.forEach((o,l)=>{o&&o(),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 n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class YA extends GA{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Wh(t,e){return t?t[e]||t.default||t:void 0}const Lf=2e4;function b1(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Lf;)e+=n,s=t.next(e);return e>=Lf?1/0:e}function qh(t){return typeof t=="function"}function D0(t,e){t.timeline=e,t.onfinish=null}const Kh=t=>Array.isArray(t)&&typeof t[0]=="number",XA={linearEasing:void 0};function JA(t,e){const n=jh(t);return()=>{var s;return(s=XA[e])!==null&&s!==void 0?s:n()}}const fc=JA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),S1=(t,e,n=10)=>{let s="";const o=Math.max(Math.round(e/n),2);for(let l=0;l<o;l++)s+=t(Fi(0,o-1,l))+", ";return`linear(${s.substring(0,s.length-2)})`};function _1(t){return!!(typeof t=="function"&&fc()||!t||typeof t=="string"&&(t in Df||fc())||Kh(t)||Array.isArray(t)&&t.every(_1))}const zo=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Df={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zo([0,.65,.55,1]),circOut:zo([.55,0,1,.45]),backIn:zo([.31,.01,.66,-.59]),backOut:zo([.33,1.53,.69,.99])};function k1(t,e){if(t)return typeof t=="function"&&fc()?S1(t,e):Kh(t)?zo(t):Array.isArray(t)?t.map(n=>k1(n,e)||Df.easeOut):Df[t]}const Tn={x:!1,y:!1};function E1(){return Tn.x||Tn.y}function ZA(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let o=document;const l=(s=void 0)!==null&&s!==void 0?s:o.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function C1(t,e){const n=ZA(t),s=new AbortController,o={passive:!0,...e,signal:s.signal};return[n,o,()=>s.abort()]}function M0(t){return e=>{e.pointerType==="touch"||E1()||t(e)}}function e4(t,e,n={}){const[s,o,l]=C1(t,n),c=M0(f=>{const{target:d}=f,h=e(f);if(typeof h!="function"||!d)return;const m=M0(y=>{h(y),d.removeEventListener("pointerleave",m)});d.addEventListener("pointerleave",m,o)});return s.forEach(f=>{f.addEventListener("pointerenter",c,o)}),l}const T1=(t,e)=>e?t===e?!0:T1(t,e.parentElement):!1,Qh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,t4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function n4(t){return t4.has(t.tagName)||t.tabIndex!==-1}const Uo=new WeakSet;function I0(t){return e=>{e.key==="Enter"&&t(e)}}function $d(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const r4=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=I0(()=>{if(Uo.has(n))return;$d(n,"down");const o=I0(()=>{$d(n,"up")}),l=()=>$d(n,"cancel");n.addEventListener("keyup",o,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function B0(t){return Qh(t)&&!E1()}function s4(t,e,n={}){const[s,o,l]=C1(t,n),c=f=>{const d=f.currentTarget;if(!B0(f)||Uo.has(d))return;Uo.add(d);const h=e(f),m=(w,S)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),!(!B0(w)||!Uo.has(d))&&(Uo.delete(d),typeof h=="function"&&h(w,{success:S}))},y=w=>{m(w,n.useGlobalTarget||T1(d,w.target))},x=w=>{m(w,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",x,o)};return s.forEach(f=>{!n4(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(n.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),f.addEventListener("focus",h=>r4(h,o),o)}),l}function i4(t){return t==="x"||t==="y"?Tn[t]?null:(Tn[t]=!0,()=>{Tn[t]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}const R1=new Set(["width","height","top","left","right","bottom",...Vi]);let tc;function o4(){tc=void 0}const $n={now:()=>(tc===void 0&&$n.set(Ct.isProcessing||tA.useManualTiming?Ct.timestamp:performance.now()),tc),set:t=>{tc=t,queueMicrotask(o4)}};function Gh(t,e){t.indexOf(e)===-1&&t.push(e)}function Yh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Xh{constructor(){this.subscriptions=[]}add(e){return Gh(this.subscriptions,e),()=>Yh(this.subscriptions,e)}notify(e,n,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,s);else for(let l=0;l<o;l++){const c=this.subscriptions[l];c&&c(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function P1(t,e){return e?t*(1e3/e):0}const z0=30,a4=t=>!isNaN(parseFloat(t));class l4{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const l=$n.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=$n.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=a4(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Xh);const s=this.events[e].add(n);return e==="change"?()=>{s(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>z0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,z0);return P1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 sa(t,e){return new l4(t,e)}function c4(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,sa(n))}function u4(t,e){const n=jc(t,e);let{transitionEnd:s={},transition:o={},...l}=n||{};l={...l,...s};for(const c in l){const f=SA(l[c]);c4(t,c,f)}}function d4(t){return!!(Dt(t)&&t.add)}function Mf(t,e){const n=t.getValue("willChange");if(d4(n))return n.add(e)}function A1(t){return t.props[o1]}const j1=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,f4=1e-7,h4=12;function p4(t,e,n,s,o){let l,c,f=0;do c=e+(n-e)/2,l=j1(c,s,o)-t,l>0?n=c:e=c;while(Math.abs(l)>f4&&++f<h4);return c}function wa(t,e,n,s){if(t===e&&n===s)return en;const o=l=>p4(l,0,1,t,n);return l=>l===0||l===1?l:j1(o(l),e,s)}const N1=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,O1=t=>e=>1-t(1-e),F1=wa(.33,1.53,.69,.99),Jh=O1(F1),L1=N1(Jh),D1=t=>(t*=2)<1?.5*Jh(t):.5*(2-Math.pow(2,-10*(t-1))),Zh=t=>1-Math.sin(Math.acos(t)),M1=O1(Zh),I1=N1(Zh),B1=t=>/^0[^.\s]+$/u.test(t);function m4(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||B1(t):!0}const Wo=t=>Math.round(t*1e5)/1e5,ep=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function g4(t){return t==null}const y4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tp=(t,e)=>n=>!!(typeof n=="string"&&y4.test(n)&&n.startsWith(t)||e&&!g4(n)&&Object.prototype.hasOwnProperty.call(n,e)),z1=(t,e,n)=>s=>{if(typeof s!="string")return s;const[o,l,c,f]=s.match(ep);return{[t]:parseFloat(o),[e]:parseFloat(l),[n]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},v4=t=>ar(0,255,t),Hd={...$i,transform:t=>Math.round(v4(t))},ws={test:tp("rgb","red"),parse:z1("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Hd.transform(t)+", "+Hd.transform(e)+", "+Hd.transform(n)+", "+Wo(ra.transform(s))+")"};function x4(t){let e="",n="",s="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,s+=s,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const If={test:tp("#"),parse:x4,transform:ws.transform},mi={test:tp("hsl","hue"),parse:z1("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Vn.transform(Wo(e))+", "+Vn.transform(Wo(n))+", "+Wo(ra.transform(s))+")"},Lt={test:t=>ws.test(t)||If.test(t)||mi.test(t),parse:t=>ws.test(t)?ws.parse(t):mi.test(t)?mi.parse(t):If.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ws.transform(t):mi.transform(t)},w4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function b4(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ep))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(w4))===null||n===void 0?void 0:n.length)||0)>0}const U1="number",V1="color",S4="var",_4="var(",U0="${}",k4=/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 ia(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},o=[];let l=0;const f=e.replace(k4,d=>(Lt.test(d)?(s.color.push(l),o.push(V1),n.push(Lt.parse(d))):d.startsWith(_4)?(s.var.push(l),o.push(S4),n.push(d)):(s.number.push(l),o.push(U1),n.push(parseFloat(d))),++l,U0)).split(U0);return{values:n,split:f,indexes:s,types:o}}function $1(t){return ia(t).values}function H1(t){const{split:e,types:n}=ia(t),s=e.length;return o=>{let l="";for(let c=0;c<s;c++)if(l+=e[c],o[c]!==void 0){const f=n[c];f===U1?l+=Wo(o[c]):f===V1?l+=Lt.transform(o[c]):l+=o[c]}return l}}const E4=t=>typeof t=="number"?0:t;function C4(t){const e=$1(t);return H1(t)(e.map(E4))}const Gr={test:b4,parse:$1,createTransformer:H1,getAnimatableNone:C4},T4=new Set(["brightness","contrast","saturate","opacity"]);function R4(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ep)||[];if(!s)return t;const o=n.replace(s,"");let l=T4.has(e)?1:0;return s!==n&&(l*=100),e+"("+l+o+")"}const P4=/\b([a-z-]*)\(.*?\)/gu,Bf={...Gr,getAnimatableNone:t=>{const e=t.match(P4);return e?e.map(R4).join(" "):t}},A4={...Bh,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:Bf,WebkitFilter:Bf},np=t=>A4[t];function W1(t,e){let n=np(t);return n!==Bf&&(n=Gr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const j4=new Set(["auto","none","0"]);function N4(t,e,n){let s=0,o;for(;s<t.length&&!o;){const l=t[s];typeof l=="string"&&!j4.has(l)&&ia(l).values.length&&(o=t[s]),s++}if(o&&n)for(const l of e)t[l]=W1(n,o)}const V0=t=>t===$i||t===we,$0=(t,e)=>parseFloat(t.split(", ")[e]),H0=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return $0(o[1],e);{const l=s.match(/^matrix\((.+)\)$/u);return l?$0(l[1],t):0}},O4=new Set(["x","y","z"]),F4=Vi.filter(t=>!O4.has(t));function L4(t){const e=[];return F4.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Di={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:H0(4,13),y:H0(5,14)};Di.translateX=Di.x;Di.translateY=Di.y;const js=new Set;let zf=!1,Uf=!1;function q1(){if(Uf){const t=Array.from(js).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const o=L4(s);o.length&&(n.set(s,o),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const o=n.get(s);o&&o.forEach(([l,c])=>{var f;(f=s.getValue(l))===null||f===void 0||f.set(c)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Uf=!1,zf=!1,js.forEach(t=>t.complete()),js.clear()}function K1(){js.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Uf=!0)})}function D4(){K1(),q1()}class rp{constructor(e,n,s,o,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=o,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(js.add(this),zf||(zf=!0,Ge.read(K1),Ge.resolveKeyframes(q1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:o}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const c=o==null?void 0:o.get(),f=e[e.length-1];if(c!==void 0)e[0]=c;else if(s&&n){const d=s.readValue(n,f);d!=null&&(e[0]=d)}e[0]===void 0&&(e[0]=f),o&&c===void 0&&o.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),js.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,js.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Q1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),M4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function I4(t){const e=M4.exec(t);if(!e)return[,];const[,n,s,o]=e;return[`--${n??s}`,o]}function G1(t,e,n=1){const[s,o]=I4(t);if(!s)return;const l=window.getComputedStyle(e).getPropertyValue(s);if(l){const c=l.trim();return Q1(c)?parseFloat(c):c}return Ih(o)?G1(o,e,n+1):o}const Y1=t=>e=>e.test(t),B4={test:t=>t==="auto",parse:t=>t},X1=[$i,we,Vn,Or,RA,TA,B4],W0=t=>X1.find(Y1(t));class J1 extends rp{constructor(e,n,s,o,l){super(e,n,s,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let h=e[d];if(typeof h=="string"&&(h=h.trim(),Ih(h))){const m=G1(h,n.current);m!==void 0&&(e[d]=m),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!R1.has(s)||e.length!==2)return;const[o,l]=e,c=W0(o),f=W0(l);if(c!==f)if(V0(c)&&V0(f))for(let d=0;d<e.length;d++){const h=e[d];typeof h=="string"&&(e[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let o=0;o<e.length;o++)m4(e[o])&&s.push(o);s.length&&N4(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Di[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(s,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(s);l&&l.jump(this.measuredOrigin,!1);const c=o.length-1,f=o[c];o[c]=Di[s](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([d,h])=>{n.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const q0=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Gr.test(t)||t==="0")&&!t.startsWith("url("));function z4(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function U4(t,e,n,s){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],c=q0(o,e),f=q0(l,e);return!c||!f?!1:z4(t)||(n==="spring"||qh(n))&&s}const V4=t=>t!==null;function Nc(t,{repeat:e,repeatType:n="loop"},s){const o=t.filter(V4),l=e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||s===void 0?o[l]:s}const $4=40;class Z1{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:c="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$n.now(),this.options={autoplay:e,delay:n,type:s,repeat:o,repeatDelay:l,repeatType:c,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&D4(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$n.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:l,delay:c,onComplete:f,onUpdate:d,isGenerator:h}=this.options;if(!h&&!U4(e,s,o,l))if(c)this.options.duration=0;else{d&&d(Nc(e,this.options,n)),f&&f(),this.resolveFinishedPromise();return}const m=this.initPlayback(e,n);m!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ze=(t,e,n)=>t+(e-t)*n;function Wd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function H4({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let o=0,l=0,c=0;if(!e)o=l=c=n;else{const f=n<.5?n*(1+e):n+e-n*e,d=2*n-f;o=Wd(d,f,t+1/3),l=Wd(d,f,t),c=Wd(d,f,t-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function hc(t,e){return n=>n>0?e:t}const qd=(t,e,n)=>{const s=t*t,o=n*(e*e-s)+s;return o<0?0:Math.sqrt(o)},W4=[If,ws,mi],q4=t=>W4.find(e=>e.test(t));function K0(t){const e=q4(t);if(!e)return!1;let n=e.parse(t);return e===mi&&(n=H4(n)),n}const Q0=(t,e)=>{const n=K0(t),s=K0(e);if(!n||!s)return hc(t,e);const o={...n};return l=>(o.red=qd(n.red,s.red,l),o.green=qd(n.green,s.green,l),o.blue=qd(n.blue,s.blue,l),o.alpha=Ze(n.alpha,s.alpha,l),ws.transform(o))},K4=(t,e)=>n=>e(t(n)),ba=(...t)=>t.reduce(K4),Vf=new Set(["none","hidden"]);function Q4(t,e){return Vf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function G4(t,e){return n=>Ze(t,e,n)}function sp(t){return typeof t=="number"?G4:typeof t=="string"?Ih(t)?hc:Lt.test(t)?Q0:J4:Array.isArray(t)?eb:typeof t=="object"?Lt.test(t)?Q0:Y4:hc}function eb(t,e){const n=[...t],s=n.length,o=t.map((l,c)=>sp(l)(l,e[c]));return l=>{for(let c=0;c<s;c++)n[c]=o[c](l);return n}}function Y4(t,e){const n={...t,...e},s={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(s[o]=sp(t[o])(t[o],e[o]));return o=>{for(const l in s)n[l]=s[l](o);return n}}function X4(t,e){var n;const s=[],o={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const c=e.types[l],f=t.indexes[c][o[c]],d=(n=t.values[f])!==null&&n!==void 0?n:0;s[l]=d,o[c]++}return s}const J4=(t,e)=>{const n=Gr.createTransformer(e),s=ia(t),o=ia(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Vf.has(t)&&!o.values.length||Vf.has(e)&&!s.values.length?Q4(t,e):ba(eb(X4(s,o),o.values),n):hc(t,e)};function tb(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Ze(t,e,n):sp(t)(t,e)}const Z4=5;function nb(t,e,n){const s=Math.max(e-Z4,0);return P1(n-t(s),e-s)}const rt={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},Kd=.001;function ej({duration:t=rt.duration,bounce:e=rt.bounce,velocity:n=rt.velocity,mass:s=rt.mass}){let o,l,c=1-e;c=ar(rt.minDamping,rt.maxDamping,c),t=ar(rt.minDuration,rt.maxDuration,or(t)),c<1?(o=h=>{const m=h*c,y=m*t,x=m-n,w=$f(h,c),S=Math.exp(-y);return Kd-x/w*S},l=h=>{const y=h*c*t,x=y*n+n,w=Math.pow(c,2)*Math.pow(h,2)*t,S=Math.exp(-y),_=$f(Math.pow(h,2),c);return(-o(h)+Kd>0?-1:1)*((x-w)*S)/_}):(o=h=>{const m=Math.exp(-h*t),y=(h-n)*t+1;return-Kd+m*y},l=h=>{const m=Math.exp(-h*t),y=(n-h)*(t*t);return m*y});const f=5/t,d=nj(o,l,f);if(t=ir(t),isNaN(d))return{stiffness:rt.stiffness,damping:rt.damping,duration:t};{const h=Math.pow(d,2)*s;return{stiffness:h,damping:c*2*Math.sqrt(s*h),duration:t}}}const tj=12;function nj(t,e,n){let s=n;for(let o=1;o<tj;o++)s=s-t(s)/e(s);return s}function $f(t,e){return t*Math.sqrt(1-e*e)}const rj=["duration","bounce"],sj=["stiffness","damping","mass"];function G0(t,e){return e.some(n=>t[n]!==void 0)}function ij(t){let e={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...t};if(!G0(t,sj)&&G0(t,rj))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,l=2*ar(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:rt.mass,stiffness:o,damping:l}}else{const n=ej(t);e={...e,...n,mass:rt.mass},e.isResolvedFromDuration=!0}return e}function rb(t=rt.visualDuration,e=rt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:o}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],f={done:!1,value:l},{stiffness:d,damping:h,mass:m,duration:y,velocity:x,isResolvedFromDuration:w}=ij({...n,velocity:-or(n.velocity||0)}),S=x||0,_=h/(2*Math.sqrt(d*m)),k=c-l,E=or(Math.sqrt(d/m)),P=Math.abs(k)<5;s||(s=P?rt.restSpeed.granular:rt.restSpeed.default),o||(o=P?rt.restDelta.granular:rt.restDelta.default);let C;if(_<1){const D=$f(E,_);C=V=>{const X=Math.exp(-_*E*V);return c-X*((S+_*E*k)/D*Math.sin(D*V)+k*Math.cos(D*V))}}else if(_===1)C=D=>c-Math.exp(-E*D)*(k+(S+E*k)*D);else{const D=E*Math.sqrt(_*_-1);C=V=>{const X=Math.exp(-_*E*V),B=Math.min(D*V,300);return c-X*((S+_*E*k)*Math.sinh(B)+D*k*Math.cosh(B))/D}}const A={calculatedDuration:w&&y||null,next:D=>{const V=C(D);if(w)f.done=D>=y;else{let X=0;_<1&&(X=D===0?ir(S):nb(C,D,V));const B=Math.abs(X)<=s,G=Math.abs(c-V)<=o;f.done=B&&G}return f.value=f.done?c:V,f},toString:()=>{const D=Math.min(b1(A),Lf),V=S1(X=>A.next(D*X).value,D,30);return D+"ms "+V}};return A}function Y0({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:c,min:f,max:d,restDelta:h=.5,restSpeed:m}){const y=t[0],x={done:!1,value:y},w=B=>f!==void 0&&B<f||d!==void 0&&B>d,S=B=>f===void 0?d:d===void 0||Math.abs(f-B)<Math.abs(d-B)?f:d;let _=n*e;const k=y+_,E=c===void 0?k:c(k);E!==k&&(_=E-y);const P=B=>-_*Math.exp(-B/s),C=B=>E+P(B),A=B=>{const G=P(B),ee=C(B);x.done=Math.abs(G)<=h,x.value=x.done?E:ee};let D,V;const X=B=>{w(x.value)&&(D=B,V=rb({keyframes:[x.value,S(x.value)],velocity:nb(C,B,x.value),damping:o,stiffness:l,restDelta:h,restSpeed:m}))};return X(0),{calculatedDuration:null,next:B=>{let G=!1;return!V&&D===void 0&&(G=!0,A(B),X(B)),D!==void 0&&B>=D?V.next(B-D):(!G&&A(B),x)}}}const oj=wa(.42,0,1,1),aj=wa(0,0,.58,1),sb=wa(.42,0,.58,1),lj=t=>Array.isArray(t)&&typeof t[0]!="number",cj={linear:en,easeIn:oj,easeInOut:sb,easeOut:aj,circIn:Zh,circInOut:I1,circOut:M1,backIn:Jh,backInOut:L1,backOut:F1,anticipate:D1},X0=t=>{if(Kh(t)){t1(t.length===4);const[e,n,s,o]=t;return wa(e,n,s,o)}else if(typeof t=="string")return cj[t];return t};function uj(t,e,n){const s=[],o=n||tb,l=t.length-1;for(let c=0;c<l;c++){let f=o(t[c],t[c+1]);if(e){const d=Array.isArray(e)?e[c]||en:e;f=ba(d,f)}s.push(f)}return s}function dj(t,e,{clamp:n=!0,ease:s,mixer:o}={}){const l=t.length;if(t1(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 f=uj(e,s,o),d=f.length,h=m=>{if(c&&m<t[0])return e[0];let y=0;if(d>1)for(;y<t.length-2&&!(m<t[y+1]);y++);const x=Fi(t[y],t[y+1],m);return f[y](x)};return n?m=>h(ar(t[0],t[l-1],m)):h}function fj(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const o=Fi(0,e,s);t.push(Ze(n,1,o))}}function hj(t){const e=[0];return fj(e,t.length-1),e}function pj(t,e){return t.map(n=>n*e)}function mj(t,e){return t.map(()=>e||sb).splice(0,t.length-1)}function pc({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const o=lj(s)?s.map(X0):X0(s),l={done:!1,value:e[0]},c=pj(n&&n.length===e.length?n:hj(e),t),f=dj(c,e,{ease:Array.isArray(o)?o:mj(e,o)});return{calculatedDuration:t,next:d=>(l.value=f(d),l.done=d>=t,l)}}const gj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ge.update(e,!0),stop:()=>Qr(e),now:()=>Ct.isProcessing?Ct.timestamp:$n.now()}},yj={decay:Y0,inertia:Y0,tween:pc,keyframes:pc,spring:rb},vj=t=>t/100;class ip extends Z1{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:d}=this.options;d&&d()};const{name:n,motionValue:s,element:o,keyframes:l}=this.options,c=(o==null?void 0:o.KeyframeResolver)||rp,f=(d,h)=>this.onKeyframesResolved(d,h);this.resolver=new c(l,f,n,s,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:l,velocity:c=0}=this.options,f=qh(n)?n:yj[n]||pc;let d,h;f!==pc&&typeof e[0]!="number"&&(d=ba(vj,tb(e[0],e[1])),e=[0,100]);const m=f({...this.options,keyframes:e});l==="mirror"&&(h=f({...this.options,keyframes:[...e].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=b1(m));const{calculatedDuration:y}=m,x=y+o,w=x*(s+1)-o;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:d,calculatedDuration:y,resolvedDuration:x,totalDuration:w}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:B}=this.options;return{done:!0,value:B[B.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:d,calculatedDuration:h,totalDuration:m,resolvedDuration:y}=s;if(this.startTime===null)return l.next(0);const{delay:x,repeat:w,repeatType:S,repeatDelay:_,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-m/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const E=this.currentTime-x*(this.speed>=0?1:-1),P=this.speed>=0?E<0:E>m;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let C=this.currentTime,A=l;if(w){const B=Math.min(this.currentTime,m)/y;let G=Math.floor(B),ee=B%1;!ee&&B>=1&&(ee=1),ee===1&&G--,G=Math.min(G,w+1),!!(G%2)&&(S==="reverse"?(ee=1-ee,_&&(ee-=_/y)):S==="mirror"&&(A=c)),C=ar(0,1,ee)*y}const D=P?{done:!1,value:d[0]}:A.next(C);f&&(D.value=f(D.value));let{done:V}=D;!P&&h!==null&&(V=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return X&&o!==void 0&&(D.value=Nc(d,this.options,o)),k&&k(D.value),X&&this.finish(),D}get duration(){const{resolved:e}=this;return e?or(e.calculatedDuration):0}get time(){return or(this.currentTime)}set time(e){e=ir(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 n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=or(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=gj,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=s??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 xj=new Set(["opacity","clipPath","filter","transform"]);function wj(t,e,n,{delay:s=0,duration:o=300,repeat:l=0,repeatType:c="loop",ease:f="easeInOut",times:d}={}){const h={[e]:n};d&&(h.offset=d);const m=k1(f,o);return Array.isArray(m)&&(h.easing=m),t.animate(h,{delay:s,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const bj=jh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mc=10,Sj=2e4;function _j(t){return qh(t.type)||t.type==="spring"||!_1(t.ease)}function kj(t,e){const n=new ip({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const o=[];let l=0;for(;!s.done&&l<Sj;)s=n.sample(l),o.push(s.value),l+=mc;return{times:void 0,keyframes:o,duration:l-mc,ease:"linear"}}const ib={anticipate:D1,backInOut:L1,circInOut:I1};function Ej(t){return t in ib}class J0 extends Z1{constructor(e){super(e);const{name:n,motionValue:s,element:o,keyframes:l}=this.options;this.resolver=new J1(l,(c,f)=>this.onKeyframesResolved(c,f),n,s,o),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:o,ease:l,type:c,motionValue:f,name:d,startTime:h}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof l=="string"&&fc()&&Ej(l)&&(l=ib[l]),_j(this.options)){const{onComplete:y,onUpdate:x,motionValue:w,element:S,..._}=this.options,k=kj(e,_);e=k.keyframes,e.length===1&&(e[1]=e[0]),s=k.duration,o=k.times,l=k.ease,c="keyframes"}const m=wj(f.owner.current,d,e,{...this.options,duration:s,times:o,ease:l});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(D0(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:y}=this.options;f.set(Nc(e,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:o,type:c,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return or(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return or(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=ir(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return en;const{animation:s}=n;D0(s,e)}return en}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.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:n,keyframes:s,duration:o,type:l,ease:c,times:f}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:y,element:x,...w}=this.options,S=new ip({...w,keyframes:s,duration:o,type:l,ease:c,times:f,isGenerator:!0}),_=ir(this.time);h.setWithVelocity(S.sample(_-mc).value,S.sample(_).value,mc)}const{onStop:d}=this.options;d&&d(),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:n,name:s,repeatDelay:o,repeatType:l,damping:c,type:f}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=n.owner.getProps();return bj()&&s&&xj.has(s)&&!d&&!h&&!o&&l!=="mirror"&&c!==0&&f!=="inertia"}}const Cj={type:"spring",stiffness:500,damping:25,restSpeed:10},Tj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Rj={type:"keyframes",duration:.8},Pj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Aj=(t,{keyframes:e})=>e.length>2?Rj:zs.has(t)?t.startsWith("scale")?Tj(e[1]):Cj:Pj;function jj({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:l,repeatType:c,repeatDelay:f,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const op=(t,e,n,s={},o,l)=>c=>{const f=Wh(s,t)||{},d=f.delay||s.delay||0;let{elapsed:h=0}=s;h=h-ir(d);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-h,onUpdate:x=>{e.set(x),f.onUpdate&&f.onUpdate(x)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:l?void 0:o};jj(f)||(m={...m,...Aj(t,m)}),m.duration&&(m.duration=ir(m.duration)),m.repeatDelay&&(m.repeatDelay=ir(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const x=Nc(m.keyframes,f);if(x!==void 0)return Ge.update(()=>{m.onUpdate(x),m.onComplete()}),new YA([])}return!l&&J0.supports(m)?new J0(m):new ip(m)};function Nj({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ob(t,e,{delay:n=0,transitionOverride:s,type:o}={}){var l;let{transition:c=t.getDefaultTransition(),transitionEnd:f,...d}=e;s&&(c=s);const h=[],m=o&&t.animationState&&t.animationState.getState()[o];for(const y in d){const x=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),w=d[y];if(w===void 0||m&&Nj(m,y))continue;const S={delay:n,...Wh(c||{},y)};let _=!1;if(window.MotionHandoffAnimation){const E=A1(t);if(E){const P=window.MotionHandoffAnimation(E,y,Ge);P!==null&&(S.startTime=P,_=!0)}}Mf(t,y),x.start(op(y,x,w,t.shouldReduceMotion&&R1.has(y)?{type:!1}:S,t,_));const k=x.animation;k&&h.push(k)}return f&&Promise.all(h).then(()=>{Ge.update(()=>{f&&u4(t,f)})}),h}function Hf(t,e,n={}){var s;const o=jc(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const c=o?()=>Promise.all(ob(t,o,n)):()=>Promise.resolve(),f=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:x}=l;return Oj(t,e,m+h,y,x,n)}:()=>Promise.resolve(),{when:d}=l;if(d){const[h,m]=d==="beforeChildren"?[c,f]:[f,c];return h().then(()=>m())}else return Promise.all([c(),f(n.delay)])}function Oj(t,e,n=0,s=0,o=1,l){const c=[],f=(t.variantChildren.size-1)*s,d=o===1?(h=0)=>h*s:(h=0)=>f-h*s;return Array.from(t.variantChildren).sort(Fj).forEach((h,m)=>{h.notify("AnimationStart",e),c.push(Hf(h,e,{...l,delay:n+d(m)}).then(()=>h.notify("AnimationComplete",e)))}),Promise.all(c)}function Fj(t,e){return t.sortNodePosition(e)}function Lj(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const o=e.map(l=>Hf(t,l,n));s=Promise.all(o)}else if(typeof e=="string")s=Hf(t,e,n);else{const o=typeof e=="function"?jc(t,e,n.custom):e;s=Promise.all(ob(t,o,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Dj=Oh.length;function ab(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ab(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Dj;n++){const s=Oh[n],o=t.props[s];(na(o)||o===!1)&&(e[s]=o)}return e}const Mj=[...Nh].reverse(),Ij=Nh.length;function Bj(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Lj(t,n,s)))}function zj(t){let e=Bj(t),n=Z0(),s=!0;const o=d=>(h,m)=>{var y;const x=jc(t,m,d==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(x){const{transition:w,transitionEnd:S,..._}=x;h={...h,..._,...S}}return h};function l(d){e=d(t)}function c(d){const{props:h}=t,m=ab(t.parent)||{},y=[],x=new Set;let w={},S=1/0;for(let k=0;k<Ij;k++){const E=Mj[k],P=n[E],C=h[E]!==void 0?h[E]:m[E],A=na(C),D=E===d?P.isActive:null;D===!1&&(S=k);let V=C===m[E]&&C!==h[E]&&A;if(V&&s&&t.manuallyAnimateOnMount&&(V=!1),P.protectedKeys={...w},!P.isActive&&D===null||!C&&!P.prevProp||Pc(C)||typeof C=="boolean")continue;const X=Uj(P.prevProp,C);let B=X||E===d&&P.isActive&&!V&&A||k>S&&A,G=!1;const ee=Array.isArray(C)?C:[C];let ue=ee.reduce(o(E),{});D===!1&&(ue={});const{prevResolvedValues:Ce={}}=P,Ae={...Ce,...ue},he=ie=>{B=!0,x.has(ie)&&(G=!0,x.delete(ie)),P.needsAnimating[ie]=!0;const H=t.getValue(ie);H&&(H.liveStyle=!1)};for(const ie in Ae){const H=ue[ie],te=Ce[ie];if(w.hasOwnProperty(ie))continue;let U=!1;Ff(H)&&Ff(te)?U=!w1(H,te):U=H!==te,U?H!=null?he(ie):x.add(ie):H!==void 0&&x.has(ie)?he(ie):P.protectedKeys[ie]=!0}P.prevProp=C,P.prevResolvedValues=ue,P.isActive&&(w={...w,...ue}),s&&t.blockInitialAnimation&&(B=!1),B&&(!(V&&X)||G)&&y.push(...ee.map(ie=>({animation:ie,options:{type:E}})))}if(x.size){const k={};x.forEach(E=>{const P=t.getBaseTarget(E),C=t.getValue(E);C&&(C.liveStyle=!0),k[E]=P??null}),y.push({animation:k})}let _=!!y.length;return s&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(_=!1),s=!1,_?e(y):Promise.resolve()}function f(d,h){var m;if(n[d].isActive===h)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(x=>{var w;return(w=x.animationState)===null||w===void 0?void 0:w.setActive(d,h)}),n[d].isActive=h;const y=c(d);for(const x in n)n[x].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Z0(),s=!0}}}function Uj(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!w1(e,t):!1}function ps(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Z0(){return{animate:ps(!0),whileInView:ps(),whileHover:ps(),whileTap:ps(),whileDrag:ps(),whileFocus:ps(),exit:ps()}}class Jr{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Vj extends Jr{constructor(e){super(e),e.animationState||(e.animationState=zj(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Pc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let $j=0;class Hj extends Jr{constructor(){super(...arguments),this.id=$j++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Wj={animation:{Feature:Vj},exit:{Feature:Hj}};function oa(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Sa(t){return{point:{x:t.pageX,y:t.pageY}}}const qj=t=>e=>Qh(e)&&t(e,Sa(e));function qo(t,e,n,s){return oa(t,e,qj(n),s)}const ev=(t,e)=>Math.abs(t-e);function Kj(t,e){const n=ev(t.x,e.x),s=ev(t.y,e.y);return Math.sqrt(n**2+s**2)}class lb{constructor(e,n,{transformPagePoint:s,contextWindow:o,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=Gd(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=Kj(y.offset,{x:0,y:0})>=3;if(!x&&!w)return;const{point:S}=y,{timestamp:_}=Ct;this.history.push({...S,timestamp:_});const{onStart:k,onMove:E}=this.handlers;x||(k&&k(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Qd(x,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:w,onSessionEnd:S,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Gd(y.type==="pointercancel"?this.lastMoveEventInfo:Qd(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(y,k),S&&S(y,k)},!Qh(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const c=Sa(e),f=Qd(c,this.transformPagePoint),{point:d}=f,{timestamp:h}=Ct;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(e,Gd(f,this.history)),this.removeListeners=ba(qo(this.contextWindow,"pointermove",this.handlePointerMove),qo(this.contextWindow,"pointerup",this.handlePointerUp),qo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Qr(this.updatePoint)}}function Qd(t,e){return e?{point:e(t.point)}:t}function tv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gd({point:t},e){return{point:t,delta:tv(t,cb(e)),offset:tv(t,Qj(e)),velocity:Gj(e,.1)}}function Qj(t){return t[0]}function cb(t){return t[t.length-1]}function Gj(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const o=cb(t);for(;n>=0&&(s=t[n],!(o.timestamp-s.timestamp>ir(e)));)n--;if(!s)return{x:0,y:0};const l=or(o.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(o.x-s.x)/l,y:(o.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const ub=1e-4,Yj=1-ub,Xj=1+ub,db=.01,Jj=0-db,Zj=0+db;function tn(t){return t.max-t.min}function eN(t,e,n){return Math.abs(t-e)<=n}function nv(t,e,n,s=.5){t.origin=s,t.originPoint=Ze(e.min,e.max,t.origin),t.scale=tn(n)/tn(e),t.translate=Ze(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Yj&&t.scale<=Xj||isNaN(t.scale))&&(t.scale=1),(t.translate>=Jj&&t.translate<=Zj||isNaN(t.translate))&&(t.translate=0)}function Ko(t,e,n,s){nv(t.x,e.x,n.x,s?s.originX:void 0),nv(t.y,e.y,n.y,s?s.originY:void 0)}function rv(t,e,n){t.min=n.min+e.min,t.max=t.min+tn(e)}function tN(t,e,n){rv(t.x,e.x,n.x),rv(t.y,e.y,n.y)}function sv(t,e,n){t.min=e.min-n.min,t.max=t.min+tn(e)}function Qo(t,e,n){sv(t.x,e.x,n.x),sv(t.y,e.y,n.y)}function nN(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?Ze(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?Ze(n,t,s.max):Math.min(t,n)),t}function iv(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function rN(t,{top:e,left:n,bottom:s,right:o}){return{x:iv(t.x,n,o),y:iv(t.y,e,s)}}function ov(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function sN(t,e){return{x:ov(t.x,e.x),y:ov(t.y,e.y)}}function iN(t,e){let n=.5;const s=tn(t),o=tn(e);return o>s?n=Fi(e.min,e.max-s,t.min):s>o&&(n=Fi(t.min,t.max-o,e.min)),ar(0,1,n)}function oN(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Wf=.35;function aN(t=Wf){return t===!1?t=0:t===!0&&(t=Wf),{x:av(t,"left","right"),y:av(t,"top","bottom")}}function av(t,e,n){return{min:lv(t,e),max:lv(t,n)}}function lv(t,e){return typeof t=="number"?t:t[e]||0}const cv=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:cv(),y:cv()}),uv=()=>({min:0,max:0}),ot=()=>({x:uv(),y:uv()});function hn(t){return[t("x"),t("y")]}function fb({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function lN({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function cN(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Yd(t){return t===void 0||t===1}function qf({scale:t,scaleX:e,scaleY:n}){return!Yd(t)||!Yd(e)||!Yd(n)}function gs(t){return qf(t)||hb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function hb(t){return dv(t.x)||dv(t.y)}function dv(t){return t&&t!=="0%"}function gc(t,e,n){const s=t-n,o=e*s;return n+o}function fv(t,e,n,s,o){return o!==void 0&&(t=gc(t,o,s)),gc(t,n,s)+e}function Kf(t,e=0,n=1,s,o){t.min=fv(t.min,e,n,s,o),t.max=fv(t.max,e,n,s,o)}function pb(t,{x:e,y:n}){Kf(t.x,e.translate,e.scale,e.originPoint),Kf(t.y,n.translate,n.scale,n.originPoint)}const hv=.999999999999,pv=1.0000000000001;function uN(t,e,n,s=!1){const o=n.length;if(!o)return;e.x=e.y=1;let l,c;for(let f=0;f<o;f++){l=n[f],c=l.projectionDelta;const{visualElement:d}=l.options;d&&d.props.style&&d.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&vi(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,pb(t,c)),s&&gs(l.latestValues)&&vi(t,l.latestValues))}e.x<pv&&e.x>hv&&(e.x=1),e.y<pv&&e.y>hv&&(e.y=1)}function yi(t,e){t.min=t.min+e,t.max=t.max+e}function mv(t,e,n,s,o=.5){const l=Ze(t.min,t.max,o);Kf(t,e,n,l,s)}function vi(t,e){mv(t.x,e.x,e.scaleX,e.scale,e.originX),mv(t.y,e.y,e.scaleY,e.scale,e.originY)}function mb(t,e){return fb(cN(t.getBoundingClientRect(),e))}function dN(t,e,n){const s=mb(t,n),{scroll:o}=e;return o&&(yi(s.x,o.offset.x),yi(s.y,o.offset.y)),s}const gb=({current:t})=>t?t.ownerDocument.defaultView:null,fN=new WeakMap;class hN{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=ot(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Sa(m).point)},l=(m,y)=>{const{drag:x,dragPropagation:w,onDragStart:S}=this.getProps();if(x&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=i4(x),!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),hn(k=>{let E=this.getAxisMotionValue(k).get()||0;if(Vn.test(E)){const{projection:P}=this.visualElement;if(P&&P.layout){const C=P.layout.layoutBox[k];C&&(E=tn(C)*(parseFloat(E)/100))}}this.originPoint[k]=E}),S&&Ge.postRender(()=>S(m,y)),Mf(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},c=(m,y)=>{const{dragPropagation:x,dragDirectionLock:w,onDirectionLock:S,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:k}=y;if(w&&this.currentDirection===null){this.currentDirection=pN(k),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",y.point,k),this.updateAxis("y",y.point,k),this.visualElement.render(),_&&_(m,y)},f=(m,y)=>this.stop(m,y),d=()=>hn(m=>{var y;return this.getAnimationState(m)==="paused"&&((y=this.getAxisMotionValue(m).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new lb(e,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:gb(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&Ge.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:o}=this.getProps();if(!s||!$l(e,o,this.currentDirection))return;const l=this.getAxisMotionValue(e);let c=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(c=nN(c,this.constraints[e],this.elastic[e])),l.set(c)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),o=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;n&&pi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=rN(o.layoutBox,n):this.constraints=!1,this.elastic=aN(s),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&hn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=oN(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pi(e))return!1;const s=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=dN(s,o.root,this.visualElement.getTransformPagePoint());let c=sN(o.layout.layoutBox,l);if(n){const f=n(lN(c));this.hasMutatedConstraints=!!f,f&&(c=fb(f))}return c}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),d=this.constraints||{},h=hn(m=>{if(!$l(m,n,this.currentDirection))return;let y=d&&d[m]||{};c&&(y={min:0,max:0});const x=o?200:1e6,w=o?40:1e7,S={type:"inertia",velocity:s?e[m]:0,bounceStiffness:x,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(f)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Mf(this.visualElement,e),s.start(op(e,s,0,n,this.visualElement,!1))}stopAnimation(){hn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){hn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){hn(n=>{const{drag:s}=this.getProps();if(!$l(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:f}=o.layout.layoutBox[n];l.set(e[n]-Ze(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!pi(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};hn(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const d=f.get();o[c]=iN({min:d,max:d},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),hn(c=>{if(!$l(c,e,null))return;const f=this.getAxisMotionValue(c),{min:d,max:h}=this.constraints[c];f.set(Ze(d,h,o[c]))})}addListeners(){if(!this.visualElement.current)return;fN.set(this.visualElement,this);const e=this.visualElement.current,n=qo(e,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),s=()=>{const{dragConstraints:d}=this.getProps();pi(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ge.read(s);const c=oa(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(hn(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=d[m].translate,y.set(y.get()+d[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),f&&f()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:c=Wf,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:f}}}function $l(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function pN(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class mN extends Jr{constructor(e){super(e),this.removeGroupControls=en,this.removeListeners=en,this.controls=new hN(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}unmount(){this.removeGroupControls(),this.removeListeners()}}const gv=t=>(e,n)=>{t&&Ge.postRender(()=>t(e,n))};class gN extends Jr{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(e){this.session=new lb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gb(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:gv(e),onStart:gv(n),onMove:s,onEnd:(l,c)=>{delete this.session,o&&Ge.postRender(()=>o(l,c))}}}mount(){this.removePointerDownListener=qo(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 nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Lo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(we.test(t))t=parseFloat(t);else return t;const n=yv(t,e.target.x),s=yv(t,e.target.y);return`${n}% ${s}%`}},yN={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,o=Gr.parse(t);if(o.length>5)return s;const l=Gr.createTransformer(t),c=typeof o[0]!="number"?1:0,f=n.x.scale*e.x,d=n.y.scale*e.y;o[0+c]/=f,o[1+c]/=d;const h=Ze(f,d,.5);return typeof o[2+c]=="number"&&(o[2+c]/=h),typeof o[3+c]=="number"&&(o[3+c]/=h),l(o)}};class vN extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:l}=e;IA(xN),l&&(n.group&&n.group.add(l),s&&s.register&&o&&s.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:o,isPresent:l}=this.props,c=s.projection;return c&&(c.isPresent=l,o||e.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?c.promote():c.relegate()||Ge.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Lh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function yb(t){const[e,n]=Zw(),s=T.useContext(Th);return p.jsx(vN,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(a1),isPresent:e,safeToRemove:n})}const xN={borderRadius:{...Lo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lo,borderTopRightRadius:Lo,borderBottomLeftRadius:Lo,borderBottomRightRadius:Lo,boxShadow:yN};function wN(t,e,n){const s=Dt(t)?t:sa(t);return s.start(op("",s,e,n)),s.animation}function bN(t){return t instanceof SVGElement&&t.tagName!=="svg"}const SN=(t,e)=>t.depth-e.depth;class _N{constructor(){this.children=[],this.isDirty=!1}add(e){Gh(this.children,e),this.isDirty=!0}remove(e){Yh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(SN),this.isDirty=!1,this.children.forEach(e)}}function kN(t,e){const n=$n.now(),s=({timestamp:o})=>{const l=o-n;l>=e&&(Qr(s),t(l-e))};return Ge.read(s,!0),()=>Qr(s)}const vb=["TopLeft","TopRight","BottomLeft","BottomRight"],EN=vb.length,vv=t=>typeof t=="string"?parseFloat(t):t,xv=t=>typeof t=="number"||we.test(t);function CN(t,e,n,s,o,l){o?(t.opacity=Ze(0,n.opacity!==void 0?n.opacity:1,TN(s)),t.opacityExit=Ze(e.opacity!==void 0?e.opacity:1,0,RN(s))):l&&(t.opacity=Ze(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let c=0;c<EN;c++){const f=`border${vb[c]}Radius`;let d=wv(e,f),h=wv(n,f);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||xv(d)===xv(h)?(t[f]=Math.max(Ze(vv(d),vv(h),s),0),(Vn.test(h)||Vn.test(d))&&(t[f]+="%")):t[f]=h}(e.rotate||n.rotate)&&(t.rotate=Ze(e.rotate||0,n.rotate||0,s))}function wv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const TN=xb(0,.5,M1),RN=xb(.5,.95,en);function xb(t,e,n){return s=>s<t?0:s>e?1:n(Fi(t,e,s))}function bv(t,e){t.min=e.min,t.max=e.max}function fn(t,e){bv(t.x,e.x),bv(t.y,e.y)}function Sv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function _v(t,e,n,s,o){return t-=e,t=gc(t,1/n,s),o!==void 0&&(t=gc(t,1/o,s)),t}function PN(t,e=0,n=1,s=.5,o,l=t,c=t){if(Vn.test(e)&&(e=parseFloat(e),e=Ze(c.min,c.max,e/100)-c.min),typeof e!="number")return;let f=Ze(l.min,l.max,s);t===l&&(f-=e),t.min=_v(t.min,e,n,f,o),t.max=_v(t.max,e,n,f,o)}function kv(t,e,[n,s,o],l,c){PN(t,e[n],e[s],e[o],e.scale,l,c)}const AN=["x","scaleX","originX"],jN=["y","scaleY","originY"];function Ev(t,e,n,s){kv(t.x,e,AN,n?n.x:void 0,s?s.x:void 0),kv(t.y,e,jN,n?n.y:void 0,s?s.y:void 0)}function Cv(t){return t.translate===0&&t.scale===1}function wb(t){return Cv(t.x)&&Cv(t.y)}function Tv(t,e){return t.min===e.min&&t.max===e.max}function NN(t,e){return Tv(t.x,e.x)&&Tv(t.y,e.y)}function Rv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function bb(t,e){return Rv(t.x,e.x)&&Rv(t.y,e.y)}function Pv(t){return tn(t.x)/tn(t.y)}function Av(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ON{constructor(){this.members=[]}add(e){Gh(this.members,e),e.scheduleRender()}remove(e){if(Yh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let s;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){s=l;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function FN(t,e,n){let s="";const o=t.x.translate/e.x,l=t.y.translate/e.y,c=(n==null?void 0:n.z)||0;if((o||l||c)&&(s=`translate3d(${o}px, ${l}px, ${c}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:y,rotateY:x,skewX:w,skewY:S}=n;h&&(s=`perspective(${h}px) ${s}`),m&&(s+=`rotate(${m}deg) `),y&&(s+=`rotateX(${y}deg) `),x&&(s+=`rotateY(${x}deg) `),w&&(s+=`skewX(${w}deg) `),S&&(s+=`skewY(${S}deg) `)}const f=t.x.scale*e.x,d=t.y.scale*e.y;return(f!==1||d!==1)&&(s+=`scale(${f}, ${d})`),s||"none"}const ys={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vo=typeof window<"u"&&window.MotionDebug!==void 0,Xd=["","X","Y","Z"],LN={visibility:"hidden"},jv=1e3;let DN=0;function Jd(t,e,n,s){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Sb(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=A1(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Ge,!(o||l))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Sb(s)}function _b({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(c={},f=e==null?void 0:e()){this.id=DN++,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,Vo&&(ys.totalNodes=ys.resolvedTargetDeltas=ys.recalculatedProjection=0),this.nodes.forEach(BN),this.nodes.forEach(HN),this.nodes.forEach(WN),this.nodes.forEach(zN),Vo&&window.MotionDebug.record(ys)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new _N)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Xh),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const d=this.eventHandlers.get(c);d&&d.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=bN(c),this.instance=c;const{layoutId:d,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(h||d)&&(this.isLayoutDirty=!0),t){let y;const x=()=>this.root.updateBlockedByResize=!1;t(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=kN(x,250),nc.hasAnimatedSinceResize&&(nc.hasAnimatedSinceResize=!1,this.nodes.forEach(Ov))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||h)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeTargetChanged:w,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||m.getDefaultTransition()||YN,{onLayoutAnimationStart:k,onLayoutAnimationComplete:E}=m.getProps(),P=!this.targetLayout||!bb(this.targetLayout,S)||w,C=!x&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||x&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,C);const A={...Wh(_,"layout"),onPlay:k,onComplete:E};(m.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else x||Ov(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}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,Qr(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(qN),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&&Sb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:d}=this.options;if(f===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nv);return}this.isUpdating||this.nodes.forEach(VN),this.isUpdating=!1,this.nodes.forEach($N),this.nodes.forEach(MN),this.nodes.forEach(IN),this.clearAllSnapshots();const f=$n.now();Ct.delta=ar(0,1e3/60,f-Ct.timestamp),Ct.timestamp=f,Ct.isProcessing=!0,Vd.update.process(Ct),Vd.preRender.process(Ct),Vd.render.process(Ct),Ct.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Lh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UN),this.sharedNodes.forEach(KN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.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 d=0;d<this.path.length;d++)this.path[d].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const d=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!wb(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;c&&(f||gs(this.latestValues)||m)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let d=this.removeElementScroll(f);return c&&(d=this.removeTransform(d)),XN(d),{animationId:this.root.animationId,measuredBox:f,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return ot();const d=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(JN))){const{scroll:m}=this.root;m&&(yi(d.x,m.offset.x),yi(d.y,m.offset.y))}return d}removeElementScroll(c){var f;const d=ot();if(fn(d,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return d;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:y,options:x}=m;m!==this.root&&y&&x.layoutScroll&&(y.wasRoot&&fn(d,c),yi(d.x,y.offset.x),yi(d.y,y.offset.y))}return d}applyTransform(c,f=!1){const d=ot();fn(d,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&vi(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),gs(m.latestValues)&&vi(d,m.latestValues)}return gs(this.latestValues)&&vi(d,this.latestValues),d}removeTransform(c){const f=ot();fn(f,c);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!gs(h.latestValues))continue;qf(h.latestValues)&&h.updateSnapshot();const m=ot(),y=h.measurePageBox();fn(m,y),Ev(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return gs(this.latestValues)&&Ev(f,this.latestValues),f}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!==Ct.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=Ct.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),Qo(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),fn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ot(),this.targetWithTransforms=ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fn(this.target,this.layout.layoutBox),pb(this.target,this.targetDelta)):fn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),Qo(this.relativeTargetOrigin,this.target,w.target),fn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vo&&ys.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||qf(this.parent.latestValues)||hb(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 f=this.getLead(),d=!!this.resumingFrom||this!==f;let h=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ct.timestamp&&(h=!1),h)return;const{layout:m,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||!(m||y))return;fn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,w=this.treeScale.y;uN(this.layoutCorrected,this.treeScale,this.path,d),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=ot());const{target:S}=f;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sv(this.prevProjectionDelta.x,this.projectionDelta.x),Sv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ko(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==w||!Av(this.projectionDelta.x,this.prevProjectionDelta.x)||!Av(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),Vo&&ys.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gi(),this.projectionDelta=gi(),this.projectionDeltaWithTransform=gi()}setAnimationOrigin(c,f=!1){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},y=gi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const x=ot(),w=d?d.source:void 0,S=this.layout?this.layout.source:void 0,_=w!==S,k=this.getStack(),E=!k||k.members.length<=1,P=!!(_&&!E&&this.options.crossfade===!0&&!this.path.some(GN));this.animationProgress=0;let C;this.mixTargetDelta=A=>{const D=A/1e3;Fv(y.x,c.x,D),Fv(y.y,c.y,D),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qo(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QN(this.relativeTarget,this.relativeTargetOrigin,x,D),C&&NN(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ot()),fn(C,this.relativeTarget)),_&&(this.animationValues=m,CN(m,h,this.latestValues,D,P,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},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&&(Qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{nc.hasAnimatedSinceResize=!0,this.currentAnimation=wN(0,jv,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},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(jv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:d,layout:h,latestValues:m}=c;if(!(!f||!d||!h)){if(this!==c&&this.layout&&h&&kb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||ot();const y=tn(this.layout.layoutBox.x);d.x.min=c.target.x.min,d.x.max=d.x.min+y;const x=tn(this.layout.layoutBox.y);d.y.min=c.target.y.min,d.y.max=d.y.min+x}fn(f,d),vi(f,m),Ko(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new ON),this.sharedNodes.get(c).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(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:f,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:d}=c;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(f=!0),!f)return;const h={};d.z&&Jd("z",c,h,this.animationValues);for(let m=0;m<Xd.length;m++)Jd(`rotate${Xd[m]}`,c,h,this.animationValues),Jd(`skew${Xd[m]}`,c,h,this.animationValues);c.render();for(const m in h)c.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);c.scheduleRender()}getProjectionStyles(c){var f,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return LN;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=ec(c==null?void 0:c.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const _={};return this.options.layoutId&&(_.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,_.pointerEvents=ec(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!gs(this.latestValues)&&(_.transform=m?m({},""):"none",this.hasProjected=!1),_}const x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),h.transform=FN(this.projectionDeltaWithTransform,this.treeScale,x),m&&(h.transform=m(x,h.transform));const{x:w,y:S}=this.projectionDelta;h.transformOrigin=`${w.origin*100}% ${S.origin*100}% 0`,y.animationValues?h.opacity=y===this?(d=(f=x.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=y===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const _ in dc){if(x[_]===void 0)continue;const{correct:k,applyTo:E}=dc[_],P=h.transform==="none"?x[_]:k(x[_],y);if(E){const C=E.length;for(let A=0;A<C;A++)h[E[A]]=P}else h[_]=P}return this.options.layoutId&&(h.pointerEvents=y===this?ec(c==null?void 0:c.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(Nv),this.root.sharedNodes.clear()}}}function MN(t){t.updateLayout()}function IN(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=t.layout,{animationType:l}=t.options,c=n.source!==t.layout.source;l==="size"?hn(y=>{const x=c?n.measuredBox[y]:n.layoutBox[y],w=tn(x);x.min=s[y].min,x.max=x.min+w}):kb(l,n.layoutBox,s)&&hn(y=>{const x=c?n.measuredBox[y]:n.layoutBox[y],w=tn(s[y]);x.max=x.min+w,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+w)});const f=gi();Ko(f,s,n.layoutBox);const d=gi();c?Ko(d,t.applyTransform(o,!0),n.measuredBox):Ko(d,s,n.layoutBox);const h=!wb(f);let m=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:w}=y;if(x&&w){const S=ot();Qo(S,n.layoutBox,x.layoutBox);const _=ot();Qo(_,s,w.layoutBox),bb(S,_)||(m=!0),y.options.layoutRoot&&(t.relativeTarget=_,t.relativeTargetOrigin=S,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:d,layoutDelta:f,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function BN(t){Vo&&ys.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 zN(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function UN(t){t.clearSnapshot()}function Nv(t){t.clearMeasurements()}function VN(t){t.isLayoutDirty=!1}function $N(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ov(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function HN(t){t.resolveTargetDelta()}function WN(t){t.calcProjection()}
vendor: 6,595 bytes, line 280
280function qN(t){t.resetSkewAndRotation()}function KN(t){t.removeLeadSnapshot()}function Fv(t,e,n){t.translate=Ze(e.translate,0,n),t.scale=Ze(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Lv(t,e,n,s){t.min=Ze(e.min,n.min,s),t.max=Ze(e.max,n.max,s)}function QN(t,e,n,s){Lv(t.x,e.x,n.x,s),Lv(t.y,e.y,n.y,s)}function GN(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const YN={duration:.45,ease:[.4,0,.1,1]},Dv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Mv=Dv("applewebkit/")&&!Dv("chrome/")?Math.round:en;function Iv(t){t.min=Mv(t.min),t.max=Mv(t.max)}function XN(t){Iv(t.x),Iv(t.y)}function kb(t,e,n){return t==="position"||t==="preserve-aspect"&&!eN(Pv(e),Pv(n),.2)}function JN(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const ZN=_b({attachResizeListener:(t,e)=>oa(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zd={current:void 0},Eb=_b({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Zd.current){const t=new ZN({});t.mount(window),t.setOptions({layoutScroll:!0}),Zd.current=t}return Zd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),e3={pan:{Feature:gN},drag:{Feature:mN,ProjectionNode:Eb,MeasureLayout:yb}};function Bv(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=s[o];l&&Ge.postRender(()=>l(e,Sa(e)))}class t3 extends Jr{mount(){const{current:e}=this.node;e&&(this.unmount=e4(e,n=>(Bv(this.node,n,"Start"),s=>Bv(this.node,s,"End"))))}unmount(){}}class n3 extends Jr{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=ba(oa(this.node.current,"focus",()=>this.onFocus()),oa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zv(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=s[o];l&&Ge.postRender(()=>l(e,Sa(e)))}class r3 extends Jr{mount(){const{current:e}=this.node;e&&(this.unmount=s4(e,n=>(zv(this.node,n,"Start"),(s,{success:o})=>zv(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Qf=new WeakMap,ef=new WeakMap,s3=t=>{const e=Qf.get(t.target);e&&e(t)},i3=t=>{t.forEach(s3)};function o3({root:t,...e}){const n=t||document;ef.has(n)||ef.set(n,{});const s=ef.get(n),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(i3,{root:t,...e})),s[o]}function a3(t,e,n){const s=o3(e);return Qf.set(t,n),s.observe(t),()=>{Qf.delete(t),s.unobserve(t)}}const l3={some:0,all:1};class c3 extends Jr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:l}=e,c={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:l3[o]},f=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),x=h?m:y;x&&x(d)};return a3(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(u3(e,n))&&this.startObserver()}unmount(){}}function u3({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const d3={inView:{Feature:c3},tap:{Feature:r3},focus:{Feature:n3},hover:{Feature:t3}},f3={layout:{ProjectionNode:Eb,MeasureLayout:yb}},Gf={current:null},Cb={current:!1};function h3(){if(Cb.current=!0,!!Ah)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Gf.current=t.matches;t.addListener(e),e()}else Gf.current=!1}const p3=[...X1,Lt,Gr],m3=t=>p3.find(Y1(t)),Uv=new WeakMap;function g3(t,e,n){for(const s in e){const o=e[s],l=n[s];if(Dt(o))t.addValue(s,o);else if(Dt(l))t.addValue(s,sa(o,{owner:t}));else if(l!==o)if(t.hasValue(s)){const c=t.getValue(s);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=t.getStaticValue(s);t.addValue(s,sa(c!==void 0?c:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Vv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class y3{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:l,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rp,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 w=$n.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Ge.render(this.render,!1,!0))};const{latestValues:d,renderState:h,onUpdate:m}=c;this.onUpdate=m,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Ac(n),this.isVariantNode=i1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...x}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in x){const S=x[w];d[w]!==void 0&&Dt(S)&&S.set(d[w],!1)}}mount(e){this.current=e,Uv.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 280
280h((n,s)=>this.bindToMotionValue(s,n)),Cb.current||h3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Gf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Uv.delete(this.current),this.projection&&this.projection.unmount(),Qr(this.notifyUpdate),Qr(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 n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=zs.has(e),o=n.on("change",f=>{this.latestValues[e]=f,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),l(),c&&c(),n.owner&&n.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 Li){const n=Li[e];if(!n)continue;const{isEnabled:s,Feature:o}=n;if(!this.features[e]&&o&&s(this.props)&&(this.features[e]=new o(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):ot()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Vv.length;s++){const o=Vv[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,c=e[l];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=g3(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=sa(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(Q1(o)||B1(o))?o=parseFloat(o):!m3(o)&&Gr.test(n)&&(o=W1(e,n)),this.setBaseTarget(e,Dt(o)?o.get():o)),Dt(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const c=Mh(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[e])}if(s&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!Dt(l)?l:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Xh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Tb extends y3{constructor(){super(...arguments),this.KeyframeResolver=J1}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Dt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function v3(t){return window.getComputedStyle(t)}class x3 extends Tb{constructor(){super(...arguments),this.type="html",this.renderInstance=p1}readValueFromInstance(e,n){if(zs.has(n)){const s=np(n);return s&&s.default||0}else{const s=v3(e),o=(d1(n)?s.getPropertyValue(n):s[n])||0;
280return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return mb(e,n)}build(e,n,s){zh(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Hh(e,n,s)}}class w3 extends Tb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ot}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(zs.has(n)){const s=np(n);return s&&s.default||0}return n=m1.has(n)?n:Fh(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return v1(e,n,s)}build(e,n,s){Uh(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,o){g1(e,n,s,o)}mount(e){this.isSVGTag=$h(e.tagName),super.mount(e)}}const b3=(t,e)=>Dh(t)?new w3(e):new x3(e,{allowProjection:t!==T.Fragment}),S3=KA({...Wj,...d3,...e3,...f3},b3),at=lA(S3);function ap(){if(typeof window>"u")return!1;const t=window.location.hostname;return t==="rafterhome.com"||t==="www.rafterhome.com"}function Fr(t,e){if(!ap()){console.debug("[trackCTA:noop]",t,e);return}zn.analytics.track({eventName:"cta_clicked",properties:{cta:t,location:e}});const n=va();zn.entities.CTAClick.create({cta:t,location:e,page:typeof window<"u"?window.location.pathname:null,utm_source:n.utm_source||null,utm_medium:n.utm_medium||null,utm_campaign:n.utm_campaign||null})}const Rb="+19142075176",_3="(914) 207-5176",k3="Hey Rafter - what can you take off my plate with my home?",E3={door_inspection:"Here's my inspection report — what should I tackle first?",door_bill:"Can you beat this bill?"},C3="By texting Rafter you agree to receive messages from us. Msg & data rates may apply. Reply STOP to opt out.";function Pb(t){return t?String(t).replace(/[^A-Za-z0-9_-]/g,"").slice(0,40):""}function Ab(t,e){if(e&&typeof e=="string"&&e.trim())return e.trim().slice(0,160);const n=Pb(t);return E3[n]||k3}function jb(t,e,{qr:n=!1}={}){const o=Ab(t,e);return`sms:${Rb}?&body=${encodeURIComponent(o)}`}function T3(){if(typeof navigator>"u")return!1;const t=navigator.userAgent||"",e=/iPhone|iPad|iPod/i.test(t)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,n=/Android/i.test(t);return e||n}const R3="https://paayfhpnfkmusyvjrbjx.supabase.co",$v="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBhYXlmaHBuZmttdXN5dmpyYmp4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzcxMzAwMjgsImV4cCI6MjA5MjcwNjAyOH0.oKjqe2S1ZmxUvvg9uWbJaeVfA1i-rbgLkRV8tWB7E08";async function Yf(t,{source:e,payload:n={}}={}){if(!(typeof window<"u"&&!/^(www\.)?rafterhome\.com$/.test(window.location.hostname)))try{const s=await fetch(`${R3}/rest/v1/events`,{method:"POST",headers:{apikey:$v,Authorization:`Bearer ${$v}`,"Content-Type":"application/json",Prefer:"return=minimal"},body:JSON.stringify({event_type:String(t||"").toLowerCase().slice(0,64),entity_type:"anonymous",entity_id:null,source:(e||(typeof window<"u"?window.location.pathname:"")||"").slice(0,200),payload:n&&typeof n=="object"?n:{}})});s.ok||console.warn("[gtm] trackEvent failed silently:",s.status)}catch(s){console.warn("[gtm] trackEvent failed silently:",s.message)}}function Hv(t,e={}){if(!ap()){typeof window<"u"&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:t,...e,noop:!0}));return}const n=va(),s=typeof window<"u"?window.location.pathname:null,o=e.device||(typeof navigator<"u"&&/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?"mobile":"desktop"),l={...e,page:s,device:o,...n};try{t==="text_cta_click"&&Fr("text_rafter",e.location||e.src||"unknown")}catch{}try{typeof window<"u"&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:t,...l}),typeof window.gtag=="function"&&window.gtag("event",t,l),typeof window.fbq=="function"&&t==="text_cta_click"&&window.fbq("trackCustom","TextCTAClick",l))}catch{}try{Yf(t,{entityType:"anonymous",source:s,payload:l})}catch{}}var P3=Object.defineProperty,yc=Object.getOwnPropertySymbols,Nb=Object.prototype.hasOwnProperty,Ob=Object.prototype.propertyIsEnumerable,Wv=(t,e,n)=>e in t?P3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xf=(t,e)=>{for(var n in e||(e={}))Nb.call(e,n)&&Wv(t,n,e[n]);if(yc)for(var n of yc(e))Ob.call(e,n)&&Wv(t,n,e[n]);return t},Jf=(t,e)=>{var n={};for(var s in t)Nb.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&yc)for(var s of yc(t))e.indexOf(s)<0&&Ob.call(t,s)&&(n[s]=t[s]);return n};/**
281 * @license QR Code generator library (TypeScript)
282 * Copyright (c) Project Nayuki.
283 * SPDX-License-Identifier: MIT
284 */var Ds;(t=>{const e=class Ne{constructor(d,h,m,y){if(this.version=d,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],d<Ne.MIN_VERSION||d>Ne.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let x=[];for(let S=0;S<this.size;S++)x.push(!1);for(let S=0;S<this.size;S++)this.modules.push(x.slice()),this.isFunction.push(x.slice());this.drawFunctionPatterns();const w=this.addEccAndInterleave(m);if(this.drawCodewords(w),y==-1){let S=1e9;for(let _=0;_<8;_++){this.applyMask(_),this.drawFormatBits(_);const k=this.getPenaltyScore();k<S&&(y=_,S=k),this.applyMask(_)}}o(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(d,h){const m=t.QrSegment.makeSegments(d);return Ne.encodeSegments(m,h)}static encodeBinary(d,h){const m=t.QrSegment.makeBytes(d);return Ne.encodeSegments([m],h)}static encodeSegments(d,h,m=1,y=40,x=-1,w=!0){if(!(Ne.MIN_VERSION<=m&&m<=y&&y<=Ne.MAX_VERSION)||x<-1||x>7)throw new RangeError("Invalid value");let S,_;for(S=m;;S++){const C=Ne.getNumDataCodewords(S,h)*8,A=c.getTotalBits(d,S);if(A<=C){_=A;break}if(S>=y)throw new RangeError("Data too long")}for(const C of[Ne.Ecc.MEDIUM,Ne.Ecc.QUARTILE,Ne.Ecc.HIGH])w&&_<=Ne.getNumDataCodewords(S,C)*8&&(h=C);let k=[];for(const C of d){n(C.mode.modeBits,4,k),n(C.numChars,C.mode.numCharCountBits(S),k);for(const A of C.getData())k.push(A)}o(k.length==_);const E=Ne.getNumDataCodewords(S,h)*8;o(k.length<=E),n(0,Math.min(4,E-k.length),k),n(0,(8-k.length%8)%8,k),o(k.length%8==0);for(let C=236;k.length<E;C^=253)n(C,8,k);let P=[];for(;P.length*8<k.length;)P.push(0);
vendor: 4,113 bytes, line 284
284return k.forEach((C,A)=>P[A>>>3]|=C<<7-(A&7)),new Ne(S,h,P,x)}getModule(d,h){return 0<=d&&d<this.size&&0<=h&&h<this.size&&this.modules[h][d]}getModules(){return this.modules}drawFunctionPatterns(){for(let m=0;m<this.size;m++)this.setFunctionModule(6,m,m%2==0),this.setFunctionModule(m,6,m%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const d=this.getAlignmentPatternPositions(),h=d.length;for(let m=0;m<h;m++)for(let y=0;y<h;y++)m==0&&y==0||m==0&&y==h-1||m==h-1&&y==0||this.drawAlignmentPattern(d[m],d[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(d){const h=this.errorCorrectionLevel.formatBits<<3|d;let m=h;for(let x=0;x<10;x++)m=m<<1^(m>>>9)*1335;const y=(h<<10|m)^21522;o(y>>>15==0);for(let x=0;x<=5;x++)this.setFunctionModule(8,x,s(y,x));this.setFunctionModule(8,7,s(y,6)),this.setFunctionModule(8,8,s(y,7)),this.setFunctionModule(7,8,s(y,8));for(let x=9;x<15;x++)this.setFunctionModule(14-x,8,s(y,x));for(let x=0;x<8;x++)this.setFunctionModule(this.size-1-x,8,s(y,x));for(let x=8;x<15;x++)this.setFunctionModule(8,this.size-15+x,s(y,x));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let m=0;m<12;m++)d=d<<1^(d>>>11)*7973;const h=this.version<<12|d;o(h>>>18==0);for(let m=0;m<18;m++){const y=s(h,m),x=this.size-11+m%3,w=Math.floor(m/3);this.setFunctionModule(x,w,y),this.setFunctionModule(w,x,y)}}drawFinderPattern(d,h){for(let m=-4;m<=4;m++)for(let y=-4;y<=4;y++){const x=Math.max(Math.abs(y),Math.abs(m)),w=d+y,S=h+m;0<=w&&w<this.size&&0<=S&&S<this.size&&this.setFunctionModule(w,S,x!=2&&x!=4)}}drawAlignmentPattern(d,h){for(let m=-2;m<=2;m++)for(let y=-2;y<=2;y++)this.setFunctionModule(d+y,h+m,Math.max(Math.abs(y),Math.abs(m))!=1)}setFunctionModule(d,h,m){this.modules[h][d]=m,this.isFunction[h][d]=!0}addEccAndInterleave(d){const h=this.version,m=this.errorCorrectionLevel;if(d.length!=Ne.getNumDataCodewords(h,m))throw new RangeError("Invalid argument");const y=Ne.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][h],x=Ne.ECC_CODEWORDS_PER_BLOCK[m.ordinal][h],w=Math.floor(Ne.getNumRawDataModules(h)/8),S=y-w%y,_=Math.floor(w/y);let k=[];const E=Ne.reedSolomonComputeDivisor(x);for(let C=0,A=0;C<y;C++){let D=d.slice(A,A+_-x+(C<S?0:1));A+=D.length;const V=Ne.reedSolomonComputeRemainder(D,E);C<S&&D.push(0),k.push(D.concat(V))}let P=[];for(let C=0;C<k[0].length;C++)k.forEach((A,D)=>{(C!=_-x||D>=S)&&P.push(A[C])});return o(P.length==w),P}drawCodewords(d){if(d.length!=Math.floor(Ne.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let m=this.size-1;m>=1;m-=2){m==6&&(m=5);for(let y=0;y<this.size;y++)for(let x=0;x<2;x++){const w=m-x,_=(m+1&2)==0?this.size-1-y:y;!this.isFunction[_][w]&&h<d.length*8&&(this.modules[_][w]=s(d[h>>>3],7-(h&7)),h++)}}o(h==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let h=0;h<this.size;h++)for(let m=0;m<this.size;m++){let y;switch(d){case 0:y=(m+h)%2==0;break;case 1:y=h%2==0;break;case 2:y=m%3==0;break;case 3:y=(m+h)%3==0;break;case 4:y=(Math.floor(m/3)+Math.floor(h/2))%2==0;break;case 5:y=m*h%2+m*h%3==0;break;case 6:y=(m*h%2+m*h%3)%2==0;break;case 7:y=((m+h)%2+m*h%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[h][m]&&y&&(this.modules[h][m]=!this.modules[h][m])}}getPenaltyScore(){let d=0;for(let x=0;x<this.size;x++){let w=!1,S=0,_=[0,0,0,0,0,0,0];for(let k=0;k<this.size;k++)this.modules[x][k]==w?(S++,S==5?d+=Ne.PENALTY_N1:S>5&&d++):(this.finderPenaltyAddHistory(S,_),w||(d+=this.finderPenaltyCountPatterns(_)*Ne.PENALTY_N3),w=this.modules[x][k],S=1);d+=this.finderPenaltyTerminateAndCount(w,S,_)*Ne.PENALTY_N3}for(let x=0;x<this.size;x++){let w=!1,S=0,_=[0,0,0,0,0,0,0];for(let k=0;k<this.size;k++)this.modules[k][x]==w?(S++,S==5?d+=Ne.PENALTY_N1:S>5&&d++):(this.finderPenaltyAddHistory(S,_),w||(d+=this.finderPenaltyCountPatterns(_)*Ne.PENALTY_N3),w=this.modules[k][x],S=1);d+=this.finderPenaltyTerminateAndCount(w,S,_)*Ne.PENALTY_N3}for(let x=0;x<this.size-1;x++)for(let w=0;w<this.size-1;w++){const S=this.modules[x][w];
284S==this.modules[x][w+1]&&S==this.modules[x+1][w]&&S==this.modules[x+1][w+1]&&(d+=Ne.PENALTY_N2)}let h=0;for(const x of this.modules)h=x.reduce((w,S)=>w+(S?1:0),h);const m=this.size*this.size,y=Math.ceil(Math.abs(h*20-m*10)/m)-1;return o(0<=y&&y<=9),d+=y*Ne.PENALTY_N4,o(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let m=[6];for(let y=this.size-7;m.length<d;y-=h)m.splice(1,0,y);return m}}static getNumRawDataModules(d){if(d<Ne.MIN_VERSION||d>Ne.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*d+128)*d+64;if(d>=2){const m=Math.floor(d/7)+2;h-=(25*m-10)*m-55,d>=7&&(h-=36)}return o(208<=h&&h<=29648),h}static getNumDataCodewords(d,h){return Math.floor(Ne.getNumRawDataModules(d)/8)-Ne.ECC_CODEWORDS_PER_BLOCK[h.ordinal][d]*Ne.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let h=[];for(let y=0;y<d-1;y++)h.push(0);h.push(1);let m=1;for(let y=0;y<d;y++){for(let x=0;x<h.length;x++)h[x]=Ne.reedSolomonMultiply(h[x],m),x+1<h.length&&(h[x]^=h[x+1]);m=Ne.reedSolomonMultiply(m,2)}return h}static reedSolomonComputeRemainder(d,h){let m=h.map(y=>0);for(const y of d){const x=y^m.shift();m.push(0),h.forEach((w,S)=>m[S]^=Ne.reedSolomonMultiply(w,x))}return m}static reedSolomonMultiply(d,h){if(d>>>8||h>>>8)throw new RangeError("Byte out of range");let m=0;for(let y=7;y>=0;y--)m=m<<1^(m>>>7)*285,m^=(h>>>y&1)*d;return o(m>>>8==0),m}finderPenaltyCountPatterns(d){const h=d[1];o(h<=this.size*3);const m=h>0&&d[2]==h&&d[3]==h*3&&d[4]==h&&d[5]==h;return(m&&d[0]>=h*4&&d[6]>=h?1:0)+(m&&d[6]>=h*4&&d[0]>=h?1:0)}finderPenaltyTerminateAndCount(d,h,m){return d&&(this.finderPenaltyAddHistory(h,m),h=0),h+=this.size,this.finderPenaltyAddHistory(h,m),this.finderPenaltyCountPatterns(m)}finderPenaltyAddHistory(d,h){h[0]==0&&(d+=this.size),h.pop(),h.unshift(d)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(f,d,h){if(d<0||d>31||f>>>d)throw new RangeError("Value out of range");for(let m=d-1;m>=0;m--)h.push(f>>>m&1)}function s(f,d){return(f>>>d&1)!=0}function o(f){if(!f)throw new Error("Assertion error")}const l=class tt{constructor(d,h,m){if(this.mode=d,this.numChars=h,this.bitData=m,h<0)throw new RangeError("Invalid argument");this.bitData=m.slice()}static makeBytes(d){let h=[];for(const m of d)n(m,8,h);return new tt(tt.Mode.BYTE,d.length,h)}static makeNumeric(d){if(!tt.isNumeric(d))throw new RangeError("String contains non-numeric characters");let h=[];for(let m=0;m<d.length;){const y=Math.min(d.length-m,3);n(parseInt(d.substring(m,m+y),10),y*3+1,h),m+=y}return new tt(tt.Mode.NUMERIC,d.length,h)}static makeAlphanumeric(d){if(!tt.isAlphanumeric(d))throw new RangeError("String contains unencodable characters in alphanumeric mode");let h=[],m;for(m=0;m+2<=d.length;m+=2){let y=tt.ALPHANUMERIC_CHARSET.indexOf(d.charAt(m))*45;y+=tt.ALPHANUMERIC_CHARSET.indexOf(d.charAt(m+1)),n(y,11,h)}return m<d.length&&n(tt.ALPHANUMERIC_CHARSET.indexOf(d.charAt(m)),6,h),new tt(tt.Mode.ALPHANUMERIC,d.length,h)}static makeSegments(d){return d==""?[]:tt.isNumeric(d)?[tt.makeNumeric(d)]:tt.isAlphanumeric(d)?[tt.makeAlphanumeric(d)]:[tt.makeBytes(tt.toUtf8ByteArray(d))]}static makeEci(d){let h=[];if(d<0)throw new RangeError("ECI assignment value out of range");if(d<128)n(d,8,h);else if(d<16384)n(2,2,h),n(d,14,h);else if(d<1e6)n(6,3,h),n(d,21,h);else throw new RangeError("ECI assignment value out of range");return new tt(tt.Mode.ECI,0,h)}static isNumeric(d){return tt.NUMERIC_REGEX.test(d)}static isAlphanumeric(d){return tt.ALPHANUMERIC_REGEX.test(d)}getData(){return this.bitData.slice()}static getTotalBits(d,h){let m=0;for(const y of d){const x=y.mode.numCharCountBits(h);if(y.numChars>=1<<x)return 1/0;m+=4+x+y.bitData.length}return m}static toUtf8ByteArray(d){d=encodeURI(d);let h=[];for(let m=0;m<d.length;
284m++)d.charAt(m)!="%"?h.push(d.charCodeAt(m)):(h.push(parseInt(d.substring(m+1,m+3),16)),m+=2);return h}};l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let c=l;t.QrSegment=l})(Ds||(Ds={}));(t=>{(e=>{const n=class{constructor(o,l){this.ordinal=o,this.formatBits=l}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(Ds||(Ds={}));(t=>{(e=>{const n=class{constructor(o,l){this.modeBits=o,this.numBitsCharCount=l}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(Ds||(Ds={}));var xi=Ds;/**
285 * @license qrcode.react
286 * Copyright (c) Paul O'Shannessy
287 * SPDX-License-Identifier: ISC
288 */var A3={L:xi.QrCode.Ecc.LOW,M:xi.QrCode.Ecc.MEDIUM,Q:xi.QrCode.Ecc.QUARTILE,H:xi.QrCode.Ecc.HIGH},Fb=128,Lb="L",Db="#FFFFFF",Mb="#000000",Ib=!1,Bb=1,j3=4,N3=0,O3=.1;function zb(t,e=0){const n=[];return t.forEach(function(s,o){let l=null;
288s.forEach(function(c,f){if(!c&&l!==null){n.push(`M${l+e} ${o+e}h${f-l}v1H${l+e}z`),l=null;return}if(f===s.length-1){if(!c)return;l===null?n.push(`M${f+e},${o+e} h1v1H${f+e}z`):n.push(`M${l+e},${o+e} h${f+1-l}v1H${l+e}z`);return}c&&l===null&&(l=f)})}),n.join("")}function Ub(t,e){return t.slice().map((n,s)=>s<e.y||s>=e.y+e.h?n:n.map((o,l)=>l<e.x||l>=e.x+e.w?o:!1))}function F3(t,e,n,s){if(s==null)return null;const o=t.length+n*2,l=Math.floor(e*O3),c=o/e,f=(s.width||l)*c,d=(s.height||l)*c,h=s.x==null?t.length/2-f/2:s.x*c,m=s.y==null?t.length/2-d/2:s.y*c,y=s.opacity==null?1:s.opacity;let x=null;if(s.excavate){let S=Math.floor(h),_=Math.floor(m),k=Math.ceil(f+h-S),E=Math.ceil(d+m-_);x={x:S,y:_,w:k,h:E}}const w=s.crossOrigin;return{x:h,y:m,h:d,w:f,excavation:x,opacity:y,crossOrigin:w}}function L3(t,e){return e!=null?Math.max(Math.floor(e),0):t?j3:N3}function Vb({value:t,level:e,minVersion:n,includeMargin:s,marginSize:o,imageSettings:l,size:c,boostLevel:f}){let d=dt.useMemo(()=>{const S=(Array.isArray(t)?t:[t]).reduce((_,k)=>(_.push(...xi.QrSegment.makeSegments(k)),_),[]);return xi.QrCode.encodeSegments(S,A3[e],n,void 0,void 0,f)},[t,e,n,f]);const{cells:h,margin:m,numCells:y,calculatedImageSettings:x}=dt.useMemo(()=>{let w=d.getModules();const S=L3(s,o),_=w.length+S*2,k=F3(w,c,S,l);return{cells:w,margin:S,numCells:_,calculatedImageSettings:k}},[d,c,l,s,o]);return{qrcode:d,margin:m,cells:h,numCells:y,calculatedImageSettings:x}}var D3=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),M3=dt.forwardRef(function(e,n){const s=e,{value:o,size:l=Fb,level:c=Lb,bgColor:f=Db,fgColor:d=Mb,includeMargin:h=Ib,minVersion:m=Bb,boostLevel:y,marginSize:x,imageSettings:w}=s,_=Jf(s,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:k}=_,E=Jf(_,["style"]),P=w==null?void 0:w.src,C=dt.useRef(null),A=dt.useRef(null),D=dt.useCallback(he=>{C.current=he,typeof n=="function"?n(he):n&&(n.current=he)},[n]),[V,X]=dt.useState(!1),{margin:B,cells:G,numCells:ee,calculatedImageSettings:ue}=Vb({value:o,level:c,minVersion:m,boostLevel:y,includeMargin:h,marginSize:x,imageSettings:w,size:l});dt.useEffect(()=>{if(C.current!=null){const he=C.current,ge=he.getContext("2d");if(!ge)return;let Te=G;const ie=A.current,H=ue!=null&&ie!==null&&ie.complete&&ie.naturalHeight!==0&&ie.naturalWidth!==0;H&&ue.excavation!=null&&(Te=Ub(G,ue.excavation));const te=window.devicePixelRatio||1;he.height=he.width=l*te;const U=l/ee*te;ge.scale(U,U),ge.fillStyle=f,ge.fillRect(0,0,ee,ee),ge.fillStyle=d,D3?ge.fill(new Path2D(zb(Te,B))):G.forEach(function(O,$){O.forEach(function(ye,be){ye&&ge.fillRect(be+B,$+B,1,1)})}),ue&&(ge.globalAlpha=ue.opacity),H&&ge.drawImage(ie,ue.x+B,ue.y+B,ue.w,ue.h)}}),dt.useEffect(()=>{X(!1)},[P]);const Ce=Xf({height:l,width:l},k);let Ae=null;return P!=null&&(Ae=dt.createElement("img",{src:P,key:P,style:{display:"none"},onLoad:()=>{X(!0)},ref:A,crossOrigin:ue==null?void 0:ue.crossOrigin})),dt.createElement(dt.Fragment,null,dt.createElement("canvas",Xf({style:Ce,height:l,width:l,ref:D,role:"img"},E)),Ae)});M3.displayName="QRCodeCanvas";var $b=dt.forwardRef(function(e,n){const s=e,{value:o,size:l=Fb,level:c=Lb,bgColor:f=Db,fgColor:d=Mb,includeMargin:h=Ib,minVersion:m=Bb,boostLevel:y,title:x,marginSize:w,imageSettings:S}=s,_=Jf(s,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:k,cells:E,numCells:P,calculatedImageSettings:C}=Vb({value:o,level:c,minVersion:m,boostLevel:y,includeMargin:h,marginSize:w,imageSettings:S,size:l});let A=E,D=null;S!=null&&C!=null&&(C.excavation!=null&&(A=Ub(E,C.excavation)),D=dt.createElement("image",{href:S.src,height:C.h,width:C.w,x:C.x+k,y:C.y+k,preserveAspectRatio:"none",opacity:C.opacity,crossOrigin:C.crossOrigin}));const V=zb(A,k);return dt.createElement("svg",Xf({height:l,width:l,viewBox:`0 0 ${P} ${P}`,ref:n,role:"img"},_),!!x&&dt.createElement("title",null,x),dt.createElement("path",{fill:f,d:`M0,0 h${P}v${P}H0z`,shapeRendering:"crispEdges"}),dt.createElement("path",{fill:d,d:V,shapeRendering:"crispEdges"}),D)});$b.displayName="QRCodeSVG";function I3({tone:t="dark",align:e="left",className:n=""}){const s=t==="dark"?"rgba(200,216,240,.45)":"#7A8FA6",o=t==="dark"?"rgba(200,216,240,.7)":"#4A627A";return p.jsxs("p",{className:`font-body leading-snug ${e==="center"?"text-center":""} ${n}`,style:{fontSize:"11px",color:s,maxWidth:"480px"},children:[C3," ",p.jsx(We,{to:"/terms-of-service",style:{color:o,textDecoration:"underline"},children:"Terms"})," · ",p.jsx(We,{to:"/privacy-policy",style:{color:o,textDecoration:"underline"},children:"Privacy"})]})}function qv({src:t="web",msg:e,tone:n="dark",compact:s=!1}){const o=jb(t,e,{qr:!0}),l=Ab(t,e),c=n==="dark",f=c?"#FFFFFF":"#0C1726",d=c?"rgba(200,216,240,.7)":"#4A627A";return p.jsxs("div",{className:`flex ${s?"flex-row items-center gap-5":"flex-col items-center gap-5"}`,children:[p.jsx("div",{className:"rounded-xl p-3 shrink-0",style:{background:"#FFFFFF",border:"0.5px solid #C8D8F0"},children:p.jsx($b,{value:o,size:s?120:168,level:"M",marginSize:0,fgColor:"#0C1726",bgColor:"#FFFFFF"})}),p.jsxs("div",{className:s?"text-left":"text-center",children:[p.jsx("p",{className:"font-body font-semibold",style:{fontSize:"15px",color:f},children:"Scan with your phone to text us"}),p.jsxs("p",{className:"font-body mt-1",style:{fontSize:"13.5px",color:d},children:["or text"," ",p.jsx("a",{href:`sms:${Rb}`,className:"font-semibold",style:{color:f,textDecoration:"none"},children:_3})]}),p.jsxs("div",{className:`mt-3 inline-flex items-start gap-2 rounded-xl px-3.5 py-2.5 ${s?"":"mx-auto"}`,style:{background:c?"rgba(46,107,181,.22)":"#E8F0FB",border:c?"0.5px solid rgba(46,107,181,.35)":"0.5px solid #C8D8F0",maxWidth:"300px"},children:[p.jsx(vx,{className:"w-4 h-4 shrink-0 mt-0.5",style:{color:c?"#93C5FD":"#1B5199"}}),p.jsxs("p",{className:"font-body leading-snug text-left",style:{fontSize:"13px",color:f},children:["“",l,"”"]})]}),p.jsx("p",{className:"font-body mt-2",style:{fontSize:"11.5px",color:d},children:"Your first message is pre-written. Edit it or send as-is."}),p.jsx(I3,{tone:n,align:s?"left":"center",className:"mt-3"})]})]})}async function B3({email:t,phone:e="",zip:n="",source:s="web"}){const o=(t||"").trim().toLowerCase();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o))return"error";
288const l=z3(e),c=(n||"").replace(/\D/g,"").slice(0,5),f=va(),d=typeof window<"u"?window.location.pathname:null,h={email:o,phone:l||void 0,zip:c||void 0,source:s,page:d,utm_source:f.utm_source||void 0,utm_medium:f.utm_medium||void 0,utm_campaign:f.utm_campaign||void 0,utm_content:f.utm_content||void 0,utm_term:f.utm_term||void 0,referrer_url:typeof document<"u"&&document.referrer||void 0,landing_page_url:typeof window<"u"?window.location.href:void 0};if(!ap())return console.debug("[waitlist:noop]",h),"success";try{await zn.entities.WaitlistSignup.create(h)}catch(m){return console.warn("[waitlist] entity create failed",m),"error"}try{fetch("/functions/syncLeadToSupabase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"waitlist",email:o,zip:c||null,icp_tag:"other",utm_source:f.utm_source||"waitlist",utm_medium:f.utm_medium||null,utm_campaign:f.utm_campaign||null,utm_content:f.utm_content||s,utm_term:f.utm_term||null,referrer_url:h.referrer_url||null,landing_page_url:h.landing_page_url||null})}).catch(()=>{})}catch{}try{zn.analytics.track({eventName:"waitlist_submit",properties:{source:s,has_phone:!!l,has_zip:!!c}})}catch{}try{typeof window<"u"&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"waitlist_submit",source:s,has_phone:!!l,has_zip:!!c,...f}),typeof window.gtag=="function"&&window.gtag("event","waitlist_submit",{source:s}))}catch{}return"success"}function z3(t){const e=(t||"").replace(/\D/g,"");return e?e.length===10?`+1${e}`:e.length===11&&e.startsWith("1")?`+${e}`:e.length>=7?`+${e}`:"":""}const Hb=!1,Qe={eyebrow:"Membership",headline:"We're opening Rafter to new members in small groups.",body:"Every home gets a team that's actually paying attention — so we add members a few at a time. Leave your details and we'll reach out when it's your turn.",cta:"Join the waitlist",fields:{email:"Email address",phone:"Mobile number (optional)",zip:"ZIP"},fine:"No spam. Leave a number and we'll text you when it's your turn.",successTitle:"You're on the list.",successBody:"We'll reach out as we open the next group. If you're a member already, sign in as usual.",micro:"New memberships are opening in small groups."};function Oc({tone:t="dark",compact:e=!1,source:n="web",onSuccess:s}){const[o,l]=T.useState(""),[c,f]=T.useState(""),[d,h]=T.useState(""),[m,y]=T.useState(!e),[x,w]=T.useState("idle"),S=t==="dark",_={background:S?"rgba(255,255,255,.08)":"#FFFFFF",border:S?"0.5px solid rgba(255,255,255,.18)":"0.5px solid #C8D8F0",color:S?"#FFFFFF":"#0C1726",fontSize:"15px",borderRadius:"10px"},k=S?"rgba(200,216,240,.55)":"#7A8FA6",E=S?"#FFFFFF":"#0C1726";async function P(C){if(C.preventDefault(),x==="submitting")return;w("submitting");const A=await B3({email:o,phone:c,zip:d,source:n});w(A==="success"?"success":"error"),A==="success"&&s&&s()}return x==="success"?p.jsxs("div",{className:"flex items-start gap-3 rounded-xl px-5 py-4",style:{background:S?"rgba(74,222,128,.08)":"#EAF7EE",border:S?"0.5px solid rgba(74,222,128,.3)":"0.5px solid #B8E4C4"},children:[p.jsx(th,{className:"w-5 h-5 shrink-0 mt-0.5",style:{color:"#4ADE80"}}),p.jsxs("div",{children:[p.jsx("p",{className:"font-body font-semibold",style:{fontSize:"15px",color:E},children:Qe.successTitle}),p.jsx("p",{className:"font-body mt-1 leading-relaxed",style:{fontSize:"13.5px",color:k},children:Qe.successBody})]})]}):p.jsxs("form",{onSubmit:P,className:"w-full",noValidate:!0,children:[p.jsxs("div",{className:`flex flex-col ${e&&!m?"sm:flex-row":""} gap-2.5`,children:[p.jsx("input",{type:"email",inputMode:"email",autoComplete:"email",required:!0,placeholder:Qe.fields.email,value:o,onChange:C=>l(C.target.value),onFocus:()=>e&&y(!0),className:`w-full h-12 shrink-0 px-4 font-body outline-none ${e&&!m?"sm:flex-1":""}`,style:_,"aria-label":"Email address"}),m&&p.jsxs("div",{className:"flex gap-2.5",children:[p.jsx("input",{type:"tel",inputMode:"tel",autoComplete:"tel",placeholder:Qe.fields.phone,value:c,onChange:C=>f(C.target.value),className:"h-12 shrink-0 px-4 font-body outline-none flex-1 min-w-0",style:_,"aria-label":"Mobile number (optional)"}),p.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"postal-code",placeholder:Qe.fields.zip,value:d,maxLength:5,onChange:C=>h(C.target.value.replace(/\D/g,"")),className:"h-12 shrink-0 px-4 font-body outline-none w-[112px] sm:w-[128px]",style:_,"aria-label":"ZIP code (optional)"})]}),p.jsx("button",{type:"submit",disabled:x==="submitting",className:`h-12 shrink-0 px-6 inline-flex items-center justify-center gap-2 font-body font-medium text-sm transition-all hover:opacity-90 whitespace-nowrap ${e&&!m?"w-full sm:w-auto":"w-full"}`,style:{background:S?"#FFFFFF":"#1B5199",color:S?"#0C1726":"#FFFFFF",borderRadius:"10px"},children:x==="submitting"?p.jsx(vc,{className:"w-4 h-4 animate-spin"}):p.jsxs(p.Fragment,{children:[Qe.cta,p.jsx(Ns,{className:"w-4 h-4"})]})})]}),x==="error"&&p.jsx("p",{className:"font-body mt-2",style:{fontSize:"12.5px",color:"#F87171"},children:"That didn’t go through — check the email address and try again."}),p.jsxs("p",{className:"font-body mt-2.5 flex items-start gap-1.5 text-left",style:{fontSize:"11.5px",color:k,lineHeight:1.5},children:[p.jsx(B_,{className:"w-3 h-3 shrink-0 mt-[2px]"})," ",p.jsx("span",{children:Qe.fine})]})]})}const U3={white:{background:"#FFFFFF",color:"#0C1726",border:"0.5px solid #FFFFFF"},blue:{background:"#1B5199",color:"#FFFFFF",border:"0.5px solid #1B5199"},"outline-light":{background:"rgba(255,255,255,.06)",color:"#FFFFFF",border:"0.5px solid rgba(255,255,255,.35)"},"outline-dark":{background:"#FFFFFF",color:"#0C1726",border:"0.5px solid #C8D8F0"},"link-light":{background:"transparent",color:"#93C5FD",border:"none",padding:0},"link-dark":{background:"transparent",color:"#1B5199",border:"none",padding:0}};function Ms({source:t="web",location:e="unknown",label:n=Qe.cta,variant:s="white",fullWidth:o=!1,size:l="md",className:c=""}){const[f,d]=T.useState(!1);T.useEffect(()=>{if(!f)return;const x=S=>{S.key==="Escape"&&d(!1)};document.addEventListener("keydown",x);const w=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",x),document.body.style.overflow=w}},[f]);const h=s.startsWith("link"),m=h?"inline-flex items-center gap-1.5 font-body font-medium transition-opacity hover:opacity-75":`inline-flex items-center justify-center gap-2 font-body font-medium rounded-lg transition-all hover:opacity-90 hover:translate-y-[-1px] ${l==="lg"?"px-8 py-4 text-base":"px-7 py-3.5 text-sm"}`,y={...U3[s],...h?{}:{borderRadius:"10px"}};return p.jsxs(p.Fragment,{children:[p.jsxs("button",{type:"button",className:`${m} ${o?"w-full":""} ${c}`,style:y,onClick:()=>{d(!0),Fr("join_waitlist",e)},children:[n,p.jsx(Ns,{className:h?"w-3.5 h-3.5":"w-4 h-4"})]}),typeof document<"u"&&VE.createPortal(p.jsx(Tc,{children:f&&p.jsx(at.div,{className:"fixed inset-0 z-[100] flex items-center justify-center px-4",style:{background:"rgba(12,23,38,.72)",backdropFilter:"blur(4px)"},initial:{opacity:0}
288,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:()=>d(!1),children:p.jsxs(at.div,{role:"dialog","aria-modal":"true","aria-label":Qe.cta,className:"relative w-full max-w-md rounded-2xl p-7 sm:p-8",style:{background:"#0C1726",border:"0.5px solid rgba(255,255,255,.14)",boxShadow:"0 30px 80px rgba(0,0,0,.45)"},initial:{opacity:0,y:16,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.98},transition:{duration:.22,ease:"easeOut"},onClick:x=>x.stopPropagation(),children:[p.jsx("button",{type:"button","aria-label":"Close",className:"absolute top-4 right-4 rounded-full p-1.5 transition-opacity hover:opacity-70",style:{color:"rgba(200,216,240,.7)"},onClick:()=>d(!1),children:p.jsx(Go,{className:"w-4 h-4"})}),p.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-[0.2em] mb-3",style:{color:"rgba(147,197,253,.6)"},children:Qe.eyebrow}),p.jsx("p",{className:"font-heading font-normal leading-tight mb-2",style:{fontSize:"24px",color:"#FFFFFF"},children:Qe.headline}),p.jsx("p",{className:"font-body leading-relaxed mb-6",style:{fontSize:"14px",color:"rgba(200,216,240,.7)"},children:Qe.body}),p.jsx(Oc,{tone:"dark",source:t})]})})}),document.body)]})}function V3(){return T.useMemo(()=>{const t=va(),e=new URLSearchParams;t.utm_source&&e.set("utm_source",t.utm_source),t.utm_medium&&e.set("utm_medium",t.utm_medium),t.utm_campaign&&e.set("utm_campaign",t.utm_campaign),t.utm_content&&e.set("utm_content",t.utm_content),t.utm_term&&e.set("utm_term",t.utm_term);const n=e.toString();return`https://app.rafterhome.com/signup${n?`?${n}`:""}`},[])}function lp({variant:t="full",ctaLabel:e,ctaHref:n}){const[s,o]=T.useState(!1);V3();const l=t==="minimal";return t==="logo-only"?p.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 backdrop-blur-md",style:{background:"var(--color-bg)",borderBottom:"0.5px solid var(--color-border)"},children:p.jsx("div",{className:"max-w-5xl mx-auto h-16 flex items-center justify-center px-6 lg:px-0",children:p.jsx(We,{to:"/",children:p.jsx("img",{src:"https://media.base44.com/images/public/69ed1a68d76c21a3e1394b53/a96bcc7fe_Asset13x-8.png",alt:"Rafter",className:"h-[26px] md:h-9 w-auto object-contain"})})})}):p.jsxs("nav",{className:"fixed top-0 left-0 right-0 z-50 backdrop-blur-md",style:{background:"var(--color-bg)",borderBottom:"0.5px solid var(--color-border)"},children:[p.jsxs("div",{className:"max-w-5xl mx-auto h-16 flex items-center justify-between gap-3 px-6 lg:px-0",children:[p.jsx(We,{to:"/",children:p.jsx("img",{src:"https://media.base44.com/images/public/69ed1a68d76c21a3e1394b53/a96bcc7fe_Asset13x-8.png",alt:"Rafter",className:"h-[26px] md:h-9 w-auto object-contain"})}),l?p.jsx("a",{href:n||"#",className:"btn btn-primary whitespace-nowrap !py-2.5 !px-3.5 !text-[12px] md:!py-3 md:!px-6 md:!text-[13px]",onClick:()=>Fr("get_started","nav_minimal"),children:e||"Start free trial"}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"hidden md:flex items-center gap-4 lg:gap-6",children:[p.jsx(We,{to:"/new-homeowner",className:"transition-colors hover:opacity-80 whitespace-nowrap",style:{fontSize:"13px",color:"var(--color-muted)"},children:"New Homeowners"}),p.jsx(We,{to:"/membership",className:"transition-colors hover:opacity-80 whitespace-nowrap",style:{fontSize:"13px",color:"var(--color-muted)"},children:"Membership"}),p.jsx("a",{href:"https://app.rafterhome.com",className:"transition-colors hover:opacity-80 whitespace-nowrap",style:{fontSize:"13px",color:"var(--color-muted)"},children:"Sign In"}),p.jsx(Ms,{source:"nav",location:"nav_desktop",variant:"blue",label:Qe.cta,className:"whitespace-nowrap !py-[13px] !px-6 !text-[13px] !rounded-lg"})]}),p.jsx("button",{className:"md:hidden",style:{color:"var(--color-ink)"},onClick:()=>o(!s),children:s?p.jsx(Go,{className:"w-5 h-5"}):p.jsx(U_,{className:"w-5 h-5"})})]})]}),!l&&p.jsx(Tc,{children:s&&p.jsx(at.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden",style:{background:"var(--color-bg)",borderTop:"0.5px solid var(--color-border)"},children:p.jsxs("div",{className:"px-6 py-4 space-y-3",children:[p.jsx(We,{to:"/new-homeowner",className:"block transition-opacity hover:opacity-80",style:{fontSize:"13px",color:"var(--color-muted)"},onClick:()=>o(!1),children:"New Homeowners"}),p.jsx(We,{to:"/membership",className:"block transition-opacity hover:opacity-80",style:{fontSize:"13px",color:"var(--color-muted)"},onClick:()=>o(!1),children:"Membership"}),p.jsx("a",{href:"https://app.rafterhome.com",className:"block transition-opacity hover:opacity-80",style:{fontSize:"13px",color:"var(--color-muted)"},onClick:()=>o(!1),children:"Sign In"}),p.jsx(Ms,{source:"nav",location:"nav_mobile",variant:"blue",label:Qe.cta,fullWidth:!0,className:"!text-[13px]"})]})})})]})}async function $3(t,{firstName:e=null,source:n="newsletter",website:s=""}={}){const o=new URLSearchParams(window.location.search),l=(t||"").trim().toLowerCase();if(s)return"success";
288let c=!1;try{await zn.entities.NewsletterSubscriber.create({email:l,source:n}),c=!0}catch(f){console.warn("[newsletter] Base44 create failed",f)}try{const f=await fetch("/functions/syncLeadToSupabase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"newsletter",email:l,first_name:e?e.trim():null,website:s,utm_source:o.get("utm_source")||null,utm_medium:o.get("utm_medium")||null,utm_campaign:o.get("utm_campaign")||null,utm_content:o.get("utm_content")||n,referrer_url:document.referrer||null,landing_page_url:window.location.href})}),d=f.ok?await f.json().catch(()=>({})):{};return d.success?d.duplicate?"duplicate":"success":c?"success":"error"}catch{return c?"success":"error"}}function Wb({hideNewsletter:t=!1,minimal:e=!1}){const[n,s]=T.useState(""),[o,l]=T.useState(!1),[c,f]=T.useState(!1),[d,h]=T.useState(""),[m,y]=T.useState(!1);T.useEffect(()=>{if(typeof window>"u")return;if("requestIdleCallback"in window){const S=window.requestIdleCallback(()=>y(!0),{timeout:4e3});return()=>window.cancelIdleCallback&&window.cancelIdleCallback(S)}const w=setTimeout(()=>y(!0),2e3);return()=>clearTimeout(w)},[]);const x=async w=>{w.preventDefault(),l(!0),await $3(n,{source:"footer",website:d}),l(!1),f(!0)};return e?p.jsx("footer",{style:{background:"#0C1726"},children:p.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8 flex flex-col items-center gap-3 text-center",style:{borderTop:"0.5px solid rgba(255,255,255,.1)"},children:[p.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"rgba(255,255,255,.3)"},children:[p.jsx("a",{href:"mailto:[email protected]",className:"transition-colors hover:opacity-70",children:"[email protected]"}),p.jsx("span",{children:"·"}),p.jsx("a",{href:"tel:+18447147422",className:"transition-colors hover:opacity-70",children:"844-714-7422"})]}),p.jsxs("p",{className:"text-xs",style:{color:"rgba(255,255,255,.3)"},children:["© ",new Date().getFullYear()," Five Tree Orchard, Inc. All rights reserved."]}),p.jsxs("div",{className:"flex items-center gap-5",children:[p.jsx(We,{to:"/privacy-policy",className:"text-xs transition-colors hover:opacity-70",style:{color:"rgba(255,255,255,.3)"},children:"Privacy Policy"}),p.jsx(We,{to:"/terms-of-service",className:"text-xs transition-colors hover:opacity-70",style:{color:"rgba(255,255,255,.3)"},children:"Terms"})]})]})}):p.jsxs("footer",{style:{background:"#0C1726"},children:[!t&&p.jsx("div",{className:"px-6 py-12",style:{background:"#0C1726",borderBottom:"1px solid rgba(255,255,255,.1)"},children:p.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[p.jsx("p",{className:"t-label",style:{color:"rgba(255,255,255,.45)",fontSize:"13px"},children:"Smart, useful home intelligence — monthly."}),c?p.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2",children:[p.jsx(th,{className:"w-4 h-4",style:{color:"var(--color-primary)"}}),p.jsx("p",{className:"text-sm font-body",style:{color:"rgba(255,255,255,.6)"},children:"You're subscribed."})]}):p.jsxs("form",{onSubmit:x,className:"mt-4 flex flex-col sm:flex-row justify-center gap-3 sm:gap-0",style:{maxWidth:"550px",margin:"1rem auto 0"},children:[p.jsx("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",value:d,onChange:w=>h(w.target.value),style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",opacity:0}}),p.jsx("input",{type:"email",required:!0,placeholder:"Your email",value:n,onChange:w=>s(w.target.value),className:"flex-1 px-4 py-3 text-sm font-body text-white focus:outline-none",style:{background:"rgba(255,255,255,.08)",border:"1px solid rgba(255,255,255,.12)",color:"rgba(255,255,255,.9)",borderRadius:"6px 0 0 6px"}}),p.jsx("button",{type:"submit",disabled:o,className:"px-6 py-3 font-body font-medium text-sm text-white transition-opacity hover:opacity-90 flex items-center justify-center",style:{background:"var(--color-primary)",borderRadius:"0 6px 6px 0"},children:o?p.jsx(vc,{className:"w-4 h-4 animate-spin"}):"Subscribe"})]})]})}),p.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-16",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[p.jsxs("div",{children:[p.jsx("img",{src:"https://media.base44.com/images/public/69ed1a68d76c21a3e1394b53/a96bcc7fe_Asset13x-8.png",alt:"Rafter",className:"h-8 w-auto object-contain mb-3",style:{filter:"brightness(0) invert(1)"}}),p.jsx("p",{className:"text-sm leading-relaxed max-w-xs",style:{color:"rgba(255,255,255,.5)"},children:"Your home, always ahead."})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest mb-4",style:{color:"rgba(255,255,255,.35)"},children:"Pages"}),p.jsxs("div",{className:"space-y-2.5",children:[p.jsx(We,{to:"/membership",className:"block text-sm transition-colors hover:text-white",style:{color:"rgba(255,255,255,.6)"},children:"Membership"}),p.jsx(We,{to:"/new-homeowner",className:"block text-sm transition-colors hover:text-white",style:{color:"rgba(255,255,255,.6)"},children:"New Homeowners"}),p.jsx(We,{to:"/for-insurers",className:"block text-sm transition-colors hover:text-white",style:{color:"rgba(255,255,255,.6)"},children:"For Insurance Partners"}),p.jsx(We,{to:"/about-us",className:"block text-sm transition-colors hover:text-white",style:{color:"rgba(255,255,255,.6)"},children:"About Us"}),p.jsx(We,{to:"/join-us",className:"block text-sm transition-colors hover:text-white",style:{color:"rgba(255,255,255,.6)"},children:"Join Us"})]})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest mb-4",style:{color:"rgba(255,255,255,.35)"},children:"Contact"}),p.jsx("p",{className:"text-sm",style:{color:"rgba(255,255,255,.6)"},children:"[email protected]"}),p.jsxs("p",{className:"text-sm mt-2.5",style:{color:"rgba(255,255,255,.6)"},children:[Qe.micro," ",p.jsx(We,{to:"/waitlist",className:"transition-colors hover:text-white",style:{color:"rgba(255,255,255,.8)",textDecoration:"underline"},children:Qe.cta})]})]})]}),p.jsxs("div",{className:"mt-16 pt-8 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",style:{borderTop:"0.5px solid rgba(255,255,255,.1)"},children:[p.jsxs("p",{className:"text-xs",style:{color:"rgba(255,255,255,.3)"},children:["© ",new Date().getFullYear()," Five Tree Orchard, Inc. All rights reserved."]}),p.jsxs("div",{className:"flex items-center gap-5",children:[p.jsx(We,{to:"/privacy-policy",className:"text-xs transition-colors hover:opacity-70",style:{color:"rgba(255,255,255,.3)"},children:"Privacy Policy"}),p.jsx(We,{to:"/terms-of-service",className:"text-xs transition-colors hover:opacity-70",style:{color:"rgba(255,255,255,.3)"},children:"Terms"})]})]})]}),m&&p.jsx("div",{"aria-hidden":"true",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},dangerouslySetInnerHTML:{__html:`
289<!-- PitchWall -->
290<a href="https://pitchwall.co/product/rafter-1?utm_source=badge" style="display: inline-flex">
291  <img
292    src="https://pitchwall.co/images/listed/pitchwall-dark.png"
293    width="180"
294    height="60"
295    alt="Listed on PitchWall"
296  />
297</a>
298
299<!-- Uneed -->
300<a href="https://www.uneed.best/tool/rafter">
301    <img src="https://www.uneed.best/EMBED3B.png" alt="Uneed Embed Badge" />
302    </a>
303
304<!-- StartupInspire -->
305<a href="https://www.startupinspire.com"
306target="_blank"><img src="https://www.startupinspire.com/images/badge_2.svg" alt="Featured on Startup Inspire"></a>
307
308<!-- Startup Fame -->
309<a href="https://startupfa.me/s/rafterhome.com-585?utm_source=rafterhome.com" target="_blank"><img src="https://startupfa.me/badges/featured/dark.webp" alt="rafter - Featured on Startup Fame" width="171" height="54" /></a>
310
311<!-- Foundrlist -->
312<a href="https://www.foundrlist.com/product/rafter?utm_source=badge&amp;utm_medium=embed" target="_blank" rel="noopener">
313  <img src="https://www.foundrlist.com/api/badge/rafter" alt="Featured on FoundrList" width="150" height="48" />
314</a>
315
316<!-- 12Tools -->
317<a href="https://twelve.tools" target="_blank"><img src="https://twelve.tools/badge0-dark.svg" alt="Featured on Twelve Tools" width="200" height="54"></a>
318
319<!-- Endors -->
320<a href="https://endors.me/product/rafter" target="_blank" rel="noopener noreferrer">
321  <picture>
322    <source media="(prefers-color-scheme: dark)" srcset="https://endors.me/api/badge/rafter?theme=dark" />
323    <img src="https://endors.me/api/badge/rafter?theme=light" alt="Verified on Endors" />
324  </picture>
325</a>
326
327<!-- SaaSCity -->
328<a href="https://saascity.io/live/rafter" target="_blank" rel="noopener">
329  <img src="https://saascity.io/badges/featured-dark.svg" alt="Featured on SaaSCity" width="150" height="54" />
330</a>
331
332<!-- Ufind.best -->
333<a href="https://ufind.best/products/rafter?utm_source=ufind.best" target="_blank" rel="noopener"><img src="https://ufind.best/badges/ufind-best-badge-light.svg" alt="Featured on ufind.best" width="150" /></a>
334
335<!-- Huzzler -->
336<a href="https://huzzler.so/products/KVcfUjWcwr/rafter?utm_source=huzzler_product_website&utm_medium=badge&utm_campaign=free_listing" target="_blank" rel="noopener noreferrer">
337    <img alt="Huzzler Embed Badge" src="https://huzzler.so/assets/images/embeddable-badges/featured.png" width="159" height="55" />
338</a>
339
340<!-- ShipBoost -->
341<a href="https://shipboost.io/tools/rafter" data-shipboost-badge="free-launch" target="_blank" rel="noopener">
342  <img src="https://shipboost.io/badge/cmqs0bvus0001od0sl6asa08z?theme=dark" alt="Featured on ShipBoost" width="244" height="56" style="width:244px;height:56px;" />
343</a>
344
345<!-- Turbo0 -->
346<a href="https://turbo0.com/item/rafterhome" target="_blank" rel="noopener noreferrer">
347  <img src="https://img.turbo0.com/badge-listed-light.svg" alt="Listed on Turbo0" style="height: 54px; width: auto;" />
348</a>
349
350<!-- MarketingDB -->
351<a href="https://marketingdb.live" target="_blank" rel="noopener noreferrer nofollow sponsored"><img src="https://marketingdb.live/badge.svg" alt="Listed on MarketingDB" width="190" height="44"/></a>
352
353<!-- PeerPush -->
354<a href="https://peerpush.com/p/rafter-tnpr"
355  target="_blank"
356  rel="noopener"
357>
358  <img
359    src="https://peerpush.com/p/rafter-tnpr/badge.png"
360    alt="Rafter on PeerPush"
361    style="width: 230px;"
362  />
363</a>
364
365<!-- OpenLaunch -->
366<a href="https://open-launch.com/projects/rafter" target="_blank" rel="noopener">
367  <img src="https://open-launch.com/api/badge/87fbced4-8702-4cb5-88ae-7814343d96af/featured-dark.svg" alt="Featured on Open-Launch" width="200" height="50" />
368</a>
369
370<!-- ProductBurst -->
371<!-- productburst-badge-start -->
372
373<a href="https://productburst.com/product/rafter-home" target="_blank" rel="noopener noreferrer">
374  <img src="https://3188a5210b07f4ad511bbcdc967bc67b.cdn.bubble.io/f1744886192867x526037143822301250/1.png" 
375       alt="Featured on ProductBurst" width="160" />
376</a>
377
378<!-- productburst-badge-end -->
379
380<!-- Wired Business -->
381<a href="https://wired.business" target="_blank"><img src="https://wired.business/badge0-dark.svg" alt="Featured on Wired Business" width="200" height="54"></a>
382
383<!-- Sumodir -->
384<a href="https://sumodir.com" target="_blank" rel="dofollow"><img src="https://sumodir.com/badge.png" alt="Featured on SumoDir" width="200" height="54" /></a>
385
386<!-- Earlyhunt -->
387<a href="https://earlyhunt.com/project/rafter" target="_blank" rel="noopener">
388  <img src="https://earlyhunt.com/badges/earlyhunt-badge-dark.svg" alt="Featured on EarlyHunt" width="265" height="58" />
389</a>
390
391<!-- Startups.fm -->
392<a href="https://startups.fm/startups/rafter" target="_blank" rel="noopener noreferrer">
393  <img src="https://startups.fm/badge/rafter" alt="Featured on Startups.fm" width="240" height="63" />
394</a>
395
396<!-- BuildVoyage -->
397<a href="https://buildvoyage.com/products/rafter-home?ref=badge">
398  <img src="https://buildvoyage.com/images/featured_badge.png" alt="Featured on BuildVoyage" width="250" />
399</a>
400
401<!-- SaaSBison -->
402<a href="https://saasbison.com" target="_blank" rel="dofollow"><img src="https://saasbison.com/badge.png" alt="Featured on SaaSBison" width="200" height="54" /></a>
403
404<!-- Dofollow.Tools -->
405<a href="https://dofollow.tools" target="_blank"><img src="https://dofollow.tools/badge/badge_dark.svg" alt="Featured on Dofollow.Tools" width="200" height="54" /></a>
406
407<!-- Similarlabs -->
408<a href="https://similarlabs.com" target="_blank">
409  <img src="https://similarlabs.com/similarlabs-embed-badge-dark.svg" alt="List on Similarlabs" width="124" height="40" />
410</a>
411
412<!-- SaaSFame -->
413<a href="https://saasfame.com/item/rafter-rafterhomecom" target="_blank" rel="noopener noreferrer">
414<img src="https://saasfame.com/badge-light.svg" alt="Featured on saasfame.com" style="height: 54px; width: auto;" />
415</a>
416
417<!-- NewTool.site -->
418<a href="https://newtool.site/item/rafter-rafterhomecom" target="_blank" rel="noopener noreferrer">
419  <img src="https://newtool.site/badges/newtool-dark.svg" alt="Featured on NewTool.site" height = "54px" width = "auto" />
420</a>
421
422<!-- Uno Directory -->
423<a href="https://uno.directory" target="_blank" rel="noopener">
424  <img src="https://uno.directory/uno-directory.svg" alt="Listed on Uno Directory" width="120" height="30" />
425</a>
426
427<!-- Show Me Best AI -->
428<a href="https://showmebest.ai" target="_blank"><img src="https://showmebest.ai/badge/feature-badge-dark.webp" alt="Featured on ShowMeBestAI" width="220" height="60"></a>
429
430<!-- Starter Best -->
431<a href="https://starterbest.com" target="_blank" rel="noopener noreferrer"> 
432    <img src="https://starterbest.com/badages-awards.svg"
433    alt="Featured on Starter Best" style="height: 54px; width: auto;"/>
434</a>
435
436<!-- Fazier -->
437<a href="https://fazier.com" target="_blank"><img src="https://fazier.com/api/v1//public/badges/launch_badges.svg?badge_type=launched&theme=dark" width=120 alt="Fazier badge" /></a>
438
439<!-- SaaSGrow -->
440<a href="https://saasgrow.app?ref=rafterhome.com" target="_blank" rel="noopener">
441  <img src="https://saasgrow.app/api/badge?type=featured&style=dark" alt="Rafter on S
441aaSGrow" width="240" height="54" />
442</a>
443
444<!-- Dang AI -->
445<a href="https://dang.ai" target="_blank" rel="dofollow noopener" style="display:inline-block;text-decoration:none;"><img src="https://assets.dang.ai/badges/dang-verified-dark.png" alt="Verified on DANG!" width="260" height="94" style="display:block;width:260px;max-width:100%;height:auto;border:0;outline:none;text-decoration:none;" /></a>
446
447<!-- DodoDirectory -->
448<a href="https://dododirectory.com" target="_blank" rel="dofollow"><img src="https://dododirectory.com/badge-dark.png" alt="Featured on DodoDirectory" width="200" height="54" /></a>
449
450<!-- Indie Deals -->
451<a href="https://indie.deals?ref=https%3A%2F%2Frafterhome.com" target="_blank" rel="noopener noreferrer">
452        <style>
453          .indie-deals-badge {
454            position: relative;
455            overflow: hidden;
456            display: inline-block;
457          }
458          .indie-deals-badge::after {
459            content: '';
460            position: absolute;
461            top: 0;
462            left: 0;
463            width: 100%;
464            height: 100%;
465            background: linear-gradient(45deg, 
466              rgba(255,255,255,0) 0%, 
467              rgba(255,255,255,0) 40%, 
468              rgba(255,255,255,0.9) 50%, 
469              rgba(255,255,255,0) 60%, 
470              rgba(255,255,255,0) 100%);
471            transform: translateX(-100%) rotate(45deg);
472            pointer-events: none;
473            transition: transform 0.3s ease-out;
474          }
475          .indie-deals-badge:hover::after {
476            animation: indie-deals-shine 1s ease-out;
477          }
478          @keyframes indie-deals-shine {
479            0% { transform: translateX(-100%) rotate(45deg); }
480            50% { transform: translateX(0%) rotate(45deg); }
481            100% { transform: translateX(100%) rotate(45deg); }
482          }
483        </style>
484        <svg 
485          width="180" 
486          height="60" 
487          viewBox="0 0 180 60"
488          xmlns="http://www.w3.org/2000/svg"
489          class="indie-deals-badge"
490        >
491          <defs>
492            <linearGradient id="badgeGradient" x1="0%" y1="0%" x2="100%" y2="100%">
493              <stop offset="0%" stop-color="#ffffff" />
494              <stop offset="100%" stop-color="#e6f0fc" />
495            </linearGradient>
496          </defs>
497          
498          <rect 
499            width="180" 
500            height="60" 
501            rx="10" 
502            fill="url(#badgeGradient)"
503          />
504          
505          <rect 
506            x="0.75" 
507            y="0.75" 
508            width="178.5" 
509            height="58.5" 
510            rx="9.25" 
511            fill="none"
512            stroke="#0070f3" 
513            stroke-width="1.5" 
514            stroke-opacity="0.3"
515          />
516          
517          <image 
518            href="https://indie.deals/logo_badge.png"
519            x="14.4"
520            y="12"
521            width="36"
522            height="36"
523            preserveAspectRatio="xMidYMid meet"
524            filter="drop-shadow(1px 1px 2px rgba(0,0,0,0.15))"
525          />
526          
527          <text 
528            x="120.60000000000001" 
529            y="22.8" 
530            text-anchor="middle" 
531            dominant-baseline="middle"
532            font-family="system-ui, -apple-system, sans-serif"
533            font-size="10.799999999999999"
534            font-weight="normal"
535            fill="#4b5563"
536            letter-spacing="0.01em"
537          >
538            Find us on
539          </text>
540          <text 
541            x="120.60000000000001" 
542            y="39" 
543            text-anchor="middle" 
544            dominant-baseline="middle"
545            font-family="system-ui, -apple-system, sans-serif"
546            font-size="13.2"
547            font-weight="bold"
548            fill="#0070f3"
549            letter-spacing="0.01em"
550          >
551            Indie.Deals
552          </text>
553        </svg>
554      </a>
555
556<!-- BigKR -->
557<a href="https://bigkr.com" target="_blank"><img src="https://bigkr.com/badge/badge_dark.svg" alt="Featured on BigKr" width="200" height="54" /></a>
558
559<!-- hicyou -->
560<a href="https://hicyou.com"><img src="https://hicyou.com/badge/featured-dark.svg" alt="Featured" /></a>
561
562<!-- WebSpot -->
563<a href="https://webspot.app" target="_blank" rel="noopener noreferrer">
564  <img src="https://webspot.app/featured-dark.svg" alt="Featured on Webspot" style="height: 54px; width: auto;" />
565</a>
566
567<!-- Launch (trylaunch.ai) -->
568<!-- Launch Badge - Embed this badge and get a dofollow backlink! -->
569<a href="https://trylaunch.ai/launch/rafter" target="_blank" rel="dofollow" style="display: inline-block; text-decoration: none;">
570  <img src="https://trylaunch.ai/badges/badge-color.png" alt="Featured on Launch" height="53" style="display: block; height: 53px; width: auto;" />
571</a>
572
573<!-- DailyPings -->
574<a href="https://dailypings.com/p/rafter" target="_blank" rel="noopener" title="Featured on DailyPings">
575  <img src="https://dailypings.com/badge.svg" alt="Featured on DailyPings" width="179" height="32" />
576</a>
577
578<!-- VerifiedDR -->
579<a href="https://verifieddr.com/website/rafterhome-com" target="_blank"><img src="https://verifieddr.com/badge/rafterhome-com.svg?metric=truedr" alt="Verified DR - Verified Domain Rating for rafterhome.com" width="220" height="68" /></a>
580
581<!-- Bowora -->
582<a href="https://bowora.com/?via=2gfa1346" style="
583      display: inline-flex;
584      align-items: center;
585      gap: 10px;
586      width: 170px;
587      height: 50px;
588      background-color: #fff;
589      color: #000;
590      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
591      padding: 8px 14px;
592      border-radius: 8px;
593      text-decoration: none;
594      border: 1px solid #E8E8E8;
595    " target="_blank">
596      <svg width="35" height="35" viewBox="0 0 150 150" fill="none" xmlns="http://www.w3.org/2000/svg">
597  <g transform="translate(31.1875, 18.1874)" fill="#000">
598    <path d="M87.5343464,15.4046144 C88.0800499,16.2992254 87.7980596,17.4698555 86.9050901,18.0165331 C86.0121207,18.5633415 84.8423829,18.2806539 84.2966794,17.3859122 C81.7117678,13.1474282 78.0968081,9.80172458 73.4648555,7.33755659 L73.4485366,7.32879615 C68.8772902,4.83909213 63.5398394,3.61244746 57.444409,3.61244746 L9.3017365,3.61244746 C7.67506992,3.61244746 6.3960609,3.83953898 5.49238625,4.41819874 L5.45674581,4.4405444 C4.79524344,4.84409996 4.32995935,5.45833757 4.0239476,6.27503287 C3.73947677,7.26368123 3.60644521,8.42777375 3.60644521,9.76432926 L3.60644521,103.544841 C3.60644521,104.950303 3.75631787,106.263062 4.0658545,107.495669 C4.27578065,108.239391 4.6709588,108.810258 5.28428782,109.184211 L5.31979771,109.20657 C6.22347236,109.785151 7.50248138,110.012269 9.12927851,110.012269 L59.1699028,110.012269 C63.7602097,110.012269 68.0783175,109.267239 72.1226597,107.769727 C76.1497692,106.173758 79.6895314,103.98404 82.7378993,101.19469 C83.5107618,100.487317 84.7118318,100.541579 85.4181132,101.315897 C86.1243946,102.090216 86.0708687,103.293142 85.2967007,104.000384 C81.9088999,107.100795 77.9767011,109.539466 73.4985376,111.311429 L73.4602862,111.326073 C68.9979194,112.981273 64.2351545,113.8126 59.1699028,113.8126 L9.12927851,113.8126 C6.62504751,113.8126 4.6896276,113.307371 3.2936448,112.419559 C1.8549718,111.536324 0.878319095,
598110.227096 0.397499432,108.466901 L0.387969203,108.430944 C0.00649891912,106.918395 -0.1875,105.289999 -0.1875,103.544841 L-0.1875,9.76432926 C-0.1875,7.97589194 0.0187707215,6.42738608 0.409379582,5.11588281 L0.444889478,5.00826015 C1.06187393,3.31376875 2.08082518,2.0552073 3.46675555,1.20522233 C4.8626078,0.317842042 6.79815825,-0.1874 9.3017365,-0.1874 L57.444409,-0.1874 C64.2296714,-0.1874 70.1626962,1.21570871 75.252361,3.98591679 C80.5093922,6.78394907 84.5995579,10.5933023 87.5343464,15.4046144 Z"></path>
599    <path d="M18.1870648,100.8126 C16.6872227,100.8126 15.520287,100.518396 14.687172,99.9299894 C13.9369898,99.4256779 13.4369118,98.6692106 13.1873299,97.6604566 C12.9372256,96.567738 12.8125,95.3909238 12.8125,94.130538 L12.8125,19.2423752 C12.8125,17.9815965 12.9372256,16.8888779 13.1873299,15.9647434 C13.5207588,14.9559894 14.0622378,14.1995221 14.8124201,13.6952106 C15.6459269,13.1068035 16.8124708,12.8126 18.3128353,12.8126 L53.1886048,12.8126 C57.8554332,12.8126 61.9387285,13.8632708 65.4386213,15.9647434 C69.0219693,18.066085 71.8139951,20.9235009 73.8135234,24.537515 C75.8135741,28.1519222 76.7720677,32.1020566 76.688482,36.3885735 C76.7720677,38.5740106 76.5218328,40.7170071 75.9382997,42.8183487 C75.3548972,44.9198213 74.4798587,46.8946265 73.3134454,48.7439434 C72.2298343,50.5090336 70.8552402,51.9800514 69.188096,53.1563416 C71.438251,54.5853115 73.3548465,56.4346284 74.9381438,58.7036372 C76.5213104,60.9731699 77.729386,63.4943345 78.5626316,66.2681788 C79.3971832,69.0416301 79.8125,71.9416177 79.8125,74.9670938 C79.7302203,78.5811079 79.0628402,81.9848831 77.8129717,85.1790743 C76.5631033,88.2891699 74.771364,91.0204424 72.4380151,93.3735468 C70.1045356,95.7271752 67.3963567,97.576361 64.3126949,98.9208424 C61.2291637,100.181752 57.9374518,100.8126 54.437559,100.8126 L18.186673,100.8126 L18.1870648,100.8126 Z" fill-rule="nonzero"></path>
600  </g>
601</svg>
602      <div style="display: flex; flex-direction: column; line-height: 1.2;">
603        <span style="font-size: 10px; font-weight: normal;">Featured on</span>
604        <span style="font-size: 16px; font-weight: 700;">Bowora</span>
605      </div>
606    </a>
607
608<!-- ToolFame -->
609<a href="https://toolfame.com/item/rafter" target="_blank" rel="noopener noreferrer">
610<img src="https://toolfame.com/badge-light.svg" alt="Featured on toolfame.com" style="height: 54px; width: auto;" />
611</a>
612
613<!-- ToolFio -->
614<a href="https://toolfio.com" target="_blank" rel="dofollow"><img src="https://toolfio.com/toolfio-light-badge.png" alt="Featured on Toolfio" width="200" height="54" /></a>
615
616<!-- AI Agents Directory -->
617<a href="https://aiagentsdirectory.com/agent/rafter" target="_blank" rel="noopener" title="Discover Rafter on AI Agents Directory">
618  <img src="https://aiagentsdirectory.com/featured-badge.svg?v=2024" alt="Rafter - Featured on AI Agents Directory" width="200" height="50" />
619</a>
620
621<!-- Aura++ -->
622<a href="https://auraplusplus.com/projects/rafter-intelligent-home-management-app" target="_blank" rel="noopener">
623  <img src="https://auraplusplus.com/images/badges/featured-on-light.svg" alt="Featured on Aura++" width="265" height="58" />
624</a>
625
626<!-- AgentWork.Tools -->
627<a href="https://agentwork.tools" target="_blank"><img src="https://agentwork.tools/badge/badge_dark.svg" alt="Featured on AgentWork.Tools" width="200" height="54" /></a>
628
629<!-- Direct2App -->
630<a href="https://www.direct2app.com" target="_blank" rel="noopener">
631  <img src="https://www.direct2app.com/featured-dark.svg" alt="Featured On Direct2App" style="height: 54px; width: auto;" />
632</a>
633`}})]})}function H3({ctaText:t="Start your free 30 days",ctaHref:e,mode:n="link",textSrc:s="sticky",textLabel:o="Start free by text",secondaryText:l="or start free in the app"}){const[c,f]=T.useState(!1);return T.useEffect(()=>{const d=()=>{f(window.scrollY>500)};return window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]),p.jsx(Tc,{children:c&&p.jsx(at.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.3,ease:"easeOut"},className:"fixed bottom-0 left-0 right-0 z-40 md:hidden bg-background border-t border-border shadow-2xl px-4 py-2.5 safe-area-inset-bottom",children:p.jsxs("div",{className:"flex flex-col items-center gap-1",children:[p.jsx(Ms,{source:`${s}_sticky`,location:"sticky_cta_bar",variant:"blue",label:Qe.cta,fullWidth:!0,className:"!py-3 !text-[15px]"}),p.jsx("span",{className:"font-body",style:{fontSize:"12px",color:"#4A627A"},children:Qe.micro})]})})})}const Kv=[{key:"safer",messages:[{from:"rafter",label:"Rafter",text:"Hi Amy — heavy rain Thursday, and 
633your sump pump hasn't been tested since last year's flood. A vetted plumber can service it tomorrow for $129. Book it?"},{from:"member",label:"Amy",text:"Yes — please handle it."},{from:"rafter",label:"Rafter",text:"Booked ✓ Tomorrow, 10–12. Receipt to follow."}],receipt:{title:"Sump pump tested & serviced",line:"Saved to your Home Record",foot:"Handled before the storm — not after."}},{key:"affordable",messages:[{from:"member",label:"Sam",text:"Water heater quote came in at $2,400. Fair?"},{from:"rafter",label:"Rafter",text:"High for your model. We pulled two more estimates and negotiated the same scope to $1,890. Book Tuesday?"},{from:"member",label:"Sam",text:"Do it."}],receipt:{title:"Water heater replaced",line:"Quoted $2,400 → you paid $1,890",foot:"Receipts in your Home Record."}}],tf=1500,Qv=4200,Gv=350;function W3(){const[t,e]=T.useState(0),[n,s]=T.useState(0),[o,l]=T.useState(!1),c=Kv[t],f=c.messages.length+1;return T.useEffect(()=>{s(0),l(!1);const d=[];for(let h=0;h<f;h++)d.push(setTimeout(()=>s(h+1),400+h*tf));return d.push(setTimeout(()=>l(!0),400+f*tf+Qv)),d.push(setTimeout(()=>e(h=>(h+1)%Kv.length),400+f*tf+Qv+Gv)),()=>d.forEach(clearTimeout)},[t,f]),p.jsxs("div",{className:"w-full",style:{fontFamily:"var(--font-body)"},children:[p.jsx("div",{className:"h-[510px] sm:h-[470px]",style:{overflow:"hidden",position:"relative"},children:p.jsxs("div",{className:"flex flex-col gap-4",style:{opacity:o?0:1,transition:`opacity ${Gv}ms ease`},children:[c.messages.map((d,h)=>{const m=d.from==="rafter";return p.jsxs(at.div,{initial:{opacity:0,y:10},animate:{opacity:h<n?1:0,y:h<n?0:10},transition:{duration:.4,ease:"easeOut"},className:`flex flex-col ${m?"items-start":"items-end"}`,children:[p.jsx("span",{className:"mb-1 font-body font-semibold uppercase tracking-widest",style:{fontSize:"9px",color:m?"rgba(147,197,253,.5)":"rgba(200,216,240,.3)"},children:d.label}),p.jsx("div",{className:"font-body leading-relaxed rounded-2xl px-4 py-3",style:{fontSize:"15px",color:m?"rgba(255,255,255,.92)":"rgba(200,216,240,.85)",maxWidth:"88%",textAlign:m?"left":"right",background:m?"rgba(46,107,181,.22)":"rgba(255,255,255,.07)",border:m?"0.5px solid rgba(46,107,181,.35)":"0.5px solid rgba(255,255,255,.12)"},children:d.text})]},`${c.key}-${h}`)}),p.jsx(at.div,{initial:{opacity:0,y:10},animate:{opacity:n>=f?1:0,y:n>=f?0:10},transition:{duration:.4,ease:"easeOut"},className:"rounded-xl px-4 py-4 mt-1",style:{background:"rgba(255,255,255,.07)",border:"0.5px solid rgba(255,255,255,.16)"},children:p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx(th,{className:"w-5 h-5 shrink-0 mt-0.5",style:{color:"#4ADE80"}}),p.jsxs("div",{children:[p.jsx("p",{className:"font-body font-semibold",style:{fontSize:"14px",color:"#FFFFFF"},children:c.receipt.title}),p.jsx("p",{className:"font-body mt-1",style:{fontSize:"13px",color:"rgba(200,216,240,.75)"},children:c.receipt.line}),p.jsx("p",{className:"font-body mt-2",style:{fontSize:"11.5px",color:"rgba(200,216,240,.45)"},children:c.receipt.foot})]})]})})]},c.key)}),p.jsx("p",{className:"font-body mt-2 text-center lg:text-left",style:{fontSize:"11px",color:"rgba(200,216,240,.35)"},children:"Illustrative member conversations."})]})}function q3(){return p.jsx("section",{id:"hero-section",className:"pt-[104px] lg:pt-[160px] pb-[40px] lg:pb-[50px] px-6",style:{background:"#0C1726"},children:p.jsx("div",{className:"max-w-5xl mx-auto",children:p.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start gap-12 lg:gap-16",children:[p.jsxs("div",{className:"flex-1 text-center lg:text-left",children:[p.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-[0.22em] mb-5",style:{color:"rgba(147,197,253,.6)"},children:"Modern home management"}),p.jsxs("h1",{className:"font-heading font-normal leading-[1.1] lg:leading-[1.15] tracking-tight",style:{fontSize:"clamp(38px, 4.5vw, 56px)",color:"#FFFFFF"},children:["Your home,",p.jsx("br",{}),"always ahead."]}),p.jsx("p",{className:"mt-4 lg:mt-5 font-body leading-[1.6] lg:leading-[1.7] mx-auto lg:mx-0",style:{fontSize:"15.5px",color:"rgba(200,216,240,.75)",maxWidth:"480px"},children:"Rafter watches your home around the clock, handles the work, and finds the savings — homeownership made safer, easier, and more affordable."}),p.jsxs("div",{className:"mt-8 w-full max-w-[540px] mx-auto lg:mx-0",children:[p.jsxs("p",{className:"font-body mb-3 text-center lg:text-left",style:{fontSize:"14px",color:"rgba(200,216,240,.8)"},children:[Qe.micro," Leave your details and we’ll reach out when it’s your turn."]}),p.jsx(Oc,{tone:"dark",compact:!0,source:"hero"}),p.jsxs("span",{className:"mt-3 inline-flex items-center gap-1.5 font-body font-medium whitespace-nowrap",style:{fontSize:"13px",color:"#BBF7D0"},children:[p.jsx(X_,{className:"w-3.5 h-3.5 shrink-0",style:{color:"#4ADE80"}}),"100% savings guarantee, when you join"]})]}),Hb]}),p.jsxs("div",{className:"flex-1 w-full max-w-md mx-auto lg:mx-0",children:[p.jsx(W3,{}),p.jsxs("div",{className:"mt-3 flex flex-wrap items-baseline justify-center lg:justify-start gap-x-2 gap-y-1 text-center lg:text-left",children:[p.jsx("span",{className:"font-body",style:{fontSize:"13px",color:"rgba(200,216,240,.6)"},children:"Real members text us like this every day."}),p.jsx(Ms,{source:"thread",location:"homepage_hero_thread",variant:"link-light",label:"Get in line for yours",className:"text-[13px] whitespace-nowrap"})]})]})]})})})}const K3=[{stat:"$847",label:"average savings, year one"},{stat:"30+ hrs",label:"saved every year"},{stat:"$3,000",label:"in damage & claims avoided"}];function Q3(){return p.jsx("div",{className:"px-6 pb-10 md:pb-14",style:{background:"#0C1726"},children:p.jsxs("div",{className:"max-w-5xl mx-auto",children:[p.jsx("div",{className:"grid grid-cols-3 gap-3 md:gap-8",style:{borderTop:"0.5px solid rgba(200,216,240,.08)",paddingTop:"24px"},children:K3.map((t,e)=>p.jsxs("div",{className:"flex flex-col items-center text-center gap-2",children:[p.jsx("span",{className:"font-heading font-normal text-white",style:{fontSize:"clamp(28px, 6vw, 54px)",lineHeight:1.1},children:t.stat}),p.jsx("span",{className:"font-body",style:{fontSize:"clamp(11px, 2vw, 12.5px)",color:"rgba(200,216,240,.45)",lineHeight:1.45,maxWidth:"220px"},children:t.label})]},e))}),p.jsx("p",{className:"font-body text-center mt-6",style:{fontSize:"11.5px",color:"rgba(200,216,240,.3)",lineHeight:1.6},children:"Member averages — not a promise for any specific home. And if Rafter doesn't save you at least $120 in year one, we refund the difference."})]})})}const G3=[{icon:nh,title:"Always-on monitoring",body:"Rafter watches your home around the clock — weather, systems, risk signals — so problems get caught while they're small."},{icon:sk,title:"Always finding savings",body:"Negotiated quotes, re-priced bills, repairs that never become emergencie
633s — proven on receipts, not estimates."},{icon:vx,title:"Always there to handle it",body:"Text your Rafter team anything. Vetted pros, checked quotes, and work seen through to done."}];function Y3(){return p.jsx("section",{className:"py-16 px-6",style:{background:"#F5F8FC"},children:p.jsxs("div",{className:"max-w-5xl mx-auto",children:[p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] mb-4",style:{color:"#9AAFC4"},children:"What Rafter does for you"}),p.jsx("h2",{className:"font-heading font-normal leading-tight",style:{fontSize:"clamp(26px, 3.5vw, 40px)",color:"#0C1726"},children:"Always on. Always saving. Always there."})]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:G3.map((t,e)=>p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"rounded-xl p-7 flex flex-col gap-4",style:{background:"#FFFFFF",border:"0.5px solid #C8D8F0"},children:[p.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(27,81,153,.1)"},children:p.jsx(t.icon,{className:"w-5 h-5",style:{color:"#1B5199"}})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-body font-semibold mb-2",style:{fontSize:"16px",color:"#0C1726"},children:t.title}),p.jsx("p",{className:"font-body leading-relaxed",style:{fontSize:"14px",color:"#4A627A"},children:t.body})]})]},t.title))})]})})}const X3=[{icon:N_,title:"Text us a photo of your inspection report",body:"We read it, rank what matters, and fix the first thing.",cta:"Text my report",utmContent:"door_inspection",channel:"text"},{icon:K_,title:"Text us a bill or quote to beat",body:"We negotiate — you keep the difference.",cta:"Text a bill",utmContent:"door_bill",channel:"text"},{icon:D_,title:"Answer five quick questions",body:"The maintenance nobody remembers. We find it and handle it.",cta:"Start with five questions",utmContent:"door_questions",channel:"app"}],J3=[{num:"01",label:"Watch",icon:nh,body:"Weather, systems, risk signals, recalls — around the clock."},{num:"02",label:"Catch",icon:m_,body:"One thing that matters, with the why. Never a scary list."},{num:"03",label:"Handle",icon:ck,body:"Approve in one reply. We book it, negotiate it, see it through."},{num:"04",label:"Prove",icon:A_,body:"Every job ends as a receipt in your Home Record."}],Yv=["Month one","Every month after"],Xv=8e3;function Z3(){const[t,e]=T.useState(0),[n,s]=T.useState(!1);return T.useEffect(()=>{if(n)return;const o=setTimeout(()=>e(l=>(l+1)%Yv.length),Xv);return()=>clearTimeout(o)},[t,n]),p.jsx("section",{className:"py-20 px-6",style:{background:"#0C1726"},children:p.jsxs("div",{className:"max-w-5xl mx-auto",children:[p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-10",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] mb-4",style:{color:"rgba(147,197,253,.6)"},children:"How it works"}),p.jsxs("h2",{className:"font-heading font-normal leading-tight mb-3",style:{fontSize:"clamp(26px, 3.5v
633w, 40px)",color:"#FFFFFF"},children:["A team you text.",p.jsx("br",{className:"hidden sm:block"})," ","A system that never stops."]}),p.jsx("p",{className:"font-body mx-auto",style:{fontSize:"15px",color:"rgba(200,216,240,.65)",maxWidth:"440px"},children:"Start with one real job. Then the loop takes over."})]}),p.jsx("div",{className:"flex justify-center mb-10",children:p.jsx("div",{className:"inline-flex rounded-full p-1 gap-1",style:{background:"rgba(255,255,255,.06)",border:"0.5px solid rgba(255,255,255,.12)"},children:Yv.map((o,l)=>{const c=t===l;return p.jsxs("button",{onClick:()=>{s(!0),e(l)},className:"relative rounded-full px-5 py-2.5 font-body font-medium transition-colors overflow-hidden",style:{fontSize:"13.5px",color:c?"#FFFFFF":"rgba(200,216,240,.5)",background:c?"rgba(46,107,181,.3)":"transparent"},children:[p.jsx("span",{className:"relative z-10",children:o}),c&&!n&&p.jsx(at.span,{className:"absolute bottom-0 left-0 h-[2px] z-10",style:{background:"#93C5FD",originX:0,width:"100%"},initial:{scaleX:0},animate:{scaleX:1},transition:{duration:Xv/1e3,ease:"linear"}},`progress-${t}`)]},o)})})}),p.jsxs("div",{className:"relative min-h-[600px] sm:min-h-[440px] md:min-h-[340px]",children:[p.jsxs("div",{"aria-hidden":t!==0,style:{transition:"opacity .35s ease, transform .35s ease",opacity:t===0?1:0,transform:t===0?"translateX(0)":"translateX(-24px)",pointerEvents:t===0?"auto":"none",position:t===0?"relative":"absolute",top:0,left:0,right:0},children:[p.jsx("p",{className:"font-body text-center mb-6",style:{fontSize:"14.5px",color:"rgba(200,216,240,.75)"},children:"Something comes off your plate. Members start with one of these:"}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:X3.map(o=>p.jsxs("div",{className:"rounded-xl p-6 flex flex-col",style:{background:"rgba(255,255,255,.06)",border:"0.5px solid rgba(255,255,255,.1)"},children:[p.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0 mb-3",style:{background:"rgba(147,197,253,.15)"},children:p.jsx(o.icon,{style:{color:"#93C5FD",width:"18px",height:"18px"}})}),p.jsx("h3",{className:"font-body font-semibold mb-1.5",style:{fontSize:"15px",color:"#FFFFFF"},children:o.title}),p.jsx("p",{className:"font-body leading-relaxed flex-1",style:{fontSize:"13.5px",color:"rgba(200,216,240,.6)"},children:o.body}),p.jsx(Ms,{source:o.utmContent,location:`how_it_works_${o.utmContent}`,variant:"link-light",label:"Join the waitlist",className:"mt-4 text-[13.5px]"})]},o.title))}),p.jsx("p",{className:"font-body text-center mt-6",style:{fontSize:"13.5px",color:"rgba(200,216,240,.5)"},children:"First project handled. Receipt attached."})]},"month-one"),p.jsxs("div",{"aria-hidden":t!==1,style:{transition:"opacity .35s ease, transform .35s ease",opacity:t===1?1:0,transform:t===1?"translateX(0)":"translateX(24px)",pointerEvents:t===1?"auto":"none",position:t===1?"relative":"absolute",top:0,left:0,right:0},children:[p.jsx("p",{className:"font-body text-center mb-6",style:{fontSize:"14.5px",color:"rgba(200,216,240,.75)"},children:"Rafter stays ahead of the next thing — on repeat:"}),p.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:J3.map(o=>p.jsxs("div",{className:"rounded-xl p-5",style:{background:"rgba(255,255,255,.06)",border:"0.5px solid rgba(255,255,255,.1)"},children:[p.jsxs("div",{className:"flex items-center gap-2.5 mb-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(147,197,253,.15)"},children:p.jsx(o.icon,{style:{color:"#93C5FD",width:"16px",height:"16px"}})}),p.jsx("p",{className:"font-body font-semibold uppercase",style:{fontSize:"12.5px",color:"#FFFFFF",letterSpacing:"0.08em"},children:o.label})]}),p.jsx("p",{className:"font-body leading-relaxed",style:{fontSize:"13px",color:"rgba(200,216,240,.6)"},children:o.body})]},o.label))}),p.jsx("div",{className:"mt-6 rounded-xl px-6 py-5 text-center",style:{background:"rgba(46,107,181,.16)",border:"0.5px solid rgba(46,107,181,.35)"},children:p.jsx("p",{className:"font-heading font-normal leading-snug",style:{fontSize:"clamp(17px, 2.2vw, 22px)",color:"#FFFFFF"},children:"The difference between a service you call and a home you never think about."})})]},"every-month")]}),p.jsxs("p",{className:"font-body text-center mt-8",style:{fontSize:"13px",color:"rgba(200,216,240,.45)"},children:["21 monitors run in the background."," ",p.jsx(We,{to:"/membership",className:"transition-opacity hover:opacity-80",style:{color:"#93C5FD",textDecoration:"none"},children:"See everything we watch →"})]})]})})}function eO(){return p.jsx("div",{className:"flex gap-0.5 mb-6",children:[...Array(5)].map((t,e)=>
633p.jsx("svg",{className:"w-4 h-4 text-accent",fill:"currentColor",viewBox:"0 0 20 20",children:p.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},e))})}const tO=[{quote:"Every contractor conversation felt like I was getting taken advantage of. Rafter finds vetted pros, reviews the estimates, and follows up. I didn't realize how much I needed that until it was handled.",attribution:"Rafter Member · Austin, TX"},{quote:"We bought our home last spring with no idea what to tackle first. Rafter turned our inspection report into a week-by-week plan. We finally feel like we're on top of the house, not behind it.",attribution:"Rafter Member · Denver, CO"},{quote:"I can analyze a balance sheet in 20 minutes but had no framework for a home inspection report. Rafter gave me one — and had the first contractor booked the same day we closed.",attribution:"Rafter Member · Chicago, IL"},{quote:"My PURE agent mentioned the water leak detection discount but said I had to figure out the installation. Rafter handled everything. The savings covered the membership cost on its own.",attribution:"Rafter Member · Greenwich, CT"},{quote:"I travel constantly for work and couldn't stay on top of maintenance. Rafter is like having a property manager for a home you actually live in. The peace of mind alone is worth it.",attribution:"Rafter Member · Miami, FL"},{quote:"I own homes in two states and keeping track of maintenance and insurance was a constant headache. Rafter consolidated everything. I can't imagine going back to managing it manually.",attribution:"Rafter Member · Scottsdale, AZ"},{quote:"A pipe burst in our utility room while we were in Europe. Rafter's monitoring caught it within minutes and had a contractor on site before it became catastrophic. That one alert paid for years of membership.",attribution:"Rafter Member · Nashville, TN"}],nO=[{quote:"We bought our first home last spring with no idea what to tackle first. Rafter turned our inspection report into a week-by-week plan. We finally feel on top of it.",attribution:"New homeowner · Denver, CO"},{quote:"I can analyze a balance sheet in 20 minutes but had no framework for a home inspection report. Rafter gave me one instantly — and booked the first contractor the same day.",attribution:"Rafter member · Chicago, IL"}];function rO({variant:t="homepage",ctaHref:e,ctaText:n="Start your free 30 days →",ctaMode:s="link"}){const o=t==="homepage"?tO:nO,[l,c]=T.useState(0),[f,d]=T.useState(1),h=T.useCallback(()=>{d(-1),c(S=>S===0?o.length-1:S-1)},[o.length]),m=T.useCallback(()=>{d(1),c(S=>S===o.length-1?0:S+1)},[o.length]);T.useEffect(()=>{const S=setTimeout(m,6e3);return()=>clearTimeout(S)},[l,m]);const y={enter:S=>({opacity:0,x:S>0?40:-40}),center:{opacity:1,x:0},exit:S=>({opacity:0,x:S>0?-40:40})},x=o[l],w=t==="homepage";return p.jsx("section",{className:"py-16",style:{background:w?"#F5F8FC":"#0C1726",borderTop:w?"0.5px solid #C8D8F0":"none"},children:p.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[p.jsxs(at.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] mb-4",style:{color:w?"#4A627A":"rgba(232,240,251,.5)"},children:"Member Stories"}),p.jsx("h2",{className:"font-heading font-normal leading-tight",style:{color:w?"#0C1726":"#FFFFFF",fontSize:"clamp(26px, 3.5v
633w, 40px)"},children:"What members say"})]}),p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"overflow-hidden min-h-[220px] flex items-center",children:p.jsx(Tc,{mode:"wait",custom:f,children:p.jsxs(at.div,{custom:f,variants:y,initial:"enter",animate:"center",exit:"exit",transition:{duration:.4,ease:"easeInOut"},className:"w-full rounded-2xl px-10 py-10",style:{background:w?"rgba(27,81,153,.06)":"rgba(255,255,255,.05)",border:w?"0.5px solid #C8D8F0":"0.5px solid rgba(255,255,255,.07)",boxShadow:w?"inset 0 1px 0 rgba(27,81,153,.1)":"inset 0 1px 0 rgba(255,255,255,.07)"},children:[p.jsx(eO,{}),p.jsxs("blockquote",{className:"font-body font-normal leading-relaxed",style:{fontSize:"17px",color:w?"#0C1726":"rgba(255,255,255,.85)"},children:['"',x.quote,'"']}),p.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-px",style:{background:w?"#C8D8F0":"rgba(255,255,255,.25)"}}),p.jsx("p",{className:"text-sm",style:{color:w?"#4A627A":"rgba(232,240,251,.5)"},children:x.attribution})]})]},l)})}),p.jsxs("div",{className:"mt-8 flex items-center justify-between",children:[p.jsx("div",{className:"flex gap-2",children:o.map((S,_)=>p.jsx("button",{onClick:()=>{d(_>l?1:-1),c(_)},className:"w-2 h-2 rounded-full transition-all duration-300",style:{background:_===l?w?"#1B5199":"#FFFFFF":w?"#C8D8F0":"rgba(255,255,255,.25)",width:_===l?"20px":"8px"}},_))}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx("button",{onClick:h,className:"w-10 h-10 rounded-full flex items-center justify-center transition-colors",style:{border:`0.5px solid ${w?"#C8D8F0":"rgba(255,255,255,.2)"}`,background:w?"rgba(27,81,153,.08)":"rgba(255,255,255,.08)"},children:p.jsx(b_,{className:"w-4 h-4",style:{color:w?"#1B5199":"#FFFFFF"}})}),p.jsx("button",{onClick:m,className:"w-10 h-10 rounded-full flex items-center justify-center transition-colors",style:{border:`0.5px solid ${w?"#C8D8F0":"rgba(255,255,255,.2)"}`,background:w?"rgba(27,81,153,.08)":"rgba(255,255,255,.08)"},children:p.jsx(__,{className:"w-4 h-4",style:{color:w?"#1B5199":"#FFFFFF"}})})]})]})]}),p.jsx(at.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"mt-10 text-center",children:p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx(Ms,{source:"stories",location:"testimonial_grid",variant:w?"blue":"white",size:"lg",label:Qe.cta,className:"w-full sm:w-auto"}),p.jsx("span",{className:"font-body",style:{fontSize:"13px",color:w?"#4A627A":"rgba(200,216,240,.6)"},children:Qe.micro})]})})]})})}const sO=[{icon:H_,name:"Ezra",role:"The point guard",body:"First to reply, any hour — and never starting from zero. Ezra knows your home cold and brings in a person the moment one is needed."},{icon:xx,name:"Home Advisors",role:"Real people, real judgment",body:"Real experts for complex projects and judgment calls. A person is never more than a message away."},{icon:F_,name:"Concierge & specialists",role:"The ones who get it done",body:"Sourcing, negotiating, scheduling, follow-through — projects run end to end, plus specialists with no stake in what you decide."}];function iO(){return p.jsx("section",{className:"py-20 px-6",style:{background:"#FFFFFF",borderTop:"0.5px solid #C8D8F0"},children:p.jsxs("div",{className:"max-w-5xl mx-auto",children:[p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] mb-4",style:{color:"#4A627A"},children:"Who's behind it"}),p.jsx("h2",{className:"font-heading font-normal leading-tight mb-3",style:{fontSize:"clamp(26px, 3.5v
633w, 40px)",color:"#0C1726"},children:"Your Rafter team."}),p.jsx("p",{className:"font-body mx-auto",style:{fontSize:"15px",color:"#4A627A",maxWidth:"540px",lineHeight:1.7},children:"Not another app to manage. A team that manages for you — and you always know who you're talking to."})]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:sO.map((t,e)=>p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.1},className:"rounded-xl p-7",style:{background:"#F5F8FC",border:"0.5px solid #C8D8F0"},children:[p.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center shrink-0 mb-4",style:{background:"#E8F0FB"},children:p.jsx(t.icon,{className:"w-5 h-5",style:{color:"#1B5199"}})}),p.jsx("h3",{className:"font-body font-semibold",style:{fontSize:"17px",color:"#0C1726"},children:t.name}),p.jsx("p",{className:"font-body font-medium mb-3",style:{fontSize:"12.5px",color:"#1B5199",textTransform:"uppercase",letterSpacing:"0.06em"},children:t.role}),p.jsx("p",{className:"font-body leading-relaxed",style:{fontSize:"14px",color:"#4A627A"},children:t.body})]},t.name))}),p.jsx(at.p,{initial:{opacity:0}
633,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"font-body text-center mt-10",style:{fontSize:"14px",color:"#4A627A"},children:"Four concierge projects and four Home Advisor consultations a year — included."}),p.jsxs(at.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.4},className:"mt-6 flex flex-col items-center gap-3 text-center",children:[p.jsx("p",{className:"font-body",style:{fontSize:"14px",color:"#4A627A",maxWidth:"520px",lineHeight:1.7},children:"Ezra, your Home Advisors and the concierge all live in one text thread. Save the number once — that’s the whole setup."}),p.jsx(Ms,{source:"team",location:"team_section",variant:"link-dark",label:"Join the waitlist",className:"text-[14px]"})]})]})})}function oO(){return p.jsx("section",{className:"py-20 px-6",style:{background:"#0C1726"},children:p.jsx("div",{className:"max-w-3xl mx-auto text-center",children:p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] mb-5",style:{color:"rgba(147,197,253,.6)"},children:"The second half"}),p.jsxs("h2",{className:"font-heading font-normal leading-[1.2]",style:{fontSize:"clamp(26px, 3.8vw, 42px)",color:"#FFFFFF"},children:["The first half of the American Dream is getting the keys.",p.jsx("br",{className:"hidden md:block"})," ","We're building the second half."]}),p.jsx("p",{className:"font-body mt-6 mx-auto leading-relaxed",style:{fontSize:"15.5px",color:"rgba(200,216,240,.65)",maxWidth:"620px"},children:"Everything after the keys: maintaining, protecting, and building wealth through the largest asset most families ever own. Rafter manages it the way your retirement is managed — automatically, expertly, in your interest — toward a home that, one day, manages itself."}),p.jsxs(We,{to:"/about-us",className:"mt-8 inline-flex items-center gap-1.5 font-body font-medium transition-opacity hover:opacity-80",style:{fontSize:"14px",color:"#93C5FD"},children:["Why we're building Rafter",p.jsx(Ns,{className:"w-4 h-4"})]})]})})})}const aO=[{icon:y_,title:"30-day free trial",body:"Full membership, free for 30 days. Cancel anytime before it ends — you won't be charged."},{icon:C_,title:"$120 savings guarantee",body:"Don't save at least $120 in year one? We refund the difference."}];function lO(){return p.jsxs(p.Fragment,{children:[p.jsx("section",{className:"py-20 px-6",style:{background:"#F5F8FC",borderTop:"0.5px solid #C8D8F0"},children:p.jsxs("div",{className:"max-w-3xl mx-auto",children:[p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] mb-4",style:{color:"#4A627A"},children:"The risk is on us"}),p.jsx("h2",{className:"font-heading font-normal leading-tight",style:{fontSize:"clamp(26px, 3.5v
633w, 40px)",color:"#0C1726"},children:"Every membership starts risk-free."})]}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:aO.map((t,e)=>p.jsxs(at.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:e*.08},className:"rounded-xl p-7",style:{background:"#FFFFFF",border:"0.5px solid #C8D8F0"},children:[p.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center shrink-0 mb-4",style:{background:"#E8F0FB"},children:p.jsx(t.icon,{className:"w-5 h-5",style:{color:"#1B5199"}})}),p.jsx("h3",{className:"font-body font-semibold mb-2",style:{fontSize:"16px",color:"#0C1726"},children:t.title}),p.jsx("p",{className:"font-body leading-relaxed",style:{fontSize:"14px",color:"#4A627A"},children:t.body})]},t.title))})]})}),p.jsx("section",{className:"py-20 px-6",style:{background:"#0C1726"},children:p.jsx("div",{className:"max-w-2xl mx-auto text-center",children:p.jsxs(at.div,{initial:{opacity:0,y:25},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[p.jsxs("h2",{className:"font-heading font-normal leading-tight",style:{color:"#FFFFFF",fontSize:"clamp(28px, 4vw, 44px)"},children:["Your home is your biggest asset.",p.jsx("br",{}),"Put a team behind it."]}),p.jsxs("div",{className:"mt-8 mx-auto text-left",style:{maxWidth:"480px"},children:[p.jsx("p",{className:"font-body text-center mb-4",style:{fontSize:"14.5px",color:"rgba(200,216,240,.75)"},children:Qe.body}),p.jsx(Oc,{tone:"dark",source:"final"})]}),Hb]})})})]})}function cO(){return Ec({title:"Rafter | Modern Home Management — Your Home, Always Ahead",description:"Rafter is a home management membership: a team that watches your home around the clock, handles the work, and proves the savings — homeownership made safer, easier, and more affordable. Now opening to new members in small groups."}),p.jsxs("div",{className:"relative min-h-screen bg-background",children:[p.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(135deg, rgba(27,81,153,.03) 0%, transparent 50%, rgba(46,107,181,.03) 100%)"}}),p.jsx(lp,{}),p.jsx(q3,{}),p.jsx(Q3,{}),p.jsx(Y3,{}),p.jsx(Z3,{}),p.jsx(rO,{variant:"homepage",ctaMode:"text",ctaHref:ta({},"/signup")}),p.jsx(iO,{}),p.jsx(oO,{}),p.jsx(lO,{}),p.jsx(Wb,{}),p.jsx("div",{className:"h-24 md:hidden",style:{background:"#0C1726"}}),p.jsx(H3,{mode:"text",textSrc:"sticky",ctaHref:ta({},"/signup")})]})}const Jv="https://paayfhpnfkmusyvjrbjx.supabase.co/functions/v1/calculate-website-savings",nf=t=>`$${Number(t).toLocaleString()}`,Hl=(t,e)=>t===e?nf(t):`${nf(t)}–${nf(e)}`;function uO({placeholder:t,value:e,onChange:n,options:s,disabled:o,loading:l}){const[c,f]=T.useState(""),[d,h]=T.useState(!1),m=T.useRef(null),y=s.find(_=>_.slug===e),x=c.trim()?s.filter(_=>_.name.toLowerCase().includes(c.toLowerCase())):s;T.useEffect(()=>{const _=k=>{m.current&&!m.current.contains(k.target)&&(h(!1),f(""))};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const w=_=>{n(_),h(!1),f("")},S=_=>{_.stopPropagation(),n(""),f("")};return p.jsxs("div",{className:"relative",ref:m,children:[p.jsxs("div",{onClick:()=>{!o&&!l&&h(_=>!_)},className:"w-full flex items-center bg-white border border-gray-200 rounded-xl px-4 py-3.5 text-sm font-medium cursor-pointer",style:{opacity:o||l?.6:1,minHeight:"50px"},children:[l?p.jsx("span",{className:"flex-1",style:{color:"#9AAFC4"},children:"Loading carriers…"}):y?p.jsx("span",{className:"flex-1 truncate",style:{color:"#0C1726"},children:y.name}):p.jsx("span",{className:"flex-1",style:{color:"#9AAFC4"},children:t}),p.jsxs("div",{className:"flex items-center gap-1 ml-2 shrink-0",children:[y&&p.jsx("button",{onClick:S,className:"p-0.5 rounded hover:bg-gray-100",children:p.jsx(Go,{className:"w-3.5 h-3.5",style:{color:"#9AAFC4"}})}),l?p.jsx(vc,{className:"w-4 h-4 animate-spin",style:{color:"#9AAFC4"}}):p.jsx(x_,{className:"w-4 h-4",style:{color:"#9AAFC4",transform:d?"rotate(180deg)":"none",transition:"transform 0.15s"}})]})]}),d&&p.jsxs("div",{className:"absolute z-50 w-full mt-1 rounded-xl overflow-hidden shadow-lg",style:{background:"#fff",border:"1px solid #E5E7EB",maxHeight:"260px",display:"flex",flexDirection:"column"},children:[p.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-gray-100",children:[p.jsx(G_,{className:"w-4 h-4 shrink-0",style:{color:"#9AAFC4"}}
633),p.jsx("input",{autoFocus:!0,type:"text",value:c,onChange:_=>f(_.target.value),placeholder:"Search carriers…",className:"flex-1 text-sm outline-none bg-transparent",style:{color:"#0C1726"}}),c&&p.jsx("button",{onClick:()=>f(""),children:p.jsx(Go,{className:"w-3.5 h-3.5",style:{color:"#9AAFC4"}})})]}),p.jsx("div",{className:"overflow-y-auto",children:x.length===0?p.jsx("p",{className:"px-4 py-3 text-sm",style:{color:"#9AAFC4"},children:"No carriers found"}):x.map(_=>p.jsx("div",{onMouseDown:()=>w(_.slug),className:"px-4 py-2.5 text-sm cursor-pointer hover:bg-gray-50",style:{color:_.slug===e?"#2E6BB5":"#0C1726",fontWeight:_.slug===e?600:400},children:_.name},_.slug))})]})]})}function dO({icpTag:t="other",leadSource:e="unknown",icpType:n="other"}){const[s,o]=T.useState([]),[l,c]=T.useState(!0),[f,d]=T.useState(""),[h,m]=T.useState(""),[y,x]=T.useState(""),[w,S]=T.useState(!1),[_,k]=T.useState(null),[E,P]=T.useState(!1),C=T.useRef(!1);T.useEffect(()=>{fetch(`${Jv}?list=carriers`,{method:"GET"}).then(G=>{if(!G.ok)throw new Error("fetch failed");return G.json()}).then(G=>{const ee=Array.isArray(G.carriers)?G.carriers:[];o([{slug:"other",name:"I don't know / Other"},...ee])}).catch(G=>{console.error("Carrier fetch error:",G),o([{slug:"other",name:"I don't know / Other"}])}).finally(()=>c(!1))},[]);const A=()=>{C.current||(C.current=!0,Yf("calculator_started",{source:e,payload:{icp_type:n}}))},D=G=>{A();const ee=G.replace(/\D/g,"").slice(0,5);d(ee),m(""),k(null),P(!1)},V=G=>{A(),x(G),k(null),P(!1)},X=async()=>{var ee,ue,Ce,Ae;if(f.length!==5){m("Please enter a valid 5-digit ZIP code.");return}S(!0),P(!1),k(null);const G={zip:f};y&&y!=="other"&&(G.carrier=y);try{const he=await fetch(Jv,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(G)});if(!he.ok)throw new Error("API error");const ge=await he.json();k(ge),Yf("results_viewed",{source:e,payload:{total_low:(ue=(ee=ge.savings)==null?void 0:ee.total)==null?void 0:ue.low,total_high:(Ae=(Ce=ge.savings)==null?void 0:Ce.total)==null?void 0:Ae.high,carrier:y,zip:f,icp_type:n}})}catch{P(!0)}finally{S(!1)}},B=f.length===5&&y;if(_){const G=_.savings||{},ee=G.total||{},ue=G.insurance_credit||{},Ce=G.maintenance_savings||{},Ae=G.avoided_premium_hikes||{},he=G.time_saved||{},ge=he.hours_low??he.low??0,Te=he.hours_high??he.high??0,ie=s.find($=>$.slug===y),H=_.carrier_display_name||(ie==null?void 0:ie.name)||"your carrier",te=(ie==null?void 0:ie.has_water_discount)===!1||ue.low===0&&ue.high===0,U=(ie==null?void 0:ie.requirement_trend)==="becoming_required",O=_.home_value_source==="state"||_.home_value_source==="national";return p.jsxs("div",{className:"py-2 space-y-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest mb-1",style:{color:"rgba(200,216,240,.5)"},children:"Estimated annual savings"}),p.jsx("p",{className:"font-heading text-white",style:{fontSize:"clamp(38px,8vw,52px)",lineHeight:1},children:Hl(ee.low,ee.high)}),p.jsx("p",{className:"text-xs mt-1",style:{color:"rgba(200,216,240,.5)"},children:"per year"}),O&&p.jsx("p",{className:"text-xs mt-1",style:{color:"rgba(200,216,240,.4)"},children:"Based on typical homes in your area."})]}),p.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"rgba(255,255,255,.07)",border:"0.5px solid rgba(255,255,255,.1)"},children:[p.jsx("div",{className:"px-4 py-3",style:{borderBottom:"0.5px solid rgba(255,255,255,.07)"},children:te?p.jsx("p",{className:"text-sm leading-snug",style:{color:"rgba(200,216,240,.7)"},children:"Your carrier doesn't currently offer a water-sensor discount — but your maintenance savings still add up."}):p.jsxs("div",{className:"flex items-center justify-between gap-3",children:[p.jsxs("span",{className:"text-sm",style:{color:"rgba(200,216,240,.8)"},children:[H," preventive credits"]}),p.jsx("span",{className:"text-sm font-semibold text-white shrink-0",children:Hl(ue.low,ue.high)})]})}),p.jsxs("div",{className:"flex items-center justify-between px-4 py-3 gap-3",style:{borderBottom:"0.5px solid rgba(255,255,255,.07)"},children:[p.jsx("span",{className:"text-sm",style:{color:"rgba(200,216,240,.8)"},children:"Lower maintenance costs"}),p.jsx("span",{className:"text-sm font-semibold text-white shrink-0",children:Hl(Ce.low,Ce.high)})]}),p.jsxs("div",{className:"flex items-center justify-between px-4 py-3 gap-3",style:{borderBottom:"0.5px solid rgba(255,255,255,.07)"},children:[p.jsx("span",{className:"text-sm",style:{color:"rgba(200,216,240,.8)"},children:"Avoided premium hikes"}),p.jsx("span",{className:"text-sm font-semibold text-white shrink-0",children:Hl(Ae.low,Ae.high)})]}),p.jsxs("div",{className:"flex items-center justify-between px-4 py-3 gap-3",children:[p.jsx("span",{className:"text-sm",style:{color:"rgba(200,216,240,.8)"},children:"Saved time"}),p.jsxs("span",{className:"text-sm font-semibold text-white shrink-0",children:[ge,"–",Te," hrs/yr"]})]})]}),U&&p.jsxs("div",{className:"flex items-start gap-2 rounded-xl px-4 py-3",style:{background:"rgba(251,191,36,.1)",border:"0.5px solid rgba(251,191,36,.3)"},children:[p.jsx(ok,{className:"w-4 h-4 shrink-0 mt-0.5",style:{color:"#FBBF24"}}),p.jsxs("p",{className:"text-xs leading-snug",style:{color:"rgba(251,191,36,.9)"},children:["Carriers like ",H," are beginning to require leak sensors — act now to lock in your discount."]})]}),p.jsx("p",{className:"text-center",style:{fontSize:"11px",color:"rgba(200,216,240,.35)",lineHeight:1.5},children:"Estimates are ranges based on zip-level home value data and your carrier's documented programs. Individual results vary. Rafter members have averaged $847 in savings in year one."}),p.jsxs("a",{href:ta(),className:"w-full py-3.5 rounded-xl font-semibold text-sm transition-opacity hover:opacity-90 flex items-center justify-center gap-2",style:{background:"#FFFFFF",color:"#0C1726"},children:["Try Rafter for free ",p.jsx(Ns,{className:"w-4 h-4"})]}),p.jsx("button",{onClick:()=>{k(null),P(!1)},className:"block mx-auto text-xs",style:{color:"rgba(200,216,240,.4)"},children:"Recalculate"})]})}return E?p.jsxs("div",{className:"py-4 space-y-4 text-center",children:[p.jsx("p",{className:"text-sm leading-relaxed",style:{color:"rgba(200,216,240,.8)"},children:"We couldn't calculate your estimate right now. Start your free trial and Ezra will find your savings directly."}),p.jsxs("a",{href:ta(),className:"w-full py-3.5 rounded-xl font-semibold text-sm transition-opacity hover:opacity-90 flex items-center justify-center gap-2",style:{background:"#FFFFFF",color:"#0C1726"},children:["Start my free trial ",p.jsx(Ns,{className:"w-4 h-4"})]}),p.jsx("button",{onClick:()=>P(!1),className:"block mx-auto text-xs",style:{color:"rgba(200,216,240,.4)"},children:"Try again"})]}):p.jsxs("div",{className:"space-y-3 text-left",children:[p.jsxs("div",{children:[p.jsx("input",{type:"text",inputMode:"numeric",placeholder:"Your ZIP code",value:f,onChange:G=>D(G.target.value),maxLength:5,className:"w-full bg-white border rounded-xl px-4 py-3.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-blue-500",style:{borderColor:h?"#EF4444":"#E5E7EB",color:f?"#0C1726":"#9AAFC4"}}),h&&p.jsx("p",{className:"mt-1 text-xs",style:{color:"#F87171"},children:h})]}),p.jsx(uO,{placeholder:"Your home insurer",value:y,onChange:V,options:s,loading:l,disabled:l}),p.jsx("button",{onClick:X,disabled:!B||w,className:"bg-[#0D1B2A] text-white rounded-full px-8 py-4 font-semibold hover:bg-[#1a2f45] inline-block transition-all flex items-center justify-center gap-2 mx-auto",style:{opacity:!B||w?.5:1,cursor:B&&!w?"pointer":"not-allowed"},children:w?p.jsxs(p.Fragment,{children:[p.jsx(vc,{className:"w-4 h-4 animate-spin"})," Calculating…"]}):"Calculate my savings →"})]})}const fO=[{stars:5,quote:"Found out I could save $900 every year. Took Rafter 3 weeks to get it for me.",name:"Gideon D.",location:"Armonk, NY",savings:"$900"},{stars:5,quote:"I had no idea my carrier offered discounts for leak sensors. Rafter found it, ordered the sensor, and prepared the paperwork — I sent it in one click.",name:"Sarah M.",location:"Austin, TX",savings:"$340"},{stars:5,quote:"My premium went up $340 at renewal. Rafter found $520 in credits I wasn't getting. I ended up paying less than before.",name:"James K.",location:"Denver, CO",savings:"$520"}];function hO(){Ec({title:"Stop Overpaying on Your Home — Savings Guaranteed | Rafter",ogTitle:"Stop Overpaying on Your Home — Savings Guaranteed | Rafter",description:"Quotes negotiated down, bills re-priced, problems caught while they're small — Rafter finds the money your home is leaking, backed by a $120 savings guarantee."});const t=ta();return p.jsxs("div",{className:"min-h-screen font-body",style:{background:"var(--color-bg-light)"},children:[p.jsx("header",{className:"w-full px-6 py-8 flex items-center justify-center",style:{background:"var(--color-bg-dark)"},children:p.jsx(We,{to:"/",children:p.jsx("img",{src:"https://media.base44.com/images/public/69ed1a68d76c21a3e1394b53/a96bcc7fe_Asset13x-8.png",alt:"Rafter",className:"h-12 w-auto object-contain",style:{filter:"brightness(0) invert(1)"}})})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-dark)",paddingTop:"60px"},children:p.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[p.jsx("p",{className:"font-semibold uppercase tracking-widest mb-8",style:{fontSize:"12px",color:"var(--color-text-muted)",letterSpacing:"0.1em"},children:"Home Savings"}),p.jsx("h1",{className:"font-heading font-normal text-white mb-8 leading-tight",style:{fontSize:"clamp(32px, 5vw, 56px)",letterSpacing:"-0.5px"},children:"Your home is leaking money. We claw it back."}),p.jsx("p",{className:"mb-12",style:{fontSize:"16px",color:"rgba(255,255,255,.75)",lineHeight:1.7},children:"Contractor quotes negotiated down. Recurring bills re-priced. Small problems fixed before they get expensive. Plus help claiming savings 
633your carrier may already offer — every dollar proven on a receipt, not an estimate."}),p.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center justify-center mb-16",children:[p.jsx("a",{href:t,className:"bg-white text-[#0D1B2A] rounded-full px-8 py-4 font-semibold hover:bg-gray-100 inline-block",onClick:()=>Fr("try_rafter_free","reddit_lp_hero"),children:"Try Rafter for free →"}),p.jsx("a",{href:"#calculator",className:"border-2 border-white text-white rounded-full px-8 py-4 font-semibold hover:bg-white/10 inline-block",onClick:()=>Fr("see_savings","reddit_lp_hero_secondary"),children:"See What I Should Be Saving →"})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-16",style:{borderTop:"0.5px solid rgba(255,255,255,.1)",paddingTop:"48px"},children:[p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("span",{className:"font-heading font-normal text-white",style:{fontSize:"42px",lineHeight:1},children:"$847"}),p.jsx("span",{className:"text-sm",style:{color:"rgba(255,255,255,.6)"},children:"avg savings/year"})]}),p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("span",{className:"font-heading font-normal text-white",style:{fontSize:"42px",lineHeight:1},children:"$120"}),p.jsx("span",{className:"text-sm",style:{color:"rgba(255,255,255,.6)"},children:"saved in year one — guaranteed"})]}),p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("span",{className:"font-heading font-normal text-white",style:{fontSize:"42px",lineHeight:1},children:"85%"}),p.jsx("span",{className:"text-sm",style:{color:"rgba(255,255,255,.6)"},children:"see savings in their first 30 days"})]})]}),p.jsxs("div",{className:"rounded-2xl p-6 mx-auto",style:{background:"rgba(255,255,255,.08)",border:"1px solid rgba(255,255,255,.1)",maxWidth:"600px"},children:[p.jsx("div",{className:"flex items-center justify-center gap-1 mb-4",children:[...Array(5)].map((e,n)=>p.jsx(hy,{className:"w-4 h-4 fill-current",style:{color:"#FBBF24"}},n))}),p.jsx("p",{className:"text-white mb-4",style:{fontSize:"16px",lineHeight:1.6},children:'"Found out I could save $900 every year. Took Rafter 3 weeks to get it for me."'}),p.jsx("p",{style:{fontSize:"14px",color:"rgba(255,255,255,.7)"},children:"Gideon D., Armonk, NY"})]})]})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-dark)"},children:p.jsxs("div",{className:"max-w-4xl mx-auto",children:[p.jsxs("div",{className:"text-center mb-16",children:[p.jsx("p",{className:"font-semibold uppercase tracking-widest mb-6",style:{fontSize:"12px",color:"var(--color-text-muted)",letterSpacing:"0.1em"},children:"What is Rafter"}),p.jsx("h2",{className:"font-heading font-normal text-white mb-8",style:{fontSize:"clamp(28px, 4vw, 44px)",letterSpacing:"-0.5px"},children:"A home membership that works for you."}),p.jsx("p",{style:{fontSize:"16px",color:"rgba(255,255,255,.75)",lineHeight:1.7,maxWidth:"600px",margin:"0 auto"},children:"Rafter combines continuous home monitoring, AI that knows your home, and real human advisors who handle the follow-through."})]}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[p.jsxs("div",{className:"rounded-2xl p-6 text-center",style:{background:"rgba(255,255,255,.08)",border:"1px solid rgba(255,255,255,.1)"},children:[p.jsx(nh,{className:"w-8 h-8 mx-auto mb-4",style:{color:"rgba(255,255,255,.9)"}}),p.jsx("h3",{className:"font-semibold text-white mb-3",style:{fontSize:"16px"},children:"Intelligent Monitoring"}),p.jsx("p",{style:{fontSize:"15px",color:"rgba(255,255,255,.7)",lineHeight:1.6},children:"21 monitors running 24/7/365 across risk, health, finances, and environment"})]}),p.jsxs("div",{className:"rounded-2xl p-6 text-center",style:{background:"rgba(255,255,255,.08)",border:"1px solid rgba(255,255,255,.1)"},children:[p.jsx(tk,{className:"w-8 h-8 mx-auto mb-4",style:{color:"rgba(255,255,255,.9)"}}),p.jsx("h3",{className:"font-semibold text-white mb-3",style:{fontSize:"16px"},children:"Home Intelligence"}),p.jsx("p",{style:{fontSize:"15px",color:"rgba(255,255,255,.7)",lineHeight:1.6},children:"AI that surfaces savings and answers any question about your home"})]}),p.jsxs("div",{className:"rounded-2xl p-6 text-center",style:{background:"rgba(255,255,255,.08)",border:"1px solid rgba(255,255,255,.1)"},children:[p.jsx(xx,{className:"w-8 h-8 mx-auto mb-4",style:{color:"rgba(255,255,255,.9)"}}),p.jsx("h3",{className:"font-semibold text-white mb-3",style:{fontSize:"16px"}
633,children:"Home Advisors"}),p.jsx("p",{style:{fontSize:"15px",color:"rgba(255,255,255,.7)",lineHeight:1.6},children:"Real experts who handle paperwork, coordination, and claims support"})]})]})]})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-light)"},children:p.jsxs("div",{className:"max-w-4xl mx-auto",children:[p.jsx("h2",{className:"font-heading font-normal text-center mb-16",style:{fontSize:"clamp(32px, 4.5vw, 48px)",color:"var(--color-text-primary)",letterSpacing:"-0.5px"},children:"Where the $847 actually comes from"}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[p.jsxs("div",{className:"rounded-2xl p-6",style:{background:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:[p.jsxs("div",{className:"space-y-4 mb-6",children:[p.jsxs("div",{className:"flex items-center justify-between",style:{fontSize:"15px"},children:[p.jsx("span",{style:{color:"var(--color-text-muted)"},children:"Negotiated quotes & re-priced bills"}),p.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:"600"},children:"$400"})]}),p.jsxs("div",{className:"flex items-center justify-between",style:{fontSize:"15px"},children:[p.jsx("span",{style:{color:"var(--color-text-muted)"},children:"Insurance credits & member rates"}),p.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:"600"},children:"$220"})]}),p.jsxs("div",{className:"flex items-center justify-between",style:{fontSize:"15px"},children:[p.jsx("span",{style:{color:"var(--color-text-muted)"},children:"Avoided emergency service calls"}),p.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:"600"},children:"$140"})]}),p.jsxs("div",{className:"flex items-center justify-between",style:{fontSize:"15px"},children:[p.jsx("span",{style:{color:"var(--color-text-muted)"},children:"Parts & appliance discounts"}),p.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:"600"},children:"$87"})]})]}),p.jsxs("div",{style:{borderTop:"2px solid var(--color-border)",paddingTop:"16px"},className:"flex items-center justify-between",children:[p.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:"600",fontSize:"15px"},children:"Year 1 total"}),p.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:"700",fontSize:"18px"},children:"$847"})]})]}),p.jsxs("div",{className:"flex flex-col justify-center items-center text-center",children:[p.jsxs("p",{style:{fontSize:"18px",color:"var(--color-text-primary)",lineHeight:1.6,marginBottom:"24px"},children:[p.jsx("span",{style:{fontWeight:"600"},children:"$120/year membership."})," ",p.jsx("span",{style:{fontWeight:"600"},children:"$847 average return."})," That's ",p.jsx("span",{style:{fontWeight:"600"},children:"7x in year one."})]}),p.jsx("a",{href:t,className:"bg-[#0D1B2A] text-white rounded-full px-8 py-4 font-semibold hover:bg-[#1a2f45] inline-block",onClick:()=>Fr("try_rafter_free","reddit_lp_savings_section"),children:"Try Rafter for free →"})]})]})]})}),p.jsx("section",{id:"calculator",className:"px-6 py-24",style:{background:"var(--color-bg-dark)"},children:p.jsxs("div",{className:"max-w-xl mx-auto",children:[p.jsx("h2",{className:"font-heading font-normal text-center text-white mb-12",style:{fontSize:"clamp(32px, 4.5vw, 48px)",letterSpacing:"-0.5px"},children:"See what you could be saving"}),p.jsx(dO,{icpTag:"insurance_optimizer",leadSource:"landing_page_icp2_pure",icpType:"icp2"})]})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-light)"},children:p.jsxs("div",{className:"max-w-4xl mx-auto",children:[p.jsxs("div",{className:"text-center mb-16",children:[p.jsx("p",{className:"font-semibold uppercase tracking-widest mb-6",style:{fontSize:"12px",color:"var(--color-text-muted)",letterSpacing:"0.1em"},children:"How It Works"}),p.jsx("h2",{className:"font-heading font-normal",style:{fontSize:"clamp(32px, 4.5vw, 48px)",color:"var(--color-text-primary)",letterSpacing:"-0.5px"},children:"How we find your savings"})]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[{num:"1",title:"Send us a bill or a quote to beat",desc:"The contractor quote on your counter, or the recurring bill that keeps creeping up — lawn, pest, HVAC contract, monitoring."},{num:"2",title:"We negotiate",desc:"We pull competing estimates and negotiate the same scope with vetted, licensed pros. You keep the difference."},{num:"3",title:"You get the receipt",desc:"Quoted vs. paid, documented in your Home Record. We also prepare the paperwork for savings 
633your carrier may already offer — you review and send it in one click."}].map(e=>p.jsxs("div",{className:"rounded-2xl p-6",style:{background:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:[p.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center font-bold mb-4",style:{background:"var(--color-text-primary)",color:"var(--color-bg-card)",fontSize:"16px"},children:e.num}),p.jsx("h3",{className:"font-semibold mb-3",style:{fontSize:"16px",color:"var(--color-text-primary)"},children:e.title}),p.jsx("p",{style:{fontSize:"15px",color:"var(--color-text-muted)",lineHeight:1.6},children:e.desc})]},e.num))})]})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-light)"},children:p.jsxs("div",{className:"max-w-5xl mx-auto",children:[p.jsx("h2",{className:"font-heading font-normal text-center mb-16",style:{fontSize:"clamp(32px, 4.5vw, 48px)",color:"var(--color-text-primary)",letterSpacing:"-0.5px"},children:"Real savings. Real members."}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:fO.map((e,n)=>p.jsxs("div",{className:"rounded-2xl p-6",style:{background:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:[p.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(5)].map((s,o)=>p.jsx(hy,{className:"w-4 h-4 fill-current",style:{color:"#FBBF24"}},o))}),p.jsxs("p",{className:"mb-6",style:{fontSize:"15px",color:"var(--color-text-primary)",lineHeight:1.6},children:['"',e.quote,'"']}),p.jsxs("div",{className:"flex items-center justify-between gap-3",children:[p.jsxs("div",{children:[p.jsx("p",{style:{fontSize:"15px",color:"var(--color-text-primary)",fontWeight:"600"},children:e.name}),p.jsx("p",{style:{fontSize:"14px",color:"var(--color-text-muted)"},children:e.location})]}),p.jsx("span",{className:"font-bold px-3 py-1.5 rounded-full",style:{fontSize:"13px",background:"var(--color-text-primary)",color:"var(--color-bg-card)"},children:e.savings})]})]},n))})]})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-dark)"},children:p.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[p.jsx("h2",{className:"font-heading font-normal text-white mb-6",style:{fontSize:"clamp(32px, 4.5vw, 48px)",letterSpacing:"-0.5px"},children:"Try Rafter completely risk-free."}),p.jsxs("p",{className:"mb-12",style:{fontSize:"16px",color:"rgba(255,255,255,.75)",lineHeight:1.7},children:["Every membership starts with a ",p.jsx("strong",{style:{color:"rgba(200,216,240,.95)"},children:"30-day free trial"})," — we'll remind you before your card is charged. And it's backed by our ",p.jsx("strong",{style:{color:"rgba(200,216,240,.95)"},children:"$120 savings guarantee"}),": save at least $120 in year one, or we refund the difference."]}),p.jsx("div",{className:"mb-8",children:p.jsxs(We,{to:"/membership",className:"inline-flex items-center gap-1 transition-opacity hover:opacity-80",style:{fontSize:"14px",color:"rgba(255,255,255,.7)"},children:["See full plan details ",p.jsx(Ns,{className:"w-3.5 h-3.5"})]})}),p.jsx("a",{href:t,className:"bg-white text-[#0D1B2A] rounded-full px-8 py-4 font-semibold hover:bg-gray-100 inline-block",onClick:()=>Fr("try_rafter_free","reddit_lp_risk_free"),children:"Try Rafter for free →"})]})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-light)"},children:p.jsx("div",{className:"max-w-4xl mx-auto",children:p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[p.jsx("div",{className:"rounded-2xl p-6",style:{background:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:p.jsxs("div",{className:"flex gap-4 items-start",children:[p.jsx(Z_,{className:"w-6 h-6 shrink-0",style:{color:"var(--color-text-primary)"}}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold mb-2",style:{fontSize:"16px",color:"var(--color-text-primary)"},children:"30-day free trial"}),p.jsx("p",{style:{fontSize:"15px",color:"var(--color-text-muted)",lineHeight:1.6},children:"Full membership, free for 30 days. Cancel anytime before it ends — you won't be charged."})]})]})}),p.jsx("div",{className:"rounded-2xl p-6",style:{background:"var(--color-bg-card)",border:"1px solid var(--color-border)"},children:p.jsxs("div",{className:"flex gap-4 items-start",children:[p.jsx(R_,{className:"w-6 h-6 shrink-0",style:{color:"var(--color-text-primary)"}}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold mb-2",style:{fontSize:"16px",color:"var(--color-text-primary)"},children:"$120 savings guarantee"}),p.jsx("p",{style:{fontSize:"15px",color:"var(--color-text-muted)",lineHeight:1.6},children:"Advanced plan members who don't save $120 in year one get the difference refunded."})]})]})})]})})}),p.jsx("section",{className:"px-6 py-24",style:{background:"var(--color-bg-dark)"},children:p.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[p.jsx("h2",{className:"font-heading font-normal text-white mb-10",style:{fontSize:"clamp(40px, 5vw, 56px)",letterSpacing:"-0.5px"},children:"Stop leaving money on the table."}),p.jsx("a",{href:t,className:"bg-white text-[#0D1B2A] rounded-full px-8 py-4 font-semibold hover:bg-gray-100 inline-block",onClick:()=>Fr("try_rafter_free","reddit_lp_final_cta"),children:"Try Rafter for free →"}),p.jsx("p",{className:"mt-8",style:{fontSize:"13px",color:"rgba(255,255,255,.5)"},children:"90-day free trial · Cancel anytime"})]})}),p.jsxs("footer",{className:"px-6 py-12 text-center",style:{background:"var(--color-bg-dark)",borderTop:"0.5px solid rgba(255,255,255,.1)"},children:[p.jsx("img",{src:"https://media.base44.com/images/public/69ed1a68d76c21a3e1394b53/a96bcc7fe_Asset13x-8.png",alt:"Rafter",className:"h-8 w-auto object-contain mx-auto mb-4",style:{filter:"brightness(0) invert(1)"}}),p.jsx("p",{style:{fontSize:"14px",color:"rgba(255,255,255,.5)",marginBottom:"16
633px"},children:"Your home, always looked after."}),p.jsxs("div",{className:"flex items-center justify-center gap-6",children:[p.jsx(We,{to:"/privacy-policy",className:"transition-opacity hover:opacity-70",style:{fontSize:"13px",color:"rgba(255,255,255,.4)"},children:"Privacy Policy"}),p.jsx(We,{to:"/terms-of-service",className:"transition-opacity hover:opacity-70",style:{fontSize:"13px",color:"rgba(255,255,255,.4)"},children:"Terms"})]}),p.jsxs("p",{style:{fontSize:"12px",color:"rgba(255,255,255,.25)",marginTop:"16px"},children:["© ",new Date().getFullYear()," Five Tree Orchard, Inc."]})]})]})}function pO(){const[t]=qC(),[e,n]=T.useState(null),s=T.useMemo(()=>Pb(t.get("src")||t.get("utm_content")||t.get("utm_source")||"link"),[t]),o=t.get("msg")||void 0,l=jb(s,o);return Ec({title:"Text your Rafter team | Rafter",description:"Start your Rafter membership over text. No app, no form — just send us what's on your list."}),T.useEffect(()=>{let c=document.querySelector('meta[name="robots"]');c||(c=document.createElement("meta"),c.name="robots",document.head.appendChild(c));const f=c.content;return c.content="noindex, nofollow",()=>{c.content=f||"index, follow"}},[]),T.useEffect(()=>{const c=T3();if(n(c),Hv("text_route_hit",{src:s,location:"text_route",device:c?"mobile":"desktop"}),c){const f=setTimeout(()=>{window.location.replace(l)},150);return()=>clearTimeout(f)}},[s,l]),p.jsxs("div",{className:"min-h-screen flex flex-col",style:{background:"#0C1726"},children:[p.jsx(lp,{variant:"logo-only"}),p.jsx("main",{className:"flex-1 flex items-center justify-center px-6 pt-24 pb-16",children:p.jsxs("div",{className:"w-full max-w-md text-center",children:[p.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-[0.22em] mb-4",style:{color:"rgba(147,197,253,.6)"},children:"No app. No form. Just text."}),p.jsx("h1",{className:"font-heading font-normal leading-[1.15] tracking-tight mb-6",style:{fontSize:"clamp(28px, 5vw, 40px)",color:"#FFFFFF"},children:"Text your Rafter team."}),e?p.jsxs(p.Fragment,{children:[p.jsx("p",{className:"font-body mb-6",style:{fontSize:"15px",color:"rgba(200,216,240,.75)"},children:"Opening Messages… if nothing happened, tap below."}),p.jsxs("a",{href:l,className:"inline-flex w-full items-center justify-center gap-2 px-7 py-4 font-body font-medium text-base rounded-lg",style:{background:"#FFFFFF",color:"#0C1726",borderRadius:"10px"},onClick:()=>Hv("text_cta_click",{src:s,location:"text_route_fallback",device:"mobile"}),children:["Open Messages",p.jsx(Ns,{className:"w-4 h-4"})]}),p.jsx("div",{className:"mt-10",children:p.jsx(qv,{src:s,msg:o,tone:"dark"})})]}):p.jsx(qv,{src:s,msg:o,tone:"dark"}),p.jsxs("p",{className:"font-body mt-10",style:{fontSize:"12.5px",color:"rgba(200,216,240,.45)"},children:["Prefer the app?"," ",p.jsx("a",{href:"https://app.rafterhome.com/signup",style:{color:"rgba(200,216,240,.75)",textDecoration:"underline"},children:"Start your free 30 days"})," · ",p.jsx(We,{to:"/",style:{color:"rgba(200,216,240,.75)",textDecoration:"underline"},children:"rafterhome.com"})]})]})})]})}function mO(){return Ec({title:"Join the waitlist | Rafter",description:"Rafter is opening to new members in small groups. Leave your details and we'll reach out when it's your turn."}),p.jsxs("div",{className:"min-h-screen flex flex-col",style:{background:"#0C1726"},children:[p.jsx(lp,{}),p.jsx("main",{className:"flex-1 flex items-center px-6 pt-28 pb-20",children:p.jsxs("div",{className:"w-full max-w-xl mx-auto",children:[p.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-[0.22em] mb-4",style:{color:"rgba(147,197,253,.6)"},children:Qe.eyebrow}),p.jsx("h1",{className:"font-heading font-normal leading-[1.1] tracking-tight",style:{fontSize:"clamp(36px, 4.5vw, 52px)",color:"#FFFFFF"},children:Qe.headline}),p.jsx("p",{className:"mt-5 font-body leading-[1.7]",style:{fontSize:"16px",color:"rgba(200,216,240,.75)",maxWidth:"540px"},children:Qe.body}),p.jsx("div",{className:"mt-8 max-w-md",children:p.jsx(Oc,{tone:"dark",source:"waitlist_page"})}),p.jsxs("p",{className:"font-body mt-8",style:{fontSize:"13px",color:"rgba(200,216,240,.5)"},children:["Already a member?"," ",p.jsx("a",{href:"https://app.rafterhome.com",style:{color:"rgba(200,216,240,.85)",textDecoration:"underline"},children:"Sign in"})," · ",p.jsx(We,{to:"/membership",style:{color:"rgba(200,216,240,.85)",textDecoration:"underline"},children:"See what membership includes"})]})]})}),p.jsx(Wb,{hideNewsletter:!0})]})}const gO=T.lazy(()=>De(()=>import("./ChiefOfStaff-ClddAm1z.js"),__vite__mapDeps([0,1]))),yO=T.lazy(()=>De(()=>import("./InspectionActionPlan-DhTZPOUc.js"),[])),vO=T.lazy(()=>De(()=>import("./Membership-BIWm6PC1.js"),__vite__mapDeps([2,3,4,5])));T.lazy(()=>De(()=>import("./GetStarted-Dbmd6Y-o.js"),__vite__mapDeps([6,4])));const xO=T.lazy(()=>De(()=>import("./ForInsurers-B1jXSnPp.js"),[])),wO=T.lazy(()=>De(()=>import("./AboutUs-WX3KLmqx.js"),__vite__mapDeps([7,3]))),bO=T.lazy(()=>De(()=>import("./JoinUs-By9t4IxL.js"),__vite__mapDeps([8,1]))),SO=T.lazy(()=>De(()=>import("./Blog-C2-jkvRH.js"),[]));T.lazy(()=>De(()=>import("./BlogPost-DOb0Vk4g.js"),[]));const _O=T.lazy(()=>De(()=>
633import("./PrivacyPolicy-VnFW8-xg.js"),[])),kO=T.lazy(()=>De(()=>import("./TermsOfService-C3b-J34n.js"),[])),EO=T.lazy(()=>De(()=>import("./Friends-BW8_I8JZ.js"),__vite__mapDeps([9,10]))),CO=T.lazy(()=>De(()=>import("./Marcus-7e9GPtvd.js"),[])),TO=T.lazy(()=>De(()=>import("./Anil-qHesDklo.js"),[])),RO=T.lazy(()=>De(()=>import("./Report-BQBVsHg5.js"),[])),PO=T.lazy(()=>De(()=>import("./HomeServices-BLjd2kHP.js"),__vite__mapDeps([11,12,13,14]))),AO=T.lazy(()=>De(()=>import("./Newsletter-BDwjt_yw.js"),[])),jO=T.lazy(()=>De(()=>import("./FoaSon-CjTnwhdf.js"),[])),NO=T.lazy(()=>De(()=>import("./CertaProLP-K4UDxwmZ.js"),__vite__mapDeps([15,16,17,18,10]))),OO=T.lazy(()=>De(()=>import("./CorcoranLP-BlTh3m78.js"),__vite__mapDeps([19,12,17,5,14]))),Zv=T.lazy(()=>De(()=>import("./TextRafterLP-_aDg1wV_.js"),[])),FO=T.lazy(()=>De(()=>import("./RecomendoLP-Cf0H5nLF.js"),[])),LO=T.lazy(()=>De(()=>import("./BenefitHubLP-CJ_On8P7.js"),__vite__mapDeps([20,21]))),ex=T.lazy(()=>De(()=>import("./LifeBalanceLP-BT230Eos.js"),__vite__mapDeps([22,21]))),DO=T.lazy(()=>De(()=>import("./NewHomeownerLP-B7jUBqk0.js"),__vite__mapDeps([23,5,4]))),MO=T.lazy(()=>De(()=>import("./CTADashboard-B8dE3SC0.js"),__vite__mapDeps([24,3,13,25]))),IO=T.lazy(()=>De(()=>import("./AiAssistantLP-BWgQy9d6.js"),[])),BO=T.lazy(()=>De(()=>import("./Updates-D1U1f4Uj.js"),[])),zO=T.lazy(()=>De(()=>import("./UpdateJune2026-DPSiOUu1.js"),[])),UO=T.lazy(()=>De(()=>import("./PrivateClient-CO7JLHnV.js"),__vite__mapDeps([26,16,17,18]))),VO=T.lazy(()=>De(()=>import("./PrivateClientPure-pGViNW4c.js"),__vite__mapDeps([27,17,18,14,25]))),$O=T.lazy(()=>De(()=>import("./PrivateClientPureSchedule-Cxdxfm81.js"),__vite__mapDeps([28,29]))),HO=T.lazy(()=>De(()=>import("./PrivateClientPureConfirmed-l2Sfcb3z.js"),__vite__mapDeps([30,29,4]))),WO=T.lazy(()=>De(()=>import("./PartnersReyInsurance-DoxVCzB3.js"),__vite__mapDeps([31,17,18,14,25]))),qO=T.lazy(()=>De(()=>import("./OptOut-CpUwlf_q.js"),[])),KO=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:n,navigateToLogin:s}=GP();if(e||t)return p.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:p.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return p.jsx(YP,{});if(n.type==="auth_required")return s(),null}return p.jsx(T.Suspense,{fallback:p.jsx("div",{style:{minHeight:"100vh",background:"#0C1726"}}),children:p.jsxs(FC,{children:[p.jsx(W,{path:"/",element:p.jsx(cO,{})}),p.jsx(W,{path:"/new-homeowner",element:p.jsx(yO,{})}),p.jsx(W,{path:"/ezra",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/membership",element:p.jsx(vO,{})}),p.jsx(W,{path:"/get-started",element:p.jsx(se,{to:"/waitlist",replace:!0})}),p.jsx(W,{path:"/waitlist",element:p.jsx(mO,{})}),p.jsx(W,{path:"/friends",element:p.jsx(EO,{})}),p.jsx(W,{path:"/marcus",element:p.jsx(CO,{})}),p.jsx(W,{path:"/anil",element:p.jsx(TO,{})}),p.jsx(W,{path:"/reports/:token",element:p.jsx(RO,{})}),p.jsx(W,{path:"/home-services",element:p.jsx(PO,{})}),p.jsx(W,{path:"/newsletter",element:p.jsx(AO,{})}),p.jsx(W,{path:"/partners/foa-son",element:p.jsx(jO,{})}),p.jsx(W,{path:"/partners/certapro",element:p.jsx(NO,{})}),p.jsx(W,{path:"/corcoran",element:p.jsx(OO,{})}),p.jsx(W,{path:"/partners/corcoran",element:p.jsx(se,{to:"/corcoran",replace:!0})}),p.jsx(W,{path:"/partners/rey-insurance",element:p.jsx(WO,{})}),p.jsx(W,{path:"/lp/insurance-savings",element:p.jsx(hO,{})}),p.jsx(W,{path:"/lp/recomendo",element:p.jsx(FO,{})}),p.jsx(W,{path:"/lp/benefithub",element:p.jsx(LO,{})}),p.jsx(W,{path:"/benefithub",element:p.jsx(se,{to:`/lp/benefithub${typeof window<"u"?window.location.search:""}`,replace:!0})}),p.jsx(W,{path:"/lifebalance",element:p.jsx(ex,{})}),p.jsx(W,{path:"/lp/lifebalance",element:p.jsx(se,{to:"/lifebalance",replace:!0})}),p.jsx(W,{path:"/lp/member-offer",element:p.jsx(ex,{})}),p.jsx(W,{path:"/partners/lifebalance",element:p.jsx(se,{to:"/lifebalance",replace:!0})}),p.jsx(W,{path:"/lp/new-homeowner",element:p.jsx(DO,{})}),p.jsx(W,{path:"/lp/ai-assistant",element:p.jsx(IO,{})}),p.jsx(W,{path:"/text",element:p.jsx(pO,{})}),p.jsx(W,{path:"/text-rafter",element:p.jsx(Zv,{})}),p.jsx(W,{path:"/lp/text",element:p.jsx(Zv,{})}),p.jsx(W,{path:"/updates",element:p.jsx(BO,{})}),p.jsx(W,{path:"/updates/june-2026",element:p.jsx(zO,{})}),p.jsx(W,{path:"/admin/cta-dashboard",element:p.jsx(MO,{})}),p.jsx(W,{path:"/for-insurers",element:p.jsx(xO,{})}),p.jsx(W,{path:"/private-client",element:p.jsx(UO,{})}),p.jsx(W,{path:"/private-client/pure",element:p.jsx(VO,{})}),p.jsx(W,{path:"/private-client/pure/schedule",element:p.jsx($O,{})}),p.jsx(W,{path:"/private-client/pure/confirmed",element:p.jsx(HO,{})}),p.jsx(W,{path:"/opt-out",element:p.jsx(qO,{})}),p.jsx(W,{path:"/about-us",element:p.jsx(wO,{})}),p.jsx(W,{path:"/join-us",element:p.jsx(bO,{})}),p.jsx(W,{path:"/join-us/chief-of-staff",element:p.jsx(gO,{})}),p.jsx(W,{path:"/blog",element:p.jsx(SO,{})}),p.jsx(W,{path:"/privacy-policy",element:p.jsx(_O,{})}),p.jsx(W,{path:"/terms-of-service",element:p.jsx(kO,{})}),p.jsx(W,{path:"/start",element:p.jsx(se,{to:"/get-started",replace:!0})}),p.jsx(W,{path:"/welcome",element:p.jsx(se,{to:"/get-started",replace:!0})}),p.jsx(W,{path:"/careers",element:p.jsx(se,{to:"/join-us",replace:!0})}),p.jsx(W,{path:"/jobs",element:p.jsx(se,{to:"/join-us",replace:!0})}),p.jsx(W,{path:"/launch",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/early-access",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/westchester",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/fairfield",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/pure",element:p.jsx(se,{to:"/private-client/pure",replace:!0})}),p.jsx(W,{path:"/pure-signup",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/pureintro",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/realtors",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/home-inspectors",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/thank-you",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/success",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/project-request",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/rafter-home-services",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/home-services-faqs",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/insurance-review",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/Landing",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/BonusOffer",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/WaitlistLanding",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/new-membership",element:p.jsx(se,{to:"/membership",replace:!0})}),p.jsx(W,{path:"/new-membership/*",element:p.jsx(se,{to:"/membership",replace:!0})}),p.jsx(W,{path:"/blog-post",element:p.jsx(se,{to:"/blog",replace:!0})}),p.jsx(W,{path:"/NewHomeowner",element:p.jsx(se,{to:"/new-homeowner",replace:!0})}),p.jsx(W,{path:"/NewHomeownerGuide",element:p.jsx(se,{to:"/new-homeowner",replace:!0})}),p.jsx(W,{path:"/GetStarted",element:p.jsx(se,{to:"/get-started",replace:!0})}),p.jsx(W,{path:"/ForInsurers",element:p.jsx(se,{to:"/for-insurers",replace:!0})}),p.jsx(W,{path:"/AboutUs",element:p.jsx(se,{to:"/about-us",replace:!0})}),p.jsx(W,{path:"/JoinUs",element:p.jsx(se,{to:"/join-us",replace:!0})}),p.jsx(W,{path:"/BlogPost",element:p.jsx(se,{to:"/blog",replace:!0})}),p.jsx(W,{path:"/PrivacyPolicy",element:p.jsx(se,{to:"/privacy-policy",replace:!0})}),p.jsx(W,{path:"/TermsOfService",element:p.jsx(se,{to:"/terms-of-service",replace:!0})}),p.jsx(W,{path:"/Membership",element:p.jsx(se,{to:"/membership",replace:!0})}),p.jsx(W,{path:"/Ezra",element:p.jsx(se,{to:"/",replace:!0})}),p.jsx(W,{path:"/handyman",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-armonk-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-bronxville-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-chappaqua-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-darien-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-dobbs-ferry-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-eastchester-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-fairfield-county-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-fairfield-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-greenwich-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-harrison-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-larchmont-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-mamaroneck-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-new-canaan-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-ossining-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-pelham-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-pleasantville-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-ridgefield-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-rye-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-scarsdale-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-stamford-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-tarrytown-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}
633),p.jsx(W,{path:"/handyman-westchester-county-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-westport-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-white-plains-ny",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"/handyman-wilton-ct",element:p.jsx(se,{to:"/home-services",replace:!0})}),p.jsx(W,{path:"*",element:p.jsx(KP,{})})]})})};function QO(){return p.jsx(QP,{children:p.jsxs(RE,{client:UE,children:[p.jsx(VC,{children:p.jsx(KO,{})}),p.jsx(nE,{})]})})}document.documentElement.classList.add("react-mounted");const tx=document.getElementById("static-hero");tx&&tx.remove();e_.createRoot(document.getElementById("root")).render(p.jsx(QO,{}));export{gx as $,Ns as A,m_ as B,x_ as C,Fr as D,U_ as E,A_ as F,T3 as G,F_ as H,Hv as I,jb as J,VE as K,We as L,H_ as M,vx as N,qC as O,I3 as P,k3 as Q,dt as R,lp as S,qv as T,xx as U,hy as V,Ms as W,Go as X,dO as Y,R_ as Z,YO as _,Wb as a,fR as a0,Gw as a1,S6 as a2,Hr as a3,w6 as a4,x6 as a5,ER as a6,XO as a7,Hb as b,Ue as c,Qe as d,ta as e,Tc as f,hx as g,Oc as h,B_ as i,p as j,vc as k,ck as l,at as m,va as n,zn as o,ph as p,H3 as q,T as r,X_ as s,th as t,Ec as u,nh as v,tk as w,JO as x,Z_ as y,$3 as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.