vendor: 4,958 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-CZa1Dpit.js","assets/empowerment-young-queen-B07SGd_8.js","assets/camera-CQT33gaU.js","assets/textarea-CcV1k9Cd.js","assets/validation-pKqCo0XP.js","assets/pen-line-DxoMXFq6.js","assets/rotate-ccw-BQUF485p.js","assets/check-Cyw8qn0D.js","assets/upload-5tqj8CNI.js","assets/smile-DAGHp0Pv.js","assets/Profile-BCJl3PsH.js","assets/avatar-k1omA2Fi.js","assets/separator-CTR_znUr.js","assets/switch-t8rwWEdY.js","assets/progress-JqVFM1gN.js","assets/calendar-Dodd1r6N.js","assets/format-Cn6ElKJ8.js","assets/en-US-CXXYYhpC.js","assets/bell-Dc_RYjMz.js","assets/loader-circle-CZ_geqae.js","assets/user-Dd_SXVXr.js","assets/settings-cLgs3mni.js","assets/mail-rAjwM4rG.js","assets/filter-b1rxWdXb.js","assets/circle-DEg_pb6A.js","assets/AffirmationMirror-CAHZtQYV.js","assets/usePremiumAccess-BYPsv9Ay.js","assets/house-CUUNLlcb.js","assets/square-BBuUZiRV.js","assets/SelfLoveAssessment-NgFYFObs.js","assets/radio-group-CNYLzVCg.js","assets/arrow-right-CUzZpWVI.js","assets/Mirror-DwGieonj.js","assets/VoiceNotes-BZXUlWrk.js","assets/trash-2-VtFXnL4x.js","assets/VisionBoard-zt0RSrbv.js","assets/select-Tn3h6yZZ.js","assets/confidence-young-girl-CCu4XpAf.js","assets/lightbulb-DnYnZiXl.js","assets/globe-Brfby88_.js","assets/plus-BWXN0Mzt.js","assets/lock-Be52UAPN.js","assets/VisionBoard-D8Md-CES.css","assets/CommunityVisionBoards-DC66GcZI.js","assets/Ebook-BdumhgaG.js","assets/Workbook-CIOiATKP.js","assets/save-BxkEtuAW.js","assets/checkbox-DU_lh-31.js","assets/EbookNotes-BeUJKWin.js","assets/useDebounce-i_d-TPaQ.js","assets/search-DfJrq0Pb.js","assets/pencil-C1015J_z.js","assets/Premium-BEEaPILC.js","assets/Subscription-BDn8G_b4.js","assets/JournalHistory-ClxJHg_Y.js","assets/SavedAffirmations-zCZERsYw.js","assets/Circles-BXGOZGmP.js","assets/message-circle-Dp8Kc7iX.js","assets/activity-DEuq9EdJ.js","assets/ban-DvBkHTME.js","assets/video-D2PbMWS5.js","assets/CommunityGallery-BJIBg8Ry.js","assets/PremiumLibrary-BXZlyA9l.js","assets/CommunityGuidelines-5oUHO11J.js","assets/SafetyResources-BXvDycyX.js","assets/Install-Arl2YcSf.js","assets/circle-check-big-DrR00IgM.js","assets/WeeklyBetaFeedback-DPc6wivV.js","assets/ExitSurvey-CuRjFlwC.js","assets/Admin-DKjaNNph.js","assets/table-CnjIDQIw.js","assets/AdminCommunityVoiceNotes-CZa7sDdo.js","assets/LineChart-B2vz4ggM.js","assets/AdminDashboard-Cm8cVCRF.js","assets/use-mobile-CrCAEjpp.js","assets/AdminNavigation-BALrVg_C.js","assets/chart-column-RBik8eZM.js","assets/AdminAnalytics-C35hjYBa.js","assets/AdminModeration-DOeFdoo2.js","assets/Breadcrumb-Dk4aQzCY.js","assets/circle-x-DzZoUJG4.js","assets/AdminSettings-Cs_UD_Z1.js","assets/AdminAffirmations-ClJxX7jU.js","assets/square-pen-DtA2o_es.js","assets/AdminChallenges-BttIq9WI.js","assets/AdminCommunityMedia-DuUBmDYs.js","assets/AdminVoiceNotes-CCTkuwyq.js","assets/AdminEbookAccess-B2bJsISf.js","assets/AdminBetaFeedback-Blet-M2A.js","assets/AdminWeeklyFeedback-BbohBDXa.js","assets/AdminNotifications-v1vHUISv.js","assets/AdminBetaRequests-Blzm_T3e.js"])))=>i.map(i=>d[i]); 2var fk=Object.defineProperty;var Cm=t=>{throw TypeError(t)};var hk=(t,e,n)=>e in t?fk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Mn=(t,e,n)=>hk(t,typeof e!="symbol"?e+"":e,n),Pu=(t,e,n)=>e.has(t)||Cm("Cannot "+n);var N=(t,e,n)=>(Pu(t,e,"read from private field"),n?n.call(t):e.get(t)),we=(t,e,n)=>e.has(t)?Cm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),oe=(t,e,n,r)=>(Pu(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),tt=(t,e,n)=>(Pu(t,e,"access private method"),n);var Wa=(t,e,n,r)=>({set _(s){oe(t,e,s,n)},get _(){return N(t,e,r)}});function pk(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}
vendor: 4,961 bytes, lines 2-10
2function mk(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?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(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Hy={exports:{}},Dc={},Wy={exports:{}},he={};/** 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 Sa=Symbol.for("react.element"),gk=Symbol.for("react.portal"),vk=Symbol.for("react.fragment"),yk=Symbol.for("react.strict_mode"),wk=Symbol.for("react.profiler"),xk=Symbol.for("react.provider"),bk=Symbol.for("react.context"),_k=Symbol.for("react.forward_ref"),Sk=Symbol.for("react.suspense"),kk=Symbol.for("react.memo"),Ek=Symbol.for("react.lazy"),jm=Symbol.iterator;function Ck(t){return t===null||typeof t!="object"?null:(t=jm&&t[jm]||t["@@iterator"],typeof t=="function"?t:null)}var qy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ky=Object.assign,Gy={};function Jo(t,e,n){this.props=t,this.context=e,this.refs=Gy,this.updater=n||qy}Jo.prototype.isReactComponent={};Jo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Jo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Yy(){}Yy.prototype=Jo.prototype;function Sh(t,e,n){this.props=t,this.context=e,this.refs=Gy,this.updater=n||qy}var kh=Sh.prototype=new Yy;kh.constructor=Sh;Ky(kh,Jo.prototype);kh.isPureReactComponent=!0;var Tm=Array.isArray,Zy=Object.prototype.hasOwnProperty,Eh={current:null},Qy={key:!0,ref:!0,__self:!0,__source:!0};function Jy(t,e,n){var r,s={},o=null,i=null;if(e!=null)for(r in e.ref!==void 0&&(i=e.ref),e.key!==void 0&&(o=""+e.key),e)Zy.call(e,r)&&!Qy.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Sa,type:t,key:o,ref:i,props:s,_owner:Eh.current}}function jk(t,e){return{$$typeof:Sa,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Ch(t){return typeof t=="object"&&t!==null&&t.$$typeof===Sa}function Tk(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Pm=/\/+/g;function Nu(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Tk(""+t.key):e.toString(36)}function Nl(t,e,n,r,s){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case Sa:case gk:i=!0}}if(i)return i=t,s=s(i),t=r===""?"."+Nu(i,0):r,Tm(s)?(n="",t!=null&&(n=t.replace(Pm,"$&/")+"/"),Nl(s,e,n,"",function(c){return c})):s!=null&&(Ch(s)&&(s=jk(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Pm,"$&/")+"/")+t)),e.push(s)),1;if(i=0,r=r===""?".":r+":",Tm(t))for(var a=0;a<t.length;a++){o=t[a];var l=r+Nu(o,a);i+=Nl(o,e,n,l,s)}else if(l=Ck(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=r+Nu(o,a++),i+=Nl(o,e,n,l,s);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return i}function qa(t,e,n){if(t==null)return t;var r=[],s=0;return Nl(t,r,"","",function(o){return e.call(n,o,s++)}),r}function Pk(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var pt={current:null},Rl={transition:null},Nk={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:Rl,ReactCurrentOwner:Eh};function Xy(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:qa,forEach:function(t,e,n){qa(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return qa(t,function(){e++}),e},toArray:function(t){return qa(t,function(e){return e})||[]},only:function(t){if(!Ch(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};he.Component=Jo;he.Fragment=vk;he.Profiler=wk;he.PureComponent=Sh;he.StrictMode=yk;he.Suspense=Sk;
vendor: 7,016 bytes, lines 10-26
10he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nk;he.act=Xy;he.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Ky({},t.props),s=t.key,o=t.ref,i=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,i=Eh.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Zy.call(e,l)&&!Qy.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Sa,type:t.type,key:s,ref:o,props:r,_owner:i}};he.createContext=function(t){return t={$$typeof:bk,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:xk,_context:t},t.Consumer=t};he.createElement=Jy;he.createFactory=function(t){var e=Jy.bind(null,t);return e.type=t,e};he.createRef=function(){return{current:null}};he.forwardRef=function(t){return{$$typeof:_k,render:t}};he.isValidElement=Ch;he.lazy=function(t){return{$$typeof:Ek,_payload:{_status:-1,_result:t},_init:Pk}};he.memo=function(t,e){return{$$typeof:kk,type:t,compare:e===void 0?null:e}};he.startTransition=function(t){var e=Rl.transition;Rl.transition={};try{t()}finally{Rl.transition=e}};he.unstable_act=Xy;he.useCallback=function(t,e){return pt.current.useCallback(t,e)};he.useContext=function(t){return pt.current.useContext(t)};he.useDebugValue=function(){};he.useDeferredValue=function(t){return pt.current.useDeferredValue(t)};he.useEffect=function(t,e){return pt.current.useEffect(t,e)};he.useId=function(){return pt.current.useId()};he.useImperativeHandle=function(t,e,n){return pt.current.useImperativeHandle(t,e,n)};he.useInsertionEffect=function(t,e){return pt.current.useInsertionEffect(t,e)};he.useLayoutEffect=function(t,e){return pt.current.useLayoutEffect(t,e)};he.useMemo=function(t,e){return pt.current.useMemo(t,e)};he.useReducer=function(t,e,n){return pt.current.useReducer(t,e,n)};he.useRef=function(t){return pt.current.useRef(t)};he.useState=function(t){return pt.current.useState(t)};he.useSyncExternalStore=function(t,e,n){return pt.current.useSyncExternalStore(t,e,n)};he.useTransition=function(){return pt.current.useTransition()};he.version="18.3.1";Wy.exports=he;var p=Wy.exports;const T=Qo(p),jh=pk({__proto__:null,default:T},[p]);/** 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 Rk=p,Ak=Symbol.for("react.element"),Ok=Symbol.for("react.fragment"),$k=Object.prototype.hasOwnProperty,Ik=Rk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Lk={key:!0,ref:!0,__self:!0,__source:!0};function e0(t,e,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(i=e.ref);for(r in e)$k.call(e,r)&&!Lk.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:Ak,type:t,key:o,ref:i,props:s,_owner:Ik.current}}Dc.Fragment=Ok;Dc.jsx=e0;Dc.jsxs=e0;Hy.exports=Dc;var u=Hy.exports,t0={exports:{}},Ot={},n0={exports:{}},r0={};/** 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 */(function(t){function e(j,R){var L=j.length;j.push(R);e:for(;0<L;){var Y=L-1>>>1,W=j[Y];if(0<s(W,R))j[Y]=R,j[L]=W,L=Y;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var R=j[0],L=j.pop();if(L!==R){j[0]=L;e:for(var Y=0,W=j.length,X=W>>>1;Y<X;){var Z=2*(Y+1)-1,ve=j[Z],ze=Z+1,ye=j[ze];if(0>s(ve,L))ze<W&&0>s(ye,ve)?(j[Y]=ye,j[ze]=L,Y=ze):(j[Y]=ve,j[Z]=L,Y=Z);else if(ze<W&&0>s(ye,L))j[Y]=ye,j[ze]=L,Y=ze;else break e}}return R}function s(j,R){var L=j.sortIndex-R.sortIndex;return L!==0?L:j.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();t.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,f=null,h=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=j)r(c),R.sortIndex=R.expirationTime,e(l,R);else break;R=n(c)}}function _(j){if(v=!1,y(j),!b)if(n(l)!==null)b=!0,z(S);else{var R=n(c);R!==null&&V(_,R.startTime-j)}}function S(j,R){b=!1,v&&(v=!1,g(E),E=-1),m=!0;var L=h;try{for(y(R),f=n(l);f!==null&&(!(f.expirationTime>R)||j&&!D());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,h=f.priorityLevel;var W=Y(f.expirationTime<=R);R=t.unstable_now(),typeof W=="function"?f.callback=W:f===n(l)&&r(l),y(R)}else r(l);f=n(l)}if(f!==null)var X=!0;else{var Z=n(c);Z!==null&&V(_,Z.startTime-R),X=!1}return X}finally{f=null,h=L,m=!1}}var k=!1,C=null,E=-1,O=5,P=-1;function D(){return!(t.unstable_now()-P<O)}function $(){if(C!==null){var j=t.unstable_now();P=j;var R=!0;try{R=C(!0,j)}finally{R?U():(k=!1,C=null)}}else k=!1}var U;if(typeof w=="function")U=function(){w($)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,I=A.port2;A.port1.onmessage=$,U=function(){I.postMessage(null)}}else U=function(){x($,0)};function z(j){C=j,k||(k=!0,U())}function V(j,R){E=x(function(){j(t.unstable_now())},R)}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(j){j.callback=null},t.unstable_continueExecution=function(){b||m||(b=!0,z(S))},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(j){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var L=h;h=R;try{return j()}finally{h=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(j,R){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var L=h;h=j;try{return R()}finally{h=L}},t.unstable_scheduleCallback=function(j,R,L){var Y=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Y+L:Y):L=Y,j){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}
vendor: 4,614 bytes, lines 26-34
26return W=L+W,j={id:d++,callback:R,priorityLevel:j,startTime:L,expirationTime:W,sortIndex:-1},L>Y?(j.sortIndex=L,e(c,j),n(l)===null&&j===n(c)&&(v?(g(E),E=-1):v=!0,V(_,L-Y))):(j.sortIndex=W,e(l,j),b||m||(b=!0,z(S))),j},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(j){var R=h;return function(){var L=h;h=R;try{return j.apply(this,arguments)}finally{h=L}}}})(r0);n0.exports=r0;var Dk=n0.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 Mk=p,Rt=Dk;function M(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s0=new Set,Yi={};function Os(t,e){Oo(t,e),Oo(t+"Capture",e)}function Oo(t,e){for(Yi[t]=e,t=0;t<e.length;t++)s0.add(e[t])}var Yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$d=Object.prototype.hasOwnProperty,Fk=/^[: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]*$/,Nm={},Rm={};function zk(t){return $d.call(Rm,t)?!0:$d.call(Nm,t)?!1:Fk.test(t)?Rm[t]=!0:(Nm[t]=!0,!1)}function Uk(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Bk(t,e,n,r){if(e===null||typeof e>"u"||Uk(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function mt(t,e,n,r,s,o,i){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=i}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){et[t]=new mt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];et[e]=new mt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){et[t]=new mt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){et[t]=new mt(t,2,!1,t,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(t){et[t]=new mt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){et[t]=new mt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){et[t]=new mt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){et[t]=new mt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){et[t]=new mt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Th=/[\-:]([a-z])/g;function Ph(t){return t[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
34-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(t){var e=t.replace(Th,Ph);et[e]=new mt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Th,Ph);et[e]=new mt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Th,Ph);et[e]=new mt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){et[t]=new mt(t,1,!1,t.toLowerCase(),null,!1,!1)});et.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){et[t]=new mt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Nh(t,e,n,r){var s=et.hasOwnProperty(e)?et[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Bk(e,n,s,r)&&(n=null),r||s===null?zk(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var rr=Mk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ka=Symbol.for("react.element"),Xs=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),Rh=Symbol.for("react.strict_mode"),Id=Symbol.for("react.profiler"),o0=Symbol.for("react.provider"),i0=Symbol.for("react.context"),Ah=Symbol.for("react.forward_ref"),Ld=Symbol.for("react.suspense"),Dd=Symbol.for("react.suspense_list"),Oh=Symbol.for("react.memo"),wr=Symbol.for("react.lazy"),a0=Symbol.for("react.offscreen"),Am=Symbol.iterator;function hi(t){return t===null||typeof t!="object"?null:(t=Am&&t[Am]||t["@@iterator"],typeof t=="function"?t:null)}var Ie=Object.assign,Ru;function Ti(t){if(Ru===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ru=e&&e[1]||""}return` 35`+Ru+t}var Au=!1;function Ou(t,e){if(!t||Au)return"";Au=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(` 36`),o=r.stack.split(` 37`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=` 38`+s[i].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=i&&0<=a);break}}}finally{Au=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ti(t):""}function Vk(t){switch(t.tag){case 5:return Ti(t.type);case 16:return Ti("Lazy");case 13:return Ti("Suspense");case 19:return Ti("SuspenseList");case 0:case 2:case 15:return t=Ou(t.type,!1),t;case 11:return t=Ou(t.type.render,!1),t;case 1:return t=Ou(t.type,!0),t;default:return""}}function Md(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case eo:return"Fragment";case Xs:return"Portal";case Id:return"Profiler";case Rh:return"StrictMode";case Ld:return"Suspense";case Dd:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case i0:return(t.displayName||"Context")+".Consumer";case o0:return(t._context.displayName||"Context")+".Provider";case Ah:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Oh:return e=t.displayName||null,e!==null?e:Md(t.type)||"Memo";case wr:e=t._payload,t=t._init;try{return Md(t(e))}catch{}}return null}function Hk(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Md(e);case 8:return e===Rh?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Wr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function l0(t){var e=t.type;
vendor: 14,305 bytes, line 38
38return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Wk(t){var e=l0(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ga(t){t._valueTracker||(t._valueTracker=Wk(t))}function c0(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=l0(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Ql(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Fd(t,e){var n=e.checked;return Ie({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Om(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Wr(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function u0(t,e){e=e.checked,e!=null&&Nh(t,"checked",e,!1)}function zd(t,e){u0(t,e);var n=Wr(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ud(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ud(t,e.type,Wr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function $m(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ud(t,e,n){(e!=="number"||Ql(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Pi=Array.isArray;function fo(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Wr(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Bd(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(M(91));return Ie({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Im(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(M(92));if(Pi(n)){if(1<n.length)throw Error(M(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Wr(n)}}function d0(t,e){var n=Wr(e.value),r=Wr(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Lm(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function f0(t){switch(t){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 Vd(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?f0(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Ya,h0=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Ya=Ya||document.createElement("div"),Ya.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ya.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Zi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ii={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},qk=["Webkit","ms","Moz","O"];Object.keys(Ii).forEach(function(t){qk.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ii[e]=Ii[t]})});function p0(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Ii.hasOwnProperty(t)&&Ii[t]?(""+e).trim():e+"px"}function m0(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=p0(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var Kk=Ie({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 Hd(t,e){if(e){if(Kk[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function Wd(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 qd=null;function $h(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Kd=null,ho=null,po=null;function Dm(t){if(t=Ca(t)){if(typeof Kd!="function")throw Error(M(280));var e=t.stateNode;e&&(e=Bc(e),Kd(t.stateNode,t.type,e))}}function g0(t){ho?po?po.push(t):po=[t]:ho=t}function v0(){if(ho){var t=ho,e=po;if(po=ho=null,Dm(t),e)for(t=0;t<e.length;t++)Dm(e[t])}}function y0(t,e){return t(e)}function w0(){}var $u=!1;function x0(t,e,n){if($u)return t(e,n);$u=!0;try{return y0(t,e,n)}finally{$u=!1,(ho!==null||po!==null)&&(w0(),v0())}}function Qi(t,e){var n=t.stateNode;if(n===null)return null;var r=Bc(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(M(231,e,typeof n));return n}var Gd=!1;if(Yn)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){Gd=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{Gd=!1}function Gk(t,e,n,r,s,o,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(d){this.onError(d)}}var Li=!1,Jl=null,Xl=!1,Yd=null,Yk={onError:function(t){Li=!0,Jl=t}};function Zk(t,e,n,r,s,o,i,a,l){Li=!1,Jl=null,Gk.apply(Yk,arguments)}function Qk(t,e,n,r,s,o,i,a,l){if(Zk.apply(this,arguments),Li){if(Li){var c=Jl;Li=!1,Jl=null}else throw Error(M(198));Xl||(Xl=!0,Yd=c)}}function $s(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function b0(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Mm(t){if($s(t)!==t)throw Error(M(188))}function Jk(t){var e=t.alternate;if(!e){if(e=$s(t),e===null)throw Error(M(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Mm(s),t;if(o===r)return Mm(s),e;o=o.sibling}throw Error(M(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function _0(t){return t=Jk(t),t!==null?S0(t):null}function S0(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=S0(t);if(e!==null)return e;t=t.sibling}return null}var k0=Rt.unstable_scheduleCallback,Fm=Rt.unstable_cancelCallback,Xk=Rt.unstable_shouldYield,eE=Rt.unstable_requestPaint,Ue=Rt.unstable_now,tE=Rt.unstable_getCurrentPriorityLevel,Ih=Rt.unstable_ImmediatePriority,E0=Rt.unstable_UserBlockingPriority,ec=Rt.unstable_NormalPriority,nE=Rt.unstable_LowPriority,C0=Rt.unstable_IdlePriority,Mc=null,Nn=null;function rE(t){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Mc,t,void 0,(t.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:iE,sE=Math.log,oE=Math.LN2;function iE(t){return t>>>=0,t===0?32:31-(sE(t)/oE|0)|0}var Za=64,Qa=4194304;function Ni(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function tc(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,o=t.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=Ni(a):(o&=i,o!==0&&(r=Ni(o)))}else i=n&~s,i!==0?r=Ni(i):o!==0&&(r=Ni(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,o=e&-e,s>=o||s===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-dn(e),s=1<<n,r|=t[n],e&=~s;return r}function aE(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 lE(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes;0<o;){var i=31-dn(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=aE(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function Zd(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function j0(){var t=Za;return Za<<=1,!(Za&4194240)&&(Za=64),t}function Iu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ka(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-dn(e),t[e]=n}function cE(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-dn(n),o=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~o}}function Lh(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-dn(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var be=0;function T0(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var P0,Dh,N0,R0,A0,Qd=!1,Ja=[],Ir=null,Lr=null,Dr=null,Ji=new Map,Xi=new Map,_r=[],uE="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 zm(t,e){switch(t){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":Ji.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(e.pointerId)}}function mi(t,e,n,r,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Ca(e),e!==null&&Dh(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function dE(t,e,n,r,s){switch(e){case"focusin":return Ir=mi(Ir,t,e,n,r,s),!0;case"dragenter":return Lr=mi(Lr,t,e,n,r,s),!0;case"mouseover":return Dr=mi(Dr,t,e,n,r,s),!0;case"pointerover":var o=s.pointerId;return Ji.set(o,mi(Ji.get(o)||null,t,e,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Xi.set(o,mi(Xi.get(o)||null,t,e,n,r,s)),!0}return!1}function O0(t){var e=hs(t.target);if(e!==null){var n=$s(e);if(n!==null){if(e=n.tag,e===13){if(e=b0(n),e!==null){t.blockedOn=e,A0(t.priority,function(){N0(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Al(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Jd(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);qd=r,n.target.dispatchEvent(r),qd=null}else return e=Ca(n),e!==null&&Dh(e),t.blockedOn=n,!1;e.shift()}return!0}function Um(t,e,n){Al(t)&&n.delete(e)}function fE(){Qd=!1,Ir!==null&&Al(Ir)&&(Ir=null),Lr!==null&&Al(Lr)&&(Lr=null),Dr!==null&&Al(Dr)&&(Dr=null),Ji.forEac
vendor: 11,841 bytes, line 38
38h(Um),Xi.forEach(Um)}function gi(t,e){t.blockedOn===e&&(t.blockedOn=null,Qd||(Qd=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,fE)))}function ea(t){function e(s){return gi(s,t)}if(0<Ja.length){gi(Ja[0],t);for(var n=1;n<Ja.length;n++){var r=Ja[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Ir!==null&&gi(Ir,t),Lr!==null&&gi(Lr,t),Dr!==null&&gi(Dr,t),Ji.forEach(e),Xi.forEach(e),n=0;n<_r.length;n++)r=_r[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<_r.length&&(n=_r[0],n.blockedOn===null);)O0(n),n.blockedOn===null&&_r.shift()}var mo=rr.ReactCurrentBatchConfig,nc=!0;function hE(t,e,n,r){var s=be,o=mo.transition;mo.transition=null;try{be=1,Mh(t,e,n,r)}finally{be=s,mo.transition=o}}function pE(t,e,n,r){var s=be,o=mo.transition;mo.transition=null;try{be=4,Mh(t,e,n,r)}finally{be=s,mo.transition=o}}function Mh(t,e,n,r){if(nc){var s=Jd(t,e,n,r);if(s===null)Wu(t,e,r,rc,n),zm(t,r);else if(dE(s,t,e,n,r))r.stopPropagation();else if(zm(t,r),e&4&&-1<uE.indexOf(t)){for(;s!==null;){var o=Ca(s);if(o!==null&&P0(o),o=Jd(t,e,n,r),o===null&&Wu(t,e,r,rc,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Wu(t,e,r,null,n)}}var rc=null;function Jd(t,e,n,r){if(rc=null,t=$h(r),t=hs(t),t!==null)if(e=$s(t),e===null)t=null;else if(n=e.tag,n===13){if(t=b0(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return rc=t,null}function $0(t){switch(t){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(tE()){case Ih:return 1;case E0:return 4;case ec:case nE:return 16;case C0:return 536870912;default:return 16}default:return 16}}var Nr=null,Fh=null,Ol=null;function I0(){if(Ol)return Ol;var t,e=Fh,n=e.length,r,s="value"in Nr?Nr.value:Nr.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var i=n-t;for(r=1;r<=i&&e[n-r]===s[o-r];r++);return Ol=s.slice(t,1<r?1-r:void 0)}function $l(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Xa(){return!0}function Bm(){return!1}function $t(t){function e(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Xa:Bm,this.isPropagationStopped=Bm,this}return Ie(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xa)},persist:function(){},isPersistent:Xa}),e}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zh=$t(Xo),Ea=Ie({},Xo,{view:0,detail:0}),mE=$t(Ea),Lu,Du,vi,Fc=Ie({},Ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==vi&&(vi&&t.type==="mousemove"?(Lu=t.screenX-vi.screenX,Du=t.screenY-vi.screenY):Du=Lu=0,vi=t),Lu)},movementY:function(t){return"movementY"in t?t.movementY:Du}}),Vm=$t(Fc),gE=Ie({},Fc,{dataTransfer:0}),vE=$t(gE),yE=Ie({},Ea,{relatedTarget:0}),Mu=$t(yE),wE=Ie({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),xE=$t(wE),bE=Ie({},Xo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),_E=$t(bE),SE=Ie({},Xo,{data:0}),Hm=$t(SE),kE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EE={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"},CE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=CE[t])?!!e[t]:!1}function Uh(){return jE}var TE=Ie({},Ea,{key:function(t){if(t.key){var e=kE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$l(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?EE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uh,charCode:function(t){return t.type==="keypress"?$l(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$l(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),PE=$t(TE),NE=Ie({},Fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wm=$t(NE),RE=Ie({},Ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uh}),AE=$t(RE),OE=Ie({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),$E=$t(OE),IE=Ie({},Fc,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),LE=$t(IE),DE=[9,13,27,32],Bh=Yn&&"CompositionEvent"in window,Di=null;Yn&&"documentMode"in document&&(Di=document.documentMode);var ME=Yn&&"TextEvent"in window&&!Di,L0=Yn&&(!Bh||Di&&8<Di&&11>=Di),qm=" ",Km=!1;function D0(t,e){switch(t){case"keyup":return DE.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var to=!1;function FE(t,e){switch(t){case"compositionend":return M0(e);case"keypress":return e.which!==32?null:(Km=!0,qm);case"textInput":return t=e.data,t===qm&&Km?null:t;default:return null}}function zE(t,e){if(to)return t==="compositionend"||!Bh&&D0(t,e)?(t=I0(),Ol=Fh=Nr=null,to=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return L0&&e.locale!=="ko"?null:e.data;default:return null}}var UE={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 Gm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!UE[t.type]:e==="textarea"}function F0(t,e,n,r){g0(r),e=sc(e,"onChange"),0<e.length&&(n=new zh("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Mi=null,ta=null;function BE(t){Z0(t,0)}function zc(t){var e=so(t);if(c0(e))return t}function VE(t,e){if(t==="change")return e}var z0=!1;if(Yn){var Fu;if(Yn){var zu="oninput"in document;if(!zu){var Ym=document.createElement("div");Ym.setAttribute("oninput","return;"),zu=typeof Ym.oninput=="function"}Fu=zu}else Fu=!1;z0=Fu&&(!document.documentMode||9<document.documentMode)}function Zm(){Mi&&(Mi.detachEvent("onpropertychange",U0),ta=Mi=null)}function U0(t){if(t.propertyName==="value"&&zc(ta)){var e=[];F0(e,ta,t,$h(t)),x0(BE,e)}}function HE(t,e,n){t==="focusin"?(Zm(),Mi=e,ta=n,Mi.attachEvent("onpropertychange",U0)):t==="focusout"&&Zm()}function WE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return zc(ta)}function qE(t,e){if(t==="click")return zc(e)}function KE(t,e){if(t==="input"||t==="change")return zc(e)}function GE(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pn=typeof Object.is=="function"?Object.is:GE;function na(t,e){if(pn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!$d.call(e,s)||!pn(t[s],e[s]))return!1}return!0}function Qm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Jm(t,e){var n=Qm(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qm(n)}}function B0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?B0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function V0(){for(var t=window,e=Ql();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ql(t.document)}return e}function Vh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function YE(t){var e=V0(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&B0(n.ownerDocument.documentElement,n)){if(r!==null&&Vh(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!t.extend&&o>r&&(s=r,r=o,o=s),s=Jm(n,o);var i=Jm(n,r);s&&i&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var ZE=Yn&&"documentMode"in document&&11>=document.documentMode,no=null,Xd=null,Fi=null,ef=!1;function Xm(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ef||no==null||no!==Ql(r)||(r=no,"selectionStart"in r&&Vh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Fi&&na(Fi,r)||(Fi=r,r=sc(Xd,"onSelect"),0<r.length&&(e=new zh("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=no)))}function el(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ro={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionend:el("Transition","TransitionEnd")},Uu={},H0={};Yn&&(H0=document.createElement("div").style,"AnimationEvent"in window||(delete ro.animationend.animation,delete ro.animationiteration.animation,delete ro.animationstart.animation),"TransitionEvent"in window||delete ro.transitionend.transition);function Uc(t){if(Uu[t])return Uu[t];if(!ro[t])return t;var e=ro[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in H0)return Uu[t]=e[n];return t}var W0=Uc("animationend"),q0=Uc("animationiteration"),K0=Uc("animationstart"),G0=Uc("transitionend"),Y0=new Map,eg="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 Qr(t,e){Y0.set(t,e),Os(e,[t])}for(var Bu=0;Bu<eg.length;Bu++){var Vu=eg[Bu],QE=Vu.toLowerCase(),JE=Vu[0].toUpperCase()+Vu.slice(1);Qr(QE,"on"+JE)}Qr(W0,"onAnimationEnd");Qr(q0,"onAnimationIteration");Qr(K0,"onAnimationStart");Qr("dblclick","onDoubleClick");Qr("focusin","onFocus");Qr("focusout","onBlur");Qr(G0,"onTransitionEnd");Oo("onMouseEnter",["mouseout","mouseover"]);Oo("onMouseLeave",["mouseout","mouseover"]);Oo("onPointerEnter",["pointerout","pointerover"]);Oo("onPointerLeave",["pointerout","pointerover"]);Os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Os("onBeforeInput",["compositionend","keypress","textInput","paste"]);Os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),XE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function tg(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Qk(r,e,void 0,t),t.currentTarget=null}function Z0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;tg(s,a,c),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;tg(s,a,c),o=l}}}if(Xl)throw t=Yd,Xl=!1,Yd=null,t}function Pe(t,e){var n=e[of];n===void 0&&(n=e[of]=new Set);var r=t+"__bubble";n.has(r)||(Q0(e,t,2,!1),n.add(r))}function Hu(t,e,n){var r=0;e&&(r|=4),Q0(n,t,r,e)}var tl="_reactListening"+Math.random().toString(36).slice(2);function ra(t){if(!t[tl]){t[tl]=!0,s0.forEach(function(n){n!=="selectionchange"&&(XE.has(n)||Hu(n,!1,t),Hu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[tl]||(e[tl]=!0,Hu("selectionchange",!1,e))}}function Q0(t,e,n,r){switch($0(e)){case 1:var s=hE;break;case 4:s=pE;break;default:s=Mh}n=s.bind(null,e,n,t),s=void 0,!Gd||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Wu(t,e,n,r,s){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 5,316 bytes, lines 38-39
38if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=hs(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}x0(function(){var c=o,d=$h(n),f=[];e:{var h=Y0.get(t);if(h!==void 0){var m=zh,b=t;switch(t){case"keypress":if($l(n)===0)break e;case"keydown":case"keyup":m=PE;break;case"focusin":b="focus",m=Mu;break;case"focusout":b="blur",m=Mu;break;case"beforeblur":case"afterblur":m=Mu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Vm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=vE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=AE;break;case W0:case q0:case K0:m=xE;break;case G0:m=$E;break;case"scroll":m=mE;break;case"wheel":m=LE;break;case"copy":case"cut":case"paste":m=_E;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Wm}var v=(e&4)!==0,x=!v&&t==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var w=c,y;w!==null;){y=w;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,g!==null&&(_=Qi(w,g),_!=null&&v.push(sa(w,_,y)))),x)break;w=w.return}0<v.length&&(h=new m(h,b,null,n,d),f.push({event:h,listeners:v}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",h&&n!==qd&&(b=n.relatedTarget||n.fromElement)&&(hs(b)||b[Zn]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(b=n.relatedTarget||n.toElement,m=c,b=b?hs(b):null,b!==null&&(x=$s(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(m=null,b=c),m!==b)){if(v=Vm,_="onMouseLeave",g="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(v=Wm,_="onPointerLeave",g="onPointerEnter",w="pointer"),x=m==null?h:so(m),y=b==null?h:so(b),h=new v(_,w+"leave",m,n,d),h.target=x,h.relatedTarget=y,_=null,hs(d)===c&&(v=new v(g,w+"enter",b,n,d),v.target=y,v.relatedTarget=x,_=v),x=_,m&&b)t:{for(v=m,g=b,w=0,y=v;y;y=zs(y))w++;for(y=0,_=g;_;_=zs(_))y++;for(;0<w-y;)v=zs(v),w--;for(;0<y-w;)g=zs(g),y--;for(;w--;){if(v===g||g!==null&&v===g.alternate)break t;v=zs(v),g=zs(g)}v=null}else v=null;m!==null&&ng(f,h,m,v,!1),b!==null&&x!==null&&ng(f,x,b,v,!0)}}e:{if(h=c?so(c):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var S=VE;else if(Gm(h))if(z0)S=KE;else{S=WE;var k=HE}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=qE);if(S&&(S=S(t,c))){F0(f,S,n,d);break e}k&&k(t,h,c),t==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Ud(h,"number",h.value)}switch(k=c?so(c):window,t){case"focusin":(Gm(k)||k.contentEditable==="true")&&(no=k,Xd=c,Fi=null);break;case"focusout":Fi=Xd=no=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,Xm(f,n,d);break;case"selectionchange":if(ZE)break;case"keydown":case"keyup":Xm(f,n,d)}var C;if(Bh)e:{switch(t){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else to?D0(t,n)&&(E="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(L0&&n.locale!=="ko"&&(to||E!=="onCompositionStart"?E==="onCompositionEnd"&&to&&(C=I0()):(Nr=d,Fh="value"in Nr?Nr.value:Nr.textContent,to=!0)),k=sc(c,E),0<k.length&&(E=new Hm(E,t,null,n,d),f.push({event:E,listeners:k}),C?E.data=C:(C=M0(n),C!==null&&(E.data=C)))),(C=ME?FE(t,n):zE(t,n))&&(c=sc(c,"onBeforeInput"),0<c.length&&(d=new Hm("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=C))}Z0(f,e)})}function sa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function sc(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Qi(t,n),o!=null&&r.unshift(sa(t,o,s)),o=Qi(t,e),o!=null&&r.push(sa(t,o,s))),t=t.return}return r}function zs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function ng(t,e,n,r,s){for(var o=e._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=Qi(n,o),l!=null&&i.unshift(sa(n,l,a))):s||(l=Qi(n,o),l!=null&&i.push(sa(n,l,a)))),n=n.return}i.length!==0&&t.push({event:e,listeners:i})}var eC=/\r\n?/g,tC=/\u0000|\uFFFD/g;function rg(t){return(typeof t=="string"?t:""+t).replace(eC,` 39`).replace(tC,"")}function nl(t,e,n){if(e=rg(e),rg(t)!==e&&n)throw Error(M(425))}function oc(){}var tf=null,nf=null;function rf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var sf=typeof setTimeout=="function"?setTimeout:void 0,nC=typeof clearTimeout=="function"?clearTimeout:void 0,sg=typeof Promise=="function"?Promise:void 0,rC=typeof queueMicrotask=="function"?queueMicrotask:typeof sg<"u"?function(t){return sg.resolve(null).then(t).cat
vendor: 4,793 bytes, line 39
39ch(sC)}:sf;function sC(t){setTimeout(function(){throw t})}function qu(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),ea(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ea(e)}function Mr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function og(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var ei=Math.random().toString(36).slice(2),jn="__reactFiber$"+ei,oa="__reactProps$"+ei,Zn="__reactContainer$"+ei,of="__reactEvents$"+ei,oC="__reactListeners$"+ei,iC="__reactHandles$"+ei;function hs(t){var e=t[jn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Zn]||n[jn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=og(t);t!==null;){if(n=t[jn])return n;t=og(t)}return e}t=n,n=t.parentNode}return null}function Ca(t){return t=t[jn]||t[Zn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function so(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(M(33))}function Bc(t){return t[oa]||null}var af=[],oo=-1;function Jr(t){return{current:t}}function Ne(t){0>oo||(t.current=af[oo],af[oo]=null,oo--)}function Ce(t,e){oo++,af[oo]=t.current,t.current=e}var qr={},it=Jr(qr),xt=Jr(!1),Es=qr;function $o(t,e){var n=t.type.contextTypes;if(!n)return qr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function bt(t){return t=t.childContextTypes,t!=null}function ic(){Ne(xt),Ne(it)}function ig(t,e,n){if(it.current!==qr)throw Error(M(168));Ce(it,e),Ce(xt,n)}function J0(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(M(108,Hk(t)||"Unknown",s));return Ie({},n,r)}function ac(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||qr,Es=it.current,Ce(it,t),Ce(xt,xt.current),!0}function ag(t,e,n){var r=t.stateNode;if(!r)throw Error(M(169));n?(t=J0(t,e,Es),r.__reactInternalMemoizedMergedChildContext=t,Ne(xt),Ne(it),Ce(it,t)):Ne(xt),Ce(xt,n)}var Hn=null,Vc=!1,Ku=!1;function X0(t){Hn===null?Hn=[t]:Hn.push(t)}function aC(t){Vc=!0,X0(t)}function Xr(){if(!Ku&&Hn!==null){Ku=!0;var t=0,e=be;try{var n=Hn;for(be=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Hn=null,Vc=!1}catch(s){throw Hn!==null&&(Hn=Hn.slice(t+1)),k0(Ih,Xr),s}finally{be=e,Ku=!1}}return null}var io=[],ao=0,lc=null,cc=0,zt=[],Ut=0,Cs=null,qn=1,Kn="";function cs(t,e){io[ao++]=cc,io[ao++]=lc,lc=t,cc=e}function ew(t,e,n){zt[Ut++]=qn,zt[Ut++]=Kn,zt[Ut++]=Cs,Cs=t;var r=qn;t=Kn;var s=32-dn(r)-1;r&=~(1<<s),n+=1;var o=32-dn(e)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,qn=1<<32-dn(e)+s|n<<s|r,Kn=o+t}else qn=1<<o|n<<s|r,Kn=t}function Hh(t){t.return!==null&&(cs(t,1),ew(t,1,0))}function Wh(t){for(;t===lc;)lc=io[--ao],io[ao]=null,cc=io[--ao],io[ao]=null;for(;t===Cs;)Cs=zt[--Ut],zt[Ut]=null,Kn=zt[--Ut],zt[Ut]=null,qn=zt[--Ut],zt[Ut]=null}var Pt=null,Tt=null,Ae=!1,an=null;function tw(t,e){var n=Bt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function lg(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Pt=t,Tt=Mr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Pt=t,Tt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Cs!==null?{id:qn,overflow:Kn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Bt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Pt=t,Tt=null,!0):!1;default:return!1}}function lf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function cf(t){if(Ae){var e=Tt;if(e){var n=e;if(!lg(t,e)){if(lf(t))throw Error(M(418));e=Mr(n.nextSibling);var r=Pt;e&&lg(t,e)?tw(r,n):(t.flags=t.flags&-4097|2,Ae=!1,Pt=t)}}else{if(lf(t))throw Error(M(418));t.flags=t.flags&-4097|2,Ae=!1,Pt=t}}}function cg(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Pt=t}function rl(t){if(t!==Pt)return!1;if(!Ae)return cg(t),Ae=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!rf(t.type,t.memoizedProps)),e&&(e=Tt)){if(lf(t))throw nw(),Error(M(418));for(;e;)tw(t,e),e=Mr(e.nextSibling)}if(cg(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317)
vendor: 11,604 bytes, line 39
39);e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Tt=Mr(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Tt=null}}else Tt=Pt?Mr(t.stateNode.nextSibling):null;return!0}function nw(){for(var t=Tt;t;)t=Mr(t.nextSibling)}function Io(){Tt=Pt=null,Ae=!1}function qh(t){an===null?an=[t]:an.push(t)}var lC=rr.ReactCurrentBatchConfig;function yi(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,t));var s=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},e._stringRef=o,e)}if(typeof t!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,t))}return t}function sl(t,e){throw t=Object.prototype.toString.call(e),Error(M(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function ug(t){var e=t._init;return e(t._payload)}function rw(t){function e(g,w){if(t){var y=g.deletions;y===null?(g.deletions=[w],g.flags|=16):y.push(w)}}function n(g,w){if(!t)return null;for(;w!==null;)e(g,w),w=w.sibling;return null}function r(g,w){for(g=new Map;w!==null;)w.key!==null?g.set(w.key,w):g.set(w.index,w),w=w.sibling;return g}function s(g,w){return g=Br(g,w),g.index=0,g.sibling=null,g}function o(g,w,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<w?(g.flags|=2,w):y):(g.flags|=2,w)):(g.flags|=1048576,w)}function i(g){return t&&g.alternate===null&&(g.flags|=2),g}function a(g,w,y,_){return w===null||w.tag!==6?(w=ed(y,g.mode,_),w.return=g,w):(w=s(w,y),w.return=g,w)}function l(g,w,y,_){var S=y.type;return S===eo?d(g,w,y.props.children,_,y.key):w!==null&&(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wr&&ug(S)===w.type)?(_=s(w,y.props),_.ref=yi(g,w,y),_.return=g,_):(_=Ul(y.type,y.key,y.props,null,g.mode,_),_.ref=yi(g,w,y),_.return=g,_)}function c(g,w,y,_){return w===null||w.tag!==4||w.stateNode.containerInfo!==y.containerInfo||w.stateNode.implementation!==y.implementation?(w=td(y,g.mode,_),w.return=g,w):(w=s(w,y.children||[]),w.return=g,w)}function d(g,w,y,_,S){return w===null||w.tag!==7?(w=ks(y,g.mode,_,S),w.return=g,w):(w=s(w,y),w.return=g,w)}function f(g,w,y){if(typeof w=="string"&&w!==""||typeof w=="number")return w=ed(""+w,g.mode,y),w.return=g,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ka:return y=Ul(w.type,w.key,w.props,null,g.mode,y),y.ref=yi(g,null,w),y.return=g,y;case Xs:return w=td(w,g.mode,y),w.return=g,w;case wr:var _=w._init;return f(g,_(w._payload),y)}if(Pi(w)||hi(w))return w=ks(w,g.mode,y,null),w.return=g,w;sl(g,w)}return null}function h(g,w,y,_){var S=w!==null?w.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(g,w,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ka:return y.key===S?l(g,w,y,_):null;case Xs:return y.key===S?c(g,w,y,_):null;case wr:return S=y._init,h(g,w,S(y._payload),_)}if(Pi(y)||hi(y))return S!==null?null:d(g,w,y,_,null);sl(g,y)}return null}function m(g,w,y,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(y)||null,a(w,g,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ka:return g=g.get(_.key===null?y:_.key)||null,l(w,g,_,S);case Xs:return g=g.get(_.key===null?y:_.key)||null,c(w,g,_,S);case wr:var k=_._init;return m(g,w,y,k(_._payload),S)}if(Pi(_)||hi(_))return g=g.get(y)||null,d(w,g,_,S,null);sl(w,_)}return null}function b(g,w,y,_){for(var S=null,k=null,C=w,E=w=0,O=null;C!==null&&E<y.length;E++){C.index>E?(O=C,C=null):O=C.sibling;var P=h(g,C,y[E],_);if(P===null){C===null&&(C=O);break}t&&C&&P.alternate===null&&e(g,C),w=o(P,w,E),k===null?S=P:k.sibling=P,k=P,C=O}if(E===y.length)return n(g,C),Ae&&cs(g,E),S;if(C===null){for(;E<y.length;E++)C=f(g,y[E],_),C!==null&&(w=o(C,w,E),k===null?S=C:k.sibling=C,k=C);return Ae&&cs(g,E),S}for(C=r(g,C);E<y.length;E++)O=m(C,g,E,y[E],_),O!==null&&(t&&O.alternate!==null&&C.delete(O.key===null?E:O.key),w=o(O,w,E),k===null?S=O:k.sibling=O,k=O);return t&&C.forEach(function(D){return e(g,D)}),Ae&&cs(g,E),S}function v(g,w,y,_){var S=hi(y);if(typeof S!="function")throw Error(M(150));if(y=S.call(y),y==null)throw Error(M(151));for(var k=S=null,C=w,E=w=0,O=null,P=y.next();C!==null&&!P.done;E++,P=y.next()){C.index>E?(O=C,C=null):O=C.sibling;var D=h(g,C,P.value,_);if(D===null){C===null&&(C=O);break}t&&C&&D.alternate===null&&e(g,C),w=o(D,w,E),k===null?S=D:k.sibling=D,k=D,C=O}if(P.done)return n(g,C),Ae&&cs(g,E),S;if(C===null){for(;!P.done;E++,P=y.next())P=f(g,P.value,_),P!==null&&(w=o(P,w,E),k===null?S=P:k.sibling=P,k=P);return Ae&&cs(g,E),S}for(C=r(g,C);!P.done;E++,P=y.next())P=m(C,g,E,P.value,_),P!==null&&(t&&P.alternate!==null&&C.delete(P.key===null?E:P.key),w=o(P,w,E),k===null?S=P:k.sibling=P,k=P);return t&&C.forEach(function($){return e(g,$)}),Ae&&cs(g,E),S}function x(g,w,y,_){if(typeof y=="object"&&y!==null&&y.type===eo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ka:e:{for(var S=y.key,k=w;k!==null;){if(k.key===S){if(S=y.type,S===eo){if(k.tag===7){n(g,k.sibling),w=s(k,y.props.children),w.return=g,g=w;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wr&&ug(S)===k.type){n(g,k.sibling),w=s(k,y.props),w.ref=yi(g,k,y),w.return=g,g=w;break e}n(g,k);break}else e(g,k);k=k.sibling}y.type===eo?(w=ks(y.props.children,g.mode,_,y.key),w.return=g,g=w):(_=Ul(y.type,y.key,y.props,null,g.mode,_),_.ref=yi(g,w,y),_.return=g,g=_)}return i(g);case Xs:e:{for(k=y.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===y.containerInfo&&w.stateNode.implementation===y.implementation){n(g,w.sibling),w=s(w,y.children||[]),w.return=g,g=w;break e}else{n(g,w);break}else e(g,w);w=w.sibling}w=td(y,g.mode,_),w.return=g,g=w}return i(g);case wr:return k=y._init,x(g,w,k(y._payload),_)}if(Pi(y))return b(g,w,y,_);if(hi(y))return v(g,w,y,_);sl(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,w!==null&&w.tag===6?(n(g,w.sibling),w=s(w,y),w.return=g,g=w):(n(g,w),w=ed(y,g.mode,_),w.return=g,g=w),i(g)):n(g,w)}return x}var Lo=rw(!0),sw=rw(!1),uc=Jr(null),dc=null,lo=null,Kh=null;function Gh(){Kh=lo=dc=null}function Yh(t){var e=uc.current;Ne(uc),t._currentValue=e}function uf(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function go(t,e){dc=t,Kh=lo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(wt=!0),t.firstContext=null)}function Wt(t){var e=t._currentValue;if(Kh!==t)if(t={context:t,memoizedValue:e,next:null},lo===null){if(dc===null)throw Error(M(308));lo=t,dc.dependencies={lanes:0,firstContext:t}}else lo=lo.next=t;return e}var ps=null;function Zh(t){ps===null?ps=[t]:ps.push(t)}function ow(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,Zh(e)):(n.next=s.next,s.next=n),e.interleaved=n,Qn(t,r)}function Qn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var xr=!1;function Qh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iw(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Gn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fr(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,me&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,Qn(t,n)}return s=r.interleaved,s===null?(e.next=e,Zh(r)):(e.next=s.next,s.next=e),r.interleaved=e,Qn(t,n)}function Il(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Lh(t,n)}}function dg(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function fc(t,e,n,r){var s=t.updateQueue;xr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=c=l=null,a=o;do{var h=a.lane,m=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=t,v=a;switch(h=e,m=n,v.tag){case 1:if(b=v.payload,typeof b=="function"){f=b.call(m,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(m,f,h):b,h==null)break e;f=Ie({},f,h);break e;case 2:xr=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=m,l=f):d=d.next=m,i|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,e=s.shared.interleaved,e!==null){s=e;do i|=s.lane,s=s.next;while(s!==e)}else o===null&&(s.shared.lanes=0);Ts|=i,t.lanes=i,t.memoizedState=f}}function fg(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(M(191,s));s.call(r)}}}var ja={},Rn=Jr(ja),ia=Jr(ja),aa=Jr(ja);function ms(t){if(t===ja)throw Error(M(174));return t}function Jh(t,e){switch(Ce(aa,e),Ce(ia,t),Ce(Rn,ja),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Vd(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Vd(e,t)}Ne(Rn),Ce(Rn,e)}function Do(){Ne(Rn),Ne(ia),Ne(aa)}function aw(t){ms(aa.current);var e=ms(Rn.current),n=Vd(e,t.type);e!==n&&(Ce(ia,t),Ce(Rn,n))}function Xh(t){ia.current===t&&(Ne(Rn),Ne(ia))}var Oe=Jr(0);function hc(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Gu=[];function ep(){for(var t=0;t<Gu.length;t++)Gu[t]._workInProgressVersionPrimary=null;Gu.length=0}var Ll=rr.ReactCurrentDispatcher,Yu=rr.ReactCurrentBatchConfig,js=0,$e=null,Ke=null,Ye=null,pc=!1,zi=!1,la=0,cC=0;function nt(){throw Error(M(321))}function tp(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pn(t[n],e[n]))return!1;return!0}function np(t,e,n,r,s,o){if(js=o,$e=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ll.current=t===null||t.memoizedState===null?hC:pC,t=n(r,s),zi){o=0;
vendor: 6,592 bytes, line 39
39do{if(zi=!1,la=0,25<=o)throw Error(M(301));o+=1,Ye=Ke=null,e.updateQueue=null,Ll.current=mC,t=n(r,s)}while(zi)}if(Ll.current=mc,e=Ke!==null&&Ke.next!==null,js=0,Ye=Ke=$e=null,pc=!1,e)throw Error(M(300));return t}function rp(){var t=la!==0;return la=0,t}function _n(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?$e.memoizedState=Ye=t:Ye=Ye.next=t,Ye}function qt(){if(Ke===null){var t=$e.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var e=Ye===null?$e.memoizedState:Ye.next;if(e!==null)Ye=e,Ke=t;else{if(t===null)throw Error(M(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Ye===null?$e.memoizedState=Ye=t:Ye=Ye.next=t}return Ye}function ca(t,e){return typeof e=="function"?e(t):e}function Zu(t){var e=qt(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var r=Ke,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,c=o;do{var d=c.lane;if((js&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,$e.lanes|=d,Ts|=d}c=c.next}while(c!==null&&c!==o);l===null?i=r:l.next=a,pn(r,e.memoizedState)||(wt=!0),e.memoizedState=r,e.baseState=i,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do o=s.lane,$e.lanes|=o,Ts|=o,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Qu(t){var e=qt(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=t(o,i.action),i=i.next;while(i!==s);pn(o,e.memoizedState)||(wt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function lw(){}function cw(t,e){var n=$e,r=qt(),s=e(),o=!pn(r.memoizedState,s);if(o&&(r.memoizedState=s,wt=!0),r=r.queue,sp(fw.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||Ye!==null&&Ye.memoizedState.tag&1){if(n.flags|=2048,ua(9,dw.bind(null,n,r,s,e),void 0,null),Qe===null)throw Error(M(349));js&30||uw(n,e,s)}return s}function uw(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=$e.updateQueue,e===null?(e={lastEffect:null,stores:null},$e.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function dw(t,e,n,r){e.value=n,e.getSnapshot=r,hw(e)&&pw(t)}function fw(t,e,n){return n(function(){hw(e)&&pw(t)})}function hw(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pn(t,n)}catch{return!0}}function pw(t){var e=Qn(t,1);e!==null&&fn(e,t,1,-1)}function hg(t){var e=_n();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:t},e.queue=t,t=t.dispatch=fC.bind(null,$e,t),[e.memoizedState,t]}function ua(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=$e.updateQueue,e===null?(e={lastEffect:null,stores:null},$e.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function mw(){return qt().memoizedState}function Dl(t,e,n,r){var s=_n();$e.flags|=t,s.memoizedState=ua(1|e,n,void 0,r===void 0?null:r)}function Hc(t,e,n,r){var s=qt();r=r===void 0?null:r;var o=void 0;if(Ke!==null){var i=Ke.memoizedState;if(o=i.destroy,r!==null&&tp(r,i.deps)){s.memoizedState=ua(e,n,o,r);return}}$e.flags|=t,s.memoizedState=ua(1|e,n,o,r)}function pg(t,e){return Dl(8390656,8,t,e)}function sp(t,e){return Hc(2048,8,t,e)}function gw(t,e){return Hc(4,2,t,e)}function vw(t,e){return Hc(4,4,t,e)}function yw(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function ww(t,e,n){return n=n!=null?n.concat([t]):null,Hc(4,4,yw.bind(null,e,t),n)}function op(){}function xw(t,e){var n=qt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&tp(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function bw(t,e){var n=qt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&tp(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function _w(t,e,n){return js&21?(pn(n,e)||(n=j0(),$e.lanes|=n,Ts|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,wt=!0),t.memoizedState=n)}function uC(t,e){var n=be;be=n!==0&&4>n?n:4,t(!0);var r=Yu.transition;Yu.transition={};try{t(!1),e()}finally{be=n,Yu.transition=r}}function Sw(){return qt().memoizedState}function dC(t,e,n){var r=Ur(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kw(t))Ew(e,n);else if(n=ow(t,e,n,r),n!==null){var s=ht();fn(n,t,r,s),Cw(n,e,r)}}function fC(t,e,n){var r=Ur(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kw(t))Ew(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var i=e.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,pn(a,i)){var l=e.interleaved;l===null?(s.next=s,Zh(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=ow(t,e,s,r),n!==null&&(s=ht(),fn(n,t,r,s),Cw(n,e,r))}}function kw(t){var e=t.alternate;return t===$e||e!==null&&e===$e}function Ew(t,e){zi=pc=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Cw(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Lh(t,n)}}var mc={readContext:Wt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},hC={readContext:Wt,useCallback:function(t,e){return _n().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:pg,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Dl(4194308,4,yw.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Dl(4194308,4,t,e)},useInsertionEffect:function(t,e){return Dl(4,2,t,e)},useMemo:function(t,e){var n=_n();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=_n();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=dC.bind(null,$e,t),[r.memoizedState,t]}
vendor: 7,431 bytes, lines 39-41
39,useRef:function(t){var e=_n();return t={current:t},e.memoizedState=t},useState:hg,useDebugValue:op,useDeferredValue:function(t){return _n().memoizedState=t},useTransition:function(){var t=hg(!1),e=t[0];return t=uC.bind(null,t[1]),_n().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=$e,s=_n();if(Ae){if(n===void 0)throw Error(M(407));n=n()}else{if(n=e(),Qe===null)throw Error(M(349));js&30||uw(r,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,pg(fw.bind(null,r,o,t),[t]),r.flags|=2048,ua(9,dw.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=_n(),e=Qe.identifierPrefix;if(Ae){var n=Kn,r=qn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=la++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=cC++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},pC={readContext:Wt,useCallback:xw,useContext:Wt,useEffect:sp,useImperativeHandle:ww,useInsertionEffect:gw,useLayoutEffect:vw,useMemo:bw,useReducer:Zu,useRef:mw,useState:function(){return Zu(ca)},useDebugValue:op,useDeferredValue:function(t){var e=qt();return _w(e,Ke.memoizedState,t)},useTransition:function(){var t=Zu(ca)[0],e=qt().memoizedState;return[t,e]},useMutableSource:lw,useSyncExternalStore:cw,useId:Sw,unstable_isNewReconciler:!1},mC={readContext:Wt,useCallback:xw,useContext:Wt,useEffect:sp,useImperativeHandle:ww,useInsertionEffect:gw,useLayoutEffect:vw,useMemo:bw,useReducer:Qu,useRef:mw,useState:function(){return Qu(ca)},useDebugValue:op,useDeferredValue:function(t){var e=qt();return Ke===null?e.memoizedState=t:_w(e,Ke.memoizedState,t)},useTransition:function(){var t=Qu(ca)[0],e=qt().memoizedState;return[t,e]},useMutableSource:lw,useSyncExternalStore:cw,useId:Sw,unstable_isNewReconciler:!1};function en(t,e){if(t&&t.defaultProps){e=Ie({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function df(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Ie({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Wc={isMounted:function(t){return(t=t._reactInternals)?$s(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=ht(),s=Ur(t),o=Gn(r,s);o.payload=e,n!=null&&(o.callback=n),e=Fr(t,o,s),e!==null&&(fn(e,t,s,r),Il(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=ht(),s=Ur(t),o=Gn(r,s);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Fr(t,o,s),e!==null&&(fn(e,t,s,r),Il(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ht(),r=Ur(t),s=Gn(n,r);s.tag=2,e!=null&&(s.callback=e),e=Fr(t,s,r),e!==null&&(fn(e,t,r,n),Il(e,t,r))}};function mg(t,e,n,r,s,o,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,i):e.prototype&&e.prototype.isPureReactComponent?!na(n,r)||!na(s,o):!0}function jw(t,e,n){var r=!1,s=qr,o=e.contextType;return typeof o=="object"&&o!==null?o=Wt(o):(s=bt(e)?Es:it.current,r=e.contextTypes,o=(r=r!=null)?$o(t,s):qr),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Wc,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=o),e}function gg(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Wc.enqueueReplaceState(e,e.state,null)}function ff(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},Qh(t);var o=e.contextType;typeof o=="object"&&o!==null?s.context=Wt(o):(o=bt(e)?Es:it.current,s.context=$o(t,o)),s.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(df(t,e,o,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&Wc.enqueueReplaceState(s,s.state,null),fc(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Mo(t,e){try{var n="",r=e;do n+=Vk(r),r=r.return;while(r);var s=n}catch(o){s=` 40Error generating stack: `+o.message+` 41`+o.stack}return{value:t,source:e,stack:s,digest:null}}function Ju(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function hf(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var gC=typeof WeakMap=="function"?WeakMap:Map;function Tw(t,e,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){vc||(vc=!0,Sf=r),hf(t,e)},n}function Pw(t,e,n){n=Gn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){hf(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hf(t,e),typeof r!="function"&&(zr===null?zr=new Set([this]):zr.add(this));var i=e.stack;this.componentDidCatch(e.value,{componentStack:i!==null?i:""})}),n}function vg(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new gC;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=NC.bind(null,t,e,n),e.then(t,t))}function yg(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function wg(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Gn(-1,1),e.tag=2,Fr(n,e,1))),n.lanes|=1),t)}var vC=rr.ReactCurrentOwner,wt=!1;function dt(t,e,n,r){e.child=t===null?sw(e,null,n,r):Lo(e,t.child,n,r)}function xg(t,e,n,r,s){n=n.render;var o=e.ref;return go(e,s),r=np(t,e,n,r,o,s),n=rp(),t!==null&&!wt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Jn(t,e,s)):(Ae&&n&&Hh(e),e.flags|=1,dt(t,e,r,s),e.child)}function bg(t,e,n,r,s){if(t===null){var o=n.type;return typeof o=="function"&&!hp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,Nw(t,e,o,r,s)):(t=Ul(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:na,n(i,r)&&t.ref===e.ref)return Jn(t,e,s)}return e.flags|=1,t=Br(o,r),t.ref=e.ref,t.return=e,e.child=t}function Nw(t,e,n,r,s){if(t!==null){var o=t.memoizedProps;if(na(o,r)&&t.ref===e.ref)if(wt=!1,e.pendingProps=r=o,(t.lanes&s)!==0)t.flags&131072&&(wt=!0);else return e.lanes=t.lanes,Jn(t,e,s)}return pf(t,e,n,r,s)}function Rw(t,e,n){var r=e.pendingProps,s=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(uo,Et),Et|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ce(uo,Et),Et|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ce(uo,Et),Et|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,Ce(uo,Et),Et|=r;return dt(t,e,s,n),e.child}function Aw(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 6,245 bytes, line 41
41function pf(t,e,n,r,s){var o=bt(n)?Es:it.current;return o=$o(e,o),go(e,s),n=np(t,e,n,r,o,s),r=rp(),t!==null&&!wt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Jn(t,e,s)):(Ae&&r&&Hh(e),e.flags|=1,dt(t,e,n,s),e.child)}function _g(t,e,n,r,s){if(bt(n)){var o=!0;ac(e)}else o=!1;if(go(e,s),e.stateNode===null)Ml(t,e),jw(e,n,r),ff(e,n,r,s),r=!0;else if(t===null){var i=e.stateNode,a=e.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Wt(c):(c=bt(n)?Es:it.current,c=$o(e,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&gg(e,i,r,c),xr=!1;var h=e.memoizedState;i.state=h,fc(e,r,i,s),l=e.memoizedState,a!==r||h!==l||xt.current||xr?(typeof d=="function"&&(df(e,n,d,r),l=e.memoizedState),(a=xr||mg(e,n,a,r,h,l,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{i=e.stateNode,iw(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:en(e.type,a),i.props=c,f=e.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Wt(l):(l=bt(n)?Es:it.current,l=$o(e,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==l)&&gg(e,i,r,l),xr=!1,h=e.memoizedState,i.state=h,fc(e,r,i,s);var b=e.memoizedState;a!==f||h!==b||xt.current||xr?(typeof m=="function"&&(df(e,n,m,r),b=e.memoizedState),(c=xr||mg(e,n,c,r,h,b,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,l)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=b),i.props=r,i.state=b,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return mf(t,e,n,r,o,s)}function mf(t,e,n,r,s,o){Aw(t,e);var i=(e.flags&128)!==0;if(!r&&!i)return s&&ag(e,n,!1),Jn(t,e,o);r=e.stateNode,vC.current=e;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&i?(e.child=Lo(e,t.child,null,o),e.child=Lo(e,null,a,o)):dt(t,e,a,o),e.memoizedState=r.state,s&&ag(e,n,!0),e.child}function Ow(t){var e=t.stateNode;e.pendingContext?ig(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ig(t,e.context,!1),Jh(t,e.containerInfo)}function Sg(t,e,n,r,s){return Io(),qh(s),e.flags|=256,dt(t,e,n,r),e.child}var gf={dehydrated:null,treeContext:null,retryLane:0};function vf(t){return{baseLanes:t,cachePool:null,transitions:null}}function $w(t,e,n){var r=e.pendingProps,s=Oe.current,o=!1,i=(e.flags&128)!==0,a;if((a=i)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),Ce(Oe,s&1),t===null)return cf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(i=r.children,t=r.fallback,o?(r=e.mode,o=e.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Gc(i,r,0,null),t=ks(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=vf(n),e.memoizedState=gf,t):ip(e,i));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return yC(t,e,i,r,a,s,n);if(o){o=r.fallback,i=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Br(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Br(a,o):(o=ks(o,i,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,i=t.child.memoizedState,i=i===null?vf(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=t.childLanes&~n,e.memoizedState=gf,r}return o=t.child,t=o.sibling,r=Br(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function ip(t,e){return e=Gc({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function ol(t,e,n,r){return r!==null&&qh(r),Lo(e,t.child,null,n),t=ip(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function yC(t,e,n,r,s,o,i){if(n)return e.flags&256?(e.flags&=-257,r=Ju(Error(M(422))),ol(t,e,i,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,s=e.mode,r=Gc({mode:"visible",children:r.children},s,0,null),o=ks(o,s,i,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&Lo(e,t.child,null,i),e.child.memoizedState=vf(i),e.memoizedState=gf,o);if(!(e.mode&1))return ol(t,e,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(M(419)),r=Ju(o,r,void 0),ol(t,e,i,r)}if(a=(i&t.childLanes)!==0,wt||a){if(r=Qe,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}
vendor: 6,575 bytes, line 41
41s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Qn(t,s),fn(r,t,s,-1))}return fp(),r=Ju(Error(M(421))),ol(t,e,i,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=RC.bind(null,t),s._reactRetry=e,null):(t=o.treeContext,Tt=Mr(s.nextSibling),Pt=e,Ae=!0,an=null,t!==null&&(zt[Ut++]=qn,zt[Ut++]=Kn,zt[Ut++]=Cs,qn=t.id,Kn=t.overflow,Cs=e),e=ip(e,r.children),e.flags|=4096,e)}function kg(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),uf(t.return,e,n)}function Xu(t,e,n,r,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function Iw(t,e,n){var r=e.pendingProps,s=r.revealOrder,o=r.tail;if(dt(t,e,r.children,n),r=Oe.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&kg(t,n,e);else if(t.tag===19)kg(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ce(Oe,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&hc(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Xu(e,!1,s,n,o);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&hc(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Xu(e,!0,n,null,o);break;case"together":Xu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ml(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Jn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ts|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(M(153));if(e.child!==null){for(t=e.child,n=Br(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Br(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function wC(t,e,n){switch(e.tag){case 3:Ow(e),Io();break;case 5:aw(e);break;case 1:bt(e.type)&&ac(e);break;case 4:Jh(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;Ce(uc,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Oe,Oe.current&1),e.flags|=128,null):n&e.child.childLanes?$w(t,e,n):(Ce(Oe,Oe.current&1),t=Jn(t,e,n),t!==null?t.sibling:null);Ce(Oe,Oe.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return Iw(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ce(Oe,Oe.current),r)break;return null;case 22:case 23:return e.lanes=0,Rw(t,e,n)}return Jn(t,e,n)}var Lw,yf,Dw,Mw;Lw=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};yf=function(){};Dw=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,ms(Rn.current);var o=null;switch(n){case"input":s=Fd(t,s),r=Fd(t,r),o=[];break;case"select":s=Ie({},s,{value:void 0}),r=Ie({},r,{value:void 0}),o=[];break;case"textarea":s=Bd(t,s),r=Bd(t,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=oc)}Hd(n,r);var i;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Yi.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Pe("scroll",t),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(e.updateQueue=c)&&(e.flags|=4)}};Mw=function(t,e,n,r){n!==r&&(e.flags|=4)};function wi(t,e){if(!Ae)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function rt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function xC(t,e,n){var r=e.pendingProps;switch(Wh(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(e),null;case 1:return bt(e.type)&&ic(),rt(e),null;case 3:return r=e.stateNode,Do(),Ne(xt),Ne(it),ep(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(rl(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,an!==null&&(Cf(an),an=null))),yf(t,e),rt(e),null;case 5:Xh(e);var s=ms(aa.current);if(n=e.type,t!==null&&e.stateNode!=null)Dw(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(M(166));return rt(e),null}if(t=ms(Rn.current),rl(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[jn]=e,r[oa]=o,t=(e.mode&1)!==0,n){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(s=0;s<Ri.length;s++)Pe(Ri[s],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":Om(r,o),Pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pe("invalid",r);break;
vendor: 5,856 bytes, line 41
41case"textarea":Im(r,o),Pe("invalid",r)}Hd(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&nl(r.textContent,a,t),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&nl(r.textContent,a,t),s=["children",""+a]):Yi.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&Pe("scroll",r)}switch(n){case"input":Ga(r),$m(r,o,!0);break;case"textarea":Ga(r),Lm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=oc)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=f0(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=i.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=i.createElement(n,{is:r.is}):(t=i.createElement(n),n==="select"&&(i=t,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):t=i.createElementNS(t,n),t[jn]=e,t[oa]=r,Lw(t,e,!1,!1),e.stateNode=t;e:{switch(i=Wd(n,r),n){case"dialog":Pe("cancel",t),Pe("close",t),s=r;break;case"iframe":case"object":case"embed":Pe("load",t),s=r;break;case"video":case"audio":for(s=0;s<Ri.length;s++)Pe(Ri[s],t);s=r;break;case"source":Pe("error",t),s=r;break;case"img":case"image":case"link":Pe("error",t),Pe("load",t),s=r;break;case"details":Pe("toggle",t),s=r;break;case"input":Om(t,r),s=Fd(t,r),Pe("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=Ie({},r,{value:void 0}),Pe("invalid",t);break;case"textarea":Im(t,r),s=Bd(t,r),Pe("invalid",t);break;default:s=r}Hd(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?m0(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&h0(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zi(t,l):typeof l=="number"&&Zi(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Yi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Pe("scroll",t):l!=null&&Nh(t,o,l,i))}switch(n){case"input":Ga(t),$m(t,r,!1);break;case"textarea":Ga(t),Lm(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Wr(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?fo(t,!!r.multiple,o,!1):r.defaultValue!=null&&fo(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=oc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return rt(e),null;case 6:if(t&&e.stateNode!=null)Mw(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(M(166));if(n=ms(aa.current),ms(Rn.current),rl(e)){if(r=e.stateNode,n=e.memoizedProps,r[jn]=e,(o=r.nodeValue!==n)&&(t=Pt,t!==null))switch(t.tag){case 3:nl(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&nl(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jn]=e,e.stateNode=r}return rt(e),null;case 13:if(Ne(Oe),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ae&&Tt!==null&&e.mode&1&&!(e.flags&128))nw(),Io(),e.flags|=98560,o=!1;else if(o=rl(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(M(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(M(317));o[jn]=e}else Io(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;rt(e),o=!1}else an!==null&&(Cf(an),an=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Oe.current&1?Ge===0&&(Ge=3):fp())),e.updateQueue!==null&&(e.flags|=4),rt(e),null);case 4:return Do(),yf(t,e),t===null&&ra(e.stateNode.containerInfo),rt(e),null;case 10:return Yh(e.type._context),rt(e),null;case 17:return bt(e.type)&&ic(),rt(e),null;case 19:if(Ne(Oe),o=e.memoizedState,o===null)return rt(e),null;if(r=(e.flags&128)!==0,i=o.rendering,i===null)if(r)wi(o,!1);else{if(Ge!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(i=hc(t),i!==null){for(e.flags|=128,wi(o,!1),r=i.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,t=i.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Ce(Oe,Oe.current&1|2),e.child}t=t.sibling}o.tail!==null&&Ue()>Fo&&(e.flags|=128,r=!0,wi(o,!1),e.lanes=4194304)}else{if(!r)if(t=hc(i),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),wi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ae)return rt(e),null}else 2*Ue()-o.renderingStartTime>Fo&&n!==1073741824&&(e.flags|=128,r=!0,wi(o,!1),e.lanes=4194304);o.isBackwards?(i.sibling=e.child,e.child=i):(n=o.last,n!==null?n.sibling=i:e.child=i,o.last=i)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ue(),e.sibling=null,n=Oe.current,Ce(Oe,r?n&1|2:n&1),e):(rt(e),null);case 22:case 23:return dp(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Et&1073741824&&(rt(e),e.subtreeFlags&6&&(e.flags|=8192)):rt(e),null;case 24:return null;case 25:return null}throw Error(M(156,e.tag))}function bC(t,e){switch(Wh(e),e.tag){case 1:return bt(e.type)&&ic(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;
vendor: 5,198 bytes, line 41
41case 3:return Do(),Ne(xt),Ne(it),ep(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Xh(e),null;case 13:if(Ne(Oe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(M(340));Io()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ne(Oe),null;case 4:return Do(),null;case 10:return Yh(e.type._context),null;case 22:case 23:return dp(),null;case 24:return null;default:return null}}var il=!1,ot=!1,_C=typeof WeakSet=="function"?WeakSet:Set,H=null;function co(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(t,e,r)}else n.current=null}function wf(t,e,n){try{n()}catch(r){Me(t,e,r)}}var Eg=!1;function SC(t,e){if(tf=nc,t=V0(),Vh(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,d=0,f=t,h=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===t)break t;if(h===n&&++c===s&&(a=i),h===o&&++d===r&&(l=i),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nf={focusedElem:t,selectionRange:n},nc=!1,H=e;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var b=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=e.stateNode,w=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:en(e.type,v),x);g.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(_){Me(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return b=Eg,Eg=!1,b}function Ui(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var o=s.destroy;s.destroy=void 0,o!==void 0&&wf(e,n,o)}s=s.next}while(s!==r)}}function qc(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function xf(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Fw(t){var e=t.alternate;e!==null&&(t.alternate=null,Fw(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[jn],delete e[oa],delete e[of],delete e[oC],delete e[iC])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function zw(t){return t.tag===5||t.tag===3||t.tag===4}function Cg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||zw(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bf(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=oc));else if(r!==4&&(t=t.child,t!==null))for(bf(t,e,n),t=t.sibling;t!==null;)bf(t,e,n),t=t.sibling}function _f(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(_f(t,e,n),t=t.sibling;t!==null;)_f(t,e,n),t=t.sibling}var Je=null,sn=!1;function fr(t,e,n){for(n=n.child;n!==null;)Uw(t,e,n),n=n.sibling}function Uw(t,e,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Mc,n)}catch{}switch(n.tag){case 5:ot||co(n,e);case 6:var r=Je,s=sn;Je=null,fr(t,e,n),Je=r,sn=s,Je!==null&&(sn?(t=Je,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(sn?(t=Je,n=n.stateNode,t.nodeType===8?qu(t.parentNode,n):t.nodeType===1&&qu(t,n),ea(t)):qu(Je,n.stateNode));break;case 4:r=Je,s=sn,Je=n.stateNode.containerInfo,sn=!0,fr(t,e,n),Je=r,sn=s;break;case 0:case 11:case 14:case 15:if(!ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&wf(n,e,i),s=s.next}while(s!==r)}fr(t,e,n);break;case 1:if(!ot&&(co(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Me(n,e,a)}fr(t,e,n);break;case 21:fr(t,e,n);break;case 22:n.mode&1?(ot=(r=ot)||n.memoizedState!==null,fr(t,e,n),ot=r):fr(t,e,n);break;default:fr(t,e,n)}}function jg(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;
vendor: 2,001 bytes, line 41
41n===null&&(n=t.stateNode=new _C),e.forEach(function(r){var s=AC.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Qt(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=t,i=e,a=i;e:for(;a!==null;){switch(a.tag){case 5:Je=a.stateNode,sn=!1;break e;case 3:Je=a.stateNode.containerInfo,sn=!0;break e;case 4:Je=a.stateNode.containerInfo,sn=!0;break e}a=a.return}if(Je===null)throw Error(M(160));Uw(o,i,s),Je=null,sn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Me(s,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Bw(e,t),e=e.sibling}function Bw(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Qt(e,t),bn(t),r&4){try{Ui(3,t,t.return),qc(3,t)}catch(v){Me(t,t.return,v)}try{Ui(5,t,t.return)}catch(v){Me(t,t.return,v)}}break;case 1:Qt(e,t),bn(t),r&512&&n!==null&&co(n,n.return);break;case 5:if(Qt(e,t),bn(t),r&512&&n!==null&&co(n,n.return),t.flags&32){var s=t.stateNode;try{Zi(s,"")}catch(v){Me(t,t.return,v)}}if(r&4&&(s=t.stateNode,s!=null)){var o=t.memoizedProps,i=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&u0(s,o),Wd(a,i);var c=Wd(a,o);for(i=0;i<l.length;i+=2){var d=l[i],f=l[i+1];d==="style"?m0(s,f):d==="dangerouslySetInnerHTML"?h0(s,f):d==="children"?Zi(s,f):Nh(s,d,f,c)}switch(a){case"input":zd(s,o);break;case"textarea":d0(s,o);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?fo(s,!!o.multiple,m,!1):h!==!!o.multiple&&(o.defaultValue!=null?fo(s,!!o.multiple,o.defaultValue,!0):fo(s,!!o.multiple,o.multiple?[]:"",!1))}s[oa]=o}catch(v){Me(t,t.return,v)}}break;case 6:if(Qt(e,t),bn(t),r&4){if(t.stateNode===null)throw Error(M(162));s=t.stateNode,o=t.memoizedProps;try{s.nodeValue=o}catch(v){Me(t,t.return,v)}}break;case 3:if(Qt(e,t),bn(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ea(e.containerInfo)}catch(v){Me(t,t.return,v)}break;
vendor: 19,485 bytes, line 41
41case 4:Qt(e,t),bn(t);break;case 13:Qt(e,t),bn(t),s=t.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(cp=Ue())),r&4&&jg(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(ot=(c=ot)||d,Qt(e,t),ot=c):Qt(e,t),bn(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!d&&t.mode&1)for(H=t,d=t.child;d!==null;){for(f=H=d;H!==null;){switch(h=H,m=h.child,h.tag){case 0:case 11:case 14:case 15:Ui(4,h,h.return);break;case 1:co(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,b.props=e.memoizedProps,b.state=e.memoizedState,b.componentWillUnmount()}catch(v){Me(r,n,v)}}break;case 5:co(h,h.return);break;case 22:if(h.memoizedState!==null){Pg(f);continue}}m!==null?(m.return=h,H=m):Pg(f)}d=d.sibling}e:for(d=null,f=t;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=p0("display",i))}catch(v){Me(t,t.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Me(t,t.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===t)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Qt(e,t),bn(t),r&4&&jg(t);break;case 21:break;default:Qt(e,t),bn(t)}}function bn(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(zw(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Zi(s,""),r.flags&=-33);var o=Cg(t);_f(t,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Cg(t);bf(t,a,i);break;default:throw Error(M(161))}}catch(l){Me(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function kC(t,e,n){H=t,Vw(t)}function Vw(t,e,n){for(var r=(t.mode&1)!==0;H!==null;){var s=H,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||il;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ot;a=il;var c=ot;if(il=i,(ot=l)&&!c)for(H=s;H!==null;)i=H,l=i.child,i.tag===22&&i.memoizedState!==null?Ng(s):l!==null?(l.return=i,H=l):Ng(s);for(;o!==null;)H=o,Vw(o),o=o.sibling;H=s,il=a,ot=c}Tg(t)}else s.subtreeFlags&8772&&o!==null?(o.return=s,H=o):Tg(t)}}function Tg(t){for(;H!==null;){var e=H;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ot||qc(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ot)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:en(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&fg(e,o,r);break;case 3:var i=e.updateQueue;if(i!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}fg(e,i,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ea(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}ot||e.flags&512&&xf(e)}catch(h){Me(e,e.return,h)}}if(e===t){H=null;break}if(n=e.sibling,n!==null){n.return=e.return,H=n;break}H=e.return}}function Pg(t){for(;H!==null;){var e=H;if(e===t){H=null;break}var n=e.sibling;if(n!==null){n.return=e.return,H=n;break}H=e.return}}function Ng(t){for(;H!==null;){var e=H;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{qc(4,e)}catch(l){Me(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(l){Me(e,s,l)}}var o=e.return;try{xf(e)}catch(l){Me(e,o,l)}break;case 5:var i=e.return;try{xf(e)}catch(l){Me(e,i,l)}}}catch(l){Me(e,e.return,l)}if(e===t){H=null;break}var a=e.sibling;if(a!==null){a.return=e.return,H=a;break}H=e.return}}var EC=Math.ceil,gc=rr.ReactCurrentDispatcher,ap=rr.ReactCurrentOwner,Vt=rr.ReactCurrentBatchConfig,me=0,Qe=null,Ve=null,Xe=0,Et=0,uo=Jr(0),Ge=0,da=null,Ts=0,Kc=0,lp=0,Bi=null,vt=null,cp=0,Fo=1/0,Bn=null,vc=!1,Sf=null,zr=null,al=!1,Rr=null,yc=0,Vi=0,kf=null,Fl=-1,zl=0;function ht(){return me&6?Ue():Fl!==-1?Fl:Fl=Ue()}function Ur(t){return t.mode&1?me&2&&Xe!==0?Xe&-Xe:lC.transition!==null?(zl===0&&(zl=j0()),zl):(t=be,t!==0||(t=window.event,t=t===void 0?16:$0(t.type)),t):1}function fn(t,e,n,r){if(50<Vi)throw Vi=0,kf=null,Error(M(185));ka(t,n,r),(!(me&2)||t!==Qe)&&(t===Qe&&(!(me&2)&&(Kc|=n),Ge===4&&Sr(t,Xe)),_t(t,r),n===1&&me===0&&!(e.mode&1)&&(Fo=Ue()+500,Vc&&Xr()))}function _t(t,e){var n=t.callbackNode;lE(t,e);var r=tc(t,t===Qe?Xe:0);if(r===0)n!==null&&Fm(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Fm(n),e===1)t.tag===0?aC(Rg.bind(null,t)):X0(Rg.bind(null,t)),rC(function(){!(me&6)&&Xr()}),n=null;else{switch(T0(r)){case 1:n=Ih;break;case 4:n=E0;break;case 16:n=ec;break;case 536870912:n=C0;break;default:n=ec}n=Qw(n,Hw.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Hw(t,e){if(Fl=-1,zl=0,me&6)throw Error(M(327));var n=t.callbackNode;if(vo()&&t.callbackNode!==n)return null;var r=tc(t,t===Qe?Xe:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=wc(t,r);else{e=r;var s=me;me|=2;var o=qw();(Qe!==t||Xe!==e)&&(Bn=null,Fo=Ue()+500,Ss(t,e));do try{TC();break}catch(a){Ww(t,a)}while(!0);Gh(),gc.current=o,me=s,Ve!==null?e=0:(Qe=null,Xe=0,e=Ge)}if(e!==0){if(e===2&&(s=Zd(t),s!==0&&(r=s,e=Ef(t,s))),e===1)throw n=da,Ss(t,0),Sr(t,r),_t(t,Ue()),n;if(e===6)Sr(t,r);else{if(s=t.current.alternate,!(r&30)&&!CC(s)&&(e=wc(t,r),e===2&&(o=Zd(t),o!==0&&(r=o,e=Ef(t,o))),e===1))throw n=da,Ss(t,0),Sr(t,r),_t(t,Ue()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(M(345));case 2:us(t,vt,Bn);break;case 3:if(Sr(t,r),(r&130023424)===r&&(e=cp+500-Ue(),10<e)){if(tc(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){ht(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=sf(us.bind(null,t,vt,Bn),e);break}us(t,vt,Bn);break;case 4:if(Sr(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var i=31-dn(r);o=1<<i,i=e[i],i>s&&(s=i),r&=~o}if(r=s,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*EC(r/1960))-r,10<r){t.timeoutHandle=sf(us.bind(null,t,vt,Bn),r);break}us(t,vt,Bn);break;case 5:us(t,vt,Bn);break;default:throw Error(M(329))}}}return _t(t,Ue()),t.callbackNode===n?Hw.bind(null,t):null}function Ef(t,e){var n=Bi;return t.current.memoizedState.isDehydrated&&(Ss(t,e).flags|=256),t=wc(t,e),t!==2&&(e=vt,vt=n,e!==null&&Cf(e)),t}function Cf(t){vt===null?vt=t:vt.push.apply(vt,t)}function CC(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!pn(o(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Sr(t,e){for(e&=~lp,e&=~Kc,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-dn(e),r=1<<n;t[n]=-1,e&=~r}}function Rg(t){if(me&6)throw Error(M(327));vo();var e=tc(t,0);if(!(e&1))return _t(t,Ue()),null;var n=wc(t,e);if(t.tag!==0&&n===2){var r=Zd(t);r!==0&&(e=r,n=Ef(t,r))}if(n===1)throw n=da,Ss(t,0),Sr(t,e),_t(t,Ue()),n;if(n===6)throw Error(M(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,us(t,vt,Bn),_t(t,Ue()),null}function up(t,e){var n=me;me|=1;try{return t(e)}finally{me=n,me===0&&(Fo=Ue()+500,Vc&&Xr())}}function Ps(t){Rr!==null&&Rr.tag===0&&!(me&6)&&vo();var e=me;me|=1;var n=Vt.transition,r=be;try{if(Vt.transition=null,be=1,t)return t()}finally{be=r,Vt.transition=n,me=e,!(me&6)&&Xr()}}function dp(){Et=uo.current,Ne(uo)}function Ss(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,nC(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(Wh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ic();break;case 3:Do(),Ne(xt),Ne(it),ep();break;case 5:Xh(r);break;case 4:Do();break;case 13:Ne(Oe);break;case 19:Ne(Oe);break;case 10:Yh(r.type._context);break;case 22:case 23:dp()}n=n.return}if(Qe=t,Ve=t=Br(t.current,null),Xe=Et=e,Ge=0,da=null,lp=Kc=Ts=0,vt=Bi=null,ps!==null){for(e=0;e<ps.length;e++)if(n=ps[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}ps=null}return t}function Ww(t,e){do{var n=Ve;try{if(Gh(),Ll.current=mc,pc){for(var r=$e.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}pc=!1}if(js=0,Ye=Ke=$e=null,zi=!1,la=0,ap.current=null,n===null||n.return===null){Ge=1,da=e,Ve=null;break}e:{var o=t,i=n.return,a=n,l=e;if(e=Xe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=yg(i);if(m!==null){m.flags&=-257,wg(m,i,a,o,e),m.mode&1&&vg(o,c,e),e=m,l=c;var b=e.updateQueue;if(b===null){var v=new Set;v.add(l),e.updateQueue=v}else b.add(l);break e}else{if(!(e&1)){vg(o,c,e),fp();break e}l=Error(M(426))}}else if(Ae&&a.mode&1){var x=yg(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),wg(x,i,a,o,e),qh(Mo(l,a));break e}}o=l=Mo(l,a),Ge!==4&&(Ge=2),Bi===null?Bi=[o]:Bi.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var g=Tw(o,l,e);dg(o,g);break e;case 1:a=l;var w=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(zr===null||!zr.has(y)))){o.flags|=65536,e&=-e,o.lanes|=e;var _=Pw(o,a,e);dg(o,_);break e}}o=o.return}while(o!==null)}Gw(n)}catch(S){e=S,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function qw(){var t=gc.current;return gc.current=mc,t===null?mc:t}function fp(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Qe===null||!(Ts&268435455)&&!(Kc&268435455)||Sr(Qe,Xe)}function wc(t,e){var n=me;me|=2;var r=qw();(Qe!==t||Xe!==e)&&(Bn=null,Ss(t,e));do try{jC();break}catch(s){Ww(t,s)}while(!0);if(Gh(),me=n,gc.current=r,Ve!==null)throw Error(M(261));return Qe=null,Xe=0,Ge}function jC(){for(;Ve!==null;)Kw(Ve)}function TC(){for(;Ve!==null&&!Xk();)Kw(Ve)}function Kw(t){var e=Zw(t.alternate,t,Et);t.memoizedProps=t.pendingProps,e===null?Gw(t):Ve=e,ap.current=null}function Gw(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=bC(n,e),n!==null){n.flags&=32767,Ve=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ge=6,Ve=null;return}}else if(n=xC(n,e,Et),n!==null){Ve=n;return}if(e=e.sibling,e!==null){Ve=e;return}Ve=e=t}while(e!==null);Ge===0&&(Ge=5)}function us(t,e,n){var r=be,s=Vt.transition;try{Vt.transition=null,be=1,PC(t,e,n,r)}finally{Vt.transition=s,be=r}return null}function PC(t,e,n,r){do vo();while(Rr!==null);if(me&6)throw Error(M(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(M(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(cE(t,o),t===Qe&&(Ve=Qe=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||al||(al=!0,Qw(ec,function(){return vo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Vt.transition,Vt.transition=null;var i=be;be=1;var a=me;me|=4,ap.current=null,SC(t,n),Bw(n,t),YE(nf),nc=!!tf,nf=tf=null,t.current=n,kC(n),eE(),me=a,be=i,Vt.transition=o}else t.current=n;if(al&&(al=!1,Rr=t,yc=s),o=t.pendingLanes,o===0&&(zr=null),rE(n.stateNode),_t(t,Ue()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(vc)throw vc=!1,t=Sf,Sf=null,t;return yc&1&&t.tag!==0&&vo(),o=t.pendingLanes,o&1?t===kf?Vi++:(Vi=0,kf=t):Vi=0,Xr(),null}function vo(){if(Rr!==null){var t=T0(yc),e=Vt.transition,n=be;try{if(Vt.transition=null,be=16>t?16:t,Rr===null)var r=!1;else{if(t=Rr,Rr=null,yc=0,me&6)throw Error(M(331));var s=me;for(me|=4,H=t.current;H!==null;){var o=H,i=o.child;if(H.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(H=c;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Ui(8,d,o)}var f=d.child;if(f!==null)f.return=d,H=f;else for(;H!==null;){d=H;var h=d.sibling,m=d.return;if(Fw(d),d===c){H=null;break}if(h!==null){h.return=m,H=h;break}H=m}}}var b=o.alternate;if(b!==null){var v=b.child;if(v!==null){b.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}H=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,H=i;else e:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ui(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,H=g;break e}H=o.return}}var w=t.current;for(H=w;H!==null;){i=H;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,H=y;else e:for(i=w;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qc(9,a)}}catch(S){Me(a,a.return,S)}if(a===i){H=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,H=_;break e}H=a.return}}if(me=s,Xr(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Mc,t)}catch{}r=!0}return r}finally{be=n,Vt.transition=e}}return!1}function Ag(t,e,n){e=Mo(n,e),e=Tw(t,e,1),t=Fr(t,e,1),e=ht(),t!==null&&(ka(t,1,e),_t(t,e))}function Me(t,e,n){if(t.tag===3)Ag(t,t,n);else for(;e!==null;){if(e.tag===3){Ag(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zr===null||!zr.has(r))){t=Mo(n,t),t=Pw(e,t,1),e=Fr(e,t,1),t=ht(),e!==null&&(ka(e,1,t),_t(e,t));break}}e=e.return}}function NC(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=ht(),t.pingedLanes|=t.suspendedLanes&n,Qe===t&&(Xe&n)===n&&(Ge===4||Ge===3&&(Xe&130023424)===Xe&&500>Ue()-cp?Ss(t,0):lp|=n),_t(t,e)}function Yw(t,e){e===0&&(t.mode&1?(e=Qa,Qa<<=1,!(Qa&130023424)&&(Qa=4194304)):e=1);var n=ht();t=Qn(t,e),t!==null&&(ka(t,e,n),_t(t,n))}function RC(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Yw(t,n)}function AC(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(e),Yw(t,n)}var Zw;Zw=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||xt.current)wt=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return wt=!1,wC(t,e,n);wt=!!(t.flags&131072)}else wt=!1,Ae&&e.flags&1048576&&ew(e,cc,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Ml(t,e),t=e.pendingProps;var s=$o(e,it.current);go(e,n),s=np(null,e,r,t,s,n);var o=rp();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,bt(r)?(o=!0,ac(e)):o=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Qh(e),s.updater=Wc,e.stateNode=s,s._reactInternals=e,ff(e,r,t,n),e=mf(null,e,r,!0,o,n)):(e.tag=0,Ae&&o&&Hh(e),dt(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Ml(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=$C(r),t=en(r,t),s){case 0:e=pf(null,e,r,t,n);break e;case 1:e=_g(null,e,r,t,n);break e;case 11:e=xg(null,e,r,t,n);break e;case 14:e=bg(null,e,r,en(r.type,t),n);break e}throw Error(M(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:en(r,s),pf(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:en(r,s),_g(t,e,r,s,n);case 3:e:{if(Ow(e),t===null)throw Error(M(387));r=e.pendingProps,o=e.memoizedState,s=o.element,iw(t,e),fc(e,r,null,n);var i=e.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){s=Mo(Error(M(423)),e),e=Sg(t,e,r,n,s);break e}else if(r!==s){s=Mo(Error(M(424)),e),e=Sg(t,e,r,n,s);break e}else for(Tt=Mr(e.stateNode.containerInfo.firstChild),Pt=e,Ae=!0,an=null,n=sw(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Io(),r===s){e=Jn(t,e,n);break e}dt(t,e,r,n)}e=e.child}return e;case 5:return aw(e),t===null&&cf(e),r=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,i=s.children,rf(r,s)?i=null:o!==null&&rf(r,o)&&(e.flags|=32),Aw(t,e),dt(t,e,i,n),e.child;case 6:return t===null&&cf(e),null;case 13:return $w(t,e,n);case 4:return Jh(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Lo(e,null,r,n):dt(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:en(r,s),xg(t,e,r,s,n);case 7:return dt(t,e,e.pendingProps,n),e.child;case 8:return dt(t,e,e.pendingProps.children,n),e.child;case 12:return dt(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,o=e.memoizedProps,i=s.value,Ce(uc,r._currentValue),r._currentValue=i,o!==null)if(pn(o.value,i)){if(o.children===s.children&&!xt.current){e=Jn(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Gn(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),uf(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===e.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(M(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),uf(i,n,e),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}dt(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,go(e,n),s=Wt(s),r=r(s),e.flags|=1,dt(t,e,r,n),e.child;case 14:return r=e.type,s=en(r,e.pendingProps),s=en(r.type,s),bg(t,e,r,s,n);case 15:return Nw(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:en(r,s),Ml(t,e),e.tag=1,bt(r)?(t=!0,ac(e)):t=!1,go(e,n),jw(e,r,s),ff(e,r,s,n),mf(null,e,r,!0,t,n);case 19:return Iw(t,e,n);case 22:return Rw(t,e,n)}throw Error(M(156,e.tag))};function Qw(t,e){return k0(t,e)}function OC(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(t,e,n,r){return new OC(t,e,n,r)}function hp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $C(t){if(typeof t=="function")return hp(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ah)return 11;if(t===Oh)return 14}return 2}function Br(t,e){var n=t.alternate;return n===null?(n=Bt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,799 bytes, line 41
41ons=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ul(t,e,n,r,s,o){var i=2;if(r=t,typeof t=="function")hp(t)&&(i=1);else if(typeof t=="string")i=5;else e:switch(t){case eo:return ks(n.children,s,o,e);case Rh:i=8,s|=8;break;case Id:return t=Bt(12,n,e,s|2),t.elementType=Id,t.lanes=o,t;case Ld:return t=Bt(13,n,e,s),t.elementType=Ld,t.lanes=o,t;case Dd:return t=Bt(19,n,e,s),t.elementType=Dd,t.lanes=o,t;case a0:return Gc(n,s,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case o0:i=10;break e;case i0:i=9;break e;case Ah:i=11;break e;case Oh:i=14;break e;case wr:i=16,r=null;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=Bt(i,n,e,s),e.elementType=t,e.type=r,e.lanes=o,e}function ks(t,e,n,r){return t=Bt(7,t,r,e),t.lanes=n,t}function Gc(t,e,n,r){return t=Bt(22,t,r,e),t.elementType=a0,t.lanes=n,t.stateNode={isHidden:!1},t}function ed(t,e,n){return t=Bt(6,t,null,e),t.lanes=n,t}function td(t,e,n){return e=Bt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function IC(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Iu(0),this.expirationTimes=Iu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function pp(t,e,n,r,s,o,i,a,l){return t=new IC(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Bt(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qh(o),t}function LC(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xs,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function Jw(t){if(!t)return qr;t=t._reactInternals;e:{if($s(t)!==t||t.tag!==1)throw Error(M(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(bt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(M(171))}if(t.tag===1){var n=t.type;if(bt(n))return J0(t,n,e)}return e}function Xw(t,e,n,r,s,o,i,a,l){return t=pp(n,r,!0,t,s,o,i,a,l),t.context=Jw(null),n=t.current,r=ht(),s=Ur(n),o=Gn(r,s),o.callback=e??null,Fr(n,o,s),t.current.lanes=s,ka(t,s,r),_t(t,r),t}function Yc(t,e,n,r){var s=e.current,o=ht(),i=Ur(s);return n=Jw(n),e.context===null?e.context=n:e.pendingContext=n,e=Gn(o,i),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Fr(s,e,i),t!==null&&(fn(t,s,i,o),Il(t,s,i)),i}function xc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Og(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function mp(t,e){Og(t,e),(t=t.alternate)&&Og(t,e)}function DC(){return null}var ex=typeof reportError=="function"?reportError:function(t){console.error(t)};function gp(t){this._internalRoot=t}Zc.prototype.render=gp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(M(409));Yc(t,e,null,null)};Zc.prototype.unmount=gp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ps(function(){Yc(null,t,null,null)}),e[Zn]=null}};function Zc(t){this._internalRoot=t}Zc.prototype.unstable_scheduleHydration=function(t){if(t){var e=R0();t={blockedOn:null,target:t,priority:e};for(var n=0;n<_r.length&&e!==0&&e<_r[n].priority;n++);_r.splice(n,0,t),n===0&&O0(t)}};function vp(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Qc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function $g(){}function MC(t,e,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var c=xc(i);o.call(c)}}var i=Xw(e,r,t,0,null,!1,!1,"",$g);return t._reactRootContainer=i,t[Zn]=i.current,ra(t.nodeType===8?t.parentNode:t),Ps(),i}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=xc(l);a.call(c)}}var l=pp(t,0,!1,null,null,!1,!1,"",$g);return t._reactRootContainer=l,t[Zn]=l.current,ra(t.nodeType===8?t.parentNode:t),Ps(function(){Yc(e,l,n,r)}),l}
41function Jc(t,e,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=xc(i);a.call(l)}}Yc(e,i,t,s)}else i=MC(n,e,t,s,r);return xc(i)}P0=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Ni(e.pendingLanes);n!==0&&(Lh(e,n|1),_t(e,Ue()),!(me&6)&&(Fo=Ue()+500,Xr()))}break;case 13:Ps(function(){var r=Qn(t,1);if(r!==null){var s=ht();fn(r,t,1,s)}}),mp(t,1)}};Dh=function(t){if(t.tag===13){var e=Qn(t,134217728);if(e!==null){var n=ht();fn(e,t,134217728,n)}mp(t,134217728)}};N0=function(t){if(t.tag===13){var e=Ur(t),n=Qn(t,e);if(n!==null){var r=ht();fn(n,t,e,r)}mp(t,e)}};R0=function(){return be};A0=function(t,e){var n=be;try{return be=t,e()}finally{be=n}};Kd=function(t,e,n){switch(e){case"input":if(zd(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=Bc(r);if(!s)throw Error(M(90));c0(r),zd(r,s)}}}break;case"textarea":d0(t,n);break;case"select":e=n.value,e!=null&&fo(t,!!n.multiple,e,!1)}};y0=up;w0=Ps;var FC={usingClientEntryPoint:!1,Events:[Ca,so,Bc,g0,v0,up]},xi={findFiberByHostInstance:hs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zC={bundleType:xi.bundleType,version:xi.version,rendererPackageName:xi.rendererPackageName,rendererConfig:xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=_0(t),t===null?null:t.stateNode},findFiberByHostInstance:xi.findFiberByHostInstance||DC,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 ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{Mc=ll.inject(zC),Nn=ll}catch{}}Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FC;Ot.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vp(e))throw Error(M(200));return LC(t,e,null,n)};Ot.createRoot=function(t,e){if(!vp(t))throw Error(M(299));var n=!1,r="",s=ex;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=pp(t,1,!1,null,null,n,!1,r,s),t[Zn]=e.current,ra(t.nodeType===8?t.parentNode:t),new gp(e)};Ot.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(M(188)):(t=Object.keys(t).join(","),Error(M(268,t)));return t=_0(e),t=t===null?null:t.stateNode,t};Ot.flushSync=function(t){return Ps(t)};Ot.hydrate=function(t,e,n){if(!Qc(e))throw Error(M(200));return Jc(null,t,e,!0,n)};Ot.hydrateRoot=function(t,e,n){if(!vp(t))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=ex;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),e=Xw(e,null,t,1,n??null,s,!1,o,i),t[Zn]=e.current,ra(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new Zc(e)};Ot.render=function(t,e,n){if(!Qc(e))throw Error(M(200));return Jc(null,t,e,!1,n)};Ot.unmountComponentAtNode=function(t){if(!Qc(t))throw Error(M(40));return t._reactRootContainer?(Ps(function(){Jc(null,null,t,!1,function(){t._reactRootContainer=null,t[Zn]=null})}),!0):!1};Ot.unstable_batchedUpdates=up;Ot.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Qc(n))throw Error(M(200));if(t==null||t._reactInternals===void 0)throw Error(M(38));return Jc(t,e,n,!1,r)};Ot.version="18.3.1-next-f1338f8080-20240426";function tx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tx)}catch(t){console.error(t)}}tx(),t0.exports=Ot;var Ta=t0.exports;const nx=Qo(Ta);var rx,Ig=Ta;rx=Ig.createRoot,Ig.hydrateRoot;const UC="modulepreload",BC=function(t){return"/"+t},Lg={},J=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=BC(l),l in Lg)return;Lg[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":UC,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},VC=1,HC=1e6;let nd=0;function WC(){return nd=(nd+1)%Number.MAX_SAFE_INTEGER,nd.toString()}const rd=new Map,Dg=t=>{if(rd.has(t))return;const e=setTimeout(()=>{rd.delete(t),Hi({type:"REMOVE_TOAST",toastId:t})},HC);rd.set(t,e)},qC=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,VC)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;
41return n?Dg(n):t.toasts.forEach(r=>{Dg(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},Bl=[];let Vl={toasts:[]};function Hi(t){Vl=qC(Vl,t),Bl.forEach(e=>{e(Vl)})}function KC({...t}){const e=WC(),n=s=>Hi({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>Hi({type:"DISMISS_TOAST",toastId:e});return Hi({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function yp(){const[t,e]=p.useState(Vl);return p.useEffect(()=>(Bl.push(e),()=>{const n=Bl.indexOf(e);n>-1&&Bl.splice(n,1)}),[t]),{...t,toast:KC,dismiss:n=>Hi({type:"DISMISS_TOAST",toastId:n})}}function ee(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function Mg(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function sx(...t){return e=>{let n=!1;const r=t.map(s=>{const o=Mg(s,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Mg(t[s],null)}}}}function je(...t){return p.useCallback(sx(...t),t)}function GC(t,e){const n=p.createContext(e),r=o=>{const{children:i,...a}=o,l=p.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:l,children:i})};r.displayName=t+"Provider";function s(o){const i=p.useContext(n);if(i)return i;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,s]}function Ln(t,e=[]){let n=[];function r(o,i){const a=p.createContext(i),l=n.length;n=[...n,i];const c=f=>{var g;const{scope:h,children:m,...b}=f,v=((g=h==null?void 0:h[t])==null?void 0:g[l])||a,x=p.useMemo(()=>b,Object.values(b));return u.jsx(v.Provider,{value:x,children:m})};c.displayName=o+"Provider";function d(f,h){var v;const m=((v=h==null?void 0:h[t])==null?void 0:v[l])||a,b=p.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[t])||o;return p.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[r,YC(s,...e)]}function YC(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}function zo(t){const e=QC(t),n=p.forwardRef((r,s)=>{const{children:o,...i}=r,a=p.Children.toArray(o),l=a.find(JC);if(l){const c=l.props.children,d=a.map(f=>f===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return u.jsx(e,{...i,ref:s,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return u.jsx(e,{...i,ref:s,children:o})});return n.displayName=`${t}.Slot`,n}var ZC=zo("Slot");function QC(t){const e=p.forwardRef((n,r)=>{const{children:s,...o}=n;if(p.isValidElement(s)){const i=ej(s),a=XC(o,s.props);return s.type!==p.Fragment&&(a.ref=r?sx(r,i):i),p.cloneElement(s,a)}return p.Children.count(s)>1?p.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ox=Symbol("radix.slottable");function ix(t){const e=({children:n})=>u.jsx(u.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=ox,e}function JC(t){return p.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ox}function XC(t,e){const n={...e};for(const r in e){const s=t[r],o=e[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...t,...n}}function ej(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.
vendor: 9,581 bytes, line 41
41isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function wp(t){const e=t+"CollectionProvider",[n,r]=Ln(e),[s,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:g}=v,w=T.useRef(null),y=T.useRef(new Map).current;return u.jsx(s,{scope:x,itemMap:y,collectionRef:w,children:g})};i.displayName=e;const a=t+"CollectionSlot",l=zo(a),c=T.forwardRef((v,x)=>{const{scope:g,children:w}=v,y=o(a,g),_=je(x,y.collectionRef);return u.jsx(l,{ref:_,children:w})});c.displayName=a;const d=t+"CollectionItemSlot",f="data-radix-collection-item",h=zo(d),m=T.forwardRef((v,x)=>{const{scope:g,children:w,...y}=v,_=T.useRef(null),S=je(x,_),k=o(d,g);return T.useEffect(()=>(k.itemMap.set(_,{ref:_,...y}),()=>void k.itemMap.delete(_))),u.jsx(h,{[f]:"",ref:S,children:w})});m.displayName=d;function b(v){const x=o(t+"CollectionConsumer",v);return T.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((k,C)=>y.indexOf(k.ref.current)-y.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:m},b,r]}var tj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=tj.reduce((t,e)=>{const n=zo(`Primitive.${e}`),r=p.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function ax(t,e){t&&Ta.flushSync(()=>t.dispatchEvent(e))}function mn(t){const e=p.useRef(t);return p.useEffect(()=>{e.current=t}),p.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function nj(t,e=globalThis==null?void 0:globalThis.document){const n=mn(t);p.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var rj="DismissableLayer",jf="dismissableLayer.update",sj="dismissableLayer.pointerDownOutside",oj="dismissableLayer.focusOutside",Fg,lx=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pa=p.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=t,c=p.useContext(lx),[d,f]=p.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),b=je(e,C=>f(C)),v=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(x),w=d?v.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=g,S=aj(C=>{const E=C.target,O=[...c.branches].some(P=>P.contains(E));!_||O||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},h),k=lj(C=>{const E=C.target;[...c.branches].some(P=>P.contains(E))||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},h);return nj(C=>{w===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},h),p.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Fg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),zg(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Fg)}},[d,h,n,c]),p.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),zg())},[d,c]),p.useEffect(()=>{const C=()=>m({});return document.addEventListener(jf,C),()=>document.removeEventListener(jf,C)},[]),u.jsx(pe.div,{...l,ref:b,style:{pointerEvents:y?_?"auto":"none":void 0,...t.style},onFocusCapture:ee(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ee(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ee(t.onPointerDownCapture,S.onPointerDownCapture)})});Pa.displayName=rj;var ij="DismissableLayerBranch",cx=p.forwardRef((t,e)=>{const n=p.useContext(lx),r=p.useRef(null),s=je(e,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),u.jsx(pe.div,{...t,ref:s})});cx.displayName=ij;function aj(t,e=globalThis==null?void 0:globalThis.document){const n=mn(t),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){ux(sj,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function lj(t,e=globalThis==null?void 0:globalThis.document){const n=mn(t),r=p.useRef(!1);return p.useEffect(()=>{const s=o=>{o.target&&!r.current&&ux(oj,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zg(){const t=new CustomEvent(jf);document.dispatchEvent(t)}function ux(t,e,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?ax(s,o):s.dispatchEvent(o)}var cj=Pa,uj=cx,Xn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},dj="Portal",Xc=p.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[s,o]=p.useState(!1);Xn(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?nx.createPortal(u.jsx(pe.div,{...r,ref:e}),i):null});Xc.displayName=dj;function fj(t,e){return p.useReducer((n,r)=>e[n][r]??n,t)}var sr=t=>{const{present:e,children:n}=t,r=hj(e),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=je(r.ref,pj(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:o}):null};sr.displayName="Presence";function hj(t){const[e,n]=p.useState(),r=p.useRef(null),s=p.useRef(t),o=p.useRef("none"),i=t?"mounted":"unmounted",[a,l]=fj(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=cl(r.current);o.current=a==="mounted"?c:"none"},[a]),Xn(()=>{const c=r.current,d=s.current;if(d!==t){const h=o.current,m=cl(c);t?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),Xn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=m=>{const v=cl(r.current).includes(m.animationName);if(m.target===e&&v&&(l("ANIMATION_END"),!s.current)){const x=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=x)})}},h=m=>{m.target===e&&(o.current=cl(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function cl(t){return(t==null?void 0:t.animationName)||"none"}function pj(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var mj=jh[" useInsertionEffect ".trim().toString()]||Xn;function ti({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,o,i]=gj({defaultProp:e,onChange:n}),a=t!==void 0,l=a?t:s;{const d=p.useRef(t!==void 0);p.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=p.useCallback(d=>{var f;if(a){const h=vj(d)?d(t):d;h!==t&&((f=i.current)==null||f.call(i,h))}else o(d)},[a,t,o,i]);return[l,c]}function gj({defaultProp:t,onChange:e}){const[n,r]=p.useState(t),s=p.useRef(n),o=p.useRef(e);return mj(()=>{o.current=e},[e]),p.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function vj(t){return typeof t=="function"}var yj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),wj="VisuallyHidden",eu=p.forwardRef((t,e)=>u.jsx(pe.span,{...t,ref:e,style:{...yj,...t.style}}));eu.displayName=wj;var xj=eu,xp="ToastProvider",[bp,bj,_j]=wp("Toast"),[dx,w8]=Ln("Toast",[_j]),[Sj,tu]=dx(xp),fx=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=t,[a,l]=p.useState(null),[c,d]=p.useState(0),f=p.useRef(!1),h=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${xp}\`. Expected non-empty \`string\`.`),u.jsx(bp.Provider,{scope:e,children:u.jsx(Sj,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:
41a,onViewportChange:l,onToastAdd:p.useCallback(()=>d(m=>m+1),[]),onToastRemove:p.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};fx.displayName=xp;var hx="ToastViewport",kj=["F8"],Tf="toast.viewportPause",Pf="toast.viewportResume",px=p.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=kj,label:s="Notifications ({hotkey})",...o}=t,i=tu(hx,n),a=bj(n),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=je(e,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;p.useEffect(()=>{const x=g=>{var y;r.length!==0&&r.every(_=>g[_]||g.code===_)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),p.useEffect(()=>{const x=l.current,g=f.current;if(b&&x&&g){const w=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Tf);g.dispatchEvent(k),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(Pf);g.dispatchEvent(k),i.isClosePausedRef.current=!1}},_=k=>{!x.contains(k.relatedTarget)&&y()},S=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",w),x.addEventListener("focusout",_),x.addEventListener("pointermove",w),x.addEventListener("pointerleave",S),window.addEventListener("blur",w),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",w),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",w),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",w),window.removeEventListener("focus",y)}}},[b,i.isClosePausedRef]);const v=p.useCallback(({tabbingDirection:x})=>{const w=a().map(y=>{const _=y.ref.current,S=[_,...Dj(_)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?w.reverse():w).flat()},[a]);return p.useEffect(()=>{const x=f.current;if(x){const g=w=>{var S,k,C;const y=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!y){const E=document.activeElement,O=w.shiftKey;if(w.target===x&&O){(S=c.current)==null||S.focus();return}const $=v({tabbingDirection:O?"backwards":"forwards"}),U=$.findIndex(A=>A===E);sd($.slice(U+1))?w.preventDefault():O?(k=c.current)==null||k.focus():(C=d.current)==null||C.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[a,v]),u.jsxs(uj,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(Nf,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});sd(x)}}),u.jsx(bp.Slot,{scope:n,children:u.jsx(pe.ol,{tabIndex:-1,...o,ref:h})}),b&&u.jsx(Nf,{ref:d,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});sd(x)}})]})});px.displayName=hx;var mx="ToastFocusProxy",Nf=p.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,o=tu(mx,n);return u.jsx(eu,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=o.viewport)!=null&&c.contains(a))&&r()}})});Nf.displayName=mx;var Na="Toast",Ej="toast.swipeStart",Cj="toast.swipeMove",jj="toast.swipeCancel",Tj="toast.swipeEnd",gx=p.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=t,[a,l]=ti({prop:r,defaultProp:s??!0,onChange:o,caller:Na});return u.jsx(sr,{present:n||a,children:u.jsx(Rj,{open:a,...i,ref:e,onClose:()=>l(!1),onPause:mn(t.onPause),onResume:mn(t.onResume),onSwipeStart:ee(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ee(t.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ee(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ee(t.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});gx.displayName=Na;var[Pj,Nj]=dx(Na,{onClose(){}}),Rj=p.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...b}=t,v=tu(Na,n),[x,g]=p.useState(null),w=je(e,A=>g(A)),y=p.useRef(null),_=p.useRef(null),S=s||v.duration,k=p.useRef(0),C=p.useRef(S),E=p.useRef(0),{onToastAdd:O,onToastRemove:P}=v,D=mn(()=>{var I;(x==null?void 0:x.contains(document.activeElement))&&((I=v.viewport)==null||I.focus()),i()}),$=p.useCallback(A=>
41{!A||A===1/0||(window.clearTimeout(E.current),k.current=new Date().getTime(),E.current=window.setTimeout(D,A))},[D]);p.useEffect(()=>{const A=v.viewport;if(A){const I=()=>{$(C.current),c==null||c()},z=()=>{const V=new Date().getTime()-k.current;C.current=C.current-V,window.clearTimeout(E.current),l==null||l()};return A.addEventListener(Tf,z),A.addEventListener(Pf,I),()=>{A.removeEventListener(Tf,z),A.removeEventListener(Pf,I)}}},[v.viewport,S,l,c,$]),p.useEffect(()=>{o&&!v.isClosePausedRef.current&&$(S)},[o,S,v.isClosePausedRef,$]),p.useEffect(()=>(O(),()=>P()),[O,P]);const U=p.useMemo(()=>x?Sx(x):null,[x]);return v.viewport?u.jsxs(u.Fragment,{children:[U&&u.jsx(Aj,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),u.jsx(Pj,{scope:n,onClose:D,children:Ta.createPortal(u.jsx(bp.ItemSlot,{scope:n,children:u.jsx(cj,{asChild:!0,onEscapeKeyDown:ee(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||D(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(pe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ee(t.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:ee(t.onPointerDown,A=>{A.button===0&&(y.current={x:A.clientX,y:A.clientY})}),onPointerMove:ee(t.onPointerMove,A=>{if(!y.current)return;const I=A.clientX-y.current.x,z=A.clientY-y.current.y,V=!!_.current,j=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=j?R(0,I):0,Y=j?0:R(0,z),W=A.pointerType==="touch"?10:2,X={x:L,y:Y},Z={originalEvent:A,delta:X};V?(_.current=X,ul(Cj,f,Z,{discrete:!1})):Ug(X,v.swipeDirection,W)?(_.current=X,ul(Ej,d,Z,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(I)>W||Math.abs(z)>W)&&(y.current=null)}),onPointerUp:ee(t.onPointerUp,A=>{const I=_.current,z=A.target;if(z.hasPointerCapture(A.pointerId)&&z.releasePointerCapture(A.pointerId),_.current=null,y.current=null,I){const V=A.currentTarget,j={originalEvent:A,delta:I};Ug(I,v.swipeDirection,v.swipeThreshold)?ul(Tj,m,j,{discrete:!0}):ul(jj,h,j,{discrete:!0}),V.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Aj=t=>{const{__scopeToast:e,children:n,...r}=t,s=tu(Na,e),[o,i]=p.useState(!1),[a,l]=p.useState(!1);return Ij(()=>i(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(Xc,{asChild:!0,children:u.jsx(eu,{...r,children:o&&u.jsxs(u.Fragment,{children:[s.label," ",n]})})})},Oj="ToastTitle",vx=p.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return u.jsx(pe.div,{...r,ref:e})});vx.displayName=Oj;var $j="ToastDescription",yx=p.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return u.jsx(pe.div,{...r,ref:e})});yx.displayName=$j;var wx="ToastAction",xx=p.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?u.jsx(_x,{altText:n,asChild:!0,children:u.jsx(_p,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${wx}\`. Expected non-empty \`string\`.`),null)});xx.displayName=wx;var bx="ToastClose",_p=p.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=Nj(bx,n);return u.jsx(_x,{asChild:!0,children:u.jsx(pe.button,{type:"button",...r,ref:e,onClick:ee(t.onClick,s.onClose)})})});_p.displayName=bx;var _x=p.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return u.jsx(pe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function Sx(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),Lj(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...Sx(r))}}),e}function ul(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?ax(s,o):s.dispatchEvent(o)}var Ug=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),o=r>s;return e==="left"||e==="right"?o&&r>n:!o&&s>n};function Ij(t=()=>{}){const e=mn(t);Xn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function Lj(t){return t.nodeType===t.ELEMENT_NODE}function Dj(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function sd(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var Mj=fx,kx=px,Ex=gx,Cx=vx,jx=yx,Tx=xx,Px=_p;function Nx(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=Nx(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Rx(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=Nx(t))&&(r&&(r+=" "),r+=e);return r}const Bg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Vg=Rx,Ra=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return Vg(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=e,i=Object.keys(s).map(c=>{const d=n==null?void 0:n[c],f=o==null?void 0:o[c];if(d===null)return null;const h=Bg(d)||Bg(f);return s[c][h]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(b=>{let[v,x]=b;return Array.isArray(x)?x.includes({...o,...a}[v]):{...o,...a}[v]===x})?[...c,f,h]:c},[]);return Vg(t,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.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 Fj=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ax=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.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 zj={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.462.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 Uj=p.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>p.createElement("svg",{ref:l,...zj,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:Ax("lucide",s),...a},[...i.map(([c,d])=>p.createElement(c,d)),...Array.isArray(o)?o:[o]]));/** 57 * @license lucide-react v0.462.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 ce=(t,e)=>{const n=p.forwardRef(({className:r,...s},o)=>p.createElement(Uj,{ref:o,iconNode:e,className:Ax(`lucide-${Fj(t)}`,r),...s}));return n.displayName=`${t}`,n};/** 62 * @license lucide-react v0.462.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 Bj=ce("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 67 * @license lucide-react v0.462.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 Hg=ce("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 72 * @license lucide-react v0.462.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 Vj=ce("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 77 * @license lucide-react v0.462.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 Hj=ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 82 * @license lucide-react v0.462.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 Sp=ce("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 87 * @license lucide-react v0.462.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 Wj=ce("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 92 * @license lucide-react v0.462.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 qj=ce("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/** 97 * @license lucide-react v0.462.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 Kj=ce("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 102 * @license lucide-react v0.462.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 Gj=ce("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 107 * @license lucide-react v0.462.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 Yj=ce("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 112 * @license lucide-react v0.462.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 Zj=ce("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 117 * @license lucide-react v0.462.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 Qj=ce("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 122 * @license lucide-react v0.462.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 Jj=ce("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 127 * @license lucide-react v0.462.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 dl=ce("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 132 * @license lucide-react v0.462.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 fl=ce("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 137 * @license lucide-react v0.462.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 Xj=ce("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 142 * @license lucide-react v0.462.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 Wg=ce("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 147 * @license lucide-react v0.462.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 Aa=ce("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 152 * @license lucide-react v0.462.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 qg=ce("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 157 * @license lucide-react v0.462.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 eT=ce("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 162 * @license lucide-react v0.462.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 tT=ce("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}
166],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/** 167 * @license lucide-react v0.462.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 Kg=ce("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 172 * @license lucide-react v0.462.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 nT=ce("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 177 * @license lucide-react v0.462.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 rT=ce("Menu",[["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"}]]);/** 182 * @license lucide-react v0.462.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 sT=ce("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 187 * @license lucide-react v0.462.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 oT=ce("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 192 * @license lucide-react v0.462.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 iT=ce("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 197 * @license lucide-react v0.462.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 aT=ce("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 202 * @license lucide-react v0.462.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 lT=ce("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 207 * @license lucide-react v0.462.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 cT=ce("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const kp=ce("Shield",[["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"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const uT=ce("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const hn=ce("Sparkles",[["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"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const Ep=ce("Star",[["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"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const dT=ce("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const fT=ce("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const hT=ce("TriangleAlert",[["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"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const pT=ce("Users",[["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"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const mT=ce("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const gT=ce("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const ni=ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 266
266],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Cp="-",vT=t=>{const e=wT(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{const a=i.split(Cp);return a[0]===""&&a.length!==1&&a.shift(),Ox(a,e)||yT(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Ox=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?Ox(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const o=t.join(Cp);return(i=e.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},Gg=/^\[(.+)\]$/,yT=t=>{if(Gg.test(t)){const e=Gg.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},wT=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return bT(Object.entries(t.classGroups),n).forEach(([o,i])=>{Rf(i,r,o,e)}),r},Rf=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?e:Yg(e,s);o.classGroupId=n;return}if(typeof s=="function"){if(xT(s)){Rf(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{Rf(i,Yg(e,o),n,r)})})},Yg=(t,e)=>{let n=t;return e.split(Cp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},xT=t=>t.isThemeGetter,bT=(t,e)=>e?t.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[e+i,a])):o);return[n,s]}):t,_T=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),e++,e>t&&(e=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},$x="!",ST=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],o=e.length,i=a=>{const l=[];let c=0,d=0,f;for(let x=0;x<a.length;x++){let g=a[x];if(c===0){if(g===s&&(r||a.slice(x,x+o)===e)){l.push(a.slice(d,x)),d=x+o;continue}if(g==="/"){f=x;continue}}g==="["?c++:g==="]"&&c--}const h=l.length===0?a:a.substring(d),m=h.startsWith($x),b=m?h.substring(1):h,v=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},kT=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},ET=t=>({cache:_T(t.cacheSize),parseClassName:ST(t),...vT(t)}),CT=/\s+/,jT=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,o=[],i=t.trim().split(CT);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(c);let b=!!m,v=r(b?h.substring(0,m):h);if(!v){if(!b){a=c+(a.length>0?" "+a:a);continue}if(v=r(h),!v){a=c+(a.length>0?" "+a:a);continue}b=!1}const x=kT(d).join(":"),g=f?x+$x:x,w=g+v;if(o.includes(w))continue;o.push(w);const y=s(v,b);for(let _=0;_<y.length;++_){const S=y[_];o.push(g+S)}a=c+(a.length>0?" "+a:a)}return a};function TT(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Ix(e))&&(r&&(r+=" "),r+=n);return r}const Ix=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Ix(t[r]))&&(n&&(n+=" "),n+=e);return n};function PT(t,...e){let n,r,s,o=i;function i(l){const c=e.reduce((d,f)=>f(d),t());return n=ET(c),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=jT(l,n);return s(l,d),d}return function(){return o(TT.apply(null,arguments))}}const Te=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Lx=/^\[(?:([a-z-]+):)?(.+)\]$/i,NT=/^\d+\/\d+$/,RT=new Set(["px","full","screen"]),AT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OT=/\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$/,$T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fn=t=>yo(t)||RT.has(t)||NT.test(t),hr=t=>ri(t,"length",HT),yo=t=>!!t&&!Number.isNaN(Number(t)),od=t=>ri(t,"number",yo),bi=t=>!!t&&Number.isInteger(Number(t)),DT=t=>t.endsWith("%")&&yo(t.slice(0,-1)),le=t=>Lx.test(t),pr=t=>AT.test(t),MT=new Set(["length","size","percentage"]),FT=t=>ri(t,MT,Dx),zT=t=>ri(t,"position",Dx),UT=new Set(["image","url"]),BT=t=>ri(t,UT,qT),VT=t=>ri(t,"",WT),_i=()=>!0,ri=(t,e,n)=>{const r=Lx.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},HT=t=>OT.test(t)&&!$T.test(t),Dx=()=>!1,WT=t=>IT.test(t),qT=t=>LT.test(t),KT=()=>{const t=Te("colors"),e=Te("spacing"),n=Te("blur"),r=Te("brightness"),s=Te("borderColor"),o=Te("borderRadius"),i=Te("borderSpacing"),a=Te("borderWidth"),l=Te("contrast"),c=Te("grayscale"),d=Te("hueRotate"),f=Te("invert"),h=Te("gap"),m=Te("gradientColorStops"),b=Te("gradientColorStopPositions"),v=Te("inset"),x=Te("margin"),g=Te("opacity"),w=Te("padding"),y=Te("saturate"),_=Te("scale"),S=Te("sepia"),k=Te("skew"),C=Te("space"),E=Te("translate"),O=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",le,e],$=()=>[le,e],U=()=>["",Fn,hr],A=()=>["auto",yo,le],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",le],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[yo,le];return{cacheSize:500,separator:":",theme:{colors:[_i],spacing:[Fn,hr],blur:["none","",pr,le],brightness:Y(),borderColor:[t],borderRadius:["n
266one","","full",pr,le],borderSpacing:$(),borderWidth:U(),contrast:Y(),grayscale:R(),hueRotate:Y(),invert:R(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[DT,hr],inset:D(),margin:D(),opacity:Y(),padding:$(),saturate:Y(),scale:Y(),sepia:R(),skew:Y(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",le]}],container:["container"],columns:[{columns:[pr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:[...I(),le]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bi,le]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",le]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",bi,le]}],"grid-cols":[{"grid-cols":[_i]}],"col-start-end":[{col:["auto",{span:["full",bi,le]},le]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[_i]}],"row-start-end":[{row:["auto",{span:[bi,le]},le]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",le]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",le,e]}],"min-w":[{"min-w":[le,e,"min","max","fit"]}],"max-w":[{"max-w":[le,e,"none","full","min","max","fit","prose",{screen:[pr]},pr]}],h:[{h:[le,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[le,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[le,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[le,e,"auto","min","max","fit"]}],"font-size":[{text:["base",pr,hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",od]}],"font-family":[{font:[_i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",le]}],"line-clamp":[{"line-clamp":["none",yo,od]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fn,le]}],"list-image":[{"list-image":["none",le]}],"list-style-type":[{list:["none","disc","decimal",le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fn,hr]}],"underline-offset":[{"underline-offset":["auto",Fn,le]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I(),zT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},BT]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}
vendor: 5,180 bytes, line 266
266],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[Fn,le]}],"outline-w":[{outline:[Fn,hr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Fn,hr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",pr,VT]}],"shadow-color":[{shadow:[_i]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",pr,le]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",le]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",le]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[bi,le]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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"]}
vendor: 4,647 bytes, line 266
266],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",le]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Fn,hr,od]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},GT=PT(KT);function ue(...t){return GT(Rx(t))}const YT=Mj,Mx=p.forwardRef(({className:t,...e},n)=>u.jsx(kx,{ref:n,className:ue("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),...e}));Mx.displayName=kx.displayName;const ZT=Ra("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"}}),Fx=p.forwardRef(({className:t,variant:e,...n},r)=>u.jsx(Ex,{ref:r,className:ue(ZT({variant:e}),t),...n}));Fx.displayName=Ex.displayName;const QT=p.forwardRef(({className:t,...e},n)=>u.jsx(Tx,{ref:n,className:ue("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));QT.displayName=Tx.displayName;const zx=p.forwardRef(({className:t,...e},n)=>u.jsx(Px,{ref:n,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground
266/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:u.jsx(ni,{className:"h-4 w-4"})}));zx.displayName=Px.displayName;const Ux=p.forwardRef(({className:t,...e},n)=>u.jsx(Cx,{ref:n,className:ue("text-sm font-semibold",t),...e}));Ux.displayName=Cx.displayName;const Bx=p.forwardRef(({className:t,...e},n)=>u.jsx(jx,{ref:n,className:ue("text-sm opacity-90",t),...e}));Bx.displayName=jx.displayName;function JT(){const{toasts:t}=yp();return u.jsxs(YT,{children:[t.map(function({id:e,title:n,description:r,action:s,...o}){return u.jsxs(Fx,{...o,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(Ux,{children:n}),r&&u.jsx(Bx,{children:r})]}),s,u.jsx(zx,{})]},e)}),u.jsx(Mx,{})]})}var Zg=["light","dark"],XT="(prefers-color-scheme: dark)",e2=p.createContext(void 0),t2={setTheme:t=>{},themes:[]},n2=()=>{var t;return(t=p.useContext(e2))!=null?t:t2};p.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let c=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?Zg.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,v=!1,x=!0)=>{let g=i?i[b]:b,w=v?b+"|| ''":`'${g}'`,y="";return s&&x&&!v&&Zg.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),n==="class"?v||g?y+=`c.add(${w})`:y+="null":g&&(y+=`d[s](n,${w})`),y},m=t?`!function(){${d}${h(t)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${c})){var t='${XT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${c?"":"else{"+h(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${f}}catch(t){}}();`;return p.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var r2=t=>{switch(t){case"success":return i2;case"info":return l2;case"warning":return a2;case"error":return c2;default:return null}},s2=Array(12).fill(0),o2=({visible:t,className:e})=>T.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},T.createElement("div",{className:"sonner-spinner"},s2.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),i2=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a2=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),l2=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c2=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u2=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),d2=()=>{let[t,e]=T.useState(document.hidden);return T.useEffect(()=>{let n=()=>{e(document.hidden)};
266return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Af=1,f2=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Af++,o=this.toasts.find(a=>a.id===s),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:n}),{...a,...t,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,o,i=r.then(async l=>{if(o=["resolve",l],T.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(p2(l)&&!l.ok){s=!1;let c=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:n,type:"error",message:c,description:d})}else if(e.success!==void 0){s=!1;let c=typeof e.success=="function"?await e.success(l):e.success,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async l=>{if(o=["reject",l],e.error!==void 0){s=!1;let c=typeof e.error=="function"?await e.error(l):e.error,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,c)=>i.then(()=>o[0]==="reject"?c(o[1]):l(o[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Af++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},gt=new f2,h2=(t,e)=>{let n=(e==null?void 0:e.id)||Af++;return gt.addToast({title:t,...e,id:n}),n},p2=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",m2=h2,g2=()=>gt.toasts,v2=()=>gt.getActiveToasts(),Wi=Object.assign(m2,{success:gt.success,info:gt.info,warning:gt.warning,error:gt.error,custom:gt.custom,message:gt.message,promise:gt.promise,dismiss:gt.dismiss,loading:gt.loading},{getHistory:g2,getToasts:v2});function y2(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}y2(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
266left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
266:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
266--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 267`);function hl(t){return t.label!==void 0}var w2=3,x2="32px",b2="16px",Qg=4e3,_2=356,S2=14,k2=20,E2=200;function Jt(...t){return t.filter(Boolean).join(" ")}function C2(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var j2=t=>{var e,n,r,s,o,i,a,l,c,d,f;let{invert:h,toast:m,unstyled:b,interacting:v,setHeights:x,visibleToasts:g,heights:w,index:y,toasts:_,expanded:S,removeToast:k,defaultRichColors:C,closeButton:E,style:O,cancelButtonStyle:P,actionButtonStyle:D,className:$="",descriptionClassName:U="",duration:A,position:I,gap:z,loadingIcon:V,expandByDefault:j,classNames:R,icons:L,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:W}=t,[X,Z]=T.useState(null),[ve,ze]=T.useState(null),[ye,lr]=T.useState(!1),[xn,q]=T.useState(!1),[Q,Se]=T.useState(!1),[at,Ba]=T.useState(!1),[Eu,Va]=T.useState(!1),[Cu,di]=T.useState(0),[Ls,xm]=T.useState(0),fi=T.useRef(m.duration||A||Qg),bm=T.useRef(null),os=T.useRef(null),rk=y===0,sk=y+1<=g,It=m.type,Ds=m.dismissible!==!1,ok=m.className||"",ik=m.descriptionClassName||"",Ha=T.useMemo(()=>w.findIndex(se=>se.toastId===m.id)||0,[w,m.id]),ak=T.useMemo(()=>{var se;return(se=m.closeButton)!=null?se:E},[m.closeButton,E]),_m=T.useMemo(()=>m.duration||A||Qg,[m.duration,A]),ju=T.useRef(0),Ms=T.useRef(0),Sm=T.useRef(0),Fs=T.useRef(null),[lk,ck]=I.split("-"),km=T.useMemo(()=>w.reduce((se,_e,Re)=>Re>=Ha?se:se+_e.height,0),[w,Ha]),Em=d2(),uk=m.invert||h,Tu=It==="loading";Ms.current=T.useMemo(()=>Ha*z+km,[Ha,km]),T.useEffect(()=>{fi.current=_m},[_m]),T.useEffect(()=>{lr(!0)},[]),T.useEffect(()=>{let se=os.current;if(se){let _e=se.getBoundingClientRect().height;return xm(_e),x(Re=>[{toastId:m.id,height:_e,position:m.position},...Re]),()=>x(Re=>Re.filter(Gt=>Gt.toastId!==m.id))}},[x,m.id]),T.useLayoutEffect(()=>{if(!ye)return;let se=os.current,_e=se.style.height;se.style.height="auto";let Re=se.getBoundingClientRect().height;se.style.height=_e,xm(Re),x(Gt=>Gt.find(Yt=>Yt.toastId===m.id)?Gt.map(Yt=>Yt.toastId===m.id?{...Yt,height:Re}:Yt):[{toastId:m.id,height:Re,position:m.position},...Gt])},[ye,m.title,m.description,x,m.id]);let cr=T.useCallback(()=>{q(!0),di(Ms.current),x(se=>se.filter(_e=>_e.toastId!==m.id)),setTimeout(()=>{k(m)},E2)},[m,k,x,Ms]);T.useEffect(()=>{if(m.promise&&It==="loading"||m.duration===1/0||m.type==="loading")return;let se;return S||v||W&&Em?(()=>{if(Sm.current<ju.current){let _e=new Date().getTime()-ju.current;fi.current=fi.current-_e}
267Sm.current=new Date().getTime()})():fi.current!==1/0&&(ju.current=new Date().getTime(),se=setTimeout(()=>{var _e;(_e=m.onAutoClose)==null||_e.call(m,m),cr()},fi.current)),()=>clearTimeout(se)},[S,v,m,It,W,Em,cr]),T.useEffect(()=>{m.delete&&cr()},[cr,m.delete]);function dk(){var se,_e,Re;return L!=null&&L.loading?T.createElement("div",{className:Jt(R==null?void 0:R.loader,(se=m==null?void 0:m.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":It==="loading"},L.loading):V?T.createElement("div",{className:Jt(R==null?void 0:R.loader,(_e=m==null?void 0:m.classNames)==null?void 0:_e.loader,"sonner-loader"),"data-visible":It==="loading"},V):T.createElement(o2,{className:Jt(R==null?void 0:R.loader,(Re=m==null?void 0:m.classNames)==null?void 0:Re.loader),visible:It==="loading"})}return T.createElement("li",{tabIndex:0,ref:os,className:Jt($,ok,R==null?void 0:R.toast,(e=m==null?void 0:m.classNames)==null?void 0:e.toast,R==null?void 0:R.default,R==null?void 0:R[It],(n=m==null?void 0:m.classNames)==null?void 0:n[It]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:C,"data-styled":!(m.jsx||m.unstyled||b),"data-mounted":ye,"data-promise":!!m.promise,"data-swiped":Eu,"data-removed":xn,"data-visible":sk,"data-y-position":lk,"data-x-position":ck,"data-index":y,"data-front":rk,"data-swiping":Q,"data-dismissible":Ds,"data-type":It,"data-invert":uk,"data-swipe-out":at,"data-swipe-direction":ve,"data-expanded":!!(S||j&&ye),style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${xn?Cu:Ms.current}px`,"--initial-height":j?"auto":`${Ls}px`,...O,...m.style},onDragEnd:()=>{Se(!1),Z(null),Fs.current=null},onPointerDown:se=>{Tu||!Ds||(bm.current=new Date,di(Ms.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(Se(!0),Fs.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,_e,Re,Gt;if(at||!Ds)return;Fs.current=null;let Yt=Number(((se=os.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ur=Number(((_e=os.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),is=new Date().getTime()-((Re=bm.current)==null?void 0:Re.getTime()),Zt=X==="x"?Yt:ur,dr=Math.abs(Zt)/is;if(Math.abs(Zt)>=k2||dr>.11){di(Ms.current),(Gt=m.onDismiss)==null||Gt.call(m,m),ze(X==="x"?Yt>0?"right":"left":ur>0?"down":"up"),cr(),Ba(!0),Va(!1);return}Se(!1),Z(null)},onPointerMove:se=>{var _e,Re,Gt,Yt;if(!Fs.current||!Ds||((_e=window.getSelection())==null?void 0:_e.toString().length)>0)return;let ur=se.clientY-Fs.current.y,is=se.clientX-Fs.current.x,Zt=(Re=t.swipeDirections)!=null?Re:C2(I);!X&&(Math.abs(is)>1||Math.abs(ur)>1)&&Z(Math.abs(is)>Math.abs(ur)?"x":"y");let dr={x:0,y:0};X==="y"?(Zt.includes("top")||Zt.includes("bottom"))&&(Zt.includes("top")&&ur<0||Zt.includes("bottom")&&ur>0)&&(dr.y=ur):X==="x"&&(Zt.includes("left")||Zt.includes("right"))&&(Zt.includes("left")&&is<0||Zt.includes("right")&&is>0)&&(dr.x=is),(Math.abs(dr.x)>0||Math.abs(dr.y)>0)&&Va(!0),(Gt=os.current)==null||Gt.style.setProperty("--swipe-amount-x",`${dr.x}px`),(Yt=os.current)==null||Yt.style.setProperty("--swipe-amount-y",`${dr.y}px`)}},ak&&!m.jsx?T.createElement("button",{"aria-label":Y,"data-disabled":Tu,"data-close-button":!0,onClick:Tu||!Ds?()=>{}:()=>{var se;cr(),(se=m.onDismiss)==null||se.call(m,m)},className:Jt(R==null?void 0:R.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(o=L==null?void 0:L.close)!=null?o:u2):null,m.jsx||p.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:T.createElement(T.Fragment,null,It||m.icon||m.promise?T.createElement("div",{"data-icon":"",className:Jt(R==null?void 0:R.icon,(i=m==null?void 0:m.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||dk():null,m.type!=="loading"?m.
vendor: 5,921 bytes, line 267
267icon||(L==null?void 0:L[It])||r2(It):null):null,T.createElement("div",{"data-content":"",className:Jt(R==null?void 0:R.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},T.createElement("div",{"data-title":"",className:Jt(R==null?void 0:R.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?T.createElement("div",{"data-description":"",className:Jt(U,ik,R==null?void 0:R.description,(c=m==null?void 0:m.classNames)==null?void 0:c.description)},typeof m.description=="function"?m.description():m.description):null),p.isValidElement(m.cancel)?m.cancel:m.cancel&&hl(m.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||P,onClick:se=>{var _e,Re;hl(m.cancel)&&Ds&&((Re=(_e=m.cancel).onClick)==null||Re.call(_e,se),cr())},className:Jt(R==null?void 0:R.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,p.isValidElement(m.action)?m.action:m.action&&hl(m.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||D,onClick:se=>{var _e,Re;hl(m.action)&&((Re=(_e=m.action).onClick)==null||Re.call(_e,se),!se.defaultPrevented&&cr())},className:Jt(R==null?void 0:R.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Jg(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function T2(t,e){let n={};return[t,e].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?b2:x2;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=a:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var P2=p.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:f,duration:h,style:m,visibleToasts:b=w2,toastOptions:v,dir:x=Jg(),gap:g=S2,loadingIcon:w,icons:y,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=t,[k,C]=T.useState([]),E=T.useMemo(()=>Array.from(new Set([r].concat(k.filter(W=>W.position).map(W=>W.position)))),[k,r]),[O,P]=T.useState([]),[D,$]=T.useState(!1),[U,A]=T.useState(!1),[I,z]=T.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=T.useRef(null),j=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=T.useRef(null),L=T.useRef(!1),Y=T.useCallback(W=>{C(X=>{var Z;return(Z=X.find(ve=>ve.id===W.id))!=null&&Z.delete||gt.dismiss(W.id),X.filter(({id:ve})=>ve!==W.id)})},[]);return T.useEffect(()=>gt.subscribe(W=>{if(W.dismiss){C(X=>X.map(Z=>Z.id===W.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{nx.flushSync(()=>{C(X=>{let Z=X.findIndex(ve=>ve.id===W.id);return Z!==-1?[...X.slice(0,Z),{...X[Z],...W},...X.slice(Z+1)]:[W,...X]})})})}),[]),T.useEffect(()=>{if(d!=="system"){z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:X})=>{z(X?"dark":"light")})}catch{W.addListener(({matches:Z})=>{try{z(Z?"dark":"light")}catch(ve){console.error(ve)}})}},[d]),T.useEffect(()=>{k.length<=1&&$(!1)},[k]),T.useEffect(()=>{let W=X=>{var Z,ve;s.every(ze=>X[ze]||X.code===ze)&&($(!0),(Z=V.current)==null||Z.focus()),X.code==="Escape"&&(document.activeElement===V.current||(ve=V.current)!=null&&ve.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[s]),T.useEffect(()=>{if(V.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[V.current]),T.createElement("section",{ref:e,"aria-label":`${_} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((W,X)=>{var Z;let[ve,ze]=W.split("-");return k.length?T.createElement("ol",{key:W,dir:x==="auto"?Jg():x,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":I,"data-y-position":ve,"data-lifted":D&&k.length>1&&!o,"data-x-position":ze,style:{"--front-toast-height":`${((Z=O[0])==null?void 0:Z.height)||0}px`,"--width":`${_2}px`,"--gap":`${g}px`,...m,...T2(l,c)},onBlur:ye=>{L.current&&!ye.currentTarget.contains(ye.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=ye.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{U||$(!1)},onDragEnd:()=>$(!1),onPointerDown:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},k.filter(ye=>!ye.position&&X===0||ye.position===W).map((ye,lr)=>{var xn,q;return T.createElement(j2,{key:ye.id,icons:y,index:lr,toast:ye,defaultRichColors:f,duration:(xn=v==null?void 0:v.duration)!=null?xn:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:b,closeButton:(q=v==null?void 0:v.closeButton)!=null?q:i,interacting:U,position:W,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:Y,toasts:k.filter(Q=>Q.position==ye.position),heights:O.filter(Q=>Q.position==ye.position),setHeights:P,expandByDefault:o,gap:g,loadingIcon:w,exp
vendor: 4,216 bytes, line 267
267anded:D,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const N2=({...t})=>{const{theme:e="system"}=n2();return u.jsx(P2,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var R2=jh[" useId ".trim().toString()]||(()=>{}),A2=0;function wo(t){const[e,n]=p.useState(R2());return Xn(()=>{t||n(r=>r??String(A2++))},[t]),t||(e?`radix-${e}`:"")}const O2=["top","right","bottom","left"],Kr=Math.min,jt=Math.max,bc=Math.round,pl=Math.floor,An=t=>({x:t,y:t}),$2={left:"right",right:"left",bottom:"top",top:"bottom"},I2={start:"end",end:"start"};function Of(t,e,n){return jt(t,Kr(e,n))}function er(t,e){return typeof t=="function"?t(e):t}function tr(t){return t.split("-")[0]}function si(t){return t.split("-")[1]}function jp(t){return t==="x"?"y":"x"}function Tp(t){return t==="y"?"height":"width"}const L2=new Set(["top","bottom"]);function Pn(t){return L2.has(tr(t))?"y":"x"}function Pp(t){return jp(Pn(t))}function D2(t,e,n){n===void 0&&(n=!1);const r=si(t),s=Pp(t),o=Tp(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=_c(i)),[i,_c(i)]}function M2(t){const e=_c(t);return[$f(t),e,$f(e)]}function $f(t){return t.replace(/start|end/g,e=>I2[e])}const Xg=["left","right"],ev=["right","left"],F2=["top","bottom"],z2=["bottom","top"];function U2(t,e,n){switch(t){case"top":case"bottom":return n?e?ev:Xg:e?Xg:ev;case"left":case"right":return e?F2:z2;default:return[]}}function B2(t,e,n,r){const s=si(t);let o=U2(tr(t),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),e&&(o=o.concat(o.map($f)))),o}function _c(t){return t.replace(/left|right|bottom|top/g,e=>$2[e])}function V2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vx(t){return typeof t!="number"?V2(t):{top:t,right:t,bottom:t,left:t}}function Sc(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function tv(t,e,n){let{reference:r,floating:s}=t;const o=Pn(e),i=Pp(e),a=Tp(i),l=tr(e),c=o==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(si(e)){case"start":m[i]-=h*(n&&c?-1:1);break;case"end":m[i]+=h*(n&&c?-1:1);break}return m}const H2=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:f}=tv(c,r,l),h=r,m={},b=0;for(let v=0;v<a.length;v++){const{name:x,fn:g}=a[v],{x:w,y,data:_,reset:S}=await g({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:c,platform:i,elements:{reference:t,floating:e}});d=w??d,f=y??f,m={...m,[x]:{...m[x],..._}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:d,y:f}=tv(c,h,l)),v=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:m}};async function fa(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=er(e,t),b=Vx(m),x=a[h?f==="floating"?"reference":"floating":f],g=Sc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(
vendor: 15,940 bytes, line 267
267o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Sc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:l}):w);return{top:(g.top-S.top+b.top)/_.y,bottom:(S.bottom-g.bottom+b.bottom)/_.y,left:(g.left-S.left+b.left)/_.x,right:(S.right-g.right+b.right)/_.x}}const W2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=er(t,e)||{};if(c==null)return{};const f=Vx(d),h={x:n,y:r},m=Pp(s),b=Tp(m),v=await i.getDimensions(c),x=m==="y",g=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",_=o.reference[b]+o.reference[m]-h[m]-o.floating[b],S=h[m]-o.reference[m],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let C=k?k[y]:0;(!C||!await(i.isElement==null?void 0:i.isElement(k)))&&(C=a.floating[y]||o.floating[b]);const E=_/2-S/2,O=C/2-v[b]/2-1,P=Kr(f[g],O),D=Kr(f[w],O),$=P,U=C-v[b]-D,A=C/2-v[b]/2+E,I=Of($,A,U),z=!l.arrow&&si(s)!=null&&A!==I&&o.reference[b]/2-(A<$?P:D)-v[b]/2<0,V=z?A<$?A-$:A-U:0;return{[m]:h[m]+V,data:{[m]:I,centerOffset:A-I-V,...z&&{alignmentOffset:V}},reset:z}}}),q2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...x}=er(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=tr(s),w=Pn(a),y=tr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(y||!v?[_c(a)]:M2(a)),k=b!=="none";!h&&k&&S.push(...B2(a,v,b,_));const C=[a,...S],E=await fa(e,x),O=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&O.push(E[g]),f){const A=D2(s,i,_);O.push(E[A[0]],E[A[1]])}if(P=[...P,{placement:s,overflows:O}],!O.every(A=>A<=0)){var D,$;const A=(((D=o.flip)==null?void 0:D.index)||0)+1,I=C[A];if(I&&(!(f==="alignment"?w!==Pn(I):!1)||P.every(j=>j.overflows[0]>0&&Pn(j.placement)===w)))return{data:{index:A,overflows:P},reset:{placement:I}};let z=($=P.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:$.placement;if(!z)switch(m){case"bestFit":{var U;const V=(U=P.filter(j=>{if(k){const R=Pn(j.placement);return R===w||R==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((j,R)=>j[1]-R[1])[0])==null?void 0:U[0];V&&(z=V);break}case"initialPlacement":z=a;break}if(s!==z)return{reset:{placement:z}}}return{}}}};function nv(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function rv(t){return O2.some(e=>t[e]>=0)}const K2=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=er(t,e);switch(r){case"referenceHidden":{const o=await fa(e,{...s,elementContext:"reference"}),i=nv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:rv(i)}}}case"escaped":{const o=await fa(e,{...s,altBoundary:!0}),i=nv(o,n.floating);return{data:{escapedOffsets:i,escaped:rv(i)}}}default:return{}}}}},Hx=new Set(["left","top"]);async function G2(t,e){const{placement:n,platform:r,elements:s}=t,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=tr(n),a=si(n),l=Pn(n)==="y",c=Hx.has(i)?-1:1,d=o&&l?-1:1,f=er(e,t);let{mainAxis:h,crossAxis:m,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(m=a==="end"?b*-1:b),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Y2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=e,l=await G2(e,t);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},Z2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:g,y:w}=x;return{x:g,y:w}}},...l}=er(t,e),c={x:n,y:r},d=await fa(e,l),f=Pn(tr(s)),h=jp(f);let m=c[h],b=c[f];if(o){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",w=m+d[x],y=m-d[g];m=Of(w,m,y)}if(i){const x=f==="y"?"top":"left",g=f==="y"?"bottom":"right",w=b+d[x],y=b-d[g];b=Of(w,b,y)}const v=a.fn({...e,[h]:m,[f]:b});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:o,[f]:i}}}}}},Q2=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=er(t,e),d={x:n,y:r},f=Pn(s),h=jp(f);let m=d[h],b=d[f];const v=er(a,e),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=h==="y"?"height":"width",_=o.reference[h]-o.floating[y]+x.mainAxis,S=o.reference[h]+o.reference[y]-x.mainAxis;m<_?m=_:m>S&&(m=S)}if(c){var g,w;const y=h==="y"?"width":"height",_=Hx.has(tr(s)),S=o.reference[f]-o.floating[y]+(_&&((g=i.offset)==null?void 0:g[f])||0)+(_?0:x.crossAxis),k=o.reference[f]+o.reference[y]+(_?0:((w=i.offset)==null?void 0:w[f])||0)-(_?x.crossAxis:0);b<S?b=S:b>k&&(b=k)}return{[h]:m,[f]:b}}}},J2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:o,platform:i,elements:a}=e,{apply:l=()=>{},...c}=er(t,e),d=await fa(e,c),f=tr(s),h=si(s),m=Pn(s)==="y",{width:b,height:v}=o.floating;let x,g;f==="top"||f==="bottom"?(x=f,g=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=f,x=h==="end"?"top":"bottom");const w=v-d.top-d.bottom,y=b-d.left-d.right,_=Kr(v-d[x],w),S=Kr(b-d[g],y),k=!e.middlewareData.shift;let C=_,E=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(E=y),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(C=w),k&&!h){const P=jt(d.left,0),D=jt(d.right,0),$=jt(d.top,0),U=jt(d.bottom,0);m?E=b-2*(P!==0||D!==0?P+D:jt(d.left,d.right)):C=v-2*($!==0||U!==0?$+U:jt(d.top,d.bottom))}await l({...e,availableWidth:E,availableHeight:C});const O=await i.getDimensions(a.floating);return b!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function nu(){return typeof window<"u"}function oi(t){return Wx(t)?(t.nodeName||"").toLowerCase():"#document"}function Nt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Dn(t){var e;return(e=(Wx(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Wx(t){return nu()?t instanceof Node||t instanceof Nt(t).Node:!1}function gn(t){return nu()?t instanceof Element||t instanceof Nt(t).Element:!1}function $n(t){return nu()?t instanceof HTMLElement||t instanceof Nt(t).HTMLElement:!1}function sv(t){return!nu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Nt(t).ShadowRoot}const X2=new Set(["inline","contents"]);function Oa(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=vn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!X2.has(s)}const eP=new Set(["table","td","th"]);function tP(t){return eP.has(oi(t))}const nP=[":popover-open",":modal"];function ru(t){return nP.some(e=>{try{return t.matches(e)}catch{return!1}})}const rP=["transform","translate","scale","rotate","perspective"],sP=["transform","translate","scale","rotate","perspective","filter"],oP=["paint","layout","strict","content"];function Np(t){const e=Rp(),n=gn(t)?vn(t):t;return rP.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||sP.some(r=>(n.willChange||"").includes(r))||oP.some(r=>(n.contain||"").includes(r))}function iP(t){let e=Gr(t);for(;$n(e)&&!Uo(e);){if(Np(e))return e;if(ru(e))return null;e=Gr(e)}return null}function Rp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aP=new Set(["html","body","#document"]);function Uo(t){return aP.has(oi(t))}function vn(t){return Nt(t).getComputedStyle(t)}function su(t){return gn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gr(t){if(oi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sv(t)&&t.host||Dn(t);return sv(e)?e.host:e}function qx(t){const e=Gr(t);return Uo(e)?t.ownerDocument?t.ownerDocument.body:t.body:$n(e)&&Oa(e)?e:qx(e)}function ha(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=qx(t),o=s===((r=t.ownerDocument)==null?void 0:r.body),i=Nt(s);if(o){const a=If(i);return e.concat(i,i.visualViewport||[],Oa(s)?s:[],a&&n?ha(a):[])}return e.concat(s,ha(s,[],n))}function If(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kx(t){const e=vn(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=$n(t),o=s?t.offsetWidth:n,i=s?t.offsetHeight:r,a=bc(n)!==o||bc(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Ap(t){return gn(t)?t:t.contextElement}function xo(t){const e=Ap(t);if(!$n(e))return An(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:o}=Kx(e);let i=(o?bc(n.width):n.width)/r,a=(o?bc(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const lP=An(0);function Gx(t){const e=Nt(t);return!Rp()||!e.visualViewport?lP:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cP(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Nt(t)?!1:e}function Ns(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),o=Ap(t);let i=An(1);e&&(r?gn(r)&&(i=xo(r)):i=xo(t));const a=cP(o,n,r)?Gx(o):An(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(o){const h=Nt(o),m=r&&gn(r)?Nt(r):r;let b=h,v=If(b);for(;v&&r&&m!==b;){const x=xo(v),g=v.getBoundingClientRect(),w=vn(v),y=g.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,_=g.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,f*=x.y,l+=y,c+=_,b=Nt(v),v=If(b)}}return Sc({width:d,height:f,x:l,y:c})}function Op(t,e){const n=su(t).scrollLeft;return e?e.left+n:Ns(Dn(t)).left+n}function Yx(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:Op(t,r)),o=r.top+e.scrollTop;return{x:s,y:o}}function uP(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const o=s==="fixed",i=Dn(r),a=e?ru(e.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=An(1);const d=An(0),f=$n(r);if((f||!f&&!o)&&((oi(r)!=="body"||Oa(i))&&(l=su(r)),$n(r))){const m=Ns(r);c=xo(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=i&&!f&&!o?Yx(i,l,!0):An(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function dP(t){return Array.from(t.getClientRects())}function fP(t){const e=Dn(t),n=su(t),r=t.ownerDocument.body,s=jt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=jt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Op(t);const a=-n.scrollTop;return vn(r).direction==="rtl"&&(i+=jt(e.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function hP(t,e){const n=Nt(t),r=Dn(t),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const c=Rp();(!c||c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const pP=new Set(["absolute","fixed"]);function mP(t,e){const n=Ns(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,o=$n(t)?xo(t):An(1),i=t.clientWidth*o.x,a=t.clientHeight*o.y,l=s*o.x,c=r*o.y;return{width:i,height:a,x:l,y:c}}function ov(t,e,n){let r;if(e==="viewport")r=hP(t,n);else if(e==="document")r=fP(Dn(t));else if(gn(e))r=mP(e,n);else{const s=Gx(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Sc(r)}function Zx(t,e){const n=Gr(t);return n===e||!gn(n)||Uo(n)?!1:vn(n).position==="fixed"||Zx(n,e)}function gP(t,e){const n=e.get(t);if(n)return n;let r=ha(t,[],!1).filter(a=>gn(a)&&oi(a)!=="body"),s=null;const o=vn(t).position==="fixed";let i=o?Gr(t):t;for(;gn(i)&&!Uo(i);){const a=vn(i),l=Np(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&pP.has(s.position)||Oa(i)&&!l&&Zx(t,i))?r=r.filter(d=>d!==i):s=a,i=Gr(i)}return e.set(t,r),r}function vP(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const i=[...n==="clippingAncestors"?ru(e)?[]:gP(e,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const f=ov(e,d,s);return c.top=jt(f.top,c.top),c.right=Kr(f.right,c.right),c.bottom=Kr(f.bottom,c.bottom),c.left=jt(f.left,c.left),c},ov(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yP(t){const{width:e,height:n}=Kx(t);return{width:e,height:n}}function wP(t,e,n){const r=$n(e),s=Dn(e),o=n==="fixed",i=Ns(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=An(0);function c(){l.x=Op(s)}if(r||!r&&!o)if((oi(e)!=="body"||Oa(s))&&(a=su(e)),r){const m=Ns(e,!0,o,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else s&&c();o&&!r&&s&&c();const d=s&&!r&&!o?Yx(s,a):An(0),f=i.left+a.scrollLeft-l.x-d.x,h=i.top+a.scrollTop-l.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function id(t){return vn(t).position==="static"}function iv(t,e){if(!$n(t)||vn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Dn(t)===n&&(n=n.ownerDocument.body),n}function Qx(t,e){const n=Nt(t);if(ru(t))return n;if(!$n(t)){let s=Gr(t);for(;s&&!Uo(s);){if(gn(s)&&!id(s))return s;s=Gr(s)}return n}let r=iv(t,e);for(;r&&tP(r)&&id(r);)r=iv(r,e);return r&&Uo(r)&&id(r)&&!Np(r)?n:r||iP(t)||n}const xP=async function(t){const e=this.getOffsetParent||Qx,n=this.getDimensions,r=await n(t.floating);return{reference:wP(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bP(t){return vn(t).direction==="rtl"}const _P={convertOffsetParentRelativeRectToViewportRelativeRect:uP,getDocumentElement:Dn,getClippingRect:vP,getOffsetParent:Qx,getElementRects:xP,getClientRects:dP,getDimensions:yP,getScale:xo,isElement:gn,isRTL:bP};function Jx(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function SP(t,e){let n=null,r;const s=Dn(t);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=t.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(a||e(),!h||!m)return;const b=pl(f),v=pl(s.clientWidth-(d+h)),x=pl(s.clientHeight-(f+m)),g=pl(d),y={rootMargin:-b+"px "+-v+"px "+-x+"px "+-g+"px",threshold:jt(0,Kr(1,l))||1};let _=!0;function S(k){const C=k[0].intersectionRatio;if(C!==l){if(!_)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!Jx(c,t.getBoundingClientRect())&&i(),_=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(t)}return i(!0),o}function kP(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ap(t),d=s||o?[...c?ha(c):[],...ha(e)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=c&&a?SP(c,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(g=>{let[w]=g;w&&w.target===c&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(e)})),n()}),c&&!l&&m.observe(c),m.observe(e));let b,v=l?Ns(t):null;l&&x();function x(){const g=Ns(t);v&&!Jx(v,g)&&n(),v=g,b=requestAnimationFrame(x)}return n(),()=>{var g;d.forEach(w=>{s&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),f==null||f(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(b)}}const EP=Y2,CP=Z2,jP=q2,TP=J2,PP=K2,av=W2,NP=Q2,RP=(t,e,n)=>{const r=new Map,s={platform:_P,...n},o={...s.platform,_c:r};return H2(t,e,{...s,platform:o})};var AP=typeof document<"u",OP=function(){},Hl=AP?p.useLayoutEffect:OP;function kc(t,e){if(t===e)return!0;
vendor: 12,092 bytes, line 267
267if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!kc(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&t.$$typeof)&&!kc(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Xx(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function lv(t,e){const n=Xx(t);return Math.round(e*n)/n}function ad(t){const e=p.useRef(t);return Hl(()=>{e.current=t}),e}function $P(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[d,f]=p.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,m]=p.useState(r);kc(h,r)||m(r);const[b,v]=p.useState(null),[x,g]=p.useState(null),w=p.useCallback(j=>{j!==k.current&&(k.current=j,v(j))},[]),y=p.useCallback(j=>{j!==C.current&&(C.current=j,g(j))},[]),_=o||b,S=i||x,k=p.useRef(null),C=p.useRef(null),E=p.useRef(d),O=l!=null,P=ad(l),D=ad(s),$=ad(c),U=p.useCallback(()=>{if(!k.current||!C.current)return;const j={placement:e,strategy:n,middleware:h};D.current&&(j.platform=D.current),RP(k.current,C.current,j).then(R=>{const L={...R,isPositioned:$.current!==!1};A.current&&!kc(E.current,L)&&(E.current=L,Ta.flushSync(()=>{f(L)}))})},[h,e,n,D,$]);Hl(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[c]);const A=p.useRef(!1);Hl(()=>(A.current=!0,()=>{A.current=!1}),[]),Hl(()=>{if(_&&(k.current=_),S&&(C.current=S),_&&S){if(P.current)return P.current(_,S,U);U()}},[_,S,U,P,O]);const I=p.useMemo(()=>({reference:k,floating:C,setReference:w,setFloating:y}),[w,y]),z=p.useMemo(()=>({reference:_,floating:S}),[_,S]),V=p.useMemo(()=>{const j={position:n,left:0,top:0};if(!z.floating)return j;const R=lv(z.floating,d.x),L=lv(z.floating,d.y);return a?{...j,transform:"translate("+R+"px, "+L+"px)",...Xx(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,a,z.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:U,refs:I,elements:z,floatingStyles:V}),[d,U,I,z,V])}const IP=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?av({element:r.current,padding:s}).fn(n):{}:r?av({element:r,padding:s}).fn(n):{}}}},LP=(t,e)=>({...EP(t),options:[t,e]}),DP=(t,e)=>({...CP(t),options:[t,e]}),MP=(t,e)=>({...NP(t),options:[t,e]}),FP=(t,e)=>({...jP(t),options:[t,e]}),zP=(t,e)=>({...TP(t),options:[t,e]}),UP=(t,e)=>({...PP(t),options:[t,e]}),BP=(t,e)=>({...IP(t),options:[t,e]});var VP="Arrow",eb=p.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...o}=t;return u.jsx(pe.svg,{...o,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});eb.displayName=VP;var HP=eb;function tb(t){const[e,n]=p.useState(void 0);return Xn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=t.offsetWidth,a=t.offsetHeight;n({width:i,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var $p="Popper",[nb,ou]=Ln($p),[WP,rb]=nb($p),sb=t=>{const{__scopePopper:e,children:n}=t,[r,s]=p.useState(null);return u.jsx(WP,{scope:e,anchor:r,onAnchorChange:s,children:n})};sb.displayName=$p;var ob="PopperAnchor",ib=p.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,o=rb(ob,n),i=p.useRef(null),a=je(e,i);return p.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsx(pe.div,{...s,ref:a})});ib.displayName=ob;var Ip="PopperContent",[qP,KP]=nb(Ip),ab=p.forwardRef((t,e)=>{var ye,lr,xn,q,Q,Se;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=t,x=rb(Ip,n),[g,w]=p.useState(null),y=je(e,at=>w(at)),[_,S]=p.useState(null),k=tb(_),C=(k==null?void 0:k.width)??0,E=(k==null?void 0:k.height)??0,O=r+(o!=="center"?"-"+o:""),P=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(c)?c:[c],$=D.length>0,U={padding:P,boundary:D.filter(YP),altBoundary:$},{refs:A,floatingStyles:I,placement:z,isPositioned:V,middlewareData:j}=$P({strategy:"fixed",placement:O,whileElementsMounted:(...at)=>kP(...at,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[LP({mainAxis:s+E,alignmentAxis:i}),l&&DP({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?MP():void 0,...U}),l&&FP({...U}),zP({...U,apply:({elements:at,rects:Ba,availableWidth:Eu,availableHeight:Va})=>{const{width:Cu,height:di}=Ba.reference,Ls=at.floating.style;Ls.setProperty("--radix-popper-available-width",`${Eu}px`),Ls.setProperty("--radix-popper-available-height",`${Va}px`),Ls.setProperty("--radix-popper-anchor-width",`${Cu}px`),Ls.setProperty("--radix-popper-anchor-height",`${di}px`)}}),_&&BP({element:_,padding:a}),ZP({arrowWidth:C,arrowHeight:E}),h&&UP({strategy:"referenceHidden",...U})]}),[R,L]=ub(z),Y=mn(b);Xn(()=>{V&&(Y==null||Y())},[V,Y]);const W=(ye=j.arrow)==null?void 0:ye.x,X=(lr=j.arrow)==null?void 0:lr.y,Z=((xn=j.arrow)==null?void 0:xn.centerOffset)!==0,[ve,ze]=p.useState();return Xn(()=>{g&&ze(window.getComputedStyle(g).zIndex)},[g]),u.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:V?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(q=j.transformOrigin)==null?void 0:q.x,(Q=j.transformOrigin)==null?void 0:Q.y].join(" "),...((Se=j.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(qP,{scope:n,placedSide:R,onArrowChange:S,arrowX:W,arrowY:X,shouldHideArrow:Z,children:u.jsx(pe.div,{"data-side":R,"data-align":L,...v,ref:y,style:{...v.style,animation:V?void 0:"none"}})})})});ab.displayName=Ip;var lb="PopperArrow",GP={top:"bottom",right:"left",bottom:"top",left:"right"},cb=p.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,o=KP(lb,r),i=GP[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(HP,{...s,ref:n,style:{...s.style,display:"block"}})})});cb.displayName=lb;function YP(t){return t!==null}var ZP=t=>({name:"transformOrigin",options:t,fn(e){var x,g,w;const{placement:n,rects:r,middlewareData:s}=e,i=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[c,d]=ub(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,m=(((w=s.arrow)==null?void 0:w.y)??0)+l/2;let b="",v="";return c==="bottom"?(b=i?f:`${h}px`,v=`${-l}px`):c==="top"?(b=i?f:`${h}px`,v=`${r.floating.height+l}px`):c==="right"?(b=`${-l}px`,v=i?f:`${m}px`):c==="left"&&(b=`${r.floating.width+l}px`,v=i?f:`${m}px`),{data:{x:b,y:v}}}});function ub(t){const[e,n="center"]=t.split("-");return[e,n]}var QP=sb,Lp=ib,db=ab,fb=cb,[iu,x8]=Ln("Tooltip",[ou]),Dp=ou(),hb="TooltipProvider",JP=700,cv="tooltip.open",[XP,pb]=iu(hb),mb=t=>{const{__scopeTooltip:e,delayDuration:n=JP,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=t,i=p.useRef(!0),a=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(XP,{scope:e,isOpenDelayedRef:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:p.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:o})};mb.displayName=hb;var gb="Tooltip",[b8,au]=iu(gb),Lf="TooltipTrigger",eN=p.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=au(Lf,n),o=pb(Lf,n),i=Dp(n),a=p.useRef(null),l=je(e,a,s.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(Lp,{asChild:!0,...i,children:u.jsx(pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:ee(t.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ee(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ee(t.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ee(t.onFocus,()=>{c.current||s.onOpen()}),onBlur:ee(t.onBlur,s.onClose),onClick:ee(t.onClick,s.onClose)})})});eN.displayName=Lf;var tN="TooltipPortal",[_8,nN]=iu(tN,{forceMount:void 0}),Bo="TooltipContent",vb=p.forwardRef((t,e)=>{const n=nN(Bo,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=t,i=au(Bo,t.__scopeTooltip);return u.jsx(sr,{present:r||i.open,children:i.disableHoverableContent?u.jsx(yb,{side:s,...o,ref:e}):u.jsx(rN,{side:s,...o,ref:e})})}),rN=p.forwardRef((t,e)=>{const n=au(Bo,t.__scopeTooltip),r=pb(Bo,t.__scopeTooltip),s=p.useRef(null),o=je(e,s),[i,a]=p.useState(null),{trigger:l,onClose:c}=n,d=s.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{a(null),f(!1)},[f]),m=p.useCallback((b,v)=>{const x=b.currentTarget,g={x:b.clientX,y:b.clientY},w=lN(g,x.getBoundingClientRect()),y=cN(g,w),_=uN(v.getBoundingClientRect()),S=fN([...y,..._]);a(S),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const b=x=>m(x,d),v=x=>m(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",v)}}},[l,d,m,h]),p.useEffect(()=>{if(i){const b=v=>{const x=v.target,g={x:v.clientX,y:v.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!dN(g,i);w?h():y&&(h(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,c,h]),u.jsx(yb,{...t,ref:o})}),[sN,oN]=iu(gb,{isInside:!1}),iN=ix("TooltipContent"),yb=p.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=t,l=au(Bo,n),c=Dp(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(cv,d),()=>document.removeEventListener(cv,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(Pa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(db,{"data-state":l.stateAttribute,...c,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(iN,{children:r}),u.jsx(sN,{scope:n,isInside:!0,children:u.jsx(xj,{id:l.contentId,role:"tooltip",children:s||r})})]})})});
267vb.displayName=Bo;var wb="TooltipArrow",aN=p.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Dp(n);return oN(wb,n).isInside?null:u.jsx(fb,{...s,...r,ref:e})});aN.displayName=wb;function lN(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cN(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function uN(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function dN(t,e){const{x:n,y:r}=t;let s=!1;for(let o=0,i=e.length-1;o<e.length;i=o++){const a=e[o],l=e[i],c=a.x,d=a.y,f=l.x,h=l.y;d>r!=h>r&&n<(f-c)*(r-d)/(h-d)+c&&(s=!s)}return s}function fN(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),hN(e)}function hN(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const o=e[e.length-1],i=e[e.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var pN=mb,xb=vb;const mN=pN,gN=p.forwardRef(({className:t,sideOffset:e=4,...n},r)=>u.jsx(xb,{ref:r,sideOffset:e,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));gN.displayName=xb.displayName;var lu=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(){}},cu=typeof window>"u"||"Deno"in globalThis;function tn(){}function vN(t,e){return typeof t=="function"?t(e):t}function yN(t){return typeof t=="number"&&t>=0&&t!==1/0}function wN(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Df(t,e){return typeof t=="function"?t(e):t}function xN(t,e){return typeof t=="function"?t(e):t}function uv(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=t;if(i){if(r){if(e.queryHash!==Mp(i,e.options))return!1}else if(!ma(e.queryKey,i))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||o&&!o(e))}function dv(t,e){const{exact:n,status:r,predicate:s,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(pa(e.options.mutationKey)!==pa(o))return!1}else if(!ma(e.options.mutationKey,o))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Mp(t,e){return((e==null?void 0:e.queryKeyHashFn)||pa)(t)}function pa(t){return JSON.stringify(t,(e,n)=>Mf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ma(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>ma(t[n],e[n])):!1}function bb(t,e){if(t===e)return t;const n=fv(t)&&fv(e);if(n||Mf(t)&&Mf(e)){const r=n?t:Object.keys(t),s=r.length,o=n?e:Object.keys(e),i=o.length,a=n?[]:{},l=new Set(r);let c=0;for(let d=0;d<i;d++){const f=n?d:o[d];(!n&&l.has(f)||n)&&t[f]===void 0&&e[f]===void 0?(a[f]=void 0,c++):(a[f]=bb(t[f],e[f]),a[f]===t[f]&&t[f]!==void 0&&c++)}return s===i&&c===s?t:a}return e}function fv(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Mf(t){if(!hv(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!hv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function hv(t){return Object.prototype.toString.call(t)==="[object Object]"}function bN(t){return new Promise(e=>{setTimeout(e,t)})}function _N(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?bb(t,e):e}function SN(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function kN(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Fp=Symbol();function _b(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Fp?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var gs,Er,Eo,Ly,EN=(Ly=class extends lu{constructor(){super();we(this,gs);we(this,Er);we(this,Eo);oe(this,Eo,e=>{if(!cu&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,Er)||this.setEventListener(N(this,Eo))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,Er))==null||e.call(this),oe(this,Er,void 0))}setEventListener(e){var n;oe(this,Eo,e),(n=N(this,Er))==null||n.call(this),oe(this,Er,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){N(this,gs)!==e&&(oe(this,gs,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,924 bytes, line 267
267this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof N(this,gs)=="boolean"?N(this,gs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},gs=new WeakMap,Er=new WeakMap,Eo=new WeakMap,Ly),Sb=new EN,Co,Cr,jo,Dy,CN=(Dy=class extends lu{constructor(){super();we(this,Co,!0);we(this,Cr);we(this,jo);oe(this,jo,e=>{if(!cu&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,Cr)||this.setEventListener(N(this,jo))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,Cr))==null||e.call(this),oe(this,Cr,void 0))}setEventListener(e){var n;oe(this,jo,e),(n=N(this,Cr))==null||n.call(this),oe(this,Cr,e(this.setOnline.bind(this)))}setOnline(e){N(this,Co)!==e&&(oe(this,Co,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return N(this,Co)}},Co=new WeakMap,Cr=new WeakMap,jo=new WeakMap,Dy),Ec=new CN;function jN(){let t,e;const n=new Promise((s,o)=>{t=s,e=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function TN(t){return Math.min(1e3*2**t,3e4)}function kb(t){return(t??"online")==="online"?Ec.isOnline():!0}var Eb=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function ld(t){return t instanceof Eb}function Cb(t){let e=!1,n=0,r=!1,s;const o=jN(),i=v=>{var x;r||(h(new Eb(v)),(x=t.abort)==null||x.call(t))},a=()=>{e=!0},l=()=>{e=!1},c=()=>Sb.isFocused()&&(t.networkMode==="always"||Ec.isOnline())&&t.canRun(),d=()=>kb(t.networkMode)&&t.canRun(),f=v=>{var x;r||(r=!0,(x=t.onSuccess)==null||x.call(t,v),s==null||s(),o.resolve(v))},h=v=>{var x;r||(r=!0,(x=t.onError)==null||x.call(t,v),s==null||s(),o.reject(v))},m=()=>new Promise(v=>{var x;s=g=>{(r||c())&&v(g)},(x=t.onPause)==null||x.call(t)}).then(()=>{var v;s=void 0,r||(v=t.onContinue)==null||v.call(t)}),b=()=>{if(r)return;let v;const x=n===0?t.initialPromise:void 0;try{v=x??t.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(f).catch(g=>{var k;if(r)return;const w=t.retry??(cu?0:3),y=t.retryDelay??TN,_=typeof y=="function"?y(n,g):y,S=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,g);if(e||!S){h(g);return}n++,(k=t.onFail)==null||k.call(t,n,g),bN(_).then(()=>c()?void 0:m()).then(()=>{e?h(g):b()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():m().then(b),o)}}var PN=t=>setTimeout(t,0);function NN(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=PN;const o=a=>{e?t.push(a):s(()=>{n(a)})},i=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var ft=NN(),vs,My,jb=(My=class{constructor(){we(this,vs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yN(this.gcTime)&&oe(this,vs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(cu?1/0:5*60*1e3))}clearGcTimeout(){N(this,vs)&&(clearTimeout(N(this,vs)),oe(this,vs,void 0))}},vs=new WeakMap,My),To,ys,Dt,ws,st,ba,xs,nn,zn,Fy,RN=(Fy=class extends jb{constructor(e){super();we(this,nn);we(this,To);we(this,ys);we(this,Dt);we(this,ws);we(this,st);we(this,ba);we(this,xs);oe(this,xs,!1),oe(this,ba,e.defaultOptions),this.setOptions(e.options),this.observers=[],oe(this,ws,e.client),oe(this,Dt,N(this,ws).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,oe(this,To,ON(this.options)),this.state=e.state??N(this,To),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=N(this,st))==null?void 0:e.promise}setOptions(e){this.options={...N(this,ba),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Dt).remove(this)}setData(e,n){const r=_N(this.state.data,e,this.options);return tt(this,nn,zn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){tt(this,nn,zn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=N(this,st))==null?void 0:r.promise;return(s=N(this,st))==null||s.cancel(e),n?n.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,To))}isActive(){return this.observers.some(e=>xN(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fp||this.state.dataUpdateCount+this.state.errorUpdate
267Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Df(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:!wN(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,st))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,st))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),N(this,Dt).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,st)&&(N(this,xs)?N(this,st).cancel({revert:!0}):N(this,st).cancelRetry()),this.scheduleGc()),N(this,Dt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||tt(this,nn,zn).call(this,{type:"invalidate"})}fetch(e,n){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,st))return N(this,st).continueRetry(),N(this,st).promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(oe(this,xs,!0),r.signal)})},o=()=>{const h=_b(this.options,n),b=(()=>{const v={client:N(this,ws),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return oe(this,xs,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,ws),state:this.state,fetchFn:o};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),oe(this,ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&tt(this,nn,zn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var m,b,v,x;ld(h)&&h.silent||tt(this,nn,zn).call(this,{type:"error",error:h}),ld(h)||((b=(m=N(this,Dt).config).onError)==null||b.call(m,h,this),(x=(v=N(this,Dt).config).onSettled)==null||x.call(v,this.state.data,h,this)),this.scheduleGc()};return oe(this,st,Cb({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,b,v,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){l(g);return}(b=(m=N(this,Dt).config).onSuccess)==null||b.call(m,h,this),(x=(v=N(this,Dt).config).onSettled)==null||x.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,m)=>{tt(this,nn,zn).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{tt(this,nn,zn).call(this,{type:"pause"})},onContinue:()=>{tt(this,nn,zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,st).start()}},To=new WeakMap,ys=new WeakMap,Dt=new WeakMap,ws=new WeakMap,st=new WeakMap,ba=new WeakMap,xs=new WeakMap,nn=new WeakSet,zn=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...AN(r.data,this.options),fetchMeta:e.meta??null};case"success":return oe(this,ys,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return ld(s)&&s.revert&&N(this,ys)?{...N(this,ys),fetchStatus:"idle"}
vendor: 10,615 bytes, line 267
267:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),ft.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,Dt).notify({query:this,type:"updated",action:e})})},Fy);function AN(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kb(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ON(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kn,zy,$N=(zy=class extends lu{constructor(e={}){super();we(this,kn);this.config=e,oe(this,kn,new Map)}build(e,n,r){const s=n.queryKey,o=n.queryHash??Mp(s,n);let i=this.get(o);return i||(i=new RN({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(i)),i}add(e){N(this,kn).has(e.queryHash)||(N(this,kn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=N(this,kn).get(e.queryHash);n&&(e.destroy(),n===e&&N(this,kn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ft.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return N(this,kn).get(e)}getAll(){return[...N(this,kn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>uv(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>uv(e,r)):n}notify(e){ft.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},kn=new WeakMap,zy),En,ut,bs,Cn,gr,Uy,IN=(Uy=class extends jb{constructor(e){super();we(this,Cn);we(this,En);we(this,ut);we(this,bs);this.mutationId=e.mutationId,oe(this,ut,e.mutationCache),oe(this,En,[]),this.state=e.state||LN(),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,En).includes(e)||(N(this,En).push(e),this.clearGcTimeout(),N(this,ut).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){oe(this,En,N(this,En).filter(n=>n!==e)),this.scheduleGc(),N(this,ut).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){N(this,En).length||(this.state.status==="pending"?this.scheduleGc():N(this,ut).remove(this))}continue(){var e;return((e=N(this,bs))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,a,l,c,d,f,h,m,b,v,x,g,w,y,_,S,k,C,E;const n=()=>{tt(this,Cn,gr).call(this,{type:"continue"})};oe(this,bs,Cb({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(O,P)=>{tt(this,Cn,gr).call(this,{type:"failed",failureCount:O,error:P})},onPause:()=>{tt(this,Cn,gr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,ut).canRun(this)}));const r=this.state.status==="pending",s=!N(this,bs).canStart();try{if(r)n();else{tt(this,Cn,gr).call(this,{type:"pending",variables:e,isPaused:s}),await((i=(o=N(this,ut).config).onMutate)==null?void 0:i.call(o,e,this));const P=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));P!==this.state.context&&tt(this,Cn,gr).call(this,{type:"pending",context:P,variables:e,isPaused:s})}const O=await N(this,bs).start();return await((d=(c=N(this,ut).config).onSuccess)==null?void 0:d.call(c,O,e,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,O,e,this.state.context)),await((b=(m=N(this,ut).config).onSettled)==null?void 0:b.call(m,O,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,O,null,e,this.state.context)),tt(this,Cn,gr).call(this,{type:"success",data:O}),O}catch(O){try{throw await((w=(g=N(this,ut).config).onError)==null?void 0:w.call(g,O,e,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,O,e,this.state.context)),await((k=(S=N(this,ut).config).onSettled)==null?void 0:k.call(S,void 0,O,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,O,e,this.state.context)),O}finally{tt(this,Cn,gr).call(this,{type:"error",error:O})}}finally{N(this,ut).runNext(this)}}},En=new WeakMap,ut=new WeakMap,bs=new WeakMap,Cn=new WeakSet,gr=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ft.batch(()=>{N(this,En).forEach(r=>{r.onMutationUpdate(e)}),N(this,ut).notify({mutation:this,type:"updated",action:e})})},Uy);function LN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wn,rn,_a,By,DN=(By=class extends lu{constructor(e={}){super();we(this,Wn);we(this,rn);we(this,_a);this.config=e,oe(this,Wn,new Set),oe(this,rn,new Map),oe(this,_a,0)}build(e,n,r){const s=new IN({mutationCache:this,mutationId:++Wa(this,_a)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){N(this,Wn).add(e);const n=ml(e);if(typeof n=="string"){const r=N(this,rn).get(n);r?r.push(e):N(this,rn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(N(this,Wn).delete(e)){const n=ml(e);if(typeof n=="string"){const r=N(this,rn).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&N(this,rn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=ml(e);if(typeof n=="string"){const r=N(this,rn).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=ml(e);if(typeof n=="string"){const s=(r=N(this,rn).get(n))==null?void 0:r.find(o=>o!==e&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{N(this,Wn).forEach(e=>{this.notify({type:"removed",mutation:e})}),N(this,Wn).clear(),N(this,rn).clear()})}getAll(){return Array.from(N(this,Wn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>dv(n,r))}findAll(e={}){return this.getAll().filter(n=>dv(e,n))}notify(e){ft.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return ft.batch(()=>Promise.all(e.map(n=>n.continue().catch(tn))))}},Wn=new WeakMap,rn=new WeakMap,_a=new WeakMap,By);function ml(t){var e;return(e=t.options.scope)==null?void 0:e.id}function pv(t){return{onFetch:(e,n)=>{var d,f,h,m,b;const r=e.options,s=(h=(f=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,o=((m=e.state.data)==null?void 0:m.pages)||[],i=((b=e.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?v=!0:e.signal.addEventListener("abort",()=>{v=!0}),e.signal)})},g=_b(e.options,e.fetchOptions),w=async(y,_,S)=>{if(v)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const C=(()=>{const D={client:e.client,queryKey:e.queryKey,pageParam:_,direction:S?"backward":"forward",meta:e.options.meta};return x(D),D})(),E=await g(C),{maxPages:O}=e.options,P=S?kN:SN;return{pages:P(y.pages,E,O),pageParams:P(y.pageParams,_,O)}};if(s&&o.length){const y=s==="backward",_=y?MN:mv,S={pages:o,pageParams:i},k=_(r,S);a=await w(S,k,y)}else{const y=t??o.length;do{const _=l===0?i[0]??r.initialPageParam:mv(r,a);if(l>0&&_==null)break;a=await w(a,_),l++}while(l<y)}return a};e.options.persister?e.fetchFn=()=>{var v,x;return(x=(v=e.options).persister)==null?void 0:x.call(v,c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=c}}}function mv(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function MN(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Le,jr,Tr,Po,No,Pr,Ro,Ao,Vy,FN=(Vy=class{constructor(t={}){we(this,Le);we(this,jr);we(this,Tr);we(this,Po);we(this,No);we(this,Pr);we(this,Ro);we(this,Ao);oe(this,Le,t.queryCache||new $N),oe(this,jr,t.mutationCache||new DN),oe(this,Tr,t.defaultOptions||{}),oe(this,Po,new Map),oe(this,No,new Map),oe(this,Pr,0)}mount(){Wa(this,Pr)._++,N(this,Pr)===1&&(oe(this,Ro,Sb.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,Le).onFocus())})),oe(this,Ao,Ec.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,Le).onOnline())})))}unmount(){var t,e;Wa(this,Pr)._--,N(this,Pr)===0&&((t=N(this,Ro))==null||t.call(this),oe(this,Ro,void 0),(e=N(this,Ao))==null||e.call(this),oe(this,Ao,void 0))}isFetching(t){return N(this,Le).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return N(this,jr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,Le).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=N(this,Le).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Df(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return N(this,Le).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=N(this,Le).get(r.queryHash),o=s==null?void 0:s.state.data,i=vN(e,o);if(i!==void 0)return N(this,Le).build(this,r).setData(i,{...n,manual:!0})}
267setQueriesData(t,e,n){return ft.batch(()=>N(this,Le).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,Le).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=N(this,Le);ft.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=N(this,Le);return ft.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=ft.batch(()=>N(this,Le).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(tn).catch(tn)}invalidateQueries(t,e={}){return ft.batch(()=>(N(this,Le).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},r=ft.batch(()=>N(this,Le).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(tn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(tn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=N(this,Le).build(this,e);return n.isStaleByTime(Df(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(tn).catch(tn)}fetchInfiniteQuery(t){return t.behavior=pv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(tn).catch(tn)}ensureInfiniteQueryData(t){return t.behavior=pv(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ec.isOnline()?N(this,jr).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Le)}getMutationCache(){return N(this,jr)}getDefaultOptions(){return N(this,Tr)}setDefaultOptions(t){oe(this,Tr,t)}setQueryDefaults(t,e){N(this,Po).set(pa(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...N(this,Po).values()],n={};return e.forEach(r=>{ma(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){N(this,No).set(pa(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...N(this,No).values()],n={};return e.forEach(r=>{ma(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...N(this,Tr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Mp(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===Fp&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...N(this,Tr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){N(this,Le).clear(),N(this,jr).clear()}},Le=new WeakMap,jr=new WeakMap,Tr=new WeakMap,Po=new WeakMap,No=new WeakMap,Pr=new WeakMap,Ro=new WeakMap,Ao=new WeakMap,Vy),zN=p.createContext(void 0),UN=({client:t,children:e})=>(p.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),u.jsx(zN.Provider,{value:t,children:e}));/** 268 * @remix-run/router v1.23.0 269 * 270 * Copyright (c) Remix Software Inc. 271 * 272 * This source code is licensed under the MIT license found in the 273 * LICENSE.md file in the root directory of this source tree. 274 * 275 * @license MIT 276 */function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ga.apply(this,arguments)}var Ar;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Ar||(Ar={}));const gv="popstate";function BN(t){t===void 0&&(t={});function e(r,s){let{pathname:o,search:i,hash:a}=r.location;return Ff("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Cc(s)}return HN(e,n,null,t)}function Be(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Tb(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function VN(){return Math.random().toString(36).substr(2,8)}function vv(t,e){return{usr:t.state,key:t.key,idx:e}}function Ff(t,e,n,r){return n===void 0&&(n=null),ga({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ii(e):e,{state:n,key:e&&e.key||r||VN()})}function Cc(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ii(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function HN(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Ar.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(ga({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=Ar.Pop;let x=d(),g=x==null?null:x-c;c=x,l&&l({action:a,location:v.location,delta:g})}function h(x,g){a=Ar.Push;let w=Ff(v.location,x,g);c=d()+1;let y=vv(w,c),_=v.createHref(w);try{i.pushState(y,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}o&&l&&l({action:a,location:v.location,delta:1})}function m(x,g){a=Ar.Replace;let w=Ff(v.location,x,g);c=d();let y=vv(w,c),_=v.createHref(w);i.replaceState(y,"",_),o&&l&&l({action:a,location:v.location,delta:0})}function b(x){let g=s.location.origin!=="null"?s.location.origin:s.location.href,w=typeof x=="str
276ing"?x:Cc(x);return w=w.replace(/ $/,"%20"),Be(g,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,g)}let v={get action(){return a},get location(){return t(s,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(gv,f),l=x,()=>{s.removeEventListener(gv,f),l=null}},createHref(x){return e(s,x)},createURL:b,encodeLocation(x){let g=b(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:m,go(x){return i.go(x)}};return v}var yv;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(yv||(yv={}));function WN(t,e,n){return n===void 0&&(n="/"),qN(t,e,n,!1)}function qN(t,e,n,r){let s=typeof e=="string"?ii(e):e,o=zp(s.pathname||"/",n);if(o==null)return null;let i=Pb(t);KN(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=sR(o);a=nR(i[l],c,r)}return a}function Pb(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Be(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Vr([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Be(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Pb(o.children,e,d,c)),!(o.path==null&&!o.index)&&e.push({path:c,score:eR(c,o.index),routesMeta:d})};return t.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of Nb(o.path))s(o,i,l)}),e}function Nb(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=Nb(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function KN(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:tR(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const GN=/^:[\w-]+$/,YN=3,ZN=2,QN=1,JN=10,XN=-2,wv=t=>t==="*";function eR(t,e){let n=t.split("/"),r=n.length;return n.some(wv)&&(r+=XN),e&&(r+=ZN),n.filter(s=>!wv(s)).reduce((s,o)=>s+(GN.test(o)?YN:o===""?QN:JN),r)}function tR(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function nR(t,e,n){let{routesMeta:r}=t,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=o==="/"?e:e.slice(o.length)||"/",f=xv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=xv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 6,961 bytes, lines 276-285
276Object.assign(s,f.params),i.push({params:s,pathname:Vr([o,f.pathname]),pathnameBase:lR(Vr([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=Vr([o,f.pathnameBase]))}return i}function xv(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=rR(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let v=a[f]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const b=a[f];return m&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:t}}function rR(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Tb(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 r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function sR(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Tb(!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 zp(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function oR(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?ii(t):t;return{pathname:n?n.startsWith("/")?n:iR(n,e):e,search:cR(r),hash:uR(s)}}function iR(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function cd(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. 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 aR(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Up(t,e){let n=aR(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Bp(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=ii(t):(s=ga({},t),Be(!s.pathname||!s.pathname.includes("?"),cd("?","pathname","search",s)),Be(!s.pathname||!s.pathname.includes("#"),cd("#","pathname","hash",s)),Be(!s.search||!s.search.includes("#"),cd("#","search","hash",s)));let o=t===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let f=e.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?e[f]:"/"}let l=oR(s,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Vr=t=>t.join("/").replace(/\/\/+/g,"/"),lR=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cR=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function dR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Rb=["post","put","patch","delete"];new Set(Rb);const fR=["get",...Rb];new Set(fR);/** 277 * React Router v6.30.1 278 * 279 * Copyright (c) Remix Software Inc. 280 * 281 * This source code is licensed under the MIT license found in the 282 * LICENSE.md file in the root directory of this source tree. 283 * 284 * @license MIT 285 */function va(){return va=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},va.apply(this,arguments)}const Vp=p.createContext(null),hR=p.createContext(null),es=p.createContext(null),uu=p.createContext(null),or=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Ab=p.createContext(null);function pR(t,e){let{relative:n}=e===void 0?{}:e;ai()||Be(!1);let{basename:r,navigator:s}=p.useContext(es),{hash:o,pathname:i,search:a}=$b(t,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Vr([r,i])),s.createHref({pathname:l,search:a,hash:o})}function ai(){return p.useContext(uu)!=null}function yn(){return ai()||Be(!1),p.useContext(uu).location}function Ob(t){p.useContext(es).static||p.useLayoutEffect(t)}function ir(){let{isDataRoute:t}=p.useContext(or);return t?PR():mR()}function mR(){ai()||Be(!1);let t=p.useContext(Vp),{basename:e,future:n,navigator:r}=p.useContext(es),{matches:s}=p.useContext(or),{pathname:o}=yn(),i=JSON.stringify(Up(s,n.v7_relativeSplatPath)),a=p.useRef(!1);return Ob(()=>{a.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Bp(c,JSON.parse(i),o,d.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Vr([e,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[e,r,i,o,t])}const gR=p.createContext(null);function vR(t){let e=p.useContext(or).outlet;return e&&p.createElement(gR.Provider,{value:t},e)}function $b(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.useContext(es),{matches:s}=p.useContext(or),{pathname:o}=yn(),i=JSON.stringify(Up(s,r.v7_relativeSplatPath));return p.useMemo(()=>Bp(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}function yR(t,e){return wR(t,e)}function wR(t,e,n,r){ai()||Be(!1);let{navigator:s}=p.useContext(es),{matches:o}=p.useContext(or),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=yn(),d;if(e){var f;let x=typeof e=="string"?ii(e):e;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||Be(!1),d=x}else d=c;let h=d.pathname||"/",m=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=WN(t,{pathname:m}),v=kR(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Vr([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Vr([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return e&&v?p.createElement(uu.Provider,{value:{location:va({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ar.Pop}},v):v}function xR(){let t=TR(),e=dR(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application
285Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},e),n?p.createElement("pre",{style:s},n):null,null)}const bR=p.createElement(xR,null);class _R extends p.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?p.createElement(or.Provider,{value:this.props.routeContext},p.createElement(Ab.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function SR(t){let{routeContext:e,match:n,children:r}=t,s=p.useContext(Vp);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(or.Provider,{value:e},r)}function kR(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Be(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:m}=n,b=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||b){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,h)=>{let m,b=!1,v=null,x=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||bR,l&&(c<0&&h===0?(b=!0,x=null):c===h&&(b=!0,x=f.route.hydrateFallbackElement||null)));let g=e.concat(i.slice(0,h+1)),w=()=>{let y;return m?y=v:b?y=x:f.route.Component?y=p.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,p.createElement(SR,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(_R,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:w(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):w()},null)}var Ib=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Ib||{}),jc=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}(jc||{});function ER(t){let e=p.useContext(Vp);return e||Be(!1),e}function CR(t){let e=p.useContext(hR);return e||Be(!1),e}function jR(t){let e=p.useContext(or);return e||Be(!1),e}function Lb(t){let e=jR(),n=e.matches[e.matches.length-1];return n.route.id||Be(!1),n.route.id}function TR(){var t;let e=p.useContext(Ab),n=CR(jc.UseRouteError),r=Lb(jc.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function PR(){let{router:t}=ER(Ib.UseNavigateStable),e=Lb(jc.UseNavigateStable),n=p.useRef(!1);return Ob(()=>{n.current=!0}),p.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,va({fromRouteId:e},o)))},[t,e])}function NR(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function RR(t){let{to:e,replace:n,state:r,relative:s}=t;ai()||Be(!1);let{future:o,static:i}=p.useContext(es),{matches:a}=p.useContext(or),{pathname:l}=yn(),c=ir(),d=Bp(e,Up(a,o.v7_relativeSplatPath),l,s==="path"),f=JSON.stringify(d);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function AR(t){return vR(t.context)}function te(t){Be(!1)}function OR(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Ar.Pop,navigator:o,static:i=!1,future:a}=t;ai()&&Be(!1);let l=e.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:o,static:i,future:va({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=ii(r));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:b="default"}=r,v=p.useMemo(()=>{let x=zp(d,l);return x==null?null:{location:{pathname:x,search:f,hash:h,state:m,ke
285y:b},navigationType:s}},[l,d,f,h,m,b,s]);return v==null?null:p.createElement(es.Provider,{value:c},p.createElement(uu.Provider,{children:n,value:v}))}function $R(t){let{children:e,location:n}=t;return yR(zf(e),n)}new Promise(()=>{});function zf(t,e){e===void 0&&(e=[]);let n=[];return p.Children.forEach(t,(r,s)=>{if(!p.isValidElement(r))return;let o=[...e,s];if(r.type===p.Fragment){n.push.apply(n,zf(r.props.children,o));return}r.type!==te&&Be(!1),!r.props.index||!r.props.children||Be(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=zf(r.props.children,o)),n.push(i)}),n}/** 286 * React Router DOM v6.30.1 287 * 288 * Copyright (c) Remix Software Inc. 289 * 290 * This source code is licensed under the MIT license found in the 291 * LICENSE.md file in the root directory of this source tree. 292 * 293 * @license MIT 294 */function Uf(){return Uf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Uf.apply(this,arguments)}function IR(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function LR(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function DR(t,e){return t.button===0&&(!e||e==="_self")&&!LR(t)}function Bf(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 r=t[n];return e.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function MR(t,e){let n=Bf(t);return e&&e.forEach((r,s)=>{n.has(s)||e.getAll(s).forEach(o=>{n.append(s,o)})}),n}const FR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],zR="6";try{window.__reactRouterVersion=zR}catch{}const UR="startTransition",bv=jh[UR];function BR(t){let{basename:e,children:n,future:r,window:s}=t,o=p.useRef();o.current==null&&(o.current=BN({window:s,v5Compat:!0}));let i=o.current,[a,l]=p.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=p.useCallback(f=>{c&&bv?bv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>i.listen(d),[i,d]),p.useEffect(()=>NR(r),[r]),p.createElement(OR,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const VR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Or=p.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}=e,h=IR(e,FR),{basename:m}=p.useContext(es),b,v=!1;if(typeof c=="string"&&HR.test(c)&&(b=c,VR))try{let y=new URL(window.location.href),_=c.startsWith("//")?new URL(y.protocol+c):new URL(c),S=zp(_.pathname,m);_.origin===y.origin&&S!=null?c=S+_.search+_.hash:v=!0}catch{}let x=pR(c,{relative:s}),g=WR(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function w(y){r&&r(y),y.defaultPrevented||g(y)}return p.createElement("a",Uf({},h,{href:b||x,onClick:v||o?r:w,ref:n,target:l}))});var _v;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(_v||(_v={}));var Sv;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Sv||(Sv={}));function WR(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=e===void 0?{}:e,l=ir(),c=yn(),d=$b(t,{relative:i});return p.useCallback(f=>{if(DR(f,n)){f.preventDefault();let h=r!==void 0?r:Cc(c)===Cc(d);l(t,{replace:h,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,d,r,s,n,t,o,i,a])}function qR(t){let e=p.useRef(Bf(t)),n=p.useRef(!1),r=yn(),s=p.useMemo(()=>MR(r.search,n.current?null:e.current),[r.search]),o=ir(),i=p.useCallback((a,l)=>{const c=Bf(typeof a=="function"?a(s):a);n.current=!0,o("?"+c,l)},[o,s]);return[s,i]}var KR=typeof Element<"u",GR=typeof Map=="function",YR=typeof Set=="function",ZR=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Wl(t,e){if(t===e)return!0;
294if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,s;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Wl(t[r],e[r]))return!1;return!0}var o;if(GR&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!Wl(r.value[1],e.get(r.value[0])))return!1;return!0}if(YR&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(ZR&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[r]))return!1;if(KR&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&t.$$typeof)&&!Wl(t[s[r]],e[s[r]]))return!1;return!0}return t!==t&&e!==e}var QR=function(e,n){try{return Wl(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const JR=Qo(QR);var XR=function(t,e,n,r,s,o,i,a){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,o,i,a],d=0;l=new Error(e.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},eA=XR;const kv=Qo(eA);var tA=function(e,n,r,s){var o=r?r.call(s,e,n):void 0;if(o!==void 0)return!!o;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var i=Object.keys(e),a=Object.keys(n);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<i.length;c++){var d=i[c];if(!l(d))return!1;var f=e[d],h=n[d];if(o=r?r.call(s,f,h,d):void 0,o===!1||o===void 0&&f!==h)return!1}return!0};const nA=Qo(tA);var Db=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Db||{}),ud={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Ev=Object.values(Db),Hp={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},rA=Object.entries(Hp).reduce((t,[e,n])=>(t[n]=e,t),{}),cn="data-rh",bo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},_o=(t,e)=>{for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},sA=t=>{let e=_o(t,"title");const n=_o(t,bo.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,()=>e);const r=_o(t,bo.DEFAULT_TITLE);return e||r||void 0},oA=t=>_o(t,bo.ON_CHANGE_CLIENT_STATE)||(()=>{}),dd=(t,e)=>e.filter(n=>typeof n[t]<"u").map(n=>n[t]).reduce((n,r)=>({...n,...r}),{}),iA=(t,e)=>e.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let o=0;o<s.length;o+=1){const a=s[o].toLowerCase();if(t.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n}
294,[]),aA=t=>console&&typeof console.warn=="function"&&console.warn(t),Si=(t,e,n)=>{const r={};return n.filter(s=>Array.isArray(s[t])?!0:(typeof s[t]<"u"&&aA(`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`),!1)).map(s=>s[t]).reverse().reduce((s,o)=>{const i={};o.filter(l=>{let c;const d=Object.keys(l);for(let h=0;h<d.length;h+=1){const m=d[h],b=m.toLowerCase();e.indexOf(b)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(b==="rel"&&l[b].toLowerCase()==="stylesheet")&&(c=b),e.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(c=m)}if(!c||!l[c])return!1;const f=l[c].toLowerCase();return r[c]||(r[c]={}),i[c]||(i[c]={}),r[c][f]?!1:(i[c][f]=!0,!0)}).reverse().forEach(l=>s.push(l));const a=Object.keys(i);for(let l=0;l<a.length;l+=1){const c=a[l],d={...r[c],...i[c]};r[c]=d}return s},[]).reverse()},lA=(t,e)=>{if(Array.isArray(t)&&t.length){for(let n=0;n<t.length;n+=1)if(t[n][e])return!0}return!1},cA=t=>({baseTag:iA(["href"],t),bodyAttributes:dd("bodyAttributes",t),defer:_o(t,bo.DEFER),encode:_o(t,bo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:dd("htmlAttributes",t),linkTags:Si("link",["rel","href"],t),metaTags:Si("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:Si("noscript",["innerHTML"],t),onChangeClientState:oA(t),scriptTags:Si("script",["src","innerHTML"],t),styleTags:Si("style",["cssText"],t),title:sA(t),titleAttributes:dd("titleAttributes",t),prioritizeSeoTags:lA(t,bo.PRIORITIZE_SEO_TAGS)}),Mb=t=>Array.isArray(t)?t.join(""):t,uA=(t,e)=>{const n=Object.keys(t);for(let r=0;r<n.length;r+=1)if(e[n[r]]&&e[n[r]].includes(t[n[r]]))return!0;return!1},fd=(t,e)=>Array.isArray(t)?t.reduce((n,r)=>(uA(r,e)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:t,priority:[]},Cv=(t,e)=>({...t,[e]:void 0}),dA=["noscript","script","style"],Vf=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Fb=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]<"u"?`${n}="${t[n]}"`:`${n}`;return e?`${e} ${r}`:r},""),fA=(t,e,n,r)=>{const s=Fb(n),o=Mb(e);return s?`<${t} ${cn}="true" ${s}>${Vf(o,r)}</${t}>`:`<${t} ${cn}="true">${Vf(o,r)}</${t}>`},hA=(t,e,n=!0)=>e.reduce((r,s)=>{const o=s,i=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof o[d]>"u"?d:`${d}="${Vf(o[d],n)}"`;return c?`${c} ${f}`:f},""),a=o.innerHTML||o.cssText||"",l=dA.indexOf(t)===-1;return`${r}<${t} ${cn}="true" ${i}${l?"/>":`>${a}</${t}>`}`},""),zb=(t,e={})=>Object.keys(t).reduce((n,r)=>{const s=Hp[r];return n[s||r]=t[r],n},e),pA=(t,e,n)=>{const r={key:e,[cn]:!0},s=zb(n,r);return[T.createElement("title",s,e)]},ql=(t,e)=>e.map((n,r)=>{const s={key:r,[cn]:!0};return Object.keys(n).forEach(o=>{const a=Hp[o]||o;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[o]}),T.createElement(t,s)}),Lt=(t,e,n=!0)=>{switch(t){case"title":return{toComponent:()=>pA(t,e.title,e.titleAttributes),toString:()=>fA(t,e.title,e.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>zb(e),toString:()=>Fb(e)};default:return{toComponent:()=>ql(t,e),toString:()=>hA(t,e,n)}}},mA=({metaTags:t,linkTags:e,scriptTags:n,encode:r})=>{const s=fd(t,ud.meta),o=fd(e,ud.link),i=fd(n,ud.script);return{priorityMethods:{toComponent:()=>[...ql("meta",s.priority),...ql("link",o.priority),...ql("script",i.priority)],toString:()=>`${Lt("meta",s.priority,r)} ${Lt("link",o.priority,r)} ${Lt("script",i.priority,r)}`},metaTags:s.default,linkTags:o.default,scriptTags:i.default}},gA=t=>{const{baseTag:e,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:o,styleTags:i,title:a="",titleAttributes:l,prioritizeSeoTags:c}=t;let{linkTags:d,metaTags:f,scriptTags:h}=t,m={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:m,linkTags:d,metaTags:f,scriptTags:h}=mA(t)),{priority:m,base:Lt("base",e,r),bodyAttributes:Lt("bodyAttributes",n,r),htmlAttributes:Lt("htmlAttributes",s,r),link:Lt("link",d,r),meta:Lt("meta",f,r),noscript:Lt("noscript",o,r),script:Lt("script",h,r),style:Lt("style",i,r),title:Lt("title",{title:a,titleAttributes:l},r)}},Hf=gA,gl=[],Ub=!!(typeof window<"u"&&window.document&&window.document.createElement),Wf=class{constructor(t,e){Mn(this,"instances",[]);Mn(this,"canUseDOM",Ub);Mn(this,"context");Mn(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?gl:this.instances,add:t=>{(this.canUseDOM?gl:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?gl:this.instances).indexOf(t);(this.canUseDOM?gl:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=Hf({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},vA={},Bb=T.createContext(vA),_s,Vb=(_s=class extends p.Component{constructor(n){super(n);Mn(this,"helmetData");this.helmetData=new Wf(this.props.context||{},_s.canUseDOM)}render(){return T.createElement(Bb.Provider,{value:this.helmetData.value},this.props.children)}},Mn(_s,"canUseDOM",Ub),_s),Us=(t,e)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${t}[${cn}]`),s=[].slice.call(r),o=[];let i;return e&&e.length&&e.forEach(a=>{const l=document.createElement(t);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const d=c,f=typeof a[d]>"u"?"":a[d];l.setAttribute(c,f)}l.setAttribute(cn,"true"),s.some((c,d)=>(i=d,l.isEqualNode(c)))?s.splice(i,1):o.push(l)}
294),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:o}},qf=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const r=n.getAttribute(cn),s=r?r.split(","):[],o=[...s],i=Object.keys(e);for(const a of i){const l=e[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const c=o.indexOf(a);c!==-1&&o.splice(c,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);s.length===o.length?n.removeAttribute(cn):n.getAttribute(cn)!==i.join(",")&&n.setAttribute(cn,i.join(","))},yA=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=Mb(t)),qf("title",e)},jv=(t,e)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:o,metaTags:i,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:h}=t;qf("body",r),qf("html",s),yA(f,h);const m={baseTag:Us("base",n),linkTags:Us("link",o),metaTags:Us("meta",i),noscriptTags:Us("noscript",a),scriptTags:Us("script",c),styleTags:Us("style",d)},b={},v={};Object.keys(m).forEach(x=>{const{newTags:g,oldTags:w}=m[x];g.length&&(b[x]=g),w.length&&(v[x]=m[x].oldTags)}),e&&e(),l(t,b,v)},ki=null,wA=t=>{ki&&cancelAnimationFrame(ki),t.defer?ki=requestAnimationFrame(()=>{jv(t,()=>{ki=null})}):(jv(t),ki=null)},xA=wA,Tv=class extends p.Component{constructor(){super(...arguments);Mn(this,"rendered",!1)}shouldComponentUpdate(e){return!nA(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:n}=this.props.context;let r=null;const s=cA(e.get().map(o=>{const i={...o.props};return delete i.context,i}));Vb.canUseDOM?xA(s):Hf&&(r=Hf(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Od,bA=(Od=class extends p.Component{shouldComponentUpdate(t){return!JR(Cv(this.props,"helmetData"),Cv(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,r){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,r)}]}}mapObjectTypeChildren(t,e,n,r){switch(t.type){case"title":return{...e,[t.type]:r,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach(r=>{n={...n,[r]:t[r]}}),n}warnOnInvalidChildren(t,e){return kv(Ev.some(n=>t.type===n),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Ev.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),kv(!e||typeof e=="string"||Array.isArray(e)&&!e.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return T.Children.forEach(t,r=>{if(!r||!r.props)return;const{children:s,...o}=r.props,i=Object.keys(o).reduce((l,c)=>(l[rA[c]||c]=o[c],l),{});let{type:a}=r;
294switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":e=this.mapChildrenToProps(s,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,s);break;default:e=this.mapObjectTypeChildren(r,e,i,s);break}}),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:r}=e;if(t&&(n=this.mapChildrenToProps(t,n)),r&&!(r instanceof Wf)){const s=r;r=new Wf(s.context,!0),delete n.helmetData}return r?T.createElement(Tv,{...n,context:r.value}):T.createElement(Bb.Consumer,null,s=>T.createElement(Tv,{...n,context:s}))}},Mn(Od,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Od);const _A=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>J(async()=>{const{default:r}=await Promise.resolve().then(()=>li);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};class Wp extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class SA extends Wp{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Pv extends Wp{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Nv extends Wp{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Kf;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Kf||(Kf={}));var kA=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};class EA{constructor(e,{headers:n={},customFetch:r,region:s=Kf.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=_A(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,n={}){var r;return kA(this,void 0,void 0,function*(){try{const{headers:s,method:o,body:i}=n;let a={},{region:l}=n;l||(l=this.region);const c=new URL(`${this.url}/${e}`);l&&l!=="any"&&(a["x-region"]=l,c.searchParams.set("forceFunctionRegion",l));let d;i&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=i):typeof i=="string"?(a["Content-Type"]="text/plain",d=i):typeof FormData<"u"&&i instanceof FormData?d=i:(a["Content-Type"]="application/json",d=JSON.stringify(i)));const f=yield this.fetch(c.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:d}).catch(v=>{throw new SA(v)}),h=f.headers.get("x-relay-error");if(h&&h==="true")throw new Pv(f);if(!f.ok)throw new Nv(f);let m=((r=f.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),b;return m==="application/json"?b=yield f.json():m==="application/octet-stream"?b=yield f.blob():m==="text/event-stream"?b=f:m==="multipart/form-data"?b=yield f.formData():b=yield f.text(),{data:b,error:null,response:f}}catch(s){return{data:null,error:s,response:s instanceof Nv||s instanceof Pv?s.context:void 0}}})}}var yt={},qp={},du={},$a={},fu={},hu={},CA=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Vo=CA();const jA=Vo.fetch,Hb=Vo.fetch.bind(Vo),Wb=Vo.Headers,TA=Vo.Request,PA=Vo.Response,li=Object.freeze(Object.defineProperty({__proto__:null,Headers:Wb,Request:TA,Response:PA,default:Hb,fetch:jA},Symbol.toStringTag,{value:"Module"})),NA=mk(li);var pu={};Object.defineProperty(pu,"__esModule",{value:!0});let RA=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
294de=e.code}};pu.default=RA;var qb=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hu,"__esModule",{value:!0});const AA=qb(NA),OA=qb(pu);let $A=class{constructor(e){var n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(n=e.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=AA.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=new Headers(this.headers),this.headers.set(e,n),this}then(e,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{var i,a,l,c;let d=null,f=null,h=null,m=o.status,b=o.statusText;if(o.ok){if(this.method!=="HEAD"){const w=await o.text();w===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((i=this.headers.get("Accept"))===null||i===void 0)&&i.includes("application/vnd.pgrst.plan+text"))?f=w:f=JSON.parse(w))}const x=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),g=(l=o.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");x&&g&&g.length>1&&(h=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(d={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,h=null,m=406,b="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const x=await o.text();try{d=JSON.parse(x),Array.isArray(d)&&o.status===404&&(f=[],d=null,m=200,b="OK")}catch{o.status===404&&x===""?(m=204,b="No Content"):d={message:x}}if(d&&this.isMaybeSingle&&(!((c=d==null?void 0:d.details)===null||c===void 0)&&c.includes("0 rows"))&&(d=null,m=200,b="OK"),d&&this.shouldThrowOnError)throw new OA.default(d)}return{error:d,data:f,count:h,status:m,statusText:b}});return this.shouldThrowOnError||(s=s.catch(o=>{var i,a,l;return{error:{message:`${(i=o==null?void 0:o.name)!==null&&i!==void 0?i:"FetchError"}: ${o==null?void 0:o.message}`,details:`${(a=o==null?void 0:o.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=o==null?void 0:o.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(e,n)}returns(){return this}overrideTypes(){return this}};hu.default=$A;var IA=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fu,"__esModule",{value:!0});const LA=IA(hu);let DA=class extends LA.default{select(e){let n=!1;const r=(e??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:o=s}={}){const i=o?`${o}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${e}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,n,{foreignTable:r,referencedTable:s=r}={}){const o=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${e}`),this.url.searchParams.set(i,`${n-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
294explain({analyze:e=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:o=!1,format:i="text"}={}){var a;const l=[e?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};fu.default=DA;var MA=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($a,"__esModule",{value:!0});const FA=MA(fu);let zA=class extends FA.default{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}in(e,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,n,{config:r,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${o}fts${i}.${n}`),this}match(e){return Object.entries(e).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(e,n,r){return this.url.searchParams.append(e,`not.${n}.${r}`),this}or(e,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,n,r){return this.url.searchParams.append(e,`${n}.${r}`),this}};$a.default=zA;var UA=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(du,"__esModule",{value:!0});const Ei=UA($a);let BA=class{constructor(e,{headers:n={},schema:r,fetch:s}){this.url=e,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(e,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let o=!1;const i=(e??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new Ei.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:n,defaultToNull:r=!0}={}){var s;const o="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const i=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
2940){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Ei.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(e,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:o=!0}={}){var i;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Ei.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(e,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Ei.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var n;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new Ei.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};du.default=BA;var Kb=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qp,"__esModule",{value:!0});const VA=Kb(du),HA=Kb($a);let WA=class Gb{constructor(e,{headers:n={},schema:r,fetch:s}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(e){const n=new URL(`${this.url}/${e}`);return new VA.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new Gb(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:s=!1,count:o}={}){var i;let a;const l=new URL(`${this.url}/rpc/${e}`);let c;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,h])=>h!==void 0).map(([f,h])=>[f,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([f,h])=>{l.searchParams.append(f,h)})):(a="POST",c=n);const d=new Headers(this.headers);return o&&d.set("Prefer",`count=${o}`),new HA.default({method:a,url:l,headers:d,schema:this.schemaName,body:c,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};qp.default=WA;var ci=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yt,"__esModule",{value:!0});yt.PostgrestError=yt.PostgrestBuilder=yt.PostgrestTransformBuilder=yt.PostgrestFilterBuilder=yt.PostgrestQueryBuilder=yt.PostgrestClient=void 0;const Yb=ci(qp);yt.PostgrestClient=Yb.default;const Zb=ci(du);yt.PostgrestQueryBuilder=Zb.default;const Qb=ci($a);yt.PostgrestFilterBuilder=Qb.default;const Jb=ci(fu);yt.PostgrestTransformBuilder=Jb.default;const Xb=ci(hu);yt.PostgrestBuilder=Xb.default;const e1=ci(pu);yt.PostgrestError=e1.default;var qA=yt.default={PostgrestClient:Yb.default,PostgrestQueryBuilder:Zb.default,PostgrestFilterBuilder:Qb.default,PostgrestTransformBuilder:Jb.default,PostgrestBuilder:Xb.default,PostgrestError:e1.default};const{PostgrestClient:KA,PostgrestQueryBuilder:T8,PostgrestFilterBuilder:P8,PostgrestTransformBuilder:N8,PostgrestBuilder:R8,PostgrestError:A8}=qA;class GA{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 295import ws from "ws" 296new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 297 298Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const YA="2.15.5",ZA=`realtime-js/${YA}`,QA="1.0.0",Gf=1e4,JA=1e3,XA=100;var qi;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(qi||(qi={}));var He;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(He||(He={}));var on;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(on||(on={}));var Yf;(function(t){t.websocket="websocket"})(Yf||(Yf={}));var fs;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(fs||(fs={}));class eO{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const s=n.getUint8(1),o=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(e.slice(i,i+s));i=i+s;const l=r.decode(e.slice(i,i+o));i=i+o;const c=JSON.parse(r.decode(e.slice(i,e.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class t1{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ee;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
298srange="tsrange",t.tstzrange="tstzrange"})(Ee||(Ee={}));const Rv=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(e).reduce((o,i)=>(o[i]=tO(i,t,e,s),o),{})},tO=(t,e,n,r)=>{const s=e.find(a=>a.name===t),o=s==null?void 0:s.type,i=n[t];return o&&!r.includes(o)?n1(o,i):Zf(i)},n1=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return oO(e,n)}switch(t){case Ee.bool:return nO(e);case Ee.float4:case Ee.float8:case Ee.int2:case Ee.int4:case Ee.int8:case Ee.numeric:case Ee.oid:return rO(e);case Ee.json:case Ee.jsonb:return sO(e);case Ee.timestamp:return iO(e);case Ee.abstime:case Ee.date:case Ee.daterange:case Ee.int4range:case Ee.int8range:case Ee.money:case Ee.reltime:case Ee.text:case Ee.time:case Ee.timestamptz:case Ee.timetz:case Ee.tsrange:case Ee.tstzrange:return Zf(e);default:return Zf(e)}},Zf=t=>t,nO=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},rO=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},sO=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},oO=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let o;const i=t.slice(1,n);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>n1(e,a))}return t},iO=t=>typeof t=="string"?t.replace(" ","T"):t,r1=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class hd{constructor(e,n,r={},s=Gf){this.channel=e,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Av;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(Av||(Av={}));class Ki{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ki.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=Ki.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ki.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i}
298)}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const o=this.cloneDeep(e),i=this.transformState(n),a={},l={};return this.map(o,(c,d)=>{i[c]||(l[c]=d)}),this.map(i,(c,d)=>{const f=o[c];if(f){const h=d.map(x=>x.presence_ref),m=f.map(x=>x.presence_ref),b=d.filter(x=>m.indexOf(x.presence_ref)<0),v=f.filter(x=>h.indexOf(x.presence_ref)<0);b.length>0&&(a[c]=b),v.length>0&&(l[c]=v)}else a[c]=d}),this.syncDiff(o,{joins:a,leaves:l},r,s)}static syncDiff(e,n,r,s){const{joins:o,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var c;const d=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),d.length>0){const f=e[a].map(m=>m.presence_ref),h=d.filter(m=>f.indexOf(m.presence_ref)<0);e[a].unshift(...h)}r(a,d,l)}),this.map(i,(a,l)=>{let c=e[a];if(!c)return;const d=l.map(f=>f.presence_ref);c=c.filter(f=>d.indexOf(f.presence_ref)<0),e[a]=c,s(a,c,l),c.length===0&&delete e[a]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Ov;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Ov||(Ov={}));var Gi;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Gi||(Gi={}));var Vn;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Vn||(Vn={}));class Kp{constructor(e,n={config:{}},r){this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=He.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new hd(this,on.join,this.params,this.timeout),this.rejoinTimer=new t1(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=He.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=He.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=He.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=He.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=He.errored,this.rejoinTimer.scheduleTimeout())}),this._on(on.reply,{},(s,o)=>{this._trigger(this._replyEventName(o),s)}),this.presence=new Ki(this),this.broadcastEndpointURL=r1(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,n=this.timeout){var r,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==He.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(m=>m.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Gi.PRESENCE]&&this.bindings[Gi.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,f={},h={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(m=>e==null?void 0:e(Vn.CHANNEL_ERROR,m)),this._onClose(()=>e==null?void 0:e(Vn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:m})=>{var b;if(this.socket.setAuth(),m===void 0){e==null||e(Vn.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,x=(b=v==null?void 0:v.length)!==null&&b!==void 0?b:0,g=[];for(let w=0;w<x;w++){const y=v[w],{filter:{event:_,schema:S,table:k,filter:C}}=y,E=m&&m[w];if(E&&E.event===_&&E.schema===S&&E.table===k&&E.filter===C)g.push(Object.assign(Object.assign({},y),{id:E.id}));else{this.unsubscribe(),this.state=He.errored,e==null||e(Vn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,e&&e(Vn.SUBSCRIBED);return}}).receive("error",m=>{this.state=He.errored,e==null||e(Vn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Vn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===He.joined&&e===Gi.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,n,r)}async send(e,n={}){var r,s;if(!this._canPush()&&e.type==="broadcast"){const{event:o,payload:i}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const c=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),
298c.receive("ok",()=>o("ok")),c.receive("error",()=>o("error")),c.receive("timeout",()=>o("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=He.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(on.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new hd(this,on.leave,{},e),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=He.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),i=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),i}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new hd(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>XA){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,o;const i=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=on;if(r&&[a,l,c,d].indexOf(i)>=0&&r!==this._joinRef())return;let h=this._onMessage(i,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(m=>{var b,v,x;return((b=m.filter)===null||b===void 0?void 0:b.event)==="*"||((x=(v=m.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===i}).map(m=>m.callback(h,r)):(o=this.bindings[i])===null||o===void 0||o.filter(m=>{var b,v,x,g,w,y;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in m){const _=m.id,S=(b=m.filter)===null||b===void 0?void 0:b.event;return _&&((v=n.ids)===null||v===void 0?void 0:v.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(w=(g=m==null?void 0:m.filter)===null||g===void 0?void 0:g.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return _==="*"||_===((y=n==null?void 0:n.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===i}).map(m=>{if(typeof h=="object"&&"ids"in h){const b=h.data,{schema:v,table:x,commit_timestamp:g,type:w,errors:y}=b;h=Object.assign(Object.assign({},{schema:v,table:x,commit_timestamp:g,eventType:w,new:{},old:{},errors:y}),this._getPayloadRecords(b))}m.callback(h,r)})}_isClosed(){return this.state===He.closed}_isJoined(){return this.state===He.joined}_isJoining(){return this.state===He.joining}_isLeaving(){return this.state===He.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&Kp.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(on.close,{},e)}_onError(e){this._on(on.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=He.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=Rv(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=Rv(e.columns,e.old_record)),n}}const pd=()=>{},vl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},aO=[1e3,2e3,5e3,1e4],lO=1e4,cO=` 299 addEventListener("message", (e) => { 300 if (e.data.event === "start") { 301 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 302 } 303 });`;class uO{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Gf,this.transport=null,this.heartbeatIntervalMs=vl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=pd,this.ref=0,this.reconnectTimer=null,this.logger=pd,this.conn=null,this.sendBuffer=[],this.serializer
303=new eO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...i)=>J(async()=>{const{default:a}=await Promise.resolve().then(()=>li);return{default:a}},void 0).then(({default:a})=>a(...i)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):o=fetch,(...i)=>o(...i)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${e}/${Yf.websocket}`,this.httpEndpoint=r1(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=GA.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n} 304 305To use Realtime in Node.js, you need to provide a WebSocket implementation: 306 307Option 1: Use Node.js 22+ which has native WebSocket support 308Option 2: Install and provide the "ws" package: 309 310 npm install ws 311 312 import ws from "ws" 313 const client = new RealtimeClient(url, { 314 ...options, 315 transport: ws 316 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:QA}))}disconnect(e,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},e?this.conn.close(e,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case qi.connecting:return fs.Connecting;case qi.open:return fs.Open;case qi.closing:return fs.Closing;default:return fs.Closed}}isConnected(){return this.connectionState()===fs.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new Kp(`realtime:${e}`,n,this);return this.channels.push(o),o}}push(e){const{topic:n,event:r,payload:s,ref:o}=e,i=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(JA,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},vl.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
3160&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:o,ref:i}=n,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),o),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,o,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(on.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([cO],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n;e?n=e:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:ZA};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(on.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new t1(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},vl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,o,i,a,l,c,d;if(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:Gf,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:vl.HEARTBEAT_INTERVAL,this.worker=(o=e==null?void 0:e.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=e==null?void 0:e.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=e==null?void 0:e.heartbeatCallback)!==null&&a!==void 0?a:pd,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(l=e==null?void 0:e.reconnectAfterMs)!==null&&l!==void 0?l:f=>aO[f-1]||lO,this.encode=(c=e==null?void 0:e.encode)!==null&&c!==void 0?c:(f,h)=>h(JSON.stringify(f)),this.decode=(d=e==null?void 0:e.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}
316class Gp extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function We(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class dO extends Gp{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Qf extends Gp{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}var fO=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};const s1=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>J(async()=>{const{default:r}=await Promise.resolve().then(()=>li);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},hO=()=>fO(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield J(()=>Promise.resolve().then(()=>li),void 0)).Response:Response}),Jf=t=>{if(Array.isArray(t))return t.map(n=>Jf(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));e[s]=Jf(r)}),e},pO=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var Is=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};const md=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),mO=(t,e,n)=>Is(void 0,void 0,void 0,function*(){const r=yield hO();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(s=>{const o=t.status||500,i=(s==null?void 0:s.statusCode)||o+"";e(new dO(md(s),o,i))}).catch(s=>{e(new Qf(md(s),s))}):e(new Qf(md(t),t))}),gO=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?s:(pO(r)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),n))};function Ia(t,e,n,r,s,o){return Is(this,void 0,void 0,function*(){return new Promise((i,a)=>{t(n,gO(e,r,s,o)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>mO(l,a,r))})})}function Tc(t,e,n,r){return Is(this,void 0,void 0,function*(){return Ia(t,"GET",e,n,r)})}function Sn(t,e,n,r,s){return Is(this,void 0,void 0,function*(){return Ia(t,"POST",e,r,s,n)})}function Xf(t,e,n,r,s){return Is(this,void 0,void 0,function*(){return Ia(t,"PUT",e,r,s,n)})}function vO(t,e,n,r){return Is(this,void 0,void 0,function*(){return Ia(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function o1(t,e,n,r,s){return Is(this,void 0,void 0,function*(){return Ia(t,"DELETE",e,r,s,n)})}var lt=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};const yO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},$v={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class wO{constructor(e,n={},r,s){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.bucketId=r,this.fetch=s1(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,n,r,s){return lt(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},$v),s);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l))):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const c=this._removeEmptyFolders(n),d=this._getFinalPath(c),f=yield(e=="PUT"?Xf:Sn)(this.fetch,`${this.url}/object/${d}`,o,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:c,id:f.Id,fullPath:f.Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(We(o))return{data:null,error:o};throw o}})}upload(e,n,r){return lt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,s){return lt(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(e),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const c=Object.assign({upsert:$v.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const f=yield Xf(this.fetch,a.toString(),l,{headers:d});return{data:{path:o,fullPath:f.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(We(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,n){return lt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield Sn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new Gp("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}update(e,n,r){return lt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return lt(this,void 0,void 0,function*(){try{return{data:yield Sn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}copy(e,n,r){return lt(this,void 0,void 0,function*(){try{return{data:{path:(yield Sn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}createSignedUrl(e,n,r){return lt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),o=yield Sn(this.fetch,`${this.url}/object/sign/${s}
316`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}createSignedUrls(e,n,r){return lt(this,void 0,void 0,function*(){try{const s=yield Sn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}download(e,n){return lt(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=o?`?${o}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield Tc(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(We(a))return{data:null,error:a};throw a}})}info(e){return lt(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield Tc(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Jf(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}exists(e){return lt(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield vO(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r)&&r instanceof Qf){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${c}`)}}}remove(e){return lt(this,void 0,void 0,function*(){try{return{data:yield o1(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}list(e,n,r){return lt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},yO),n),{prefix:e||""});return{data:yield Sn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(We(s))return{data:null,error:s};throw s}})}listV2(e,n){return lt(this,void 0,void 0,function*(){try{const r=Object.assign({},e);return{data:yield Sn(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const xO="2.12.1",bO={"X-Client-Info":`storage-js/${xO}`};var Bs=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};class _O{constructor(e,n={},r,s){this.shouldThrowOnError=!1;const o=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href,this.headers=Object.assign(Object.assign({},bO),n),this.fetch=s1(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return Bs(this,void 0,void 0,function*(){try{return{data:yield Tc(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(We(e))return{data:null,error:e};throw e}})}getBucket(e){return Bs(this,void 0,void 0,function*(){try{return{data:yield Tc(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}createBucket(e,n={public:!1}){return Bs(this,void 0,void 0,function*(){try{return{data:yield Sn(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}updateBucket(e,n){return Bs(this,void 0,void 0,function*(){try{return{data:yield Xf(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(We(r))return{data:null,error:r};throw r}})}emptyBucket(e){return Bs(this,void 0,void 0,function*(){try{return{data:yield Sn(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}deleteBucket(e){return Bs(this,void 0,void 0,function*(){try{return{data:yield o1(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(We(n))return{data:null,error:n};throw n}})}}class SO extends _O{constructor(e,n={},r,s){super(e,n,r,s)}from(e){return new wO(this.url,this.headers,e,this.fetch)}}const kO="2.57.4";let Ai="";typeof Deno<"u"?Ai="deno":typeof document<"u"?Ai="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Ai="react-native":Ai="node";const EO={"X-Client-Info":`supabase-js-${Ai}/${kO}`},CO={headers:EO},jO={schema:"public"},TO={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},PO={};var NO=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
316return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};const RO=t=>{let e;return t?e=t:typeof fetch>"u"?e=Hb:e=fetch,(...n)=>e(...n)},AO=()=>typeof Headers>"u"?Wb:Headers,OO=(t,e,n)=>{const r=RO(n),s=AO();return(o,i)=>NO(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let c=new s(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(o,Object.assign(Object.assign({},i),{headers:c}))})};var $O=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};function IO(t){return t.endsWith("/")?t:t+"/"}function LO(t,e){var n,r;const{db:s,auth:o,realtime:i,global:a}=t,{db:l,auth:c,realtime:d,global:f}=e,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},c),o),realtime:Object.assign(Object.assign({},d),i),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>$O(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}function DO(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(IO(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const i1="2.71.1",Zs=30*1e3,eh=3,gd=eh*Zs,MO="http://localhost:9999",FO="supabase.auth.token",zO={"X-Client-Info":`gotrue-js/${i1}`},th="X-Supabase-Api-Version",a1={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},UO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,BO=10*60*1e3;class Yp extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ie(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class VO extends Yp{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function HO(t){return ie(t)&&t.name==="AuthApiError"}class l1 extends Yp{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class ts extends Yp{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class vr extends ts{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function WO(t){return ie(t)&&t.name==="AuthSessionMissingError"}class yl extends ts{constructor(){super("Auth session or user missing","AuthInvalidToken
316ResponseError",500,void 0)}}class wl extends ts{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class xl extends ts{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function qO(t){return ie(t)&&t.name==="AuthImplicitGrantRedirectError"}class Iv extends ts{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class nh extends ts{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function vd(t){return ie(t)&&t.name==="AuthRetryableFetchError"}class Lv extends ts{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class rh extends ts{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Pc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Dv=` 317\r=`.split(""),KO=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Dv.length;e+=1)t[Dv[e].charCodeAt(0)]=-2;for(let e=0;e<Pc.length;e+=1)t[Pc[e].charCodeAt(0)]=e;return t})();function Mv(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Pc[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Pc[r]),e.queuedBits-=6}}function c1(t,e,n){const r=KO[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Fv(t){const e=[],n=i=>{e.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{ZO(i,r,n)};for(let i=0;i<t.length;i+=1)c1(t.charCodeAt(i),s,o);return e.join("")}function GO(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function YO(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}GO(r,e)}}function ZO(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function QO(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)c1(t.charCodeAt(s),n,r);return new Uint8Array(e)}function JO(t){const e=[];return YO(t,n=>e.push(n)),new Uint8Array(e)}function XO(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>Mv(s,n,r)),Mv(null,n,r),e.join("")}function e$(t){return Math.round(Date.now()/1e3)+t}function t$(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Xt=()=>typeof window<"u"&&typeof document<"u",as={tested:!1,writable:!1},u1=()=>{if(!Xt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(as.tested)return as.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),as.tested=!0,as.writable=!0}catch{as.tested=!0,as.writable=!1}return as.writable};function n$(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{e[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const d1=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>J(async()=>{const{default:r}=await Promise.resolve().then(()=>li);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},r$=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Qs=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},ls=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},mr=async(t,e)=>{await t.removeItem(e)};class mu{constructor(){this.promise=new mu.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}mu.promiseConstructor=Promise;function yd(t){const e=t.split(".");if(e.length!==3)throw new rh("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!UO.test(e[r]))throw new rh("JWT not in base64url format");return{header:JSON.parse(Fv(e[0])),payload:JSON.parse(Fv(e[1])),signature:QO(e[2]),raw:{header:e[0],payload:e[1]}}}async function s$(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function o$(t,e){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await t(o);if(!e(o,null,i)){r(i);return}}catch(i){if(!e(o,i)){s(i);return}}})()})}function i$(t){return("0"+t.toString(16)).substr(-2)}function a$(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,i$).join("")}async function l$(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",
317n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function c$(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await l$(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Vs(t,e,n=!1){const r=a$();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Qs(t,`${e}-code-verifier`,s);const o=await c$(r);return[o,r===o?"plain":"s256"]}const u$=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function d$(t){const e=t.headers.get(th);if(!e||!e.match(u$))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function f$(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function h$(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const p$=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Hs(t){if(!p$.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function wd(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function zv(t){return JSON.parse(JSON.stringify(t))}var m$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};const ds=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),g$=[502,503,504];async function Uv(t){var e;if(!r$(t))throw new nh(ds(t),0);if(g$.includes(t.status))throw new nh(ds(t),t.status);let n;try{n=await t.json()}catch(o){throw new l1(ds(o),o)}let r;const s=d$(t);if(s&&s.getTime()>=a1["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Lv(ds(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new vr}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new Lv(ds(n),t.status,n.weak_password.reasons);throw new VO(ds(n),t.status||500,r)}const v$=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function fe(t,e,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[th]||(o[th]=a1["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const i=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await y$(t,e,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function y$(t,e,n,r,s,o){const i=v$(e,r,s,o);let a;try{a=await t(n,Object.assign({},i))}catch(l){throw console.error(l),new nh(ds(l),0)}if(a.ok||await Uv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Uv(l)}}function Un(t){var e;let n=null;_$(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=e$(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Bv(t){const e=Un(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function kr(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function w$(t){return{data:t,error:null}}function x$(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=t,i=m$(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function b$(t){return t}function _$(t){return t.access_token&&t.refresh_token&&t.expires_in}const xd=["global","local","others"];var S$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};class k${constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=d1(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}
317async signOut(e,n=xd[0]){if(xd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${xd.join(", ")}`);try{return await fe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await fe(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:kr})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=S$(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await fe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:x$,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ie(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await fe(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:kr})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await fe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:b$});if(d.error)throw d.error;const f=await d.json(),h=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,m=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return m.length>0&&(m.forEach(b=>{const v=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(b.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(ie(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){Hs(e);try{return await fe(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:kr})}catch(n){if(ie(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Hs(e);try{return await fe(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:kr})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Hs(e);try{return await fe(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:kr})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Hs(e.userId);try{const{data:n,error:r}=await fe(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Hs(e.userId),Hs(e.id);try{return{data:await fe(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(ie(n))return{data:null,error:n};throw n}}}function Vv(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}function E$(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Ws={debug:!!(globalThis&&u1()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class f1 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class C$ extends f1{}async function j$(t,e,n){Ws.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),Ws.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Ws.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{Ws.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Ws.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new C$(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Ws.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}E$();const T$={url:MO,storageKey:FO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:zO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Hv(t,e,n){return await n()}const qs={};class ya{constructor(e){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ya.nextInstanceID,ya.nextInstanceID+=1,this.instanceID>
3170&&Xt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},T$),e);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new k$({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=d1(s.fetch),this.lock=s.lock||Hv,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:Xt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=j$:this.lock=Hv,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:u1()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Vv(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Vv(this.memoryStorage)),Xt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}get jwks(){var e,n;return(n=(e=qs[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){qs[this.storageKey]=Object.assign(Object.assign({},qs[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=qs[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){qs[this.storageKey]=Object.assign(Object.assign({},qs[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${i1}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const n=n$(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Xt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),qO(o)){const l=(e=o.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ie(n)?{error:n}:{error:new l1("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const o=await fe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Un}),{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(ie(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(e){var n,r,s;try{let o;if("email"in e){const{email:d,password:f,options:h}=e;let m=null,b=null;this.flowType==="pkce"&&([m,b]=await Vs(this.storage,this.storageKey)),o=await fe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:m,code_challenge_method:b},xform:Un})}else if("phone"in e){const{phone:d,password:f,options:h}=e;o=await fe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Un})}else throw new wl("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(ie(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(e){try{let n;if("email"in e){const{email:o,password:i,options:a}=e;n=await fe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Bv})}else if("phone"in e){const{phone:o,password:i,options:a}=e;n=await fe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Bv})}else throw new wl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new yl}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(ie(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,s,o;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=e.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;if(n==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(e){var n,r,s,o,i,a,l,c,d,f,h,m;let b,v;if("message"in e)b=e.message,v=e.signature;else{const{chain:x,wallet:g,statement:w,options:y}=e;let _;if(Xt())if(typeof g=="object")_=g;
317else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))_=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=g}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const k=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),w?{statement:w}:null));let C;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")C=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)C=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)b=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),v=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=y==null?void 0:y.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((f=(d=y==null?void 0:y.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...y.signInWithSolana.resources.map(C=>`- ${C}`)]:[]].join(` 318`);const k=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=k}}try{const{data:x,error:g}=await fe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:XO(v)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Un});if(g)throw g;return!x||!x.session||!x.user?{data:{user:null,session:null},error:new yl}:(x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),{data:Object.assign({},x),error:g})}catch(x){if(ie(x))return{data:{user:null,session:null},error:x};throw x}}async _exchangeCodeForSession(e){const n=await ls(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:i}=await fe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Un});if(await mr(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new yl}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(ie(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:o,nonce:i}=e,a=await fe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Un}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new yl}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(ie(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,s,o,i;try{if("email"in e){const{email:a,options:l}=e;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await Vs(this.storage,this.storageKey));const{error:f}=await fe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:d}=await fe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d}}throw new wl("You must provide either an email or phone number.")}catch(a){if(ie(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var n,r;try{let s,o;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,o=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await fe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:Un});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(ie(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(e){var n,r,s;try{let o=null,i=null;return this.flowType==="pkce"&&([o,i]=await Vs(this.storage,this.storageKey)),await fe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}
318:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:w$})}catch(o){if(ie(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new vr;const{error:s}=await fe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(e){if(ie(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:o}=e,{error:i}=await fe(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in e){const{phone:r,type:s,options:o}=e,{data:i,error:a}=await fe(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new wl("You must provide either an email or phone number and a type")}catch(n){if(ie(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await ls(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<gd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const i=await ls(this.userStorage,this.storageKey+"-user");i!=null&&i.user?e.user=i.user:e.user=wd()}if(this.storage.isServer&&e.user){let i=this.suppressGetSessionWarning;e=new Proxy(e,{get:(l,c,d)=>(!i&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,d))})}return{data:{session:e},error:null}}const{session:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await fe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:kr}):await this._useSession(async n=>{var r,s,o;const{data:i,error:a}=n;
318if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new vr}:await fe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:kr})})}catch(n){if(ie(n))return WO(n)&&(await this._removeSession(),await mr(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new vr;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Vs(this.storage,this.storageKey));const{data:c,error:d}=await fe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:kr});if(d)throw d;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(ie(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new vr;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:i}=yd(e.access_token);if(i.exp&&(r=i.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;o={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(ie(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:i,error:a}=n;if(a)throw a;e=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new vr;const{session:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(ie(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!Xt())throw new xl("No browser detected.");if(e.error||e.error_description||e.error_code)throw new xl(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Iv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new xl("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Iv("No code detected.");const{data:w,error:y}=await this._exchangeCodeForSession(e.code);if(y)throw y;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=e;if(!o||!a||!i||!c)throw new xl("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let h=d+f;l&&(h=parseInt(l));const m=h-d;m*1e3<=Zs&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const b=h-f;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,h,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,h,d);const{data:v,error:x}=await this._getUser(o);if(x)throw x;const g={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:f,expires_at:h,refresh_token:i,token_type:c,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:e.type},error:null}}catch(r){if(ie(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await ls(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
318if(o)return{error:o};const i=(r=s.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,e);if(a&&!(HO(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await mr(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=t$(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",e,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",o),console.error(o)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Vs(this.storage,this.storageKey,!0));try{return await fe(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(ie(o))return{data:null,error:o};throw o}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(ie(n))return{data:null,error:n};throw n}}async linkIdentity(e){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var i,a,l,c,d;const{data:f,error:h}=o;if(h)throw h;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await fe(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Xt()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(ie(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)throw i;return await fe(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await o$(async s=>(s>0&&await s$(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await fe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Un})),(s,o)=>{const i=200*Math.pow(2,s);return o&&vd(o)&&Date.now()+i-r<Zs})}catch(r){if(this._debug(n,"error",r),ie(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),Xt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await ls(this.storage,this.storageKey);if(s&&this.userStorage){let i=await ls(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await Qs(this.userStorage,this.storageKey+"-user",i)),s.user=(e=i==null?void 0:i.user)!==null&&e!==void 0?e:wd()}else if(s&&!s.user&&!s.user){const i=await ls(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await mr(this.storage,this.storageKey+"-user"),await Qs(this.storage,this.storageKey,s)):s.user=wd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not val
318id"),s!==null&&await this._removeSession();return}const o=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<gd;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${gd}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),vd(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new vr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new mu;const{data:o,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!o.session)throw new vr;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={session:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),ie(o)){const i={session:null,error:o};return vd(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,n)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Qs(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const o=zv(s);await Qs(this.storage,this.storageKey,o)}else{const s=zv(n);await Qs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await mr(this.storage,this.storageKey),await mr(this.storage,this.storageKey+"-code-verifier"),await mr(this.storage,this.storageKey+"-user"),this.userStorage&&await mr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Xt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Zs);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-e)/Zs);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Zs}ms, refresh threshold is ${eh} ticks`),s<=eh&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof f1)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Xt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
318await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,i]=await Vs(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await fe(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:o,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:c}=await fe(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return c?{data:null,error:c}:(e.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(ie(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{data:null,error:o};const{data:i,error:a}=await fe(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(ie(n))return{data:null,error:n};throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await fe(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ie(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const{data:{user:e},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(e==null?void 0:e.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),o=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:s,phone:o},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var n,r;const{data:{session:s},error:o}=e;if(o)return{data:null,error:o};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=yd(s.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const d=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+BO>s)return r;const{data:o,error:i}=await fe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,r=o.keys.find(a=>a.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:m,error:b}
318=await this.getSession();if(b||!m.session)return{data:null,error:b};r=m.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=yd(r);n!=null&&n.allowExpired||f$(o.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:m}=await this.getUser(r);if(m)throw m;return{data:{claims:o,header:s,signature:i},error:null}}const d=h$(s.alg),f=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,i,JO(`${a}.${l}`)))throw new rh("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(r){if(ie(r))return{data:null,error:r};throw r}}}ya.nextInstanceID=0;const P$=ya;class N$ extends P${constructor(e){super(e)}}var R$=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};class A${constructor(e,n,r){var s,o,i;this.supabaseUrl=e,this.supabaseKey=n;const a=DO(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,c={db:jO,realtime:PO,auth:Object.assign(Object.assign({},TO),{storageKey:l}),global:CO},d=LO(r??{},c);this.storageKey=(s=d.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=d.global.headers)!==null&&o!==void 0?o:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=d.auth)!==null&&i!==void 0?i:{},this.headers,d.global.fetch),this.fetch=OO(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new KA(new URL("rest/v1",a).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new SO(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new EA(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,n={},r={}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,n;return R$(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:o,storageKey:i,flowType:a,lock:l,debug:c},d,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new N$({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),d),storageKey:i,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:o,flowType:a,lock:l,debug:c,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new uO(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const O$=(t,e,n)=>new A$(t,e,n);function $$(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}$$()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
318ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function I$(){var x,g;if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(w=>t===w||t.endsWith("."+w)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((x=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:x[1])??((g=t.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:g[1]):void 0,o=window.parent&&window.parent!==window;if(!s||!o)return localStorage;const i=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),a=i?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",f=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),m=(w,y,_)=>new Promise(S=>{const k=h();let C=!1,E;const O=$=>{C||(C=!0,clearTimeout(E),window.removeEventListener("message",P),S($))},P=$=>
318{if(c.indexOf($.origin)<0)return;const U=$.data;U&&U.type===d&&U.requestId===k&&O(U)};window.addEventListener("message",P);const D={type:w,requestId:k,projectId:s,key:y};_!==void 0&&(D.value=_);for(const $ of c)window.parent.postMessage(D,$);E=setTimeout(()=>O(null),f)});let b=!0;const v=250;return{getItem:async w=>{let y=await m("lovable-preview-auth:get",w);return!y&&b&&(await new Promise(_=>setTimeout(_,v)),y=await m("lovable-preview-auth:get",w)),b=!1,y&&y.ok&&typeof y.value=="string"?y.value===""?(localStorage.removeItem(w),null):y.value:localStorage.getItem(w)},setItem:(w,y)=>(localStorage.setItem(w,y),m("lovable-preview-auth:set",w,y).then(_=>{_&&_.ok&&typeof _.value=="string"&&localStorage.getItem(w)===y&&(_.value===""?localStorage.removeItem(w):localStorage.setItem(w,_.value))})),removeItem:w=>(localStorage.removeItem(w),m("lovable-preview-auth:remove",w).then(()=>{}))}}const L$="https://rloljmeutwkzcduuerax.supabase.co",D$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJsb2xqbWV1dHdremNkdXVlcmF4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTg0MTAzNDIsImV4cCI6MjA3Mzk4NjM0Mn0.a0G1ez015PNkg87TWWPxAvg8ezm-53pQxr-Z-s5-5NE",Fe=O$(L$,D$,{auth:{storage:I$(),persistSession:!0,autoRefreshToken:!0}}),h1=p.createContext(void 0);function M$({children:t}){const[e,n]=p.useState(null),[r,s]=p.useState(null),[o,i]=p.useState(!0);p.useEffect(()=>{const{data:{subscription:f}}=Fe.auth.onAuthStateChange((h,m)=>{s(m),n((m==null?void 0:m.user)??null),i(!1)});return Fe.auth.getSession().then(({data:{session:h}})=>{s(h),n((h==null?void 0:h.user)??null),i(!1)}),()=>f.unsubscribe()},[]);const d={user:e,session:r,loading:o,signUp:async(f,h,m)=>{const b=`${window.location.origin}/auth?confirmed=1`,{data:v,error:x}=await Fe.auth.signUp({email:f,password:h,options:{emailRedirectTo:b,data:m?{display_name:m}:void 0}});return{data:v,error:x}},signIn:async(f,h)=>{const{error:m}=await Fe.auth.signInWithPassword({email:f,password:h});return{error:m}},signOut:async()=>{const{error:f}=await Fe.auth.signOut();return{error:f}}};return u.jsx(h1.Provider,{value:d,children:t})}function ns(){const t=p.useContext(h1);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}const F$=()=>{const t=yn();return p.useEffect(()=>{typeof window.gtag<"u"&&window.gtag("config","GA_MEASUREMENT_ID",{page_path:t.pathname+t.search})},[t]),{trackEvent:(r,s)=>{typeof window.gtag<"u"&&window.gtag("event",r,s)},trackUserProperty:(r,s)=>{typeof window.gtag<"u"&&window.gtag("set","user_properties",{[r]:s})}}},Zp=Ra("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",wellness:"bg-gradient-primary text-primary-foreground hover:shadow-glow transition-gentle shadow-soft",hero:"bg-gradient-wellness text-overlay-foreground hover:shadow-glow transition-gentle shadow-elegant border-0",heroOutline:"border-2 border-overlay-foreground/40 bg-overlay-foreground/10 text-overlay-foreground hover:bg-overlay-foreground/20 hover:border-overlay-foreground backdrop-blur-sm shadow-lg hover:shadow-xl",heroGold:"border-2 border-accent-gold/60 bg-accent-gold/10 text-overlay-foreground hover:bg-accent-gold/20 hover:border-accent-gold backdrop-blur-sm shadow-lg hover:shadow-xl",gold:"bg-gradient-gold text-accent-foreground hover:shadow-soft transition-gentle"},size:{default:"min-h-[44px] h-11 px-4 py-2 text-base sm:text-sm",sm:"min-h-[44px] h-10 rounded-md px-3 text-sm",lg:"min-h-[48px] h-12 rounded-md px-8 text-base sm:text-lg",icon:"min-h-[44px] min-w-[44px] h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),ae=p.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},o)=>{const i=r?ZC:"button";return u.jsx(i,{className:ue(Zp({variant:e,size:n,className:t})),ref:o,...s})});ae.displayName="Button";const qe=p.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ue("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));
318qe.displayName="Card";const z$=p.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ue("flex flex-col space-y-1.5 p-6",t),...e}));z$.displayName="CardHeader";const U$=p.forwardRef(({className:t,...e},n)=>u.jsx("h3",{ref:n,className:ue("text-2xl font-semibold leading-none tracking-tight",t),...e}));U$.displayName="CardTitle";const B$=p.forwardRef(({className:t,...e},n)=>u.jsx("p",{ref:n,className:ue("text-sm text-muted-foreground",t),...e}));B$.displayName="CardDescription";const Qp=p.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ue("p-6 pt-0",t),...e}));Qp.displayName="CardContent";const V$=p.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ue("flex items-center p-6 pt-0",t),...e}));V$.displayName="CardFooter";class H$ extends p.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){console.error("Error caught by boundary:",e,n)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:u.jsxs(qe,{className:"max-w-md w-full p-6 text-center space-y-4",children:[u.jsx(Sp,{className:"h-12 w-12 text-destructive mx-auto"}),u.jsx("h2",{className:"text-2xl font-bold",children:"Something went wrong"}),u.jsx("p",{className:"text-muted-foreground",children:"We're sorry, but something unexpected happened. Please try refreshing the page."}),u.jsx(ae,{onClick:()=>window.location.href="/",className:"w-full",children:"Return to Home"})]})}):this.props.children}}const p1=()=>u.jsxs("div",{className:"text-center py-12",children:[u.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:"Loading your wellness space..."})]});function W$(t={}){const{immediate:e=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:o,onRegisterError:i}=t;let a,l;const c=async(f=!0)=>{await l};async function d(){if("serviceWorker"in navigator){if(a=await J(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-vqzQaGvo.js");return{Workbox:f}},[]).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{i==null||i(f)}),!a)return;a.addEventListener("activated",f=>{(f.isUpdate||f.isExternal)&&window.location.reload()}),a.addEventListener("installed",f=>{f.isUpdate||r==null||r()}),a.register({immediate:e}).then(f=>{o?o("/sw.js",f):s==null||s(f)}).catch(f=>{i==null||i(f)})}}return l=d(),c}function q$(t={}){const{immediate:e=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:o,onRegisterError:i}=t,[a,l]=p.useState(!1),[c,d]=p.useState(!1),[f]=p.useState(()=>W$({immediate:e,onOfflineReady(){d(!0),r==null||r()},onNeedRefresh(){l(!0),n==null||n()},onRegistered:s,onRegisteredSW:o,onRegisterError:i}));return{needRefresh:[a,l],offlineReady:[c,d],updateServiceWorker:f}}const K$=()=>{const[t,e]=p.useState(!1),{needRefresh:[n,r],updateServiceWorker:s}=q$({onRegistered(a){console.log("SW Registered:",a),a&&setInterval(()=>{console.log("Checking for SW updates..."),a.update()},3e4)},onRegisterError(a){console.log("SW registration error",a)},immediate:!0});p.useEffect(()=>{n&&e(!0)},[n]);const o=()=>{s(!0)},i=()=>{e(!1),r(!1)};return t?u.jsx("div",{className:"fixed top-4 right-4 z-50 max-w-sm animate-in slide-in-from-top duration-300",children:u.jsx(qe,{className:"bg-gradient-to-r from-primary to-purple-600 text-white border-0 shadow-2xl",children:u.jsx("div",{className:"p-4",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"flex-shrink-0",children:u.jsx("div",{className:"w-10 h-10 bg-white/20 rounded-full flex items-center justify-center",children:u.jsx(hn,{className:"h-5 w-5"})})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"font-semibold text-base mb-1",children:"Update Available!"}),u.jsx("p",{className:"text-sm text-white/90 mb-3",children:"A new version of HERPower is ready. Update now to get the latest features and improvements."}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(ae,{onClick:o,size:"sm",className:"bg-white text-primary hover:bg-white/90 font-semibold",children:[u.jsx(cT,{className:"h-4 w-4 mr-2"}
318),"Update Now"]}),u.jsx(ae,{onClick:i,size:"sm",variant:"ghost",className:"text-white hover:bg-white/20",children:"Later"})]})]}),u.jsx(ae,{onClick:i,size:"sm",variant:"ghost",className:"text-white hover:bg-white/20 h-8 w-8 p-0 flex-shrink-0","aria-label":"Dismiss",children:u.jsx(ni,{className:"h-4 w-4"})})]})})})}):null},m1=()=>{const{user:t}=ns(),[e,n]=T.useState(!1),[r,s]=T.useState(!0);return T.useEffect(()=>{(async()=>{if(!t){n(!1),s(!1);return}try{const{data:i,error:a}=await Fe.rpc("has_role",{_user_id:t.id,_role:"admin"}),{data:l,error:c}=await Fe.rpc("has_role",{_user_id:t.id,_role:"owner"});n(!!(!a&&!c&&(i||l)))}catch(i){console.error("Error checking admin status:",i),n(!1)}finally{s(!1)}})()},[t]),{isAdmin:e,loading:r}},G$=()=>{const{user:t}=ns(),{isAdmin:e,loading:n}=m1(),[r,s]=p.useState([]);p.useEffect(()=>{o();const c=Fe.channel("admin-notifications-changes").on("postgres_changes",{event:"*",schema:"public",table:"admin_notifications"},()=>{o()}).subscribe();return()=>{Fe.removeChannel(c)}},[t]);const o=async()=>{const{data:c}=await Fe.from("admin_notifications").select("*").eq("is_active",!0).or(`expires_at.is.null,expires_at.gt.${new Date().toISOString()}`).order("created_at",{ascending:!1});c&&s(c)},i=async c=>{const{error:d}=await Fe.from("admin_notifications").update({is_active:!1}).eq("id",c);if(d){console.error("Failed to deactivate notification:",d);return}s(f=>f.filter(h=>h.id!==c))},a=c=>{switch(c){case"success":return u.jsx(Wj,{className:"h-5 w-5 flex-shrink-0"});case"warning":return u.jsx(hT,{className:"h-5 w-5 flex-shrink-0"});case"urgent":return u.jsx(Sp,{className:"h-5 w-5 flex-shrink-0"});default:return u.jsx(eT,{className:"h-5 w-5 flex-shrink-0"})}},l=c=>{switch(c){case"success":return"bg-green-50 border-green-200 text-black";case"warning":return"bg-yellow-50 border-yellow-200 text-black";case"urgent":return"bg-red-50 border-red-200 text-black";default:return"bg-white border-gray-200 text-black"}};return n||!e||r.length===0?null:u.jsx("div",{className:"fixed top-4 right-4 z-50 w-full max-w-md
318space-y-2",children:r.map(c=>u.jsx(qe,{className:`${l(c.notification_type)} border-2 shadow-lg animate-in slide-in-from-top duration-300`,children:u.jsx("div",{className:"p-4",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"mt-0.5",children:a(c.notification_type)}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"font-semibold text-base mb-1",children:c.title}),u.jsx("p",{className:"text-sm opacity-90",children:c.message})]}),c.is_dismissible&&u.jsx(ae,{onClick:()=>i(c.id),size:"sm",variant:"ghost",className:"h-8 w-8 p-0 flex-shrink-0 hover:bg-black/10 dark:hover:bg-white/10","aria-label":"Dismiss",children:u.jsx(ni,{className:"h-4 w-4"})})]})})},c.id))})},Wv=[{id:"welcome",title:"Welcome to HERPower! ð",description:"Let's take a quick tour of your wellness journey dashboard.",target:'[data-onboarding="hero"]',position:"bottom",route:"/"},{id:"mirror",title:"Your Daily Affirmations",description:"Start each day with powerful affirmations designed to boost your confidence and self-love.",target:'[data-onboarding="mirror"]',position:"bottom",route:"/"},{id:"journal",title:"Journal Your Journey",description:"Express your thoughts, track your progress, and reflect on your growth.",target:'[data-onboarding="journal"]',position:"bottom",route:"/"},{id:"vision-board",title:"Create Your Vision",description:"Build a visual representation of your goals and dreams with our vision board.",target:'[data-onboarding="vision"]',position:"bottom",route:"/"},{id:"circles",title:"Join Our Community",description:"Connect with other empowered women in supportive circles focused on growth and sisterhood.",target:'[data-onboarding="circles"]',position:"bottom",route:"/"},{id:"profile",title:"Your Profile",description:"Manage your account, track your progress, and customize your experience.",target:'[data-onboarding="profile"]',position:"left",route:"/"}],Y$=()=>{const{user:t}=ns(),[e,n]=p.useState(!1),[r,s]=p.useState(0),[o,i]=p.useState(!0);p.useEffect(()=>{(async()=>{if(!t){const b=localStorage.getItem("onboarding_completed");i(b==="true");return}const{data:m}=await Fe.from("profiles").select("created_at").eq("user_id",t.id).single();if(m){const b=new Date(m.created_at),x=(new Date().getTime()-b.getTime())/1e3/60,g=localStorage.getItem(`onboarding_completed_${t.id}`),w=x<5;i(g==="true"||!w)}})()},[t]);const a=()=>{n(!0),s(0)},l=()=>{r<Wv.length-1?s(r+1):f()},c=()=>{r>0&&s(r-1)},d=()=>{f()},f=()=>{n(!1),s(0),t?localStorage.setItem(`onboarding_completed_${t.id}`,"true"):localStorage.setItem("onboarding_completed","true"),i(!0)};return{isActive:e,currentStep:r,steps:Wv,hasCompletedOnboarding:o,startOnboarding:a,nextStep:l,previousStep:c,skipOnboarding:d,completeOnboarding:f}},Z$=()=>{const t=ir(),e=yn(),{isActive:n,currentStep:r,steps:s,nextStep:o,previousStep:i,skipOnboarding:a}=Y$(),[l,c]=p.useState({top:0,left:0}),[d,f]=p.useState({top:0,left:0,width:0,height:0}),h=p.useRef(null),m=s[r];return p.useEffect(()=>{if(!n||!m)return;m.route&&e.pathname!==m.route&&t(m.route);const b=setTimeout(()=>{const v=document.querySelector(m.target);if(!v){console.warn(`Onboarding target not found: ${m.target}`);return}const x=v.getBoundingClientRect(),g=window.pageYOffset||document.documentElement.scrollTop,w=window.pageXOffset||document.documentElement.scrollLeft;f({top:x.top+g,left:x.left+w,width:x.width,height:x.height});let y=0,_=0;const S=320,k=200,C=20;switch(m.position){case"top":y=x.top+g-k-C,_=x.left+w+x.width/2-S/2;break;case"bottom":y=x.bottom+g+C,_=x.left+w+x.width/2-S/2;break;case"left":y=x.top+g+x.height/2-k/2,_=x.left+w-S-C;break;case"right":y=x.top+g+x.height/2-k/2,_=x.right+w+C;break}const E=window.innerWidth;_+S>E&&(_=E-S-20),_<20&&(_=20),c({top:y,left:_}),v.scrollIntoView({behavior:"smooth",block:"center"})},300);return()=>clearTimeout(b)},[n,r,m,t,e.pathname]),!n||!m?null:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"fixed inset-0 bg-black/60 z-50 pointer-events-none animate-fade-in"}),u.jsx("div",{className:"fixed z-50 pointer-events-none transition-all duration-300 ease-out",style:{to
vendor: 5,272 bytes, line 318
318p:`${d.top}px`,left:`${d.left}px`,width:`${d.width}px`,height:`${d.height}px`},children:u.jsx("div",{className:"absolute inset-0 rounded-lg shadow-[0_0_0_4px_rgba(219,39,119,0.6),0_0_20px_8px_rgba(219,39,119,0.3)] animate-pulse"})}),u.jsx(qe,{ref:h,className:"fixed z-[60] w-80 shadow-2xl animate-scale-in border-primary/20",style:{top:`${l.top}px`,left:`${l.left}px`},children:u.jsxs(Qp,{className:"p-6 space-y-4",children:[u.jsxs("div",{className:"flex items-start justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(hn,{className:"w-5 h-5 text-primary"}),u.jsx("h3",{className:"font-semibold text-lg text-primary",children:m.title})]}),u.jsx(ae,{variant:"ghost",size:"icon",className:"h-6 w-6 -mt-1 -mr-1",onClick:a,children:u.jsx(ni,{className:"h-4 w-4"})})]}),u.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m.description}),u.jsx("div",{className:"flex items-center justify-center gap-1.5 pt-2",children:s.map((b,v)=>u.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${v===r?"w-6 bg-primary":"w-1.5 bg-muted"}`},v))}),u.jsxs("div",{className:"flex items-center justify-between pt-2",children:[u.jsxs(ae,{variant:"ghost",size:"sm",onClick:i,disabled:r===0,className:"text-muted-foreground",children:[u.jsx(Vj,{className:"mr-1 h-4 w-4"}),"Back"]}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:[r+1," of ",s.length]}),u.jsxs(ae,{size:"sm",onClick:o,className:"bg-primary hover:bg-primary/90",children:[r===s.length-1?"Finish":"Next",r!==s.length-1&&u.jsx(Hj,{className:"ml-1 h-4 w-4"})]})]}),r<s.length-1&&u.jsx(ae,{variant:"link",size:"sm",onClick:a,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:"Skip tour"})]})})]})};var bd="focusScope.autoFocusOnMount",_d="focusScope.autoFocusOnUnmount",qv={bubbles:!1,cancelable:!0},Q$="FocusScope",Jp=p.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=t,[a,l]=p.useState(null),c=mn(s),d=mn(o),f=p.useRef(null),h=je(e,v=>l(v)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let v=function(y){if(m.paused||!a)return;const _=y.target;a.contains(_)?f.current=_:yr(f.current,{select:!0})},x=function(y){if(m.paused||!a)return;const _=y.relatedTarget;_!==null&&(a.contains(_)||yr(f.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&yr(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const w=new MutationObserver(g);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),w.disconnect()}}},[r,a,m.paused]),p.useEffect(()=>{if(a){Gv.add(m);const v=document.activeElement;if(!a.contains(v)){const g=new CustomEvent(bd,qv);a.addEventListener(bd,c),a.dispatchEvent(g),g.defaultPrevented||(J$(r4(g1(a)),{select:!0}),document.activeElement===v&&yr(a))}return()=>{a.removeEventListener(bd,c),setTimeout(()=>{const g=new CustomEvent(_d,qv);a.addEventListener(_d,d),a.dispatchEvent(g),g.defaultPrevented||yr(v??document.body,{select:!0}),a.removeEventListener(_d,d),Gv.remove(m)},0)}}},[a,c,d,m]);const b=p.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const w=v.currentTarget,[y,_]=X$(w);y&&_?!v.shiftKey&&g===_?(v.preventDefault(),n&&yr(y,{select:!0})):v.shiftKey&&g===y&&(v.preventDefault(),n&&yr(_,{select:!0})):g===w&&v.preventDefault()}},[n,r,m.paused]);return u.jsx(pe.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});Jp.displayName=Q$;function J$(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(yr(r,{select:e}),document.activeElement!==n)return}function X$(t){const e=g1(t),n=Kv(e,t),r=Kv(e.reverse(),t);return[n,r]}function g1(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Kv(t,e){for(const n of t)if(!e4(n,{upTo:e}))return n}function e4(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function t4(t){return t instanceof HTMLInputElement&&"select"in t}function yr(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&t4(t)&&e&&t.select()}}var Gv=n4();function n4(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Yv(t,e),t.unshift(e)},remove(e){var n;t=Yv(t,e),(n=t[0])==null||n.resume()}}}function Yv(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function r4(t){return t.filter(e=>e.tagName!=="A")}var Sd=0;function v1(){p.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Zv()),document.body.insertAdjacentElement("beforeend",t[1]??Zv()),Sd++,()=>{Sd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
vendor: 5,838 bytes, lines 318-333
318=>e.remove()),Sd--}},[])}function Zv(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Tn=function(){return Tn=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tn.apply(this,arguments)};function y1(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function s4(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var Kl="right-scroll-bar-position",Gl="width-before-scroll-bar",o4="with-scroll-bars-hidden",i4="--removed-body-scroll-bar-size";function kd(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function a4(t,e){var n=p.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=e,n.facade}var l4=typeof window<"u"?p.useLayoutEffect:p.useEffect,Qv=new WeakMap;function c4(t,e){var n=a4(null,function(r){return t.forEach(function(s){return kd(s,r)})});return l4(function(){var r=Qv.get(n);if(r){var s=new Set(r),o=new Set(t),i=n.current;s.forEach(function(a){o.has(a)||kd(a,null)}),o.forEach(function(a){s.has(a)||kd(a,i)})}Qv.set(n,t)},[t]),n}function u4(t){return t}function d4(t,e){e===void 0&&(e=u4);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var i=e(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var l=function(){var d=i;i=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return s}function f4(t){t===void 0&&(t={});var e=d4(null);return e.options=Tn({async:!0,ssr:!1},t),e}var w1=function(t){var e=t.sideCar,n=y1(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Tn({},n))};w1.isSideCarExport=!0;function h4(t,e){return t.useMedium(e),w1}var x1=f4(),Ed=function(){},gu=p.forwardRef(function(t,e){var n=p.useRef(null),r=p.useState({onScrollCapture:Ed,onWheelCapture:Ed,onTouchMoveCapture:Ed}),s=r[0],o=r[1],i=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,h=t.sideCar,m=t.noRelative,b=t.noIsolation,v=t.inert,x=t.allowPinchZoom,g=t.as,w=g===void 0?"div":g,y=t.gapMode,_=y1(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,k=c4([n,e]),C=Tn(Tn({},_),s);return p.createElement(p.Fragment,null,d&&p.createElement(S,{sideCar:x1,removeScrollBar:c,shards:f,noRelative:m,noIsolation:b,inert:v,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:y}),i?p.cloneElement(p.Children.only(a),Tn(Tn({},C),{ref:k})):p.createElement(w,Tn({},C,{className:l,ref:k}),a))});gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gu.classNames={fullWidth:Gl,zeroRight:Kl};var p4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function m4(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=p4();return e&&t.setAttribute("nonce",e),t}function g4(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function v4(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var y4=function(){var t=0,e=null;return{add:function(n){t==0&&(e=m4())&&(g4(e,n),v4(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},w4=function(){var t=y4();return function(e,n){p.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},b1=function(){var t=w4(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},x4={left:0,top:0,right:0,gap:0},Cd=function(t){return parseInt(t||"",10)||0},b4=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[Cd(n),Cd(r),Cd(s)]},_4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return x4;var e=b4(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},S4=b1(),So="data-scroll-locked",k4=function(t,e,n,r){var s=t.left,o=t.top,i=t.right,a=t.gap;return n===void 0&&(n="margin"),` 319 .`.concat(o4,` { 320 overflow: hidden `).concat(r,`; 321 padding-right: `).concat(a,"px ").concat(r,`; 322 } 323 body[`).concat(So,`] { 324 overflow: hidden `).concat(r,`; 325 overscroll-behavior: contain; 326 `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&` 327 padding-left: `.concat(s,`px; 328 padding-top: `).concat(o,`px; 329 padding-right: `).concat(i,`px; 330 margin-left:0; 331 margin-top:0; 332 margin-right: `).concat(a,"px ").concat(r,`; 333 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
333")].filter(Boolean).join(""),` 334 } 335 336 .`).concat(Kl,` { 337 right: `).concat(a,"px ").concat(r,`; 338 } 339 340 .`).concat(Gl,` { 341 margin-right: `).concat(a,"px ").concat(r,`; 342 } 343 344 .`).concat(Kl," .").concat(Kl,` { 345 right: 0 `).concat(r,`; 346 } 347 348 .`).concat(Gl," .").concat(Gl,` { 349 margin-right: 0 `).concat(r,`; 350 } 351 352 body[`).concat(So,`] { 353 `).concat(i4,": ").concat(a,`px; 354 } 355`)},Jv=function(){var t=parseInt(document.body.getAttribute(So)||"0",10);return isFinite(t)?t:0},E4=function(){p.useEffect(function(){return document.body.setAttribute(So,(Jv()+1).toString()),function(){var t=Jv()-1;t<=0?document.body.removeAttribute(So):document.body.setAttribute(So,t.toString())}},[])},C4=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;E4();var o=p.useMemo(function(){return _4(s)},[s]);return p.createElement(S4,{styles:k4(o,!e,s,n?"":"!important")})},sh=!1;if(typeof window<"u")try{var bl=Object.defineProperty({},"passive",{get:function(){return sh=!0,!0}});window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{sh=!1}var Ks=sh?{passive:!1}:!1,j4=function(t){return t.tagName==="TEXTAREA"},_1=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!j4(t)&&n[e]==="visible")},T4=function(t){return _1(t,"overflowY")},P4=function(t){return _1(t,"overflowX")},Xv=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=S1(t,r);if(s){var o=k1(t,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},N4=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},R4=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},S1=function(t,e){return t==="v"?T4(e):P4(e)},k1=function(t,e){return t==="v"?N4(e):R4(e)},A4=function(t,e){return t==="h"&&e==="rtl"?-1:1},O4=function(t,e,n,r,s){var o=A4(t,window.getComputedStyle(e).direction),i=o*r,a=n.target,l=e.contains(a),c=!1,d=i>0,f=0,h=0;do{if(!a)break;var m=k1(t,a),b=m[0],v=m[1],x=m[2],g=v-x-o*b;(b||g)&&S1(t,a)&&(f+=g,h+=b);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(h)<1||!s))&&(c=!0),c},_l=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ey=function(t){return[t.deltaX,t.deltaY]},ty=function(t){return t&&"current"in t?t.current:t},$4=function(t,e){return t[0]===e[0]&&t[1]===e[1]},I4=function(t){return` 356 .block-interactivity-`.concat(t,` {pointer-events: none;} 357 .allow-interactivity-`).concat(t,` {pointer-events: all;} 358`)},L4=0,Gs=[];function D4(t){var e=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),s=p.useState(L4++)[0],o=p.useState(b1)[0],i=p.useRef(t);p.useEffect(function(){i.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var v=s4([t.lockRef.current],(t.shards||[]).map(ty),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=p.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var g=_l(v),w=n.current,y="deltaX"in v?v.deltaX:w[0]-g[0],_="deltaY"in v?v.deltaY:w[1]-g[1],S,k=v.target,C=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in v&&C==="h"&&k.type==="range")return!1;var E=Xv(C,k);if(!E)return!0;if(E?S=C:(S=C==="v"?"h":"v",E=Xv(C,k)),!E)return!1;if(!r.current&&"changedTouches"in v&&(y||_)&&(r.current=S),!S)return!0;var O=r.current||S;return O4(O,x,v,O==="h"?y:_,!0)},[]),l=p.useCallback(function(v){var x=v;if(!(!Gs.length||Gs[Gs.length-1]!==o)){var g="deltaY"in x?ey(x):_l(x),w=e.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&$4(S.delta,g)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}
vendor: 4,483 bytes, line 358
358if(!w){var y=(i.current.shards||[]).map(ty).filter(Boolean).filter(function(S){return S.contains(x.target)}),_=y.length>0?a(x,y[0]):!i.current.noIsolation;_&&x.cancelable&&x.preventDefault()}}},[]),c=p.useCallback(function(v,x,g,w){var y={name:v,delta:x,target:g,should:w,shadowParent:M4(g)};e.current.push(y),setTimeout(function(){e.current=e.current.filter(function(_){return _!==y})},1)},[]),d=p.useCallback(function(v){n.current=_l(v),r.current=void 0},[]),f=p.useCallback(function(v){c(v.type,ey(v),v.target,a(v,t.lockRef.current))},[]),h=p.useCallback(function(v){c(v.type,_l(v),v.target,a(v,t.lockRef.current))},[]);p.useEffect(function(){return Gs.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ks),document.addEventListener("touchmove",l,Ks),document.addEventListener("touchstart",d,Ks),function(){Gs=Gs.filter(function(v){return v!==o}),document.removeEventListener("wheel",l,Ks),document.removeEventListener("touchmove",l,Ks),document.removeEventListener("touchstart",d,Ks)}},[]);var m=t.removeScrollBar,b=t.inert;return p.createElement(p.Fragment,null,b?p.createElement(o,{styles:I4(s)}):null,m?p.createElement(C4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function M4(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const F4=h4(x1,D4);var Xp=p.forwardRef(function(t,e){return p.createElement(gu,Tn({},t,{ref:e,sideCar:F4}))});Xp.classNames=gu.classNames;var z4=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Ys=new WeakMap,Sl=new WeakMap,kl={},jd=0,E1=function(t){return t&&(t.host||E1(t.parentNode))},U4=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=E1(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},B4=function(t,e,n,r){var s=U4(e,Array.isArray(t)?t:[t]);kl[n]||(kl[n]=new WeakMap);var o=kl[n],i=[],a=new Set,l=new Set(s),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};s.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),b=m!==null&&m!=="false",v=(Ys.get(h)||0)+1,x=(o.get(h)||0)+1;Ys.set(h,v),o.set(h,x),i.push(h),v===1&&b&&Sl.set(h,!0),x===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return d(e),a.clear(),jd++,function(){i.forEach(function(f){var h=Ys.get(f)-1,m=o.get(f)-1;Ys.set(f,h),o.set(f,m),h||(Sl.has(f)||f.removeAttribute(r),Sl.delete(f)),m||f.removeAttribute(n)}),jd--,jd||(Ys=new WeakMap,Ys=new WeakMap,Sl=new WeakMap,kl={})}},C1=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),s=z4(t);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),B4(r,s,n,"aria-hidden")):function(){return null}},vu="Dialog",[j1,T1]=Ln(vu),[V4,wn]=j1(vu),P1=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=t,a=p.useRef(null),l=p.useRef(null),[c,d]=ti({prop:r,defaultProp:s??!1,onChange:o,caller:vu});return u.jsx(V4,{scope:e,triggerRef:a,contentRef:l,contentId:wo(),titleId:wo(),descriptionId:wo(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};P1.displayName=vu;var N1="DialogTrigger",R1=p.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=wn(N1,n),o=je(e,s.triggerRef);return u.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":nm(s.open),...r,ref:o,onClick:ee(t.onClick,s.onOpenToggle)})});R1.displayName=N1;var em="DialogPortal",[H4,A1]=j1(em,{forceMount:void 0}),O1=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:s}=t,o=wn(em,e);return u.jsx(H4,{scope:e,forceMount:n,children:p.Children.map(r,i=>u.jsx(sr,{present:n||o.open,children:u.jsx(Xc,{asChild:!0,container:s,children:i})}))})};O1.displayName=em;var Nc="DialogOverlay",$1=p.forwardRef((t,e)=>{const n=A1(Nc,t.__scopeDialog),{forceMount:r=n.forceMount,...s}=t,o=wn(Nc,t.__scopeDialog);return o.modal?u.jsx(sr,{present:r||o.open,children:u.jsx(q4,{...s,ref:e})}):null});$1.displayName=Nc;var W4=zo("DialogOverlay.RemoveScroll"),q4=p.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=wn(Nc,n);return u.jsx(Xp,{as:W4,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(pe.div,{"data-state":nm(s.open
vendor: 4,830 bytes, lines 358-362
358),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Rs="DialogContent",I1=p.forwardRef((t,e)=>{const n=A1(Rs,t.__scopeDialog),{forceMount:r=n.forceMount,...s}=t,o=wn(Rs,t.__scopeDialog);return u.jsx(sr,{present:r||o.open,children:o.modal?u.jsx(K4,{...s,ref:e}):u.jsx(G4,{...s,ref:e})})});I1.displayName=Rs;var K4=p.forwardRef((t,e)=>{const n=wn(Rs,t.__scopeDialog),r=p.useRef(null),s=je(e,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return C1(o)},[]),u.jsx(L1,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(t.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ee(t.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:ee(t.onFocusOutside,o=>o.preventDefault())})}),G4=p.forwardRef((t,e)=>{const n=wn(Rs,t.__scopeDialog),r=p.useRef(!1),s=p.useRef(!1);return u.jsx(L1,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=t.onCloseAutoFocus)==null||i.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,c;(l=t.onInteractOutside)==null||l.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),L1=p.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=t,a=wn(Rs,n),l=p.useRef(null),c=je(e,l);return v1(),u.jsxs(u.Fragment,{children:[u.jsx(Jp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:u.jsx(Pa,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":nm(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Z4,{titleId:a.titleId}),u.jsx(J4,{contentRef:l,descriptionId:a.descriptionId})]})]})}),tm="DialogTitle",D1=p.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=wn(tm,n);return u.jsx(pe.h2,{id:s.titleId,...r,ref:e})});D1.displayName=tm;var M1="DialogDescription",F1=p.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=wn(M1,n);return u.jsx(pe.p,{id:s.descriptionId,...r,ref:e})});F1.displayName=M1;var z1="DialogClose",U1=p.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=wn(z1,n);return u.jsx(pe.button,{type:"button",...r,ref:e,onClick:ee(t.onClick,()=>s.onOpenChange(!1))})});U1.displayName=z1;function nm(t){return t?"open":"closed"}var B1="DialogTitleWarning",[Y4,V1]=GC(B1,{contentName:Rs,titleName:tm,docsSlug:"dialog"}),Z4=({titleId:t})=>{const e=V1(B1),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. 359 360If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. 361 362For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return p.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Q4="DialogDescriptionWarning",J4=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V1(Q4).contentName}}.`;return p.useEffect(()=>{var o;const s=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},rm=P1,H1=R1,sm=O1,La=$1,Da=I1,Ma=D1,Fa=F1,yu=U1;const X4=rm,eI=H1,tI=sm,W1=p.forwardRef(({className:t,...e},n)=>u.jsx(La,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:n}));W1.displayName=La.displayName;const nI=Ra("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),q1=p.forwardRef(({side:t="right",className:e,children:n,...r},s)=>u.jsxs(tI,{children:[u.jsx(W1,{}),u.jsxs(Da,{ref:s,className:ue(nI({side:t}),e),...r,children:[n,u.jsxs(yu,{className:"absolute right-4 top-4 roun
362ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(ni,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));q1.displayName=Da.displayName;const K1=({className:t,...e})=>u.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",t),...e});K1.displayName="SheetHeader";const G1=p.forwardRef(({className:t,...e},n)=>u.jsx(Ma,{ref:n,className:ue("text-lg font-semibold text-foreground",t),...e}));G1.displayName=Ma.displayName;const Y1=p.forwardRef(({className:t,...e},n)=>u.jsx(Fa,{ref:n,className:ue("text-sm text-muted-foreground",t),...e}));Y1.displayName=Fa.displayName;const rI=()=>{const{user:t}=ns(),[e,n]=p.useState(!1),[r,s]=p.useState(!0);return p.useEffect(()=>{(async()=>{if(!t){n(!1),s(!1);return}try{const{data:i,error:a}=await Fe.from("profiles").select("is_beta_user").eq("user_id",t.id).single();a?(console.error("Error checking beta status:",a),n(!1)):n((i==null?void 0:i.is_beta_user)||!1)}catch(i){console.error("Error checking beta status:",i),n(!1)}finally{s(!1)}})()},[t]),{isBetaUser:e,loading:r}},sI=Ra("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function oI({className:t,variant:e,...n}){return u.jsx("div",{className:ue(sI({variant:e}),t),...n})}const iI=()=>u.jsxs(oI,{variant:"default",className:"bg-gradient-primary text-white gap-1 px-2 py-1",children:[u.jsx(kp,{className:"h-3 w-3"}),u.jsx("span",{className:"text-xs font-medium",children:"Admin"})]}),aI=1,lI="982b37b5-3b9c-4e48-87ab-e4e11583e969",cI="72417bfd-38f5-4c7a-898f-c4c622a30e0a",uI="/__l5e/assets-v1/982b37b5-3b9c-4e48-87ab-e4e11583e969/cover-2.png",dI="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/982b37b5-3b9c-4e48-87ab-e4e11583e969/cover-2.png",fI="cover-2.png",hI=1252192,pI="image/png",mI="2026-09-06T01:01:06Z",Z1={version:aI,asset_id:lI,project_id:cI,url:uI,r2_key:dI,original_filename:fI,size:hI,content_type:pI,created_at:mI},gI=({activeTab:t,onTabChange:e,onShowAffirmationMirror:n})=>{var x;const{user:r,signOut:s}=ns(),{isAdmin:o}=m1(),{isBetaUser:i}=rI(),a=ir(),{toast:l}=yp(),[c,d]=p.useState(!1),f=async()=>{const{error:g}=await s();g?l({title:"Sign Out Failed",description:g.message,variant:"destructive"}):(l({title:"Signed Out",description:"You have been successfully signed out."}),a("/auth"))},h=[{id:"feed",label:"Feed",icon:Aa,chip:"bg-pink-100 text-pink-600"},{id:"journal",label:"Journal",icon:Hg,dataOnboarding:"journal",chip:"bg-violet-100 text-violet-600"},{id:"mood",label:"Mood",icon:iT,chip:"bg-sky-100 text-sky-600"},{id:"challenges",label:"Challenges",icon:dT,chip:"bg-emerald-100 text-emerald-600"},{id:"profile",label:"Profile",icon:qj,dataOnboarding:"profile",chip:"bg-amber-100 text-amber-600"}],m=[{id:"inspiration",label:"Inspiration",icon:qg,chip:"bg-fuchsia-100 text-fuchsia-600"},{id:"affirmation",label:"Affirmation Mirror",icon:Ep,action:"show-modal",dataOnboarding:"mirror",chip:"bg-amber-100 text-amber-600"},{id:"vision-board",label:"Vision Board",icon:hn,path:"/vision-board",dataOnboarding:"vision",chip:"bg-violet-100 text-violet-600"},{id:"voice-notes",label:"Voice Notes",icon:sT,path:"/voice-notes",chip:"bg-rose-100 text-rose-600"},{id:"ebook",label:"E-book (13 Chapters)",icon:Hg,path:"/ebook",chip:"bg-indigo-100 text-indigo-600"},{id:"workbook",label:"Workbook",icon:Xj,path:"/workbook",chip:"bg-teal-100 text-teal-600"},{id:"premium-library",label:"Premium Library",icon:tT,path:"/premium-library",chip:"bg-purple-100 text-purple-600"},{id:"circles",label:"Circles",icon:pT,path:"/circles",dataOnboarding:"circles",chip:"bg-pink-100 text-pink-600"},{id:"community-gallery",label:"Community Gallery",icon:qg,path:"/community-gallery",chip:"bg-sky-100 text-sky-600"},{id:"premium",label:"Memberships",icon:Zj,path:"/premium",chip:"bg-yellow-100 text-yellow-600"},{id:"signup",label:"Sign-Up",icon:hn,path:"/auth?mode=signup",chip:"bg-emerald-100 text-emerald-600"},{id:"install",label:"Install App",icon:Qj,path:"/install",chip:"bg-slate-100 text-slate-600"},{id:"weekly-checkin",label:"Weekly Check-in",icon:Kj,path:"/weekly-beta-feedback",betaOnly:!0,chip:"bg-cyan-100 text-cyan-600"},{id:"admin-dashboard",label:"Admin Dashboard",icon:fT,path:"/admin/dashboard",adminOnly:!0,chip:"bg-orange-100 text-orange-600"},{id:"admin",label:"Admin",icon:kp,path:"/admin",adminOnly:!0,chip:"bg-red-100 text-red-600"}],b=g=>{g.action==="show-modal"&&n?(d(!1),n()):g.path?(d(!1),a(g.path)):(d(!1),e(g.id))},v=m.filter(g=>(!g.adminOnly||o)&&(!g.betaOnly||i));return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"sticky top-0 z-40 w-full bg-background/80 backdrop-blur-md border-b border-border/50",children:u.jsxs("div",{className:"max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl mx-auto px-4 sm:px-6 py-2.5 flex items-center justify-between gap-3",children:[u.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",children:r&&u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"text-sm sm:text-base font-semibold text-foreground truncate",children:["Welcome back",(x=r.user_metadata)!=null&&x.display_name?`, ${r.user_metadata.display_name}`:"","! ð"]}),o&&u.jsx(iI,{})]})}),u.jsx("nav",{className:"hidden lg:flex items-center gap-1 flex-1 justify-center","aria-label":"Dashboard sections",children:h.map(g=>{const w=g.icon,y=t===g.id;return u.jsxs("button",{onClick:()=>b(g),"data-onboarding":g.dataOnboarding,"aria-label":g.label,"aria-current":y?"page":void 0,className:`flex items-center gap-2 px-4 py-2 rounded-full transition-gentle min-h-[40px] ${y?"bg-primary/10 ring-1 ring-primary/30":"hover:bg-muted/60"}`,children:[u.jsx("span",{className:`flex items-center justify-center h-7 w-7 rounded-full ${g.chip}`,children:u.jsx(w,{className:"h-4 w-4"})}),u.jsx("span",{className:`text-sm ${y?"font-semibold text-foreground":"font-medium text-muted-foreground"}`,children:g.label})]},g.id)})}),u.jsxs(X4,{open:c,onOpenChange:d,children:[u.jsx(eI,{asChild:!0,children:u.jsxs(ae,{variant:"outline",size:"sm",className:"flex items-center gap-2 rounded-full min-h-[40px] px-4","aria-label":"Open menu",children:[u.jsx(rT,{className:"h-4 w-4"}),u.jsx("span",{className:"text-sm font-medium",children:"Menu"})]})}),u.jsxs(q1,{side:"right",className:"w-full sm:max-w-md overflow-y-auto p-0",children:[u.jsxs("div",{className:"relative h-40 w-full overflow-hidden",children:[u.jsx("img",{src:Z1.url,alt:"Three diverse young women taking a selfie together",className:"w-full h-full object-cover object-top",loading:"lazy",width:1280,height:720}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/40 to-transparent"}),u.jsxs(K1,{className:"absolute bottom-2 left-4 text-left",children:[u.jsx(G1,{className:"text-xl font-bold text-foreground drop-shadow-sm",children:"Explore HERPower â¨"}),u.jsx(Y1,{className:"sr-only",children:"Navigate to HERPower features, your account, and settings."})]})]}),u.jsx("div",{className:"grid grid-cols-2 gap-3 p-4",children:v.map(g=>{const w=g.icon,y=t===g.id;return u.jsxs("button",{onClick:()=>b(g),"data-onboarding":g.dataOnboarding,className:`flex items-center gap-3 p-3 rounded-2xl text-left transition-gentle min-h-[56px] ${y?"bg-primary/10 ring-1 ring-primary/30":"bg-card hover:bg-muted/60"}`,children:[u.jsx("span",{className:`flex items-center justify-center h-10 w-10 rounded-xl flex-shrink-0 ${g.chip}`,children:u.jsx(w,{className:"h-5 w-5"})}),u.jsx("span",{className:"text-sm font-medium text-foreground leading-tight",children:g.label})]},g.id)})}),r&&u.jsx("div",{className:"px-4 pb-6",children:u.jsxs(ae,{variant:"outline",onClick:f,className:"w-full flex items-center gap-2 min-h-[44px] rounded-2xl",children:[u.jsx(nT,{className:"h-4 w-4"}),u.jsx("span",{children:"Sign Out"})]})})]})]})]})}),u.jsx("nav",{className:"fixed bottom-0 inset-x-0 z-40 bg-background/90 backdrop-blur-md border-t border-border/50 pb-[env(safe-area-inset-bottom)] lg:hidden",children:u.jsx("div",{className:"max-w-lg mx-auto px-2 py-2 grid grid-cols-5 ga
362p-1",children:h.map(g=>{const w=g.icon,y=t===g.id;return u.jsxs("button",{onClick:()=>b(g),"data-onboarding":g.dataOnboarding,className:"flex flex-col items-center gap-1 py-1.5 rounded-xl transition-gentle min-h-[60px]","aria-label":g.label,"aria-current":y?"page":void 0,children:[u.jsx("span",{className:`flex items-center justify-center h-9 w-14 rounded-full transition-gentle ${y?g.chip:"text-muted-foreground"}`,children:u.jsx(w,{className:"h-5 w-5"})}),u.jsx("span",{className:`text-[13px] leading-tight tracking-tight ${y?"font-semibold text-foreground":"font-medium text-muted-foreground"}`,children:g.label})]},g.id)})})})]})};function Q1(t,e){p.useEffect(()=>{if(t&&(document.title=t),e){let n=document.querySelector('meta[name="description"]');n||(n=document.createElement("meta"),n.setAttribute("name","description"),document.head.appendChild(n)),n.setAttribute("content",e)}},[t,e])}const vI={"/assessment":"Self-Talk Check | HERPower","/profile":"Your Profile | HERPower","/mirror":"Affirmation Mirror | HERPower","/voice-notes":"Voice Notes | HERPower","/vision-board":"Vision Board | HERPower","/community-vision-boards":"Community Vision Boards | HERPower","/ebook":"HERPower E-Book | HERPower","/workbook":"Companion Workbook | HERPower","/ebook-notes":"HERPower Notes | HERPower","/premium":"Memberships | HERPower","/subscription":"Manage Subscription | HERPower","/journal-history":"Journal History | HERPower","/saved-affirmations":"Saved Affirmations | HERPower","/circles":"Sisterhood Circles | HERPower","/community-gallery":"Community Gallery | HERPower","/premium-library":"Premium Library | HERPower","/install":"Install the App | HERPower","/exit-survey":"Exit Survey | HERPower"},yI=()=>{const{user:t,loading:e}=ns(),n=ir(),r=yn();if(Q1(vI[r.pathname]||(r.pathname.startsWith("/admin")?"Admin | HERPower":"HERPower")),p.useEffect(()=>{if(!e&&!t){const a=`${r.pathname}${r.search}`;n(`/auth?redirect=${encodeURIComponent(a)}`)}},[e,t,n,r.pathname,r.search]),e||!t)return u.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:u.jsx(p1,{})});const s=r.pathname;let o="";s==="/dashboard"?o="feed":s==="/voice-notes"?o="voice-notes":s==="/vision-board"||s==="/community-vision-boards"?o="vision-board":s==="/circles"?o="circles":s==="/community-gallery"?o="community-gallery":s==="/ebook"?o="ebook":s==="/workbook"?o="workbook":s==="/ebook-notes"?o="ebook-notes":s==="/premium-library"?o="premium-library":s==="/premium"||s==="/subscription"?o="premium":s==="/beta/feedback"||s==="/weekly-beta-feedback"||s==="/exit-survey"?o="weekly-checkin":s==="/install"?o="install":s==="/assessment"?o="":s==="/mirror"?o="affirmation":s==="/journal-history"?o="journal":s==="/saved-affirmations"?o="inspiration":s==="/profile"?o="profile":s==="/admin/dashboard"?o="admin-dashboard":(s==="/admin"||s.startsWith("/admin"))&&(o="admin");const i=()=>{n("/dashboard")};return u.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[u.jsx(gI,{activeTab:o,onTabChange:i}),u.jsx("main",{className:"flex-1 w-full pb-24 lg:pb-10",children:u.jsx(AR,{})})]})},Td="2026.01.13.1",ny="herpower_app_version",ry="herpower_last_cache_check",wI=async()=>{try{const t=localStorage.getItem(ny),e=localStorage.getItem(ry),n=Date.now();return e&&n-parseInt(e)<36e5?!1:(localStorage.setItem(ry,n.toString()),t!==Td?(console.log(`App update detected: ${t} -> ${Td}`),await xI(),localStorage.setItem(ny,Td),!0):!1)}catch(t){return console.error("Error checking for updates:",t),!1}},xI=async()=>{try{if("caches"in window){const t=await caches.keys();await Promise.all(t.map(e=>caches.delete(e))),console.log("Service worker caches cleared")}if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistrations();for(const e of t)await e.unregister();console.log("Service workers unregistered")}}catch(t){console.error("Error clearing caches:",t)}},bI=1,_I="530c73d7-8e03-4ab0-b54c-30b0b7a2daf0",SI="72417bfd-38f5-4c7a-898f-c4c622a30e0a",kI="/__l5e/assets-v1/530c73d7-8e03-4ab0-b54c-30b0b7a2daf0/herpower-demo.mp4",EI="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/530c73d7-8e03-4ab0-b54c-30b0b7a2daf0/herpower-demo.mp4",CI="herpower-demo.mp4",jI=22998973,TI="video/mp4",PI="2026-09-28T18:09:53Z",NI={version:bI,asset_id:_I,project_id:SI,url:kI,r2_key:EI,original_filename:CI,size:jI,content_type:TI,created_at:PI},RI=1,AI="62882b9c-515b-4fcb-95d5-a9679b6ea399",OI="72417bfd-38f5-4c7a-898f-c4c622a30e0a",$I="/__l5e/assets-v1/62882b9c-515b-4fcb-95d5-a9679b6ea399/xavi-intro.mp4",II="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/62882b9c-515b-4fcb-95d5-a9679b6ea399/xavi-intro.mp4",LI="xavi-intro.mp4",DI=31465295,MI="video/mp4",FI="2026-09-28T18:27:12Z",zI={version:RI,asset_id:AI,project_id:OI,url:$I,r2_key:II,original_filename:LI,size:DI,content_type:MI,created_at:FI},UI=1,BI="3440afb7-02e8-40fe-b009-827b68700b19",VI="72417bfd-38f5-4c7a-898f-c4c622a30e0a",HI="/__l5e/assets-v1/3440afb7-02e8-40fe-b009-827b68700b19/demo-poster.jpg",WI="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/3440afb7-02e8-40fe-b009-827b68700b19/demo-poster.jpg",qI="demo-poster.jpg",KI=197207,GI="image/jpeg",YI="2026-09-28T18:30:31Z",ZI={version:UI,asset_id:BI,project_id:VI,url:HI,r2_key:WI,original_filename:qI,size:KI,content_type:GI,
362created_at:YI},QI=1,JI="c091273e-8c17-4819-aed1-ff006e530755",XI="72417bfd-38f5-4c7a-898f-c4c622a30e0a",e3="/__l5e/assets-v1/c091273e-8c17-4819-aed1-ff006e530755/xavi-intro-poster.jpg",t3="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/c091273e-8c17-4819-aed1-ff006e530755/xavi-intro-poster.jpg",n3="xavi-intro-poster.jpg",r3=134597,s3="image/jpeg",o3="2026-09-28T18:30:34Z",i3={version:QI,asset_id:JI,project_id:XI,url:e3,r2_key:t3,original_filename:n3,size:r3,content_type:s3,created_at:o3},a3="/assets/hero-mirror-pink-dream-DoAhlxcj.jpg",oh="/assets/HERPower_logo-BNYEc2UO.png",l3=1,c3="b6544cfd-2870-41be-b6ee-cb2e4030921f",u3="72417bfd-38f5-4c7a-898f-c4c622a30e0a",d3="/__l5e/assets-v1/b6544cfd-2870-41be-b6ee-cb2e4030921f/xavi-founder.jpg",f3="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/b6544cfd-2870-41be-b6ee-cb2e4030921f/xavi-founder.jpg",h3="xavi-founder.jpg",p3=285646,m3="image/jpeg",g3="2026-09-17T01:34:10Z",v3={version:l3,asset_id:c3,project_id:u3,url:d3,r2_key:f3,original_filename:h3,size:p3,content_type:m3,created_at:g3}
362,y3=1,w3="889d71f3-251b-4d89-b7c7-7ee44f45ac38",x3="72417bfd-38f5-4c7a-898f-c4c622a30e0a",b3="/__l5e/assets-v1/889d71f3-251b-4d89-b7c7-7ee44f45ac38/shawnie-founder.jpg",_3="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/889d71f3-251b-4d89-b7c7-7ee44f45ac38/shawnie-founder.jpg",S3="shawnie-founder.jpg",k3=741971,E3="image/jpeg",C3="2026-09-17T01:34:13Z",j3={version:y3,asset_id:w3,project_id:x3,url:b3,r2_key:_3,original_filename:S3,size:k3,content_type:E3,created_at:C3},T3=1,P3="3c6a3eb8-f5d6-48ae-9949-d73ab8df94ed",N3="72417bfd-38f5-4c7a-898f-c4c622a30e0a",R3="/__l5e/assets-v1/3c6a3eb8-f5d6-48ae-9949-d73ab8df94ed/depressed.png",A3="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/3c6a3eb8-f5d6-48ae-9949-d73ab8df94ed/depressed.png",O3="depressed.png",$3=1604882,I3="image/png",L3="2026-09-06T00:01:00Z",D3={version:T3,asset_id:P3,project_id:N3,url:R3,r2_key:A3,original_filename:O3,size:$3,content_type:I3,created_at:L3},M3=1,F3="51611c03-1c84-4177-b5d8-bddb03263d9e",z3="72417bfd-38f5-4c7a-898f-c4c622a30e0a",U3="/__l5e/assets-v1/51611c03-1c84-4177-b5d8-bddb03263d9e/checkin_black_girl.png",B3="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/51611c03-1c84-4177-b5d8-bddb03263d9e/checkin_black_girl.png",V3="checkin_black_girl.png",H3=1623466,W3="image/png",q3="2026-09-17T00:28:09Z",sy={version:M3,asset_id:F3,project_id:z3,url:U3,r2_key:B3,original_filename:V3,size:H3,content_type:W3,created_at:q3},K3=1,G3="86281519-7703-4457-9a2a-565a30dda17d",Y3="72417bfd-38f5-4c7a-898f-c4c622a30e0a",Z3="/__l5e/assets-v1/86281519-7703-4457-9a2a-565a30dda17d/be_me.png",Q3="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/86281519-7703-4457-9a2a-565a30dda17d/be_me.png",J3="be_me.png",X3=1794022,eL="image/png",tL="2026-09-06T00:01:11Z",nL={version:K3,asset_id:G3,project_id:Y3,url:Z3,r2_key:Q3,original_filename:J3,size:X3,content_type:eL,created_at:tL},rL=1,sL="8ef3d347-0114-4129-80aa-dce636a1bbdc",oL="72417bfd-38f5-4c7a-898f-c4c622a30e0a",iL="/__l5e/assets-v1/8ef3d347-0114-4129-80aa-dce636a1bbdc/am_i.png",aL="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/8ef3d347-0114-4129-80aa-dce636a1bbdc/am_i.png",lL="am_i.png",cL=1074720,uL="image/png",dL="2026-09-06T00:01:19Z",fL={version:rL,asset_id:sL,project_id:oL,url:iL,r2_key:aL,original_filename:lL,size:cL,content_type:uL,created_at:dL},hL=1,pL="e1b7d00d-f8c0-4993-8efe-7df50ab7abd9",mL="72417bfd-38f5-4c7a-898f-c4c622a30e0a",gL="/__l5e/assets-v1/e1b7d00d-f8c0-4993-8efe-7df50ab7abd9/young_white_girl.png",vL="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/e1b7d00d-f8c0-4993-8efe-7df50ab7abd9/young_white_girl.png",yL="young_white_girl.png",wL=1498903,xL="image/png",bL="2026-09-06T00:14:29Z",_L={version:hL,asset_id:pL,project_id:mL,url:gL,r2_key:vL,original_filename:yL,size:wL,content_type:xL,created_at:bL},SL=1,kL="6ad0d903-9ada-459b-8ddb-28c655ab2930",EL="72417bfd-38f5-4c7a-898f-c4c622a30e0a",CL="/__l5e/assets-v1/6ad0d903-9ada-459b-8ddb-28c655ab2930/asian_girl_2.png",jL="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/6ad0d903-9ada-459b-8ddb-28c655ab2930/asian_girl_2.png",TL="asian_girl_2.png",PL=1471574,NL="image/png",RL="2026-09-06T00:14:38Z",AL={version:SL,asset_id:kL,project_id:EL,url:CL,r2_key:jL,original_filename:TL,size:PL,content_type:NL,created_at:RL},OL=1,$L="9243f9e2-ca78-4baf-ae35-7224c00f9064",IL="72417bfd-38f5-4c7a-898f-c4c622a30e0a",LL="/__l5e/assets-v1/9243f9e2-ca78-4baf-ae35-7224c00f9064/yes_confident.png",DL="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/9243f9e2-ca78-4baf-ae35-7224c00f9064/yes_confident.png",ML="yes_confident.png",FL=1529047,zL="image/png",UL="2026-09-06T00:14:22Z",BL={version:OL,asset_id:$L,project_id:IL,url:LL,r2_key:DL,original_filename:ML,size:FL,content_type:zL,created_at:UL},VL=1,HL="9bec01f1-e45e-4e25-99fe-9a47fa24756b",WL="72417bfd-38f5-4c7a-898f-c4c622a30e0a",qL="/__l5e/assets-v1/9bec01f1-e45e-4e25-99fe-9a47fa24756b/latina_girl.png",KL="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/9bec01f1-e45e-4e25-99fe-9a47fa24756b/latina_girl.png",GL="latina_girl.png",YL=1879820,ZL="image/png",QL="2026-09-06T00:14:58Z",JL={version:VL,asset_id:HL,project_id:WL,url:qL,r2_key:KL,original_filename:GL,size:YL,content_type:ZL,created_at:QL},XL=()=>{const t=ir(),e=yn(),[n,r]=p.useState({days:0,hours:0,minutes:0,seconds:0}),s=2026,o=new Date("2026-02-24T23:11:00"),i=new Date("2026-02-25T23:59:59"),a=new Date,l=a<=o;if(p.useEffect(()=>{const h=()=>{const b=new Date,v=o.getTime()-b.getTime();v>0?r({days:Math.floor(v/864e5),hours:Math.floor(v/36e5%24),minutes:Math.floor(v/1e3/60%60),seconds:Math.floor(v/1e3%60)}):r({days:0,hours:0,minutes:0,seconds:0})};h();const m=setInterval(h,1e3);return()=>clearInterval(m)},[]),a>i)return null;const c=()=>{e.pathname==="/ebook"?window.scrollTo({top:0,behavior:"smooth"}):t("/ebook")},d=l?"$15.99":"$19.99",f=l?"Save $4!":"";return u.jsxs("div",{className:"relative overflow-hidden rounded-lg p-6 mb-6 bg-gradient-to-r from-purple-600/95 via-pink-500/95 to-amber-400/95",children:[u.jsx("div",{className:"absolute top-2 right-4 w-20 h-20 opacity-30",children:u.jsx(Ep,{className:"w-full h-full text-yellow-200 animate-pulse"})}
362),u.jsx("div",{className:"absolute top-8 right-16 w-12 h-12 opacity-20",children:u.jsx(hn,{className:"w-full h-full text-white animate-pulse"})}),u.jsx("div",{className:"absolute bottom-2 left-2 w-16 h-16 opacity-20",children:u.jsx(Wg,{className:"w-full h-full text-pink-200"})}),u.jsxs("div",{className:"relative z-10",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(hn,{className:"w-5 h-5 text-yellow-300 animate-pulse"}),u.jsx("span",{className:"text-white font-bold uppercase tracking-wider text-sm",children:"ð New Year Special ð¥³"}),u.jsx(hn,{className:"w-5 h-5 text-yellow-300 animate-pulse"})]}),u.jsxs("h3",{className:"text-2xl md:text-3xl font-bold text-white mb-2",children:["Ring in ",s," with Self-Love! ð"]}),l&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[u.jsx(Gj,{className:"w-5 h-5 text-yellow-300"}),u.jsx("span",{className:"text-white/90 text-sm font-medium",children:"Deal ends in:"})]}),u.jsxs("div",{className:"flex gap-2 md:gap-3 mb-4",children:[u.jsx(El,{value:n.days,label:"Days"}),u.jsx(El,{value:n.hours,label:"Hours"}),u.jsx(El,{value:n.minutes,label:"Mins"}),u.jsx(El,{value:n.seconds,label:"Secs"})]})]}),u.jsx("p",{className:"text-white/95 text-sm md:text-base mb-4",children:l?u.jsxs(u.Fragment,{children:["Celebrate the New Year with our special bundle at ",u.jsx("span",{className:"font-bold text-yellow-300",children:d}),"!",f&&u.jsxs("span",{className:"font-bold text-yellow-300",children:[" ",f]})," ","Get the E-book + Workbook bundle and start your self-love journey in ",s,".",u.jsx("span",{className:"font-semibold",children:" Offer ends February 24th at 11:11 PM!"})]}):u.jsxs(u.Fragment,{children:["Start your self-love journey in ",s,"! Get the E-book + Workbook bundle at ",u.jsx("span",{className:"font-bold",children:d}),". Get instant lifetime access to empower your journey."]})}),u.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-white/90 text-xs md:text-sm mb-4",children:[u.jsxs("div",{className:"flex items-center gap-2 bg-white/15 px-3 py-1.5 rounded-full backdrop-blur-sm",children:[u.jsx(oy,{}),u.jsx("span",{children:"Instant Access"})]}),u.jsxs("div",{className:"flex items-center gap-2 bg-white/15 px-3 py-1.5 rounded-full backdrop-blur-sm",children:[u.jsx(oy,{}),u.jsx("span",{children:"No Subscription"})]}),l&&u.jsxs("div",{className:"flex items-center gap-2 bg-yellow-400/30 px-3 py-1.5 rounded-full backdrop-blur-sm border border-yellow-300/50",children:[u.jsx(Wg,{className:"w-4 h-4 text-yellow-300"}),u.jsxs("span",{className:"font-bold text-yellow-200",children:["Limited Time: ",d]})]})]}),u.jsx(ae,{size:"lg",onClick:c,className:"bg-white text-purple-600 hover:bg-white/90 font-bold px-6 py-5 text-base shadow-lg",children:l?`Get Bundle for ${d}`:"Shop New Year Special"})]})]})},El=({value:t,label:e})=>u.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-lg px-3 py-2 min-w-[60px] text-center border border-white/30",children:[u.jsx("div",{className:"text-2xl md:text-3xl font-bold text-white tabular-nums",children:t.toString().padStart(2,"0")}),u.jsx("div",{className:"text-xs text-white/80 uppercase tracking-wider",children:e})]}),oy=()=>u.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:u.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})});function J1(t,[e,n]){return Math.min(n,Math.max(e,t))}var eD=p.createContext(void 0);function om(t){const e=p.useContext(eD);return t||e||"ltr"}function tD(t){const e=p.useRef({value:t,previous:t});return p.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var X1=["PageUp","PageDown"],e_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],t_={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ui="Slider",[ih,nD,rD]=wp(ui),[n_,O8]=Ln(ui,[rD]),[sD,wu]=n_(ui),r_=p.forwardRef((t,e)=>{const{name:n,min:r=0,max:s=100,step:o=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:d,onValueChange:f=()=>{},onValueCommit:h=()=>{},inverted:m=!1,form:b,...v}=t,x=p.useRef(new Set),g=p.useRef(0),y=i==="horizontal"?oD:iD,[_=[],S]=ti({prop:d,defaultProp:c,onChange:D=>{var U;(U=[...x.current][g.current])==null||U.focus(),f(D)}}),k=p.useRef(_);function C(D){const $=dD(_,D);P(D,$)}function E(D){P(D,g.current)}function O(){const D=k.current[g.current];_[g.current]!==D&&h(_)}function P(D,$,{commit:U}={commit:!1}){const A=mD(o),I=gD(Math.round((D-r)/o)*o+r,A),z=J1(I,[r,s]);S((V=[])=>{const j=cD(V,z,$);if(pD(j,l*o)){g.current=j.indexOf(z);const R=String(j)!==String(V);return R&&U&&h(j),R?j:V}else return V})}return u.jsx(sD,{scope:t.__scopeSlider,name:n,disabled:a,min:r,max:s,valueIndexToChangeRef:g,thumbs:x.current,values:_,orientation:i,form:b,children:u.jsx(ih.Provider,{scope:t.__scopeSlider,children:u.jsx(ih.Slot,{scope:t.__scopeSlider,children:u.jsx(y,{"aria-disabled":a,"data-disabled":a?"":void 0,...v,ref:e,onPointerDown:ee(v.onPointerDown,()=>{a||(k.current=_)}),min:r,max:s,inverted:m,onSlideStart:a?void 0:C,onSlideMove:a?void 0:E,onSlideEnd:a?void 0:O,onHomeKeyDown:()=>!a&&P(r,0,{commit:!0}),onEndKeyDown:()=>!a&&P(s,_.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:$})=>{if(!a){const I=X1.includes(D.key)||D.shiftKey&&e_.includes(D.key)?10:1,z=g.current,V=_[z],j=o*I*$;P(V+j,z,{commit:!0})}}})})})})});r_.displayName=ui;var[s_,o_]=n_(ui,{startEdge:"left",endEdge:"right",size:"width",direction:1}),oD=p.forwardRef((t,e)=>{const{min:n,max:r,dir:s,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...d}=t,[f,h]=p.useState(null),m=je(e,y=>h(y)),b=p.useRef(void 0),v=om(s),x=v==="ltr",g=x&&!o||!x&&o;function w(y){const _=b.current||f.getBoundingClientRect(),S=[0,_.width],C=im(S,g?[n,r]:[r,n]);return b.current=_,C(y-_.left)}return u.jsx(s_,{scope:t.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:u.jsx(i_,{dir:v,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const _=w(y.clientX);i==null||i(_)},onSlideMove:y=>{const _=w(y.clientX);a==null||a(_)},onSlideEnd:()=>{b.current=void 0,l==null||l()},onStepKeyDown:y=>{const S=t_[g?"from-left":"from-right"].includes(y.key);c==null||c({event:y,direction:S?-1:1})}})})}),iD=p.forwardRef((t,e)=>{const{min:n,max:r,inverted:s,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...c}=t,d=p.useRef(null),f=je(e,d),h=p.useRef(void 0),m=!s;function b(v){const x=h.current||d.current.getBoundingClientRect(),g=[0,x.height],y=im(g,m?[r,n]:[n,r]);return h.current=x,y(v-x.top)}return u.jsx(s_,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:u.jsx(i_,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const x=b(v.clientY);o==null||o(x)},onSlideMove:v=>{const x=b(v.clientY);i==null||i(x)},onSlideEnd:()=>{h.current=void 0,a==null||a()},onStepKeyDown:v=>{const g=t_[m?"from-bottom":"from-top"].includes(v.key);l==null||l({event:v,direction:g?-1:1})}})})}),i_=p.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:s,onSlideEnd:o,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...c}=t,d=wu(ui,n);
362return u.jsx(pe.span,{...c,ref:e,onKeyDown:ee(t.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):X1.concat(e_).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:ee(t.onPointerDown,f=>{const h=f.target;h.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(h)?h.focus():r(f)}),onPointerMove:ee(t.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&s(f)}),onPointerUp:ee(t.onPointerUp,f=>{const h=f.target;h.hasPointerCapture(f.pointerId)&&(h.releasePointerCapture(f.pointerId),o(f))})})}),a_="SliderTrack",l_=p.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,s=wu(a_,n);return u.jsx(pe.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...r,ref:e})});l_.displayName=a_;var ah="SliderRange",c_=p.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,s=wu(ah,n),o=o_(ah,n),i=p.useRef(null),a=je(e,i),l=s.values.length,c=s.values.map(h=>f_(h,s.min,s.max)),d=l>1?Math.min(...c):0,f=100-Math.max(...c);return u.jsx(pe.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...r,ref:a,style:{...t.style,[o.startEdge]:d+"%",[o.endEdge]:f+"%"}})});c_.displayName=ah;var lh="SliderThumb",u_=p.forwardRef((t,e)=>{const n=nD(t.__scopeSlider),[r,s]=p.useState(null),o=je(e,a=>s(a)),i=p.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return u.jsx(aD,{...t,ref:o,index:i})}),aD=p.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,name:s,...o}=t,i=wu(lh,n),a=o_(lh,n),[l,c]=p.useState(null),d=je(e,w=>c(w)),f=l?i.form||!!l.closest("form"):!0,h=tb(l),m=i.values[r],b=m===void 0?0:f_(m,i.min,i.max),v=uD(r,i.values.length),x=h==null?void 0:h[a.size],g=x?fD(x,b,a.direction):0;return p.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${b}% + ${g}px)`},children:[u.jsx(ih.ItemSlot,{scope:t.__scopeSlider,children:u.jsx(pe.span,{role:"slider","aria-label":t["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":m,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...o,ref:d,style:m===void 0?{display:"none"}:t.style,onFocus:ee(t.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),f&&u.jsx(d_,{name:s??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:m},r)]})});u_.displayName=lh;var lD="RadioBubbleInput",d_=p.forwardRef(({__scopeSlider:t,value:e,...n},r)=>{const s=p.useRef(null),o=je(s,r),i=tD(e);return p.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==e&&d){const f=new Event("input",{bubbles:!0});d.call(a,e),a.dispatchEvent(f)}},[i,e]),u.jsx(pe.input,{style:{display:"none"},...n,ref:o,defaultValue:e})});d_.displayName=lD;function cD(t=[],e,n){const r=[...t];return r[n]=e,r.sort((s,o)=>s-o)}function f_(t,e,n){const o=100/(n-e)*(t-e);return J1(o,[0,100])}function uD(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function dD(t,e){if(t.length===1)return 0;const n=t.map(s=>Math.abs(s-e)),r=Math.min(...n);return n.indexOf(r)}function fD(t,e,n){const r=t/2,o=im([0,50],[0,r]);return(r-o(e)*n)*n}function hD(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function pD(t,e){if(e>0){const n=hD(t);return Math.min(...n)>=e}return!0}function im(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function mD(t){return(String(t).split(".")[1]||"").length}function gD(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var h_=r_,vD=l_,yD=c_,wD=u_;const p_=p.forwardRef(({className:t,...e},n)=>u.jsxs(h_,{ref:n,className:ue("relative flex w-full touch-none select-none items-center",t),...e,children:[u.jsx(vD,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:u.jsx(yD,{className:"absolute h-full bg-primary"})}),u.jsx(wD,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));p_.displayName=h_.displayName;var xu="Popover",[m_,$8]=Ln(xu,[ou]),za=ou(),[xD,rs]=m_(xu),g_=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!1}=t,a=za(e),l=p.useRef(null),[c,d]=p.useState(!1),[f,h]=ti({prop:r,defaultProp:s??!1,onChange:o,caller:xu});return u.jsx(QP,{...a,children:u.jsx(xD,{scope:e,contentId:wo(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>d(!0),[]),onCustomAnchorRemove:p.useCallback(()=>d(!1),[]),modal:i,children:n})})};g_.displayName=xu;var v_="PopoverAnchor",bD=p.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=rs(v_,n),o=za(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=s;return p.useEffect(()=>(i(),()=>a()),[i,a]),u.jsx(Lp,{...o,...r,ref:e})});bD.displayName=v_;var y_="PopoverTrigger",w_=p.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=rs(y_,n),o=za(n),i=je(e,s.triggerRef),a=u.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":k_(s.open
362),...r,ref:i,onClick:ee(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:u.jsx(Lp,{asChild:!0,...o,children:a})});w_.displayName=y_;var am="PopoverPortal",[_D,SD]=m_(am,{forceMount:void 0}),x_=t=>{const{__scopePopover:e,forceMount:n,children:r,container:s}=t,o=rs(am,e);return u.jsx(_D,{scope:e,forceMount:n,children:u.jsx(sr,{present:n||o.open,children:u.jsx(Xc,{asChild:!0,container:s,children:r})})})};x_.displayName=am;var Ho="PopoverContent",b_=p.forwardRef((t,e)=>{const n=SD(Ho,t.__scopePopover),{forceMount:r=n.forceMount,...s}=t,o=rs(Ho,t.__scopePopover);return u.jsx(sr,{present:r||o.open,children:o.modal?u.jsx(ED,{...s,ref:e}):u.jsx(CD,{...s,ref:e})})});b_.displayName=Ho;var kD=zo("PopoverContent.RemoveScroll"),ED=p.forwardRef((t,e)=>{const n=rs(Ho,t.__scopePopover),r=p.useRef(null),s=je(e,r),o=p.useRef(!1);return p.useEffect(()=>{const i=r.current;if(i)return C1(i)},[]),u.jsx(Xp,{as:kD,allowPinchZoom:!0,children:u.jsx(__,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),o.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ee(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ee(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),CD=p.forwardRef((t,e)=>{const n=rs(Ho,t.__scopePopover),r=p.useRef(!1),s=p.useRef(!1);return u.jsx(__,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=t.onCloseAutoFocus)==null||i.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,c;(l=t.onInteractOutside)==null||l.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),__=p.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...f}=t,h=rs(Ho,n),m=za(n);return v1(),u.jsx(Jp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:u.jsx(Pa,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:u.jsx(db,{"data-state":k_(h.open),role:"dialog",id:h.contentId,...m,...f,ref:e,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),S_="PopoverClose",jD=p.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=rs(S_,n);return u.jsx(pe.button,{type:"button",...r,ref:e,onClick:ee(t.onClick,()=>s.onOpenChange(!1))})});jD.displayName=S_;var TD="PopoverArrow",PD=p.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=za(n);return u.jsx(fb,{...s,...r,ref:e})});PD.displayName=TD;function k_(t){return t?"open":"closed"}var ND=g_,RD=w_,AD=x_,E_=b_;const OD=ND,$D=RD,C_=p.forwardRef(({className:t,align:e="center",sideOffset:n=4,...r},s)=>u.jsx(AD,{children:u.jsx(E_,{ref:s,align:e,sideOffset:n,className:ue("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));C_.displayName=E_.displayName;const Cl=[{name:"Bird Chirping",url:"webaudio://birds-tweeting",duration:"â"},{name:"Rain Sounds",url:"webaudio://rain-sounds",duration:"â"},{name:"Ocean Waves",url:"webaudio://ocean-waves",duration:"â"}],ID=()=>{const[t,e]=p.useState(!1),[n,r]=p.useState([.3]),[s,o]=p.useState(0),[i,a]=p.useState(!1);p.useRef(null);const l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),f=p.useRef([]),h=p.useRef([]),m=()=>{if(!l.current||l.current.state==="closed"){const _=window.AudioContext||window.webkitAudioContext,S=new _;l.current=S;const k=window;k.__herpowerAudioContexts=k.__herpowerAudioContexts||new Set,k.__herpowerAudioContexts.add(S)}return l.current},b=()=>{if(c.current){try{c.current.stop()}catch{}c.current=null}if(f.current.forEach(_=>{try{_.stop()}catch{}}),f.current=[],h.current.forEach(_=>{clearInterval(_)}),h.current=[],d.current){try{d.current.disconnect()}catch{}d.current=null}},v=async()=>{var _,S,k,C;try{d.current&&((S=(_=d.current.gain).cancelScheduledValues)==null||S.call(_,0),d.current.gain.value=0)}catch{}try{(C=(k=window.speechSynthesis)==null?void 0:k.cancel)==null||C.call(k)}catch{}try{document.querySelectorAll("audio,video").forEach(E=>{const O=E;O.muted=!0;try{O.pause()}catch{}try{O.currentTime=0}catch{}})}catch{}if(b(),l.current&&l.current.state==="running")try{await l.current.suspend(),console.log("AudioContext suspended")}catch(E){console.warn("Failed to suspend AudioContext:",E)}},x=async _=>{console.log("=== Creating ambient sound ==="),console.log("Type:",_),console.log("Volume array:",n),console.log("Is muted:",i);const S=m();if(console.log("AudioContext created, state:",S.state),S.state==="suspended"&&(console.log("Resuming audio context..."),await S.resume(),console.log("Audio context resumed, new state:",S.state)),S.state!=="running"){console.warn("AudioContext not running, state:",S.state);return}b();const k=S.createGain();k.connect(S.destination);const C=i?0:n[0]*.8;switch(k.gain.value=C,d.current=k,console.log("Master gain created with volume:",C),console.log("About to start sound generation for:",_),_){case"birds-tweeting":{const E=[],O=[];for(let U=0;U<4;U++){const A=S.createGain();A.gain.value=0,A.connect(k),O.push(A)}const P=(U,A)=>{const I=S.createOscillator();I.type="sine",I.frequency.value=A;const z=S.createOscillator(),V=S.createGain();z.type="sine",z.frequency.value=8+Math.random()*4,V.gain.value=A*.1,z.connect(V),V.connect(I.frequency),I.connect(U),I.start(),z.start();const j=.3+Math.random()*.4;return U.gain.setValueAtTime(0,S.currentTime),U.gain.linearRampToValueAtTime(.03,S.currentTime+.05),U.gain.linearRampToValueAtTime(.02,S.currentTime+j*.7),U.gain.linearRampToValueAtTime(0,S.currentTime+j),setTimeout(()=>{try{I.stop(),z.stop()}catch{}},j*1e3),{osc:I,lfo:z}},D=[800,1200,1600,2200],$=U=>{if(!d.current)return;const A=Math.random()*3e3+1e3,I=setTimeout(()=>{if(d.current){const{osc:z,lfo:V}=P(O[U],D[U]);E.push(z,V),$(U)}},A);h.current.push(I)};D.forEach((U,A)=>{$(A)}),f.current=E,console.log("Birds tweeting started");break}case"rain-sounds":{const E=S.sampleRate*4,O=S.createBuffer(2,E,S.sampleRate);for(let U=0;U<O.numberOfChannels;U++){const A=O.getChannelData(U);for(let I=0;I<E;I++){let z=0;for(let j=0;j<6;j++){const L=1/(Math.pow(2,j)*2);z+=(Math.random()*2-1)*L}Math.random()<.002&&(z+=(Math.random()*2-1)*.3);const V=.7+.3*Math.sin(I*1e-4);A[I]=z*.2*V}}const P=S.createBufferSource();P.buffer=O,P.loop=!0;const D=S.createBiquadFilter();D.type="highpass",D.frequency.value=200,D.Q.value=.5;const $=S.createBiquadFilter();$.type="lowpass",$.frequency.value=8e3,$.Q.value=.5,P.connect(D),D.connect($),$.connect(k),P.start(),c.current=P,console.log("Rain sounds started");break}case"ocean-waves":{const E=S.sampleRate*8,O=S.createBuffer(1,E,S.sampleRate),P=O.getChannelData(0);let D=0,$=0,U=0;for(let L=0;L<E;L++){const Y=Math.random()*2-1;D=.99765*D+Y*.099046,$=.963*$+Y*.2965164,U=.57*U+Y*1.0526913;const W=(D+$+U+Y*.1848)*.15,X=L/E*Math.PI*2,Z=Math.pow(Math.sin(X),2)*.5+.5;P[L]=W*Z}const A=S.createBufferSource();A.buffer=O,A.loop=!0;const I=S.createBiquadFilter();I.type="lowpass",I.frequency.value=400,I.Q.value=1;const z=S.createOscillator(),V=S.createGain();z.type="sine",z.frequency.value=.03,V.gain.value=100,z.connect(V),V.connect(I.frequency);const j=S.createGain();j.gain.value=.02,j.connect(k);const R=()=>
362{if(!d.current)return;const L=S.createOscillator(),Y=S.createGain();L.type="sawtooth",L.frequency.value=2e3+Math.random()*3e3,Y.gain.setValueAtTime(0,S.currentTime),Y.gain.linearRampToValueAtTime(.01,S.currentTime+.1),Y.gain.exponentialRampToValueAtTime(.001,S.currentTime+.8),L.connect(Y),Y.connect(j),L.start(),setTimeout(()=>{try{L.stop()}catch{}},1e3);const W=Math.random()*8e3+4e3,X=setTimeout(R,W);h.current.push(X)};A.connect(I),I.connect(k),A.start(),z.start(),R(),c.current=A,f.current=[z],console.log("Ocean waves started");break}}};p.useEffect(()=>{if(d.current){const _=i?0:n[0]*.8;d.current.gain.value=_,console.log("Volume effect updated to:",_)}},[n,i]),p.useEffect(()=>{if(t){const _=Cl[s].url.replace("webaudio://","");console.log("Playing track:",_),x(_)}else console.log("Stopping playback"),v();return()=>{v()}},[s,t]),p.useEffect(()=>{const _=()=>{document.hidden&&v()};return window.addEventListener("beforeunload",_),document.addEventListener("visibilitychange",_),()=>{window.removeEventListener("beforeunload",_),document.removeEventListener("visibilitychange",_)}},[]);const g=async()=>{if(t)console.log("Stopping audio..."),await v(),e(!1);else{console.log("Starting audio...");const _=m();try{await _.resume(),console.log("AudioContext resumed from user gesture")}catch(S){console.warn("AudioContext resume failed:",S)}e(!0)}},w=_=>{if(console.log("Volume changed to:",_),r(_),d.current){const S=i?0:_[0]*.8;d.current.gain.value=S,console.log("Gain updated to:",S)}},y=()=>{a(!i),d.current&&(d.current.gain.value=i?n[0]*.3:0)};return u.jsx(u.Fragment,{children:u.jsxs(OD,{children:[u.jsx($D,{asChild:!0,children:u.jsx(ae,{variant:"ghost",size:"icon",className:"fixed bottom-4 right-4 z-50 bg-background/80 backdrop-blur-sm border border-border/50 hover:bg-accent/80 transition-all shadow-lg",children:u.jsx(oT,{className:"h-5 w-5"})})}),u.jsx(C_,{className:"w-80",align:"end",children:u.jsx(qe,{children:u.jsxs(Qp,{className:"p-4 space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h3",{className:"font-semibold text-sm",children:"Ambient Music"}),u.jsx(ae,{variant:"ghost",size:"icon",onClick:g,className:"h-8 w-8",children:t?u.jsx(aT,{className:"h-4 w-4"}):u.jsx(lT,{className:"h-4 w-4"})})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:[u.jsx("p",{className:"font-medium",children:Cl[s].name}),u.jsx("p",{children:Cl[s].duration})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ae,{variant:"ghost",size:"icon",onClick:y,className:"h-8 w-8 shrink-0",children:i?u.jsx(gT,{className:"h-4 w-4"}):u.jsx(mT,{className:"h-4 w-4"})}),u.jsx(p_,{value:n,onValueChange:w,max:1,step:.1,className:"flex-1"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Tracks"}),Cl.map((_,S)=>u.jsxs("button",{onClick:()=>o(S),className:`w-full text-left p-2 rounded-md text-xs hover:bg-accent transition-colors ${s===S?"bg-accent":""}`,children:[u.jsx("div",{className:"font-medium",children:_.name}),u.jsx("div",{className:"text-muted-foreground",children:_.duration})]},S))]}),u.jsx("div",{className:"text-xs text-muted-foreground text-center",children:"ðµ Enhance your wellness journey with calming sounds"})]})})})]})})},LD=1,DD="80baacba-46df-4445-94c4-a73314872720",MD="72417bfd-38f5-4c7a-898f-c4c622a30e0a",FD="/__l5e/assets-v1/80baacba-46df-4445-94c4-a73314872720/cover.png",zD="a/v1/72417bfd-38f5-4c7a-898f-c4c622a30e0a/80baacba-46df-4445-94c4-a73314872720/cover.png",UD="cover.png",BD=1252192,VD="image/png",HD="2026-09-06T00:29:53Z",WD={version:LD,asset_id:DD,project_id:MD,url:FD,r2_key:zD,original_filename:UD,size:BD,content_type:VD,created_at:HD},j_=rm,qD=sm,T_=p.forwardRef(({className:t,...e},n)=>u.jsx(La,{ref:n,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));T_.displayName=La.displayName;const lm=p.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(qD,{children:[u.jsx(T_,{}),u.jsxs(Da,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
362nded-lg",t),...n,children:[e,u.jsxs(yu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(ni,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));lm.displayName=Da.displayName;const cm=({className:t,...e})=>u.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});cm.displayName="DialogHeader";const P_=({className:t,...e})=>u.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});P_.displayName="DialogFooter";const um=p.forwardRef(({className:t,...e},n)=>u.jsx(Ma,{ref:n,className:ue("text-lg font-semibold leading-none tracking-tight",t),...e}));um.displayName=Ma.displayName;const dm=p.forwardRef(({className:t,...e},n)=>u.jsx(Fa,{ref:n,className:ue("text-sm text-muted-foreground",t),...e}));dm.displayName=Fa.displayName;const Mt=p.forwardRef(({className:t,type:e,...n},r)=>u.jsx("input",{type:e,className:ue("flex min-h-[44px] h-11 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm",t),ref:r,...n}));Mt.displayName="Input";var KD="Label",N_=p.forwardRef((t,e)=>u.jsx(pe.label,{...t,ref:e,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));N_.displayName=KD;var R_=N_;const GD=Ra("text-base sm:text-sm font-medium leading-relaxed peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ft=p.forwardRef(({className:t,...e},n)=>u.jsx(R_,{ref:n,className:ue(GD(),t),...e}));Ft.displayName=R_.displayName;var A_="clover",YD=function(e){return e===3?"v3":e},O_="https://js.stripe.com",ZD="".concat(O_,"/").concat(A_,"/stripe.js"),QD=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,JD=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,iy="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",XD=function(e){return QD.test(e)||JD.test(e)},e5=function(){for(var e=document.querySelectorAll('script[src^="'.concat(O_,'"]')),n=0;n<e.length;n++){var r=e[n];if(XD(r.src))return r}return null},ay=function(e){var n="",r=document.createElement("script");r.src="".concat(ZD).concat(n);var s=document.head||document.body;if(!s)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return s.appendChild(r),r},t5=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"8.5.2",startTime:n})},Ci=null,jl=null,Tl=null,n5=function(e){return function(n){e(new Error("Failed to load Stripe.js",{cause:n}))}},r5=function(e,n){return function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))}},s5=function(e){return Ci!==null?Ci:(Ci=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&e&&console.warn(iy),window.Stripe){n(window.Stripe);return}try{var s=e5();if(s&&e)console.warn(iy);else if(!s)s=ay(e);else if(s&&Tl!==null&&jl!==null){var o;s.removeEventListener("load",Tl),s.removeEventListener("error",jl),(o=s.parentNode)===null||o===void 0||o.removeChild(s),s=ay(e)}Tl=r5(n,r),jl=n5(r),s.addEventListener("load",Tl),s.addEventListener("error",jl)}catch(i){r(i);return}}),Ci.catch(function(n){return Ci=null,Promise.reject(n)}))},o5=function(e,n,r){if(e===null)return null;var s=n[0],o=s.match(/^pk_test/),i=YD(e.version),a=A_;o&&i!==a&&console.warn("Stripe.js@".concat(i," was loaded on the page, but @stripe/stripe-js@").concat("8.5.2"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var l=e.apply(void 0,n);return t5(l,r),l}
vendor: 5,346 bytes, lines 362-363
362,ji,$_=!1,I_=function(){return ji||(ji=s5(null).catch(function(e){return ji=null,Promise.reject(e)}),ji)};Promise.resolve().then(function(){return I_()}).catch(function(t){$_||console.warn(t)});var i5=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];$_=!0;var s=Date.now();return I_().then(function(o){return o5(o,n,s)})},L_={exports:{}},a5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",l5=a5,c5=l5;function D_(){}function M_(){}M_.resetWarningCache=D_;var u5=function(){function t(r,s,o,i,a,l){if(l!==c5){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:M_,resetWarningCache:D_};return n.PropTypes=n,n};L_.exports=u5();var d5=L_.exports;const ke=Qo(d5);function ly(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function cy(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ly(Object(n),!0).forEach(function(r){F_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ly(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yl(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yl=function(e){return typeof e}:Yl=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yl(t)}function F_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f5(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function h5(t,e){if(t==null)return{};var n=f5(t,e),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function z_(t,e){return p5(t)||m5(t,e)||g5(t,e)||v5()}function p5(t){if(Array.isArray(t))return t}function m5(t,e){var n=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(n!=null){var r=[],s=!0,o=!1,i,a;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(r.push(i.value),!(e&&r.length===e));s=!0);}catch(l){o=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function g5(t,e){if(t){if(typeof t=="string")return uy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uy(t,e)}}function uy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 363In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ct=function(e,n,r){var s=!!r,o=T.useRef(r);T.useEffect(function(){o.current=r},[r]),T.useEffect(function(){if(!s||!e)return function(){};var i=function(){o.current&&o.current.apply(o,arguments)};return e.on(n,i),function(){e.off(n,i)}},[s,n,e,o])},ch=function(e){var n=T.useRef(e);return T.useEffect(function(){n.current=e},[e]),n.current},Wo=function(e){return e!==null&&Yl(e)==="object"},y5=function(e){return Wo(e)&&typeof e.then=="function"},w5=function(e){return Wo(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},dy="[object Object]",x5=function t(e,n){if(!Wo(e)||!Wo(n))return e===n;var r=Array.isArray(e),s=Array.isArray(n);if(r!==s)return!1;var o=Object.prototype.toString.call(e)===dy,i=Object.prototype.toString.call(n)===dy;if(o!==i)return!1;if(!o&&!r)return e===n;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c={},d=0;d<a.length;d+=1)c[a[d]]=!0;for(var f=0;f<l.length;f+=1)c[l[f]]=!0;var h=Object.keys(c);if(h.length!==a.length)return!1;var m=e,b=n,v=function(g){return t(m[g],b[g])};return h.every(v)},U_=function(e,n,r){return Wo(e)?Object.keys(e).reduce(function(s,o){var i=!Wo(n)||!x5(e[o],n[o]);return r.includes(o)?(i&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),s):i?cy(cy({},s||{}),{},F_({},o,e[o])):s},null):null},B_="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",fy=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B_;if(e===null||w5(e))return e;throw new Error(n)},b5=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B_;if(y5(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(s){return fy(s,n)})};
363var r=fy(e,n);return r===null?{tag:"empty"}:{tag:"sync",stripe:r}},_5=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"5.4.0"}),e.registerAppInfo({name:"react-stripe-js",version:"5.4.0",url:"https://stripe.com/docs/stripe-js/react"}))},bu=T.createContext(null);bu.displayName="ElementsContext";var V_=function(e,n){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return e},H_=function(e){var n=e.stripe,r=e.options,s=e.children,o=T.useMemo(function(){return b5(n)},[n]),i=T.useState(function(){return{stripe:o.tag==="sync"?o.stripe:null,elements:o.tag==="sync"?o.stripe.elements(r):null}}),a=z_(i,2),l=a[0],c=a[1];T.useEffect(function(){var h=!0,m=function(v){c(function(x){return x.stripe?x:{stripe:v,elements:v.elements(r)}})};return o.tag==="async"&&!l.stripe?o.stripePromise.then(function(b){b&&h&&m(b)}):o.tag==="sync"&&!l.stripe&&m(o.stripe),function(){h=!1}},[o,l,r]);var d=ch(n);T.useEffect(function(){d!==null&&d!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[d,n]);var f=ch(r);return T.useEffect(function(){if(l.elements){var h=U_(r,f,["clientSecret","fonts"]);h&&l.elements.update(h)}},[r,f,l.elements]),T.useEffect(function(){_5(l.stripe)},[l.stripe]),T.createElement(bu.Provider,{value:l},s)};H_.propTypes={stripe:ke.any,options:ke.object};var S5=function(e){var n=T.useContext(bu);return V_(n,e)},k5=function(){var e=S5("calls useElements()"),n=e.elements;return n};ke.func.isRequired;var W_=T.createContext(null);W_.displayName="CheckoutContext";ke.any,ke.shape({clientSecret:ke.oneOfType([ke.string,ke.instanceOf(Promise)]).isRequired,elementsOptions:ke.object}).isRequired;var uh=function(e){var n=T.useContext(W_),r=T.useContext(bu);if(n){if(r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n}else return V_(r,e)},E5=["mode"],C5=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},St=function(e,n){var r="".concat(C5(e),"Element"),s=function(l){var c=l.id,d=l.className,f=l.options,h=f===void 0?{}:f,m=l.onBlur,b=l.onFocus,v=l.onReady,x=l.onChange,g=l.onEscape,w=l.onClick,y=l.onLoadError,_=l.onLoaderStart,S=l.onNetworksChange,k=l.onConfirm,C=l.onCancel,E=l.onShippingAddressChange,O=l.onShippingRateChange,P=l.onSavedPaymentMethodRemove,D=l.onSavedPaymentMethodUpdate,$=uh("mounts <".concat(r,">")),U="elements"in $?$.elements:null,A="checkoutState"in $?$.checkoutState:null,I=(A==null?void 0:A.type)==="success"||(A==null?void 0:A.type)==="loading"?A.sdk:null,z=T.useState(null),V=z_(z,2),j=V[0],R=V[1],L=T.useRef(null),Y=T.useRef(null);ct(j,"blur",m),ct(j,"focus",b),ct(j,"escape",g),ct(j,"click",w),ct(j,"loaderror",y),ct(j,"loaderstart",_),ct(j,"networkschange",S),ct(j,"confirm",k),ct(j,"cancel",C),ct(j,"shippingaddresschange",E),ct(j,"shippingratechange",O),ct(j,"savedpaymentmethodremove",P),ct(j,"savedpaymentmethodupdate",D),ct(j,"change",x);var W;v&&(e==="expressCheckout"?W=v:W=function(){v(j)}),ct(j,"ready",W),T.useLayoutEffect(function(){if(L.current===null&&Y.current!==null&&(U||I)){var Z=null;if(I)switch(e){case"paymentForm":Z=I.createPaymentFormElement();break;case"payment":Z=I.createPaymentElement(h);break;case"address":if("mode"in h){var ve=h.mode,ze=h5(h,E5);if(ve==="shipping")Z=I.createShippingAddressElement(ze);else if(ve==="billing")Z=I.createBillingAddressElement(ze);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":Z=I.createExpressCheckoutElement(h);break;case"currencySelector":Z=I.createCurrencySelectorElement();break;case"taxId":Z=I.createTaxIdElement(h);break;default:throw new Error("Invalid Element type ".concat(r,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else U&&(Z=U.create(e,h));L.current=Z,R(Z),Z&&Z.mount(Y.current)}},[U,I,h]);var X=ch(h);return T.useEffect(function(){if(L.current){var Z=U_(h,X,["paymentRequest"]);Z&&"update"in L.current&&L.current.update(Z)}},[h,X]),T.useLayoutEffect(function(){return function(){if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}}},[]),T.createElement("div",{id:c,className:d,ref:Y})},o=function(l){uh("mounts <".concat(r,">"));var c=l.id,d=l.className;return T.createElement("div",{id:c,className:d})},i=n?o:s;return i.propTypes={id:ke.string,className:ke.string,onChange:ke.func,onBlur:ke.func,onFocus:ke.func,onReady:ke.func,onEscape:ke.func,onClick:ke.func,onLoadError:ke.func,onLoaderStart:ke.func,onNetworksChange:ke.func,onConfirm:ke.func,onCancel:ke.func,onShippingAddressChange:ke.func,onShippingRateChange:ke.func,onSavedPaymentMethodRemove:ke.func,onSavedPaymentMethodUpdate:ke.func,options:ke.object},i.displayName=r,i.__elementType=e,i},kt=typeof window>"u",j5=T.createContext(null);j5.displayName="EmbeddedCheckoutProviderContext";var T5=function(){var e=uh("calls useStripe()"),n=e.stripe;return n};St("auBankAccount",kt);St("card",kt);St("cardNumber",kt);St("cardExpiry",kt);St("cardCvc",kt);St("iban",kt);var P5=St("payment",kt);St("expressCheckout",kt);St("paymentRequestButton",kt);St("linkAuthentication",kt);St("address",kt);St("shippingAddress",kt);St("paymentMethodMessaging",kt);St("taxId",kt);const N5=i5("your_stripe_publishable_key_here"),R5=({onSuccess:t})=>{const e=T5(),n=k5(),[r,s]=p.useState(!1),o=async i=>{if(i.preventDefault(),!(!e||!n)){s(!0);try{const{error:a}=await e.confirmPayment({elements:n,confirmParams:{return_url:`${window.location.origin}`},redirect:"if_required"});
363a?Wi.error(a.message||"Payment failed"):(Wi.success("Thank you for your donation! ð"),t())}catch(a){Wi.error(a.message||"Something went wrong")}finally{s(!1)}}};return u.jsxs("form",{onSubmit:o,className:"space-y-6",children:[u.jsx(P5,{}),u.jsxs(ae,{type:"submit",className:"w-full",disabled:!e||r,variant:"wellness",children:[u.jsx(Aa,{className:"h-4 w-4 mr-2"}),r?"Processing...":"Complete Donation"]})]})},A5=({open:t,onOpenChange:e})=>{const[n,r]=p.useState("10"),[s,o]=p.useState(""),[i,a]=p.useState(""),[l,c]=p.useState(!1),d=["5","10","25","50","100"],f=async()=>{const m=parseFloat(n);if(!s||!n||m<1){Wi.error("Please enter a valid email and amount");return}try{const{data:b,error:v}=await Fe.functions.invoke("create-donation-intent",{body:{amount:Math.round(m*100),email:s}});if(v)throw v;a(b.clientSecret),c(!0)}catch(b){Wi.error(b.message||"Failed to initialize payment")}},h=()=>{c(!1),a(""),r("10"),o(""),e(!1)};return u.jsx(j_,{open:t,onOpenChange:e,children:u.jsxs(lm,{className:"sm:max-w-md",children:[u.jsxs(cm,{children:[u.jsxs(um,{className:"flex items-center gap-2",children:[u.jsx(Aa,{className:"h-5 w-5 text-primary"}),"Support HERPower"]}),u.jsx(dm,{children:"Your donation helps empower girls and women on their self-love journey"})]}),l?i&&u.jsx(H_,{stripe:N5,options:{clientSecret:i},children:u.jsx(R5,{onSuccess:h})}):u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"email",children:"Email"}),u.jsx(Mt,{id:"email",type:"email",placeholder:"[email protected]",value:s,onChange:m=>o(m.target.value),required:!0})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"amount",children:"Donation Amount ($)"}),u.jsx("div",{className:"flex gap-2 mb-2",children:d.map(m=>u.jsxs(ae,{type:"button",variant:n===m?"default":"outline",size:"sm",onClick:()=>r(m),className:"flex-1",children:["$",m]},m))}),u.jsx(Mt,{id:"amount",type:"number",min:"1",step:"1",placeholder:"Custom amount",value:n,onChange:m=>r(m.target.value),required:!0})]}),u.jsxs(ae,{onClick:f,className:"w-full",variant:"wellness",children:[u.jsx(Yj,{className:"h-4 w-4 mr-2"}),"Continue to Payment"]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Or donate via:"}),u.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[u.jsx(ae,{variant:"outline",size:"sm",asChild:!0,children:u.jsx("a",{href:"https://www.paypal.com/donate",target:"_blank",rel:"noopener noreferrer",children:"PayPal"})}),u.jsx(ae,{variant:"outline",size:"sm",asChild:!0,children:u.jsx("a",{href:"https://venmo.com/",target:"_blank",rel:"noopener noreferrer",children:"Venmo"})}),u.jsx(ae,{variant:"outline",size:"sm",asChild:!0,className:"col-span-2",children:u.jsxs("a",{href:"https://cash.app/",target:"_blank",rel:"noopener noreferrer",children:[u.jsx(uT,{className:"h-4 w-4 mr-2"}),"Cash App"]})})]})]})]})]})})},fm=()=>{const[t,e]=p.useState(!1);return u.jsxs("footer",{className:"relative border-t border-border/50 py-6 sm:py-8 mt-8 sm:mt-12 bg-cover bg-center",style:{backgroundImage:`url(${WD.url})`},children:[u.jsx("div",{className:"absolute inset-0 bg-black/60"}),u.jsxs("div",{className:"relative z-10 container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-4 sm:mb-6",children:[u.jsx("div",{className:"flex items-center justify-center mb-3 sm:mb-4",children:u.jsx("img",{src:oh,alt:"HERPower Logo",className:"h-12 sm:h-16 w-auto"})}),u.jsx("p",{className:"text-sm sm:text-base text-white/90 px-4",children:"Empowering girls and women to love themselves unconditionally"}),u.jsx("p",{className:"text-xs sm:text-sm text-white/80 mt-2",children:"Built with love for your wellness journey â¨"})]}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-4 sm:gap-6 text-xs sm:text-sm px-4 mb-4 sm:mb-6",children:[u.jsx(Or,{to:"/safety-resources",className:"text-white hover:text-white/80 transition-colors whitespace-nowrap font-semibold",children:"Safety Resources"}),u.jsx(Or,{to:"/terms-of-service",className:"text-white/80 hover:text-white transition-colors whitespace-nowrap",children:"Terms of Service"}),u.jsx(Or,{to:"/privacy-policy",className:"text-white/80 hover:text-white transition-colors whitespace-nowrap",children:"Privacy Policy"}),u.jsx(Or,{to:"/community-guidelines",className:"text-white/80 hover:text-white transition-colors whitespace-nowrap",children:"Community Guidelines"}),u.jsx("a",{href:"mailto:[email protected]",className:"text-white/80 hover:text-white transition-colors whitespace-nowrap",children:"Contact Us"}),u.jsx("button",{type:"button",onClick:()=>e(!0),className:"text-white/80 hover:text-white transition-colors whitespace-nowrap bg-transparent border-0 p-0 cursor-pointer",children:"Donate"}),u.jsxs("a",{href:"https://www.melaninunlimited.org",target:"_blank",rel:"noopener noreferrer",className:"text-white/80 hover:text-white transition-colors whitespace-nowrap inline-flex items-center",children:["Melanin Unlimited",u.jsx(Jj,{className:"h-3 w-3 sm:h-4 sm:w-4 ml-1"})]})]}),u.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between mt-3 sm:mt-4 px-4 gap-2",children:[u.jsx("img",{src:oh,alt:"HERPower",className:"h-8 sm:h-10 w-auto"}),u.jsxs("p",{className:"text-xs text-white/70",children:["© ",new Date().getFullYear()," HERPower. All rights reserved."]})]})]}),u.jsx(A5,{open:t,onOpenChange:e})]})},O5=()=>{const[t,e]=p.useState(!1);p.useEffect(()=>{localStorage.getItem("cookieConsent")||e(!0)},[]);const n=()=>{localStorage.setItem("cookieConsent","accepted"),e(!1)},r=()=>{localStorage.setItem("cookieConsent","declined"),e(!1)};return t?u.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-[9999] bg-card border-t border-border shadow-lg pointer-events-auto mb-20 md:mb-0",children:u.jsx("div",{className:"container mx-auto px-4 py-4",children:u.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[u.jsx("div",{className:"flex-1",children:u.jsxs("p",{className:"text-sm text-card-foreground",children:['We use essential cookies to ensure our website functions properly and to personalize your experience. By clicking "Accept", you agree to our use of cookies. Learn more in our'," ",u.jsx(Or,{to:"/privacy-policy",className:"text-primary hover:underline font-medium",children:"Privacy Policy"}),"."]})}),u.jsxs("div",{className:"flex items-center gap-3 w-full md:w-auto",children:[u.jsx(ae,{variant:"outline",size:"sm",onClick:r,className:"whitespace-nowrap flex-1 md:flex-none min-h-[44px] touch-manipulation",children:"Decline"}),u.jsx(ae,{size:"sm",onClick:n,className:"whitespace-nowrap flex-1 md:flex-none min-h-[44px] touch-manipulation",children:"Accept Cookies"})]})]})})}):null},$5=({type:t,data:e={}})=>{let r={...{"@context":"https://schema.org","@type":t}};return t==="WebApplication"?r={...r,name:"HERPower",applicationCategory:"HealthApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},description:"A digital wellness platform for women focused on self-love, confidence, journaling, and daily reflection.",...e}:t==="Article"?r={...r,headline:e.headline||"HERPower Article",author:{"@type":"Organization",name:"HERPower"},publisher:{"@type":"Organization",name:"HERPower",logo:{"@type":"ImageObject",url:"https://lovable.dev/opengraph-image-p98pqg.png"}},datePublished:e.datePublished||new Date().toISOString(),...e}:t==="WebPage"&&(r={...r,name:e.name||"HERPower",description:e.description||"A digital wellness platform for women",...e}),u.jsx(bA,{children:u.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)})})};var q_="AlertDialog",[I5,I8]=Ln(q_,[T1]),ar=T1(),K_=t=>{const{__scopeAlertDialog:e,...n}=t,r=ar(e);return u.jsx(rm,{...r,...n,modal:!0})};K_.displayName=q_;var L5="AlertDialogTrigger",D5=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=ar(n);return u.jsx(H1,{...s,...r,ref:e})});D5.displayName=L5;var M5="AlertDialogPortal",G_=t=>{const{__scopeAlertDialog:e,...n}=t,r=ar(e);return u.jsx(sm,{...r,...n})};G_.displayName=M5;var F5="AlertDialogOverlay",Y_=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=ar(n);return u.jsx(La,{...s,...r,ref:e})});Y_.displayName=F5;var ko="AlertDialogContent",[z5,U5]=I5(ko),B5=ix("AlertDialogContent"),Z_=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,children:r,...s}=t,o=ar(n),i=p.useRef(null),a=je(e,i),l=p.useRef(null);return u.jsx(Y4,{contentName:ko,titleName:Q_,docsSlug:"alert-dialog",children:u.jsx(z5,{scope:n,cancelRef:l,children:u.jsxs(Da,{role:"alertdialog",...o,...s,ref:a,onOpenAutoFocus:ee(s.onOpenAutoFocus,c=>{var d;c.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[u.jsx(B5,{children:r}),u.jsx(H5,{contentRef:i})]})})})});Z_.displayName=ko;var Q_="AlertDialogTitle",J_=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=ar(n);return u.jsx(Ma,{...s,...r,ref:e})});J_.displayName=Q_;var X_="AlertDialogDescription",eS=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=ar(n);return u.jsx(Fa,{...s,...r,ref:e})});eS.displayName=X_;var V5="AlertDialogAction",tS=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=ar(n);return u.jsx(yu,{...s,...r,ref:e})});tS.displayName=V5;var nS="AlertDialogCancel",rS=p.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:s}=U5(nS,n),o=ar(n),i=je(e,s);return u.jsx(yu,{...o,...r,ref:i})});rS.displayName=nS;var H5=({contentRef:t})=>{const e=`\`${ko}\` requires a description for the component to be accessible for screen reader users. 364
365You can add a description to the \`${ko}\` by passing a \`${X_}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 366 367Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ko}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 368 369For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{var r;document.getElementById((r=t.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},W5=K_,q5=G_,sS=Y_,oS=Z_,iS=tS,aS=rS,lS=J_,cS=eS;const K5=W5,G5=q5,uS=p.forwardRef(({className:t,...e},n)=>u.jsx(sS,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:n}));uS.displayName=sS.displayName;const dS=p.forwardRef(({className:t,...e},n)=>u.jsxs(G5,{children:[u.jsx(uS,{}),u.jsx(oS,{ref:n,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...e})]}));dS.displayName=oS.displayName;const fS=({className:t,...e})=>u.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",t),...e});fS.displayName="AlertDialogHeader";const hS=({className:t,...e})=>u.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});hS.displayName="AlertDialogFooter";const pS=p.forwardRef(({className:t,...e},n)=>u.jsx(lS,{ref:n,className:ue("text-lg font-semibold",t),...e}));pS.displayName=lS.displayName;const mS=p.forwardRef(({className:t,...e},n)=>u.jsx(cS,{ref:n,className:ue("text-sm text-muted-foreground",t),...e}));mS.displayName=cS.displayName;const gS=p.forwardRef(({className:t,...e},n)=>u.jsx(iS,{ref:n,className:ue(Zp(),t),...e}));gS.displayName=iS.displayName;const Y5=p.forwardRef(({className:t,...e},n)=>u.jsx(aS,{ref:n,className:ue(Zp({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));Y5.displayName=aS.displayName;const Z5=()=>{const[t,e]=p.useState(!1);p.useEffect(()=>{if(!localStorage.getItem("hasSeenSafetyMessage")){const s=setTimeout(()=>{e(!0)},2e3);return()=>clearTimeout(s)}},[]);const n=()=>{localStorage.setItem("hasSeenSafetyMessage","true"),e(!1)};return u.jsx(K5,{open:t,onOpenChange:e,children:u.jsxs(dS,{className:"max-w-lg bg-gradient-card border-primary/20",children:[u.jsxs(fS,{children:[u.jsx("div",{className:"flex items-center justify-center mb-4",children:u.jsx("div",{className:"h-16 w-16 rounded-full bg-primary/10 flex items-center justify-center",children:u.jsx(kp,{className:"h-8 w-8 text-primary"})})}),u.jsx(pS,{className:"text-center text-2xl",children:"Important Message About Your Safety"}),u.jsxs(mS,{className:"text-center space-y-4 pt-4",children:[u.jsxs("div",{className:"flex items-start gap-3 text-left bg-primary/5 p-4 rounded-lg",children:[u.jsx(Aa,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1"}),u.jsxs("div",{className:"space-y-2 text-foreground/90",children:[u.jsxs("p",{children:["This HERPower app is here to encourage, support, and uplift you. It is ",u.jsx("strong",{children:"not meant to replace therapy, counseling, or talking to a trusted adult"}),"."]}),u.jsx("p",{className:"font-semibold text-foreground",children:"If you ever feel deeply sad, unsafe, overwhelmed, or like you might hurt yourself, please reach out to a parent or guardian, school counselor, trusted adult, or mental health professional."})]})]}),u.jsxs("div",{className:"text-sm text-muted-foreground",children:[u.jsx("p",{children:u.jsx("strong",{children:"Need immediate help?"})}),u.jsxs("p",{className:"mt-2",children:["Call or text ",u.jsx("strong",{className:"text-primary",children:"988"})," for the National Suicide Prevention Lifeline"]}),u.jsx("p",{className:"mt-2",children:u.jsx(Or,{to:"/safety-resources",className:"text-primary hover:underline",onClick:n,children:"View all mental health resources â"})})]})]})]}),u.jsx(hS,{children:u.jsx(gS,{onClick:n,className:"w-full",children:"I Understand"})})]})})},Q5=()=>{const t=ir(),{user:e}=ns();return u.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[u.jsx($5,{type:"WebApplication"}),u.jsx("header",{className:"w-full px-4 sm:px-6 md:px-8 py-2 flex justify-center",children:u.jsx("img",{src:oh,alt:"HERPower logo",className:"h-14 sm:h-16 lg:h-20 w-auto drop-shadow-md"})}),u.jsx("div",{className:"w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-3 lg:py-4",children:u.jsx("div",{className:"max-w-7xl mx-auto",children:u.jsx(XL,{})})}),u.jsxs("section",{className:"relative overflow-hidden w-full","data-onboarding":"hero",children:[u.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${a3})`}}),u.jsx("div",{className:"relative z-10 w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-8 sm:py-10 md:py-14 lg:py-18 xl:py-20 text-center text-white",children:u.jsx("div",{className:"max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl mx-auto
369space-y-4 sm:space-y-6 lg:space-y-8 w-full",children:u.jsxs("div",{className:"rounded-2xl sm:rounded-3xl lg:rounded-[2rem] p-6 sm:p-8 lg:p-12 xl:p-16",children:[u.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-4 sm:mb-6 lg:mb-8 leading-tight max-w-4xl mx-auto text-balance",style:{textShadow:"1px 1px 4px rgba(120,40,70,0.45), 0px 0px 10px rgba(120,40,70,0.25)"},children:"More confidence. More self-love. More HER."}),u.jsx("p",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl font-medium max-w-2xl lg:max-w-3xl mx-auto mb-6 sm:mb-8 lg:mb-10 leading-relaxed px-2",style:{textShadow:"1px 1px 3px rgba(120,40,70,0.4), 0px 0px 8px rgba(120,40,70,0.2)"},children:"Your safe space to see you in all of your God-created magnificence."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 lg:gap-4 xl:gap-5 justify-center items-stretch sm:items-center pt-2 sm:pt-4 lg:pt-6 w-full",children:[u.jsxs(ae,{variant:"heroGold",size:"lg",className:"w-full sm:w-auto px-6 sm:px-8 lg:px-10 xl:px-12 py-4 lg:py-5 xl:py-6 text-base lg:text-lg xl:text-xl min-h-[44px] lg:min-h-[56px] font-semibold animate-pulse",onClick:()=>t(e?"/assessment":"/auth?redirect=%2Fassessment"),children:[u.jsx(Ep,{className:"h-5 w-5 lg:h-6 lg:w-6 xl:h-7 xl:w-7 mr-2"}),"Self-Talk"]}),u.jsxs(ae,{variant:"outline",size:"lg",className:"w-full sm:w-auto px-6 sm:px-8 lg:px-10 xl:px-12 py-4 lg:py-5 xl:py-6 text-base lg:text-lg xl:text-xl min-h-[44px] lg:min-h-[56px] font-semibold bg-white/90 text-foreground hover:bg-white border-white/80 backdrop-blur-sm",onClick:()=>t(e?"/dashboard":"/auth?mode=signup"),children:[u.jsx(Kg,{className:"h-5 w-5 lg:h-6 lg:w-6 xl:h-7 xl:w-7 mr-2"}),"Sign-In/Up"]})]})]})})})]}),u.jsx("section",{className:"w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-10 lg:py-14 xl:py-16",children:u.jsxs("div",{className:"max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl mx-auto w-full text-center space-y-8 lg:space-y-10",children:[u.jsxs("div",{className:"space-y-3 lg:space-y-4",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl xl:text-5xl font-bold tracking-wide text-foreground",children:"A LITTLE MORE HER, EVERY DAY."}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl xl:text-2xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"Your private space to reflect, grow, and celebrate your journey."}),u.jsx("div",{className:"max-w-3xl lg:max-w-4xl mx-auto",children:u.jsx("video",{src:NI.url,className:"w-full rounded-2xl sm:rounded-3xl shadow-soft",poster:ZI.url,controls:!0,playsInline:!0,preload:"none","aria-label":"A quick walkthrough of the HERPower app â press play to watch"})})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 lg:gap-6",children:[u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 grid grid-cols-[2fr_1fr] min-h-[160px] sm:min-h-[180px]",children:[u.jsxs("div",{className:"p-5 lg:p-6 text-center space-y-2 lg:space-y-3 flex flex-col justify-center",children:[u.jsx("div",{className:"text-3xl lg:text-4xl",children:"ð"}),u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"CHECK IN"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground",children:"How are you really feeling?"})]}),u.jsx("div",{className:"relative min-h-full min-w-0",children:u.jsx("img",{src:sy.url,alt:"Black teenage girl with arms crossed, pausing thoughtfully to check in with herself",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy",decoding:"async"})})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 grid grid-cols-[2fr_1fr] min-h-[160px] sm:min-h-[180px]",children:[u.jsxs("div",{className:"p-5 lg:p-6 text-center space-y-2 lg:space-y-3 flex flex-col justify-center",children:[u.jsx("div",{className:"text-3xl lg:text-4xl",children:"â¨"}),u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"REFLECT"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground",children:"Make space for your thoughts."})]}),u.jsx("div",{className:"relative min-h-full min-w-0",children:u.jsx("img",{src:_L.url,alt:"Young girl relaxing and reflecting in a cozy space",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy",decoding:"async"})})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 grid grid-cols-[2fr_1fr] min-h-[160px] sm:min-h-[180px]",children:[u.jsxs("div",{className:"p-5 lg:p-6 text-center space-y-2 lg:space-y-3 flex flex-col justify-center",children:[u.jsx("div",{className:"text-3xl lg:text-4xl",children:"ð±"}),u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"GROW"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground",children:"Build confidence every day."})]}),u.jsx("div",{className:"relative min-h-full min-w-0",children:u.jsx("img",{src:AL.url,alt:"Confident young girl with arms crossed, ready to grow",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy",decoding:"async"})})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 grid grid-cols-[2fr_1fr] min-h-[160px] sm:min-h-[180px]",children:[u.jsxs("div",{className:"p-5 lg:p-6 text-center space-y-2 lg:space-y-3 flex flex-col justify-center",children:[u.jsx("div",{className:"text-3xl lg:text-4xl",children:"ð"}),u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"CELEBRATE HER"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground",children:"Your progress deserves to be seen."})]}),u.jsx("div",{className:"relative min-h-full min-w-0",children:u.jsx("img",{src:BL.url,alt:"Young woman celebrating with a joyful, confident expression",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy",decoding:"async"})})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 grid grid-cols-[2fr_1fr] min-h-[160px] sm:min-h-[180px] sm:col-span-2 max-w-md mx-auto w-full",children:[u.jsxs("div",{className:"p-5 lg:p-6 text-center space-y-2 lg:space-y-3 flex flex-col justify-center",children:[u.jsx("div",{className:"text-3xl lg:text-4xl",children:"ð¤"}),u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"COMMUNITY"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground",children:"You Are Not Alone Girl."}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground",children:"Find Real Ones Like You"})]}),u.jsx("div",{className:"relative min-h-full min-w-0",children:u.jsx("img",{src:JL.url,alt:"Smiling young girl representing the HERPower community",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy",decoding:"async"})})]})]})]})}),u.jsx("section",{className:"w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-10 lg:py-14 xl:py-16 bg-gradient-to-b from-background to-card/30",children:u.jsxs("div",{className:"max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl mx-auto w-full text-center space-y-8 lg:space-y-10",children:[u.jsxs(ae,{variant:"wellness",size:"lg",className:"px-8 sm:px-10 lg:px-12 py-4 lg:py-5 xl:py-6 text-base lg:text-lg xl:text-xl font-semibold",onClick:()=>t(e?"/dashboard":"/auth?mode=signup"),children:[u.jsx(Kg,{className:"h-5 w-5 lg:h-6 lg:w-6 mr-2"}),"Sign-In/Up"]}),u.jsxs("div",{className:"space-y-3 lg:space-y-4",children:[u.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl xl:text-5xl font-bold tracking-wide text-foreground",children:"THE EXPERIENCE"}),u.jsx("p",{className:"text-base sm:text-lg lg:text-xl xl:text-2xl text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"A glimpse into your daily HERPower journey."})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 lg:gap-6",children:[u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300",children:[u.jsx("div",{className:"aspect-[4/5] w-full bg-muted/50 flex items-center justify-center overflow-hidden",children:u.jsx("img",{src:D3.url,alt:"Young girl looking at her phone, feeling down",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),u.jsxs("div",{className:"p-4 lg:p-5 text-center",children:[u.jsx("h3",{className:"text-base lg:text-lg font-bold text-card-foreground tracking-wide",children:"DAILY FEED"}),u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Affirmations made for you."})]})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300",children:[u.jsx("div",{className:"aspect-[4/5] w-full bg-muted/50 flex items-center justify-center overflow-hidden",children:u.jsx("img",{src:sy.url,alt:"Black teenage girl with arms crossed, pausing thoughtfully to check in with herself",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),u.jsxs("div",{className:"p-4 lg:p-5 text-center",children:[u.jsx("h3",{className:"text-base lg:text-lg font-bold text-card-foreground tracking-wide",children:"CHECK IN"}),u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Track mood & journal entries."})]})]})]}),u.jsx("div",{className:"max-w-3xl lg:max-w-4xl mx-auto w-full",children:u.jsx("video",{src:zI.url,className:"w-full rounded-2xl sm:rounded-3xl shadow-soft",poster:i3.url,controls:!0,playsInl
369ine:!0,preload:"none","aria-label":"Xavi introducing the HERPower app â press play to watch"})}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 lg:gap-6",children:[u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300",children:[u.jsx("div",{className:"aspect-[4/5] w-full bg-muted/50 flex items-center justify-center overflow-hidden",children:u.jsx("img",{src:nL.url,alt:"Smiling young girl with books and glasses, feeling confident",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),u.jsxs("div",{className:"p-4 lg:p-5 text-center",children:[u.jsx("h3",{className:"text-base lg:text-lg font-bold text-card-foreground tracking-wide",children:"INSPIRATION"}),u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Quotes & visuals to lift you."})]})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300",children:[u.jsx("div",{className:"aspect-[4/5] w-full bg-muted/50 flex items-center justify-center overflow-hidden",children:u.jsx("img",{src:fL.url,alt:"Young girl resting her chin in her hands, deep in thought",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),u.jsxs("div",{className:"p-4 lg:p-5 text-center",children:[u.jsx("h3",{className:"text-base lg:text-lg font-bold text-card-foreground tracking-wide",children:"CHALLENGES"}),u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Small wins, big growth."})]})]})]}),u.jsx("div",{className:"space-y-3 lg:space-y-4 pt-6 lg:pt-8",children:u.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl xl:text-5xl font-bold tracking-wide text-foreground",children:"MEET THE FOUNDER"})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8 text-left pt-4 lg:pt-6",children:[u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 flex flex-col",children:[u.jsx("div",{className:"aspect-[4/5] w-full overflow-hidden bg-muted/50",children:u.jsx("img",{src:v3.url,alt:"Xa'viar âXavi B.â Bennett, Founder and Youth Visionary of HERPower, smiling in a HERPower t-shirt",className:"w-full h-full object-cover object-top",loading:"lazy",decoding:"async"})}),u.jsxs("div",{className:"p-5 lg:p-6 space-y-2 lg:space-y-3",children:[u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"Xaâviar âXavi B.â Bennett"}),u.jsx("p",{className:"text-sm lg:text-base font-semibold text-primary uppercase tracking-wide",children:"Founder & Youth Visionary"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground leading-relaxed",children:"Xaâviar âXavi B.â Bennett is a 13-year-old youth entrepreneur, author, model, actress, and founder of HERPower, a digital wellness platform inspired by her experience with body shaming at age 11. She transformed that experience into a mission to help girls and women build confidence, self-love, and emotional wellness through affirmations, reflection, and empowerment tools. A student leader and 2026 Richmond Juneteenth Youth Grand Marshal, Xavi B. also uses modeling, public speaking, and creative expression to encourage young people to confidently embrace their voice and power."})]})]}),u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 flex flex-col",children:[u.jsx("div",{className:"aspect-[4/5] w-full overflow-hidden bg-muted/50",children:u.jsx("img",{src:j3.url,alt:"Shawnie Bennett, Co-Founder and Executive Lead of HERPower, smiling outdoors",className:"w-full h-full object-cover object-top",loading:"lazy",decoding:"async"})}),u.jsxs("div",{className:"p-5 lg:p-6 space-y-2 lg:space-y-3",children:[u.jsx("h3",{className:"text-lg lg:text-xl font-bold text-card-foreground tracking-wide",children:"Shawnie Bennett"}),u.jsx("p",{className:"text-sm lg:text-base font-semibold text-primary uppercase tracking-wide",children:"Co-Founder & Executive Lead"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground leading-relaxed",children:"Shawnie Bennett is a social-impact entrepreneur, program developer, and Founder and Executive Director of Melanin Unlimited. As Co-Founder and Executive Lead of HERPower, she works alongside her daughter, Xaâviar, to transform a personal journey of overcoming body shaming and self-doubt into an empowering digital platform for girls and women. A Clark Atlanta University graduate with a B.S. in Business AdministrationâFinance, Shawnie brings experience in nonprofit leadership, business operations, partnerships, programming, and community engagement to help grow HERPower from Xaâviarâs vision into a sustainable, scalable social-impact venture."})]})]})]})]})}),u.jsx("section",{className:"w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-10 lg:py-14 xl:py-16",children:u.jsx("div",{className:"max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl mx-auto w-full",children:u.jsxs(qe,{className:"overflow-hidden bg-gradient-card shadow-soft border-0 hover:shadow-glow transition-all duration-300 grid grid-cols-1 md:grid-cols-[2fr_1fr] min-h-[180px] sm:min-h-[200px]",children:[u.jsxs("div",{className:"p-6 lg:p-8 text-center md:text-left space-y-3 lg:space-y-4 flex flex-col justify-center",children:[u.jsxs("div",{className:"flex items-center justify-center md:justify-start gap-2 text-amber-500",children:[u.jsx(hn,{className:"h-5 w-5 lg:h-6 lg:w-6"}),u.jsx("span",{className:"text-sm lg:text-base font-semibold tracking-wide uppercase",children:"Membership"})]}),u.jsx("h3",{className:"text-xl sm:text-2xl lg:text-3xl font-bold text-card-foreground tracking-wide",children:"Unlock More HERPower"}),u.jsx("p",{className:"text-sm lg:text-base text-muted-foreground max-w-md mx-auto md:mx-0",children:"Unlimited affirmations, vision boards, voice notes, and sisterhood tools to help her grow confident every day."}),u.jsx("div",{className:"pt-1",children:u.jsxs(ae,{variant:"heroGold",size:"lg",className:"w-full md:w-auto px-6 sm:px-8 lg:px-10 py-4 lg:py-5 text-base lg:text-lg font-semibold",onClick:()=>t("/premium"),children:[u.jsx(hn,{className:"h-5 w-5 lg:h-6 lg:w-6 mr-2"}),"See Memberships"]})})]}
vendor: 6,561 bytes, line 369
369),u.jsx("div",{className:"relative min-h-[160px] md:min-h-full min-w-0",children:u.jsx("img",{src:Z1.url,alt:"Diverse group of confident young women supporting each other",className:"absolute inset-0 w-full h-full object-cover object-top"})})]})})}),u.jsx(fm,{}),u.jsx(ID,{}),u.jsx(O5,{}),u.jsx(Z5,{})]})};var Pd="rovingFocusGroup.onEntryFocus",J5={bubbles:!1,cancelable:!0},Ua="RovingFocusGroup",[dh,vS,X5]=wp(Ua),[eM,yS]=Ln(Ua,[X5]),[tM,nM]=eM(Ua),wS=p.forwardRef((t,e)=>u.jsx(dh.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(dh.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx(rM,{...t,ref:e})})}));wS.displayName=Ua;var rM=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=t,h=p.useRef(null),m=je(e,h),b=om(o),[v,x]=ti({prop:i,defaultProp:a??null,onChange:l,caller:Ua}),[g,w]=p.useState(!1),y=mn(c),_=vS(n),S=p.useRef(!1),[k,C]=p.useState(0);return p.useEffect(()=>{const E=h.current;if(E)return E.addEventListener(Pd,y),()=>E.removeEventListener(Pd,y)},[y]),u.jsx(tM,{scope:n,orientation:r,dir:b,loop:s,currentTabStopId:v,onItemFocus:p.useCallback(E=>x(E),[x]),onItemShiftTab:p.useCallback(()=>w(!0),[]),onFocusableItemAdd:p.useCallback(()=>C(E=>E+1),[]),onFocusableItemRemove:p.useCallback(()=>C(E=>E-1),[]),children:u.jsx(pe.div,{tabIndex:g||k===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...t.style},onMouseDown:ee(t.onMouseDown,()=>{S.current=!0}),onFocus:ee(t.onFocus,E=>{const O=!S.current;if(E.target===E.currentTarget&&O&&!g){const P=new CustomEvent(Pd,J5);if(E.currentTarget.dispatchEvent(P),!P.defaultPrevented){const D=_().filter(z=>z.focusable),$=D.find(z=>z.active),U=D.find(z=>z.id===v),I=[$,U,...D].filter(Boolean).map(z=>z.ref.current);_S(I,d)}}S.current=!1}),onBlur:ee(t.onBlur,()=>w(!1))})})}),xS="RovingFocusGroupItem",bS=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:o,children:i,...a}=t,l=wo(),c=o||l,d=nM(xS,n),f=d.currentTabStopId===c,h=vS(n),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(r)return m(),()=>b()},[r,m,b]),u.jsx(dh.ItemSlot,{scope:n,id:c,focusable:r,active:s,children:u.jsx(pe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:e,onMouseDown:ee(t.onMouseDown,x=>{r?d.onItemFocus(c):x.preventDefault()}),onFocus:ee(t.onFocus,()=>d.onItemFocus(c)),onKeyDown:ee(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const g=iM(x,d.orientation,d.dir);if(g!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let y=h().filter(_=>_.focusable).map(_=>_.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const _=y.indexOf(x.currentTarget);y=d.loop?aM(y,_+1):y.slice(_+1)}setTimeout(()=>_S(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:v!=null}):i})})});bS.displayName=xS;var sM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oM(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function iM(t,e,n){const r=oM(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return sM[r]}function _S(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function aM(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var lM=wS,cM=bS,_u="Tabs",[uM,L8]=Ln(_u,[yS]),SS=yS(),[dM,hm]=uM(_u),kS=p.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:o,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=t,d=om(a),[f,h]=ti({prop:r,onChange:s,defaultProp:o??"",caller:_u});return u.jsx(dM,{scope:n,baseId:wo(),value:f,onValueChange:h,orientation:i,dir:d,activationMode:l,children:u.jsx(pe.div,{dir:d,"data-orientation":i,...c,ref:e})})});kS.displayName=_u;var ES="TabsList",CS=p.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...s}=t,o=hm(ES,n),i=SS(n);return u.jsx(lM,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:r,children:u.jsx(pe.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:e})})});CS.displayName=ES;var jS="TabsTrigger",TS=p.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...o}=t,i=hm(jS,n),a=SS(n),l=RS(i.baseId,r),c=AS(i.baseId,r),d=r===i.value;return u.jsx(cM,{asChild:!0,...a,focusable:!s,active:d,children:u.jsx(pe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:l,...o,ref:e,onMouseDown:ee(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:ee(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:ee(t.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!s&&f&&i.onValueChange(r)})})})});TS.displayName=jS;var PS="TabsContent",NS=p.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:s,children:o,...i}=t,a=hm(PS,n),l=RS(a.baseId,r),c=AS(a.baseId,r),d=r===a.value,f=p.useRef(d);return p.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),u.jsx(sr,{present:s||d,children:({present:h})=>u.jsx(pe.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...i,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:h&&o})})});NS.displayName=PS;function RS(t,e){return`${t}-trigger-${e}`}function AS(t,e){return`${t}-content-${e}`}var fM=kS,OS=CS,$S=TS,IS=NS;const hM=fM,LS=p.forwardRef(({className:t,...e},n)=>u.jsx(OS,{ref:n,className:ue("inline-flex min-h-[44px] h-11 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...e}));LS.displayName=OS.displayName;const fh=p.forwardRef(({className:t,...e},n)=>u.jsx($S,{ref:n,className:ue("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-2 min-h-[40px] text-base sm:text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",t),...e}));fh.displayName=$S.displayName;
vendor: 1,966 bytes, line 369
369const hh=p.forwardRef(({className:t,...e},n)=>u.jsx(IS,{ref:n,className:ue("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));hh.displayName=IS.displayName;var xe;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(xe||(xe={}));var hy;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(hy||(hy={}));const K=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),br=t=>{switch(typeof t){case"undefined":return K.undefined;case"string":return K.string;case"number":return Number.isNaN(t)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(t)?K.array:t===null?K.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?K.promise:typeof Map<"u"&&t instanceof Map?K.map:typeof Set<"u"&&t instanceof Set?K.set:typeof Date<"u"&&t instanceof Date?K.date:K.object;default:return K.unknown}}
vendor: 4,685 bytes, line 369
369,F=xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class In extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(e){if(!(e instanceof In))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];n[o]=n[o]||[],n[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}In.create=t=>new In(t);const ph=(t,e)=>{let n;switch(t.code){case F.invalid_type:t.received===K.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case F.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,xe.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:n=`Unrecognized key(s) in object: ${xe.joinValues(t.keys,", ")}`;break;case F.invalid_union:n="Invalid input";break;case F.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xe.joinValues(t.options)}`;break;case F.invalid_enum_value:n=`Invalid enum value. Expected ${xe.joinValues(t.options)}, received '${t.received}'`;break;case F.invalid_arguments:n="Invalid function arguments";break;case F.invalid_return_type:n="Invalid function return type";break;case F.invalid_date:n="Invalid date";break;case F.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:xe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case F.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case F.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case F.custom:n="Invalid input";break;case F.invalid_intersection_types:n="Intersection results could not be merged";break;case F.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case F.not_finite:n="Number must be finite";break;default:n=e.defaultError,xe.assertNever(t)}return{message:n}};let pM=ph;function mM(){return pM}const gM=t=>
vendor: 7,205 bytes, line 369
369{const{data:e,path:n,errorMaps:r,issueData:s}=t,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:e,defaultError:a}).message;return{...s,path:o,message:a}};function B(t,e){const n=mM(),r=gM({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===ph?void 0:ph].filter(s=>!!s)});t.common.issues.push(r)}class At{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return ne;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return At.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return ne;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:e.value,value:r}}}const ne=Object.freeze({status:"aborted"}),Oi=t=>({status:"dirty",value:t}),Kt=t=>({status:"valid",value:t}),py=t=>t.status==="aborted",my=t=>t.status==="dirty",qo=t=>t.status==="valid",Rc=t=>typeof Promise<"u"&&t instanceof Promise;var G;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(G||(G={}));class Yr{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gy=(t,e)=>{if(qo(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new In(t.common.issues);return this._error=n,this._error}}};function de(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,a)=>{const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class ge{get description(){return this._def.description}_getType(e){return br(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:br(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new At,ctx:{common:e.parent.common,data:e.data,parsedType:br(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Rc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:br(e)},s=this._parseSync({data:e,path:r.path,parent:r});return gy(r,s)}"~validate"(e){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:br(e)};if(!this["~standard"].async)try{const o=this._parseSync({data:e,path:[],parent:n});return qo(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(s=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(o=>qo(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:br(e)},s=this._parse({data:e,path:r.path,parent:r}),o=await(Rc(s)?s:Promise.resolve(s));return gy(r,o)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=e(s),a=()=>o.addIssue({code:F.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new Yo({schema:this,typeName:re.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Hr.create(this,this._def)}nullable(){return Zo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return On.create(this)}promise(){return Ic.create(this,this._def)}or(e){return Oc.create([this,e],this._def)}and(e){return $c.create(this,e,this._def)}transform(e){return new Yo({...de(this._def),schema:this,typeName:re.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new vh({...de(this._def),innerType:this,defaultValue:n,typeName:re.ZodDefault})}brand(){return new FM({typeName:re.ZodBranded,type:this,...de(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new yh({...de(this._def),innerType:this,catchValue:n,typeName:re.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return pm.create(this,e)}readonly(){return wh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const vM=/^c[^\s-]{8,}
369$/i,yM=/^[0-9a-z]+$/,wM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,xM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bM=/^[a-z0-9_-]{21}$/i,_M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,SM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,kM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,EM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Nd;const CM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,TM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,PM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}
vendor: 19,599 bytes, line 369
369[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,NM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,RM=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,DS="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",AM=new RegExp(`^${DS}$`);function MS(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function OM(t){return new RegExp(`^${MS(t)}$`)}function $M(t){let e=`${DS}T${MS(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function IM(t,e){return!!((e==="v4"||!e)&&CM.test(t)||(e==="v6"||!e)&&TM.test(t))}function LM(t,e){if(!_M.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function DM(t,e){return!!((e==="v4"||!e)&&jM.test(t)||(e==="v6"||!e)&&PM.test(t))}class $r extends ge{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){const o=this._getOrReturnCtx(e);return B(o,{code:F.invalid_type,expected:K.string,received:o.parsedType}),ne}const r=new At;let s;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:F.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:F.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,a=e.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(e,s),i?B(s,{code:F.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&B(s,{code:F.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")kM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"email",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Nd||(Nd=new RegExp(EM,"u")),Nd.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"emoji",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")xM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"uuid",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")bM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"nanoid",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")vM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"cuid",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")yM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"cuid2",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")wM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"ulid",code:F.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),B(s,{validation:"url",code:F.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"regex",code:F.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(e,s),B(s,{code:F.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(s=this._getOrReturnCtx(e,s),B(s,{code:F.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(s=this._getOrReturnCtx(e,s),B(s,{code:F.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?$M(o).test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{code:F.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?AM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{code:F.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?OM(o).test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{code:F.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?SM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"duration",code:F.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?IM(e.data,o.version)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"ip",code:F.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?LM(e.data,o.alg)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"jwt",code:F.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?DM(e.data,o.version)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"cidr",code:F.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?NM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"base64",code:F.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?RM.test(e.data)||(s=this._getOrReturnCtx(e,s),B(s,{validation:"base64url",code:F.invalid_string,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:F.invalid_string,...G.errToObj(r)})}_addCheck(e){return new $r({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...G.errToObj(e)})}url(e){return this._addCheck({kind:"url",...G.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...G.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...G.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...G.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...G.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...G.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...G.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...G.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...G.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...G.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...G.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...G.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...G.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...G.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...G.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...G.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...G.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...G.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...G.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...G.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...G.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...G.errToObj(n)})}nonempty(e){return this.min(1,G.errToObj(e))}trim(){return new $r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}$r.create=t=>new $r({checks:[],typeName:re.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...de(t)});function MM(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,o=Number.parseInt(t.toFixed(s).replace(".","")),i=Number.parseInt(e.toFixed(s).replace(".",""));return o%i/10**s}class Ko extends ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){const o=this._getOrReturnCtx(e);return B(o,{code:F.invalid_type,expected:K.number,received:o.parsedType}),ne}let r;const s=new At;for(const o of this._def.checks)o.kind==="int"?xe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),B(r,{code:F.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:F.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:F.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?MM(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),B(r,{code:F.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),B(r,{code:F.not_finite,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,G.toString(n))}gt(e,n){return this.setLimit("min",e,!1,G.toString(n))}lte(e,n){return this.setLimit("max",e,!0,G.toString(n))}lt(e,n){return this.setLimit("max",e,!1,G.toString(n))}setLimit(e,n,r,s){return new Ko({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:G.toString(s)}]})}_addCheck(e){return new Ko({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:G.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:G.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:G.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:G.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:G.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:G.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:G.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:G.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:G.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&xe.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}Ko.create=t=>new Ko({checks:[],typeName:re.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...de(t)});class wa extends ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==K.bigint)return this._getInvalidInput(e);let r;const s=new At;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:F.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),B(r,{code:F.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),B(r,{code:F.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return B(n,{code:F.invalid_type,expected:K.bigint,received:n.parsedType}),ne}gte(e,n){return this.setLimit("min",e,!0,G.toString(n))}gt(e,n){return this.setLimit("min",e,!1,G.toString(n))}lte(e,n){return this.setLimit("max",e,!0,G.toString(n))}lt(e,n){return this.setLimit("max",e,!1,G.toString(n))}setLimit(e,n,r,s){return new wa({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:G.toString(s)}]})}_addCheck(e){return new wa({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:G.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:G.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:G.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:G.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:G.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}wa.create=t=>new wa({checks:[],typeName:re.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...de(t)});class mh extends ge{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){const r=this._getOrReturnCtx(e);return B(r,{code:F.invalid_type,expected:K.boolean,received:r.parsedType}),ne}return Kt(e.data)}}mh.create=t=>new mh({typeName:re.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...de(t)});class Ac extends ge{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){const o=this._getOrReturnCtx(e);return B(o,{code:F.invalid_type,expected:K.date,received:o.parsedType}),ne}if(Number.isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return B(o,{code:F.invalid_date}),ne}const r=new At;let s;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:F.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(s=this._getOrReturnCtx(e,s),B(s,{code:F.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):xe.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Ac({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:G.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:G.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Ac.create=t=>new Ac({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:re.ZodDate,...de(t)});class vy extends ge{_parse(e){if(this._getType(e)!==K.symbol){const r=this._getOrReturnCtx(e);return B(r,{code:F.invalid_type,expected:K.symbol,received:r.parsedType}),ne}return Kt(e.data)}}vy.create=t=>new vy({typeName:re.ZodSymbol,...de(t)});class yy extends ge{_parse(e){if(this._getType(e)!==K.undefined){const r=this._getOrReturnCtx(e);return B(r,{code:F.invalid_type,expected:K.undefined,received:r.parsedType}),ne}return Kt(e.data)}}yy.create=t=>new yy({typeName:re.ZodUndefined,...de(t)});class wy extends ge{_parse(e){if(this._getType(e)!==K.null){const r=this._getOrReturnCtx(e);return B(r,{code:F.invalid_type,expected:K.null,received:r.parsedType}),ne}return Kt(e.data)}}wy.create=t=>new wy({typeName:re.ZodNull,...de(t)});class xy extends ge{constructor(){super(...arguments),this._any=!0}_parse(e){return Kt(e.data)}}xy.create=t=>new xy({typeName:re.ZodAny,...de(t)});class by extends ge{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Kt(e.data)}}by.create=t=>new by({typeName:re.ZodUnknown,...de(t)});class Zr extends ge{_parse(e){const n=this._getOrReturnCtx(e);return B(n,{code:F.invalid_type,expected:K.never,received:n.parsedType}),ne}}Zr.create=t=>new Zr({typeName:re.ZodNever,...de(t)});class _y extends ge{_parse(e){if(this._getType(e)!==K.undefined){const r=this._getOrReturnCtx(e);return B(r,{code:F.invalid_type,expected:K.void,received:r.parsedType}),ne}return Kt(e.data)}}_y.create=t=>new _y({typeName:re.ZodVoid,...de(t)});class On extends ge{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==K.array)return B(n,{code:F.invalid_type,expected:K.array,received:n.parsedType}),ne;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(B(n,{code:i?F.too_big:F.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(B(n,{code:F.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(B(n,{code:F.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new Yr(n,i,n.path,a)))).then(i=>At.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new Yr(n,i,n.path,a)));return At.mergeArray(r,o)}
vendor: 15,451 bytes, line 369
369get element(){return this._def.type}min(e,n){return new On({...this._def,minLength:{value:e,message:G.toString(n)}})}max(e,n){return new On({...this._def,maxLength:{value:e,message:G.toString(n)}})}length(e,n){return new On({...this._def,exactLength:{value:e,message:G.toString(n)}})}nonempty(e){return this.min(1,e)}}On.create=(t,e)=>new On({type:t,minLength:null,maxLength:null,exactLength:null,typeName:re.ZodArray,...de(e)});function Js(t){if(t instanceof De){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Hr.create(Js(r))}return new De({...t._def,shape:()=>e})}else return t instanceof On?new On({...t._def,type:Js(t.element)}):t instanceof Hr?Hr.create(Js(t.unwrap())):t instanceof Zo?Zo.create(Js(t.unwrap())):t instanceof As?As.create(t.items.map(e=>Js(e))):t}class De extends ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=xe.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==K.object){const c=this._getOrReturnCtx(e);return B(c,{code:F.invalid_type,expected:K.object,received:c.parsedType}),ne}const{status:r,ctx:s}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Zr&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const d=o[c],f=s.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new Yr(s,f,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof Zr){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")a.length>0&&(B(s,{code:F.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of a){const f=s.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new Yr(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const f=await d.key,h=await d.value;c.push({key:f,value:h,alwaysSet:d.alwaysSet})}return c}).then(c=>At.mergeObjectSync(r,c)):At.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return G.errToObj,new De({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var o,i;const s=((i=(o=this._def).errorMap)==null?void 0:i.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:G.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new De({...this._def,unknownKeys:"strip"})}passthrough(){return new De({...this._def,unknownKeys:"passthrough"})}extend(e){return new De({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new De({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:re.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new De({...this._def,catchall:e})}pick(e){const n={};for(const r of xe.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new De({...this._def,shape:()=>n})}omit(e){const n={};for(const r of xe.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new De({...this._def,shape:()=>n})}deepPartial(){return Js(this)}partial(e){const n={};for(const r of xe.objectKeys(this.shape)){const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}return new De({...this._def,shape:()=>n})}required(e){const n={};for(const r of xe.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Hr;)o=o._def.innerType;n[r]=o}return new De({...this._def,shape:()=>n})}keyof(){return FS(xe.objectKeys(this.shape))}}De.create=(t,e)=>new De({shape:()=>t,unknownKeys:"strip",catchall:Zr.create(),typeName:re.ZodObject,...de(e)});De.strictCreate=(t,e)=>new De({shape:()=>t,unknownKeys:"strict",catchall:Zr.create(),typeName:re.ZodObject,...de(e)});De.lazycreate=(t,e)=>new De({shape:t,unknownKeys:"strip",catchall:Zr.create(),typeName:re.ZodObject,...de(e)});class Oc extends ge{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new In(a.ctx.common.issues));return B(n,{code:F.invalid_union,unionErrors:i}),ne}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new In(l));return B(n,{code:F.invalid_union,unionErrors:a}),ne}}get options(){return this._def.options}}Oc.create=(t,e)=>new Oc({options:t,typeName:re.ZodUnion,...de(e)});function gh(t,e){const n=br(t),r=br(e);if(t===e)return{valid:!0,data:t};if(n===K.object&&r===K.object){const s=xe.objectKeys(e),o=xe.objectKeys(t).filter(a=>s.indexOf(a)!==-1),i={...t,...e};for(const a of o){const l=gh(t[a],e[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===K.array&&r===K.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let o=0;o<t.length;o++){const i=t[o],a=e[o],l=gh(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===K.date&&r===K.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class $c extends ge{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(o,i)=>{if(py(o)||py(i))return ne;const a=gh(o.value,i.value);return a.valid?((my(o)||my(i))&&n.dirty(),{status:n.value,value:a.data}):(B(r,{code:F.invalid_intersection_types}),ne)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}$c.create=(t,e,n)=>new $c({left:t,right:e,typeName:re.ZodIntersection,...de(n)});class As extends ge{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==K.array)return B(r,{code:F.invalid_type,expected:K.array,received:r.parsedType}),ne;if(r.data.length<this._def.items.length)return B(r,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ne;!this._def.rest&&r.data.length>this._def.items.length&&(B(r,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Yr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>At.mergeArray(n,i)):At.mergeArray(n,o)}get items(){return this._def.items}rest(e){return new As({...this._def,rest:e})}}As.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new As({items:t,typeName:re.ZodTuple,rest:null,...de(e)})};class Sy extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==K.map)return B(r,{code:F.invalid_type,expected:K.map,received:r.parsedType}),ne;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new Yr(r,a,r.path,[c,"key"])),value:o._parse(new Yr(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return ne;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return ne;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}}}}Sy.create=(t,e,n)=>new Sy({valueType:e,keyType:t,typeName:re.ZodMap,...de(n)});class xa extends ge{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==K.set)return B(r,{code:F.invalid_type,expected:K.set,received:r.parsedType}),ne;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(B(r,{code:F.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(B(r,{code:F.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const d of l){if(d.status==="aborted")return ne;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new Yr(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(e,n){return new xa({...this._def,minSize:{value:e,message:G.toString(n)}})}max(e,n){return new xa({...this._def,maxSize:{value:e,message:G.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}xa.create=(t,e)=>new xa({valueType:t,minSize:null,maxSize:null,typeName:re.ZodSet,...de(e)});class ky extends ge{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ky.create=(t,e)=>new ky({getter:t,typeName:re.ZodLazy,...de(e)});class Ey extends ge{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return B(n,{received:n.data,code:F.invalid_literal,expected:this._def.value}),ne}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ey.create=(t,e)=>new Ey({value:t,typeName:re.ZodLiteral,...de(e)});function FS(t,e){return new Go({values:t,typeName:re.ZodEnum,...de(e)})}class Go extends ge{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return B(n,{expected:xe.joinValues(r),received:n.parsedType,code:F.invalid_type}),ne}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return B(n,{received:n.data,code:F.invalid_enum_value,options:r}),ne}return Kt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Go.create(e,{...this._def,...n})}exclude(e,n=this._def){return Go.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}Go.create=FS;class Cy extends ge{_parse(e){const n=xe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==K.string&&r.parsedType!==K.number){const s=xe.objectValues(n);return B(r,{expected:xe.joinValues(s),received:r.parsedType,code:F.invalid_type}),ne}if(this._cache||(this._cache=new Set(xe.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=xe.objectValues(n);return B(r,{received:r.data,code:F.invalid_enum_value,options:s}),ne}return Kt(e.data)}get enum(){return this._def.values}}Cy.create=(t,e)=>new Cy({values:t,typeName:re.ZodNativeEnum,...de(e)});class Ic extends ge{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==K.promise&&n.common.async===!1)return B(n,{code:F.invalid_type,expected:K.promise,received:n.parsedType}),ne;const r=n.parsedType===K.promise?n.data:Promise.resolve(n.data);return Kt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ic.create=(t,e)=>new Ic({type:t,typeName:re.ZodPromise,...de(e)});class Yo extends ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:i=>{B(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ne;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ne:l.status==="dirty"||n.value==="dirty"?Oi(l.value):l});{if(n.value==="aborted")return ne;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ne:a.status==="dirty"||n.value==="dirty"?Oi(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!qo(i))return ne;const a=s.transform(i.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>qo(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):ne);xe.assertNever(s)}}Yo.create=(t,e,n)=>new Yo({schema:t,typeName:re.ZodEffects,effect:e,...de(n)});Yo.createWithPreprocess=(t,e,n)=>new Yo({schema:e,effect:{type:"preprocess",transform:t},typeName:re.ZodEffects,...de(n)});class Hr extends ge{_parse(e){return this._getType(e)===K.undefined?Kt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Hr.create=(t,e)=>new Hr({innerType:t,typeName:re.ZodOptional,...de(e)});class Zo extends ge{_parse(e){return this._getType(e)===K.null?Kt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Zo.create=(t,e)=>new Zo({innerType:t,typeName:re.ZodNullable,...de(e)});class vh extends ge{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===K.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}vh.create=(t,e)=>new vh({innerType:t,typeName:re.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...de(e)});class yh extends ge{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Rc(s)?s.then(o=>
369({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new In(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new In(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}yh.create=(t,e)=>new yh({innerType:t,typeName:re.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...de(e)});class jy extends ge{_parse(e){if(this._getType(e)!==K.nan){const r=this._getOrReturnCtx(e);return B(r,{code:F.invalid_type,expected:K.nan,received:r.parsedType}),ne}return{status:"valid",value:e.data}}}jy.create=t=>new jy({typeName:re.ZodNaN,...de(t)});class FM extends ge{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class pm extends ge{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ne:o.status==="dirty"?(n.dirty(),Oi(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ne:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new pm({in:e,out:n,typeName:re.ZodPipeline})}}class wh extends ge{_parse(e){const n=this._def.innerType._parse(e),r=s=>(qo(s)&&(s.value=Object.freeze(s.value)),s);return Rc(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}wh.create=(t,e)=>new wh({innerType:t,typeName:re.ZodReadonly,...de(e)});De.lazycreate;var re;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(re||(re={}));const Rd=$r.create,D8=Ko.create,M8=mh.create;Zr.create;const F8=On.create,zM=De.create;De.strictCreate;Oc.create;$c.create;As.create;Go.create;Ic.create;Hr.create;Zo.create;const UM=({open:t,onVerified:e,onClose:n})=>{const[r,s]=p.useState(""),[o,i]=p.useState(""),a=()=>{const l=parseInt(r),c=new Date().getFullYear();if(!l||l<1900||l>c){i("Please enter a valid birth year");return}const d=c-l;if(d<13){i("Users under 13 require parental consent. Please have a parent or guardian help you sign up.");return}e(d)};return u.jsx(j_,{open:t,onOpenChange:n,children:u.jsxs(lm,{className:"sm:max-w-md",children:[u.jsxs(cm,{children:[u.jsx(um,{children:"Age Verification"}),u.jsx(dm,{children:"We need to verify your age to ensure compliance with COPPA regulations and provide an age-appropriate experience."})]}),u.jsxs("div",{className:"space-y-4 py-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"birthYear",children:"What year were you born?"}),u.jsx(Mt,{id:"birthYear",type:"number",placeholder:"YYYY",value:r,onChange:l=>{s(l.target.value),i("")},min:"1900",max:new Date().getFullYear()})]}),o&&u.jsxs("div",{className:"flex items-start gap-2 p-3 bg-destructive/10 border border-destructive/20 rounded-md",children:[u.jsx(Sp,{className:"h-5 w-5 text-destructive shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-destructive",children:o})]}),u.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"For users under 13:"})," Parental consent is required."]}),u.jsxs("p",{children:[u.jsx("strong",{children:"For users 13-17:"})," We recommend reviewing our Terms and Privacy Policy with a parent or guardian."]})]})]}),u.jsxs(P_,{children:[u.jsx(ae,{variant:"outline",onClick:n,children:"Cancel"}),u.jsx(ae,{onClick:a,children:"Verify Age"})]})]})})},BM=zM({email:Rd().trim().email({message:"Please enter a valid email address"}),password:Rd().min(8,{message:"Password must be at least 8 characters long"}).regex(/[A-Za-z]/,{message:"Password must contain at least one letter"}).regex(/[0-9]/,{message:"Password must contain at least one number"}).regex(/[^A-Za-z0-9]/,{message:"Password must contain at least one special character"}),displayName:Rd().trim().optional()}),VM=()=>{const[t,e]=p.useState(!1),[n,r]=p.useState(!1),[s,o]=p.useState(!1),[i,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,m]=p.useState(!1),[b,v]=p.useState(!1),[x,g]=p.useState(!1),[w,y]=p.useState(!1),[_,S]=p.useState(0),[k,C]=p.useState(0),[E,O]=p.useState({email:"",password:"",displayName:"",newPassword:"",confirmPassword:""}),[P,D]=p.useState({}),{signUp:$,signIn:U,user:A}=ns(),{toast:I}=yp(),z=ir(),[V]=qR();Q1("Sign In or Create Your Account | HERPower");const j=V.get("redirect")||"/dashboard";p.useEffect(()=>{V.get("confirmed")==="1"&&I({title:"You're all set! ð",description:"Your email is confirmed. Welcome to HERPower!",duration:8e3})},[]),p.useEffect(()=>{V.get("mode")==="signup"&&e(!0)},[V]),p.useEffect(()=>{if(_>0){const q=setTimeout(()=>S(_-1),1e3);return()=>clearTimeout(q)}},[_]),p.useEffect(()=>{if(k>0){const q=setTimeout(()=>{C(k-1)},1e3);return()=>clearTimeout(q)}},[k]),p.useEffect(()=>{new URLSearchParams(window.location.hash.substring(1)).get("type")==="recovery"&&(c(!0),e(!1))},[]),p.useEffect(()=>{const Q=new URLSearchParams(window.location.hash.substring(1)).get("type");A&&Q!=="recovery"&&z(j)},[A,z,j]);const R=()=>{try{const q={email:E.email,password:E.password,...t&&E.displayName?{displayName:E.displayName}:{}};return BM.parse(q),D({}),!0}catch(q){if(q instanceof In){const Q={};
369q.errors.forEach(Se=>{Se.path[0]&&(Q[Se.path[0]]=Se.message)}),D(Q)}return!1}},L=async q=>{if(q.preventDefault(),!!R()){if(t){o(!0);return}await Z()}},Y=async q=>{o(!1),sessionStorage.setItem("pendingAge",q.toString()),await X()},W=async()=>{if(!E.email){I({title:"Email Required",description:"Please enter your email address first.",variant:"destructive"});return}r(!0);try{const q=`${window.location.origin}/auth`,{error:Q}=await Fe.auth.resetPasswordForEmail(E.email,{redirectTo:q});Q?I({title:"Password Reset Failed",description:Q.message||"Failed to send reset email",variant:"destructive"}):(I({title:"Email Sent! âï¸",description:u.jsxs("div",{className:"space-y-2",children:[u.jsxs("p",{children:["Password reset link sent to ",u.jsx("strong",{children:E.email})]}),u.jsx("p",{className:"text-xs",children:"Can't find it? Check your spam folder or search for [email protected]"})]}),duration:1e4}),a(!0),g(!0),C(60))}catch{I({title:"An Error Occurred",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{r(!1)}},X=async()=>{var q;r(!0);try{const{data:Q,error:Se}=await Fe.auth.signInWithPassword({email:E.email,password:"invalid-password-check-12345!@#$%"});if(Q!=null&&Q.user){I({title:"Email Already Registered",description:u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("p",{children:"This email already has an account."}),u.jsx(ae,{variant:"outline",size:"sm",onClick:W,className:"w-fit",children:"Reset Password"})]}),variant:"destructive"}),r(!1);return}}catch(Q){if(((Q==null?void 0:Q.message)||"").toLowerCase().includes("email not confirmed")){I({title:"Email Already Registered",description:u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("p",{children:"This email already has an account. Please check your email to confirm it, or reset your password."}),u.jsx(ae,{variant:"outline",size:"sm",onClick:W,className:"w-fit",children:"Reset Password"})]}),variant:"destructive"}),r(!1);return}}try{const Q=await $(E.email,E.password,E.displayName);if(Q.error){let Se=Q.error.message;if(Se.includes("User already registered")){I({title:"Email Already Registered",description:u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("p",{children:"This email already has an account."}),u.jsx(ae,{variant:"outline",size:"sm",onClick:W,className:"w-fit",children:"Reset Password"})]}),variant:"destructive"});return}else Se.includes("Email not confirmed")&&(Se="Please check your email and click the confirmation link before signing in.");I({title:"Sign Up Failed",description:Se,variant:"destructive"})}else{if((q=Q.data)!=null&&q.user){const Se=sessionStorage.getItem("pendingAge");if(Se){const{error:at}=await Fe.from("profiles").update({age:parseInt(Se),age_verified_at:new Date().toISOString()}).eq("user_id",Q.data.user.id);at&&console.error("Error storing age:",at),sessionStorage.removeItem("pendingAge")}try{const{data:at}=await Fe.functions.invoke("send-welcome-email",{body:{email:E.email,displayName:E.displayName||"Queen",userId:Q.data.user.id}});console.log("Welcome email sent:",at)}catch(at){console.error("Error sending welcome email:",at)}}y(!0),S(60)}}catch{I({title:"An Error Occurred",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{r(!1)}},Z=async()=>{r(!0);try{const q=await U(E.email,E.password);if(q.error){let Q=q.error.message;Q.includes("Invalid login credentials")?Q="Invalid email or password. Please check your credentials and try again.":Q.includes("Email not confirmed")&&(Q="Please check your email and click the confirmation link before signing in."),I({title:"Sign In Failed",description:Q,variant:"destructive"})}else I({title:"Welcome back!",description:"You have successfully signed in."})}catch{I({title:"An Error Occurred",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{r(!1)}},ve=(q,Q)=>{O(Se=>({...Se,[q]:Q})),P[q]&&D(Se=>({...Se,[q]:""}))},ze=async q=>{if(q.preventDefault(),!E.email){D({email:"Please enter your email address"});return}r(!0);try{const Q=`${window.location.origin}/auth`,{error:Se}=await Fe.auth.resetPasswordForEmail(E.email,{redirectTo:Q});Se?I({title:"Password Reset Failed",description:Se.message,variant:"destructive"}):(g(!0),C(60),I({title:"Email Sent! âï¸",description:u.jsxs("div",{className:"space-y-2",children:[u.jsxs("p",{children:["Password reset link sent to ",u.jsx("strong",{children:E.email})]}),u.jsx("p",{className:"text-xs",children:"Can't find it? Check your spam folder or search for [email protected]"})]}),duration:1e4}))}catch{I({title:"An Error Occurred",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{r(!1)}},ye=async()=>
369{if(!(k>0||!E.email)){r(!0);try{const q=`${window.location.origin}/auth`,{error:Q}=await Fe.auth.resetPasswordForEmail(E.email,{redirectTo:q});Q?I({title:"Resend Failed",description:Q.message,variant:"destructive"}):(C(60),I({title:"Email Resent! âï¸",description:"Check your inbox and spam folder."}))}catch{I({title:"An Error Occurred",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{r(!1)}}},lr=async()=>{if(!(_>0||!E.email)){r(!0);try{const{error:q}=await Fe.auth.resend({type:"signup",email:E.email,options:{emailRedirectTo:`${window.location.origin}/auth?confirmed=1`}});q?I({title:"Resend Failed",description:q.message,variant:"destructive"}):(S(60),I({title:"Email Resent! âï¸",description:"Check your inbox and spam folder."}))}finally{r(!1)}}},xn=async q=>{if(q.preventDefault(),!E.newPassword||E.newPassword.length<8){D({newPassword:"Password must be at least 8 characters long"});return}if(!/[A-Za-z]/.test(E.newPassword)){D({newPassword:"Password must contain at least one letter"});return}if(!/[0-9]/.test(E.newPassword)){D({newPassword:"Password must contain at least one number"});return}if(!/[^A-Za-z0-9]/.test(E.newPassword)){D({newPassword:"Password must contain at least one special character"});return}if(E.newPassword!==E.confirmPassword){D({confirmPassword:"Passwords do not match"});return}r(!0);try{const{error:Q}=await Fe.auth.updateUser({password:E.newPassword});Q?I({title:"Password Update Failed",description:Q.message,variant:"destructive"}):(I({title:"Password Updated!",description:"Your password has been successfully updated. You can now sign in with your new password."}),c(!1),O({email:"",password:"",displayName:"",newPassword:"",confirmPassword:""}),z("/dashboard"))}catch{I({title:"An Error Occurred",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{r(!1)}};return u.jsxs("div",{className:"min-h-screen bg-gradient-background flex flex-col",children:[u.jsx("div",{className:"flex-1 flex items-center justify-center p-4 py-8",children:u.jsxs("div",{className:"w-full max-w-md
369space-y-6",children:[u.jsx("div",{className:"flex justify-start",children:u.jsxs(ae,{variant:"ghost",onClick:()=>z("/"),className:"flex items-center gap-2 -ml-2",children:[u.jsx(Bj,{className:"h-4 w-4"}),u.jsx("span",{className:"hidden xs:inline",children:"Back to Home"}),u.jsx("span",{className:"xs:hidden",children:"Back"})]})}),u.jsxs("div",{className:"text-center space-y-3",children:[u.jsxs("div",{className:"flex items-center justify-center gap-2",children:[u.jsx(Aa,{className:"h-7 w-7 sm:h-8 sm:w-8 text-primary"}),u.jsx(hn,{className:"h-5 w-5 sm:h-6 sm:w-6 text-accent-gold"})]}),u.jsxs("div",{children:[u.jsx("h1",{className:"text-2xl sm:text-3xl font-bold bg-gradient-primary bg-clip-text text-transparent",children:"SelfSpark Hub"}),u.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mt-2 px-2",children:"Your journey to self-love and wellness starts here"})]})]}),u.jsx(qe,{className:"p-4 sm:p-6 bg-gradient-card shadow-soft border-0",children:u.jsxs(hM,{value:t?"signup":"signin",className:"w-full",children:[u.jsxs(LS,{className:"grid w-full grid-cols-2",children:[u.jsx(fh,{value:"signin",onClick:()=>e(!1),children:"Sign In"}),u.jsx(fh,{value:"signup",onClick:()=>e(!0),children:"Sign Up"})]}),u.jsx(hh,{value:"signin",className:"mt-6",children:l?u.jsxs("form",{onSubmit:xn,className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2 text-center mb-4",children:[u.jsx("h3",{className:"text-lg font-semibold",children:"Set New Password"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter your new password below"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"new-password",children:"New Password"}),u.jsxs("div",{className:"relative",children:[u.jsx(Mt,{id:"new-password",type:h?"text":"password",value:E.newPassword,onChange:q=>ve("newPassword",q.target.value),placeholder:"Enter new password",required:!0,className:"pr-10"}),u.jsx("button",{type:"button",onClick:()=>m(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:h?u.jsx(dl,{className:"h-4 w-4"}):u.jsx(fl,{className:"h-4 w-4"})})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Must be 8+ characters with letters, numbers, and symbols"}),P.newPassword&&u.jsx("p",{className:"text-sm text-destructive",children:P.newPassword})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"confirm-password",children:"Confirm Password"}),u.jsxs("div",{className:"relative",children:[u.jsx(Mt,{id:"confirm-password",type:b?"text":"password",value:E.confirmPassword,onChange:q=>ve("confirmPassword",q.target.value),placeholder:"Confirm new password",required:!0,className:"pr-10"}),u.jsx("button",{type:"button",onClick:()=>v(!b),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:b?u.jsx(dl,{className:"h-4 w-4"}):u.jsx(fl,{className:"h-4 w-4"})})]}),P.confirmPassword&&u.jsx("p",{className:"text-sm text-destructive",children:P.confirmPassword})]}),u.jsx(ae,{type:"submit",variant:"wellness",className:"w-full",disabled:n,children:n?"Updating Password...":"Update Password"})]}):i?u.jsxs("form",{onSubmit:ze,className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"reset-email",children:"Email"}),u.jsx(Mt,{id:"reset-email",type:"email",value:E.email,onChange:q=>ve("email",q.target.value),placeholder:"Enter your email",required:!0,disabled:x}),P.email&&u.jsx("p",{className:"text-sm text-destructive",children:P.email})]}),x&&u.jsxs("div",{className:"p-4 bg-primary/10 border border-primary/20 rounded-lg space-y-3",children:[u.jsxs("p",{className:"text-sm text-foreground",children:["ð§ Email sent to ",u.jsx("strong",{children:E.email})]}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Check your inbox and spam folder. Look for emails from ",u.jsx("strong",{children:"[email protected]"})]}),u.jsx(ae,{type:"button",variant:"outline",size:"sm",className:"w-full",onClick:ye,disabled:k>0||n,children:k>0?`Resend in ${k}s`:n?"Sending...":"Resend Email"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(ae,{type:"submit",variant:"wellness",className:"w-full",disabled:n||x,children:n?"Sending Reset Link...":"Send Reset Link"}),u.jsx(ae,{type:"button",variant:"ghost",className:"w-full",onClick:()=>{a(!1),g(!1),C(0)},children:"Back to Sign In"})]})]}):u.jsxs("form",{onSubmit:L,className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"email",children:"Email"}),u.jsx(Mt,{id:"email",type:"email",value:E.email,onChange:q=>ve("email",q.target.value),placeholder:"Enter your email",required:!0}),P.email&&u.jsx("p",{className:"text-sm text-destructive",children:P.email})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Ft,{htmlFor:"password",children:"Password"}),u.jsx("button",{type:"button",onClick:()=>a(!0),className:"text-sm text-primary hover:underline",children:"Forgot Password?"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(Mt,{id:"password",type:d?"text":"password",value:E.password,onChange:q=>ve("password",q.target.value),placeholder:"Enter your password",required:!0,className:"pr-10"}),u.jsx("button",{type:"button",onClick:()=>f(!d),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:d?u.jsx(dl,{className:"h-4 w-4"}):u.jsx(fl,{className:"h-4 w-4"})})]}),P.password&&u.jsx("p",{className:"text-sm text-destructive",children:P.password})]}),u.jsx(ae,{type:"submit",variant:"wellness",className:"w-full",disabled:n,children:n?"Signing In...":"Sign In"})]})}),u.jsx(hh,{value:"signup",className:"mt-6",children:w?u.jsxs("div",{className:"space-y-4 text-center py-4",children:[u.jsx("div",{className:"mx-auto h-16 w-16 rounded-full bg-primary/10 flex items-center justify-center",children:u.jsx(hn,{className:"h-8 w-8 text-primary"})}),u.jsx("h3",{className:"text-xl font-semibold",children:"Check your email"}),u.jsxs("p",{className:"text-sm text-muted-foreground",children:["We sent a confirmation link to ",u.jsx("strong",{children:E.email}),". Tap the link in that email to finish creating your account."]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Can't find it? Check your spam or promotions folder."}),u.jsx(ae,{type:"button",variant:"outline",className:"w-full",onClick:lr,disabled:_>0||n,children:_>0?`Resend in ${_}s`:n?"Sending...":"Resend Email"}),u.jsx(ae,{type:"button",variant:"ghost",className:"w-full",onClick:()=>{y(!1),e(!1)},children:"Back to Sign In"})]}):u.jsxs("form",{onSubmit:L,className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"displayName",children:"Display Name (Optional)"}),u.jsx(Mt,{id:"displayName",type:"text",value:E.displayName,onChange:q=>ve("displayName",q.target.value),placeholder:"How should we call you?"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"email",children:"Email"}),u.jsx(Mt,{id:"email",type:"email",value:E.email,onChange:q=>ve("email",q.target.value),placeholder:"Enter your email",required:!0}),P.email&&u.jsx("p",{className:"text-sm text-destructive",children:P.email})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ft,{htmlFor:"password",children:"Password"}),u.jsxs("div",{className:"relative",children:[u.jsx(Mt,{id:"password",type:d?"text":"password",value:E.password,onChange:q=>ve("password",q.target.value),placeholder:"Create a secure password",required:!0,className:"pr-10"}),u.jsx("button",{type:"button",onClick:()=>f(!d),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:d?u.jsx(dl,{className:"h-4 w-4"}):u.jsx(fl,{className:"h-4 w-4"})})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Must be 8+ characters with letters, numbers, and symbols (!@#$%^&*)"}),P.password&&u.jsx("p",{className:"text-sm text-destructive",children:P.password})]}),u.jsx(ae,{type:"submit",variant:"wellness",className:"w-full",disabled:n,children:n?"Creating Account...":"Create Account"})]})})]})}),u.jsxs("p",{className:"text-center text-xs sm:text-sm text-muted-foreground px-4",children:["By continuing, you agree to our"," ",u.jsx(Or,{to:"/terms-of-service",className:"text-primary hover:underline",children:"Terms of Service"}
369)," ","and"," ",u.jsx(Or,{to:"/privacy-policy",className:"text-primary hover:underline",children:"Privacy Policy"})]})]})}),u.jsx(UM,{open:s,onVerified:Y,onClose:()=>o(!1)}),u.jsx(fm,{})]})},HM=()=>{const t=yn();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),u.jsxs("div",{className:"flex flex-col min-h-screen",children:[u.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/80",children:"Return to Home"})]})}),u.jsx(fm,{})]})},WM=p.lazy(()=>J(()=>import("./Dashboard-CZa1Dpit.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]))),qM=p.lazy(()=>J(()=>import("./SelfLoveAssessment-NgFYFObs.js"),__vite__mapDeps([29,30,24,14,31]))),KM=p.lazy(()=>J(()=>import("./Profile-BCJl3PsH.js").then(t=>t.c),__vite__mapDeps([10,11,12,13,14,15,16,17,9,18,19,20,21,2,22]))),GM=p.lazy(()=>J(()=>import("./Mirror-DwGieonj.js"),__vite__mapDeps([32,25,26,2,27,28]))),YM=p.lazy(()=>J(()=>import("./VoiceNotes-BZXUlWrk.js"),__vite__mapDeps([33,26,28,34]))),ZM=p.lazy(()=>J(()=>import("./VisionBoard-zt0RSrbv.js"),__vite__mapDeps([35,3,26,1,7,36,37,27,38,39,40,41,8,2,42]))),QM=p.lazy(()=>J(()=>import("./CommunityVisionBoards-DC66GcZI.js"),__vite__mapDeps([43,20]))),JM=p.lazy(()=>J(()=>import("./Ebook-BdumhgaG.js"),__vite__mapDeps([44,14,3,27,41,5]))),XM=p.lazy(()=>J(()=>import("./Workbook-CIOiATKP.js"),__vite__mapDeps([45,3,46,47,7,27,31,38]))),e6=p.lazy(()=>J(()=>import("./EbookNotes-BeUJKWin.js"),__vite__mapDeps([48,3,36,7,49,37,5,27,38,50,23,40,51,34]))),t6=p.lazy(()=>J(()=>import("./Premium-BEEaPILC.js"),__vite__mapDeps([52,27,31,9,7,41]))),n6=p.lazy(()=>J(()=>import("./Subscription-BDn8G_b4.js"),__vite__mapDeps([53,12,26,19,15]))),r6=p.lazy(()=>J(()=>import("./JournalHistory-ClxJHg_Y.js"),__vite__mapDeps([54,49,50,19,15,34,16,17]))),s6=p.lazy(()=>J(()=>import("./SavedAffirmations-zCZERsYw.js"),__vite__mapDeps([55,49,50,19]))),o6=p.lazy(()=>J(()=>import("./Circles-BXGOZGmP.js"),__vite__mapDeps([56,57,58,26,11,3,4,38,7,51,34,17,9,59,60,28]))),i6=p.lazy(()=>J(()=>import("./CommunityGallery-BJIBg8Ry.js"),__vite__mapDeps([61,60,41]))),a6=p.lazy(()=>J(()=>import("./PremiumLibrary-BXZlyA9l.js"),__vite__mapDeps([62,26,60]))),l6=p.lazy(()=>J(()=>import("./TermsOfService-CMw7pXyj.js"),[])),c6=p.lazy(()=>J(()=>import("./PrivacyPolicy-rJ1LWnQF.js"),[])),u6=p.lazy(()=>J(()=>import("./CommunityGuidelines-5oUHO11J.js"),__vite__mapDeps([63,57]))),d6=p.lazy(()=>J(()=>import("./SafetyResources-BXvDycyX.js"),__vite__mapDeps([64,57]))),f6=p.lazy(()=>J(()=>import("./Install-Arl2YcSf.js"),__vite__mapDeps([65,66]))),h6=p.lazy(()=>J(()=>import("./WeeklyBetaFeedback-DPc6wivV.js"),__vite__mapDeps([67,3,47,7,30,24,19]))),p6=p.lazy(()=>J(()=>import("./ExitSurvey-CuRjFlwC.js"),__vite__mapDeps([68,3,47,7,30,24]))),m6=p.lazy(()=>J(()=>import("./Admin-DKjaNNph.js"),__vite__mapDeps([69,70,71,3,36,7,28,19,8,34,15,72]))),g6=p.lazy(()=>J(()=>import("./AdminDashboard-Cm8cVCRF.js"),__vite__mapDeps([73,74,19,17,15,72,16,75,18,76,21,57,27]))),v6=p.lazy(()=>J(()=>import("./AdminAnalytics-C35hjYBa.js"),__vite__mapDeps([77,76,27,72,39,58]))),y6=p.lazy(()=>J(()=>import("./AdminModeration-DOeFdoo2.js"),__vite__mapDeps([78,36,7,79,27,66,59,80,15]))),w6=p.lazy(()=>J(()=>import("./AdminSettings-Cs_UD_Z1.js"),__vite__mapDeps([81,3,36,7,70,8,27,22,50,34]))),x6=p.lazy(()=>J(()=>import("./AdminAffirmations-ClJxX7jU.js"),__vite__mapDeps([82,74,3,36,7,70,79,27,8,40,23,50,46,83,34]))),b6=p.lazy(()=>J(()=>import("./AdminChallenges-BttIq9WI.js"),__vite__mapDeps([84,74,3,36,7,70,79,27,8,40,23,50,46,83,34]))),_6=p.lazy(()=>J(()=>import("./AdminCommunityMedia-DuUBmDYs.js"),__vite__mapDeps([85,74,3,36,7,70,47,79,27,23,50,8,60,83,34]))),S6=p.lazy(()=>J(()=>import("./AdminVoiceNotes-CCTkuwyq.js"),__vite__mapDeps([86,71,3,36,7,70,28,19,8,34,27]))),k6=p.lazy(()=>J(()=>import("./AdminEbookAccess-B2bJsISf.js"),__vite__mapDeps([87,70,75,18,76,21,66,80,50]))),E6=p.lazy(()=>J(()=>import("./AdminBetaFeedback-Blet-M2A.js"),__vite__mapDeps([88,75,18,76,21,66,22]))),C6=p.lazy(()=>J(()=>import("./AdminWeeklyFeedback-BbohBDXa.js"),__vite__mapDeps([89,75,18,76,21]))),j6=p.lazy(()=>J(()=>import("./AdminNotifications-v1vHUISv.js"),__vite__mapDeps([90,3,36,7,70,13,79,27,40,18,34,16,17]))),T6=p.lazy(()=>J(()=>import("./AdminBetaRequests-Blzm_T3e.js"),__vite__mapDeps([91,75,18,76,21,66,80,20,22,15,6,34,16,17]))),P6=new FN,N6=()=>(F$(),p.useEffect(()=>{(async()=>{await wI()&&window.location.reload()})()},[]),u.jsx(p.Suspense,{fallback:u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:u.jsx(p1,{})}),children:u.jsxs($R,{children:[u.jsx(te,{path:"/",element:u.jsx(Q5,{})}),u.jsx(te,{path:"/auth",element:u.jsx(VM,{})}),u.jsx(te,{path:"/dashboard",element:u.jsx(WM,{})}),u.jsxs(te,{element:u.jsx(yI,{}),children:[u.jsx(te,{path:"/assessment",element:u.jsx(qM,{})}),u.jsx(te,{path:"/profile",element:u.jsx(KM,{})}),u.jsx(te,{path:"/mirror",element:u.jsx(GM,{})}),u.jsx(te,{path:"/voice-notes",element:u.jsx(YM,{})}),u.jsx(te,{path:"/vision-board",element:u.jsx(ZM,{})}),u.jsx(te,{path:"/community-vision-boards",element:u.jsx(QM,{})}),u.jsx(te,{path:"/ebook",element:u.jsx(JM,{})}),u.jsx(te,{path:"/workbook",element:u.jsx(XM,{})}),u.jsx(te,{path:"/ebook-notes",element:u.jsx(e6,{})}),u.jsx(te,{path:"/premium",element:u.jsx(t6,{})}),u.jsx(te,{path:"/subscription",element:u.jsx(n6,{})}),u.jsx(te,{path:"/journal-history",element:u.jsx(r6,{})}),u.jsx(te,{path:"/saved-affirmations",element:u.jsx(s6,{})}),u.jsx(te,{path:"/circles",element:u.jsx(o6,{})}),u.jsx(te,{path:"/community-gallery",element:u.jsx(i6,{})}),u.jsx(te,{path:"/premium-library",element:u.jsx(a6,{})}),u.jsx(te,{path:"/install",element:u.jsx(f6,{})}),u.jsx(te,{path:"/beta",element:u.jsx(RR,{to:"/auth?mode=signup",replace:!0})}),u.jsx(te,{path:"/beta/feedback",element:u.jsx(h6,{})}),u.jsx(te,{path:"/exit-survey",element:u.jsx(p6,{})}),u.jsx(te,{path:"/admin",element:u.jsx(m6,{})}),u.jsx(te,{path:"/admin/dashboard",element:u.jsx(g6,{})}),u.jsx(te,{path:"/admin/analytics",element:u.jsx(v6,{})}),u.jsx(te,{path:"/admin/moderation",element:u.jsx(y6,{})}),u.jsx(te,{path:"/admin/settings",element:u.jsx(w6,{})}),u.jsx(te,{path:"/admin/affirmations",element:u.jsx(x6,{})}),u.jsx(te,{path:"/admin/challenges",element:u.jsx(b6,{})}),u.jsx(te,{path:"/admin/media",element:u.jsx(_6,{})}),u.jsx(te,{path:"/admin/voice-notes",element:u.jsx(S6,{})}),u.jsx(te,{path:"/admin/ebook-access",element:u.jsx(k6,{})}),u.jsx(te,{path:"/admin/beta-feedback",element:u.jsx(E6,{})}),u.jsx(te,{path:"/admin/notifications",element:u.jsx(j6,{})}),u.jsx(te,{path:"/admin/beta-requests",element:u.jsx(T6,{})}),u.jsx(te,{path:"/admin/weekly-feedback",element:u.jsx(C6,{})})]}),u.jsx(te,{path:"/terms-of-service",element:u.jsx(l6,{})}),u.jsx(te,{path:"/privacy-policy",element:u.jsx(c6,{})}),u.jsx(te,{path:"/community-guidelines",element:u.jsx(u6,{})}),u.jsx(te,{path:"/safety-resources",element:u.jsx(d6,{})}),u.jsx(te,{path:"*",element:u.jsx(HM,{})})]})})),R6=()=>u.jsx(H$,{children:u.jsx(Vb,{children:u.jsx(UN,{client:P6,children:u.jsx(M$,{children:u.jsxs(mN,{children:[u.jsx(JT,{}),u.jsx(N2,{}),u.jsx(K$,{}),u.jsx(G$,{}),u.jsxs(BR,{children:[u.jsx(Z$,{}),u.jsx(N6,{})]})]})})})})});var A6=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}
369e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zS=function(t,e,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(d){try{c(r.next(d))}catch(f){i(f)}}function l(d){try{c(r.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((r=r.apply(t,e||[])).next())})},US=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,s=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(d){c=[6,d],s=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ty=function(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},O6="ionicpwaelements",Zl,BS,Ct=!1,xh=!1,nr=function(t,e){return function(){}},$6=function(t,e){return function(){}},I6="{visibility:hidden}.hydrated{visibility:inherit}",Py={},L6="http://www.w3.org/2000/svg",D6="http://www.w3.org/1999/xhtml",M6=function(t){return t!=null},mm=function(t){return t=typeof t,t==="object"||t==="function"};function VS(t){var e,n,r;return(r=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:void 0}var F6=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var s=null,o=!1,i=!1,a=[],l=function(f){for(var h=0;h<f.length;h++)s=f[h],Array.isArray(s)?l(s):s!=null&&typeof s!="boolean"&&((o=typeof t!="function"&&!mm(s))&&(s=String(s)),o&&i?a[a.length-1].$text$+=s:a.push(o?bh(null,s):s),i=o)};if(l(n),e){var c=e.className||e.class;c&&(e.class=typeof c!="object"?c:Object.keys(c).filter(function(f){return c[f]}).join(" "))}var d=bh(t,null);return d.$attrs$=e,a.length>0&&(d.$children$=a),d},bh=function(t,e){var n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return n.$attrs$=null,n},z6={},U6=function(t){return t&&t.$tag$===z6},B6=function(t,e){return t!=null&&!mm(t)?e&4?t==="false"?!1:t===""||!!t:e&2?parseFloat(t):e&1?String(t):t:t},V6=function(t){return ss(t).$hostElement$},z8=function(t,e,n){var r=V6(t);return{emit:function(s){return HS(r,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:s})}}},HS=function(t,e,n){var r=Ze.ce(e,n);return t.dispatchEvent(r),r},Ny=new WeakMap,H6=function(t,e,n){var r=Lc.get(t);h8&&n?(r=r||new CSSStyleSheet,typeof r=="string"?r=e:r.replaceSync(e)):r=e,Lc.set(t,r)},W6=function(t,e,n,r){var s,o=WS(e),i=Lc.get(o);if(t=t.nodeType===11?t:un,i)if(typeof i=="string"){t=t.head||t;var a=Ny.get(t),l=void 0;if(a||Ny.set(t,a=new Set),!a.has(o)){{l=un.createElement("style"),l.innerHTML=i;var c=(s=Ze.$nonce$)!==null&&s!==void 0?s:VS(un);c!=null&&l.setAttribute("nonce",c),t.insertBefore(l,t.querySelector("link"))}a&&a.add(o)}}else t.adoptedStyleSheets.includes(i)||(t.adoptedStyleSheets=Ty(Ty([],t.adoptedStyleSheets,!0),[i],!1));return o},q6=function(t){var e=t.$cmpMeta$,n=t.$hostElement$,r=e.$flags$,s=nr("attachStyles",e.$tagName$),o=W6(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);r&10&&(n["s-sc"]=o,n.classList.add(o+"-h")),s()},WS=function(t,e){return"sc-"+t.$tagName$},Ry=function(t,e,n,r,s,o){if(n!==r){var i=Oy(t,e),a=e.toLowerCase();if(e==="class"){var l=t.classList,c=Ay(n),d=Ay(r);l.remove.apply(l,c.filter(function(b){return b&&!d.includes(b)})),l.add.apply(l,d.filter(function(b){return b&&!c.includes(b)}))}else if(e==="style"){for(var f in n)(!r||r[f]==null)&&(f.includes("-")?t.style.removeProperty(f):t.style[f]="");for(var f in r)(!n||r[f]!==n[f])&&(f.includes("-")?t.style.setProperty(f,r[f]):t.style[f]=r[f])}else if(e==="ref")r&&r(t);else if(!i&&e[0]==="o"&&e[1]==="n")e[2]==="-"?e=e.slice(3):Oy(ku,a)?e=a.slice(2):e=a[2]+e.slice(3),n&&Ze.rel(t,e,n,!1),r&&Ze.ael(t,e,r,!1);else{var h=mm(r);if((i||h&&r!==null)&&!s)try{if(t.tagName.includes("-"))t[e]=r;else{var m=r??"";e==="list"?i=!1:(n==null||t[e]!=m)&&(t[e]=m)}}catch{}r==null||r===!1?(r!==!1||t.getAttribute(e)==="")&&t.removeAttribute(e):(!i||o&4||s)&&!h&&(r=r===!0?"":r,t.setAttribute(e,r))}}},K6=/\s/,Ay=function(t){return t?t.split(K6):[]},qS=function(t,e,n,r){var s=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||Py,i=e.$attrs$||Py;for(r in o)r in i||Ry(s,r,o[r],void 0,n,e.$flags$);for(r in i)Ry(s,r,o[r],i[r],n,e.$flags$)},gm=function(t,e,n,r){var s=e.$children$[n],o=0,i,a;if(s.$text$!==null)i=s.$elm$=un.createTextNode(s.$text$);else{if(Ct||(Ct=s.$tag$==="svg"),i=s.$elm$=un.createElementNS(Ct?L6:D6,s.$tag$),Ct&&s.$tag$==="foreignObject"&&(Ct=!1),qS(null,s,Ct),M6(Zl)&&i["s-si"]!==Zl&&i.classList.add(i["s-si"]=Zl),s.$children$)for(o=0;o<s.$children$.length;++o)a=gm(t,s,o),a&&i.appendChild(a);s.$tag$==="svg"?Ct=!1:i.tagName==="foreignObject"&&(Ct=!0)}return i},KS=function(t,e,n,r,s,o){var i=t,a;for(i.shadowRoot&&i.tagName===BS&&(i=i.shadowRoot);s<=o;++s)r[s]&&(a=gm(null,n,s),a&&(r[s].$elm$=a,i.insertBefore(a,e)))},GS=function(t,e,n){for(var r=e;r<=n;++r){var s=t[r];
369if(s){var o=s.$elm$;YS(s),o&&o.remove()}}},G6=function(t,e,n,r){for(var s=0,o=0,i=e.length-1,a=e[0],l=e[i],c=r.length-1,d=r[0],f=r[c],h;s<=i&&o<=c;)a==null?a=e[++s]:l==null?l=e[--i]:d==null?d=r[++o]:f==null?f=r[--c]:Pl(a,d)?($i(a,d),a=e[++s],d=r[++o]):Pl(l,f)?($i(l,f),l=e[--i],f=r[--c]):Pl(a,f)?($i(a,f),t.insertBefore(a.$elm$,l.$elm$.nextSibling),a=e[++s],f=r[--c]):Pl(l,d)?($i(l,d),t.insertBefore(l.$elm$,a.$elm$),l=e[--i],d=r[++o]):(h=gm(e&&e[o],n,o),d=r[++o],h&&a.$elm$.parentNode.insertBefore(h,a.$elm$));s>i?KS(t,r[c+1]==null?null:r[c+1].$elm$,n,r,o,c):o>c&&GS(e,s,i)},Pl=function(t,e){return t.$tag$===e.$tag$},$i=function(t,e){var n=e.$elm$=t.$elm$,r=t.$children$,s=e.$children$,o=e.$tag$,i=e.$text$;i===null?(Ct=o==="svg"?!0:o==="foreignObject"?!1:Ct,qS(t,e,Ct),r!==null&&s!==null?G6(n,r,e,s):s!==null?(t.$text$!==null&&(n.textContent=""),KS(n,null,e,s,0,s.length-1)):r!==null&&GS(r,0,r.length-1),Ct&&o==="svg"&&(Ct=!1)):t.$text$!==i&&(n.data=i)},YS=function(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(YS)},Y6=function(t,e){var n=t.$hostElement$,r=t.$vnode$||bh(null,null),s=U6(e)?e:F6(null,null,e);BS=n.tagName,s.$tag$=null,s.$flags$|=4,t.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,Zl=n["s-sc"],$i(r,s)},ZS=function(t,e){e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise(function(n){return t.$onRenderResolve$=n}))},Su=function(t,e){if(t.$flags$|=16,t.$flags$&4){t.$flags$|=512;return}ZS(t,t.$ancestorComponent$);var n=function(){return Z6(t,e)};return m8(n)},Z6=function(t,e){var n=nr("scheduleUpdate",t.$cmpMeta$.$tagName$),r=t.$lazyInstance$,s;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map(function(o){var i=o[0],a=o[1];return vm(r,i,a)}),t.$queuedListeners$=void 0)),n(),Q6(s,function(){return X6(t,r,e)})},Q6=function(t,e){return J6(t)?t.then(e):e()},J6=function(t){return t instanceof Promise||t&&t.then&&typeof t.then=="function"},X6=function(t,e,n){return zS(void 0,void 0,void 0,function(){var r,s,o,i,a,l,c;return US(this,function(d){return s=t.$hostElement$,o=nr("update",t.$cmpMeta$.$tagName$),i=s["s-rc"],n&&q6(t),a=nr("render",t.$cmpMeta$.$tagName$),e8(t,e),i&&(i.map(function(f){return f()}),s["s-rc"]=void 0),a(),o(),l=(r=s["s-p"])!==null&&r!==void 0?r:[],c=function(){return t8(t)},l.length===0?c():(Promise.all(l).then(c),t.$flags$|=4,l.length=0),[2]})})},e8=function(t,e,n){try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,Y6(t,e)}catch(r){ln(r,t.$hostElement$)}return null},t8=function(t){t.$cmpMeta$.$tagName$;var e=t.$hostElement$,n=nr(),r=t.$lazyInstance$,s=t.$ancestorComponent$;t.$flags$&64?n():(t.$flags$|=64,JS(e),vm(r,"componentDidLoad"),n(),t.$onReadyResolve$(e),s||QS()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),t.$flags$&512&&wm(function(){return Su(t,!1)}),t.$flags$&=-517},U8=function(t){{var e=ss(t),n=e.$hostElement$.isConnected;return n&&(e.$flags$&18)===2&&Su(e,!1),n}},QS=function(t){JS(un.documentElement),wm(function(){return HS(ku,"appload",{detail:{namespace:O6}})})},vm=function(t,e,n){if(t&&t[e])try{return t[e](n)}catch(r){ln(r)}},JS=function(t){return t.classList.add("hydrated")},n8=function(t,e){return ss(t).$instanceValues$.get(e)},r8=function(t,e,n,r){var s=ss(t),o=s.$instanceValues$.get(e),i=s.$flags$,a=s.$lazyInstance$;n=B6(n,r.$members$[e][0]);var l=Number.isNaN(o)&&Number.isNaN(n),c=n!==o&&!l;(!(i&8)||o===void 0)&&c&&(s.$instanceValues$.set(e,n),a&&(i&18)===2&&Su(s,!1))},XS=function(t,e,n){if(e.$members$){var r=Object.entries(e.$members$),s=t.prototype;if(r.map(function(i){var a=i[0],l=i[1][0];l&31||n&2&&l&32?Object.defineProperty(s,a,{get:function(){return n8(this,a)},set:function(c){r8(this,a,c,e)},configurable:!0,enumerable:!0}):n&1&&l&64&&Object.defineProperty(s,a,{value:function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var f=ss(this);return f.$onInstancePromise$.then(function(){var h;return(h=f.$lazyInstance$)[a].apply(h,c)})}})}),n&1){var o=new Map;s.attributeChangedCallback=function(i,a,l){var c=this;Ze.jmp(function(){var d=o.get(i);if(c.hasOwnProperty(d))l=c[d],delete c[d];else if(s.hasOwnProperty(d)&&typeof c[d]=="number"&&c[d]==l)return;c[d]=l===null&&typeof c[d]=="boolean"?!1:l})},t.observedAttributes=r.filter(function(i){i[0];var a=i[1];return a[0]&15}).map(function(i){var a=i[0],l=i[1],c=l[1]||a;return o.set(c,a),c})}}return t},s8=function(t,e,n,r,s){return zS(void 0,void 0,void 0,function(){var o,i,a,l,c,d,f;return US(this,function(h){switch(h.label){case 0:return e.$flags$&32?[3,3]:(e.$flags$|=32,s=f8(n),s.then?(o=$6(),[4,s]):[3,2]);case 1:s=h.sent(),o(),h.label=2;case 2:s.isProxied||(XS(s,n,2),s.isProxied=!0),i=nr("createInstance",n.$tagName$),e.$flags$|=8;try{new s(e)}catch(m){ln(m)}e.$flags$&=-9,i(),s.style&&(a=s.style,l=WS(n),Lc.has(l)||(c=nr("registerStyles",n.$tagName$),H6(l,a,!!(n.$flags$&1)),c())),h.label=3;case 3:return d=e.$ancestorComponent$,f=function(){return Su(e,!0)},d&&d["s-rc"]?d["s-rc"].push(f):f(),[2]}})})},o8=function(t){if(!(Ze.$flags$&1)){var e=ss(t),n=e.$cmpMeta$,r=nr("connectedCallback",n.$tagName$);if(e.$flags$&1)ek(t,e,n.$listeners$);else{e.$flags$|=1;for(var s=t;s=s.parentNode||s.host;)if(s["s-p"]){ZS(e,e.$ancestorComponent$=s);break}n.$members$&&Object.entries(n.$members$).map(function(o){var i=o[0],a=o[1][0];if(a&31&&t.hasOwnProperty(i)){var l=t[i];delete t[i],t[i]=l}}),s8(t,e,n)}r()}},i8=function(t){if(!(Ze.$flags$&1)){var e=ss(t),n=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$.map(function(r){return r()}),e.$rmListeners$=void 0),vm(n,"disconnectedCallback")}},a8=function(t,e){e===void 0&&(e={});var n,r=nr(),s=[],o=e.exclude||[],i=ku.customElements,a=un.head,l=a.querySelector("meta[charset]"),c=un.createElement("style"),d=[],f,h=!0;Object.assign(Ze,e),Ze.$resourcesUrl$=new URL(e.resourcesUrl||"./",un.baseURI).href,t.map(function(b){b[1].map(function(v){var x={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};x.$members$=v[2],x.$listeners$=v[3];var g=x.$tagName$,w=function(y){A6(_,y);function _(S){var k=y.call(this,S)||this;return S=k,d8(S,x),x.$flags$&1&&S.attachShadow({mode:"open"}),k}return _.prototype.connectedCallback=function(){var S=this;f&&(clearTimeout(f),f=null),h?d.push(this):Ze.jmp(function(){return o8(S)})},_.prototype.disconnectedCallback=function(){var S=this;Ze.jmp(function(){return i8(S)})},_.prototype.componentOnReady=function(){return ss(this).$onReadyPromise$},_}(HTMLElement);x.$lazyBundleId$=b[0],!o.includes(g)&&!i.get(g)&&(s.push(g),i.define(g,XS(w,x,1)))})});{c.innerHTML=s+I6,c.setAttribute("data-styles","");var m=(n=Ze.$nonce$)!==null&&n!==void 0?n:VS(un);m!=null&&c.setAttribute("nonce",m),a.insertBefore(c,l?l.nextSibling:a.firstChild)}h=!1,d.length?d.map(function(b){return b.connectedCallback()}):Ze.jmp(function(){return f=setTimeout(QS,30)}),r()},ek=function(t,e,n,r){n&&n.map(function(s){var o=s[0],i=s[1],a=s[2],l=c8(t,o),c=l8(e,a),d=u8(o);
369Ze.ael(l,i,c,d),(e.$rmListeners$=e.$rmListeners$||[]).push(function(){return Ze.rel(l,i,c,d)})})},l8=function(t,e){return function(n){try{t.$flags$&256?t.$lazyInstance$[e](n):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,n])}catch(r){ln(r)}}},c8=function(t,e){return e&16?un.body:t},u8=function(t){return(t&2)!==0},ym=new WeakMap,ss=function(t){return ym.get(t)},B8=function(t,e){return ym.set(e.$lazyInstance$=t,e)},d8=function(t,e){var n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(function(r){return n.$onInstanceResolve$=r}),n.$onReadyPromise$=new Promise(function(r){return n.$onReadyResolve$=r}),t["s-p"]=[],t["s-rc"]=[],ek(t,n,e.$listeners$),ym.set(t,n)},Oy=function(t,e){return e in t},ln=function(t,e){return(0,console.error)(t,e)},Ad=new Map,f8=function(t,e,n){var r=t.$tagName$.replace(/-/g,"_"),s=t.$lazyBundleId$,o=Ad.get(s);if(o)return o[r];{var i=function(a){return Ad.set(s,a),a[r]};switch(s){case"pwa-action-sheet":return J(()=>import("./pwa-action-sheet.entry-B2EULqFR.js"),[]).then(i,ln);case"pwa-camera-modal":return J(()=>import("./pwa-camera-modal.entry-kk7kQ57t.js"),[]).then(i,ln);case"pwa-toast":return J(()=>import("./pwa-toast.entry-DJsbCCkb.js"),[]).then(i,ln);case"pwa-camera-modal-instance":return J(()=>import("./pwa-camera-modal-instance.entry-DbzGuO07.js"),[]).then(i,ln);case"pwa-camera":return J(()=>import("./pwa-camera.entry-Dm9WjYzs.js"),[]).then(i,ln)}}return J(()=>import("./".concat(s,".entry.js").concat("")),[]).then(function(a){return Ad.set(s,a),a[r]},ln)},Lc=new Map,ku=typeof window<"u"?window:{},un=ku.document||{head:{}},Ze={$flags$:0,$resourcesUrl$:"",jmp:function(t){return t()},raf:function(t){return requestAnimationFrame(t)},ael:function(t,e,n,r){return t.addEventListener(e,n,r)},rel:function(t,e,n,r){return t.removeEventListener(e,n,r)},ce:function(t,e){return new CustomEvent(t,e)}},tk=function(t){return Promise.resolve(t)},h8=function(){try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1}(),$y=[],nk=[],p8=function(t,e){return function(n){t.push(n),xh||(xh=!0,Ze.$flags$&4?wm(_h):Ze.raf(_h))}},Iy=function(t){for(var e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){ln(n)}t.length=0},_h=function(){Iy($y),Iy(nk),(xh=$y.length>0)&&Ze.raf(_h)},wm=function(t){return tk().then(t)},m8=p8(nk),g8=function(){return tk()},v8=function(t,e){return typeof window>"u"?Promise.resolve():g8().then(function(){return a8([["pwa-camera-modal",[[1,"pwa-camera-modal",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],present:[64],dismiss:[64]}]]],["pwa-action-sheet",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["pwa-toast",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["pwa-camera",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],hidePicker:[4,"hide-picker"],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[16,"keyup","handleBackdropKeyUp"]]]]]],e)})};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}})();v8();rx(document.getElementById("root")).render(u.jsx(T.StrictMode,{children:u.jsx(R6,{})}));export{T as $,Bj as A,ae as B,qe as C,j_ as D,fl as E,fm as F,ue as G,Aa as H,B$ as I,fT as J,m1 as K,Ft as L,iI as M,Mt as N,Kj as O,Zj as P,hM as Q,LS as R,Ep as S,dT as T,fh as U,hh as V,gI as W,ni as X,sT as Y,aT as Z,lT as _,Qp as a,v1 as a$,p_ as a0,Qo as a1,p1 as a2,Z1 as a3,qg as a4,Qj as a5,qR as a6,Xj as a7,Hj as a8,XL as a9,zM as aA,Rd as aB,bA as aC,Sp as aD,Or as aE,hT as aF,Jj as aG,uT as aH,D8 as aI,F8 as aJ,M8 as aK,tD as aL,tb as aM,yS as aN,ti as aO,lM as aP,cM as aQ,Rx as aR,Gj as aS,Ht as aT,ke as aU,Wg as aV,wp as aW,ou as aX,Lp as aY,Ta as aZ,C1 as a_,Vj as aa,Ln as ab,pe as ac,kp as ad,pT as ae,Yj as af,je as ag,om as ah,sr as ai,ee as aj,mn as ak,Xn as al,J1 as am,OD as an,$D as ao,C_ as ap,K5 as aq,dS as ar,fS as as,pS as at,mS as au,hS as av,Y5 as aw,gS as ax,tT as ay,QT as az,ir as b,Xp as b0,Jp as b1,Pa as b2,db as b3,wo as b4,fb as b5,yj as b6,QP as b7,Xc as b8,zo as b9,yn as ba,KC as bb,F6 as bc,V6 as bd,B8 as be,z8 as bf,z6 as bg,U8 as bh,ce as c,hn as d,Hg as e,Wi as f,yp as g,oI as h,Wj as i,u as j,Y$ as k,Q1 as l,oh as m,ID as n,O5 as o,Z5 as p,lm as q,p as r,Fe as s,cm as t,ns as u,um as v,dm as w,P_ as x,z$ as y,U$ 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.