1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-1DNKGt-1.js","assets/Header-CnJGZ8vQ.js","assets/mountain-BHfTfCFy.js","assets/user-Cvsz7Lm_.js","assets/arrow-right-QNKB-9eH.js","assets/Privacy-BwAbSgPE.js","assets/Layout-jB2m3rBw.js","assets/ApartmentsForRent-SzOPOy2v.js","assets/users-xui-UtA1.js","assets/Webcam-DY6skMXZ.js","assets/thermometer-CsW4-4zi.js","assets/droplets-Cp2l0Gq2.js","assets/external-link-Bd1Ktkpe.js","assets/sun-DQzfPl1A.js","assets/Gallery-B7XiNmUD.js","assets/chevron-left-BrISfdwW.js","assets/AuthVerify-kFhHI8mY.js","assets/circle-check-big-_JLEBINb.js","assets/Auth-CkRy952c.js","assets/house-login-DLa1j6M3.js","assets/lock-BEcuk4Jx.js","assets/eye-off-D1RUMkPr.js","assets/eye-DKrvAixa.js","assets/globe-DTZBS0aY.js","assets/arrow-left-CZKmX_Y-.js","assets/types-3c7sL9OC.js","assets/Forum-BmYJ5Lj-.js","assets/OwnersLayout-Cd0M3dw8.js","assets/separator-CQ84aZ0V.js","assets/collapsible-BIxz44zB.js","assets/skeleton-ClxqB572.js","assets/breadcrumb-CmKLwRya.js","assets/switch-BHj3-8MN.js","assets/index-D9-GACGG.js","assets/house-DjS1WMqx.js","assets/receipt-DnGXta2k.js","assets/building-crte1H4H.js","assets/file-text-Bif0RP8Y.js","assets/chart-column-Bo5i9GGE.js","assets/upload-BH1HltYO.js","assets/piggy-bank-DP-A2O0m.js","assets/landmark-C0TkBs1l.js","assets/flame-wMx8KIS8.js","assets/trending-up-Cg9WFJWB.js","assets/euro-Cc6O9qjZ.js","assets/dialog-DrI7Oddz.js","assets/tabs-5EVsfllK.js","assets/textarea-4z16PwID.js","assets/avatar-Bl5f64JA.js","assets/ForumCategoryRow-od0t3MBP.js","assets/select-ChAxOmxm.js","assets/index-BdQq_4o_.js","assets/chevron-down-BDe4YKQW.js","assets/chevron-up-JyGCcpt9.js","assets/purify.es-dhnUglUx.js","assets/index-Dh4i1-J3.js","assets/popover-BsQ559UC.js","assets/badge-BHbYeRgi.js","assets/search-_fcwEKN-.js","assets/filter-DtRxSZ25.js","assets/plus-CkJQv7GY.js","assets/image-zcTlJhLM.js","assets/video-DFpZvpEd.js","assets/minus-Dry52jGc.js","assets/table-BYzMA2MF.js","assets/unlink-CxCPpy3W.js","assets/trash-2-DRJ_nWSl.js","assets/confirm-dialog-DHYtbMdr.js","assets/printer-Bb7W1Pva.js","assets/ellipsis-BEOtFA2b.js","assets/pencil-C_0Cp3wi.js","assets/thumbs-up-jDPlFMTx.js","assets/settings-BUFFH3UG.js","assets/paperclip-I8ctU5eK.js","assets/languages-DJ80weRR.js","assets/download-DXQgHLv7.js","assets/sparkles-OdPvYVOS.js","assets/send-DIVN8qsp.js","assets/pen-line-3TShWx6o.js","assets/ForumNewPostCard-B-1VK3ho.js","assets/arrow-up-down-D7o6PKMM.js","assets/calendar-days-DbjuOaGz.js","assets/star-CU0yRqe0.js","assets/circle-help-BFmb_2uk.js","assets/file-down-D9u4xV4V.js","assets/ResetPassword-B0iqobwO.js","assets/Attachment-BTWnn-5X.js","assets/OwnersDashboard-tQ1Jzozr.js","assets/pollDates-DP2VfLei.js","assets/circle-check-7w5_oQMu.js","assets/history-GAI9mcQt.js","assets/info-CZr0REZX.js","assets/OwnersNews-KzO5FRfT.js","assets/useHouseContacts-CRglCbrb.js","assets/table-BNHSYido.js","assets/circle-alert-CI-iPm0z.js","assets/wrench-B4A_f5hE.js","assets/calendar-CnsXUgOr.js","assets/OwnersHausverwaltungComparison-BK2fgoaH.js","assets/accordion-CatLYK39.js","assets/hausverwaltungComparison-BTWUXTn
1R.js","assets/arrow-up-right-CgIWjGgj.js","assets/copy-BJvw7_4P.js","assets/OwnersPolls-qWfhiqMT.js","assets/PollsSection-ChBCsgqh.js","assets/legalDeadlines-MDnit4d7.js","assets/scale-CfsuUh1a.js","assets/progress-CIau9pND.js","assets/alert-B1M6s1_G.js","assets/checkbox-D2A7tWS7.js","assets/radio-group-BtSPrM_8.js","assets/pollQuorum-DtU2ni5k.js","assets/exportPollFaqDocx-6VkwoY8h.js","assets/index-BRuSZtGQ.js","assets/FileSaver.min-CENiJ7oA.js","assets/file-search-B2CpYcS_.js","assets/user-check-CArzXJ3-.js","assets/fingerprint-tahGlWAG.js","assets/OwnersPollDetail-D9zVwXM8.js","assets/OwnersDocuments-Ba6lqgSl.js","assets/clipboard-list-CzdQdj9P.js","assets/folder-open-CYrqGGwY.js","assets/OwnersProfile-CykbXyH1.js","assets/save-DWdLHugL.js","assets/OwnersContacts-DKJtfUyd.js","assets/OwnersVotingRules-50pryZKT.js","assets/calculator-GhS8BFwe.js","assets/OwnersForumFaq-Dg_8s-ME.js","assets/bell-CKHJStUz.js","assets/OwnersMonitoring-Cf7wdHO6.js","assets/exceljs.min-Bp1_LhuQ.js","assets/scroll-area-CoT3wSM0.js","assets/generateCategoricalChart-C2b_mvpD.js","assets/LineChart-CgmaZj2v.js","assets/Line-DFydwSLz.js","assets/trending-down-EHPUNHPt.js","assets/file-spreadsheet-DYxjeH4g.js","assets/OwnersOperatingCosts-Dat5-_kY.js","assets/arrow-up-D486G_0n.js","assets/zap-D5DuRxrj.js","assets/BarChart-FFUEJ1QK.js","assets/PieChart-C9_Ud7Rw.js","assets/ComposedChart-DcPErJ04.js","assets/Admin-CfcrnSCj.js","assets/AdminSidebar-B1OFksO6.js","assets/wallet-e9E2tgeo.js","assets/database-yc2noHJi.js","assets/useCostCategories-Cao1SRG4.js","assets/en-US-CQ3IMwMG.js","assets/endOfMonth-D_4h-ZFk.js","assets/format-Beid_ZIk.js","assets/cs-DzBP63t1.js","assets/xlsx-CdLBLU9U.js","assets/TransferOwnershipDialog-DJ-o6_JR.js","assets/arrow-right-left-Yai1ia-T.js","assets/user-plus-BJ2nTN1d.js","assets/InvitePreviewDialog-DT7jKBqI.js","assets/useReserveFundData-CaCbmV8U.js","assets/route-CzrZqZen.js","assets/play-Dv41UmTM.js","assets/circle-minus-C6Bv3LRu.js","assets/snowflake-DxjZHYUy.js","assets/shield-check-DViJUJ8V.js","assets/monitor-BfzJ2sMA.js","assets/log-in-CT_3hH
1d4.js","assets/table-pagination-DgaWMZqT.js","assets/ApartmentEdit-DyGxSBNj.js","assets/AdminPageLayout-DL0avA2R.js","assets/OwnerEdit-ClffnIMg.js","assets/key-Do0I7jZr.js","assets/OwnerNew-Csbc3tth.js","assets/UserEdit-BjGKwXii.js","assets/ForumCategoryEdit-CVPUDILE.js","assets/PollEdit-CpFatXAg.js","assets/PollEmailHistory-CWoBpO6Y.js","assets/PollResults-CuEP8_6Q.js","assets/clipboard-check-BNBiN_o5.js","assets/BatchDetail-DJU_uMNt.js","assets/de-Ihp2MKUo.js","assets/ContactPersonEdit-1KDk5XrX.js","assets/CostsDashboard-D63S6BGc.js","assets/useCategorySystem-D4jOQRmA.js","assets/credit-card-CGSfKXUy.js","assets/arrow-down-right-TVCZaAHK.js","assets/CostsCategories-Cld71dli.js","assets/CostsReserve-BHFemqSy.js","assets/types-DDfmYF_E.js","assets/shirt-PwtPSFTy.js","assets/CostsVendors-Bmu4cnwk.js","assets/usePersistedYear-CMpOJqHk.js","assets/CostsLoans-CgxRp4QC.js","assets/percent-C2_9q8nG.js","assets/CostsHeating-PEwH-YCV.js","assets/gauge-CDjYpgNp.js","assets/CostsHeatingRanking-OrN_9ElW.js","assets/CostsHeatingStructure-u9nbZpte.js","assets/CostsHeatingOwners-eiPmd0wD.js","assets/CostsHeatingApartments-CXQ3dy2i.js","assets/meterTypeUtils-B8NQp94j.js","assets/HeatingCostDetail-6sd5O3CB.js","assets/ExpenditureDetail-wXv213Qf.js","assets/ExtraIncomeDetail-CRAZNGun.js","assets/VendorDetail-tbecmRAF.js"])))=>i.map(i=>d[i]); 2var mp=e=>{throw TypeError(e)};var Wu=(e,t,n)=>t.has(e)||mp("Cannot "+n);var T=(e,t,n)=>(Wu(e,t,"read from private field"),n?n.call(e):t.get(e)),Q=(e,t,n)=>t.has(e)?mp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(Wu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),se=(e,t,n)=>(Wu(e,t,"access private method"),n);var xa=(e,t,n,r)=>({set _(o){U(e,t,o,n)},get _(){return T(e,t,r)}});function uS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var YD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pv={exports:{}},su={},mv={exports:{}},re={};/** 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 ia=Symbol.for("react.element"),cS=Symbol.for("react.portal"),dS=Symbol.for("react.fragment"),hS=Symbol.for("react.strict_mode"),fS=Symbol.for("react.profiler"),pS=Symbol.for("react.provider"),mS=Symbol.for("react.context"),gS=Symbol.for("react.forward_ref"),vS=Symbol.for("react.suspense"),yS=Symbol.for("react.memo"),wS=Symbol.for("react.lazy"),gp=Symbol.iterator;function bS(e){return e===null||typeof e!="object"?null:(e=gp&&e[gp]||e["@@iterator"],typeof e=="function"?e:null)}var gv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vv=Object.assign,yv={};function Ns(e,t,n){this.props=e,this.context=t,this.refs=yv,this.updater=n||gv}Ns.prototype.isReactComponent={};Ns.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ns.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wv(){}wv.prototype=Ns.prototype;
vendor: 5,873 bytes, lines 10-18
10function Ch(e,t,n){this.props=e,this.context=t,this.refs=yv,this.updater=n||gv}var Ph=Ch.prototype=new wv;Ph.constructor=Ch;vv(Ph,Ns.prototype);Ph.isPureReactComponent=!0;var vp=Array.isArray,bv=Object.prototype.hasOwnProperty,Rh={current:null},kv={key:!0,ref:!0,__self:!0,__source:!0};function Sv(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)bv.call(t,r)&&!kv.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:ia,type:e,key:s,ref:i,props:o,_owner:Rh.current}}function kS(e,t){return{$$typeof:ia,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ah(e){return typeof e=="object"&&e!==null&&e.$$typeof===ia}function SS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yp=/\/+/g;function Hu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?SS(""+e.key):t.toString(36)}function rl(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ia:case cS:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Hu(i,0):r,vp(o)?(n="",e!=null&&(n=e.replace(yp,"$&/")+"/"),rl(o,t,n,"",function(u){return u})):o!=null&&(Ah(o)&&(o=kS(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(yp,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",vp(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Hu(s,a);i+=rl(s,t,n,l,o)}else if(l=bS(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Hu(s,a++),i+=rl(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ta(e,t,n){if(e==null)return e;var r=[],o=0;return rl(e,r,"","",function(s){return t.call(n,s,o++)}),r}function _S(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var st={current:null},ol={transition:null},ES={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:ol,ReactCurrentOwner:Rh};function _v(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:Ta,forEach:function(e,t,n){Ta(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ta(e,function(){t++}),t},toArray:function(e){return Ta(e,function(t){return t})||[]},only:function(e){if(!Ah(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=Ns;re.Fragment=dS;re.Profiler=fS;re.PureComponent=Ch;re.StrictMode=hS;re.Suspense=vS;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ES;re.act=_v;re.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=vv({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Rh.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)bv.call(t,l)&&!kv.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ia,type:e.type,key:o,ref:s,props:r,_owner:i}};re.createContext=function(e){return e={$$typeof:mS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pS,_context:e},e.Consumer=e};re.createElement=Sv;re.createFactory=function(e){var t=Sv.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:gS,render:e}};re.isValidElement=Ah;re.lazy=function(e){return{$$typeof:wS,_payload:{_status:-1,_result:e},_init:_S}};re.memo=function(e,t){return{$$typeof:yS,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=ol.transition;ol.transition={};try{e()}finally{ol.transition=t}};re.unstable_act=_v;re.useCallback=function(e,t){return st.current.useCallback(e,t)};re.useContext=function(e){return st.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return st.current.useDeferredValue(e)};re.useEffect=function(e,t){return st.current.useEffect(e,t)};re.useId=function(){return st.current.useId()};re.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return st.current.useMemo(e,t)};re.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};re.useRef=function(e){return st.current.useRef(e)};re.useState=function(e){return st.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return st.current.useTransition()};re.version="18.3.1";mv.exports=re;var m=mv.exports;const L=fv(m),Ev=uS({__proto__:null,default:L},[m]);/** 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 xS=m,TS=Symbol.for("react.element"),CS=Symbol.for("react.fragment"),PS=Object.prototype.hasOwnProperty,RS=xS.__SECRET_INT
vendor: 8,839 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,AS={key:!0,ref:!0,__self:!0,__source:!0};function xv(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)PS.call(t,r)&&!AS.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:TS,type:e,key:s,ref:i,props:o,_owner:RS.current}}su.Fragment=CS;su.jsx=xv;su.jsxs=xv;pv.exports=su;var g=pv.exports,Tv={exports:{}},Et={},Cv={exports:{}},Pv={};/** 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(e){function t(A,N){var $=A.length;A.push(N);e:for(;0<$;){var X=$-1>>>1,K=A[X];if(0<o(K,N))A[X]=N,A[$]=K,$=X;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var N=A[0],$=A.pop();if($!==N){A[0]=$;e:for(var X=0,K=A.length,ne=K>>>1;X<ne;){var oe=2*(X+1)-1,je=A[oe],qe=oe+1,le=A[qe];if(0>o(je,$))qe<K&&0>o(le,je)?(A[X]=le,A[qe]=$,X=qe):(A[X]=je,A[oe]=$,X=oe);else if(qe<K&&0>o(le,$))A[X]=le,A[qe]=$,X=qe;else break e}}return N}function o(A,N){var $=A.sortIndex-N.sortIndex;return $!==0?$:A.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,b=!1,p=!1,k=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=A)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function S(A){if(p=!1,w(A),!b)if(n(l)!==null)b=!0,F(_);else{var N=n(u);N!==null&&V(S,N.startTime-A)}}function _(A,N){b=!1,p&&(p=!1,v(P),P=-1),f=!0;var $=h;try{for(w(N),d=n(l);d!==null&&(!(d.expirationTime>N)||A&&!I());){var X=d.callback;if(typeof X=="function"){d.callback=null,h=d.priorityLevel;var K=X(d.expirationTime<=N);N=e.unstable_now(),typeof K=="function"?d.callback=K:d===n(l)&&r(l),w(N)}else r(l);d=n(l)}if(d!==null)var ne=!0;else{var oe=n(u);oe!==null&&V(S,oe.startTime-N),ne=!1}return ne}finally{d=null,h=$,f=!1}}var E=!1,x=null,P=-1,R=5,C=-1;function I(){return!(e.unstable_now()-C<R)}function O(){if(x!==null){var A=e.unstable_now();C=A;var N=!0;try{N=x(!0,A)}finally{N?z():(E=!1,x=null)}}else E=!1}var z;if(typeof y=="function")z=function(){y(O)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,M=j.port2;j.port1.onmessage=O,z=function(){M.postMessage(null)}}else z=function(){k(O,0)};function F(A){x=A,E||(E=!0,z())}function V(A,N){P=k(function(){A(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){b||f||(b=!0,F(_))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var $=h;h=N;try{return A()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,N){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var $=h;h=A;try{return N()}finally{h=$}},e.unstable_scheduleCallback=function(A,N,$){var X=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?X+$:X):$=X,A){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=$+K,A={id:c++,callback:N,priorityLevel:A,startTime:$,expirationTime:K,sortIndex:-1},$>X?(A.sortIndex=$,t(u,A),n(l)===null&&A===n(u)&&(p?(v(P),P=-1):p=!0,V(S,$-X))):(A.sortIndex=K,t(l,A),b||f||(b=!0,F(_))),A},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(A){var N=h;return function(){var $=h;h=N;try{return A.apply(this,arguments)}finally{h=$}}}})(Pv);Cv.exports=Pv;var OS=Cv.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 jS=m,St=OS;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rv=new Set,Ci={};function fo(e,t){ks(e,t),ks(e+"Capture",t)}function ks(e,t){for(Ci[e]=t,e=0;e<t.length;e++)Rv.add(t[e])}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=Object.prototype.hasOwnProperty,NS=/^[: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]*$/,wp={},bp={};function IS(e){return Qc.call(bp,e)?!0:Qc.call(wp,e)?!1:NS.test(e)?bp[e]=!0:(wp[e]=!0,!1)}function DS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LS(e,t,n,r){if(t===null||typeof t>"u"||DS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new it(e,2,!1,e,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(e){Ke[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oh=/[\-:]([a-z])/g;function jh(e){return e[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(e){var t=e.replace(Oh,jh);Ke[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oh,jh);Ke[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oh,jh);Ke[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nh(e,t,n,r){var o=Ke.hasOwnProperty(t)?Ke[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(LS(t,n,o,r)&&(n=null),r||o===null?IS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var $n=jS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ca=Symbol.for("react.element"),$o=Symbol.for("react.portal"),Fo=Symbol.for("react.fragment"),Ih=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),Av=Symbol.for("react.provider"),Ov=Symbol.for("react.context"),Dh=Symbol.for("react.forward_ref"),Jc=Symbol.for("react.suspense"),Zc=Symbol.for("react.suspense_list"),Lh=Symbol.for("react.memo"),Xn=Symbol.for("react.lazy"),jv=Symbol.for("react.offscreen"),kp=Symbol.iterator;function Ys(e){return e===null||typeof e!="object"?null:(e=kp&&e[kp]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,Ku;function ai(e){if(Ku===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ku=t&&t[1]||""}return` 35`+Ku+e}var Gu=!1;function qu(e,t){if(!e||Gu)return"";Gu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` 36`),s=r.stack.split(` 37`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=` 38`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Gu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ai(e):""}function MS(e){switch(e.tag){case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 2:case 15:return e=qu(e.type,!1),e;case 11:return e=qu(e.type.render,!1),e;case 1:return e=qu(e.type,!0),e;default:return""}}function Xc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fo:return"Fragment";case $o:return"Portal";case Yc:return"Profiler";case Ih:return"StrictMode";case Jc:return"Suspense";case Zc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ov:return(e.displayName||"Context")+".Consumer";case Av:return(e._context.displayName||"Context")+".Provider";case Dh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lh:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function zS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xc(t);case 8:return t===Ih?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $S(e){var t=Nv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pa(e){e._valueTracker||(e._valueTracker=$S(e))}function Iv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function El(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ed(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Dv(e,t){t=t.checked,t!=null&&Nh(e,"checked",t,!1)}function td(e,t){Dv(e,t);var n=Tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?nd(e,t.type,n):t.hasOwnProperty("defaultValue")&&nd(e,t.type,Tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _p(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}
vendor: 12,094 bytes, line 38
38function nd(e,t,n){(t!=="number"||El(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var li=Array.isArray;function Zo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Tr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function rd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ep(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(li(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tr(n)}}function Lv(e,t){var n=Tr(t.value),r=Tr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function xp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Mv(e){switch(e){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 od(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Mv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ra,zv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ra=Ra||document.createElement("div"),Ra.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ra.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},FS=["Webkit","ms","Moz","O"];Object.keys(pi).forEach(function(e){FS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pi[t]=pi[e]})});function $v(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pi.hasOwnProperty(e)&&pi[e]?(""+t).trim():t+"px"}function Fv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$v(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var BS=Te({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 sd(e,t){if(t){if(BS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function id(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ad=null;function Mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ld=null,Xo=null,es=null;function Tp(e){if(e=ua(e)){if(typeof ld!="function")throw Error(D(280));var t=e.stateNode;t&&(t=cu(t),ld(e.stateNode,e.type,t))}}function Bv(e){Xo?es?es.push(e):es=[e]:Xo=e}function Uv(){if(Xo){var e=Xo,t=es;if(es=Xo=null,Tp(e),t)for(e=0;e<t.length;e++)Tp(t[e])}}function Vv(e,t){return e(t)}function Wv(){}var Qu=!1;function Hv(e,t,n){if(Qu)return e(t,n);Qu=!0;try{return Vv(e,t,n)}finally{Qu=!1,(Xo!==null||es!==null)&&(Wv(),Uv())}}function Ri(e,t){var n=e.stateNode;if(n===null)return null;var r=cu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var ud=!1;if(Nn)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){ud=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{ud=!1}function US(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var mi=!1,xl=null,Tl=!1,cd=null,VS={onError:function(e){mi=!0,xl=e}};function WS(e,t,n,r,o,s,i,a,l){mi=!1,xl=null,US.apply(VS,arguments)}function HS(e,t,n,r,o,s,i,a,l){if(WS.apply(this,arguments),mi){if(mi){var u=xl;mi=!1,xl=null}else throw Error(D(198));Tl||(Tl=!0,cd=u)}}function po(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Kv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Cp(e){if(po(e)!==e)throw Error(D(188))}function KS(e){var t=e.alternate;if(!t){if(t=po(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Cp(o),e;if(s===r)return Cp(o),t;s=s.sibling}throw Error(D(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,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){for(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)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Gv(e){return e=KS(e),e!==null?qv(e):null}function qv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qv(e);if(t!==null)return t;e=e.sibling}return null}var Qv=St.unstable_scheduleCallback,Pp=St.unstable_cancelCallback,GS=St.unstable_shouldYield,qS=St.unstable_requestPaint,Ae=St.unstable_now,QS=St.unstable_getCurrentPriorityLevel,zh=St.unstable_ImmediatePriority,Yv=St.unstable_UserBlockingPriority,Cl=St.unstable_NormalPriority,YS=St.unstable_LowPriority,Jv=St.unstable_IdlePriority,iu=null,vn=null;function JS(e){if(vn&&typeof vn.onCommitFiberRoot=="function")try{vn.onCommitFiberRoot(iu,e,void 0,(e.current.flags&128)===128)}catch{}}var Zt=Math.clz32?Math.clz32:e_,ZS=Math.log,XS=Math.LN2;function e_(e){return e>>>=0,e===0?32:31-(ZS(e)/XS|0)|0}var Aa=64,Oa=4194304;function ui(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Pl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=ui(a):(s&=i,s!==0&&(r=ui(s)))}else i=n&~o,i!==0?r=ui(i):s!==0&&(r=ui(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Zt(t),o=1<<n,r|=e[n],t&=~o;return r}function t_(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 n_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Zt(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=t_(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function dd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zv(){var e=Aa;return Aa<<=1,!(Aa&4194240)&&(Aa=64),e}function Yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function aa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=n}function r_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Zt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function $h(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ce=0;function Xv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ey,Fh,ty,ny,ry,hd=!1,ja=[],vr=null,yr=null,wr=null,Ai=new Map,Oi=new Map,rr=[],o_="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 Rp(e,t){switch(e){case"focusin":case"focusout":vr=null;break;case"dragenter":case"dragleave":yr=null;break;case"mouseover":case"mouseout":wr=null;break;case"pointerover":case"pointerout":Ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oi.delete(t.pointerId)}}function Zs(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=ua(t),t!==null&&Fh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function s_(e,t,n,r,o){switch(t){case"focusin":return vr=Zs(vr,e,t,n,r,o),!0;case"dragenter":return yr=Zs(yr,e,t,n,r,o),!0;case"mouseover":return wr=Zs(wr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Ai.set(s,Zs(Ai.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Oi.set(s,Zs(Oi.get(s)||null,e,t,n,r,o)),!0}return!1}function oy(e){var t=Ur(e.target);if(t!==null){var n=po(t);if(n!==null){if(t=n.tag,t===13){if(t=Kv(n),t!==null){e.blockedOn=t,ry(e.priority,function(){ty(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ad=r,n.target.dispatchEvent(r),ad=null}else return t=ua(n),t!==null&&Fh(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){sl(e)&&n.delete(t)}function i_(){hd=!1,vr!==null&&sl(vr)&&(vr=null),yr!==null&&sl(yr)&&(yr=null),wr!==null&&sl(wr)&&(wr=null),Ai.forEac
vendor: 11,521 bytes, line 38
38h(Ap),Oi.forEach(Ap)}function Xs(e,t){e.blockedOn===t&&(e.blockedOn=null,hd||(hd=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,i_)))}function ji(e){function t(o){return Xs(o,e)}if(0<ja.length){Xs(ja[0],e);for(var n=1;n<ja.length;n++){var r=ja[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vr!==null&&Xs(vr,e),yr!==null&&Xs(yr,e),wr!==null&&Xs(wr,e),Ai.forEach(t),Oi.forEach(t),n=0;n<rr.length;n++)r=rr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rr.length&&(n=rr[0],n.blockedOn===null);)oy(n),n.blockedOn===null&&rr.shift()}var ts=$n.ReactCurrentBatchConfig,Rl=!0;function a_(e,t,n,r){var o=ce,s=ts.transition;ts.transition=null;try{ce=1,Bh(e,t,n,r)}finally{ce=o,ts.transition=s}}function l_(e,t,n,r){var o=ce,s=ts.transition;ts.transition=null;try{ce=4,Bh(e,t,n,r)}finally{ce=o,ts.transition=s}}function Bh(e,t,n,r){if(Rl){var o=fd(e,t,n,r);if(o===null)ic(e,t,r,Al,n),Rp(e,r);else if(s_(o,e,t,n,r))r.stopPropagation();else if(Rp(e,r),t&4&&-1<o_.indexOf(e)){for(;o!==null;){var s=ua(o);if(s!==null&&ey(s),s=fd(e,t,n,r),s===null&&ic(e,t,r,Al,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else ic(e,t,r,null,n)}}var Al=null;function fd(e,t,n,r){if(Al=null,e=Mh(r),e=Ur(e),e!==null)if(t=po(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Al=e,null}function sy(e){switch(e){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(QS()){case zh:return 1;case Yv:return 4;case Cl:case YS:return 16;case Jv:return 536870912;default:return 16}default:return 16}}var pr=null,Uh=null,il=null;function iy(){if(il)return il;var e,t=Uh,n=t.length,r,o="value"in pr?pr.value:pr.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return il=o.slice(e,1<r?1-r:void 0)}function al(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Na(){return!0}function Op(){return!1}function xt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Na:Op,this.isPropagationStopped=Op,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Na)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Na)},persist:function(){},isPersistent:Na}),t}var Is={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vh=xt(Is),la=Te({},Is,{view:0,detail:0}),u_=xt(la),Ju,Zu,ei,au=Te({},la,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ei&&(ei&&e.type==="mousemove"?(Ju=e.screenX-ei.screenX,Zu=e.screenY-ei.screenY):Zu=Ju=0,ei=e),Ju)},movementY:function(e){return"movementY"in e?e.movementY:Zu}}),jp=xt(au),c_=Te({},au,{dataTransfer:0}),d_=xt(c_),h_=Te({},la,{relatedTarget:0}),Xu=xt(h_),f_=Te({},Is,{animationName:0,elapsedTime:0,pseudoElement:0}),p_=xt(f_),m_=Te({},Is,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g_=xt(m_),v_=Te({},Is,{data:0}),Np=xt(v_),y_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w_={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"},b_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=b_[e])?!!t[e]:!1}function Wh(){return k_}var S_=Te({},la,{key:function(e){if(e.key){var t=y_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=al(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wh,charCode:function(e){return e.type==="keypress"?al(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?al(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),__=xt(S_),E_=Te({},au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ip=xt(E_),x_=Te({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wh}),T_=xt(x_),C_=Te({},Is,{propertyName:0,elapsedTime:0,pseudoElement:0}),P_=xt(C_),R_=Te({},au,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),A_=xt(R_),O_=[9,13,27,32],Hh=Nn&&"CompositionEvent"in window,gi=null;Nn&&"documentMode"in document&&(gi=document.documentMode);var j_=Nn&&"TextEvent"in window&&!gi,ay=Nn&&(!Hh||gi&&8<gi&&11>=gi),Dp=" ",Lp=!1;function ly(e,t){switch(e){case"keyup":return O_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function N_(e,t){switch(e){case"compositionend":return uy(t);case"keypress":return t.which!==32?null:(Lp=!0,Dp);case"textInput":return e=t.data,e===Dp&&Lp?null:e;default:return null}}function I_(e,t){if(Bo)return e==="compositionend"||!Hh&&ly(e,t)?(e=iy(),il=Uh=pr=null,Bo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ay&&t.locale!=="ko"?null:t.data;default:return null}}var D_={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 Mp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!D_[e.type]:t==="textarea"}function cy(e,t,n,r){Bv(r),t=Ol(t,"onChange"),0<t.length&&(n=new Vh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vi=null,Ni=null;function L_(e){ky(e,0)}function lu(e){var t=Wo(e);if(Iv(t))return e}function M_(e,t){if(e==="change")return t}var dy=!1;if(Nn){var ec;if(Nn){var tc="oninput"in document;if(!tc){var zp=document.createElement("div");zp.setAttribute("oninput","return;"),tc=typeof zp.oninput=="function"}ec=tc}else ec=!1;dy=ec&&(!document.documentMode||9<document.documentMode)}function $p(){vi&&(vi.detachEvent("onpropertychange",hy),Ni=vi=null)}function hy(e){if(e.propertyName==="value"&&lu(Ni)){var t=[];cy(t,Ni,e,Mh(e)),Hv(L_,t)}}function z_(e,t,n){e==="focusin"?($p(),vi=t,Ni=n,vi.attachEvent("onpropertychange",hy)):e==="focusout"&&$p()}function $_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lu(Ni)}function F_(e,t){if(e==="click")return lu(t)}function B_(e,t){if(e==="input"||e==="change")return lu(t)}function U_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:U_;function Ii(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Qc.call(t,o)||!nn(e[o],t[o]))return!1}return!0}function Fp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bp(e,t){var n=Fp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fp(n)}}function fy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function py(){for(var e=window,t=El();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=El(e.document)}return t}function Kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function V_(e){var t=py(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fy(n.ownerDocument.documentElement,n)){if(r!==null&&Kh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Bp(n,s);var i=Bp(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var W_=Nn&&"documentMode"in document&&11>=document.documentMode,Uo=null,pd=null,yi=null,md=!1;
vendor: 4,821 bytes, line 38
38function Up(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;md||Uo==null||Uo!==El(r)||(r=Uo,"selectionStart"in r&&Kh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yi&&Ii(yi,r)||(yi=r,r=Ol(pd,"onSelect"),0<r.length&&(t=new Vh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Uo)))}function Ia(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vo={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionend:Ia("Transition","TransitionEnd")},nc={},my={};Nn&&(my=document.createElement("div").style,"AnimationEvent"in window||(delete Vo.animationend.animation,delete Vo.animationiteration.animation,delete Vo.animationstart.animation),"TransitionEvent"in window||delete Vo.transitionend.transition);function uu(e){if(nc[e])return nc[e];if(!Vo[e])return e;var t=Vo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in my)return nc[e]=t[n];return e}var gy=uu("animationend"),vy=uu("animationiteration"),yy=uu("animationstart"),wy=uu("transitionend"),by=new Map,Vp="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 Rr(e,t){by.set(e,t),fo(t,[e])}for(var rc=0;rc<Vp.length;rc++){var oc=Vp[rc],H_=oc.toLowerCase(),K_=oc[0].toUpperCase()+oc.slice(1);Rr(H_,"on"+K_)}Rr(gy,"onAnimationEnd");Rr(vy,"onAnimationIteration");Rr(yy,"onAnimationStart");Rr("dblclick","onDoubleClick");Rr("focusin","onFocus");Rr("focusout","onBlur");Rr(wy,"onTransitionEnd");ks("onMouseEnter",["mouseout","mouseover"]);ks("onMouseLeave",["mouseout","mouseover"]);ks("onPointerEnter",["pointerout","pointerover"]);ks("onPointerLeave",["pointerout","pointerover"]);fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fo("onBeforeInput",["compositionend","keypress","textInput","paste"]);fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ci="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(" "),G_=new Set("cancel close invalid load scroll toggle".split(" ").concat(ci));function Wp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,HS(r,t,void 0,e),e.currentTarget=null}function ky(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;Wp(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;Wp(o,a,u),s=l}}}if(Tl)throw e=cd,Tl=!1,cd=null,e}function me(e,t){var n=t[bd];n===void 0&&(n=t[bd]=new Set);var r=e+"__bubble";n.has(r)||(Sy(t,e,2,!1),n.add(r))}function sc(e,t,n){var r=0;t&&(r|=4),Sy(n,e,r,t)}var Da="_reactListening"+Math.random().toString(36).slice(2);function Di(e){if(!e[Da]){e[Da]=!0,Rv.forEach(function(n){n!=="selectionchange"&&(G_.has(n)||sc(n,!1,e),sc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Da]||(t[Da]=!0,sc("selectionchange",!1,t))}}function Sy(e,t,n,r){switch(sy(t)){case 1:var o=a_;break;case 4:o=l_;break;default:o=Bh}n=o.bind(null,t,n,e),o=void 0,!ud||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ic(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 22,691 bytes, lines 38-39
38if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Ur(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Hv(function(){var u=s,c=Mh(n),d=[];e:{var h=by.get(e);if(h!==void 0){var f=Vh,b=e;switch(e){case"keypress":if(al(n)===0)break e;case"keydown":case"keyup":f=__;break;case"focusin":b="focus",f=Xu;break;case"focusout":b="blur",f=Xu;break;case"beforeblur":case"afterblur":f=Xu;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":f=jp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=d_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=T_;break;case gy:case vy:case yy:f=p_;break;case wy:f=P_;break;case"scroll":f=u_;break;case"wheel":f=A_;break;case"copy":case"cut":case"paste":f=g_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Ip}var p=(t&4)!==0,k=!p&&e==="scroll",v=p?h!==null?h+"Capture":null:h;p=[];for(var y=u,w;y!==null;){w=y;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,v!==null&&(S=Ri(y,v),S!=null&&p.push(Li(y,S,w)))),k)break;y=y.return}0<p.length&&(h=new f(h,b,null,n,c),d.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==ad&&(b=n.relatedTarget||n.fromElement)&&(Ur(b)||b[In]))break e;if((f||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(b=n.relatedTarget||n.toElement,f=u,b=b?Ur(b):null,b!==null&&(k=po(b),b!==k||b.tag!==5&&b.tag!==6)&&(b=null)):(f=null,b=u),f!==b)){if(p=jp,S="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(p=Ip,S="onPointerLeave",v="onPointerEnter",y="pointer"),k=f==null?h:Wo(f),w=b==null?h:Wo(b),h=new p(S,y+"leave",f,n,c),h.target=k,h.relatedTarget=w,S=null,Ur(c)===u&&(p=new p(v,y+"enter",b,n,c),p.target=w,p.relatedTarget=k,S=p),k=S,f&&b)t:{for(p=f,v=b,y=0,w=p;w;w=_o(w))y++;for(w=0,S=v;S;S=_o(S))w++;for(;0<y-w;)p=_o(p),y--;for(;0<w-y;)v=_o(v),w--;for(;y--;){if(p===v||v!==null&&p===v.alternate)break t;p=_o(p),v=_o(v)}p=null}else p=null;f!==null&&Hp(d,h,f,p,!1),b!==null&&k!==null&&Hp(d,k,b,p,!0)}}e:{if(h=u?Wo(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var _=M_;else if(Mp(h))if(dy)_=B_;else{_=$_;var E=z_}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(_=F_);if(_&&(_=_(e,u))){cy(d,_,n,c);break e}E&&E(e,h,u),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&nd(h,"number",h.value)}switch(E=u?Wo(u):window,e){case"focusin":(Mp(E)||E.contentEditable==="true")&&(Uo=E,pd=u,yi=null);break;case"focusout":yi=pd=Uo=null;break;case"mousedown":md=!0;break;case"contextmenu":case"mouseup":case"dragend":md=!1,Up(d,n,c);break;case"selectionchange":if(W_)break;case"keydown":case"keyup":Up(d,n,c)}var x;if(Hh)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Bo?ly(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(ay&&n.locale!=="ko"&&(Bo||P!=="onCompositionStart"?P==="onCompositionEnd"&&Bo&&(x=iy()):(pr=c,Uh="value"in pr?pr.value:pr.textContent,Bo=!0)),E=Ol(u,P),0<E.length&&(P=new Np(P,e,null,n,c),d.push({event:P,listeners:E}),x?P.data=x:(x=uy(n),x!==null&&(P.data=x)))),(x=j_?N_(e,n):I_(e,n))&&(u=Ol(u,"onBeforeInput"),0<u.length&&(c=new Np("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=x))}ky(d,t)})}function Li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ol(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Ri(e,n),s!=null&&r.unshift(Li(e,s,o)),s=Ri(e,t),s!=null&&r.push(Li(e,s,o))),e=e.return}return r}function _o(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hp(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Ri(n,s),l!=null&&i.unshift(Li(n,l,a))):o||(l=Ri(n,s),l!=null&&i.push(Li(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var q_=/\r\n?/g,Q_=/\u0000|\uFFFD/g;function Kp(e){return(typeof e=="string"?e:""+e).replace(q_,` 39`).replace(Q_,"")}function La(e,t,n){if(t=Kp(t),Kp(e)!==t&&n)throw Error(D(425))}function jl(){}var gd=null,vd=null;function yd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wd=typeof setTimeout=="function"?setTimeout:void 0,Y_=typeof clearTimeout=="function"?clearTimeout:void 0,Gp=typeof Promise=="function"?Promise:void 0,J_=typeof queueMicrotask=="function"?queueMicrotask:typeof Gp<"u"?function(e){return Gp.resolve(null).then(e).catch(Z_)}:wd;function Z_(e){setTimeout(function(){throw e})}function ac(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ji(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ji(t)}function br(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function qp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ds=Math.random().toString(36).slice(2),mn="__reactFiber$"+Ds,Mi="__reactProps$"+Ds,In="__reactContainer$"+Ds,bd="__reactEvents$"+Ds,X_="__reactListeners$"+Ds,eE="__reactHandles$"+Ds;function Ur(e){var t=e[mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[In]||n[mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qp(e);e!==null;){if(n=e[mn])return n;e=qp(e)}return t}e=n,n=e.parentNode}return null}function ua(e){return e=e[mn]||e[In],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function cu(e){return e[Mi]||null}var kd=[],Ho=-1;function Ar(e){return{current:e}}function ve(e){0>Ho||(e.current=kd[Ho],kd[Ho]=null,Ho--)}function fe(e,t){Ho++,kd[Ho]=e.current,e.current=t}var Cr={},et=Ar(Cr),ht=Ar(!1),oo=Cr;function Ss(e,t){var n=e.type.contextTypes;if(!n)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function Nl(){ve(ht),ve(et)}function Qp(e,t,n){if(et.current!==Cr)throw Error(D(168));fe(et,t),fe(ht,n)}function _y(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,zS(e)||"Unknown",o));return Te({},n,r)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,oo=et.current,fe(et,e),fe(ht,ht.current),!0}function Yp(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=_y(e,t,oo),r.__reactInternalMemoizedMergedChildContext=e,ve(ht),ve(et),fe(et,e)):ve(ht),fe(ht,n)}var Pn=null,du=!1,lc=!1;function Ey(e){Pn===null?Pn=[e]:Pn.push(e)}function tE(e){du=!0,Ey(e)}function Or(){if(!lc&&Pn!==null){lc=!0;var e=0,t=ce;try{var n=Pn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pn=null,du=!1}catch(o){throw Pn!==null&&(Pn=Pn.slice(e+1)),Qv(zh,Or),o}finally{ce=t,lc=!1}}return null}var Ko=[],Go=0,Dl=null,Ll=0,Ot=[],jt=0,so=null,An=1,On="";function Mr(e,t){Ko[Go++]=Ll,Ko[Go++]=Dl,Dl=e,Ll=t}function xy(e,t,n){Ot[jt++]=An,Ot[jt++]=On,Ot[jt++]=so,so=e;var r=An;e=On;var o=32-Zt(r)-1;r&=~(1<<o),n+=1;var s=32-Zt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,An=1<<32-Zt(t)+o|n<<o|r,On=s+e}else An=1<<s|n<<o|r,On=e}function Gh(e){e.return!==null&&(Mr(e,1),xy(e,1,0))}function qh(e){for(;e===Dl;)Dl=Ko[--Go],Ko[Go]=null,Ll=Ko[--Go],Ko[Go]=null;for(;e===so;)so=Ot[--jt],Ot[jt]=null,On=Ot[--jt],Ot[jt]=null,An=Ot[--jt],Ot[jt]=null}var bt=null,wt=null,we=!1,Yt=null;function Ty(e,t){var n=Nt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,bt=e,wt=br(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=so!==null?{id:An,overflow:On}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Nt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bt=e,wt=null,!0):!1;default:return!1}}function Sd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _d(e){if(we){var t=wt;if(t){var n=t;if(!Jp(e,t)){if(Sd(e))throw Error(D(418));t=br(n.nextSibling);var r=bt;t&&Jp(e,t)?Ty(r,n):(e.flags=e.flags&-4097|2,we=!1,bt=e)}}else{if(Sd(e))throw Error(D(418));e.flags=e.flags&-4097|2,we=!1,bt=e}}}function Zp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bt=e}function Ma(e){if(e!==bt)return!1;if(!we)return Zp(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yd(e.type,e.memoizedProps)),t&&(t=wt)){if(Sd(e))throw Cy(),Error(D(418));for(;t;)Ty(e,t),t=br(t.nextSibling)}if(Zp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=br(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=bt?br(e.stateNode.nextSibling):null;return!0}function Cy(){for(var e=wt;e;)e=br(e.nextSibling)}function _s(){wt=bt=null,we=!1}function Qh(e){Yt===null?Yt=[e]:Yt.push(e)}var nE=$n.ReactCurrentBatchConfig;function ti(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function za(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xp(e){var t=e._init;return t(e._payload)}function Py(e){function t(v,y){if(e){var w=v.deletions;w===null?(v.deletions=[y],v.flags|=16):w.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function r(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function o(v,y){return v=Er(v,y),v.index=0,v.sibling=null,v}function s(v,y,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<y?(v.flags|=2,y):w):(v.flags|=2,y)):(v.flags|=1048576,y)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,y,w,S){return y===null||y.tag!==6?(y=mc(w,v.mode,S),y.return=v,y):(y=o(y,w),y.return=v,y)}function l(v,y,w,S){var _=w.type;return _===Fo?c(v,y,w.props.children,S,w.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Xn&&Xp(_)===y.type)?(S=o(y,w.props),S.ref=ti(v,y,w),S.return=v,S):(S=pl(w.type,w.key,w.props,null,v.mode,S),S.ref=ti(v,y,w),S.return=v,S)}function u(v,y,w,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=gc(w,v.mode,S),y.return=v,y):(y=o(y,w.children||[]),y.return=v,y)}function c(v,y,w,S,_){return y===null||y.tag!==7?(y=ro(w,v.mode,S,_),y.return=v,y):(y=o(y,w),y.return=v,y)}function d(v,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=mc(""+y,v.mode,w),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ca:return w=pl(y.type,y.key,y.props,null,v.mode,w),w.ref=ti(v,null,y),w.return=v,w;case $o:return y=gc(y,v.mode,w),y.return=v,y;case Xn:var S=y._init;return d(v,S(y._payload),w)}if(li(y)||Ys(y))return y=ro(y,v.mode,w,null),y.return=v,y;za(v,y)}return null}function h(v,y,w,S){var _=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return _!==null?null:a(v,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ca:return w.key===_?l(v,y,w,S):null;case $o:return w.key===_?u(v,y,w,S):null;case Xn:return _=w._init,h(v,y,_(w._payload),S)}if(li(w)||Ys(w))return _!==null?null:c(v,y,w,S,null);za(v,w)}return null}function f(v,y,w,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(w)||null,a(y,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ca:return v=v.get(S.key===null?w:S.key)||null,l(y,v,S,_);case $o:return v=v.get(S.key===null?w:S.key)||null,u(y,v,S,_);case Xn:var E=S._init;return f(v,y,w,E(S._payload),_)}if(li(S)||Ys(S))return v=v.get(w)||null,c(y,v,S,_,null);za(y,S)}return null}function b(v,y,w,S){for(var _=null,E=null,x=y,P=y=0,R=null;x!==null&&P<w.length;P++){x.index>P?(R=x,x=null):R=x.sibling;var C=h(v,x,w[P],S);if(C===null){x===null&&(x=R);break}e&&x&&C.alternate===null&&t(v,x),y=s(C,y,P),E===null?_=C:E.sibling=C,E=C,x=R}if(P===w.length)return n(v,x),we&&Mr(v,P),_;if(x===null){for(;P<w.length;P++)x=d(v,w[P],S),x!==null&&(y=s(x,y,P),E===null?_=x:E.sibling=x,E=x);return we&&Mr(v,P),_}for(x=r(v,x);P<w.length;P++)R=f(x,v,P,w[P],S),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?P:R.key),y=s(R,y,P),E===null?_=R:E.sibling=R,E=R);return e&&x.forEach(function(I){return t(v,I)}),we&&Mr(v,P),_}function p(v,y,w,S){var _=Ys(w);if(typeof _!="function")throw Error(D(150));if(w=_.call(w),w==null)throw Error(D(151));for(var E=_=null,x=y,P=y=0,R=null,C=w.next();x!==null&&!C.done;P++,C=w.next()){x.index>P?(R=x,x=null):R=x.sibling;var I=h(v,x,C.value,S);if(I===null){x===null&&(x=R);break}e&&x&&I.alternate===null&&t(v,x),y=s(I,y,P),E===null?_=I:E.sibling=I,E=I,x=R}if(C.done)return n(v,x),we&&Mr(v,P),_;if(x===null){for(;!C.done;P++,C=w.next())C=d(v,C.value,S),C!==null&&(y=s(C,y,P),E===null?_=C:E.sibling=C,E=C);return we&&Mr(v,P),_}for(x=r(v,x);!C.done;P++,C=w.next())C=f(x,v,P,C.value,S),C!==null&&(e&&C.alternate!==null&&x.delete(C.key===null?P:C.key),y=s(C,y,P),E===null?_=C:E.sibling=C,E=C);return e&&x.forEach(function(O){return t(v,O)}),we&&Mr(v,P),_}function k(v,y,w,S){if(typeof w=="object"&&w!==null&&w.type===Fo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ca:e:{for(var _=w.key,E=y;E!==null;){if(E.key===_){if(_=w.type,_===Fo){if(E.tag===7){n(v,E.sibling),y=o(E,w.props.children),y.return=v,v=y;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Xn&&Xp(_)===E.type){n(v,E.sibling),y=o(E,w.props),y.ref=ti(v,E,w),y.return=v,v=y;break e}n(v,E);break}else t(v,E);E=E.sibling}w.type===Fo?(y=ro(w.props.children,v.mode,S,w.key),y.return=v,v=y):(S=pl(w.type,w.key,w.props,null,v.mode,S),S.ref=ti(v,y,w),S.return=v,v=S)}return i(v);case $o:e:{for(E=w.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=o(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=gc(w,v.mode,S),y.return=v,v=y}return i(v);case Xn:return E=w._init,k(v,y,E(w._payload),S)}if(li(w))return b(v,y,w,S);if(Ys(w))return p(v,y,w,S);za(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,w),y.return=v,v=y):(n(v,y),y=mc(w,v.mode,S),y.return=v,v=y),i(v)):n(v,y)}return k}var Es=Py(!0),Ry=Py(!1),Ml=Ar(null),zl=null,qo=null,Yh=null;function Jh(){Yh=qo=zl=null}function Zh(e){var t=Ml.current;ve(Ml),e._currentValue=t}function Ed(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ns(e,t){zl=e,Yh=qo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Yh!==e)if(e={context:e,memoizedValue:t,next:null},qo===null){if(zl===null)throw Error(D(308));qo=e,zl.dependencies={lanes:0,firstContext:e}}else qo=qo.next=e;return t}var Vr=null;function Xh(e){Vr===null?Vr=[e]:Vr.push(e)}function Ay(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Xh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var er=!1;function ef(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Dn(e,n)}return o=r.interleaved,o===null?(t.next=t,Xh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Dn(e,n)}function ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$h(e,n)}}function em(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=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};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $l(e,t,n,r){var o=e.updateQueue;er=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,c=u=l=null,a=s;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,p=a;switch(h=t,f=n,p.tag){case 1:if(b=p.payload,typeof b=="function"){d=b.call(f,d,h);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=p.payload,h=typeof b=="function"?b.call(f,d,h):b,h==null)break e;d=Te({},d,h);break e;case 2:er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);ao|=i,e.lanes=i,e.memoizedState=d}}function tm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(D(191,o));o.call(r)}}}var ca={},yn=Ar(ca),zi=Ar(ca),$i=Ar(ca);function Wr(e){if(e===ca)throw Error(D(174));return e}function tf(e,t){switch(fe($i,t),fe(zi,e),fe(yn,ca),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:od(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=od(t,e)}ve(yn),fe(yn,t)}function xs(){ve(yn),ve(zi),ve($i)}function jy(e){Wr($i.current);var t=Wr(yn.current),n=od(t,e.type);t!==n&&(fe(zi,e),fe(yn,n))}function nf(e){zi.current===e&&(ve(yn),ve(zi))}var _e=Ar(0);function Fl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uc=[];function rf(){for(var e=0;e<uc.length;e++)uc[e]._workInProgressVersionPrimary=null;uc.length=0}var ul=$n.ReactCurrentDispatcher,cc=$n.ReactCurrentBatchConfig,io=0,xe=null,Le=null,ze=null,Bl=!1,wi=!1,Fi=0,rE=0;function Qe(){throw Error(D(321))}function of(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function sf(e,t,n,r,o,s){if(io=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ul.current=e===null||e.memoizedState===null?aE:lE,e=n(r,o),wi){s=0;do{if(wi=!1,Fi=0,25<=s)throw Error(D(301));s+=1,ze=Le=null,t.updateQueue=null,ul.current=uE,e=n(r,o)}while(wi)}if(ul.current=Ul,t=Le!==null&&Le.next!==null,io=0,ze=Le=xe=null,Bl=!1,t)throw Error(D(300));return e}function af(){var e=Fi!==0;return Fi=0,e}function dn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?xe.memoizedState=ze=e:ze=ze.next=e,ze}function Lt(){if(Le===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=ze===null?xe.memoizedState:ze.next;if(t!==null)ze=t,Le=e;else{if(e===null)throw Error(D(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},ze===null?xe.memoizedState=ze=e:ze=ze.next=e}return ze}function Bi(e,t){return typeof t=="function"?t(e):t}function dc(e){var t=Lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Le,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;
vendor: 4,528 bytes, line 39
39o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var c=u.lane;if((io&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,xe.lanes|=c,ao|=c}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,nn(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,xe.lanes|=s,ao|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hc(e){var t=Lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);nn(s,t.memoizedState)||(dt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ny(){}function Iy(e,t){var n=xe,r=Lt(),o=t(),s=!nn(r.memoizedState,o);if(s&&(r.memoizedState=o,dt=!0),r=r.queue,lf(My.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,Ui(9,Ly.bind(null,n,r,o,t),void 0,null),Fe===null)throw Error(D(349));io&30||Dy(n,t,o)}return o}function Dy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ly(e,t,n,r){t.value=n,t.getSnapshot=r,zy(t)&&$y(e)}function My(e,t,n){return n(function(){zy(t)&&$y(e)})}function zy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function $y(e){var t=Dn(e,1);t!==null&&Xt(t,e,1,-1)}function nm(e){var t=dn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:e},t.queue=e,e=e.dispatch=iE.bind(null,xe,e),[t.memoizedState,e]}function Ui(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Fy(){return Lt().memoizedState}function cl(e,t,n,r){var o=dn();xe.flags|=e,o.memoizedState=Ui(1|t,n,void 0,r===void 0?null:r)}function hu(e,t,n,r){var o=Lt();r=r===void 0?null:r;var s=void 0;if(Le!==null){var i=Le.memoizedState;if(s=i.destroy,r!==null&&of(r,i.deps)){o.memoizedState=Ui(t,n,s,r);return}}xe.flags|=e,o.memoizedState=Ui(1|t,n,s,r)}function rm(e,t){return cl(8390656,8,e,t)}function lf(e,t){return hu(2048,8,e,t)}function By(e,t){return hu(4,2,e,t)}function Uy(e,t){return hu(4,4,e,t)}function Vy(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wy(e,t,n){return n=n!=null?n.concat([e]):null,hu(4,4,Vy.bind(null,t,e),n)}function uf(){}function Hy(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&of(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ky(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&of(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gy(e,t,n){return io&21?(nn(n,t)||(n=Zv(),xe.lanes|=n,ao|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function oE(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=cc.transition;cc.transition={};try{e(!1),t()}finally{ce=n,cc.transition=r}}function qy(){return Lt().memoizedState}function sE(e,t,n){var r=_r(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qy(e))Yy(t,n);else if(n=Ay(e,t,n,r),n!==null){var o=ot();Xt(n,e,r,o),Jy(n,t,r)}}function iE(e,t,n){var r=_r(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qy(e))Yy(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,nn(a,i)){var l=t.interleaved;l===null?(o.next=o,Xh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ay(e,t,o,r),n!==null&&(o=ot(),Xt(n,e,r,o),Jy(n,t,r))}}function Qy(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Yy(e,t){wi=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}
vendor: 5,510 bytes, lines 39-41
39function Jy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$h(e,n)}}var Ul={readContext:Dt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},aE={readContext:Dt,useCallback:function(e,t){return dn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:rm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cl(4194308,4,Vy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return cl(4,2,e,t)},useMemo:function(e,t){var n=dn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sE.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=dn();return e={current:e},t.memoizedState=e},useState:nm,useDebugValue:uf,useDeferredValue:function(e){return dn().memoizedState=e},useTransition:function(){var e=nm(!1),t=e[0];return e=oE.bind(null,e[1]),dn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=dn();if(we){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Fe===null)throw Error(D(349));io&30||Dy(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,rm(My.bind(null,r,s,e),[e]),r.flags|=2048,Ui(9,Ly.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=dn(),t=Fe.identifierPrefix;if(we){var n=On,r=An;n=(r&~(1<<32-Zt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lE={readContext:Dt,useCallback:Hy,useContext:Dt,useEffect:lf,useImperativeHandle:Wy,useInsertionEffect:By,useLayoutEffect:Uy,useMemo:Ky,useReducer:dc,useRef:Fy,useState:function(){return dc(Bi)},useDebugValue:uf,useDeferredValue:function(e){var t=Lt();return Gy(t,Le.memoizedState,e)},useTransition:function(){var e=dc(Bi)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Ny,useSyncExternalStore:Iy,useId:qy,unstable_isNewReconciler:!1},uE={readContext:Dt,useCallback:Hy,useContext:Dt,useEffect:lf,useImperativeHandle:Wy,useInsertionEffect:By,useLayoutEffect:Uy,useMemo:Ky,useReducer:hc,useRef:Fy,useState:function(){return hc(Bi)},useDebugValue:uf,useDeferredValue:function(e){var t=Lt();return Le===null?t.memoizedState=e:Gy(t,Le.memoizedState,e)},useTransition:function(){var e=hc(Bi)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Ny,useSyncExternalStore:Iy,useId:qy,unstable_isNewReconciler:!1};function Wt(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fu={isMounted:function(e){return(e=e._reactInternals)?po(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ot(),o=_r(e),s=jn(r,o);s.payload=t,n!=null&&(s.callback=n),t=kr(e,s,o),t!==null&&(Xt(t,e,o,r),ll(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ot(),o=_r(e),s=jn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=kr(e,s,o),t!==null&&(Xt(t,e,o,r),ll(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ot(),r=_r(e),o=jn(n,r);o.tag=2,t!=null&&(o.callback=t),t=kr(e,o,r),t!==null&&(Xt(t,e,r,n),ll(t,e,r))}};function om(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ii(n,r)||!Ii(o,s):!0}function Zy(e,t,n){var r=!1,o=Cr,s=t.contextType;return typeof s=="object"&&s!==null?s=Dt(s):(o=ft(t)?oo:et.current,r=t.contextTypes,s=(r=r!=null)?Ss(e,o):Cr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function sm(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fu.enqueueReplaceState(t,t.state,null)}function Td(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ef(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Dt(s):(s=ft(t)?oo:et.current,o.context=Ss(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(xd(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&fu.enqueueReplaceState(o,o.state,null),$l(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ts(e,t){try{var n="",r=t;do n+=MS(r),r=r.return;while(r);var o=n}catch(s){o=` 40Error generating stack: `+s.message+` 41`+s.stack}return{value:e,source:t,stack:o,digest:null}}
vendor: 11,185 bytes, line 41
41function fc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cE=typeof WeakMap=="function"?WeakMap:Map;function Xy(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Md=r),Cd(e,t)},n}function ew(e,t,n){n=jn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Cd(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Cd(e,t),typeof r!="function"&&(Sr===null?Sr=new Set([this]):Sr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function im(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cE;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=EE.bind(null,e,t,n),t.then(e,e))}function am(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jn(-1,1),t.tag=2,kr(n,t,1))),n.lanes|=1),e)}var dE=$n.ReactCurrentOwner,dt=!1;function rt(e,t,n,r){t.child=e===null?Ry(t,null,n,r):Es(t,e.child,n,r)}function um(e,t,n,r,o){n=n.render;var s=t.ref;return ns(t,o),r=sf(e,t,n,r,s,o),n=af(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ln(e,t,o)):(we&&n&&Gh(t),t.flags|=1,rt(e,t,r,o),t.child)}function cm(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!vf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,tw(e,t,s,r,o)):(e=pl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(i,r)&&e.ref===t.ref)return Ln(e,t,o)}return t.flags|=1,e=Er(s,r),e.ref=t.ref,e.return=t,t.child=e}function tw(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ii(s,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,Ln(e,t,o)}return Pd(e,t,n,r,o)}function nw(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(Yo,gt),gt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(Yo,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,fe(Yo,gt),gt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,fe(Yo,gt),gt|=r;return rt(e,t,o,n),t.child}function rw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pd(e,t,n,r,o){var s=ft(n)?oo:et.current;return s=Ss(t,s),ns(t,o),n=sf(e,t,n,r,s,o),r=af(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ln(e,t,o)):(we&&r&&Gh(t),t.flags|=1,rt(e,t,n,o),t.child)}function dm(e,t,n,r,o){if(ft(n)){var s=!0;Il(t)}else s=!1;if(ns(t,o),t.stateNode===null)dl(e,t),Zy(t,n,r),Td(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Dt(u):(u=ft(n)?oo:et.current,u=Ss(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&sm(t,i,r,u),er=!1;var h=t.memoizedState;i.state=h,$l(t,r,i,o),l=t.memoizedState,a!==r||h!==l||ht.current||er?(typeof c=="function"&&(xd(t,n,c,r),l=t.memoizedState),(a=er||om(t,n,a,r,h,l,u))?(d||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"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Oy(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Wt(t.type,a),i.props=u,d=t.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Dt(l):(l=ft(n)?oo:et.current,l=Ss(t,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||h!==l)&&sm(t,i,r,l),er=!1,h=t.memoizedState,i.state=h,$l(t,r,i,o);var b=t.memoizedState;a!==d||h!==b||ht.current||er?(typeof f=="function"&&(xd(t,n,f,r),b=t.memoizedState),(u=er||om(t,n,u,r,h,b,l)||!1)?(c||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"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rd(e,t,n,r,s,o)}function Rd(e,t,n,r,o,s){rw(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Yp(t,n,!1),Ln(e,t,s);r=t.stateNode,dE.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Es(t,e.child,null,s),t.child=Es(t,null,a,s)):rt(e,t,a,s),t.memoizedState=r.state,o&&Yp(t,n,!0),t.child}function ow(e){var t=e.stateNode;t.pendingContext?Qp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qp(e,t.context,!1),tf(e,t.containerInfo)}function hm(e,t,n,r,o){return _s(),Qh(o),t.flags|=256,rt(e,t,n,r),t.child}var Ad={dehydrated:null,treeContext:null,retryLane:0};function Od(e){return{baseLanes:e,cachePool:null,transitions:null}}function sw(e,t,n){var r=t.pendingProps,o=_e.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),fe(_e,o&1),e===null)return _d(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=gu(i,r,0,null),e=ro(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Od(n),t.memoizedState=Ad,e):cf(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return hE(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Er(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Er(a,s):(s=ro(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?Od(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Ad,r}return s=e.child,e=s.sibling,r=Er(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function cf(e,t){return t=gu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $a(e,t,n,r){return r!==null&&Qh(r),Es(t,e.child,null,n),e=cf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hE(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=fc(Error(D(422))),$a(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=gu({mode:"visible",children:r.children},o,0,null),s=ro(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Es(t,e.child,null,i),t.child.memoizedState=Od(i),t.memoizedState=Ad,s);if(!(t.mode&1))return $a(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(D(419)),r=fc(s,r,void 0),$a(e,t,i,r)}if(a=(i&e.childLanes)!==0,dt||a){if(r=Fe,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Dn(e,o),Xt(r,e,o,-1))}return gf(),r=fc(Error(D(421))),$a(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=xE.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,wt=br(o.nextSibling),bt=t,we=!0,Yt=null,e!==null&&(Ot[jt++]=An,Ot[jt++]=On,Ot[jt++]=so,An=e.id,On=e.overflow,so=t),t=cf(t,r.children),t.flags|=4096,t)}function fm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ed(e.return,t,n)}function pc(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function iw(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(rt(e,t,r.children,n),r=_e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fm(e,n,t);else if(e.tag===19)fm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fe(_e,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Fl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),pc(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Fl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}pc(t,!0,n,null,s);break;case"together":pc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ao|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));
vendor: 4,102 bytes, line 41
41if(t.child!==null){for(e=t.child,n=Er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fE(e,t,n){switch(t.tag){case 3:ow(t),_s();break;case 5:jy(t);break;case 1:ft(t.type)&&Il(t);break;case 4:tf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;fe(Ml,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(_e,_e.current&1),t.flags|=128,null):n&t.child.childLanes?sw(e,t,n):(fe(_e,_e.current&1),e=Ln(e,t,n),e!==null?e.sibling:null);fe(_e,_e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return iw(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),fe(_e,_e.current),r)break;return null;case 22:case 23:return t.lanes=0,nw(e,t,n)}return Ln(e,t,n)}var aw,jd,lw,uw;aw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};jd=function(){};lw=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Wr(yn.current);var s=null;switch(n){case"input":o=ed(e,o),r=ed(e,r),s=[];break;case"select":o=Te({},o,{value:void 0}),r=Te({},r,{value:void 0}),s=[];break;case"textarea":o=rd(e,o),r=rd(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}sd(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ci.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ci.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&me("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};uw=function(e,t,n,r){n!==r&&(t.flags|=4)};function ni(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pE(e,t,n){var r=t.pendingProps;switch(qh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return ft(t.type)&&Nl(),Ye(t),null;case 3:return r=t.stateNode,xs(),ve(ht),ve(et),rf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ma(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yt!==null&&(Fd(Yt),Yt=null))),jd(e,t),Ye(t),null;case 5:nf(t);var o=Wr($i.current);if(n=t.type,e!==null&&t.stateNode!=null)lw(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ye(t),null}
vendor: 29,540 bytes, line 41
41if(e=Wr(yn.current),Ma(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[mn]=t,r[Mi]=s,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(o=0;o<ci.length;o++)me(ci[o],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":Sp(r,s),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},me("invalid",r);break;case"textarea":Ep(r,s),me("invalid",r)}sd(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&La(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&La(r.textContent,a,e),o=["children",""+a]):Ci.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&me("scroll",r)}switch(n){case"input":Pa(r),_p(r,s,!0);break;case"textarea":Pa(r),xp(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=jl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Mv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[mn]=t,e[Mi]=r,aw(e,t,!1,!1),t.stateNode=e;e:{switch(i=id(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;o<ci.length;o++)me(ci[o],e);o=r;break;case"source":me("error",e),o=r;break;case"img":case"image":case"link":me("error",e),me("load",e),o=r;break;case"details":me("toggle",e),o=r;break;case"input":Sp(e,r),o=ed(e,r),me("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Te({},r,{value:void 0}),me("invalid",e);break;case"textarea":Ep(e,r),o=rd(e,r),me("invalid",e);break;default:o=r}sd(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Fv(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&zv(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Pi(e,l):typeof l=="number"&&Pi(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ci.hasOwnProperty(s)?l!=null&&s==="onScroll"&&me("scroll",e):l!=null&&Nh(e,s,l,i))}switch(n){case"input":Pa(e),_p(e,r,!1);break;case"textarea":Pa(e),xp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Zo(e,!!r.multiple,s,!1):r.defaultValue!=null&&Zo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=jl)}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&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)uw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Wr($i.current),Wr(yn.current),Ma(t)){if(r=t.stateNode,n=t.memoizedProps,r[mn]=t,(s=r.nodeValue!==n)&&(e=bt,e!==null))switch(e.tag){case 3:La(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&La(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mn]=t,t.stateNode=r}return Ye(t),null;case 13:if(ve(_e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&wt!==null&&t.mode&1&&!(t.flags&128))Cy(),_s(),t.flags|=98560,s=!1;else if(s=Ma(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(D(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(D(317));s[mn]=t}else _s(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),s=!1}else Yt!==null&&(Fd(Yt),Yt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||_e.current&1?Me===0&&(Me=3):gf())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return xs(),jd(e,t),e===null&&Di(t.stateNode.containerInfo),Ye(t),null;case 10:return Zh(t.type._context),Ye(t),null;case 17:return ft(t.type)&&Nl(),Ye(t),null;case 19:if(ve(_e),s=t.memoizedState,s===null)return Ye(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)ni(s,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Fl(e),i!==null){for(t.flags|=128,ni(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(_e,_e.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ae()>Cs&&(t.flags|=128,r=!0,ni(s,!1),t.lanes=4194304)}else{if(!r)if(e=Fl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ni(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!we)return Ye(t),null}else 2*Ae()-s.renderingStartTime>Cs&&n!==1073741824&&(t.flags|=128,r=!0,ni(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ae(),t.sibling=null,n=_e.current,fe(_e,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return mf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function mE(e,t){switch(qh(t),t.tag){case 1:return ft(t.type)&&Nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xs(),ve(ht),ve(et),rf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nf(t),null;case 13:if(ve(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));_s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(_e),null;case 4:return xs(),null;case 10:return Zh(t.type._context),null;case 22:case 23:return mf(),null;case 24:return null;default:return null}}var Fa=!1,Ze=!1,gE=typeof WeakSet=="function"?WeakSet:Set,B=null;function Qo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Nd(e,t,n){try{n()}catch(r){Re(e,t,r)}}var pm=!1;function vE(e,t){if(gd=Rl,e=py(),Kh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var f;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===o&&(a=i),h===s&&++c===r&&(l=i),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(vd={focusedElem:e,selectionRange:n},Rl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var p=b.memoizedProps,k=b.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:Wt(t.type,p),k);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Re(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return b=pm,pm=!1,b}function bi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Nd(t,n,s)}o=o.next}while(o!==r)}}function pu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Id(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cw(e){var t=e.alternate;t!==null&&(e.alternate=null,cw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[Mi],delete t[bd],delete t[X_],delete t[eE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dw(e){return e.tag===5||e.tag===3||e.tag===4}function mm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Dd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jl));else if(r!==4&&(e=e.child,e!==null))for(Dd(e,t,n),e=e.sibling;e!==null;)Dd(e,t,n),e=e.sibling}function Ld(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ld(e,t,n),e=e.sibling;e!==null;)Ld(e,t,n),e=e.sibling}var Ve=null,qt=!1;function qn(e,t,n){for(n=n.child;n!==null;)hw(e,t,n),n=n.sibling}function hw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(iu,n)}catch{}switch(n.tag){case 5:Ze||Qo(n,t);case 6:var r=Ve,o=qt;Ve=null,qn(e,t,n),Ve=r,qt=o,Ve!==null&&(qt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(qt?(e=Ve,n=n.stateNode,e.nodeType===8?ac(e.parentNode,n):e.nodeType===1&&ac(e,n),ji(e)):ac(Ve,n.stateNode));break;case 4:r=Ve,o=qt,Ve=n.stateNode.containerInfo,qt=!0,qn(e,t,n),Ve=r,qt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Nd(n,t,i),o=o.next}while(o!==r)}qn(e,t,n);break;case 1:if(!Ze&&(Qo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Re(n,t,a)}qn(e,t,n);break;case 21:qn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,qn(e,t,n),Ze=r):qn(e,t,n);break;default:qn(e,t,n)}}function gm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gE),t.forEach(function(r){var o=TE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Ve=a.stateNode,qt=!1;break e;case 3:Ve=a.stateNode.containerInfo,qt=!0;break e;case 4:Ve=a.stateNode.containerInfo,qt=!0;break e}a=a.return}if(Ve===null)throw Error(D(160));hw(s,i,o),Ve=null,qt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Re(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fw(t,e),t=t.sibling}function fw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Bt(t,e),cn(e),r&4){try{bi(3,e,e.return),pu(3,e)}catch(p){Re(e,e.return,p)}try{bi(5,e,e.return)}catch(p){Re(e,e.return,p)}}break;case 1:Bt(t,e),cn(e),r&512&&n!==null&&Qo(n,n.return);break;case 5:if(Bt(t,e),cn(e),r&512&&n!==null&&Qo(n,n.return),e.flags&32){var o=e.stateNode;try{Pi(o,"")}catch(p){Re(e,e.return,p)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Dv(o,s),id(a,i);var u=id(a,s);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?Fv(o,d):c==="dangerouslySetInnerHTML"?zv(o,d):c==="children"?Pi(o,d):Nh(o,c,d,u)}switch(a){case"input":td(o,s);break;case"textarea":Lv(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?Zo(o,!!s.multiple,f,!1):h!==!!s.multiple&&(s.defaultValue!=null?Zo(o,!!s.multiple,s.defaultValue,!0):Zo(o,!!s.multiple,s.multiple?[]:"",!1))}o[Mi]=s}catch(p){Re(e,e.return,p)}}break;case 6:if(Bt(t,e),cn(e),r&4){if(e.stateNode===null)throw Error(D(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(p){Re(e,e.return,p)}}break;case 3:if(Bt(t,e),cn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(p){Re(e,e.return,p)}break;case 4:Bt(t,e),cn(e);break;case 13:Bt(t,e),cn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(ff=Ae())),r&4&&gm(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(u=Ze)||c,Bt(t,e),Ze=u):Bt(t,e),cn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(d=B=c;B!==null;){switch(h=B,f=h.child,h.tag){case 0:case 11:case 14:case 15:bi(4,h,h.return);break;case 1:Qo(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(p){Re(r,n,p)}}break;case 5:Qo(h,h.return);break;case 22:if(h.memoizedState!==null){ym(d);continue}}f!==null?(f.return=h,B=f):ym(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=$v("display",i))}catch(p){Re(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){Re(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Bt(t,e),cn(e),r&4&&gm(e);break;case 21:break;default:Bt(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dw(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Pi(o,""),r.flags&=-33);var s=mm(e);Ld(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=mm(e);Dd(e,a,i);break;default:throw Error(D(161))}}catch(l){Re(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yE(e,t,n){B=e,pw(e)}function pw(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Fa;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ze;a=Fa;var u=Ze;if(Fa=i,(Ze=l)&&!u)for(B=o;B!==null;)i=B,l=i.child,i.tag===22&&i.memoizedState!==null?wm(o):l!==null?(l.return=i,B=l):wm(o);for(;s!==null;)B=s,pw(s),s=s.sibling;B=o,Fa=a,Ze=u}vm(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,B=s):vm(e)}}function vm(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||pu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Wt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&tm(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}tm(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.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(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&ji(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Ze||t.flags&512&&Id(t)}catch(h){Re(t,t.return,h)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function ym(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function wm(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{pu(4,t)}catch(l){Re(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Re(t,o,l)}}var s=t.return;try{Id(t)}catch(l){Re(t,s,l)}break;case 5:var i=t.return;try{Id(t)}catch(l){Re(t,i,l)}}}catch(l){Re(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var wE=Math.ceil,Vl=$n.ReactCurrentDispatcher,df=$n.ReactCurrentOwner,It=$n.ReactCurrentBatchConfig,ae=0,Fe=null,Ie=null,He=0,gt=0,Yo=Ar(0),Me=0,Vi=null,ao=0,mu=0,hf=0,ki=null,ct=null,ff=0,Cs=1/0,Tn=null,Wl=!1,Md=null,Sr=null,Ba=!1,mr=null,Hl=0,Si=0,zd=null,hl=-1,fl=0;function ot(){return ae&6?Ae():hl!==-1?hl:hl=Ae()}function _r(e){return e.mode&1?ae&2&&He!==0?He&-He:nE.transition!==null?(fl===0&&(fl=Zv()),fl):(e=ce,e!==0||(e=window.event,e=e===void 0?16:sy(e.type)),e):1}function Xt(e,t,n,r){if(50<Si)throw Si=0,zd=null,Error(D(185));aa(e,n,r),(!(ae&2)||e!==Fe)&&(e===Fe&&(!(ae&2)&&(mu|=n),Me===4&&or(e,He)),pt(e,r),n===1&&ae===0&&!(t.mode&1)&&(Cs=Ae()+500,du&&Or()))}function pt(e,t){var n=e.callbackNode;n_(e,t);var r=Pl(e,e===Fe?He:0);if(r===0)n!==null&&Pp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pp(n),t===1)e.tag===0?tE(bm.bind(null,e)):Ey(bm.bind(null,e)),J_(function(){!(ae&6)&&Or()}),n=null;else{switch(Xv(r)){case 1:n=zh;break;case 4:n=Yv;break;case 16:n=Cl;break;case 536870912:n=Jv;break;default:n=Cl}n=Sw(n,mw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mw(e,t){if(hl=-1,fl=0,ae&6)throw Error(D(327));var n=e.callbackNode;if(rs()&&e.callbackNode!==n)return null;var r=Pl(e,e===Fe?He:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Kl(e,r);else{t=r;var o=ae;ae|=2;var s=vw();(Fe!==e||He!==t)&&(Tn=null,Cs=Ae()+500,no(e,t));do try{SE();break}catch(a){gw(e,a)}while(!0);Jh(),Vl.current=s,ae=o,Ie!==null?t=0:(Fe=null,He=0,t=Me)}if(t!==0){if(t===2&&(o=dd(e),o!==0&&(r=o,t=$d(e,o))),t===1)throw n=Vi,no(e,0),or(e,r),pt(e,Ae()),n;if(t===6)or(e,r);else{if(o=e.current.alternate,!(r&30)&&!bE(o)&&(t=Kl(e,r),t===2&&(s=dd(e),s!==0&&(r=s,t=$d(e,s))),t===1))throw n=Vi,no(e,0),or(e,r),pt(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:zr(e,ct,Tn);break;case 3:if(or(e,r),(r&130023424)===r&&(t=ff+500-Ae(),10<t)){if(Pl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ot(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=wd(zr.bind(null,e,ct,Tn),t);break}zr(e,ct,Tn);break;case 4:if(or(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Zt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wE(r/1960))-r,10<r){e.timeoutHandle=wd(zr.bind(null,e,ct,Tn),r);break}zr(e,ct,Tn);break;case 5:zr(e,ct,Tn);break;default:throw Error(D(329))}}}return pt(e,Ae()),e.callbackNode===n?mw.bind(null,e):null}function $d(e,t){var n=ki;return e.current.memoizedState.isDehydrated&&(no(e,t).flags|=256),e=Kl(e,t),e!==2&&(t=ct,ct=n,t!==null&&Fd(t)),e}function Fd(e){ct===null?ct=e:ct.push.apply(ct,e)}function bE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!nn(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t){for(t&=~hf,t&=~mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zt(t),r=1<<n;e[n]=-1,t&=~r}}function bm(e){if(ae&6)throw Error(D(327));rs();var t=Pl(e,0);if(!(t&1))return pt(e,Ae()),null;var n=Kl(e,t);if(e.tag!==0&&n===2){var r=dd(e);r!==0&&(t=r,n=$d(e,r))}if(n===1)throw n=Vi,no(e,0),or(e,t),pt(e,Ae()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zr(e,ct,Tn),pt(e,Ae()),null}function pf(e,t){var n=ae;ae|=1;try{return e(t)}finally{ae=n,ae===0&&(Cs=Ae()+500,du&&Or())}}function lo(e){mr!==null&&mr.tag===0&&!(ae&6)&&rs();var t=ae;ae|=1;var n=It.transition,r=ce;try{if(It.transition=null,ce=1,e)return e()}finally{ce=r,It.transition=n,ae=t,!(ae&6)&&Or()}}function mf(){gt=Yo.current,ve(Yo)}function no(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Y_(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(qh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nl();break;case 3:xs(),ve(ht),ve(et),rf();break;case 5:nf(r);break;case 4:xs();break;case 13:ve(_e);break;case 19:ve(_e);break;case 10:Zh(r.type._context);break;case 22:case 23:mf()}n=n.return}if(Fe=e,Ie=e=Er(e.current,null),He=gt=t,Me=0,Vi=null,hf=mu=ao=0,ct=ki=null,Vr!==null){for(t=0;t<Vr.length;t++)if(n=Vr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}Vr=null}return e}function gw(e,t){do{var n=Ie;try{if(Jh(),ul.current=Ul,Bl){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Bl=!1}if(io=0,ze=Le=xe=null,wi=!1,Fi=0,df.current=null,n===null||n.return===null){Me=1,Vi=t,Ie=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=He,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=am(i);if(f!==null){f.flags&=-257,lm(f,i,a,s,t),f.mode&1&&im(s,u,t),t=f,l=u;var b=t.updateQueue;if(b===null){var p=new Set;p.add(l),t.updateQueue=p}else b.add(l);break e}else{if(!(t&1)){im(s,u,t),gf();break e}l=Error(D(426))}}else if(we&&a.mode&1){var k=am(i);if(k!==null){!(k.flags&65536)&&(k.flags|=256),lm(k,i,a,s,t),Qh(Ts(l,a));break e}}s=l=Ts(l,a),Me!==4&&(Me=2),ki===null?ki=[s]:ki.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=Xy(s,l,t);em(s,v);break e;case 1:a=l;var y=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Sr===null||!Sr.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=ew(s,a,t);em(s,S);break e}}s=s.return}while(s!==null)}ww(n)}catch(_){t=_,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(!0)}function vw(){var e=Vl.current;return Vl.current=Ul,e===null?Ul:e}function gf(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||!(ao&268435455)&&!(mu&268435455)||or(Fe,He)}function Kl(e,t){var n=ae;ae|=2;var r=vw();(Fe!==e||He!==t)&&(Tn=null,no(e,t));do try{kE();break}catch(o){gw(e,o)}while(!0);if(Jh(),ae=n,Vl.current=r,Ie!==null)throw Error(D(261));return Fe=null,He=0,Me}function kE(){for(;Ie!==null;)yw(Ie)}function SE(){for(;Ie!==null&&!GS();)yw(Ie)}function yw(e){var t=kw(e.alternate,e,gt);e.memoizedProps=e.pendingProps,t===null?ww(e):Ie=t,df.current=null}function ww(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=mE(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ie=null;return}}else if(n=pE(n,t,gt),n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Me===0&&(Me=5)}function zr(e,t,n){var r=ce,o=It.transition;try{It.transition=null,ce=1,_E(e,t,n,r)}finally{It.transition=o,ce=r}return null}function _E(e,t,n,r){do rs();while(mr!==null);if(ae&6)throw Error(D(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(r_(e,s),e===Fe&&(Ie=Fe=null,He=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ba||(Ba=!0,Sw(Cl,function(){return rs(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=It.transition,It.transition=null;var i=ce;ce=1;var a=ae;ae|=4,df.current=null,vE(e,n),fw(n,e),V_(vd),Rl=!!gd,vd=gd=null,e.current=n,yE(n),qS(),ae=a,ce=i,It.transition=s}else e.current=n;if(Ba&&(Ba=!1,mr=e,Hl=o),s=e.pendingLanes,s===0&&(Sr=null),JS(n.stateNode),pt(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wl)throw Wl=!1,e=Md,Md=null,e;return Hl&1&&e.tag!==0&&rs(),s=e.pendingLanes,s&1?e===zd?Si++:(Si=0,zd=e):Si=0,Or(),null}function rs(){if(mr!==null){var e=Xv(Hl),t=It.transition,n=ce;try{if(It.transition=null,ce=16>e?16:e,mr===null)var r=!1;else{if(e=mr,mr=null,Hl=0,ae&6)throw Error(D(331));var o=ae;for(ae|=4,B=e.current;B!==null;){var s=B,i=s.child;if(B.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:bi(8,c,s)}var d=c.child;if(d!==null)d.return=c,B=d;else for(;B!==null;){c=B;var h=c.sibling,f=c.return;if(cw(c),c===u){B=null;break}if(h!==null){h.return=f,B=h;break}B=f}}}var b=s.alternate;if(b!==null){var p=b.child;if(p!==null){b.child=null;do{var k=p.sibling;p.sibling=null,p=k}while(p!==null)}}B=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,B=i;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:bi(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,B=v;break e}B=s.return}}var y=e.current;for(B=y;B!==null;){i=B;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,B=w;else e:for(i=y;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:pu(9,a)}}catch(_){Re(a,a.return,_)}if(a===i){B=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,B=S;break e}B=a.return}}if(ae=o,Or(),vn&&typeof vn.onPostCommitFiberRoot=="function")try{vn.onPostCommitFiberRoot(iu,e)}catch{}r=!0}return r}finally{ce=n,It.transition=t}}return!1}function km(e,t,n){t=Ts(n,t),t=Xy(e,t,1),e=kr(e,t,1),t=ot(),e!==null&&(aa(e,1,t),pt(e,t))}function Re(e,t,n){if(e.tag===3)km(e,e,n);else for(;t!==null;){if(t.tag===3){km(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Sr===null||!Sr.has(r))){e=Ts(n,e),e=ew(t,e,1),t=kr(t,e,1),e=ot(),t!==null&&(aa(t,1,e),pt(t,e));break}}t=t.return}}function EE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ot(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(He&n)===n&&(Me===4||Me===3&&(He&130023424)===He&&500>Ae()-ff?no(e,0):hf|=n),pt(e,t)}function bw(e,t){t===0&&(e.mode&1?(t=Oa,Oa<<=1,!(Oa&130023424)&&(Oa=4194304)):t=1);var n=ot();e=Dn(e,t),e!==null&&(aa(e,t,n),pt(e,n))}function xE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bw(e,n)}function TE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),bw(e,n)}var kw;kw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,fE(e,t,n);dt=!!(e.flags&131072)}else dt=!1,we&&t.flags&1048576&&xy(t,Ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dl(e,t),e=t.pendingProps;var o=Ss(t,et.current);ns(t,n),o=sf(null,t,r,e,o,n);var s=af();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(s=!0,Il(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ef(t),o.updater=fu,t.stateNode=o,o._reactInternals=t,Td(t,r,e,n),t=Rd(null,t,r,!0,s,n)):(t.tag=0,we&&s&&Gh(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=PE(r),e=Wt(r,e),o){case 0:t=Pd(null,t,r,e,n);break e;case 1:t=dm(null,t,r,e,n);break e;case 11:t=um(null,t,r,e,n);break e;case 14:t=cm(null,t,r,Wt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),Pd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),dm(e,t,r,o,n);case 3:e:{if(ow(t),e===null)throw Error(D(387));
vendor: 4,729 bytes, line 41
41r=t.pendingProps,s=t.memoizedState,o=s.element,Oy(e,t),$l(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Ts(Error(D(423)),t),t=hm(e,t,r,n,o);break e}else if(r!==o){o=Ts(Error(D(424)),t),t=hm(e,t,r,n,o);break e}else for(wt=br(t.stateNode.containerInfo.firstChild),bt=t,we=!0,Yt=null,n=Ry(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_s(),r===o){t=Ln(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return jy(t),e===null&&_d(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,yd(r,o)?i=null:s!==null&&yd(r,s)&&(t.flags|=32),rw(e,t),rt(e,t,i,n),t.child;case 6:return e===null&&_d(t),null;case 13:return sw(e,t,n);case 4:return tf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Es(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),um(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,fe(Ml,r._currentValue),r._currentValue=i,s!==null)if(nn(s.value,i)){if(s.children===o.children&&!ht.current){t=Ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=jn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ed(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(D(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ed(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ns(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Wt(r,t.pendingProps),o=Wt(r.type,o),cm(e,t,r,o,n);case 15:return tw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),dl(e,t),t.tag=1,ft(r)?(e=!0,Il(t)):e=!1,ns(t,n),Zy(t,r,o),Td(t,r,o,n),Rd(null,t,r,!0,e,n);case 19:return iw(e,t,n);case 22:return nw(e,t,n)}throw Error(D(156,t.tag))};function Sw(e,t){return Qv(e,t)}function CE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,r){return new CE(e,t,n,r)}function vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PE(e){if(typeof e=="function")return vf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dh)return 11;if(e===Lh)return 14}return 2}function Er(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pl(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")vf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fo:return ro(n.children,o,s,t);case Ih:i=8,o|=8;break;case Yc:return e=Nt(12,n,t,o|2),e.elementType=Yc,e.lanes=s,e;case Jc:return e=Nt(13,n,t,o),e.elementType=Jc,e.lanes=s,e;case Zc:return e=Nt(19,n,t,o),e.elementType=Zc,e.lanes=s,e;case jv:return gu(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Av:i=10;break e;case Ov:i=9;break e;case Dh:i=11;break e;case Lh:i=14;break e;case Xn:i=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Nt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function ro(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=jv,e.lanes=n,e.stateNode={isHidden:!1},e}function mc(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}
vendor: 8,105 bytes, line 41
41function gc(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yu(0),this.expirationTimes=Yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yf(e,t,n,r,o,s,i,a,l){return e=new RE(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Nt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ef(s),e}function AE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$o,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _w(e){if(!e)return Cr;e=e._reactInternals;e:{if(po(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(ft(n))return _y(e,n,t)}return t}function Ew(e,t,n,r,o,s,i,a,l){return e=yf(n,r,!0,e,o,s,i,a,l),e.context=_w(null),n=e.current,r=ot(),o=_r(n),s=jn(r,o),s.callback=t??null,kr(n,s,o),e.current.lanes=o,aa(e,o,r),pt(e,r),e}function vu(e,t,n,r){var o=t.current,s=ot(),i=_r(o);return n=_w(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kr(o,t,i),e!==null&&(Xt(e,o,i,s),ll(e,o,i)),i}function Gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wf(e,t){Sm(e,t),(e=e.alternate)&&Sm(e,t)}function OE(){return null}var xw=typeof reportError=="function"?reportError:function(e){console.error(e)};function bf(e){this._internalRoot=e}yu.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));vu(e,t,null,null)};yu.prototype.unmount=bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lo(function(){vu(null,e,null,null)}),t[In]=null}};function yu(e){this._internalRoot=e}yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ny();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rr.length&&t!==0&&t<rr[n].priority;n++);rr.splice(n,0,e),n===0&&oy(e)}};function kf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _m(){}function jE(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Gl(i);s.call(u)}}var i=Ew(t,r,e,0,null,!1,!1,"",_m);return e._reactRootContainer=i,e[In]=i.current,Di(e.nodeType===8?e.parentNode:e),lo(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Gl(l);a.call(u)}}var l=yf(e,0,!1,null,null,!1,!1,"",_m);return e._reactRootContainer=l,e[In]=l.current,Di(e.nodeType===8?e.parentNode:e),lo(function(){vu(t,l,n,r)}),l}function bu(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Gl(i);a.call(l)}}vu(t,i,e,o)}else i=jE(n,t,e,o,r);return Gl(i)}ey=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ui(t.pendingLanes);n!==0&&($h(t,n|1),pt(t,Ae()),!(ae&6)&&(Cs=Ae()+500,Or()))}break;case 13:lo(function(){var r=Dn(e,1);if(r!==null){var o=ot();Xt(r,e,1,o)}}),wf(e,1)}};Fh=function(e){if(e.tag===13){var t=Dn(e,134217728);if(t!==null){var n=ot();Xt(t,e,134217728,n)}wf(e,134217728)}};ty=function(e){if(e.tag===13){var t=_r(e),n=Dn(e,t);if(n!==null){var r=ot();Xt(n,e,t,r)}wf(e,t)}};ny=function(){return ce};ry=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};ld=function(e,t,n){switch(t){case"input":if(td(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=cu(r);if(!o)throw Error(D(90));Iv(r),td(r,o)}}}break;case"textarea":Lv(e,n);break;case"select":t=n.value,t!=null&&Zo(e,!!n.multiple,t,!1)}};Vv=pf;Wv=lo;var NE={usingClientEntryPoint:!1,Events:[ua,Wo,cu,Bv,Uv,pf]},ri={findFiberByHostInstance:Ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IE={bundleType:ri.bundleType,version:ri.version,rendererPackageName:ri.rendererPackageName,rendererConfig:ri.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$n.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Gv(e),e===null?null:e.stateNode},findFiberByHostInstance:ri.findFiberByHostInstance||OE,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 Ua=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ua.isDisabled&&Ua.supportsFiber)try{iu=Ua.inject(IE),vn=Ua}catch{}}Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NE;Et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kf(t))throw Error(D(200));return AE(e,t,null,n)};Et.createRoot=function(e,t){if(!kf(e))throw Error(D(299));var n=!1,r="",o=xw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=yf(e,1,!1,null,null,n,!1,r,o),e[In]=t.current,Di(e.nodeType===8?e.parentNode:e),new bf(t)};Et.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Gv(t),e=e===null?null:e.stateNode,e};Et.flushSync=function(e){return lo(e)};Et.hydrate=function(e,t,n){if(!wu(t))throw Error(D(200));return bu(null,e,t,!0,n)};Et.hydrateRoot=function(e,t,n){if(!kf(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=xw;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ew(t,null,e,1,n??null,o,!1,s,i),e[In]=t.current,Di(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new yu(t)};Et.render=function(e,t,n){if(!wu(t))throw Error(D(200));return bu(null,e,t,!1,n)};Et.unmountComponentAtNode=function(e){if(!wu(e))throw Error(D(40));return e._reactRootContainer?(lo(function(){bu(null,null,e,!1,function(){e._reactRootContainer=null,e[In]=null})}),!0):!1};Et.unstable_batchedUpdates=pf;Et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wu(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return bu(e,t,n,!1,r)};Et.version="18.3.1-next-f1338f8080-20240426";function Tw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tw)}catch(e){console.error(e)}}Tw(),Tv.exports=Et;var da=Tv.exports;const Cw=fv(da);var Pw,Em=da;Pw=Em.createRoot,Em.hydrateRoot;const DE="modulepreload",LE=function(e){return"/"+e},xm={}
41,Y=function(t,n,r){let o=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"));o=Promise.allSettled(n.map(l=>{if(l=LE(l),l in xm)return;xm[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":DE,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},Tm="chunk-reload-at";function J(e){const t=async()=>{const n=await e();if(!n||typeof n.default>"u")throw new Error("Chunk resolved without default export");return n};return m.lazy(async()=>{try{return await t()}catch(n){try{return await new Promise(r=>setTimeout(r,400)),await t()}catch{const r=Number(sessionStorage.getItem(Tm)||0);if(Date.now()-r>15e3)return sessionStorage.setItem(Tm,String(Date.now())),window.location.reload(),await new Promise(()=>{});throw n}}})}var gn=function(){return gn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},gn.apply(this,arguments)};function Ls(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ME(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function zE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}const $E=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Sf extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class FE extends Sf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Cm extends Sf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Pm extends Sf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Bd;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Bd||(Bd={}));class BE{constructor(t,{headers:n={},customFetch:r,region:o=Bd.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=$E(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return ME(this,arguments,void 0,function*(n,r={}){var o;let s,i;try{const{headers:a,method:l,body:u,signal:c,timeout:d}=r;let h={},{region:f}=r;f||(f=this.region);const b=new URL(`${this.url}/${n}`);f&&f!=="any"&&(h["x-region"]=f,b.searchParams.set("forceFunctionRegion",f));let p;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",p=u):typeof u=="string"?(h["Content-Type"]="text/plain",p=u):typeof FormData<"u"&&u instanceof FormData?p=u:(h["Content-Type"]="application/json",p=JSON.stringify(u)):p=u;let k=c;d&&(i=new AbortController,s=setTimeout(()=>i.abort(),d),c?(k=i.signal,c.addEventListener("abort",()=>i.abort())):k=i.signal);const v=yield this.fetch(b.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:p,signal:k}).catch(_=>{throw new FE(_)}),y=v.headers.get("x-relay-error");
41if(y&&y==="true")throw new Cm(v);if(!v.ok)throw new Pm(v);let w=((o=v.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),S;return w==="application/json"?S=yield v.json():w==="application/octet-stream"||w==="application/pdf"?S=yield v.blob():w==="text/event-stream"?S=v:w==="multipart/form-data"?S=yield v.formData():S=yield v.text(),{data:S,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof Pm||a instanceof Cm?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var UE=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},VE=class{constructor(e){var t,n;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=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;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 o=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let i=null,a=null,l=null,u=s.status,c=s.statusText;if(s.ok){var d,h;if(n.method!=="HEAD"){var f;const v=await s.text();v===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((f=n.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=v:a=JSON.parse(v))}const p=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),k=(h=s.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");p&&k&&k.length>1&&(l=parseInt(k[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var b;const p=await s.text();try{i=JSON.parse(p),Array.isArray(i)&&s.status===404&&(a=[],i=null,u=200,c="OK")}catch{s.status===404&&p===""?(u=204,c="No Content"):i={message:p}}if(i&&n.isMaybeSingle&&(!(i==null||(b=i.details)===null||b===void 0)&&b.includes("0 rows"))&&(i=null,u=200,c="OK"),i&&n.shouldThrowOnError)throw new UE(i)}return{error:i,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(o=o.catch(s=>{var i;let a="";const l=s==null?void 0:s.cause;if(l){var u,c,d,h;const b=(u=l==null?void 0:l.message)!==null&&u!==void 0?u:"",p=(c=l==null?void 0:l.code)!==null&&c!==void 0?c:"";a=`${(d=s==null?void 0:s.name)!==null&&d!==void 0?d:"FetchError"}: ${s==null?void 0:s.message}`,a+=` 42 43Caused by: ${(h=l==null?void 0:l.name)!==null&&h!==void 0?h:"Error"}: ${b}`,p&&(a+=` (${p})`),l!=null&&l.stack&&(a+=` 44${l.stack}`)}else{var f;a=(f=s==null?void 0:s.stack)!==null&&f!==void 0?f:""}return{error:{message:`${(i=s==null?void 0:s.name)!==null&&i!==void 0?i:"FetchError"}: ${s==null?void 0:s.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),o.then(e,t)}returns(){return this}overrideTypes(){return this}},WE=class extends VE{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:o=r}={}){const s=o?`${o}.order`:"order",i=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const o=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(o,`${e}`),this.url.searchParams.set(s,`${t-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}
44explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:o=!1,format:s="text"}={}){var i;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,o?"wal":null].filter(Boolean).join("|"),l=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${a};`),s==="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}};const Rm=new RegExp("[,()]");var Io=class extends WE{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Rm.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Rm.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let o="";r==="plain"?o="pl":r==="phrase"?o="ph":r==="websearch"&&(o="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${o}fts${s}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},HE=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}select(e,t){const{head:n=!1,count:r}=t??{},o=n?"HEAD":"GET";let s=!1;const i=(e??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",i),r&&this.headers.append("Prefer",`count=${r}`),new Io({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const o="POST";if(t&&this.headers.append("Prefer",`count=${t}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const s=e.reduce((i,a)=>i.concat(Object.keys(a)),[]);if(s.length>0){const i=[...new Set(s)].map(a=>`"${a}"`);this.url.searchParams.set("columns",i.join(","))}}return new Io({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:o=!0}={}){var s;const i="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&this.url.searchParams.set("on_conflict",t),r&&this.headers.append("Prefer",`count=${r}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
440){const l=[...new Set(a)].map(u=>`"${u}"`);this.url.searchParams.set("columns",l.join(","))}}return new Io({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}update(e,{count:t}={}){var n;const r="PATCH";return t&&this.headers.append("Prefer",`count=${t}`),new Io({method:r,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new Io({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},KE=class Rw{constructor(t,{headers:n={},schema:r,fetch:o}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=o}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new HE(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Rw(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:o=!1,count:s}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;r||o?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{l.searchParams.append(d,h)})):(a="POST",u=n);const c=new Headers(this.headers);return s&&c.set("Prefer",`count=${s}`),new Io({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};class GE{constructor(){}static detectEnvironment(){var t;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"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.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,o=parseInt(r.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 45import ws from "ws" 46new 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 t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 47 48Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const qE="2.89.0",QE=`realtime-js/${qE}`,Aw="1.0.0",YE="2.0.0",Am=Aw,Ud=1e4,JE=1e3,ZE=100;var tr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(tr||(tr={}));var De;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(De||(De={}));var Qt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Qt||(Qt={}));var Vd;(function(e){e.websocket="websocket"})(Vd||(Vd={}));var Fr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Fr||(Fr={}));class XE{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const o=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(t){var n,r;const o=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},i=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,n,r){var o,s;const i=t.topic,a=(o=t.ref)!==null&&o!==void 0?o:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+i.length+u.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let b=new DataView(f),p=0;b.setUint8(p++,this.KINDS.userBroadcastPush),b.setUint8(p++,l.length),b.setUint8(p++,a.length),b.setUint8(p++,i.length),b.setUint8(p++,u.length),b.setUint8(p++,d.length),b.setUint8(p++,n),Array.from(l,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(a,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(i,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(u,v=>b.setUint8(p++,v.charCodeAt(0))),Array.from(d,v=>b.setUint8(p++,v.charCodeAt(0)));var k=new Uint8Array(f.byteLength+r.byteLength);return k.set(new Uint8Array(f),0),k.set(new Uint8Array(r),f.byteLength),k.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[o,s,i,a,l]=r;
48return n({join_ref:o,ref:s,topic:i,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),o=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,o)}}_decodeUserBroadcast(t,n,r){const o=n.getUint8(1),s=n.getUint8(2),i=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+o));l=l+o;const c=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+i));l=l+i;const h=t.slice(l,t.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,b={type:this.BROADCAST_EVENT,event:c,payload:f};return i>0&&(b.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class Ow{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,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 he;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(he||(he={}));const Om=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,i)=>(s[i]=ex(i,e,t,o),s),{}):{}},ex=(e,t,n,r)=>{const o=t.find(a=>a.name===e),s=o==null?void 0:o.type,i=n[e];return s&&!r.includes(s)?jw(s,i):Wd(i)},jw=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return ox(t,n)}switch(e){case he.bool:return tx(t);case he.float4:case he.float8:case he.int2:case he.int4:case he.int8:case he.numeric:case he.oid:return nx(t);case he.json:case he.jsonb:return rx(t);case he.timestamp:return sx(t);case he.abstime:case he.date:case he.daterange:case he.int4range:case he.int8range:case he.money:case he.reltime:case he.text:case he.time:case he.timestamptz:case he.timetz:case he.tsrange:case he.tstzrange:return Wd(t);default:return Wd(t)}},Wd=e=>e,tx=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},nx=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},rx=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},ox=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const i=e.slice(1,n);try{s=JSON.parse("["+i+"]")}catch{s=i?i.split(","):[]}return s.map(a=>jw(t,a))}return e},sx=e=>typeof e=="string"?e.replace(" ","T"):e,Nw=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class vc{constructor(t,n,r={},o=Ud){this.channel=t,this.event=n,this.payload=r,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,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(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHo
48oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,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:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var jm;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(jm||(jm={}));class _i{constructor(t,n){this.channel=t,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,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=_i.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=_i.syncDiff(this.state,l,s,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=_i.syncDiff(this.state,o,s,i),a())}),this.onJoin((o,s,i)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:s,newPresences:i})}),this.onLeave((o,s,i)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:s,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,o){const s=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(s,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const d=s[u];if(d){const h=c.map(k=>k.presence_ref),f=d.map(k=>k.presence_ref),b=c.filter(k=>f.indexOf(k.presence_ref)<0),p=d.filter(k=>h.indexOf(k.presence_ref)<0);b.length>0&&(a[u]=b),p.length>0&&(l[u]=p)}else a[u]=c}),this.syncDiff(s,{joins:a,leaves:l},r,o)}static syncDiff(t,n,r,o){const{joins:s,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),o||(o=()=>{}),this.map(s,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(f=>f.presence_ref),h=c.filter(f=>d.indexOf(f.presence_ref)<0);t[a].unshift(...h)}r(a,c,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,o(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const o=t[r];return"metas"in o?n[r]=o.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=o,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Nm;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Nm||(Nm={}));var Ei;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ei||(Ei={}));var Cn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Cn||(Cn={}));class Jo{constructor(t,n={config:{}},r){var o,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=De.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1}
48,n.config),this.timeout=this.socket.timeout,this.joinPush=new vc(this,Qt.join,this.params,this.timeout),this.rejoinTimer=new Ow(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=De.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=De.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=De.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=De.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=De.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Qt.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new _i(this),this.broadcastEndpointURL=Nw(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,o,s;if(this.socket.isConnected()||this.socket.connect(),this.state==De.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(o=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&o!==void 0?o:[],c=!!this.bindings[Ei.PRESENCE]&&this.bindings[Ei.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,d={},h={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Cn.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Cn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(Cn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,k=(b=p==null?void 0:p.length)!==null&&b!==void 0?b:0,v=[];for(let y=0;y<k;y++){const w=p[y],{filter:{event:S,schema:_,table:E,filter:x}}=w,P=f&&f[y];if(P&&P.event===S&&Jo.isFilterValueEqual(P.schema,_)&&Jo.isFilterValueEqual(P.table,E)&&Jo.isFilterValueEqual(P.filter,x))v.push(Object.assign(Object.assign({},w),{id:P.id}));else{this.unsubscribe(),this.state=De.errored,t==null||t(Cn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Cn.SUBSCRIBED);return}}).receive("error",f=>{this.state=De.errored,t==null||t(Cn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Cn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===De.joined&&t===Ei.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var o;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(o=r.timeout)!==null&&o!==void 0?o:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
48try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,o;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:i}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((o=u.body)===null||o===void 0?void 0:o.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var i,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.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)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=De.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Qt.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(o=>{r=new vc(this,Qt.leave,{},t),r.receive("ok",()=>{n(),o("ok")}).receive("timeout",()=>{n(),o("timed out")}).receive("error",()=>{o("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=De.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const o=new AbortController,s=setTimeout(()=>o.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(s),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new vc(this,t,n,r);return this._canPush()?o.send():this._addToPushBuffer(o),o}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>ZE){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var o,s;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Qt;if(r&&[a,l,u,c].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)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(f=>{var b,p,k;return((b=f.filter)===null||b===void 0?void 0:b.event)==="*"||((k=(p=f.filter)===null||p===void 0?void 0:p.event)===null||k===void 0?void 0:k.toLocaleLowerCase())===i}).map(f=>f.callback(h,r)):(s=this.bindings[i])===null||s===void 0||s.filter(f=>{var b,p,k,v,y,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const S=f.id,_=(b=f.filter)===null||b===void 0?void 0:b.event;return S&&((p=n.ids)===null||p===void 0?void 0:p.includes(S))&&(_==="*"||(_==null?void 0:_.toLocaleLowerCase())===((k=n.data)===null||k===void 0?void 0:k.type.toLocaleLowerCase()))}else{const S=(y=(v=f==null?void 0:f.filter)===null||v===void 0?void 0:v.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return S==="*"||S===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof h=="object"&&"ids"in h){const b=h.data,{schema:p,table:k,commit_timestamp:v,type:y,errors:w}=b;h=Object.assign(Object.assign({},{schema:p,table:k,commit_timestamp:v,eventType:y,new:{},old:{},errors:w}),this._getPayloadRecords(b))}f.callback(h,r)})}_isClosed(){return this.state===De.closed}_isJoined(){return this.state===De.joined}_isJoining(){return this.state===De.joining}_isLeaving(){return this.state===De.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const o=t.toLocaleLowerCase(),s={type:o,filter:n,callback:r};return this.bindings[o]?this.bindings[o].push(s):this.bindings[o]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(o=>{var s;return!(((s=o.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Jo.isEqual(o.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Qt.close,{},t)}_onError(t){this._on(Qt.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=De.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Om(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Om(t.columns,t.old_record)),n}}const yc=()=>{},Va={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},ix=[1e3,2e3,5e3,1e4],ax=1e4,lx=` 49 addEventListener("message", (e) => { 50 if (e.data.event === "start") { 51 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 52 } 53 });`;class ux{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Ud,this.transport=null,this.heartbeatIntervalMs=Va.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=yc,this.ref=0,this.reconnectTimer=null,this.vsn=Am,this.logger=yc,this.conn=null,this.sendBuffer=[],this.serializer
53=new XE,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=o=>o?(...s)=>o(...s):(...s)=>fetch(...s),!(!((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=`${t}/${Vd.websocket}`,this.httpEndpoint=Nw(t),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.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=GE.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 54 55To use Realtime in Node.js, you need to provide a WebSocket implementation: 56 57Option 1: Use Node.js 22+ which has native WebSocket support 58Option 2: Install and provide the "ws" package: 59 60 npm install ws 61 62 import ws from "ws" 63 const client = new RealtimeClient(url, { 64 ...options, 65 transport: ws 66 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,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")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case tr.connecting:return Fr.Connecting;case tr.open:return Fr.Open;case tr.closing:return Fr.Closing;default:return Fr.Closed}}isConnected(){return this.connectionState()===Fr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,o=this.getChannels().find(s=>s.topic===r);if(o)return o;{const s=new Jo(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:o,ref:s}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,o),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;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,(t=this.conn)===null||t===void 0||t.close(JE,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Va.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(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
66{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:o,payload:s,ref:i}=n,a=i?`(${i})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${o} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(o,s,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="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=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===tr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===tr.open||this.conn.readyState===tr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),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 t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Qt.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",o=new URLSearchParams(n);return`${t}${r}${o}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([lx],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(o=>{const s={access_token:n,version:QE};n&&o.updateJoinPayload(s),o.joinedOnce&&o._isJoined()&&o._push(Qt.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new Ow(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Va.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,o,s,i,a,l,u,c,d,h,f;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
66imeout)!==null&&r!==void 0?r:Ud,this.heartbeatIntervalMs=(o=t==null?void 0:t.heartbeatIntervalMs)!==null&&o!==void 0?o:Va.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:yc,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Am,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:b=>ix[b-1]||ax,this.vsn){case Aw:this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(b,p)=>p(JSON.stringify(b)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(b,p)=>p(JSON.parse(b));break;case YE:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Wi=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function cx(e,t,n){const r=new URL(t,e);if(n)for(const[o,s]of Object.entries(n))s!==void 0&&r.searchParams.set(o,s);return r.toString()}async function dx(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function hx(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:o,body:s,headers:i}){const a=cx(e.baseUrl,r,o),l=await dx(e.auth),u=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...i},body:s?JSON.stringify(s):void 0}),c=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),h=d&&c?JSON.parse(c):c;if(!u.ok){const f=d?h:void 0,b=f==null?void 0:f.error;throw new Wi((b==null?void 0:b.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:f})}return{status:u.status,headers:u.headers,data:h}}}}function Wa(e){return e.join("�")}var fx=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Wa(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Wa(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Wa(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Wa(e.namespace)}`}),!0}catch(t){if(t instanceof Wi&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Wi&&n.status===409)return;throw n}}};function Eo(e){return e.join("�")}var px=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Eo(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Eo(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Eo(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Eo(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Eo(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Eo(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Wi&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Wi&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},mx=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=hx({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new fx(this.client,t),this.tableOps=new px(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
66async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},ku=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function Se(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var gx=class extends ku{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Hd=class extends ku{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const _f=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),vx=()=>Response,Kd=e=>{if(Array.isArray(e))return e.map(n=>Kd(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[o]=Kd(r)}),t},yx=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wx=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Hi(e){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi(e)}function bx(e,t){if(Hi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kx(e){var t=bx(e,"string");return Hi(t)=="symbol"?t:t+""}function Sx(e,t,n){return(t=kx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(n),!0).forEach(function(r){Sx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Im(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const wc=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},_x=async(e,t,n)=>{e instanceof await vx()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const o=e.status||500,s=(r==null?void 0:r.statusCode)||o+"";t(new gx(wc(r),o,s))}).catch(r=>{t(new Hd(wc(r),r))}):t(new Hd(wc(e),e))},Ex=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?o:(yx(r)?(o.headers=q({"Content-Type":"application/json"},t==null?void 0:t.headers),o.body=JSON.stringify(r)):o.body=r,t!=null&&t.duplex&&(o.duplex=t.duplex),q(q({},o),n))};async function ha(e,t,n,r,o,s){return new Promise((i,a)=>{e(n,Ex(t,r,o,s)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>_x(l,a,r))})}async function Ki(e,t,n,r){return ha(e,"GET",t,n,r)}async function Ht(e,t,n,r,o){return ha(e,"POST",t,r,o,n)}async function Gd(e,t,n,r,o){return ha(e,"PUT",t,r,o,n)}async function xx(e,t,n,r){return ha(e,"HEAD",t,q(q({},n),{},{noResolveJson:!0}),r)}async function Ef(e,t,n,r,o){return ha(e,"DELETE",t,r,o,n)}var Tx=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Se(t))return{data:null,error:t};throw t}}};let Iw;Iw=Symbol.toStringTag;var Cx=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Iw]="BlobDownloadBuilder",this.promise=null}asStream(){return new Tx(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Se(t))return{data:null,error:t};throw t}}};const Px={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Dm={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Rx=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=_f(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var o=this;try{let s;const i=q(q({},Dm),r);let a=q(q({},o.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",o.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",i.cacheControl),l&&!s.has("metadata")&&s.append("metadata",o.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=o.toBase64(o.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!i.duplex&&(i.duplex="half")),r!=null&&r.headers&&(a=q(q({},a),r.headers));const u=o._removeEmptyFolders(t),c=o._getFinalPath(u),d=await(e=="PUT"?Gd:Ht)(o.fetch,`${o.url}/object/${c}`,s,q({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(s){if(o.shouldThrowOnError)throw s;if(Se(s))return{data:null,error:s};throw s}}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var o=this;const s=o._removeEmptyFolders(e),i=o._getFinalPath(s),a=new URL(o.url+`/object/upload/sign/${i}`);a.searchParams.set("token",t);try{let l;const u=q({upsert:Dm.upsert},r),c=q(q({},o.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{data:{path:s,fullPath:(await Gd(o.fetch,a.toString(),l,{headers:c})).Key},error:null}}catch(l){if(o.shouldThrowOnError)throw l;if(Se(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const o=q({},n.headers);t!=null&&t.upsert&&(o["x-upsert"]="true");const s=await Ht(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:o}),i=new URL(n.url+s.url),a=i.searchParams.get("token");if(!a)throw new ku("No token returned by API");return{data:{signedUrl:i.toString(),path:e,token:a},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;try{return{data:await Ht(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
66stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(o){if(r.shouldThrowOnError)throw o;if(Se(o))return{data:null,error:o};throw o}}async copy(e,t,n){var r=this;try{return{data:{path:(await Ht(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(o){if(r.shouldThrowOnError)throw o;if(Se(o))return{data:null,error:o};throw o}}async createSignedUrl(e,t,n){var r=this;try{let o=r._getFinalPath(e),s=await Ht(r.fetch,`${r.url}/object/sign/${o}`,q({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${r.url}${s.signedURL}${i}`)},{data:s,error:null}}catch(o){if(r.shouldThrowOnError)throw o;if(Se(o))return{data:null,error:o};throw o}}async createSignedUrls(e,t,n){var r=this;try{const o=await Ht(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:o.map(i=>q(q({},i),{},{signedUrl:i.signedURL?encodeURI(`${r.url}${i.signedURL}${s}`):null})),error:null}}catch(o){if(r.shouldThrowOnError)throw o;if(Se(o))return{data:null,error:o};throw o}}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),o=r?`?${r}`:"",s=this._getFinalPath(e),i=()=>Ki(this.fetch,`${this.url}/${n}/${s}${o}`,{headers:this.headers,noResolveJson:!0});return new Cx(i,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:Kd(await Ki(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await xx(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Se(r)&&r instanceof Hd){const o=r.originalError;if([400,404].includes(o==null?void 0:o.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],o=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";o!==""&&r.push(o);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});i!==""&&r.push(i);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${a}`)}}}async remove(e){var t=this;try{return{data:await Ef(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}async list(e,t,n){var r=this;try{const o=q(q(q({},Px),t),{},{prefix:e||""});return{data:await Ht(r.fetch,`${r.url}/object/list/${r.bucketId}`,o,{headers:r.headers},n),error:null}}catch(o){if(r.shouldThrowOnError)throw o;if(Se(o))return{data:null,error:o};throw o}}async listV2(e,t){var n=this;try{const r=q({},e);return{data:await Ht(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Se(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 t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const Dw="2.89.0",Lw={"X-Client-Info":`storage-js/${Dw}`};var Ax=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1;const o=new URL(e);r!=null&&r.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.replace(/\/$/,""),this.headers=q(q({},Lw),t),this.fetch=_f(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await Ki(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await Ki(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}async createBucket(e,t={public:!1}){var n=this;try{return{data:await Ht(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}}async updateBucket(e,t){var n=this;try{return{data:await Gd(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}}async emptyBucket(e){var t=this;try{return{data:await Ht(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await Ef(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Ox=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},Lw),t),this.fetch=_f(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await Ht(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}async listBuckets(e){var t=this;try{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),o=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return{data:await Ki(t.fetch,o,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await Ef(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}}from(e){var t=this;if(!wx(e))throw new ku("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new mx({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
66),r=this.shouldThrowOnError;return new Proxy(n,{get(o,s){const i=o[s];return typeof i!="function"?i:async(...a)=>{try{return{data:await i.apply(o,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}};const xf={"X-Client-Info":`storage-js/${Dw}`,"Content-Type":"application/json"};var Mw=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function vt(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var bc=class extends Mw{constructor(e,t,n){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},jx=class extends Mw{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const Tf=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Nx=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lm=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Ix=async(e,t,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const r=e.status||500,o=e;if(typeof o.json=="function")o.json().then(s=>{const i=(s==null?void 0:s.statusCode)||(s==null?void 0:s.code)||r+"";t(new bc(Lm(s),r,i))}).catch(()=>{const s=r+"";t(new bc(o.statusText||`HTTP ${r} error`,r,s))});else{const s=r+"";t(new bc(o.statusText||`HTTP ${r} error`,r,s))}}else t(new jx(Lm(e),e))},Dx=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(Nx(r)?(o.headers=q({"Content-Type":"application/json"},t==null?void 0:t.headers),o.body=JSON.stringify(r)):o.body=r,q(q({},o),n)):o};async function Lx(e,t,n,r,o,s){return new Promise((i,a)=>{e(n,Dx(t,r,o,s)).then(l=>{if(!l.ok)throw l;if(r!=null&&r.noResolveJson)return l;const u=l.headers.get("content-type");return!u||!u.includes("application/json")?{}:l.json()}).then(l=>i(l)).catch(l=>Ix(l,a,r))})}async function yt(e,t,n,r,o){return Lx(e,"POST",t,r,o,n)}var Mx=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},xf),t),this.fetch=Tf(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await yt(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(vt(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await yt(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(vt(r))return{data:null,error:r};throw r}}},zx=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},xf),t),this.fetch=Tf(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await yt(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
66if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await yt(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await yt(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}},$x=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=q(q({},xf),t),this.fetch=Tf(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await yt(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await yt(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(vt(n))return{data:null,error:n};throw n}}},Fx=class extends $x{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Bx(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},Bx=class extends Mx{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Ux(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Ux=class extends zx{constructor(e,t,n,r,o){super(e,t,o),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,q(q({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Vx=class extends Ax{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new Rx(this.url,this.headers,e,this.fetch)}get vectors(){return new Fx(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Ox(this.url+"/iceberg",this.headers,this.fetch)}};const zw="2.89.0",Do=30*1e3,qd=3,kc=qd*Do,Wx="http://localhost:9999",Hx="supabase.auth.token",Kx={"X-Client-Info":`gotrue-js/${zw}`},Qd="X-Supabase-Api-Version",$w={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Gx=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,qx=10*60*1e3;
66class Gi extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function W(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Qx extends Gi{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Yx(e){return W(e)&&e.name==="AuthApiError"}class Br extends Gi{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Fn extends Gi{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class mt extends Fn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Jx(e){return W(e)&&e.name==="AuthSessionMissingError"}class xo extends Fn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ha extends Fn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Ka extends Fn{constructor(t,n=null){super(t,"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 Zx(e){return W(e)&&e.name==="AuthImplicitGrantRedirectError"}class Mm extends Fn{constructor(t,n=null){super(t,"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 Xx extends Fn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Yd extends Fn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Sc(e){return W(e)&&e.name==="AuthRetryableFetchError"}class zm extends Fn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Jd extends Fn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),$m=` 67\r=`.split(""),eT=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<$m.length;t+=1)e[$m[t].charCodeAt(0)]=-2;for(let t=0;t<ql.length;t+=1)e[ql[t].charCodeAt(0)]=t;return e})();function Fm(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(ql[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(ql[r]),t.queuedBits-=6}}function Fw(e,t,n){const r=eT[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Bm(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{rT(i,r,n)};for(let i=0;i<e.length;i+=1)Fw(e.charCodeAt(i),o,s);return t.join("")}function tT(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function nT(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const o=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}tT(r,t)}}function rT(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function os(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)Fw(e.charCodeAt(o),n,r);return new Uint8Array(t)}function oT(e){const t=[];return nT(e,n=>t.push(n)),new Uint8Array(t)}function Hr(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>Fm(o,n,r)),Fm(null,n,r),t.join("")}function sT(e){return Math.round(Date.now()/1e3)+e}function iT(){return Symbol("auth-callback")}const Ue=()=>typeof window<"u"&&typeof document<"u",Dr={tested:!1,writable:!1},Bw=()=>
67{if(!Ue())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Dr.tested)return Dr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Dr.tested=!0,Dr.writable=!0}catch{Dr.tested=!0,Dr.writable=!1}return Dr.writable};function aT(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((o,s)=>{t[s]=o})}catch{}return n.searchParams.forEach((r,o)=>{t[o]=r}),t}const Uw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),lT=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Lo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Lr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Be=async(e,t)=>{await e.removeItem(t)};class Su{constructor(){this.promise=new Su.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Su.promiseConstructor=Promise;function _c(e){const t=e.split(".");if(t.length!==3)throw new Jd("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Gx.test(t[r]))throw new Jd("JWT not in base64url format");return{header:JSON.parse(Bm(t[0])),payload:JSON.parse(Bm(t[1])),signature:os(t[2]),raw:{header:t[0],payload:t[1]}}}async function uT(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function cT(e,t){return new Promise((r,o)=>{(async()=>{for(let s=0;s<1/0;s++)try{const i=await e(s);if(!t(s,null,i)){r(i);return}}catch(i){if(!t(s,i)){o(i);return}}})()})}function dT(e){return("0"+e.toString(16)).substr(-2)}function hT(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let o="";for(let s=0;s<56;s++)o+=n.charAt(Math.floor(Math.random()*r));return o}return crypto.getRandomValues(t),Array.from(t,dT).join("")}async function fT(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(s=>String.fromCharCode(s)).join("")}async function pT(e){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."),e;const n=await fT(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function To(e,t,n=!1){const r=hT();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await Lo(e,`${t}-code-verifier`,o);const s=await pT(r);return[s,r===s?"plain":"s256"]}const mT=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function gT(e){const t=e.headers.get(Qd);if(!t||!t.match(mT))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function vT(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function yT(e){switch(e){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 wT=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Co(e){if(!wT.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ec(){const e={};return new Proxy(e,{get:(t,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:(t,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:(t,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 bT(e,t){return new Proxy(e,{get:(n,r,o)=>{if(r==="__isInsecureUserWarningProxy")return!0;
67if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,o)}return!t.value&&typeof r=="string"&&(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."),t.value=!0),Reflect.get(n,r,o)}})}function Um(e){return JSON.parse(JSON.stringify(e))}const $r=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),kT=[502,503,504];async function Vm(e){var t;if(!lT(e))throw new Yd($r(e),0);if(kT.includes(e.status))throw new Yd($r(e),e.status);let n;try{n=await e.json()}catch(s){throw new Br($r(s),s)}let r;const o=gT(e);if(o&&o.getTime()>=$w["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 zm($r(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new mt}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((s,i)=>s&&typeof i=="string",!0))throw new zm($r(n),e.status,n.weak_password.reasons);throw new Qx($r(n),e.status||500,r)}const ST=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),o.body=JSON.stringify(r),Object.assign(Object.assign({},o),n))};async function G(e,t,n,r){var o;const s=Object.assign({},r==null?void 0:r.headers);s[Qd]||(s[Qd]=$w["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const i=(o=r==null?void 0:r.query)!==null&&o!==void 0?o:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await _T(e,t,n+a,{headers:s,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 _T(e,t,n,r,o,s){const i=ST(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new Yd($r(l),0)}if(a.ok||await Vm(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Vm(l)}}function Vt(e){var t;let n=null;TT(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=sT(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Wm(e){const t=Vt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function sr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function ET(e){return{data:e,error:null}}function xT(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=Ls(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function Hm(e){return e}function TT(e){return e.access_token&&e.refresh_token&&e.expires_in}const xc=["global","local","others"];class CT{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Uw(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=xc[0]){if(xc.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${xc.join(", ")}`);try{return await G(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await G(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:sr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Ls(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r==null?void 0:r.newEmail,delete o.newEmail),await G(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:xT,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(W(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await G(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:sr})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,o,s,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await G(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:Hm});if(c.error)throw c.error;const d=await c.json(),h=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(b=>{const p=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),k=JSON.parse(b.split(";")[1].split("=")[1]);u[`${k}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(W(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Co(t);try{return await G(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:sr})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Co(t);try{return await G(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:sr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Co(t);
67try{return await G(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:sr})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Co(t.userId);try{const{data:n,error:r}=await G(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:r}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Co(t.userId),Co(t.id);try{return{data:await G(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,o,s,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await G(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:Hm});if(c.error)throw c.error;const d=await c.json(),h=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(b=>{const p=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),k=JSON.parse(b.split(";")[1].split("=")[1]);u[`${k}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(W(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await G(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await G(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await G(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await G(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await G(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}}function Km(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Po={debug:!!(globalThis&&Bw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Vw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class PT extends Vw{}async function RT(e,t,n){Po.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Po.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async o=>{if(o){Po.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{Po.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw Po.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new PT(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Po.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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()}}))}function AT(){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)}}function Ww(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
67" is invalid.`);return e.toLowerCase()}function OT(e){return parseInt(e,16)}function jT(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function NT(e){var t;const{chainId:n,domain:r,expirationTime:o,issuedAt:s=new Date,nonce:i,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:h}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 68`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=Ww(e.address),b=c?`${c}://${r}`:r,p=e.statement?`${e.statement} 69`:"",k=`${b} wants you to sign in with your Ethereum account: 70${f} 71 72${p}`;let v=`URI: ${d} 73Version: ${h} 74Chain ID: ${n}${i?` 75Nonce: ${i}`:""} 76Issued At: ${s.toISOString()}`;if(o&&(v+=` 77Expiration Time: ${o.toISOString()}`),a&&(v+=` 78Not Before: ${a.toISOString()}`),l&&(v+=` 79Request ID: ${l}`),u){let y=` 80Resources:`;for(const w of u){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);y+=` 81- ${w}`}v+=y}return`${k} 82${v}`}class Ne extends Error{constructor({message:t,code:n,cause:r,name:o}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=o??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class Ql extends Ne{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function IT({error:e,options:t}){var n,r,o;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ne({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Ne({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Ne({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((o=s.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new Ne({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Ne({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ne({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Ne({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ne({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;if(Hw(i)){if(s.rp.id!==i)return new Ne({message:`The RP ID "${s.rp.id}
82" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ne({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Ne({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Ne({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ne({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function DT({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ne({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ne({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(Hw(r)){if(n.rpId!==r)return new Ne({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ne({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ne({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ne({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class LT{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const MT=new LT;function zT(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,o=Ls(e,["challenge","user","excludeCredentials"]),s=os(t).buffer,i=Object.assign(Object.assign({},n),{id:os(n.id).buffer}),a=Object.assign(Object.assign({},o),{challenge:s,user:i});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:os(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function $T(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Ls(e,["challenge","allowCredentials"]),o=os(t).buffer,s=Object.assign(Object.assign({},r),{challenge:o});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let i=0;i<n.length;i++){const a=n[i];s.allowCredentials[i]=Object.assign(Object.assign({},a),{id:os(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function FT(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Hr(new Uint8Array(e.response.attestationObject)),clientDataJSON:Hr(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function BT(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),o=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Hr(new Uint8Array(o.authenticatorData)),clientDataJSON:Hr(new Uint8Array(o.clientDataJSON)),signature:Hr(new Uint8Array(o.signature)),userHandle:o.userHandle?Hr(new
82Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Hw(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Gm(){var e,t;return!!(Ue()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function UT(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ql("Browser returned unexpected credential type",t)}:{data:null,error:new Ql("Empty credential response",t)}}catch(t){return{data:null,error:IT({error:t,options:e})}}}async function VT(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ql("Browser returned unexpected credential type",t)}:{data:null,error:new Ql("Empty credential response",t)}}catch(t){return{data:null,error:DT({error:t,options:e})}}}const WT={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},HT={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Yl(...e){const t=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),n=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),r={};for(const o of e)if(o)for(const s in o){const i=o[s];if(i!==void 0)if(Array.isArray(i))r[s]=i;else if(n(i))r[s]=i;else if(t(i)){const a=r[s];t(a)?r[s]=Yl(a,i):r[s]=Yl(i)}else r[s]=i}return r}function KT(e,t){return Yl(WT,e,t||{})}function GT(e,t){return Yl(HT,e,t||{})}class qT{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:o},s){try{const{data:i,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!i)return{data:null,error:a};const l=o??MT.createNewAbortSignal();if(i.webauthn.type==="create"){const{user:u}=i.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(i.webauthn.type){case"create":{const u=KT(i.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:c,error:d}=await UT({publicKey:u,signal:l});return c?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:c}},error:null}:{data:null,error:d}}case"request":{const u=GT(i.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:c,error:d}=await VT(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:u,signal:l}));return c?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:c}},error:null}:{data:null,error:d}}}}catch(i){return W(i)?{data:null,error:i}:{data:null,error:new Br("Unexpected error in challenge",i)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},s){if(!n)return{data:null,error:new Gi("rpId is required for WebAuthn authentication")};try{if(!Gm())return{data:null,error:new Br("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:o},{request:s});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(i){return W(i)?{data:null,error:i}:{data:null,error:new Br("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},s){if(!n)return{data:null,error:new Gi("rpId is required for WebAuthn registration")};try{if(!Gm())return{data:null,error:new Br("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(c=>{var d;return(d=c.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:o},{create:s});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(i){return W(i)?{data:null,error:i}:{data:null,error:new Br("Unexpected error in register",i)}}}}AT();const QT={url:Wx,storageKey:Hx,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Kx,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function qm(e,t,n){return await n()}const Ro={};class qi{get jwks(){var t,n;return(n=(t=Ro[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Ro[this.storageKey]=Object.assign(Object.assign({},Ro[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Ro[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ro[this.storageKey]=Object.assign(Object.assign({},Ro[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,o;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;const s=Object.assign(Object.assign({},QT),t);if(this.storageKey=s.storageKey,this.instanceID=(n=qi.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,qi.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&Ue()){const i=`${this._logPrefix()} 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.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new CT({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Uw(s.fetch),this.lock=s.lock||qm,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,s.lock?this.lock=s.lock:this.persistSession&&Ue()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=RT:this.lock=qm,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),webauthn:new qT(this)}
82,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:Bw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Km(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Km(this.memoryStorage)),Ue()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(o=this.broadcastChannel)===null||o===void 0||o.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${zw}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),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 t;try{let n={},r="none";if(Ue()&&(n=aT(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Ue()&&this.detectSessionInUrl&&r!=="none"){const{data:o,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),Zx(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:i,redirectType:a}=o;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 W(n)?this._returnResult({error:n}):this._returnResult({error:new Br("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const s=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(o=t==null?void 0:t.options)===null||o===void 0?void 0:o.captchaToken}},xform:Vt}),{data:i,error:a}=s;
82if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,o;try{let s;if("email"in t){const{email:c,password:d,options:h}=t;let f=null,b=null;this.flowType==="pkce"&&([f,b]=await To(this.storage,this.storageKey)),s=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:d,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:f,code_challenge_method:b},xform:Vt})}else if("phone"in t){const{phone:c,password:d,options:h}=t;s=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(o=h==null?void 0:h.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Vt})}else throw new Ha("You must provide either an email or phone number and a password");const{data:i,error:a}=s;
82if(a||!i)return await Be(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:i,options:a}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Wm})}else if("phone"in t){const{phone:s,password:i,options:a}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Wm})}else throw new Ha("You must provide either an email or phone number and a password");const{data:r,error:o}=n;if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!r||!r.session||!r.user){const s=new xo;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:o})}catch(n){if(W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,o,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,o,s,i,a,l,u,c,d,h;let f,b;if("message"in t)f=t.message,b=t.signature;else{const{chain:p,wallet:k,statement:v,options:y}=t;let w;if(Ue())if(typeof k=="object")w=k;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")w=R.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) 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: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof k!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=k}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href),_=await w.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=Ww(_[0]);let x=(r=y==null?void 0:y.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!x){const R=await w.request({method:"eth_chainId"});x=OT(R)}const P={domain:S.host,address:E,statement:v,uri:S.href,version:"1",chainId:x,nonce:(o=y==null?void 0:y.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(i=(s=y==null?void 0:y.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=y==null?void 0:y.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=y==null?void 0:y.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=y==null?void 0:y.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=y==null?void 0:y.signInWithEthereum)===null||c===void 0?void 0:c.resources};f=NT(P),b=await w.request({method:"personal_sign",params:[jT(f),E]})}try{const{data:p,error:k}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:b},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Vt});if(k)throw k;if(!p||!p.session||!p.user){const v=new xo;return this._returnResult({data:{user:null,session:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:k})}catch(p){if(W(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var n,r,o,s,i,a,l,u,c,d,h,f;let b,p;if("message"in t)b=t.message,p=t.signature;else{const{chain:k,wallet:v,statement:y,options:w}=t;let S;if(Ue())if(typeof v=="object")S=v;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))S=E.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 v!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const _=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const E=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),y?{statement:y}:null));let x;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")x=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)x=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in x&&"signature"in x&&(typeof x.signedMessage=="string"||x.signedMessage instanceof Uint8Array)&&x.signature instanceof Uint8Array)b=typeof x.signedMessage=="string"?x.signedMessage:new TextDecoder().decode(x.signedMessage),p=x.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${_.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(o=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((s=w==null?void 0:w.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((d=(c=w==null?void 0:w.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...w.sign
82InWithSolana.resources.map(x=>`- ${x}`)]:[]].join(` 83`);const E=await S.signMessage(new TextEncoder().encode(b),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=E}}try{const{data:k,error:v}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:Hr(p)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Vt});if(v)throw v;if(!k||!k.session||!k.user){const y=new xo;return this._returnResult({data:{user:null,session:null},error:y})}return k.session&&(await this._saveSession(k.session),await this._notifyAllSubscribers("SIGNED_IN",k.session)),this._returnResult({data:Object.assign({},k),error:v})}catch(k){if(W(k))return this._returnResult({data:{user:null,session:null},error:k});throw k}}async _exchangeCodeForSession(t){const n=await Lr(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new Xx;const{data:s,error:i}=await G(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Vt});if(await Be(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!s||!s.session||!s.user){const a=new xo;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:o??null}),error:i})}catch(s){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:o,access_token:s,nonce:i}=t,a=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:o,access_token:s,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Vt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new xo;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,o,s,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await To(this.storage,this.storageKey));const{error:d}=await G(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:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(o=l==null?void 0:l.data)!==null&&o!==void 0?o:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!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 this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new Ha("You must provide either an email or phone number.")}catch(a){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let o,s;"options"in t&&(o=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await G(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:o,xform:Vt});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(W(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(t){var n,r,o,s,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await To(this.storage,this.storageKey));const u=await G(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((o=t==null?void 0:t.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:ET});return!((s=u.data)===null||s===void 0)&&s.url&&Ue()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new mt;const{error:o}=await G(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(t){if(W(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:o,options:s}=t,{error:i}=await G(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:r,type:o,options:s}=t,{data:i,error:a}=await G(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new Ha("You must provide either an email or phone number and a type")}catch(n){if(W(n))return this._returnResult({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(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,t,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 o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.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(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(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 t=null;const n=await Lr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
83id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<kc:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await Lr(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=Ec()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=bT(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(-1,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:sr}):await this._useSession(async n=>{var r,o,s;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new mt}:await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(o=i.session)===null||o===void 0?void 0:o.access_token)!==null&&s!==void 0?s:void 0,xform:sr})})}catch(n){if(W(n))return Jx(n)&&(await this._removeSession(),await Be(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:o,error:s}=r;if(s)throw s;if(!o.session)throw new mt;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await To(this.storage,this.storageKey));const{data:u,error:c}=await G(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:sr});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(r){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new mt;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=_c(t.access_token);if(i.exp&&(r=i.exp,o=r<=n),o){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(W(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new mt;const{data:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(W(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Ue())throw new Ka("No browser detected.");
83if(t.error||t.error_description||t.error_code)throw new Ka(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Mm("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ka("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Mm("No code detected.");const{data:y,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:o,access_token:s,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!i||!u)throw new Ka("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let h=c+d;l&&(h=parseInt(l));const f=h-c;f*1e3<=Do&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const b=h-d;c-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,h,c):c-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,c);const{data:p,error:k}=await this._getUser(s);if(k)throw k;const v={provider_token:r,provider_refresh_token:o,access_token:s,expires_in:d,expires_at:h,refresh_token:i,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(W(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Lr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return this._returnResult({error:s});const i=(r=o.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(Yx(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Be(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=iT(),r={id:n,callback:t,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(t){return await this._useSession(async n=>{var r,o;try{const{data:{session:s},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,o=null;this.flowType==="pkce"&&([r,o]=await To(this.storage,this.storageKey,!0));try{return await G(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:o}=await this._useSession(async s=>{var i,a,l,u,c;const{data:d,error:h}=s;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await G(this.fetch,"GET",f,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(o)throw o;return Ue()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(W(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:o,data:{session:s}}=n;
83if(o)throw o;const{options:i,provider:a,token:l,access_token:u,nonce:c}=t,d=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:Vt}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new xo}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(o){if(await Be(this.storage,`${this.storageKey}-code-verifier`),W(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)throw i;return await G(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await cT(async o=>(o>0&&await uT(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await G(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Vt})),(o,s)=>{const i=200*Math.pow(2,o);return s&&Sc(s)&&Date.now()+i-r<Do})}catch(r){if(this._debug(n,"error",r),W(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Ue()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const o=await Lr(this.storage,this.storageKey);if(o&&this.userStorage){let i=await Lr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:o.user},await Lo(this.userStorage,this.storageKey+"-user",i)),o.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:Ec()}else if(o&&!o.user&&!o.user){const i=await Lr(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(o.user=i.user,await Be(this.storage,this.storageKey+"-user"),await Lo(this.storage,this.storageKey,o)):o.user=Ec()}if(this._debug(r,"session from storage",o),!this._isValidSession(o)){this._debug(r,"session is not valid"),o!==null&&await this._removeSession();return}const s=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<kc;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${kc}s`),s){if(this.autoRefreshToken&&o.refresh_token){const{error:i}=await this._callRefreshToken(o.refresh_token);i&&(console.error(i),Sc(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(o.access_token);!a&&(i!=null&&i.user)?(o.user=i.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):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",o)}catch(o){this._debug(r,"error",o),console.error(o);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new mt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Su;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new mt;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(o,"error",s),W(s)){const i={data:null,error:s};return Sc(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,n,r=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(i),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Be(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Lo(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const s=Um(o);await Lo(this.storage,this.storageKey,s)}else{const o=Um(n);await Lo(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Be(this.storage,this.storageKey),await Be(this.storage,this.storageKey+"-code-verifier"),await Be(this.storage,this.storageKey+"-user"),this.userStorage&&await Be(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Ue()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
83catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Do);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 t=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 o=Math.floor((r.expires_at*1e3-t)/Do);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${Do}ms, refresh threshold is ${qd} ticks`),o<=qd&&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(t){if(t.isAcquireTimeout||t instanceof Vw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ue()||!(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(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await 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(t,n,r){const o=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&o.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&o.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,i]=await To(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(i)}`});o.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);o.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&o.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?this._returnResult({data:null,error:s}):await G(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await G(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((o=l==null?void 0:l.totp)===null||o===void 0)&&o.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return this._returnResult({data:null,error:s});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?FT(t.webauthn.credential_response):BT(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return this._returnResult({data:null,error:s});const i=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:zT(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:$T(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const o={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])o.all.push(s),s.status==="verified"&&o[s.factor_type].push(s);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:o}
83=await this.getSession();if(o)return this._returnResult({data:null,error:o});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=_c(r.access_token);let i=null;s.aal&&(i=s.aal);let a=i;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(c=>c.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(a="aal2");const u=s.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:o}=n;return o?this._returnResult({data:null,error:o}):r?await G(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new mt})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:o},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!o)return this._returnResult({data:null,error:new mt});const i=await G(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Ue()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:o},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!o)return this._returnResult({data:null,error:new mt});const i=await G(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Ue()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await G(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new mt})})}catch(t){if(W(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:o}=n;return o?this._returnResult({data:null,error:o}):r?(await G(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new mt})})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const o=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+qx>o)return r;const{data:s,error:i}=await G(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=o,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:b}
83=await this.getSession();if(b||!f.session)return this._returnResult({data:null,error:b});r=f.session.access_token}const{header:o,payload:s,signature:i,raw:{header:a,payload:l}}=_c(r);n!=null&&n.allowExpired||vT(s.exp);const u=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:s,header:o,signature:i},error:null}}const c=yT(o.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,i,oT(`${a}.${l}`)))throw new Jd("Invalid JWT signature");return{data:{claims:s,header:o,signature:i},error:null}}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}}qi.nextInstanceID={};const YT=qi,JT="2.89.0";let di="";typeof Deno<"u"?di="deno":typeof document<"u"?di="web":typeof navigator<"u"&&navigator.product==="ReactNative"?di="react-native":di="node";const ZT={"X-Client-Info":`supabase-js-${di}/${JT}`},XT={headers:ZT},eC={schema:"public"},tC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},nC={};function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function rC(e,t){if(Qi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oC(e){var t=rC(e,"string");return Qi(t)=="symbol"?t:t+""}function sC(e,t,n){return(t=oC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(n),!0).forEach(function(r){sC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const iC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),aC=()=>Headers,lC=(e,t,n)=>{const r=iC(n),o=aC();return async(s,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new o(i==null?void 0:i.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,Pe(Pe({},i),{},{headers:u}))}};function uC(e){return e.endsWith("/")?e:e+"/"}function cC(e,t){var n,r;const{db:o,auth:s,realtime:i,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,h={db:Pe(Pe({},l),o),auth:Pe(Pe({},u),s),realtime:Pe(Pe({},c),i),storage:{},global:Pe(Pe(Pe({},d),a),{},{headers:Pe(Pe({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function dC(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(uC(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var hC=class extends YT{constructor(e){super(e)}},fC=class{constructor(e,t,n){var r,o;this.supabaseUrl=e,this.supabaseKey=t;const s=dC(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const i=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:eC,realtime:nC,auth:Pe(Pe({},tC),{},{storageKey:i}),global:XT},l=cC(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(o=l.global.headers)!==null&&o!==void 0?o:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=lC(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Pe({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&this.accessToken().then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new KE(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new Vx(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new BE(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,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
83channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:o,storageKey:s,flowType:i,lock:a,debug:l,throwOnError:u},c,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new hC({url:this.authUrl.href,headers:Pe(Pe({},h),c),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:o,flowType:i,lock:a,debug:l,throwOnError:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new ux(this.realtimeUrl.href,Pe(Pe({},e),{},{params:Pe(Pe({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const pC=(e,t,n)=>
83new fC(e,t,n);function mC(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}mC()&&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 Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function gC(){var k,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(y=>e===y||e.endsWith("."+y)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=n?((k=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:k[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,s=window.parent&&window.parent!==window;if(!o||!s)return localStorage;const i=e.endsWith(".lovableproject-dev.com")||e.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:""),u=l&&a.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],c="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(y,w,S)=>new Promise(_=>{const E=h();let x=!1,P;const R=O=>{x||(x=!0,clearTimeout(P),window.removeEventListener("message",C),_(O))},C=O=>{if(u.indexOf(O.origin)<0)return;const z=O.data;z&&z.type===c&&z.requestId===E&&R(z)};window.addEventListener("message",C);const I={type:y,requestId:E,projectId:o,key:w};S!==void 0&&(I.value=S);for(const O of u)window.parent.postMessage(I,O);P=setTimeout(()=>R(null),d)});let b=!0;const p=250;return{getItem:async y=>{let w=await f("lovable-preview-auth:get",y);return!w&&b&&(await new Promise(S=>setTimeout(S,p)),w=await f("lovable-preview-auth:get",y)),b=!1,w&&w.ok&&typeof w.value=="string"?w.value===""?(localStorage.removeItem(y),null):w.value:localStorage.getItem(y)},setItem:(y,w)=>(localStorage.setItem(y,w),f("lovable-preview-auth:set",y,w).then(S=>{S&&S.ok&&typeof S.value=="string"&&localStorage.getItem(y)===w&&(S.value===""?localStorage.removeItem(y):localStorage.setItem(y,S.value))})),removeItem:y=>(localStorage.removeItem(y),f("lovable-preview-auth:remove",y).then(()=>{}))}}const vC="https://wasldznewicttoslpmnx.supabase.co",yC="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Indhc2xkem5ld2ljdHRvc2xwbW54Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njc2MDcyNzgsImV4cCI6MjA4MzE4MzI3OH0.FE0Nk3VJ2ibEoUW3QEL3joKY1pM0TQhXZSygVQyuyvY",$e=pC(vC,yC,{auth:{storage:gC(),persistSession:!0,autoRefreshToken:!0}}),Kr="/storage/v1/object/public/forum-attachments/",Ym=60*60,Jm=new Map;function Kw(e){const t=e.indexOf(Kr);if(t===-1)return null;const n=e.slice(t+Kr.length).split("?")[0];return n?decodeURIComponent(n):null}function wC(e){return`/priloha/${e.split("/").map(encodeURIComponent).join("/")}`}function JD(e){return!!e&&e.includes(Kr)}async function ZD(e){const t=Kw(e);return t&&(await Gw([t])).get(t)||e}async function Gw(e){const t=Date.now(),n=new Map,r=[];for(const o of e){const s=Jm.get(o);s&&s.expiresAt>t?n.set(o,s.url):r.push(o)}if(r.length>0){const{data:o,error:s}=await $e.storage.from("forum-attachments").createSignedUrls(r,Ym);if(!s&&o)for(const i of o)!i.signedUrl||!i.path||(Jm.set(i.path,{url:i.signedUrl,expiresAt:t+(Ym-60)*1e3}),n.set(i.path,i.signedUrl))}return n}const gr="data-forum-signed";function bC(e){const t=`img[src*="${Kr}"]:not([${gr}]), source[src*="${Kr}"]:not([${gr}]), video[src*="${Kr}"]:not([${gr}]), a[href*="${Kr}"]:not([${gr}])`;return Array.from(e.querySelectorAll(t))}async function kC(e){if(e.length===0)return;const t=new Map;for(const s of e){const i=s.tagName==="A"?"href":"src",a=s.getAttribute(i),l=a?Kw(a):null;if(!l)continue;s.setAttribute(gr,"pending");const u=t.get(l)||[];u.push(s),t.set(l,u)}if(t.size===0)return;const n=new Set;for(const[s,i]of t)i.some(a=>a.tagName==="A")&&n.add(s);const r=[...t.keys()].filter(s=>t.get(s).some(i=>i.tagName!=="A")),o=r.length>0?await Gw(r):new Map;for(const[s,i]of t)for(const a of i){if(a.tagName==="A"){a.setAttribute("href",wC(s)),a.removeAttribute("target"),a.setAttribute(gr,"done");continue}const l=o.get(s);if(!l){a.removeAttribute(gr);continue}a.setAttribute("src",l),a.setAttribute(gr,"done")}}let Tc=!1;function SC(){if(Tc||typeof document>"u")return()=>{};Tc=!0;let e=!1;const t=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1,kC(bC(document.body))}))};t();const n=new MutationObserver(t);return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","href"]}),()=>{n.disconnect(),Tc=!1}}const _C=1,EC=1e6;let Cc=0;function xC(){return Cc=(Cc+1)%Number.MAX_SAFE_INTEGER,Cc.toString()}const Pc=new Map,Zm=e=>{if(Pc.has(e))return;const t=setTimeout(()=>{Pc.delete(e),xi({type:"REMOVE_TOAST",toastId:e})},EC);Pc.set(e,t)},TC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_C)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
83return n?Zm(n):e.toasts.forEach(r=>{Zm(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ml=[];let gl={toasts:[]};function xi(e){gl=TC(gl,e),ml.forEach(t=>{t(gl)})}function CC({...e}){const t=xC(),n=o=>xi({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>xi({type:"DISMISS_TOAST",toastId:t});return xi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Ms(){const[e,t]=m.useState(gl);return m.useEffect(()=>(ml.push(t),()=>{const n=ml.indexOf(t);n>-1&&ml.splice(n,1)}),[e]),{...e,toast:CC,dismiss:n=>xi({type:"DISMISS_TOAST",toastId:n})}}function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qw(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Xm(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Xm(e[o],null)}}}}function Ge(...e){return m.useCallback(qw(...e),e)}function PC(e,t){const n=m.createContext(t),r=s=>{const{children:i,...a}=s,l=m.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function zs(e,t=[]){let n=[];function r(s,i){const a=m.createContext(i),l=n.length;n=[...n,i];const u=d=>{var v;const{scope:h,children:f,...b}=d,p=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,k=m.useMemo(()=>b,Object.values(b));return g.jsx(p.Provider,{value:k,children:f})};u.displayName=s+"Provider";function c(d,h){var p;const f=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,b=m.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const o=()=>{const s=n.map(i=>m.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,RC(o,...t)]}function RC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Yi(e){const t=OC(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),l=a.find(jC);if(l){const u=l.props.children,c=a.map(d=>d===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,c):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var AC=Yi("Slot");function OC(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=IC(o),a=NC(s,o.props);return o.type!==m.Fragment&&(a.ref=r?qw(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qw=Symbol("radix.slottable");function Yw(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qw,t}function jC(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qw}function NC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function IC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function DC(e){const t=e+"CollectionProvider",[n,r]=zs(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:k,children:v}=p,y=L.useRef(null),w=L.useRef(new Map).current;return g.jsx(o,{scope:k,itemMap:w,collectionRef:y,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=Yi(a),u=L.forwardRef((p,k)=>{const{scope:v,children:y}=p,w=s(a,v),S=Ge(k,w.collectionRef);return g.jsx(l,{ref:S,children:y})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=Yi(c),f=L.forwardRef((p,k)=>{const{scope:v,children:y,...w}=p,S=L.useRef(null),_=Ge(k,S),E=s(c,v);return L.useEffect(()=>(E.itemMap.set(S,{ref:S,...w}),()=>void E.itemMap.delete(S))),g.jsx(h,{[d]:"",ref:_,children:y})});f.displayName=c;function b(p){const k=s(e+"CollectionConsumer",p);return L.useCallback(()=>{const y=k.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(k.itemMap.values()).sort((E,x)=>w.indexOf(E.ref.current)-w.indexOf(x.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},b,r]}var LC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=LC.reduce((e,t)=>
vendor: 8,608 bytes, line 83
83{const n=Yi(`Primitive.${t}`),r=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Jw(e,t){e&&da.flushSync(()=>e.dispatchEvent(t))}function bn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MC(e,t=globalThis==null?void 0:globalThis.document){const n=bn(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zC="DismissableLayer",Zd="dismissableLayer.update",$C="dismissableLayer.pointerDownOutside",FC="dismissableLayer.focusOutside",eg,Zw=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_u=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=m.useContext(Zw),[c,d]=m.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=m.useState({}),b=Ge(t,x=>d(x)),p=Array.from(u.layers),[k]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(k),y=c?p.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,_=UC(x=>{const P=x.target,R=[...u.branches].some(C=>C.contains(P));!S||R||(o==null||o(x),i==null||i(x),x.defaultPrevented||a==null||a())},h),E=VC(x=>{const P=x.target;[...u.branches].some(C=>C.contains(P))||(s==null||s(x),i==null||i(x),x.defaultPrevented||a==null||a())},h);return MC(x=>{y===u.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},h),m.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(eg=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),tg(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=eg)}},[c,h,n,u]),m.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),tg())},[c,u]),m.useEffect(()=>{const x=()=>f({});return document.addEventListener(Zd,x),()=>document.removeEventListener(Zd,x)},[]),g.jsx(Oe.div,{...l,ref:b,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,_.onPointerDownCapture)})});_u.displayName=zC;var BC="DismissableLayerBranch",Xw=m.forwardRef((e,t)=>{const n=m.useContext(Zw),r=m.useRef(null),o=Ge(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Oe.div,{...e,ref:o})});Xw.displayName=BC;function UC(e,t=globalThis==null?void 0:globalThis.document){const n=bn(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){e0($C,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function VC(e,t=globalThis==null?void 0:globalThis.document){const n=bn(e),r=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!r.current&&e0(FC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tg(){const e=new CustomEvent(Zd);document.dispatchEvent(e)}function e0(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Jw(o,s):o.dispatchEvent(s)}var WC=_u,HC=Xw,Mn=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},KC="Portal",Cf=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=m.useState(!1);Mn(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Cw.createPortal(g.jsx(Oe.div,{...r,ref:t}),i):null});Cf.displayName=KC;function GC(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var $s=e=>{const{present:t,children:n}=e,r=qC(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=Ge(r.ref,QC(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:s}):null};$s.displayName="Presence";function qC(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[a,l]=GC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Ga(r.current);s.current=a==="mounted"?u:"none"},[a]),Mn(()=>{const u=r.current,c=o.current;if(c!==e){const h=s.current,f=Ga(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Mn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const p=Ga(r.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!o.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},h=f=>{f.target===t&&(s.current=Ga(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ga(e){return(e==null?void 0:e.animationName)||"none"}function QC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YC=Ev[" useInsertionEffect ".trim().toString()]||Mn;function Pf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=JC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=m.useRef(e!==void 0);m.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"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.`),c.current=a},[a,r])}const u=m.useCallback(c=>{var d;if(a){const h=ZC(c)?c(e):c;h!==e&&((d=i.current)==null||d.call(i,h))}else s(c)},[a,e,s,i]);return[l,u]}function JC({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),s=m.useRef(t);return YC(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function ZC(e){return typeof e=="function"}var XC=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"}),e1="VisuallyHidden",Eu=m.forwardRef((e,t)=>g.jsx(Oe.span,{...e,ref:t,style:{...XC,...e.style}}));Eu.displayName=e1;var t1=Eu,Rf="ToastProvider",[Af,n1,r1]=DC("Toast"),[t0,XD]=zs("Toast",[r1]),[o1,xu]=t0(Rf),n0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=m.useState(null),[u,c]=m.useState(0),d=m.useRef(!1),h=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Rf}\`. Expected non-empty \`string\`.`),g.jsx(Af.Provider,{scope:t,children:g.jsx(o1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:m.useCallback(()=>c(f=>f+1),[]),onToastRemove:m.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:i})})};n0.displayName=Rf;var r0="ToastViewport",s1=["F8"],Xd="toast.viewportPause",eh="toast.viewportResume",o0=m.forwardRef((e,t)=>
83{const{__scopeToast:n,hotkey:r=s1,label:o="Notifications ({hotkey})",...s}=e,i=xu(r0,n),a=n1(n),l=m.useRef(null),u=m.useRef(null),c=m.useRef(null),d=m.useRef(null),h=Ge(t,d,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;m.useEffect(()=>{const k=v=>{var w;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[r]),m.useEffect(()=>{const k=l.current,v=d.current;if(b&&k&&v){const y=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Xd);v.dispatchEvent(E),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(eh);v.dispatchEvent(E),i.isClosePausedRef.current=!1}},S=E=>{!k.contains(E.relatedTarget)&&w()},_=()=>{k.contains(document.activeElement)||w()};return k.addEventListener("focusin",y),k.addEventListener("focusout",S),k.addEventListener("pointermove",y),k.addEventListener("pointerleave",_),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{k.removeEventListener("focusin",y),k.removeEventListener("focusout",S),k.removeEventListener("pointermove",y),k.removeEventListener("pointerleave",_),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[b,i.isClosePausedRef]);const p=m.useCallback(({tabbingDirection:k})=>{const y=a().map(w=>{const S=w.ref.current,_=[S,...y1(S)];return k==="forwards"?_:_.reverse()});return(k==="forwards"?y.reverse():y).flat()},[a]);return m.useEffect(()=>{const k=d.current;if(k){const v=y=>{var _,E,x;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const P=document.activeElement,R=y.shiftKey;if(y.target===k&&R){(_=u.current)==null||_.focus();return}const O=p({tabbingDirection:R?"backwards":"forwards"}),z=O.findIndex(j=>j===P);Rc(O.slice(z+1))?y.preventDefault():R?(E=u.current)==null||E.focus():(x=c.current)==null||x.focus()}};return k.addEventListener("keydown",v),()=>k.removeEventListener("keydown",v)}},[a,p]),g.jsxs(HC,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&g.jsx(th,{ref:u,onFocusFromOutsideViewport:()=>{const k=p({tabbingDirection:"forwards"});Rc(k)}}),g.jsx(Af.Slot,{scope:n,children:g.jsx(Oe.ol,{tabIndex:-1,...s,ref:h})}),b&&g.jsx(th,{ref:c,onFocusFromOutsideViewport:()=>{const k=p({tabbingDirection:"backwards"});Rc(k)}})]})});o0.displayName=r0;var s0="ToastFocusProxy",th=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=xu(s0,n);return g.jsx(Eu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});th.displayName=s0;var fa="Toast",i1="toast.swipeStart",a1="toast.swipeMove",l1="toast.swipeCancel",u1="toast.swipeEnd",i0=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=Pf({prop:r,defaultProp:o??!0,onChange:s,caller:fa});return g.jsx($s,{present:n||a,children:g.jsx(h1,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:bn(e.onPause),onResume:bn(e.onResume),onSwipeStart:ge(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ge(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});i0.displayName=fa;var[c1,d1]=t0(fa,{onClose(){}}),h1=m.forwardRef((e,t)=>
83{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...b}=e,p=xu(fa,n),[k,v]=m.useState(null),y=Ge(t,j=>v(j)),w=m.useRef(null),S=m.useRef(null),_=o||p.duration,E=m.useRef(0),x=m.useRef(_),P=m.useRef(0),{onToastAdd:R,onToastRemove:C}=p,I=bn(()=>{var M;(k==null?void 0:k.contains(document.activeElement))&&((M=p.viewport)==null||M.focus()),i()}),O=m.useCallback(j=>{!j||j===1/0||(window.clearTimeout(P.current),E.current=new Date().getTime(),P.current=window.setTimeout(I,j))},[I]);m.useEffect(()=>{const j=p.viewport;if(j){const M=()=>{O(x.current),u==null||u()},F=()=>{const V=new Date().getTime()-E.current;x.current=x.current-V,window.clearTimeout(P.current),l==null||l()};return j.addEventListener(Xd,F),j.addEventListener(eh,M),()=>{j.removeEventListener(Xd,F),j.removeEventListener(eh,M)}}},[p.viewport,_,l,u,O]),m.useEffect(()=>{s&&!p.isClosePausedRef.current&&O(_)},[s,_,p.isClosePausedRef,O]),m.useEffect(()=>(R(),()=>C()),[R,C]);const z=m.useMemo(()=>k?f0(k):null,[k]);return p.viewport?g.jsxs(g.Fragment,{children:[z&&g.jsx(f1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:z}),g.jsx(c1,{scope:n,onClose:I,children:da.createPortal(g.jsx(Af.ItemSlot,{scope:n,children:g.jsx(WC,{asChild:!0,onEscapeKeyDown:ge(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||I(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Oe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...b,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ge(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:ge(e.onPointerDown,j=>{j.button===0&&(w.current={x:j.clientX,y:j.clientY})}),onPointerMove:ge(e.onPointerMove,j=>{if(!w.current)return;const M=j.clientX-w.current.x,F=j.clientY-w.current.y,V=!!S.current,A=["left","right"].includes(p.swipeDirection),N=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,$=A?N(0,M):0,X=A?0:N(0,F),K=j.pointerType==="touch"?10:2,ne={x:$,y:X},oe={originalEvent:j,delta:ne};V?(S.current=ne,qa(a1,d,oe,{discrete:!1})):ng(ne,p.swipeDirection,K)?(S.current=ne,qa(i1,c,oe,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(M)>K||Math.abs(F)>K)&&(w.current=null)}),onPointerUp:ge(e.onPointerUp,j=>{const M=S.current,F=j.target;if(F.hasPointerCapture(j.pointerId)&&F.releasePointerCapture(j.pointerId),S.current=null,w.current=null,M){const V=j.currentTarget,A={originalEvent:j,delta:M};ng(M,p.swipeDirection,p.swipeThreshold)?qa(u1,f,A,{discrete:!0}):qa(l1,h,A,{discrete:!0}),V.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),f1=e=>{const{__scopeToast:t,children:n,...r}=e,o=xu(fa,t),[s,i]=m.useState(!1),[a,l]=m.useState(!1);return g1(()=>i(!0)),m.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:g.jsx(Cf,{asChild:!0,children:g.jsx(Eu,{...r,children:s&&g.jsxs(g.Fragment,{children:[o.label," ",n]})})})},p1="ToastTitle",a0=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx(Oe.div,{...r,ref:t})});a0.displayName=p1;var m1="ToastDescription",l0=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx(Oe.div,{...r,ref:t})});l0.displayName=m1;var u0="ToastAction",c0=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?g.jsx(h0,{altText:n,asChild:!0,children:g.jsx(Of,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${u0}\`. Expected non-empty \`string\`.`),null)});c0.displayName=u0;var d0="ToastClose",Of=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=d1(d0,n);return g.jsx(h0,{asChild:!0,children:g.jsx(Oe.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,o.onClose)})})});Of.displayName=d0;var h0=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return g.jsx(Oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function f0(e){const t=[];
vendor: 4,148 bytes, lines 83-107
83return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),v1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...f0(r))}}),t}function qa(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Jw(o,s):o.dispatchEvent(s)}var ng=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function g1(e=()=>{}){const t=bn(e);Mn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function v1(e){return e.nodeType===e.ELEMENT_NODE}function y1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var w1=n0,p0=o0,m0=i0,g0=a0,v0=l0,y0=c0,w0=Of;function b0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=b0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function k0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=b0(e))&&(r&&(r+=" "),r+=t);return r}const rg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,og=k0,jf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return og(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const h=rg(c)||rg(d);return o[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(b=>{let[p,k]=b;return Array.isArray(k)?k.includes({...s,...a}[p]):{...s,...a}[p]===k})?[...u,d,h]:u},[]);return og(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const b1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */var k1={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"};/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const S1=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>m.createElement("svg",{ref:l,...k1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:S0("lucide",o),...a},[...i.map(([u,c])=>m.createElement(u,c)),...Array.isArray(s)?s:[s]]));/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const Sn=(e,t)=>{const n=m.forwardRef(({className:r,...o},s)=>m.createElement(S1,{ref:s,iconNode:t,className:S0(`lucide-${b1(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree.
108 */const sg=Sn("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const _1=Sn("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const _0=Sn("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const vl=Sn("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"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Ps=Sn("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const Nf=Sn("Mailbox",[["path",{d:"M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z",key:"1lbycx"}],["polyline",{points:"15,9 18,9 18,11",key:"1pm9c0"}],["path",{d:"M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2",key:"15i455"}],["line",{x1:"6",x2:"7",y1:"10",y2:"10",key:"1e2scm"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const E1=Sn("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"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const x1=Sn("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const E0=Sn("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"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const T1=Sn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),If="-",C1=e=>{const t=R1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(If);return a[0]===""&&a.length!==1&&a.shift(),x0(a,t)||P1(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},x0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?x0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(If);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ig=/^\[(.+)\]$/,P1=e=>{if(ig.test(e)){const t=ig.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},R1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,120 bytes, line 153
153return O1(Object.entries(e.classGroups),n).forEach(([s,i])=>{nh(i,r,s,t)}),r},nh=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ag(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(A1(o)){nh(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{nh(i,ag(t,s),n,r)})})},ag=(e,t)=>{let n=e;return t.split(If).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},A1=e=>e.isThemeGetter,O1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,j1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},T0="!",N1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,c=0,d;for(let k=0;k<a.length;k++){let v=a[k];if(u===0){if(v===o&&(r||a.slice(k,k+s)===t)){l.push(a.slice(c,k)),c=k+s;continue}if(v==="/"){d=k;continue}}v==="["?u++:v==="]"&&u--}const h=l.length===0?a:a.substring(c),f=h.startsWith(T0),b=f?h.substring(1):h,p=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},I1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},D1=e=>({cache:j1(e.cacheSize),parseClassName:N1(e),...C1(e)}),L1=/\s+/,M1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(L1);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let b=!!f,p=r(b?h.substring(0,f):h);if(!p){if(!b){a=u+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=u+(a.length>0?" "+a:a);continue}b=!1}const k=I1(c).join(":"),v=d?k+T0:k,y=v+p;if(s.includes(y))continue;s.push(y);const w=o(p,b);for(let S=0;S<w.length;++S){const _=w[S];s.push(v+_)}a=u+(a.length>0?" "+a:a)}return a};function z1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=C0(t))&&(r&&(r+=" "),r+=n);return r}const C0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=C0(e[r]))&&(n&&(n+=" "),n+=t);return n};function $1(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((c,d)=>d(c),e());return n=D1(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=M1(l,n);return o(l,c),c}return function(){return s(z1.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},P0=/^\[(?:([a-z-]+):)?(.+)\]$/i,F1=/^\d+\/\d+$/,B1=new Set(["px","full","screen"]),U1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V1=/\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$/,W1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,H1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,En=e=>ss(e)||B1.has(e)||F1.test(e),Qn=e=>Fs(e,"length",eP),ss=e=>!!e&&!Number.isNaN(Number(e)),Ac=e=>Fs(e,"number",ss),oi=e=>!!e&&Number.isInteger(Number(e)),G1=e=>e.endsWith("%")&&ss(e.slice(0,-1)),ee=e=>P0.test(e),Yn=e=>U1.test(e),q1=new Set(["length","size","percentage"]),Q1=e=>Fs(e,q1,R0),Y1=e=>Fs(e,"position",R0),J1=new Set(["image","url"]),Z1=e=>Fs(e,J1,nP),X1=e=>Fs(e,"",tP),si=()=>!0,Fs=(e,t,n)=>{const r=P0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},eP=e=>V1.test(e)&&!W1.test(e),R0=()=>!1,tP=e=>H1.test(e),nP=e=>K1.test(e),rP=()=>{const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),s=pe("borderRadius"),i=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),c=pe("hueRotate"),d=pe("invert"),h=pe("gap"),f=pe("gradientColorStops"),b=pe("gradientColorStopPositions"),p=pe("inset"),k=pe("margin"),v=pe("opacity"),y=pe("padding"),w=pe("saturate"),S=pe("scale"),_=pe("sepia"),E=pe("skew"),x=pe("space"),P=pe("translate"),R=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",ee,t],O=()=>[ee,t],z=()=>["",En,Qn],j=()=>["auto",ss,ee],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["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"],A=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",ee],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[ss,ee];return{cacheSize:500,separator:":",theme:{colors:[si],spacing:[En,Qn],blur:["none","",Yn,ee],brightness:X(),borderColor:[e],borderRadius:["n
153one","","full",Yn,ee],borderSpacing:O(),borderWidth:z(),contrast:X(),grayscale:N(),hueRotate:X(),invert:N(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[G1,Qn],inset:I(),margin:I(),opacity:X(),padding:O(),saturate:X(),scale:X(),sepia:N(),skew:X(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[Yn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...M(),ee]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oi,ee]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",oi,ee]}],"grid-cols":[{"grid-cols":[si]}],"col-start-end":[{col:["auto",{span:["full",oi,ee]},ee]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[si]}],"row-start-end":[{row:["auto",{span:[oi,ee]},ee]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[Yn]},Yn]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Yn,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ac]}],"font-family":[{font:[si]}],"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",ee]}],"line-clamp":[{"line-clamp":["none",ss,Ac]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",En,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",En,Qn]}],"underline-offset":[{"underline-offset":["auto",En,ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],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",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),Y1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Q1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Z1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}
vendor: 4,885 bytes, line 153
153],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[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":[v]}],"border-style":[{border:[...F(),"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":[v]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[En,ee]}],"outline-w":[{outline:[En,Qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[En,Qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yn,X1]}],"shadow-color":[{shadow:[si]}],opacity:[{opacity:[v]}],"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",Yn,ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"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",ee]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[oi,ee]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
153],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[En,Qn,Ac]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},oP=$1(rP);function ke(...e){return oP(k0(e))}const sP=w1,A0=m.forwardRef(({className:e,...t},n)=>g.jsx(p0,{ref:n,className:ke("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]",e),...t}));A0.displayName=p0.displayName;const iP=jf("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"}}),O0=m.forwardRef(({className:e,variant:t,...n},r)=>g.jsx(m0,{ref:r,className:ke(iP({variant:t}),e),...n}));O0.displayName=m0.displayName;const aP=m.forwardRef(({className:e,...t},n)=>g.jsx(y0,{ref:n,className:ke("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",e),...t}));aP.displayName=y0.displayName;const j0=m.forwardRef(({className:e,...t},n)=>g.jsx(w0,{ref:n,className:ke("absolute right-2 top-2 rounded-md p-1 text-foreground
153/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",e),"toast-close":"",...t,children:g.jsx(T1,{className:"h-4 w-4"})}));j0.displayName=w0.displayName;const N0=m.forwardRef(({className:e,...t},n)=>g.jsx(g0,{ref:n,className:ke("text-sm font-semibold",e),...t}));N0.displayName=g0.displayName;const I0=m.forwardRef(({className:e,...t},n)=>g.jsx(v0,{ref:n,className:ke("text-sm opacity-90",e),...t}));I0.displayName=v0.displayName;function lP(){const{toasts:e}=Ms();return g.jsxs(sP,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return g.jsxs(O0,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[n&&g.jsx(N0,{children:n}),r&&g.jsx(I0,{children:r})]}),o,g.jsx(j0,{})]},t)}),g.jsx(A0,{})]})}var lg=["light","dark"],uP="(prefers-color-scheme: dark)",cP=m.createContext(void 0),dP={setTheme:e=>{},themes:[]},hP=()=>{var e;return(e=m.useContext(cP))!=null?e:dP};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?lg.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,p=!1,k=!0)=>{let v=i?i[b]:b,y=p?b+"|| ''":`'${v}'`,w="";return o&&k&&!p&&lg.includes(b)&&(w+=`d.style.colorScheme = '${b}';`),n==="class"?p||v?w+=`c.add(${y})`:w+="null":v&&(w+=`d[s](n,${y})`),w},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${uP}',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)}}${u?"":"else{"+h(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${d}}catch(t){}}();`;return m.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var fP=e=>{switch(e){case"success":return gP;case"info":return yP;case"warning":return vP;case"error":return wP;default:return null}},pP=Array(12).fill(0),mP=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},pP.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),gP=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),vP=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.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"})),yP=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),wP=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),bP=L.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"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),kP=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let n=()=>{t(document.hidden)};
153return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},rh=1,SP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:rh++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
153this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],L.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(EP(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||rh++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},lt=new SP,_P=(e,t)=>{let n=(t==null?void 0:t.id)||rh++;return lt.addToast({title:e,...t,id:n}),n},EP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",xP=_P,TP=()=>lt.toasts,CP=()=>lt.getActiveToasts(),eL=Object.assign(xP,{success:lt.success,info:lt.info,warning:lt.warning,error:lt.error,custom:lt.custom,message:lt.message,promise:lt.promise,dismiss:lt.dismiss,loading:lt.loading},{getHistory:TP,getToasts:CP});function PP(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}PP(`: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;
153left: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}
153: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%);
153--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%)} 154`);function Qa(e){return e.label!==void 0}var RP=3,AP="32px",OP="16px",ug=4e3,jP=356,NP=14,IP=20,DP=200;function Ut(...e){return e.filter(Boolean).join(" ")}function LP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var MP=e=>{var t,n,r,o,s,i,a,l,u,c,d;let{invert:h,toast:f,unstyled:b,interacting:p,setHeights:k,visibleToasts:v,heights:y,index:w,toasts:S,expanded:_,removeToast:E,defaultRichColors:x,closeButton:P,style:R,cancelButtonStyle:C,actionButtonStyle:I,className:O="",descriptionClassName:z="",duration:j,position:M,gap:F,loadingIcon:V,expandByDefault:A,classNames:N,icons:$,closeButtonAriaLabel:X="Close toast",pauseWhenPageIsHidden:K}=e,[ne,oe]=L.useState(null),[je,qe]=L.useState(null),[le,vo]=L.useState(!1),[Un,jr]=L.useState(!1),[Vn,yo]=L.useState(!1),[Wn,Sa]=L.useState(!1),[Fu,_a]=L.useState(!1),[Bu,qs]=L.useState(0),[wo,up]=L.useState(0),Qs=L.useRef(f.duration||j||ug),cp=L.useRef(null),Nr=L.useRef(null),eS=w===0,tS=w+1<=v,Pt=f.type,bo=f.dismissible!==!1,nS=f.className||"",rS=f.descriptionClassName||"",Ea=L.useMemo(()=>y.findIndex(Z=>Z.toastId===f.id)||0,[y,f.id]),oS=L.useMemo(()=>{var Z;return(Z=f.closeButton)!=null?Z:P},[f.closeButton,P]),dp=L.useMemo(()=>f.duration||j||ug,[f.duration,j]),Uu=L.useRef(0),ko=L.useRef(0),hp=L.useRef(0),So=L.useRef(null),[sS,iS]=M.split("-"),fp=L.useMemo(()=>y.reduce((Z,de,ye)=>ye>=Ea?Z:Z+de.height,0),[y,Ea]),pp=kP(),aS=f.invert||h,Vu=Pt==="loading";ko.current=L.useMemo(()=>
154Ea*F+fp,[Ea,fp]),L.useEffect(()=>{Qs.current=dp},[dp]),L.useEffect(()=>{vo(!0)},[]),L.useEffect(()=>{let Z=Nr.current;if(Z){let de=Z.getBoundingClientRect().height;return up(de),k(ye=>[{toastId:f.id,height:de,position:f.position},...ye]),()=>k(ye=>ye.filter(zt=>zt.toastId!==f.id))}},[k,f.id]),L.useLayoutEffect(()=>{if(!le)return;let Z=Nr.current,de=Z.style.height;Z.style.height="auto";let ye=Z.getBoundingClientRect().height;Z.style.height=de,up(ye),k(zt=>zt.find($t=>$t.toastId===f.id)?zt.map($t=>$t.toastId===f.id?{...$t,height:ye}:$t):[{toastId:f.id,height:ye,position:f.position},...zt])},[le,f.title,f.description,k,f.id]);let Hn=L.useCallback(()=>{jr(!0),qs(ko.current),k(Z=>Z.filter(de=>de.toastId!==f.id)),setTimeout(()=>{E(f)},DP)},[f,E,k,ko]);L.useEffect(()=>{if(f.promise&&Pt==="loading"||f.duration===1/0||f.type==="loading")return;let Z;return _||p||K&&pp?(()=>{if(hp.current<Uu.current){let de=new Date().getTime()-Uu.current;Qs.current=Qs.current-de}hp.current=new Date().getTime()})():Qs.current!==1/0&&(Uu.current=new Date().getTime(),Z=setTimeout(()=>{var de;(de=f.onAutoClose)==null||de.call(f,f),Hn()},Qs.current)),()=>clearTimeout(Z)},[_,p,f,Pt,K,pp,Hn]),L.useEffect(()=>{f.delete&&Hn()},[Hn,f.delete]);function lS(){var Z,de,ye;return $!=null&&$.loading?L.createElement("div",{className:Ut(N==null?void 0:N.loader,(Z=f==null?void 0:f.classNames)==null?void 0:Z.loader,"sonner-loader"),"data-visible":Pt==="loading"},$.loading):V?L.createElement("div",{className:Ut(N==null?void 0:N.loader,(de=f==null?void 0:f.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Pt==="loading"},V):L.createElement(mP,{className:Ut(N==null?void 0:N.loader,(ye=f==null?void 0:f.classNames)==null?void 0:ye.loader),visible:Pt==="loading"})}return L.createElement("li",{tabIndex:0,ref:Nr,className:Ut(O,nS,N==null?void 0:N.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[Pt],(n=f==null?void 0:f.classNames)==null?void 0:n[Pt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:x,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":le,"data-promise":!!f.promise,"data-swiped":Fu,"data-removed":Un,"data-visible":tS,"data-y-position":sS,"data-x-position":iS,"data-index":w,"data-front":eS,"data-swiping":Vn,"data-dismissible":bo,"data-type":Pt,"data-invert":aS,"data-swipe-out":Wn,"data-swipe-direction":je,"data-expanded":!!(_||A&&le),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${Un?Bu:ko.current}px`,"--initial-height":A?"auto":`${wo}px`,...R,...f.style},onDragEnd:()=>{yo(!1),oe(null),So.current=null},onPointerDown:Z=>{Vu||!bo||(cp.current=new Date,qs(ko.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(yo(!0),So.current={x:Z.clientX,y:Z.clientY}))},onPointerUp:()=>{var Z,de,ye,zt;if(Wn||!bo)return;So.current=null;let $t=Number(((Z=Nr.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Kn=Number(((de=Nr.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ir=new Date().getTime()-((ye=cp.current)==null?void 0:ye.getTime()),Ft=ne==="x"?$t:Kn,Gn=Math.abs(Ft)/Ir;if(Math.abs(Ft)>=IP||Gn>.11){qs(ko.current),(zt=f.onDismiss)==null||zt.call(f,f),qe(ne==="x"?$t>0?"right":"left":Kn>0?"down":"up"),Hn(),Sa(!0),_a(!1);return}yo(!1),oe(null)},onPointerMove:Z=>{var de,ye,zt,$t;if(!So.current||!bo||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;let Kn=Z.clientY-So.current.y,Ir=Z.clientX-So.current.x,Ft=(ye=e.swipeDirections)!=null?ye:LP(M);!ne&&(Math.abs(Ir)>1||Math.abs(Kn)>1)&&oe(Math.abs(Ir)>Math.abs(Kn)?"x":"y");let Gn={x:0,y:0};ne==="y"?(Ft.includes("top")||Ft.includes("bottom"))&&(Ft.includes("top")&&Kn<0||Ft.includes("bottom")&&Kn>0)&&(Gn.y=Kn):ne==="x"&&(Ft.includes("left")||Ft.includes("right"))&&(Ft.includes("left")&&Ir<0||Ft.includes("right")&&Ir>0)&&(Gn.x=Ir),(Math.abs(Gn.x)>0||Math.abs(Gn.y)>0)&&_a(!0),(zt=Nr.current)==null||zt.style.setProperty("--swipe-amount-x",`${Gn.x}px`),($t=Nr.current)==null||$t.style.setProperty("--swipe-amount-y",`${Gn.y}px`)}},oS&&!f.jsx?L.createElement("button",{"aria-label":X,"data-disabled":Vu,"data-close-button":!0,onClick:Vu||!bo?()=>{}:()=>{var Z;Hn(),(Z=f.onDismiss)==null||Z.call(f,f)},className:Ut(N==null?void 0:N.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=$==null?void 0:$.close)!=null?s:bP):null,f.jsx||m.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:L.createElement(L.Fragment,null,Pt||f.icon||f.promise?L.createElement("div",{"data-icon":"",className:Ut(N==null?void 0:N.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||lS():null,f.type!=="loading"?f.icon||($==null?void 0:$[Pt])||fP(Pt):null):null,
154L.createElement("div",{"data-content":"",className:Ut(N==null?void 0:N.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},L.createElement("div",{"data-title":"",className:Ut(N==null?void 0:N.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?L.createElement("div",{"data-description":"",className:Ut(z,rS,N==null?void 0:N.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),m.isValidElement(f.cancel)?f.cancel:f.cancel&&Qa(f.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||C,onClick:Z=>{var de,ye;Qa(f.cancel)&&bo&&((ye=(de=f.cancel).onClick)==null||ye.call(de,Z),Hn())},className:Ut(N==null?void 0:N.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,m.isValidElement(f.action)?f.action:f.action&&Qa(f.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||I,onClick:Z=>{var de,ye;Qa(f.action)&&((ye=(de=f.action).onClick)==null||ye.call(de,Z),!Z.defaultPrevented&&Hn())},className:Ut(N==null?void 0:N.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function cg(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function zP(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?OP:AP;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var $P=m.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:h,style:f,visibleToasts:b=RP,toastOptions:p,dir:k=cg(),gap:v=NP,loadingIcon:y,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:_}=e,[E,x]=L.useState([]),P=L.useMemo(()=>Array.from(new Set([r].concat(E.filter(K=>K.position).map(K=>K.position)))),[E,r]),[R,C]=L.useState([]),[I,O]=L.useState(!1),[z,j]=L.useState(!1),[M,F]=L.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=L.useRef(null),A=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=L.useRef(null),$=L.useRef(!1),X=L.useCallback(K=>{x(ne=>{var oe;return(oe=ne.find(je=>je.id===K.id))!=null&&oe.delete||lt.dismiss(K.id),ne.filter(({id:je})=>je!==K.id)})},[]);return L.useEffect(()=>lt.subscribe(K=>{if(K.dismiss){x(ne=>ne.map(oe=>oe.id===K.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{Cw.flushSync(()=>{x(ne=>{let oe=ne.findIndex(je=>je.id===K.id);return oe!==-1?[...ne.slice(0,oe),{...ne[oe],...K},...ne.slice(oe+1)]:[K,...ne]})})})}),[]),L.useEffect(()=>{if(c!=="system"){F(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:ne})=>{F(ne?"dark":"light")})}catch{K.addListener(({matches:oe})=>{try{F(oe?"dark":"light")}catch(je){console.error(je)}})}},[c]),L.useEffect(()=>{E.length<=1&&O(!1)},[E]),L.useEffect(()=>{let K=ne=>{var oe,je;o.every(qe=>ne[qe]||ne.code===qe)&&(O(!0),(oe=V.current)==null||oe.focus()),ne.code==="Escape"&&(document.activeElement===V.current||(je=V.current)!=null&&je.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[o]),L.useEffect(()=>{if(V.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,$.current=!1)}},[V.current]),L.createElement("section",{ref:t,"aria-label":`${S} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((K,ne)=>{var oe;let[je,qe]=K.split("-");return E.length?L.createElement("ol",{key:K,dir:k==="auto"?cg():k,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":je,"data-lifted":I&&E.length>1&&!s,"data-x-position":qe,style:{"--front-toast-height":`${((oe=R[0])==null?void 0:oe.height)||0}px`,"--width":`${jP}px`,"--gap":`${v}px`,...f,...zP(l,u)},onBlur:le=>{$.current&&!le.currentTarget.contains(le.relatedTarget)&&($.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||$.current||($.current=!0,N.current=le.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{z||O(!1)},onDragEnd:()=>O(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},E.filter(le=>!le.position&&ne===0||le.position===K).map((le,vo)=>{var Un,jr;return L.createElement(MP,{key:le.id,icons:w,index:vo,toast:le,defaultRichColors:d,duration:(Un=p==null?void 0:p.duration)!=null?Un:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:b,closeButton:(jr=p==null?void 0:p.closeButton)!=null?jr:i,interacting:z,position:K,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:X,toasts:E.filter(Vn=>Vn.position==le.position),heights:R.filter(Vn=>Vn.position==le.position),setHeights:C,expandByDefault:s,gap:v,loadingIcon:y,expanded:I,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const FP=({...e})=>{const{theme:t="system"}=hP();return g.jsx($P,{theme:t,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"}},...e})};var BP=Ev[" useId ".trim().toString()]||(()=>{}),UP=0;function yl(e){const[t,n]=m.useState(BP());return Mn(()=>{e||n(r=>r??String(UP++))},[e]),e||(t?`radix-${t}`:"")}const D0=["top","right","bottom","left"],dg=["start","end"],hg=D0.reduce((e,t)=>
vendor: 2,417 bytes, line 154
154e.concat(t,t+"-"+dg[0],t+"-"+dg[1]),[]),rn=Math.min,Xe=Math.max,Jl=Math.round,Ya=Math.floor,wn=e=>({x:e,y:e}),VP={left:"right",right:"left",bottom:"top",top:"bottom"},WP={start:"end",end:"start"};function oh(e,t,n){return Xe(e,rn(t,n))}function on(e,t){return typeof e=="function"?e(t):e}function _t(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function Df(e){return e==="x"?"y":"x"}function Lf(e){return e==="y"?"height":"width"}const HP=new Set(["top","bottom"]);function Jt(e){return HP.has(_t(e))?"y":"x"}function Mf(e){return Df(Jt(e))}function L0(e,t,n){n===void 0&&(n=!1);const r=en(e),o=Mf(e),s=Lf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Xl(i)),[i,Xl(i)]}function KP(e){const t=Xl(e);return[Zl(e),t,Zl(t)]}function Zl(e){return e.replace(/start|end/g,t=>WP[t])}const fg=["left","right"],pg=["right","left"],GP=["top","bottom"],qP=["bottom","top"];function QP(e,t,n){switch(e){case"top":case"bottom":return n?t?pg:fg:t?fg:pg;case"left":case"right":return t?GP:qP;default:return[]}}function YP(e,t,n,r){const o=en(e);let s=QP(_t(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Zl)))),s}function Xl(e){return e.replace(/left|right|bottom|top/g,t=>VP[t])}function JP(e){return{top:0,right:0,bottom:0,left:0,...e}}function zf(e){return typeof e!="number"?JP(e):{top:e,right:e,bottom:e,left:e}}function Rs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function mg(e,t,n){let{reference:r,floating:o}=e;const s=Jt(t),i=Mf(t),a=Lf(i),l=_t(t),u=s==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(en(t)){case"start":f[i]-=h*(n&&u?-1:1);break;case"end":f[i]+=h*(n&&u?-1:1);break}return f}const ZP=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=mg(u,r,l),h=r,f={},b=0;for(let p=0;p<a.length;p++){const{name:k,fn:v}=a[p],{x:y,y:w,data:S,reset:_}=await v({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,re
154cts:u,platform:i,elements:{reference:e,floating:t}});c=y??c,d=w??d,f={...f,[k]:{...f[k],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:c,y:d}=mg(u,h,l)),p=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:f}};async function As(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=on(t,e),b=zf(f),k=a[h?d==="floating"?"reference":"floating":d],v=Rs(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(k)))==null||n?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},_=Rs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const XP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=on(e,t)||{};if(u==null)return{};const d=zf(c),h={x:n,y:r},f=Mf(o),b=Lf(f),p=await i.getDimensions(u),k=f==="y",v=k?"top":"left",y=k?"bottom":"right",w=k?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[f]-h[f]-s.floating[b],_=h[f]-s.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let x=E?E[w]:0;(!x||!await(i.isElement==null?void 0:i.isElement(E)))&&(x=a.floating[w]||s.floating[b]);const P=S/2-_/2,R=x/2-p[b]/2-1,C=rn(d[v],R),I=rn(d[y],R),O=C,z=x-p[b]-I,j=x/2-p[b]/2+P,M=oh(O,j,z),F=!l.arrow&&en(o)!=null&&j!==M&&s.reference[b]/2-(j<O?C:I)-p[b]/2<0,V=F?j<O?j-O:j-z:0;return{[f]:h[f]+V,data:{[f]:M,centerOffset:j-M-V,...F&&{alignmentOffset:V}},reset:F}}});function eR(e,t,n){return(e?[...n.filter(o=>en(o)===e),...n.filter(o=>en(o)!==e)]:n.filter(o=>_t(o)===o)).filter(o=>e?en(o)===e||(t?Zl(o)!==o:!1):!0)}const tR=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:s,middlewareData:i,placement:a,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=hg,autoAlignment:f=!0,...b}=on(e,t),p=d!==void 0||h===hg?eR(d||null,f,h):h,k=await As(t,b),v=((n=i.autoPlacement)==null?void 0:n.index)||0,y=p[v];if(y==null)return{};const w=L0(y,s,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==y)return{reset:{placement:p[0]}};const S=[k[_t(y)],k[w[0]],k[w[1]]],_=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:S}],E=p[v+1];if(E)return{data:{index:v+1,overflows:_},reset:{placement:E}};const x=_.map(C=>{const I=en(C.placement);return[C.placement,I&&c?C.overflows.slice(0,2).reduce((O,z)=>O+z,0):C.overflows[0],C.overflows]}).sort((C,I)=>C[1]-I[1]),R=((o=x.filter(C=>C[2].slice(0,en(C[0])?2:3).every(I=>I<=0))[0])==null?void 0:o[0])||x[0][0];return R!==a?{data:{index:v+1,overflows:_},reset:{placement:R}}:{}}}},nR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...k}=on(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=_t(o),y=Jt(a),w=_t(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(w||!p?[Xl(a)]:KP(a)),E=b!=="none";!h&&E&&_.push(...YP(a,p,b,S));const x=[a,..._],P=await As(t,k),R=[];let C=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&R.push(P[v]),d){const j=L0(o,i,S);R.push(P[j[0]],P[j[1]])}if(C=[...C,{placement:o,overflows:R}],!R.every(j=>j<=0)){var I,O;const j=(((I=s.flip)==null?void 0:I.index)||0)+1,M=x[j];if(M&&(!(d==="alignment"?y!==Jt(M):!1)||C.every(A=>A.overflows[0]>0&&Jt(A.placement)===y)))return{data:{index:j,overflows:C},reset:{placement:M}};let F=(O=C.filter(V=>V.overflows[0]<=0).sort((V,A)=>V.overflows[1]-A.overflows[1])[0])==null?void 0:O.placement;if(!F)switch(f){case"bestFit":{var z;const V=(z=C.filter(A=>{if(E){const N=Jt(A.placement);return N===y||N==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(N=>N>0).reduce((N,$)=>N+$,0)]).sort((A,N)=>A[1]-N[1])[0])==null?void 0:z[0];V&&(F=V);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function gg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vg(e){return D0.some(t=>e[t]>=0)}const rR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=on(e,t);switch(r){case"referenceHidden":{const s=await As(t,{...o,elementContext:"reference"}),i=gg(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:vg(i)}}}case"escaped":{const s=await As(t,{...o,altBoundary:!0}),i=gg(s,n.floating);return{data:{escapedOffsets:i,escaped:vg(i)}}}default:return{}}}}};function M0(e){const t=rn(...e.map(s=>s.left)),n=rn(...e.map(s=>s.top)),r=Xe(...e.map(s=>s.right)),o=Xe(...e.map(s=>s.bottom));return{x:t,y:n,width:r-t,height:o-n}}function oR(e){const t=e.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;o<t.length;o++){const s=t[o];!r||s.y-r.y>r.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>Rs(M0(o)))}const sR=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:a=2,x:l,y:u}=on(e,t),c=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),d=oR(c),h=Rs(M0(c)),f=zf(a);function b(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&u!=null)return d.find(k=>l>k.left-f.left&&l<k.right+f.right&&u>
154k.top-f.top&&u<k.bottom+f.bottom)||h;if(d.length>=2){if(Jt(n)==="y"){const C=d[0],I=d[d.length-1],O=_t(n)==="top",z=C.top,j=I.bottom,M=O?C.left:I.left,F=O?C.right:I.right,V=F-M,A=j-z;return{top:z,bottom:j,left:M,right:F,width:V,height:A,x:M,y:z}}const k=_t(n)==="left",v=Xe(...d.map(C=>C.right)),y=rn(...d.map(C=>C.left)),w=d.filter(C=>k?C.left===y:C.right===v),S=w[0].top,_=w[w.length-1].bottom,E=y,x=v,P=x-E,R=_-S;return{top:S,bottom:_,left:E,right:x,width:P,height:R,x:E,y:S}}return h}const p=await s.getElementRects({reference:{getBoundingClientRect:b},floating:r.floating,strategy:i});return o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},z0=new Set(["left","top"]);async function iR(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=_t(n),a=en(n),l=Jt(n)==="y",u=z0.has(i)?-1:1,c=s&&l?-1:1,d=on(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const aR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await iR(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},lR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:k=>{let{x:v,y}=k;return{x:v,y}}},...l}=on(e,t),u={x:n,y:r},c=await As(t,l),d=Jt(_t(o)),h=Df(d);let f=u[h],b=u[d];if(s){const k=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=f+c[k],w=f-c[v];f=oh(y,f,w)}if(i){const k=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=b+c[k],w=b-c[v];b=oh(y,b,w)}const p=a.fn({...t,[h]:f,[d]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:s,[d]:i}}}}}},uR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=on(e,t),c={x:n,y:r},d=Jt(o),h=Df(d);let f=c[h],b=c[d];const p=on(a,t),k=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=h==="y"?"height":"width",S=s.reference[h]-s.floating[w]+k.mainAxis,_=s.reference[h]+s.reference[w]-k.mainAxis;f<S?f=S:f>_&&(f=_)}if(u){var v,y;
vendor: 4,019 bytes, line 154
154const w=h==="y"?"width":"height",S=z0.has(_t(o)),_=s.reference[d]-s.floating[w]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:k.crossAxis),E=s.reference[d]+s.reference[w]+(S?0:((y=i.offset)==null?void 0:y[d])||0)-(S?k.crossAxis:0);b<_?b=_:b>E&&(b=E)}return{[h]:f,[d]:b}}}},cR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=on(e,t),c=await As(t,u),d=_t(o),h=en(o),f=Jt(o)==="y",{width:b,height:p}=s.floating;let k,v;d==="top"||d==="bottom"?(k=d,v=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,k=h==="end"?"top":"bottom");const y=p-c.top-c.bottom,w=b-c.left-c.right,S=rn(p-c[k],y),_=rn(b-c[v],w),E=!t.middlewareData.shift;let x=S,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(x=y),E&&!h){const C=Xe(c.left,0),I=Xe(c.right,0),O=Xe(c.top,0),z=Xe(c.bottom,0);f?P=b-2*(C!==0||I!==0?C+I:Xe(c.left,c.right)):x=p-2*(O!==0||z!==0?O+z:Xe(c.top,c.bottom))}await l({...t,availableWidth:P,availableHeight:x});const R=await i.getDimensions(a.floating);return b!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function Tu(){return typeof window<"u"}function Bs(e){return $0(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=($0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $0(e){return Tu()?e instanceof Node||e instanceof kt(e).Node:!1}function sn(e){return Tu()?e instanceof Element||e instanceof kt(e).Element:!1}function kn(e){return Tu()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function yg(e){return!Tu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}const dR=new Set(["inline","contents"]);function pa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=an(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!dR.has(o)}const hR=new Set(["table","td","th"]);function fR(e){return hR.has(Bs(e))}const pR=[":popover-open",":modal"];function Cu(e){return pR.some(t=>{try{return e.matches(t)}catch{return!1}})}const mR=["transform","translate","scale","rotate","perspective"],gR=["transform","translate","scale","rotate","perspective","filter"],vR=["paint","layout","strict","content"];function $f(e){const t=Ff(),n=sn(e)?an(e):e;return mR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gR.some(r=>(n.willChange||"").includes(r))||vR.some(r=>(n.contain||"").includes(r))}function yR(e){let t=Pr(e);for(;kn(t)&&!Os(t);){if($f(t))return t;if(Cu(t))return null;t=Pr(t)}return null}function Ff(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wR=new Set(["html","body","#document"]);function Os(e){return wR.has(Bs(e))}function an(e){return kt(e).getComputedStyle(e)}function Pu(e){return sn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pr(e){if(Bs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yg(e)&&e.host||_n(e);return yg(t)?t.host:t}function F0(e){const t=Pr(e);return Os(t)?e.ownerDocument?e.ownerDocument.body:e.body:kn(t)&&pa(t)?t:F0(t)}function Ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=F0(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=kt(o);if(s){const a=sh(i);return t.concat(i,i.visualViewport||[],pa(o)?o:[],a&&n?Ji(a):[])}return t.concat(o,Ji(o,[],n))}function sh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B0(e){const t=an(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Jl(n)!==s||Jl(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Bf(e){return sn(e)?e:e.contextElement}function is(e){const t=Bf(e);
vendor: 6,044 bytes, line 154
154if(!kn(t))return wn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=B0(t);let i=(s?Jl(n.width):n.width)/r,a=(s?Jl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const bR=wn(0);function U0(e){const t=kt(e);return!Ff()||!t.visualViewport?bR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kt(e)?!1:t}function uo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bf(e);let i=wn(1);t&&(r?sn(r)&&(i=is(r)):i=is(e));const a=kR(s,n,r)?U0(s):wn(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(s){const h=kt(s),f=r&&sn(r)?kt(r):r;let b=h,p=sh(b);for(;p&&r&&f!==b;){const k=is(p),v=p.getBoundingClientRect(),y=an(p),w=v.left+(p.clientLeft+parseFloat(y.paddingLeft))*k.x,S=v.top+(p.clientTop+parseFloat(y.paddingTop))*k.y;l*=k.x,u*=k.y,c*=k.x,d*=k.y,l+=w,u+=S,b=kt(p),p=sh(b)}}return Rs({width:c,height:d,x:l,y:u})}function Uf(e,t){const n=Pu(e).scrollLeft;return t?t.left+n:uo(_n(e)).left+n}function V0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Uf(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function SR(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=_n(r),a=t?Cu(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=wn(1);const c=wn(0),d=kn(r);if((d||!d&&!s)&&((Bs(r)!=="body"||pa(i))&&(l=Pu(r)),kn(r))){const f=uo(r);u=is(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=i&&!d&&!s?V0(i,l,!0):wn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function _R(e){return Array.from(e.getClientRects())}function ER(e){const t=_n(e),n=Pu(e),r=e.ownerDocument.body,o=Xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Uf(e);const a=-n.scrollTop;return an(r).direction==="rtl"&&(i+=Xe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function xR(e,t){const n=kt(e),r=_n(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=Ff();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const TR=new Set(["absolute","fixed"]);function CR(e,t){const n=uo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=kn(e)?is(e):wn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function wg(e,t,n){let r;if(t==="viewport")r=xR(e,n);else if(t==="document")r=ER(_n(e));else if(sn(t))r=CR(t,n);else{const o=U0(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rs(r)}function W0(e,t){const n=Pr(e);return n===t||!sn(n)||Os(n)?!1:an(n).position==="fixed"||W0(n,t)}function PR(e,t){const n=t.get(e);if(n)return n;let r=Ji(e,[],!1).filter(a=>sn(a)&&Bs(a)!=="body"),o=null;const s=an(e).position==="fixed";let i=s?Pr(e):e;for(;sn(i)&&!Os(i);){const a=an(i),l=$f(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&TR.has(o.position)||pa(i)&&!l&&W0(e,i))?r=r.filter(c=>c!==i):o=a,i=Pr(i)}return t.set(e,r),r}function RR(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Cu(t)?[]:PR(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const d=wg(t,c,o);return u.top=Xe(d.top,u.top),u.right=rn(d.right,u.right),u.bottom=rn(d.bottom,u.bottom),u.left=Xe(d.left,u.left),u},wg(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function AR(e){const{width:t,height:n}=B0(e);return{width:t,height:n}}function OR(e,t,n){const r=kn(t),o=_n(t),s=n==="fixed",i=uo(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=wn(0);function u(){l.x=Uf(o)}if(r||!r&&!s)if((Bs(t)!=="body"||pa(o))&&(a=Pu(t)),r){const f=uo(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const c=o&&!r&&!s?V0(o,a):wn(0),d=i.left+a.scrollLeft-l.x-c.x,h=i.top+a.scrollTop-l.y-c.y;return{x:d,y:h,width:i.width,height:i.height}}function Oc(e){return an(e).position==="static"}function bg(e,t){if(!kn(e)||an(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function H0(e,t){const n=kt(e);if(Cu(e))return n;if(!kn(e)){let o=Pr(e);for(;o&&!Os(o);){if(sn(o)&&!Oc(o))return o;o=Pr(o)}return n}let r=bg(e,t);for(;r&&fR(r)&&Oc(r);)r=bg(r,t);return r&&Os(r)&&Oc(r)&&!$f(r)?n:r||yR(e)||n}const jR=async function(e){const t=this.getOffsetParent||H0,n=this.getDimensions,r=await n(e.floating);return{reference:OR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NR(e){return an(e).direction==="rtl"}const IR={convertOffsetParentRelativeRectToViewportRelativeRect:SR,getDocumentElement:_n,getClippingRect:RR,getOffsetParent:H0,getElementRects:jR,getClientRects:_R,getDimensions:AR,getScale:is,isElement:sn,isRTL:NR};function K0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DR(e,t){let n=null,r;const o=_n(e);function s(){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),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(a||t(),!h||!f)return;const b=Ya(d),p=Ya(o.clientWidth-(c+h)),k=Ya(o.clientHeight-(d+f)),v=Ya(c),w={rootMargin:-b+"px "+-p+"px "+-k+"px "+-v+"px",threshold:Xe(0,rn(1,l))||1};let S=!0;function _(E){const x=E[0].intersectionRatio;if(x!==l){if(!S)return i();x?i(!1,x):r=setTimeout(()=>{i(!1,1e-7)},1e3)}x===1&&!K0(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return i(!0),s}function LR(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Bf(e),c=o||s?[...u?Ji(u):[],...Ji(t)]:[];
vendor: 4,137 bytes, line 154
154c.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=u&&a?DR(u,n):null;let h=-1,f=null;i&&(f=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let b,p=l?uo(e):null;l&&k();function k(){const v=uo(e);p&&!K0(p,v)&&n(),p=v,b=requestAnimationFrame(k)}return n(),()=>{var v;c.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const MR=aR,tL=tR,zR=lR,$R=nR,FR=cR,BR=rR,kg=XP,nL=sR,UR=uR,VR=(e,t,n)=>{const r=new Map,o={platform:IR,...n},s={...o.platform,_c:r};return ZP(e,t,{...o,platform:s})};var WR=typeof document<"u",HR=function(){},wl=WR?m.useLayoutEffect:HR;function eu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!eu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!eu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function G0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sg(e,t){const n=G0(e);return Math.round(t*n)/n}function jc(e){const t=m.useRef(e);return wl(()=>{t.current=e}),t}function KR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=m.useState(r);eu(h,r)||f(r);const[b,p]=m.useState(null),[k,v]=m.useState(null),y=m.useCallback(A=>{A!==E.current&&(E.current=A,p(A))},[]),w=m.useCallback(A=>{A!==x.current&&(x.current=A,v(A))},[]),S=s||b,_=i||k,E=m.useRef(null),x=m.useRef(null),P=m.useRef(c),R=l!=null,C=jc(l),I=jc(o),O=jc(u),z=m.useCallback(()=>{if(!E.current||!x.current)return;const A={placement:t,strategy:n,middleware:h};I.current&&(A.platform=I.current),VR(E.current,x.current,A).then(N=>{const $={...N,isPositioned:O.current!==!1};j.current&&!eu(P.current,$)&&(P.current=$,da.flushSync(()=>{d($)}))})},[h,t,n,I,O]);wl(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const j=m.useRef(!1);wl(()=>(j.current=!0,()=>{j.current=!1}),[]),wl(()=>{if(S&&(E.current=S),_&&(x.current=_),S&&_){if(C.current)return C.current(S,_,z);z()}},[S,_,z,C,R]);const M=m.useMemo(()=>({reference:E,floating:x,setReference:y,setFloating:w}),[y,w]),F=m.useMemo(()=>({reference:S,floating:_}),[S,_]),V=m.useMemo(()=>{const A={position:n,left:0,top:0};if(!F.floating)return A;const N=Sg(F.floating,c.x),$=Sg(F.floating,c.y);return a?{...A,transform:"translate("+N+"px, "+$+"px)",...G0(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:$}},[n,a,F.floating,c.x,c.y]);return m.useMemo(()=>({...c,update:z,refs:M,elements:F,floatingStyles:V}),[c,z,M,F,V])}const GR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kg({element:r.current,padding:o}).fn(n):{}:r?kg({element:r,padding:o}).fn(n):{}}}},qR=(e,t)=>({...MR(e),options:[e,t]}),QR=(e,t)=>({...zR(e),options:[e,t]}),YR=(e,t)=>({...UR(e),options:[e,t]}),JR=(e,t)=>({...$R(e),options:[e,t]}),ZR=(e,t)=>({...FR(e),options:[e,t]}),XR=(e,t)=>({...BR(e),options:[e,t]}),eA=(e,t)=>({...GR(e),options:[e,t]});var tA="Arrow",q0=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return g.jsx(Oe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});q0.displayName=tA;var nA=q0;function rA(e){const[t,n]=m.useState(void 0);return Mn(()=>
154{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Vf="Popper",[Q0,Y0]=zs(Vf),[oA,J0]=Q0(Vf),Z0=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return g.jsx(oA,{scope:t,anchor:r,onAnchorChange:o,children:n})};Z0.displayName=Vf;var X0="PopperAnchor",eb=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=J0(X0,n),i=m.useRef(null),a=Ge(t,i);return m.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:g.jsx(Oe.div,{...o,ref:a})});eb.displayName=X0;var Wf="PopperContent",[sA,iA]=Q0(Wf),tb=m.forwardRef((e,t)=>{var le,vo,Un,jr,Vn,yo;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:b,...p}=e,k=J0(Wf,n),[v,y]=m.useState(null),w=Ge(t,Wn=>y(Wn)),[S,_]=m.useState(null),E=rA(S),x=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,R=r+(s!=="center"?"-"+s:""),C=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},I=Array.isArray(u)?u:[u],O=I.length>0,z={padding:C,boundary:I.filter(lA),altBoundary:O},{refs:j,floatingStyles:M,placement:F,isPositioned:V,middlewareData:A}=KR({strategy:"fixed",placement:R,whileElementsMounted:(...Wn)=>LR(...Wn,{animationFrame:f==="always"}),elements:{reference:k.anchor},middleware:[qR({mainAxis:o+P,alignmentAxis:i}),l&&QR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?YR():void 0,...z}),l&&JR({...z}),ZR({...z,apply:({elements:Wn,rects:Sa,availableWidth:Fu,availableHeight:_a})=>{const{width:Bu,height:qs}=Sa.reference,wo=Wn.floating.style;wo.setProperty("--radix-popper-available-width",`${Fu}px`),wo.setProperty("--radix-popper-available-height",`${_a}px`),wo.setProperty("--radix-popper-anchor-width",`${Bu}px`),wo.setProperty("--radix-popper-anchor-height",`${qs}px`)}}),S&&eA({element:S,padding:a}),uA({arrowWidth:x,arrowHeight:P}),h&&XR({strategy:"referenceHidden",...z})]}),[N,$]=ob(F),X=bn(b);Mn(()=>{V&&(X==null||X())},[V,X]);const K=(le=A.arrow)==null?void 0:le.x,ne=(vo=A.arrow)==null?void 0:vo.y,oe=((Un=A.arrow)==null?void 0:Un.centerOffset)!==0,[je,qe]=m.useState();return Mn(()=>{v&&qe(window.getComputedStyle(v).zIndex)},[v]),g.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:V?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(jr=A.transformOrigin)==null?void 0:jr.x,(Vn=A.transformOrigin)==null?void 0:Vn.y].join(" "),...((yo=A.hide)==null?void 0:yo.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(sA,{scope:n,placedSide:N,onArrowChange:_,arrowX:K,arrowY:ne,shouldHideArrow:oe,children:g.jsx(Oe.div,{"data-side":N,"data-align":$,...p,ref:w,style:{...p.style,animation:V?void 0:"none"}})})})});tb.displayName=Wf;var nb="PopperArrow",aA={top:"bottom",right:"left",bottom:"top",left:"right"},rb=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=iA(nb,r),i=aA[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(nA,{...o,ref:n,style:{...o.style,display:"block"}})})});rb.displayName=nb;function lA(e){return e!==null}var uA=e=>({name:"transformOrigin",options:e,fn(t){var k,v,y;const{placement:n,rects:r,middlewareData:o}=t,i=((k=o.arrow)==null?void 0:k.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=ob(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,f=(((y=o.arrow)==null?void 0:y.y)??0)+l/2;let b="",p="";return u==="bottom"?(b=i?d:`${h}px`,p=`${-l}px`):u==="top"?(b=i?d:`${h}px`,p=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,p=i?d:`${f}px`):u==="left"&&(b=`${r.floating.width+l}px`,p=i?d:`${f}px`),{data:{x:b,y:p}}}});function ob(e){const[t,n="center"]=e.split("-");return[t,n]}var cA=Z0,dA=eb,hA=tb,fA=rb,[Ru,rL]=zs("Tooltip",[Y0]),Au=Y0(),sb="TooltipProvider",pA=700,ih="tooltip.open",[mA,Hf]=Ru(sb),ib=e=>{const{__scopeTooltip:t,delayDuration:n=pA,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=m.useRef(!0),a=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),g.jsx(mA,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};ib.displayName=sb;var Zi="Tooltip",[gA,Ou]=Ru(Zi),ab=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=Hf(Zi,e.__scopeTooltip),u=Au(t),[c,d]=m.useState(null),h=yl(),f=m.useRef(0),b=i??l.disableHoverableContent,p=a??l.delayDuration,k=m.useRef(!1),[v,y]=Pf({prop:r,defaultProp:o??!1,onChange:x=>{x?(l.onOpen(),document.dispatchEvent(new CustomEvent(ih))):l.onClose(),s==null||s(x)},caller:Zi}),w=m.useMemo(()=>v?k.current?"delayed-open":"instant-open":"closed",[v]),S=m.useCallback(()=>{window.clearTimeout(f.current),f.current=0,k.current=!1,y(!0)},[y]),_=m.useCallback(()=>{window.clearTimeout(f.current),f.current=0,y(!1)},[y]),E=m.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{k.current=!0,y(!0),f.current=0},p)},[p,y]);return m.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),g.jsx(cA,{...u,children:g.jsx(gA,{scope:t,contentId:h,open:v,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?E():S()},[l.isOpenDelayedRef,E,S]),onTriggerLeave:m.useCallback(()=>{b?_():(window.clearTimeout(f.current),f.current=0)},[_,b]),onOpen:S,onClose:_,disableHoverableContent:b,children:n})})};ab.displayName=Zi;var ah="TooltipTrigger",lb=m.forwardRef((e,t)=>
vendor: 5,250 bytes, line 154
154{const{__scopeTooltip:n,...r}=e,o=Ou(ah,n),s=Hf(ah,n),i=Au(n),a=m.useRef(null),l=Ge(t,a,o.onTriggerChange),u=m.useRef(!1),c=m.useRef(!1),d=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),g.jsx(dA,{asChild:!0,...i,children:g.jsx(Oe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ge(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ge(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ge(e.onBlur,o.onClose),onClick:ge(e.onClick,o.onClose)})})});lb.displayName=ah;var vA="TooltipPortal",[oL,yA]=Ru(vA,{forceMount:void 0}),js="TooltipContent",ub=m.forwardRef((e,t)=>{const n=yA(js,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Ou(js,e.__scopeTooltip);return g.jsx($s,{present:r||i.open,children:i.disableHoverableContent?g.jsx(cb,{side:o,...s,ref:t}):g.jsx(wA,{side:o,...s,ref:t})})}),wA=m.forwardRef((e,t)=>{const n=Ou(js,e.__scopeTooltip),r=Hf(js,e.__scopeTooltip),o=m.useRef(null),s=Ge(t,o),[i,a]=m.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,h=m.useCallback(()=>{a(null),d(!1)},[d]),f=m.useCallback((b,p)=>{const k=b.currentTarget,v={x:b.clientX,y:b.clientY},y=EA(v,k.getBoundingClientRect()),w=xA(v,y),S=TA(p.getBoundingClientRect()),_=PA([...w,...S]);a(_),d(!0)},[d]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(l&&c){const b=k=>f(k,c),p=k=>f(k,l);return l.addEventListener("pointerleave",b),c.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",p)}}},[l,c,f,h]),m.useEffect(()=>{if(i){const b=p=>{const k=p.target,v={x:p.clientX,y:p.clientY},y=(l==null?void 0:l.contains(k))||(c==null?void 0:c.contains(k)),w=!CA(v,i);y?h():w&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,c,i,u,h]),g.jsx(cb,{...e,ref:s})}),[bA,kA]=Ru(Zi,{isInside:!1}),SA=Yw("TooltipContent"),cb=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ou(js,n),u=Au(n),{onClose:c}=l;return m.useEffect(()=>(document.addEventListener(ih,c),()=>document.removeEventListener(ih,c)),[c]),m.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),g.jsx(_u,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:g.jsxs(hA,{"data-state":l.stateAttribute,...u,...a,ref:t,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:[g.jsx(SA,{children:r}),g.jsx(bA,{scope:n,isInside:!0,children:g.jsx(t1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ub.displayName=js;var db="TooltipArrow",_A=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Au(n);return kA(db,n).isInside?null:g.jsx(fA,{...o,...r,ref:t})});_A.displayName=db;function EA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function xA(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function TA(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function CA(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,c=a.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function PA(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),RA(t)}function RA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var AA=ib,OA=ab,jA=lb,hb=ub;const NA=AA,sL=OA,iL=jA,IA=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 14,690 bytes, line 154
154g.jsx(hb,{ref:r,sideOffset:t,className:ke("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",e),...n}));IA.displayName=hb.displayName;var ma=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},co=typeof window>"u"||"Deno"in globalThis;function ut(){}function DA(e,t){return typeof e=="function"?e(t):e}function lh(e){return typeof e=="number"&&e>=0&&e!==1/0}function fb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xr(e,t){return typeof e=="function"?e(t):e}function At(e,t){return typeof e=="function"?e(t):e}function _g(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Kf(i,t.options))return!1}else if(!ea(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Eg(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Xi(t.options.mutationKey)!==Xi(s))return!1}else if(!ea(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Kf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xi)(e)}function Xi(e){return JSON.stringify(e,(t,n)=>ch(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ea(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ea(e[n],t[n])):!1}function pb(e,t){if(e===t)return e;const n=xg(e)&&xg(t);if(n||ch(e)&&ch(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const d=n?c:s[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=pb(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function uh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function xg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ch(e){if(!Tg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Tg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Tg(e){return Object.prototype.toString.call(e)==="[object Object]"}function LA(e){return new Promise(t=>{setTimeout(t,e)})}function dh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pb(e,t):t}function MA(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zA(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gf=Symbol();function mb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Gf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $A(e,t){return typeof e=="function"?e(...t):!!e}var Gr,ir,us,ov,FA=(ov=class extends ma{constructor(){super();Q(this,Gr);Q(this,ir);Q(this,us);U(this,us,t=>{if(!co&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,ir)||this.setEventListener(T(this,us))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,ir))==null||t.call(this),U(this,ir,void 0))}setEventListener(t){var n;U(this,us,t),(n=T(this,ir))==null||n.call(this),U(this,ir,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Gr)!==t&&(U(this,Gr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Gr)=="boolean"?T(this,Gr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gr=new WeakMap,ir=new WeakMap,us=new WeakMap,ov),qf=new FA,cs,ar,ds,sv,BA=(sv=class extends ma{constructor(){super();Q(this,cs,!0);Q(this,ar);Q(this,ds);U(this,ds,t=>{if(!co&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,ar)||this.setEventListener(T(this,ds))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,ar))==null||t.call(this),U(this,ar,void 0))}setEventListener(t){var n;U(this,ds,t),(n=T(this,ar))==null||n.call(this),U(this,ar,t(this.setOnline.bind(this)))}setOnline(t){T(this,cs)!==t&&(U(this,cs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,cs)}},cs=new WeakMap,ar=new WeakMap,ds=new WeakMap,sv),tu=new BA;function hh(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function UA(e){return Math.min(1e3*2**e,3e4)}function gb(e){return(e??"online")==="online"?tu.isOnline():!0}var vb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Nc(e){return e instanceof vb}function yb(e){let t=!1,n=0,r=!1,o;const s=hh(),i=p=>{var k;r||(h(new vb(p)),(k=e.abort)==null||k.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>qf.isFocused()&&(e.networkMode==="always"||tu.isOnline())&&e.canRun(),c=()=>gb(e.networkMode)&&e.canRun(),d=p=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,p),o==null||o(),s.resolve(p))},h=p=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,p),o==null||o(),s.reject(p))},f=()=>new Promise(p=>{var k;o=v=>{(r||u())&&p(v)},(k=e.onPause)==null||k.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),b=()=>{if(r)return;let p;const k=n===0?e.initialPromise:void 0;try{p=k??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(d).catch(v=>{var E;if(r)return;const y=e.retry??(co?0:3),w=e.retryDelay??UA,S=typeof w=="function"?w(n,v):w,_=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,v);if(t||!_){h(v);return}n++,(E=e.onFail)==null||E.call(e,n,v),LA(S).then(()=>u()?void 0:f()).then(()=>{t?h(v):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():f().then(b),s)}}var VA=e=>setTimeout(e,0);function WA(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=VA;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var We=WA(),qr,iv,wb=(iv=class{constructor(){Q(this,qr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lh(this.gcTime)&&U(this,qr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(co?1/0:5*60*1e3))}clearGcTimeout(){T(this,qr)&&(clearTimeout(T(this,qr)),U(this,qr,void 0))}},qr=new WeakMap,iv),hs,Qr,Rt,Yr,Je,na,Jr,Kt,xn,av,HA=(av=class extends wb{constructor(t){super();Q(this,Kt);Q(this,hs);Q(this,Qr);Q(this,Rt);Q(this,Yr);Q(this,Je);Q(this,na);Q(this,Jr);U(this,Jr,!1),U(this,na,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,Yr,t.client),U(this,Rt,T(this,Yr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,hs,KA(this.options)),this.state=t.state??T(this,hs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Je))==null?void 0:t.promise}setOptions(t){this.options={...T(this,na),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Rt).remove(this)}setData(t,n){const r=dh(this.state.data,t,this.options);return se(this,Kt,xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){se(this,Kt,xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,Je))==null?void 0:r.promise;return(o=T(this,Je))==null||o.cancel(t),n?n.then(ut).catch(ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,hs))}isActive(){return this.observers.some(t=>At(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>xr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!fb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Je))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Je))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Je)&&(T(this,Jr)?T(this,Je).cancel({revert:!0}):T(this,Je).cancelRetry()),this.scheduleGc()),T(this,Rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||se(this,Kt,xn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Je))return T(this,Je).continueRetry(),T(this,Je).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(U(this,Jr,!0),r.signal)})},s=()=>{const h=mb(this.options,n),b=(()=>{const p={client:T(this,Yr),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return U(this,Jr,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Yr),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),U(this,Qr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&se(this,Kt,xn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,b,p,k;Nc(h)&&h.silent||se(this,Kt,xn).call(this,{type:"error",error:h}),Nc(h)||((b=(f=T(this,Rt).config).onError)==null||b.call(f,h,this),(k=(p=T(this,Rt).config).onSettled)==null||k.call(p,this.state.data,h,this)),this.scheduleGc()};return U(this,Je,yb({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,b,p,k;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){l(v);return}(b=(f=T(this,Rt).config).onSuccess)==null||b.call(f,h,this),(k=(p=T(this,Rt).config).onSettled)==null||k.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{se(this,Kt,xn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{se(this,Kt,xn).call(this,{type:"pause"})},onContinue:()=>{se(this,Kt,xn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Je).start()}},hs=new WeakMap,Qr=new WeakMap,Rt=new WeakMap,Yr=new WeakMap,Je=new WeakMap,na=new WeakMap,Jr=new WeakMap,Kt=new WeakSet,xn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...bb(r.data,this.options),fetchMeta:t.meta??null};case"success":return U(this,Qr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Nc(o)&&o.revert&&T(this,Qr)?{...T(this,Qr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),We.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Rt).notify({query:this,type:"updated",action:t})})},av);function bb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function KA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var hn,lv,GA=(lv=class extends ma{constructor(t={}){super();Q(this,hn);this.config=t,U(this,hn,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Kf(o,n);let i=this.get(s);return i||(i=new HA({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){T(this,hn).has(t.queryHash)||(T(this,hn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,hn).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,hn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>
154{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,hn).get(t)}getAll(){return[...T(this,hn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_g(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>_g(t,r)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},hn=new WeakMap,lv),fn,tt,Zr,pn,Jn,uv,qA=(uv=class extends wb{constructor(t){super();Q(this,pn);Q(this,fn);Q(this,tt);Q(this,Zr);this.mutationId=t.mutationId,U(this,tt,t.mutationCache),U(this,fn,[]),this.state=t.state||QA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,fn).includes(t)||(T(this,fn).push(t),this.clearGcTimeout(),T(this,tt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,fn,T(this,fn).filter(n=>n!==t)),this.scheduleGc(),T(this,tt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,fn).length||(this.state.status==="pending"?this.scheduleGc():T(this,tt).remove(this))}continue(){var t;return((t=T(this,Zr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,c,d,h,f,b,p,k,v,y,w,S,_,E,x,P;const n=()=>{se(this,pn,Jn).call(this,{type:"continue"})};U(this,Zr,yb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,C)=>{se(this,pn,Jn).call(this,{type:"failed",failureCount:R,error:C})},onPause:()=>{se(this,pn,Jn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,tt).canRun(this)}));const r=this.state.status==="pending",o=!T(this,Zr).canStart();try{if(r)n();else{se(this,pn,Jn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=T(this,tt).config).onMutate)==null?void 0:i.call(s,t,this));const C=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));C!==this.state.context&&se(this,pn,Jn).call(this,{type:"pending",context:C,variables:t,isPaused:o})}const R=await T(this,Zr).start();return await((c=(u=T(this,tt).config).onSuccess)==null?void 0:c.call(u,R,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,R,t,this.state.context)),await((b=(f=T(this,tt).config).onSettled)==null?void 0:b.call(f,R,null,this.state.variables,this.state.context,this)),await((k=(p=this.options).onSettled)==null?void 0:k.call(p,R,null,t,this.state.context)),se(this,pn,Jn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((y=(v=T(this,tt).config).onError)==null?void 0:y.call(v,R,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,R,t,this.state.context)),await((E=(_=T(this,tt).config).onSettled)==null?void 0:E.call(_,void 0,R,this.state.variables,this.state.context,this)),await((P=(x=this.options).onSettled)==null?void 0:P.call(x,void 0,R,t,this.state.context)),R}finally{se(this,pn,Jn).call(this,{type:"error",error:R})}}finally{T(this,tt).runNext(this)}}},fn=new WeakMap,tt=new WeakMap,Zr=new WeakMap,pn=new WeakSet,Jn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{T(this,fn).forEach(r=>{r.onMutationUpdate(t)}),T(this,tt).notify({mutation:this,type:"updated",action:t})})},uv);function QA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Rn,Gt,ra,cv,YA=(cv=class extends ma{constructor(t={}){super();Q(this,Rn);Q(this,Gt);Q(this,ra);this.config=t,U(this,Rn,new Set),U(this,Gt,new Map),U(this,ra,0)}build(t,n,r){const o=new qA({mutationCache:this,mutationId:++xa(this,ra)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,Rn).add(t);const n=Ja(t);if(typeof n=="string"){const r=T(this,Gt).get(n);r?r.push(t):T(this,Gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Rn).delete(t)){const n=Ja(t);if(typeof n=="string"){const r=T(this,Gt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,Gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ja(t);if(typeof n=="string"){const r=T(this,Gt).get(n),o=r==null?void 0:r.find(s=>
154s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ja(t);if(typeof n=="string"){const o=(r=T(this,Gt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){We.batch(()=>{T(this,Rn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Rn).clear(),T(this,Gt).clear()})}getAll(){return Array.from(T(this,Rn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eg(n,r))}findAll(t={}){return this.getAll().filter(n=>Eg(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return We.batch(()=>Promise.all(t.map(n=>n.continue().catch(ut))))}},Rn=new WeakMap,Gt=new WeakMap,ra=new WeakMap,cv);function Ja(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Cg(e){return{onFetch:(t,n)=>{var c,d,h,f,b;const r=t.options,o=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const k=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=mb(t.options,t.fetchOptions),y=async(w,S,_)=>{if(p)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const x=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return k(I),I})(),P=await v(x),{maxPages:R}=t.options,C=_?zA:MA;return{pages:C(w.pages,P,R),pageParams:C(w.pageParams,S,R)}};if(o&&s.length){const w=o==="backward",S=w?JA:Pg,_={pages:s,pageParams:i},E=S(r,_);a=await y(_,E,w)}else{const w=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:Pg(r,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var p,k;return(k=(p=t.options).persister)==null?void 0:k.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Pg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function JA(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ce,lr,ur,fs,ps,cr,ms,gs,dv,ZA=(dv=class{constructor(e={}){Q(this,Ce);Q(this,lr);Q(this,ur);Q(this,fs);Q(this,ps);Q(this,cr);Q(this,ms);Q(this,gs);U(this,Ce,e.queryCache||new GA),U(this,lr,e.mutationCache||new YA),U(this,ur,e.defaultOptions||{}),U(this,fs,new Map),U(this,ps,new Map),U(this,cr,0)}mount(){xa(this,cr)._++,T(this,cr)===1&&(U(this,ms,qf.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ce).onFocus())})),U(this,gs,tu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ce).onOnline())})))}unmount(){var e,t;xa(this,cr)._--,T(this,cr)===0&&((e=T(this,ms))==null||e.call(this),U(this,ms,void 0),(t=T(this,gs))==null||t.call(this),U(this,gs,void 0))}isFetching(e){return T(this,Ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,lr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ce).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(xr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,Ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,Ce).get(r.queryHash),s=o==null?void 0:o.state.data,i=DA(t,s);if(i!==void 0)return T(this,Ce).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>T(this,Ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ce);We.batch(()=>
154{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ce);return We.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=We.batch(()=>T(this,Ce).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ut).catch(ut)}invalidateQueries(e,t={}){return We.batch(()=>(T(this,Ce).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=We.batch(()=>T(this,Ce).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ut)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ce).build(this,t);return n.isStaleByTime(xr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ut).catch(ut)}fetchInfiniteQuery(e){return e.behavior=Cg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ut).catch(ut)}ensureInfiniteQueryData(e){return e.behavior=Cg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tu.isOnline()?T(this,lr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ce)}getMutationCache(){return T(this,lr)}getDefaultOptions(){return T(this,ur)}setDefaultOptions(e){U(this,ur,e)}setQueryDefaults(e,t){T(this,fs).set(Xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,fs).values()],n={};return t.forEach(r=>{ea(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,ps).set(Xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,ps).values()],n={};return t.forEach(r=>{ea(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,ur).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Kf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Gf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,ur).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ce).clear(),T(this,lr).clear()}},Ce=new WeakMap,lr=new WeakMap,ur=new WeakMap,fs=new WeakMap,ps=new WeakMap,cr=new WeakMap,ms=new WeakMap,gs=new WeakMap,dv),at,ie,oa,nt,Xr,vs,dr,hr,sa,ys,ws,eo,to,fr,bs,ue,hi,fh,ph,mh,gh,vh,yh,wh,kb,hv,XA=(hv=class extends ma{constructor(t,n){super();Q(this,ue);Q(this,at);Q(this,ie);Q(this,oa);Q(this,nt);Q(this,Xr);Q(this,vs);Q(this,dr);Q(this,hr);Q(this,sa);Q(this,ys);Q(this,ws);Q(this,eo);Q(this,to);Q(this,fr);Q(this,bs,new Set);this.options=n,U(this,at,t),U(this,hr,null),U(this,dr,hh()),this.options.experimental_prefetchInRender||T(this,dr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,ie).addObserver(this),Rg(T(this,ie),this.options)?se(this,ue,hi).call(this):this.updateResult(),se(this,ue,gh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bh(T(this,ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bh(T(this,ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,se(this,ue,vh).call(this),se(this,ue,yh).call(this),T(this,ie).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,ie);if(this.options=T(this,at).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof At(this.options.enabled,T(this,ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");se(this,ue,wh).call(this),T(this,ie).setOptions(this.options),n._defaulted&&!uh(this.options,n)&&T(this,at).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,ie),observer:this});const o=this.hasListeners();o&&Ag(T(this,ie),r,this.options,n)&&se(this,ue,hi).call(this),this.updateResult(),o&&(T(this,ie)!==r||At(this.options.enabled,T(this,ie))!==At(n.enabled,T(this,ie))||xr(this.options.staleTime,T(this,ie))!==xr(n.staleTime,T(this,ie)))&&se(this,ue,fh).call(this);const s=se(this,ue,ph).call(this);o&&(T(this,ie)!==r||At(this.options.enabled,T(this,ie))!==At(n.enabled,T(this,ie))||s!==T(this,fr))&&se(this,ue,mh).call(this,s)}getOptimisticResult(t){const n=T(this,at).getQueryCache().build(T(this,at),t),r=this.createResult(n,t);return tO(this,r)&&(U(this,nt,r),U(this,vs,this.options),U(this,Xr,T(this,ie).state)),r}getCurrentResult(){return T(this,nt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){T(this,bs).add(t)}getCurrentQuery(){return T(this,ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,at).defaultQueryOptions(t),r=T(this,at).getQueryCache().build(T(this,at),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return se(this,ue,hi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,nt)))}createResult(t,n){var R;const r=T(this,ie),o=this.options,s=T(this,nt),i=T(this,Xr),a=T(this,vs),u=t!==r?t.state:T(this,oa),{state:c}=t;let d={...c},h=!1,f;if(n._optimisticResults){const C=this.hasListeners(),I=!C&&Rg(t,n),O=C&&Ag(t,r,n,o);(I||O)&&(d={...d,...bb(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:p,status:k}=d;f=d.data;let v=!1;if(n.placeholderData!==void 0&&f===void 0&&k==="pending"){let C;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(C=s.data,v=!0):C=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,ws))==null?void 0:R.state.data,T(this,ws)):n.placeholderData,C!==void 0&&(k="success",f=dh(s==null?void 0:s.data,C,n),h=!0)}if(n.select&&f!==void 0&&!v)if(s&&f===(i==null?void 0:i.data)&&n.select===T(this,sa))f=T(this,ys);else try{U(this,sa,n.select),f=n.select(f),f=dh(s==null?void 0:s.data,f,n),U(this,ys,f),U(this,hr,null)}catch(C){U(this,hr,C)}T(this,hr)&&(b=T(this,hr),f=T(this,ys),p=Date.now(),k="error");const y=d.fetchStatus==="fetching",w=k==="pending",S=k==="error",_=w&&y,E=f!==void 0,P={status:k,fetchStatus:d.fetchStatus,isPending:w,isSuccess:k==="success",isError:S,isInitialLoading:_,isLoading:_,data:f,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdate
vendor: 4,112 bytes, line 154
154Count:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!w,isLoadingError:S&&!E,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&E,isStale:Qf(t,n),refetch:this.refetch,promise:T(this,dr),isEnabled:At(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const C=z=>{P.status==="error"?z.reject(P.error):P.data!==void 0&&z.resolve(P.data)},I=()=>{const z=U(this,dr,P.promise=hh());C(z)},O=T(this,dr);switch(O.status){case"pending":t.queryHash===r.queryHash&&C(O);break;case"fulfilled":(P.status==="error"||P.data!==O.value)&&I();break;case"rejected":(P.status!=="error"||P.error!==O.reason)&&I();break}}return P}updateResult(){const t=T(this,nt),n=this.createResult(T(this,ie),this.options);if(U(this,Xr,T(this,ie).state),U(this,vs,this.options),T(this,Xr).data!==void 0&&U(this,ws,T(this,ie)),uh(n,t))return;U(this,nt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!T(this,bs).size)return!0;const i=new Set(s??T(this,bs));return this.options.throwOnError&&i.add("error"),Object.keys(T(this,nt)).some(a=>{const l=a;return T(this,nt)[l]!==t[l]&&i.has(l)})};se(this,ue,kb).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&se(this,ue,gh).call(this)}},at=new WeakMap,ie=new WeakMap,oa=new WeakMap,nt=new WeakMap,Xr=new WeakMap,vs=new WeakMap,dr=new WeakMap,hr=new WeakMap,sa=new WeakMap,ys=new WeakMap,ws=new WeakMap,eo=new WeakMap,to=new WeakMap,fr=new WeakMap,bs=new WeakMap,ue=new WeakSet,hi=function(t){se(this,ue,wh).call(this);let n=T(this,ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ut)),n},fh=function(){se(this,ue,vh).call(this);const t=xr(this.options.staleTime,T(this,ie));if(co||T(this,nt).isStale||!lh(t))return;const r=fb(T(this,nt).dataUpdatedAt,t)+1;U(this,eo,setTimeout(()=>{T(this,nt).isStale||this.updateResult()},r))},ph=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,ie)):this.options.refetchInterval)??!1},mh=function(t){se(this,ue,yh).call(this),U(this,fr,t),!(co||At(this.options.enabled,T(this,ie))===!1||!lh(T(this,fr))||T(this,fr)===0)&&U(this,to,setInterval(()=>{(this.options.refetchIntervalInBackground||qf.isFocused())&&se(this,ue,hi).call(this)},T(this,fr)))},gh=function(){se(this,ue,fh).call(this),se(this,ue,mh).call(this,se(this,ue,ph).call(this))},vh=function(){T(this,eo)&&(clearTimeout(T(this,eo)),U(this,eo,void 0))},yh=function(){T(this,to)&&(clearInterval(T(this,to)),U(this,to,void 0))},wh=function(){const t=T(this,at).getQueryCache().build(T(this,at),this.options);if(t===T(this,ie))return;const n=T(this,ie);U(this,ie,t),U(this,oa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},kb=function(t){We.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,nt))}),T(this,at).getQueryCache().notify({query:T(this,ie),type:"observerResultsUpdated"})})},hv);function eO(e,t){return At(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rg(e,t){return eO(e,t)||e.state.data!==void 0&&bh(e,t,t.refetchOnMount)}function bh(e,t,n){if(At(t.enabled,e)!==!1&&xr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qf(e,t)}return!1}function Ag(e,t,n,r){return(e!==t||At(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Qf(e,n)}function Qf(e,t){return At(t.enabled,e)!==!1&&e.isStaleByTime(xr(t.staleTime,e))}function tO(e,t){return!uh(e.getCurrentResult(),t)}var Sb=m.createContext(void 0),_b=e=>{const t=m.useContext(Sb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nO=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(Sb.Provider,{value:e,children:t})),Eb=m.createContext(!1),rO=()=>m.useContext(Eb);Eb.Provider;function oO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
154var sO=m.createContext(oO()),iO=()=>m.useContext(sO),aO=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},lO=e=>{m.useEffect(()=>{e.clearReset()},[e])},uO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||$A(n,[e.error,r])),cO=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},dO=(e,t)=>e.isLoading&&e.isFetching&&!t,hO=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Og=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function fO(e,t,n){var d,h,f,b,p;const r=rO(),o=iO(),s=_b(),i=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,i),i._optimisticResults=r?"isRestoring":"optimistic",cO(i),aO(i,o),lO(o);const a=!s.getQueryCache().get(i.queryHash),[l]=m.useState(()=>new t(s,i)),u=l.getOptimisticResult(i),c=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(k=>{const v=c?l.subscribe(We.batchCalls(k)):ut;return l.updateResult(),v},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(i)},[i,l]),hO(i,u))throw Og(i,l,o);if(uO({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((b=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||b.call(f,i,u),i.experimental_prefetchInRender&&!co&&dO(u,r)){const k=a?Og(i,l,o):(p=s.getQueryCache().get(i.queryHash))==null?void 0:p.promise;k==null||k.catch(ut).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}function pO(e,t){return fO(e,XA)}/** 155 * react-router v7.14.2 156 * 157 * Copyright (c) Remix Software Inc. 158 * 159 * This source code is licensed under the MIT license found in the 160 * LICENSE.md file in the root directory of this source tree. 161 * 162 * @license MIT 163 */var jg="popstate";function Ng(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function mO(e={}){function t(r,o){var u;let s=(u=o.state)==null?void 0:u.masked,{pathname:i,search:a,hash:l}=s||r.location;return kh("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:ta(o)}return vO(t,n,null,e)}function be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gO(){return Math.random().toString(36).substring(2,10)}function Ig(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function kh(e,t,n=null,r,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Us(t):t,state:n,key:t&&t.key||r||gO(),unstable_mask:o}}function ta({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Us(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function vO(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a="POP",l=null,u=c();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function c(){return(i.state||{idx:null}).idx}function d(){a="POP";let k=c(),v=k==null?null:k-u;u=k,l&&l({action:a,location:p.location,delta:v})}function h(k,v){a="PUSH";let y=Ng(k)?k:kh(p.location,k,v);u=c()+1;let w=Ig(y,u),S=p.createHref(y.unstable_mask||y);try{i.pushState(w,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(S)}s&&l&&l({action:a,location:p.location,delta:1})}function f(k,v){a="REPLACE";let y=Ng(k)?k:kh(p.location,k,v);u=c();let w=Ig(y,u),S=p.createHref(y.unstable_mask||y);i.replaceState(w,"",S),s&&l&&l({action:a,location:p.location,delta:0})}function b(k){return yO(k)}let p={get action(){return a},get location(){return e(o,i)},listen(k){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(jg,d),l=k,()=>{o.removeEventListener(jg,d),l=null}},createHref(k){return t(o,k)},createURL:b,encodeLocation(k){let v=b(k);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:f,go(k){return i.go(k)}};return p}function yO(e,t=!1){let n="http://localhost";
163typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),be(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ta(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function xb(e,t,n="/"){return wO(e,t,n,!1)}function wO(e,t,n,r){let o=typeof t=="string"?Us(t):t,s=zn(o.pathname||"/",n);if(s==null)return null;let i=Tb(e);bO(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=OO(s);a=RO(i[l],u,r)}return a}function Tb(e,t=[],n=[],r="",o=!1){let s=(i,a,l=o,u)=>{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&l)return;be(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=tn([r,c.relativePath]),h=n.concat(c);i.children&&i.children.length>0&&(be(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Tb(i.children,t,h,d,l)),!(i.path==null&&!i.index)&&t.push({path:d,score:CO(d,i.index),routesMeta:h})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let u of Cb(i.path))s(i,a,!0,u)}),t}function Cb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=Cb(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function bO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:PO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var kO=/^:[\w-]+$/,SO=3,_O=2,EO=1,xO=10,TO=-2,Dg=e=>e==="*";function CO(e,t){let n=e.split("/"),r=n.length;return n.some(Dg)&&(r+=TO),t&&(r+=_O),n.filter(o=>!Dg(o)).reduce((o,s)=>o+(kO.test(s)?SO:s===""?EO:xO),r)}function PO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function RO(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=nu({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=nu({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
163Object.assign(o,d.params),i.push({params:o,pathname:tn([s,d.pathname]),pathnameBase:DO(tn([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=tn([s,d.pathnameBase]))}return i}function nu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=AO(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:d},h)=>{if(c==="*"){let b=a[h]||"";i=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const f=a[h];return d&&!f?u[c]=void 0:u[c]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function AO(e,t=!1,n=!0){Mt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l,u,c)=>{if(r.push({paramName:a,isOptional:l!=null}),l){let d=c.charAt(u+i.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function OO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var jO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function NO(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Us(e):e,s;return n?(n=Pb(n),n.startsWith("/")?s=Lg(n.substring(1),"/"):s=Lg(n,t)):s=t,{pathname:s,search:LO(r),hash:MO(o)}}function Lg(e,t){let n=ru(t).split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ic(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` 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 IO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yf(e){let t=IO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ju(e,t,n,r=!1){let o;typeof e=="string"?o=Us(e):(o={...e},be(!o.pathname||!o.pathname.includes("?"),Ic("?","pathname","search",o)),be(!o.pathname||!o.pathname.includes("#"),Ic("#","pathname","hash",o)),be(!o.search||!o.search.includes("#"),Ic("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=NO(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Pb=e=>e.replace(/\/\/+/g,"/"),tn=e=>Pb(e.join("/")),ru=e=>e.replace(/\/+$/,""),DO=e=>ru(e).replace(/^\/*/,"/"),LO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,MO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,zO=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function $O(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function FO(e){let t=e.map(n=>n.route.path).filter(Boolean);return tn(t)||"/"}var Rb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ab(e,t){let n=e;if(typeof n!="string"||!jO.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Rb)try{let s=new URL(window.location.href),i=n.startsWith("//")?new URL(s.protocol+n):new URL(n),a=zn(i.pathname,t);i.origin===s.origin&&a!=null?n=a+i.search+i.hash:o=!0}catch{Mt(!1,`<Link to="${n}">
163 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ob=["POST","PUT","PATCH","DELETE"];new Set(Ob);var BO=["GET",...Ob];new Set(BO);var Vs=m.createContext(null);Vs.displayName="DataRouter";var Nu=m.createContext(null);Nu.displayName="DataRouterState";var jb=m.createContext(!1);function UO(){return m.useContext(jb)}var Nb=m.createContext({isTransitioning:!1});Nb.displayName="ViewTransition";var VO=m.createContext(new Map);VO.displayName="Fetchers";var WO=m.createContext(null);WO.displayName="Await";var Tt=m.createContext(null);Tt.displayName="Navigation";var ga=m.createContext(null);ga.displayName="Location";var ln=m.createContext({outlet:null,matches:[],isDataRoute:!1});ln.displayName="Route";var Jf=m.createContext(null);Jf.displayName="RouteError";var Ib="REACT_ROUTER_ERROR",HO="REDIRECT",KO="ROUTE_ERROR_RESPONSE";function GO(e){if(e.startsWith(`${Ib}:${HO}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function qO(e){if(e.startsWith(`${Ib}:${KO}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new zO(t.status,t.statusText,t.data)}catch{}}function QO(e,{relative:t}={}){be(Ws(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=m.useContext(Tt),{hash:o,pathname:s,search:i}=va(e,{relative:t}),a=s;return n!=="/"&&(a=s==="/"?n:tn([n,s])),r.createHref({pathname:a,search:i,hash:o})}function Ws(){return m.useContext(ga)!=null}function Ct(){return be(Ws(),"useLocation() may be used only in the context of a <Router> component."),m.useContext(ga).location}var Db="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lb(e){m.useContext(Tt).static||m.useLayoutEffect(e)}function Iu(){let{isDataRoute:e}=m.useContext(ln);return e?lj():YO()}function YO(){be(Ws(),"useNavigate() may be used only in the context of a <Router> component.");let e=m.useContext(Vs),{basename:t,navigator:n}=m.useContext(Tt),{matches:r}=m.useContext(ln),{pathname:o}=Ct(),s=JSON.stringify(Yf(r)),i=m.useRef(!1);return Lb(()=>{i.current=!0}),m.useCallback((l,u={})=>{if(Mt(i.current,Db),!i.current)return;if(typeof l=="number"){n.go(l);return}let c=ju(l,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:tn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,s,o,e])}m.createContext(null);function aL(){let{matches:e}=m.useContext(ln),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function va(e,{relative:t}={}){let{matches:n}=m.useContext(ln),{pathname:r}=Ct(),o=JSON.stringify(Yf(n));return m.useMemo(()=>ju(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function JO(e,t){return Mb(e,t)}function Mb(e,t,n){var k;be(Ws(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=m.useContext(Tt),{matches:o}=m.useContext(ln),s=o[o.length-1],i=s?s.params:{},a=s?s.pathname:"/",l=s?s.pathnameBase:"/",u=s&&s.route;{let v=u&&u.path||"";$b(a,!u||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 164 165Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let c=Ct(),d;if(t){let v=typeof t=="string"?Us(t):t;be(l==="/"||((k=v.pathname)==null?void 0:k.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${v.pathname}" was given in the \`location\` prop.`),d=v}else d=c;let h=d.pathname||"/",f=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=xb(e,{pathname:f});Mt(u||b!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Mt(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let p=nj(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:tn([l,r.encodeLocation?r.encodeLocation(v.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:tn([l,r.encodeLocation?r.encodeLocation(v.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),o,n);return t&&p?m.createElement(ga.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},p):p}function ZO(){let e=aj(),t=$O(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=m.createElement(m.Fragment,null,m.createElement("p",null,"ð¿ Hey developer ð"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:s},"ErrorBoundary")," or"," ",m.createElement("code",{style:s},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application
165Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,i)}var XO=m.createElement(ZO,null),zb=class extends m.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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=qO(e.digest);n&&(e=n)}let t=e!==void 0?m.createElement(ln.Provider,{value:this.props.routeContext},m.createElement(Jf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?m.createElement(ej,{error:e},t):t}};zb.contextType=jb;var Dc=new WeakMap;function ej({children:e,error:t}){let{basename:n}=m.useContext(Tt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=GO(t.digest);if(r){let o=Dc.get(t);if(o)throw o;let s=Ab(r.location,n);if(Rb&&!Dc.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Dc.set(t,i),i}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function tj({routeContext:e,match:t,children:n}){let r=m.useContext(Vs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(ln.Provider,{value:e},n)}function nj(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=r==null?void 0:r.errors;if(s!=null){let c=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);be(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,c+1))}let i=!1,a=-1;if(n&&r){i=r.renderFallback;for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=c),d.route.id){let{loaderData:h,errors:f}=r,b=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||b){n.isStatic&&(i=!0),a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}}let l=n==null?void 0:n.onError,u=r&&l?(c,d)=>{var h,f;l(c,{location:r.location,params:((f=(h=r.matches)==null?void 0:h[0])==null?void 0:f.params)??{},unstable_pattern:FO(r.matches),errorInfo:d})}:void 0;return o.reduceRight((c,d,h)=>{let f,b=!1,p=null,k=null;r&&(f=s&&d.route.id?s[d.route.id]:void 0,p=d.route.errorElement||XO,i&&(a<0&&h===0?($b("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,k=null):a===h&&(b=!0,k=d.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,h+1)),y=()=>{let w;return f?w=p:b?w=k:d.route.Component?w=m.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=c,m.createElement(tj,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:r!=null},children:w})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?m.createElement(zb,{location:r.location,revalidation:r.revalidation,component:p,error:f,children:y(),routeC
165ontext:{outlet:null,matches:v,isDataRoute:!0},onError:u}):y()},null)}function Zf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rj(e){let t=m.useContext(Vs);return be(t,Zf(e)),t}function oj(e){let t=m.useContext(Nu);return be(t,Zf(e)),t}function sj(e){let t=m.useContext(ln);return be(t,Zf(e)),t}function Xf(e){let t=sj(e),n=t.matches[t.matches.length-1];return be(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ij(){return Xf("useRouteId")}function aj(){var r;let e=m.useContext(Jf),t=oj("useRouteError"),n=Xf("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function lj(){let{router:e}=rj("useNavigate"),t=Xf("useNavigate"),n=m.useRef(!1);return Lb(()=>{n.current=!0}),m.useCallback(async(o,s={})=>{Mt(n.current,Db),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var Mg={};function $b(e,t,n){!t&&!Mg[e]&&(Mg[e]=!0,Mt(!1,n))}m.memo(uj);function uj({routes:e,future:t,state:n,isStatic:r,onError:o}){return Mb(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function nr({to:e,replace:t,state:n,relative:r}){be(Ws(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=m.useContext(Tt);Mt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=m.useContext(ln),{pathname:i}=Ct(),a=Iu(),l=ju(e,Yf(s),i,r==="path"),u=JSON.stringify(l);return m.useEffect(()=>{a(JSON.parse(u),{replace:t,state:n,relative:r})},[a,u,r,t,n]),null}function H(e){be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function cj({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1,unstable_useTransitions:i}){be(!Ws(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=m.useMemo(()=>({basename:a,navigator:o,static:s,unstable_useTransitions:i,future:{}}),[a,o,s,i]);typeof n=="string"&&(n=Us(n));let{pathname:u="/",search:c="",hash:d="",state:h=null,key:f="default",unstable_mask:b}=n,p=m.useMemo(()=>{let k=zn(u,a);return k==null?null:{location:{pathname:k,search:c,hash:d,state:h,key:f,unstable_mask:b},navigationType:r}},[a,u,c,d,h,f,r,b]);return Mt(p!=null,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:m.createElement(Tt.Provider,{value:l},m.createElement(ga.Provider,{children:t,value:p}))}function dj({children:e,location:t}){return JO(Sh(e),t)}function Sh(e,t=[]){let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let s=[...t,o];if(r.type===m.Fragment){n.push.apply(n,Sh(r.props.children,s));return}be(r.type===H,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||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=Sh(r.props.children,s)),n.push(i)}),n}var bl="get",kl="application/x-www-form-urlencoded";function Du(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function hj(e){return Du(e)&&e.tagName.toLowerCase()==="button"}function fj(e){return Du(e)&&e.tagName.toLowerCase()==="form"}function pj(e){return Du(e)&&e.tagName.toLowerCase()==="input"}function mj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gj(e,t){return e.button===0&&(!t||t==="_self")&&!mj(e)}function _h(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function vj(e,t){let n=_h(e);return t&&t.forEach((r,o)=>
165{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Za=null;function yj(){if(Za===null)try{new FormData(document.createElement("form"),0),Za=!1}catch{Za=!0}return Za}var wj=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(e){return e!=null&&!wj.has(e)?(Mt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kl}"`),null):e}function bj(e,t){let n,r,o,s,i;if(fj(e)){let a=e.getAttribute("action");r=a?zn(a,t):null,n=e.getAttribute("method")||bl,o=Lc(e.getAttribute("enctype"))||kl,s=new FormData(e)}else if(hj(e)||pj(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?zn(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||bl,o=Lc(e.getAttribute("formenctype"))||Lc(a.getAttribute("enctype"))||kl,s=new FormData(a,e),!yj()){let{name:u,type:c,value:d}=e;if(c==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,d)}}else{if(Du(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=bl,r=null,o=kl,i=e}return s&&o==="text/plain"&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ep(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fb(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&zn(o.pathname,t)==="/"?o.pathname=`${ru(t)}/_root.${r}`:o.pathname=`${ru(o.pathname)}.${r}`,o}async function kj(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Sj(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function _j(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let i=await kj(s,n);return i.links?i.links():[]}return[]}));return Cj(r.flat(1).filter(Sj).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function zg(e,t,n,r,o,s){let i=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,a=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return s==="assets"?t.filter((l,u)=>i(l,u)||a(l,u)):s==="data"?t.filter((l,u)=>{var d;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(i(l,u)||a(l,u))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Ej(e,t,{includeHydrateFallback:n}={}){return xj(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function xj(e){return[...new Set(e)]}function Tj(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Cj(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(Tj(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function tp(){let e=m.useContext(Vs);return ep(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Pj(){let e=m.useContext(Nu);return ep(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var np=m.createContext(void 0);np.displayName="FrameworkContext";function rp(){let e=m.useContext(np);return ep(e,"You must render this element inside a <HydratedRouter> element"),e}function Rj(e,t){let n=m.useContext(np),[r,o]=m.useState(!1),[s,i]=m.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,h=m.useRef(null);m.useEffect(()=>
165{if(e==="render"&&i(!0),e==="viewport"){let p=v=>{v.forEach(y=>{i(y.isIntersecting)})},k=new IntersectionObserver(p,{threshold:.5});return h.current&&k.observe(h.current),()=>{k.disconnect()}}},[e]),m.useEffect(()=>{if(r){let p=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(p)}}},[r]);let f=()=>{o(!0)},b=()=>{o(!1),i(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:ii(a,f),onBlur:ii(l,b),onMouseEnter:ii(u,f),onMouseLeave:ii(c,b),onTouchStart:ii(d,f)}]:[!1,h,{}]}function ii(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Aj({page:e,...t}){let n=UO(),{router:r}=tp(),o=m.useMemo(()=>xb(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?n?m.createElement(jj,{page:e,matches:o,...t}):m.createElement(Nj,{page:e,matches:o,...t}):null}function Oj(e){let{manifest:t,routeModules:n}=rp(),[r,o]=m.useState([]);return m.useEffect(()=>{let s=!1;return _j(e,t,n).then(i=>{s||o(i)}),()=>{s=!0}},[e,t,n]),r}function jj({page:e,matches:t,...n}){let r=Ct(),{future:o}=rp(),{basename:s}=tp(),i=m.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let a=Fb(e,s,o.unstable_trailingSlashAwareDataRequests,"rsc"),l=!1,u=[];for(let c of t)typeof c.route.shouldRevalidate=="function"?l=!0:u.push(c.route.id);return l&&u.length>0&&a.searchParams.set("_routes",u.join(",")),[a.pathname+a.search]},[s,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return m.createElement(m.Fragment,null,i.map(a=>m.createElement("link",{key:a,rel:"prefetch",as:"fetch",href:a,...n})))}function Nj({page:e,matches:t,...n}){let r=Ct(),{future:o,manifest:s,routeModules:i}=rp(),{basename:a}=tp(),{loaderData:l,matches:u}=Pj(),c=m.useMemo(()=>zg(e,t,u,s,r,"data"),[e,t,u,s,r]),d=m.useMemo(()=>zg(e,t,u,s,r,"assets"),[e,t,u,s,r]),h=m.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,k=!1;if(t.forEach(y=>{var S;let w=s.routes[y.route.id];!w||!w.hasLoader||(!c.some(_=>_.route.id===y.route.id)&&y.route.id in l&&((S=i[y.route.id])!=null&&S.shouldRevalidate)||w.hasClientLoader?k=!0:p.add(y.route.id))}),p.size===0)return[];let v=Fb(e,a,o.unstable_trailingSlashAwareDataRequests,"data");return k&&p.size>0&&v.searchParams.set("_routes",t.filter(y=>p.has(y.route.id)).map(y=>y.route.id).join(",")),[v.pathname+v.search]},[a,o.unstable_trailingSlashAwareDataRequests,l,r,s,c,t,e,i]),f=m.useMemo(()=>Ej(d,s),[d,s]),b=Oj(d);return m.createElement(m.Fragment,null,h.map(p=>m.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),f.map(p=>m.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),b.map(({key:p,link:k})=>m.createElement("link",{key:p,nonce:n.nonce,...k,crossOrigin:k.crossOrigin??n.crossOrigin})))}function Ij(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Dj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dj&&(window.__reactRouterVersion="7.14.2")}catch{}function Lj({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=m.useRef();o.current==null&&(o.current=mO({window:r,v5Compat:!0}));let s=o.current,[i,a]=m.useState({action:s.action,location:s.location}),l=m.useCallback(u=>{n===!1?a(u):m.startTransition(()=>a(u))},[n]);return m.useLayoutEffect(()=>s.listen(l),[s,l]),m.createElement(cj,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s,unstable_useTransitions:n})}var Bb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,op=m.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:i,unstable_mask:a,state:l,target:u,to:c,preventScrollReset:d,viewTransition:h,unstable_defaultShouldRevalidate:f,...b},p){let{basename:k,navigator:v,unstable_useTransitions:y}=m.useContext(Tt),w=typeof c=="string"&&Bb.test(c),S=Ab(c,k);c=S.to;let _=QO(c,{relative:o}),E=Ct(),x=null;if(a){let M=ju(a,[],E.unstable_mask?E.unstable_mask.pathname:"/",!0);k!=="/"&&(M.pathname=M.pathname==="/"?k:tn([k,M.pathname])),x=v.createHref(M)}let[P,R,C]=Rj(r,b),I=Fj(c,{replace:i,unstable_mask:a,state:l,target:u,preventScrollReset:d,relative:o,viewTransition:h,unstable_defaultShouldRevalidate:f,unstable_useTransitions:y});function O(M){t&&t(M),M.defaultPrevented||I(M)}let z=!(S.isExternal||s),j=m.createElement("a",{...b,...C,href:(z?x:void 0)||S.absoluteURL||_,onClick:z?O:t,ref:Ij(p,R),target:u,"data-discover":!w&&n==="render"?"true":void 0});return P&&!w?m.createElement(m.Fragment,null,j,m.createElement(Aj,{page:_})):j});op.displayName="Link";var Mj=m.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:i,viewTransition:a,children:l,...u},c){let d=va(i,{relative:u.relative}),h=Ct(),f=m.useContext(Nu),{navigator:b,basename:p}=m.useContext(Tt),k=f!=null&&Kj(d)&&a===!0,v=b.encodeLocation?b.encodeLocation(d).pathname:d.pathname,y=h.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&p&&(w=zn(w,p)||w);const S=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=y===v||!o&&y.startsWith(v)&&y.charAt(S)==="/",E=w!=null&&(w===v||!o&&w.startsWith(v)&&w.charAt(v.length)==="/"),x={isActive:_,isPending:E,isTransitioning:k},P=_?t:void 0,R;typeof r=="function"?R=r(x):R=[r,_?"active":null,E?"pending":null,k?"transitioning":null].filter(
165Boolean).join(" ");let C=typeof s=="function"?s(x):s;return m.createElement(op,{...u,"aria-current":P,className:R,ref:c,style:C,to:i,viewTransition:a},typeof l=="function"?l(x):l)});Mj.displayName="NavLink";var zj=m.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:i=bl,action:a,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:h,...f},b)=>{let{unstable_useTransitions:p}=m.useContext(Tt),k=Wj(),v=Hj(a,{relative:u}),y=i.toLowerCase()==="get"?"get":"post",w=typeof a=="string"&&Bb.test(a),S=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let E=_.nativeEvent.submitter,x=(E==null?void 0:E.getAttribute("formmethod"))||i,P=()=>k(E||_.currentTarget,{fetcherKey:t,method:x,navigate:n,replace:o,state:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:h});p&&n!==!1?m.startTransition(()=>P()):P()};return m.createElement("form",{ref:b,method:y,action:v,onSubmit:r?l:S,...f,"data-discover":!w&&e==="render"?"true":void 0})});zj.displayName="Form";function $j(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ub(e){let t=m.useContext(Vs);return be(t,$j(e)),t}function Fj(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:s,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let c=Iu(),d=Ct(),h=va(e,{relative:i});return m.useCallback(f=>{if(gj(f,t)){f.preventDefault();let b=n!==void 0?n:ta(d)===ta(h),p=()=>c(e,{replace:b,unstable_mask:r,state:o,preventScrollReset:s,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:l});u?m.startTransition(()=>p()):p()}},[d,c,h,n,r,o,t,e,s,i,a,l,u])}function Bj(e){Mt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=m.useRef(_h(e)),n=m.useRef(!1),r=Ct(),o=m.useMemo(()=>vj(r.search,n.current?null:t.current),[r.search]),s=Iu(),i=m.useCallback((a,l)=>{const u=_h(typeof a=="function"?a(new URLSearchParams(o)):a);n.current=!0,s("?"+u,l)},[s,o]);return[o,i]}var Uj=0,Vj=()=>`__${String(++Uj)}__`;function Wj(){let{router:e}=Ub("useSubmit"),{basename:t}=m.useContext(Tt),n=ij(),r=e.fetch,o=e.navigate;return m.useCallback(async(s,i={})=>{let{action:a,method:l,encType:u,formData:c,body:d}=bj(s,t);if(i.navigate===!1){let h=i.fetcherKey||Vj();await r(h,n,i.action||a,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||l,formEncType:i.encType||u,flushSync:i.flushSync})}else await o(i.action||a,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||l,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,o,t,n])}function Hj(e,{relative:t}={}){let{basename:n}=m.useContext(Tt),r=m.useContext(ln);be(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...va(e||".",{relative:t})},i=Ct();if(e==null){s.search=i.search;let a=new URLSearchParams(s.search),l=a.getAll("index");if(l.some(c=>c==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let c=a.toString();s.search=c?`?${c}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:tn([n,s.pathname])),ta(s)}function Kj(e,{relative:t}={}){let n=m.useContext(Nb);be(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ub("useViewTransitionState"),o=va(e,{relative:t});if(!n.isTransitioning)return!1;let s=zn(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=zn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return nu(o.pathname,i)!=null||nu(o.pathname,s)!=null}const Vb=m.createContext(void 0),mo=()=>{const e=m.useContext(Vb);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Ao=(...e)=>console.log("[Auth]",...e),Gj=({children:e})=>{const[t,n]=m.useState(null),[r,o]=m.useState(null),[s,i]=m.useState(!0),[a,l]=m.useState(null),[u,c]=m.useState(!1),[d,h]=m.useState(!1),[f,b]=m.useState(null),p=L.useRef(!1),k=m.useRef(0),v=m.useRef(0),y=m.useRef(null),w=m.useRef(null),S=m.useRef(null),_=m.useRef(0),E=m.useCallback(async(I,O)=>{if(w.current===I)return;w.current=I;const z=++v.current;c(!0),h(!1);try{for(let j=0;j<3;j+=1){const M=new AbortController,F=window.setTimeout(()=>M.abort(),8e3);try{const V=await fetch(`https://wasldznewicttoslpmnx.supabase.co/rest/v1/profiles?select=approval_status&user_id=eq.${encodeURIComponent(I)}`,{headers:{apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Indhc2xkem5ld2ljdHRvc2xwbW54Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njc2MDcyNzgsImV4cCI6MjA4MzE4MzI3OH0.FE0Nk3VJ2ibEoUW3QEL3joKY1pM0TQhXZSygVQyuyvY",Authorization:`Bearer ${O}`,Accept:"application/json"},signal:M.signal});if(z!==v.current)return;if(V.ok){const N=(await V.json())[0];if(!N)throw new Error("profile-not-found");const $=N.approval_status;S.current=$,l($),y.current=I,h(!1);return}console.error("Failed to fetch approval status:",V.status)}catch(V){console.error("Error fetching approval status:",V)}finally{window.clearTimeout(F)}if(j<2&&(await new Promise(V=>setTimeout(V,1500*(j+1))),z!==v.current))return}if(z!==v.current)return;l(null),S.current=null,h(!0)}finally{w.current===I&&(w.current=null),z===v.current&&c(!1)}},[]),x=m.useCallback(()=>{t&&(r!=null&&r.access_token)&&(y.current=null,w.current=null,E(t.id,r.access_token))},[E,r,t]);m.useEffect(()=>{const{data:{subscription:I}}=$e.auth.onAuthStateChange((j,M)=>
165{if(Ao("onAuthStateChange",j,!!M),_.current+=1,j==="SIGNED_OUT"){Ao(p.current?"Manual logout, clearing state":"Session ended, clearing state"),p.current=!1,v.current+=1,o(null),n(null),l(null),S.current=null,y.current=null,w.current=null,h(!1),c(!1),b(null);return}k.current+=1,b({event:j,seq:k.current}),Ao("authEvent published",j,"seq",k.current),o(M),n(F=>{const V=(M==null?void 0:M.user)??null;return(F==null?void 0:F.id)===(V==null?void 0:V.id)?F:V}),i(!1),M!=null&&M.user&&y.current!==M.user.id&&w.current!==M.user.id&&setTimeout(()=>E(M.user.id,M.access_token),0)}),O=_.current;$e.auth.getSession().then(({data:{session:j},error:M})=>{if(O===_.current){if(Ao("getSession",!!j,(M==null?void 0:M.message)??"ok"),M){i(!1);return}o(j),n(F=>{const V=(j==null?void 0:j.user)??null;return(F==null?void 0:F.id)===(V==null?void 0:V.id)?F:V}),i(!1),j!=null&&j.user&&y.current!==j.user.id&&E(j.user.id,j.access_token)}}).catch(j=>{O===_.current&&(console.error("Failed to restore auth session:",j),i(!1))});const z=setTimeout(()=>i(!1),1e4);return()=>{clearTimeout(z),I.unsubscribe()}},[]);const P=async(I,O,z)=>{const j=`${window.location.origin}/`,{error:M}=await $e.auth.signUp({email:I,password:O,options:{emailRedirectTo:j,data:{full_name:z}}});return{error:M}},R=async(I,O)=>{var M;const{data:z,error:j}=await $e.auth.signInWithPassword({email:I,password:O});return!j&&((M=z.session)!=null&&M.user)&&(o(z.session),n(F=>(F==null?void 0:F.id)===z.session.user.id?F:z.session.user),i(!1),y.current!==z.session.user.id&&E(z.session.user.id,z.session.access_token)),{error:j}},C=async()=>{p.current=!0,Ao("signOut called (manual)"),sessionStorage.removeItem("login_session_fingerprint"),sessionStorage.removeItem("login_session_user"),o(null),n(null),l(null),S.current=null,y.current=null,w.current=null,h(!1),c(!1),b(null);try{await Promise.race([$e.auth.signOut({scope:"local"}),new Promise(I=>setTimeout(I,2e3))])}catch{Ao("signOut API call failed, local state was already cleared")}p.current=!1};return g.jsx(Vb.Provider,{value:{user:t,session:r,loading:s,approvalStatus:a,isApprovalLoading:u,approvalLoadError:d,authEvent:f,signUp:P,signIn:R,signOut:C,retryApprovalStatus:x},children:e})},Wb=m.createContext(void 0),$g={en:{"nav.home":"Home","nav.forum":"Forum","nav.owners":"Owners Area","nav.webcam":"Webcam","nav.admin":"Administration","nav.login":"Login","nav.logout":"Logout","nav.profile":"Profile","hero.title":"Maria Alm Apartments","hero.subtitle":"Your alpine retreat in the heart of the Austrian Alps","hero.cta":"Explore","amenities.title":"Amenities","amenities.subtitle":"Everything you need for a comfortable stay","amenities.pool":"Indoor Pool","amenities.pool.desc":"Heated swimming pool available year-round","amenities.sauna":"Sauna & Wellness","amenities.sauna.desc":"Relax in our Finnish sauna","amenities.parking":"Parking","amenities.parking.desc":"Free underground parking for all guests","amenities.ski":"Ski Storage","amenities.ski.desc":"Secure storage for your ski equipment","directions.title":"How to Find Us","directions.subtitle":"Located in the beautiful village of Maria Alm","directions.address":"Address","directions.getDirections":"Get Directions","footer.description":"Apartment House in the heart of the Austrian Alps. Experience the beauty of Maria Alm and the Hochkönig region.","footer.contact":"Contact","footer.links":"Quick Links","footer.home":"Home","footer.rentApartment":"Rent Apartment","footer.webcams":"Webcams","footer.ownersArea":"Owners Area","footer.privacy":"Privacy Policy","footer.rights":"All rights reserved","forum.title":"Forum","forum.subtitle":"Community discussions","forum.categories":"Categories","forum.threads":"Threads","forum.posts":"Posts","forum.newThread":"New Thread","forum.newPost":"New Post","forum.reply":"Reply","forum.translate":"Translate","forum.translating":"Translating...","forum.translated":"Translated","forum.original":"Original","forum.backToCategories":"Back to Categories","forum.backToThreads":"Back to Threads","forum.noThreads":"No threads in this category yet","forum.noPosts":"No posts yet","forum.threadTitle":"Thread Title","forum.content":"Content","forum.create":"Create","forum.cancel":"Cancel","forum.pinned":"Pinned","forum.locked":"Locked","forum.by":"by","forum.replies":"replies","forum.lastPost":"Last post","forum.writeComment":"Write a comment...","forum.noComments":"No comments yet","forum.share":"Share","forum.linkCopied":"Link copied to clipboard","forum.shareError":"Could not share this post","owners.title":"Owners Area","owners.welcome":"Welcome back","owners.goToForum":"Go to Forum","owners.announcements":"Announcements","owners.polls":"Polls","owners.documents":"Documents","documents.description":"Important documents and reports for property owners","owners.profile":"Profile","owners.newsAndAnnouncements":"House Management","owners.noAnnouncements":"No announcements at this time.","owners.important":"Important","owners.noDocuments":"No documents available.","owners.download":"Download","owners.yourProfile":"Your Profile","owners.personalInfo":"Personal Information","owners.personalInfoDesc":"Update your contact information for property management.","owners.fullName":"Full Name","owners.fullNamePlaceholder":"Your full name","owners.apartmentNumber":"Apartment Number","owners.phone":"Phone Number","owners.saving":"Saving...","owners.saveChanges":"Save Changes","owners.propertyManagement":"Property Management Contact","owners.urgentMatters":"For urgent matters or maintenance requests, please contact:","owners.emergency":"Emergency","owners.profileUpdated":"Profile Updated","owners.profileUpdatedDesc":"Your profile has been successfully updated.","owners.profileError":"Failed to update profile. Please try again.","owners.forumSettings":"Forum Settings","owners.preferredLanguage":"Preferred Language","owners.autoTranslate":"Auto-translate posts","owners.autoTranslateDesc":"Automatically translate posts written in other languages to your preferred language","profile.userInfo":"User Info","profile.userInfoDesc":"Your personal information and contact details","profile.apartment":"Apartment","profile.apartmentInfo":"Apartment Information","profile.apartmentInfoDesc":"Details about your apartment and ownership","profile.access":"Access","profile.forumTab":"Forum","profile.firstName":"First Name","profile.lastName":"Last Name","profile.assignedApartment":"Assigned Apartment","profile.noApartment":"No apartment assigned","profile.apartmentCode":"Apartment Co
165de","profile.floor":"Floor","profile.area":"Area","profile.status":"Status","profile.currentOwner":"Current Owner","profile.formerOwner":"Former Owner","profile.ownershipPeriod":"Ownership Period","profile.present":"Present","profile.noApartmentAssigned":"No apartment is assigned to your account.","profile.coOwners":"Co-Owners","profile.coOwnersDesc":"Other owners of your apartment(s)","profile.loginEmail":"Login Email","profile.loginEmailDesc":"Your email address used to log in","profile.emailChangeNote":"Contact an administrator to change your login email.","profile.changePassword":"Change Password","profile.changePasswordDesc":"Update your account password","profile.newPassword":"New Password","profile.passwordMismatch":"Passwords do not match","profile.passwordTooShort":"Password must be at least 6 characters","profile.passwordChanged":"Password Changed","profile.passwordChangedDesc":"Your password has been successfully updated.","profile.forumSettingsDesc":"Configure your forum preferences and notifications","profile.emailNotifications":"Email Notifications","profile.emailNotificationsDesc":"Receive notifications about new forum posts via email","profile.emailNotificationsNote":"Email notifications are enabled by default for all users.","contacts.title":"Contacts","contacts.description":"Important contacts for property management and services","contacts.propertyManager":"Property Manager","contacts.propertyManagerDesc":"Main contact for administrative matters","contacts.caretakers":"Caretakers","contacts.caretakersDesc":"On-site caretakers for building maintenance","contacts.caretaker":"Caretaker","contacts.serviceCompanies":"Service Companies","contacts.serviceCompaniesDesc":"Professional services for building maintenance","contacts.electrical":"Electrical","contacts.plumbing":"Plumbing","contacts.heating":"Heating","contacts.elevator":"Elevator","contacts.garden":"Garden","contacts.emergency":"Emergency Line","contacts.emergencyDesc":"For urgent matters outside business hours","contacts.emergencyNote":"This line is available 24/7 for emergencies only. For regular inquiries, please contact the property manager during business hours.","contacts.managerTab":"Manager","contacts.caretakersTab":"Caretakers","contacts.servicesTab":"Services","contacts.emergencyTab":"Emergency","sidebar.ownersSection":"Owners Section","sidebar.overview":"Overview","sidebar.news":"House Management","sidebar.managementComparison":"Management Comparison","sidebar.polls":"Polls","sidebar.documents":"Documents","sidebar.forum":"Forum","sidebar.costs":"Costs","sidebar.profile":"Profile","sidebar.contacts":"Contacts","sidebar.monitoring":"House Monitoring","sidebar.operatingCosts":"Operating Costs","sidebar.costs.dashboard":"Dashboard","sidebar.costs.categories":"Categories","sidebar.costs.reserve":"Reserve Fund","sidebar.costs.vendors":"Vendors","sidebar.costs.loans":"Loans","sidebar.costs.heating":"Heating","sidebar.costs.heating.overview":"Overview","sidebar.costs.heating.ranking":"Ranking","sidebar.costs.heating.structure":"Structure","sidebar.costs.heating.owners":"By Owner","sidebar.costs.heating.apartments":"By Apartment","sidebar.ownerView":"Owner View","dashboard.welcome":"Welcome to Owners Area","dashboard.description":"Manage your property, view costs, and stay informed.","dashboard.quickLinks":"Quick Links","dashboard.recentNews":"Recent News","dashboard.activePolls":"Active Polls","dashboard.viewAll":"View All","costs.title":"Cost Overview","costs.subtitle":"Transparent overview of all operating costs and reserves","costs.description":"Transparent overview of all operating and heating costs","costs.heating":"Heating","costs.house":"House Costs","costs.overview":"Overview","costs.import":"Import Data","costs.selectYear":"Select Year","costs.allYears":"All Years","costs.totalHeating":"Total Heating Costs","costs.totalHouse":"Total House Costs","costs.oilConsumption":"Oil Consumption","costs.avgCostPerSqm":"Avg Cost/m²","costs.home":"Overview","costs.year":"Year","auth.login":"Login","auth.loginSubtitle":"Sign in to your account","auth.register":"Register","auth.email":"Email","auth.password":"Password","auth.confirmPassword":"Confirm Password","auth.forgotPassword":"Forgot Password?","auth.noAccount":"Don't have an account?","auth.hasAccount":"Already have an account?","auth.rememberMe":"Remember me","auth.loginWithoutPassword":"Sign in without password","auth.sendMagicLink":"Send me a magic link","auth.usePassword":"Sign in with password","auth.useMagicLink":"Sign in with a link","auth.magicLinkSent":"A login link has been sent to your email","auth.emailHintTitle":"Can't find the email?","auth.emailHintSpam":"Check your spam or junk folder â the message sometimes lands there.","auth.emailHintSender":'The email is sent from Appartementhaus Hintermoos, subject "Hintermoos". Try searching your inbox for it.',"auth.emailHintWait":"Delivery can take up to a few minutes. The link is valid for a limited time only.","auth.magicLinkDescription":"Enter your email and we'll send you a secure login link","auth.magicLinkError":"Error sending magic link","auth.or":"Or","auth.verifying":"Verifying your login...","auth.loginSuccess":"Successfully logged in!","auth.redirecting":"Redirecting...","auth.verificationFailed":"Verification failed","auth.invalidLink":"Invalid or expired link","auth.redirectingToLogin":"Redirecting to login page...","auth.checkEmail":"Check your email","auth.backToLogin":"Back to login","auth.backToHome":"Back to home","auth.forgotPasswordTitle":"Reset Password","auth.forgotPasswordDescription":"Enter your email and we'll send you a link to reset your password","auth.send
165ResetLink":"Send reset link","auth.resetEmailSent":"A password reset link has been sent to your email","auth.signupEmailSent":"A verification link has been sent to your email. Please confirm to complete registration.","auth.registerTitle":"Create Account","auth.registerSubtitle":"Register to access the owners area","auth.fullName":"Full Name","auth.fullNamePlaceholder":"John Doe","auth.invalidCredentials":"Invalid email or password.","auth.invalidEmail":"Please enter a valid email address","auth.resetPasswordTitle":"Set New Password","auth.resetPasswordDescription":"Enter your new password below","auth.newPassword":"New Password","auth.passwordMinLength":"Password must be at least 6 characters","auth.passwordsDoNotMatch":"Passwords do not match","auth.passwordUpdated":"Password updated successfully!","auth.resetLinkExpired":"This reset link is no longer valid. It may have expired or been replaced by a newer request.","auth.resetLinkExpiredTitle":"Why did this happen?","auth.resetLinkSuperseded":"If you requested multiple reset emails, only the last one works. Each new request invalidates all previous links. Please use the most recent email or request a new one.","auth.requestNewLink":"Request a new link","auth.clickToContinueReset":"Click the button below to continue setting your new password.","auth.continueToReset":"Continue","auth.magicLinkVerifyTitle":"Magic Link Login","auth.clickToContinueLogin":"Click the button below to complete your login.","auth.continueToLogin":"Continue to login","polls.heading":"POLLS","polls.subtitle":"Your opinion shapes our common decisions!","polls.vote":"VOTE","polls.results":"RESULTS","polls.selectPoll":"Select poll","polls.selectOption":"Select option","polls.selectApartment":"Select apartment","polls.voterName":"Voter name","polls.voterNamePlaceholder":"Enter voter name","polls.totalResponses":"Total responses","polls.option":"Option","polls.noActive":"No active polls.","polls.unknown":"Unknown","polls.closedMsg":'Voting is closed. You can view results in the "RESULTS" tab.',"polls.alreadyVotedMsg":'You have already voted in this poll. You can view results in the "RESULTS" tab.',"polls.alreadyVotedTitle":"Already voted","polls.alreadyVotedDesc":"This apartment has already voted in this poll.","polls.selectApartmentError":"Please select your apartment.","polls.voterNameError":"Please enter voter name.","polls.voteError":"Failed to submit vote. Please try again.","polls.voteSent":"Vote submitted","polls.voteSentDesc":"Your vote has been recorded. Thank you for participating!","polls.thankYou":"Thank you for your active participation and expressing your opinion. If you disagree with the results, please contact the poll administrator with specific details about what and why you disagree. Your comments will be recorded for the transparency of the entire voting process.","polls.thankYouCooperation":"Thank you for your cooperation!","polls.resultsFor":"Results for poll","polls.multipleAllowed":"you can select multiple options","polls.comment":"Comment","polls.commentPlaceholder":"You can briefly explain your vote here...","polls.attachment":"Download attachment","polls.legalNote":"This poll serves to determine the will of co-owners in matters of property management. Pursuant to § 24 and § 28 WEG 2002, owner decisions may also be made outside of meetings, in particular in written or electronic form, provided that all owners are given the opportunity to express their views. Voting weight is determined by the co-ownership share of the respective unit in accordance with § 24 para. 4 WEG 2002, as amended by the WEG 2022 reform, BGBl. I Nr. 222/2021. A validly adopted decision in matters of ordinary management is a binding basis for the administrator's further action. The current Verwaltungsvertrag authorises the administrator to carry out ordinary management and to communicate with the owners, but does not expressly stipulate that only the administrator may organise every owner vote. Details can be found here:","polls.legalNoteShort":"This vote is conducted within the scope of property administration pursuant to § 24 and § 28 WEG 2002. Voting weight corresponds to the co-ownership share of the respective unit. The current Verwaltungsvertrag authorises the administrator to carry out ordinary management measures and to communicate with the owners. Details can be found here:","polls.legalLink":"More about voting rules","polls.legalBasis":"","polls.disclaimer":"This voting mechanism serves to determine the opinion of the co-owners. Where required by law, formal resolutions may still need to be adopted during an owners' meeting.","polls.legalInfoTitle":"Legal Information","polls.coOwnerNote":"Voting takes place among the co-owners of the building. Voting weight corresponds to the co-ownership share assigned to each unit.","polls.archive":"Poll Archive","polls.participation":"Participation","polls.inProgress":"In Progress","polls.accepted":"Accepted","polls.rejected":"Rejected","polls.activePoll":"Active Poll","polls.of":"of","polls.votes":"votes","polls.noArchive":"No archived polls.","polls.unitsVoted":"units voted","polls.wegShare":"WEG Share","polls.wegTotal":"WEG Total","polls.votedFor":"Voted for","polls.remainingApartments":"Remaining units","polls.alreadyVotedApartment":"Already voted","polls.selectYourApartment":"Select your apartment","common.loading":"Loading...","common.error":"Error","common.save":"Save","common.cancel":"Cancel","common.delete":"Delete","common.edit":"Edit","common.close":"Close","common.search":"Search","common.noResults":"No results found","common.noData":"No data available","common.confirmDelete":"Confirm deleti
165on","common.deleteWarning":"This action cannot be undone. Are you sure you want to delete this item?","approval.pendingTitle":"Registration Pending","approval.pendingDescription":"Your registration is awaiting admin approval. You will be notified once your account is activated.","approval.rejectedTitle":"Registration Rejected","approval.rejectedDescription":"Your registration was not approved. If you believe this is an error, please contact the administrator.","approval.contactAdmin":"Contact:","approval.errorTitle":"Account Error","approval.errorDescription":"Your account profile could not be loaded. Please try logging in again or contact the administrator.","approval.slowLoading":"Loading is taking longer than usual. Please reload the page.","approval.reload":"Reload page","approval.retry":"Try loading profile again","auth.signupEmailSentApproval":"A verification link has been sent to your email. After confirming, your registration will be reviewed by an administrator.","mon.title":"Building Settlement Monitoring","mon.showFloorplan":"Show floorplan","mon.subtitle":"Geodetic deformation measurements, overview of survey points and their historical development","mon.titleTooltip":"Geodetic monitoring tracks vertical displacements (settlement) of the building using stabilized survey points. Measurements are carried out by an authorized surveyor and the results show how the building settles over time.","mon.noData":"No monitoring data available yet","mon.noDataSub":"Data will be displayed after measurements are imported.","mon.activePoints":"Active points","mon.activePointsTooltip":"Number of survey points that are currently monitored and have data from the latest measurement.","mon.lostInactive":"Lost / inactive","mon.lostInactiveTooltip":"Points that have been destroyed or are not accessible for newer measurements. Historical data may still be available.","mon.maxCumulative":"Max. cumulative change","mon.maxCumulativeTooltip":"Largest total settlement of all active points since the baseline measurement in 2000. Negative value means subsidence.","mon.lastMeasurement":"Last measurement","mon.lastMeasurementTooltip":"Date of the last geodetic survey of the building. Measurements are carried out by an authorized surveyor typically once every few years.","mon.ofTotal":"of {0} total","mon.noCurrentData":"without current data","mon.allOk":"everything OK","mon.point":"point {0}","mon.noData2":"no data","mon.surveyPoints":"Survey points","mon.surveyPointsTooltip":"List of all survey points. Click to display point detail with measurement history.","mon.activeOf":"{0} active of {1} total","mon.all":"All","mon.lost":"lost","mon.newlySet":"NEW","mon.newlySetTooltip":'Point newly installed during this measurement campaign. The value 0.0 mm is not "no settlement" â it is the new baseline (zero reference) from which future settlement will be measured.',"mon.pointDetail":"Point {0}","mon.reference":"Reference","mon.lostPointExplanation":"This survey point is no longer available for newer measurements. Historical data is still available.","mon.historicalData":"Historical data: {0}â{1}","mon.cumulativeChange":"Cumulative change","mon.cumulativeChangeTooltip":"Total height change of the point since the baseline measurement (year 2000). Negative value = subsidence (settlement).","mon.intervalChange":"Interval change","mon.intervalChangeTooltip":"Height change of the point compared to the previous measurement. Shows how much the point moved in the given period.","mon.noCurrentDataDetail":"No current data","mon.noCurrentDataDetailSub":"No values are available for the selected measurement.","mon.historyTitle":"History over time","mon.historyGreenTooltip":"Green curve â cumulative height change of the point since the baseline measurement (year 2000).","mon.historyOrangeTooltip":"Orange curve â height change only for the interval between two consecutive measurements.","mon.cumulative":"Cumulative","mon.interval":"Interval","mon.pointInfo":"Point information","mon.status":"Status","mon.area":"Area","mon.firstMeasurement":"First available measurement","mon.lastAvailMeasurement":"Last available measurement","mon.measurementCount":"Number of measurements","mon.installation":"Installation","mon.deactivation":"Deactivation","mon.statusActive":"Active","mon.statusLost":"Lost point","mon.statusHistorical":"Historical","mon.statusPlanned":"Planned","mon.legendTitle":"Legend","mon.legendTooltip":"Point colors correspond to the degree of cumulative settlement since the baseline measurement. The darker/redder the color, the greater the subsidence.","mon.legendLost":"Lost / no data","mon.tooltipPoint":"Point: {0}","mon.tooltipStatus":"Status: {0}","mon.tooltipMeasurement":"Measurement: {0}","mon.tooltipValue":"Value: {0}
165 mm","mon.tooltipNoData":"No current data","mon.tooltipHistorical":"Historical data available until year {0}","mon.floorplanTooltip":"Currently displayed measurement. Click on points in the floor plan for detail. Change the measurement in the timeline below.","mon.cumulativeTooltip":"Total height change of the point since the first (baseline) measurement in 2000.","mon.intervalTooltip":"Height change of the point only for the period from the previous measurement to the currently selected one.","mon.viewModeTooltip":"Display mode switch for values on the floor plan. Click on a specific measurement in the timeline to change the reference date.","mon.chartCumulative":"Cumulative","mon.chartInterval":"Interval","mon.campaignLabelMeasurement":"Measurement","mon.campaignLabelBaseline":"Initial measurement"},de:{"nav.home":"Startseite","nav.forum":"Forum","nav.owners":"Eigentümerbereich","nav.webcam":"Webcam","nav.admin":"Verwaltung","nav.login":"Anmelden","nav.logout":"Abmelden","nav.profile":"Profil","hero.title":"Maria Alm Apartments","hero.subtitle":"Ihr alpines Refugium im Herzen der österreichischen Alpen","hero.cta":"Entdecken","amenities.title":"Ausstattung","amenities.subtitle":"Alles für einen komfortablen Aufenthalt","amenities.pool":"Hallenbad","amenities.pool.desc":"Beheiztes Schwimmbad ganzjährig verfügbar","amenities.sauna":"Sauna & Wellness","amenities.sauna.desc":"Entspannen Sie in unserer finnischen Sauna","amenities.parking":"Parkplatz","amenities.parking.desc":"Kostenlose Tiefgarage für alle Gäste","amenities.ski":"Skiaufbewahrung","amenities.ski.desc":"Sichere Aufbewahrung für Ihre Skiausrüstung","directions.title":"So finden Sie uns","directions.subtitle":"Im schönen Dorf Maria Alm gelegen","directions.address":"Adresse","directions.getDirections":"Route planen","footer.description":"Apartmenthaus im Herzen der österreichischen Alpen. Erleben Sie die Schönheit von Maria Alm und der Hochkönig-Region.","footer.contact":"Kontakt","footer.links":"Schnelllinks","footer.home":"Startseite","footer.rentApartment":"Wohnung mieten","footer.webcams":"Webcams","footer.ownersArea":"Eigentümerbereich","footer.privacy":"Datenschutz","footer.rights":"Alle Rechte vorbehalten","forum.title":"Forum","forum.subtitle":"Gemeinschaftsdiskussionen","forum.categories":"Kategorien","forum.threads":"Themen","forum.posts":"Beiträge","forum.newThread":"Neues Thema","forum.newPost":"Neuer Beitrag","forum.reply":"Antworten","forum.translate":"Ãbersetzen","forum.translating":"Ãbersetze...","forum.translated":"Ãbersetzt","forum.original":"Original","forum.backToCategories":"Zurück zu Kategorien","forum.backToThreads":"Zurück zu Themen","forum.noThreads":"Noch keine Themen in dieser Kategorie","forum.noPosts":"Noch keine Beiträge","forum.threadTitle":"Thementitel","forum.content":"Inhalt","forum.create":"Erstellen","forum.cancel":"Abbrechen","forum.pinned":"Angepinnt","forum.locked":"Gesperrt","forum.by":"von","forum.replies":"Antworten","forum.lastPost":"Letzter Beitrag","forum.writeComment":"Schreiben Sie einen Kommentar...","forum.noComments":"Noch keine Kommentare","forum.share":"Teilen","forum.linkCopied":"Link in die Zwischenablage kopiert","forum.shareError":"Teilen fehlgeschlagen","owners.title":"Eigentümerbereich","owners.welcome":"Willkommen zurück","owners.goToForum":"Zum Forum","owners.announcements":"Ankündigungen","owners.polls":"Abstimmungen","owners.documents":"Dokumente","documents.description":"Wichtige Dokumente und Berichte für Eigentümer","owners.profile":"Profil","owners.newsAndAnnouncements":"Hausverwaltung","owners.noAnnouncements":"Derzeit keine Ankündigungen.","owners.important":"Wichtig","owners.noDocuments":"Keine Dokumente verfügbar.","owners.download":"Herunterladen","owners.yourProfile":"Ihr Profil","owners.personalInfo":"Persönliche Informationen","owners.personalInfoDesc":"Aktualisieren Sie Ihre Kontaktdaten für die Hausverwaltung.","owners.fullName":"Vollständiger Name","owners.fullNamePlaceholder":"Ihr vollständiger Name","owners.apartmentNumber":"Apartmentnummer","owners.phone":"Telefonnummer","owners.saving":"Speichern...","owners.saveChanges":"Ãnderungen speichern","owners.propertyManagement":"Kontakt Hausverwaltung","owners.urgentMatters":"Bei dringenden Angelegenheiten oder Wartungsanfragen kontaktieren Sie bitte:","owners.emergency":"Notfall","owners.profileUpdated":"Profil aktualisiert","owners.profileUpdatedDesc":"Ihr Profil wurde erfolgreich aktualisiert.","owners.profileError":"Fehler beim Aktualisieren des Profils. Bitte versuchen Sie es erneut.","owners.forumSettings":"Forum-Einstellungen","owners.preferredLanguage":"Bevorzugte Sprache","owners.autoTranslate":"Beiträge automatisch übersetzen","owners.autoTranslateDesc":"Beiträge in anderen Sprachen automatisch in Ihre bevorzugte Sprache übersetzen","profile.userInfo":"Benutzer","profile.userInfoDesc":"Ihre persönlichen Daten und Kontaktinformationen","profile.apartment":"Wohnung","profile.apartmentInfo":"Wohnungsinformationen","profile.apartmentInfoDesc":"Details zu Ihrer Wohnung und Eigentum","profile.access":"Zugang","profile.forumTab":"Forum","profile.firstName":"Vorname","profile.lastName":"Nachname","profile.assignedApartment":"Zugewiesene Wohnung","profile.noApartment":"Keine Wohnung zugewiesen","profile.apartmentCode":"Wohnungscode","profile.floor":"Etage","profile.area":"Fläche","profile.status":"Status","profile.currentOwner":"Aktueller Eigentümer","profile.formerOwner":"Ehemaliger Eigentümer","profile.ownershipPeriod":"Eigentumszeitraum","profile.present":"Gegenwart","profile.noApartmentAssigned":"Ihrem Konto ist keine Wohnung zugewiesen.","profile.coOwners":"Miteigentümer","profile.coOwnersDesc":"Andere Eigentümer Ihrer Wohnung(en)","profile.loginEmail":"Login-E-Mail","profile.loginEmailDesc":"Ihre E-Mail-Adresse für die Anmeldung","profile.emailChangeNote":"Kontaktieren Sie einen Administrator, um Ihre Login-E-Mail zu ändern.","profile.changePassword":"Passwort ändern","profile.changePasswordDesc":"Aktualisieren Sie Ihr Kontopasswort","profile.newPassword":"Neues Passwort","profile.passwordMismatch":"Passwörter stimmen nicht überein","profile.passwordTooShort":"Passwort muss mindestens 6 Zeichen haben","profile.passwordChanged":"Passwort geändert","profile.passwordChangedDesc":"Ihr Passwort wurde erfolgreich aktualisiert.","profile.forumSettingsDesc":"Konfigurieren Sie Ihre Forum-Einstellungen und Benachrichtigungen","profile.emailNotifications":"E-Mail-Ben
165achrichtigungen","profile.emailNotificationsDesc":"Benachrichtigungen über neue Forenbeiträge per E-Mail erhalten","profile.emailNotificationsNote":"E-Mail-Benachrichtigungen sind standardmäÃig für alle Benutzer aktiviert.","contacts.title":"Kontakte","contacts.description":"Wichtige Kontakte für Hausverwaltung und Dienstleistungen","contacts.propertyManager":"Hausverwaltung","contacts.propertyManagerDesc":"Hauptansprechpartner für administrative Angelegenheiten","contacts.caretakers":"Hausmeister","contacts.caretakersDesc":"Hausmeister vor Ort für die Gebäudewartung","contacts.caretaker":"Hausmeister","contacts.serviceCompanies":"Dienstleistungsunternehmen","contacts.serviceCompaniesDesc":"Fachfirmen für die Gebäudewartung","contacts.electrical":"Elektrik","contacts.plumbing":"Sanitär","contacts.heating":"Heizung","contacts.elevator":"Aufzug","contacts.garden":"Garten","contacts.emergency":"Notfallnummer","contacts.emergencyDesc":"Für dringende Angelegenheiten auÃerhalb der Geschäftszeiten","contacts.emergencyNote":"Diese Nummer ist rund um die Uhr nur für Notfälle erreichbar. Für reguläre Anfragen kontaktieren Sie bitte die Hausverwaltung während der Geschäftszeiten.","contacts.managerTab":"Verwaltung","contacts.caretakersTab":"Hausmeister","contacts.servicesTab":"Dienste","contacts.emergencyTab":"Notfall","sidebar.ownersSection":"Eigentümerbereich","sidebar.overview":"Ãbersicht","sidebar.news":"Hausverwaltung","sidebar.managementComparison":"Verwaltung Vergleich","sidebar.polls":"Abstimmungen","sidebar.documents":"Dokumente","sidebar.forum":"Forum","sidebar.costs":"Kosten","sidebar.profile":"Profil","sidebar.contacts":"Kontakte","sidebar.monitoring":"Haus-Monitoring","sidebar.operatingCosts":"Betriebskosten","sidebar.costs.dashboard":"Dashboard","sidebar.costs.categories":"Kategorien","sidebar.costs.reserve":"Rücklage","sidebar.costs.vendors":"Lieferanten","sidebar.costs.loans":"Darlehen","sidebar.costs.heating":"Heizung","sidebar.costs.heating.overview":"Ãbersicht","sidebar.costs.heating.ranking":"Ranking","sidebar.costs.heating.structure":"Struktur","sidebar.costs.heating.owners":"Nach Eigentümer","sidebar.costs.heating.apartments":"Nach Wohnung","sidebar.ownerView":"Eigentümeransicht","dashboard.welcome":"Willkommen im Eigentümerbereich","dashboard.description":"Verwalten Sie Ihre Immobilie, sehen Sie Kosten ein und bleiben Sie informiert.","dashboard.quickLinks":"Schnellzugriff","dashboard.recentNews":"Aktuelle Neuigkeiten","dashboard.activePolls":"Aktive Abstimmungen","dashboard.viewAll":"Alle anzeigen","costs.title":"Kostenübersicht","costs.subtitle":"Transparente Ãbersicht aller Betriebskosten und Rücklagen","costs.description":"Transparente Ãbersicht aller Betriebskosten und Heizkosten","costs.heating":"Heizkosten","costs.house":"Hauskosten","costs.overview":"Ãbersicht","costs.import":"Daten importieren","costs.selectYear":"Jahr wählen","costs.allYears":"Alle Jahre","costs.totalHeating":"Heizkosten Gesamt","costs.totalHouse":"Hauskosten Gesamt","costs.oilConsumption":"Ãlverbrauch","costs.avgCostPerSqm":"à Kosten/m²","costs.home":"Ãbersicht","costs.year":"Jahr","auth.login":"Anmelden","auth.loginSubtitle":"Melden Sie sich bei Ihrem Konto an","auth.register":"Registrieren","auth.email":"E-Mail","auth.password":"Passwort","auth.confirmPassword":"Passwort bestätigen","auth.forgotPassword":"Passwort vergessen?","auth.noAccount":"Noch kein Konto?","auth.hasAccount":"Bereits ein Konto?","auth.rememberMe":"Anmeldung merken","auth.loginWithoutPassword":"Ohne Passwort anmelden","auth.sendMagicLink":"Anmeldelink senden","auth.usePassword":"Mit Passwort anmelden","auth.useMagicLink":"Mit Link anmelden","auth.magicLinkSent":"Ein Anmeldelink wurde an Ihre E-Mail gesendet","auth.emailHintTitle":"Keine E-Mail erhalten?","auth.emailHintSpam":"Prüfen Sie bitte auch den Spam- bzw. Junk-Ordner â dort landet die Nachricht manchmal.","auth.emailHintSender":"Die E-Mail kommt von Appartementhaus Hintermoos, Betreff âHintermoosâ. Suchen Sie im Postfach danach.","auth.emailHintWait":"Die Zustellung kann einige Minuten dauern. Der Link ist nur begrenzt gültig.","auth.magicLinkDescription":"Geben Sie Ihre E-Mail ein und wir senden Ihnen einen sicheren Anmeldelink","auth.magicLinkError":"Fehler beim Senden des Anmeldelinks","auth.or":"Oder","auth.verifying":"Anmeldung wird überprüft...","auth.loginSuccess":"Erfolgreich angemeldet!","auth.redirecting":"Weiterleitung...","auth.verificationFailed":"Ãberprüfung fehlgeschlagen","auth.invalidLink":"Ungültiger oder abgelaufener Link","auth.redirectingToLogin":"Weiterleitung zur Anmeldeseite...","auth.checkEmail":"Ãberprüfen Sie Ihre E-Mail","auth.backToLogin":"Zurück zur Anmeldung","auth.backToHome":"Zurück zur Startseite","auth.forgotPasswordTitle":"Passwort zurücksetzen","auth.forgotPasswordDescription":"Geben Sie Ihre E-Mail ein und wir senden Ihnen einen Link zum Zurücksetzen","auth.send
165ResetLink":"Link senden","auth.resetEmailSent":"Ein Link zum Zurücksetzen wurde an Ihre E-Mail gesendet","auth.signupEmailSent":"Ein Bestätigungslink wurde an Ihre E-Mail gesendet. Bitte bestätigen Sie die Registrierung.","auth.registerTitle":"Konto erstellen","auth.registerSubtitle":"Registrieren Sie sich für den Eigentümerbereich","auth.fullName":"Vollständiger Name","auth.fullNamePlaceholder":"Max Mustermann","auth.invalidCredentials":"Ungültige E-Mail oder Passwort.","auth.invalidEmail":"Bitte geben Sie eine gültige E-Mail ein","auth.resetPasswordTitle":"Neues Passwort festlegen","auth.resetPasswordDescription":"Geben Sie unten Ihr neues Passwort ein","auth.newPassword":"Neues Passwort","auth.passwordMinLength":"Das Passwort muss mindestens 6 Zeichen lang sein","auth.passwordsDoNotMatch":"Passwörter stimmen nicht überein","auth.passwordUpdated":"Passwort erfolgreich aktualisiert!","auth.resetLinkExpired":"Dieser Link ist nicht mehr gültig. Er ist möglicherweise abgelaufen oder wurde durch eine neuere Anfrage ersetzt.","auth.resetLinkExpiredTitle":"Warum ist das passiert?","auth.resetLinkSuperseded":"Wenn Sie mehrere Rücksetz-E-Mails angefordert haben, funktioniert nur die letzte. Jede neue Anfrage macht alle vorherigen Links ungültig. Verwenden Sie die neueste E-Mail oder fordern Sie einen neuen Link an.","auth.requestNewLink":"Neuen Link anfordern","auth.clickToContinueReset":"Klicken Sie auf die Schaltfläche unten, um Ihr neues Passwort festzulegen.","auth.continueToReset":"Weiter","auth.magicLinkVerifyTitle":"Anmeldung per Magic Link","auth.clickToContinueLogin":"Klicken Sie auf die Schaltfläche unten, um Ihre Anmeldung abzuschlieÃen.","auth.continueToLogin":"Weiter zur Anmeldung","polls.heading":"ABSTIMMUNG","polls.subtitle":"Ihre Meinung formt unsere gemeinsamen Entscheidungen!","polls.vote":"ABSTIMMEN","polls.results":"ERGEBNISSE","polls.selectPoll":"Abstimmung wählen","polls.selectOption":"Option wählen","polls.selectApartment":"Wohnung wählen","polls.voterName":"Name des Wählers","polls.voterNamePlaceholder":"Name des Wählers eingeben","polls.totalResponses":"Gesamtanzahl der Antworten","polls.option":"Option","polls.noActive":"Keine aktiven Abstimmungen.","polls.unknown":"Unbekannt","polls.closedMsg":'Die Abstimmung ist beendet. Ergebnisse finden Sie im Tab "ERGEBNISSE".',"polls.alreadyVotedMsg":'Sie haben bereits in dieser Abstimmung abgestimmt. Ergebnisse finden Sie im Tab "ERGEBNISSE".',"polls.alreadyVotedTitle":"Bereits abgestimmt","polls.alreadyVotedDesc":"Für diese Wohnung wurde bereits abgestimmt.","polls.selectApartmentError":"Bitte wählen Sie Ihre Wohnung.","polls.voterNameError":"Bitte geben Sie den Namen des Wählers ein.","polls.voteError":"Abstimmung konnte nicht gesendet werden. Bitte versuchen Sie es erneut.","polls.voteSent":"Stimme abgegeben","polls.voteSentDesc":"Ihre Stimme wurde erfolgreich aufgezeichnet. Danke für Ihre Teilnahme!","polls.thankYou":"Vielen Dank für Ihre aktive Teilnahme und MeinungsäuÃerung. Wenn Sie mit den Ergebnissen nicht einverstanden sind, kontaktieren Sie bitte den Abstimmungsverwalter mit konkreten Details, womit und warum Sie nicht einverstanden sind. Ihre Anmerkungen werden im Sinne der Transparenz des gesamten Abstimmungsprozesses dokumentiert.","polls.thankYouCooperation":"Vielen Dank für die Zusammenarbeit!","polls.resultsFor":"Ergebnisse für Abstimmung","polls.multipleAllowed":"Sie können mehrere Optionen auswählen","polls.comment":"Kommentar","polls.commentPlaceholder":"Hier können Sie Ihre Stimme kurz begründen...","polls.attachment":"Anhang herunterladen","polls.legalNote":"Diese Abstimmung dient der Ermittlung des Willens der Miteigentümer in Angelegenheiten der Hausverwaltung. Gemäà § 24 und § 28 WEG 2002 können Eigentümerbeschlüsse auch auÃerhalb von Versammlungen gefasst werden, insbesondere in schriftlicher oder elektronischer Form, sofern allen Eigentümern die Möglichkeit zur Stellungnahme eingeräumt wird. Die Stimmgewichtung richtet sich nach dem Miteigentumsanteil der jeweiligen Einheit gemäà § 24 Abs. 4 WEG 2002 in der Fassung der WEG-Novelle 2022, BGBl. I Nr. 222/2021. Ein gültig gefasster Beschluss in Angelegenheiten der ordentlichen Verwaltung ist bindende Grundlage für das weitere Vorgehen des Verwalters. Der aktuelle Verwaltungsvertrag beauftragt den Verwalter mit der Durchführung der ordentlichen Verwaltung und der Kommunikation mit den Eigentümern, legt jedoch nicht ausdrücklich fest, dass nur der Verwalter jede Eigentümerabstimmung organisieren darf. Einzelheiten finden Sie hier:","polls.legalNoteShort":"Diese Abstimmung erfolgt im Rahmen der Hausverwaltung gemäà § 24 und § 28 WEG 2002. Die Stimmgewichtung entspricht dem Miteigentumsanteil der jeweiligen Einheit. Der aktuelle Verwaltungsvertrag beauftragt den Verwalter mit der Durchführung von MaÃnahmen der ordentlichen Verwaltung und der Kommunikation mit den Eigentümern. Details finden Sie hier:","polls.legalLink":"Mehr über Abstimmungsregeln","polls.legalBasis":"","polls.disclaimer":"Dieses Abstimmungssystem dient der Ermittlung des Meinungsbildes der Eigentümer. Soweit gesetzlich erforderlich, können formelle Beschlüsse weiterhin im Rahmen einer Eigentümerversammlung gefasst werden.","polls.legalInfoTitle":"Rechtliche Informationen","polls.coOwnerNote":"Die Abstimmung erfolgt unter den Miteigentümern der Wohnanlage. Die Stimmgewichtung entspricht dem jeweiligen Miteigentumsanteil.","polls.archive":"Abstimmungsarchiv","polls.participation":"Beteiligung","polls.inProgress":"Laufend","polls.accepted":"Angenommen","polls.rejected":"Abgelehnt","polls.activePoll":"A
165ktive Abstimmung","polls.of":"von","polls.votes":"Stimmen","polls.noArchive":"Keine archivierten Abstimmungen.","polls.unitsVoted":"Einheiten haben abgestimmt","polls.wegShare":"WEG Anteil","polls.wegTotal":"WEG Gesamt","polls.votedFor":"Abgestimmt für","polls.remainingApartments":"Verbleibende Einheiten","polls.alreadyVotedApartment":"Bereits abgestimmt","polls.selectYourApartment":"Wählen Sie Ihre Wohnung","common.loading":"Laden...","common.error":"Fehler","common.save":"Speichern","common.cancel":"Abbrechen","common.delete":"Löschen","common.edit":"Bearbeiten","common.close":"SchlieÃen","common.search":"Suchen","common.noResults":"Keine Ergebnisse gefunden","common.noData":"Keine Daten verfügbar","common.confirmDelete":"Löschen bestätigen","common.deleteWarning":"Diese Aktion kann nicht rückgängig gemacht werden. Möchten Sie dieses Element wirklich löschen?","approval.pendingTitle":"Registrierung ausstehend","approval.pendingDescription":"Ihre Registrierung wartet auf die Genehmigung durch den Administrator. Sie werden benachrichtigt, sobald Ihr Konto aktiviert ist.","approval.rejectedTitle":"Registrierung abgelehnt","approval.rejectedDescription":"Ihre Registrierung wurde nicht genehmigt. Wenn Sie glauben, dass dies ein Fehler ist, kontaktieren Sie bitte den Administrator.","approval.contactAdmin":"Kontakt:","approval.errorTitle":"Kontofehler","approval.errorDescription":"Ihr Kontoprofil konnte nicht geladen werden. Bitte versuchen Sie sich erneut anzumelden oder kontaktieren Sie den Administrator.","approval.slowLoading":"Das Laden dauert länger als gewöhnlich. Bitte laden Sie die Seite neu.","approval.reload":"Seite neu laden","approval.retry":"Profil erneut laden","auth.signupEmailSentApproval":"Ein Bestätigungslink wurde an Ihre E-Mail gesendet. Nach der Bestätigung wird Ihre Registrierung vom Administrator überprüft.","mon.title":"Setzungsmonitoring des Gebäudes","mon.showFloorplan":"Grundriss anzeigen","mon.subtitle":"Geodätische Deformationsmessungen, Ãbersicht der Messpunkte und deren historische Entwicklung","mon.titleTooltip":"Das geodätische Monitoring verfolgt vertikale Verschiebungen (Setzungen) des Gebäudes anhand stabilisierter Messpunkte. Die Messungen werden von einem autorisierten Vermesser durchgeführt und die Ergebnisse zeigen, wie sich das Gebäude im Laufe der Zeit setzt.","mon.noData":"Noch keine Monitoringdaten verfügbar","mon.noDataSub":"Daten werden nach dem Import der Messungen angezeigt.","mon.activePoints":"Aktive Punkte","mon.activePointsTooltip":"Anzahl der Messpunkte, die derzeit überwacht werden und Daten aus der letzten Messung haben.","mon.lostInactive":"Verlorene / inaktive","mon.lostInactiveTooltip":"Punkte, die zerstört wurden oder für neuere Messungen nicht zugänglich sind. Historische Daten können weiterhin verfügbar sein.","mon.maxCumulative":"Max. kumulative Ãnderung","mon.maxCumulativeTooltip":"GröÃte Gesamtsetzung aller aktiven Punkte seit der Basismessung im Jahr 2000. Negativer Wert bedeutet Absenkung.","mon.lastMeasurement":"Letzte Messung","mon.lastMeasurementTooltip":"Datum der letzten geodätischen Vermessung des Gebäudes. Messungen werden von einem autorisierten Vermesser in der Regel alle paar Jahre durchgeführt.","mon.ofTotal":"von {0} gesamt","mon.noCurrentData":"ohne aktuelle Daten","mon.allOk":"alles in Ordnung","mon.point":"Punkt {0}","mon.noData2":"keine Daten","mon.surveyPoints":"Messpunkte","mon.surveyPointsTooltip":"Liste aller Messpunkte. Klicken Sie, um die Punktdetails mit Messhistorie anzuzeigen.","mon.activeOf":"{0} aktive von {1} gesamt","mon.all":"Alle","mon.lost":"verloren","mon.newlySet":"NEU","mon.newlySetTooltip":'Punkt wurde bei dieser Messkampagne neu gesetzt. Der Wert 0,0 mm bedeutet nicht âkeine Setzung" â es ist die neue Basismessung (Nullreferenz), ab der zukünftige Setzungen gemessen werden.',"mon.pointDetail":"Punkt {0}","mon.reference":"Referenz","mon.lostPointExplanation":"Dieser Messpunkt ist für neuere Messungen nicht mehr verfügbar. Historische Daten sind weiterhin verfügbar.","mon.historicalData":"Historische Daten: {0}â{1}","mon.cumulativeChange":"Kumulative Ãnderung","mon.cumulativeChangeTooltip":"Gesamte Höhenänderung des Punktes seit der Basismessung (Jahr 2000). Negativer Wert = Absenkung (Setzung).","mon.intervalChange":"Intervalländerung","mon.intervalChangeTooltip":"Höhenänderung des Punktes im Vergleich zur vorherigen Messung. Zeigt, wie sich der Punkt im gegebenen Zeitraum bewegt hat.","mon.noCurrentDataDetail":"Keine aktuellen Daten","mon.noCurrentDataDetailSub":"Für die ausgewählte Messung sind keine Werte verfügbar.","mon.historyTitle":"Entwicklung im Zeitverlauf","mon.historyGreenTooltip":"Grüne Kurve â kumulative Höhenänderung des Punktes seit der Basismessung (Jahr 2000).","mon.historyOrangeTooltip":"Orange Kurve â Höhenänderung nur für das Intervall zwischen zwei aufeinanderfolgenden Messungen.","mon.cumulative":"Kumulativ","mon.interval":"Intervall","mon.pointInfo":"Punktinformationen","mon.status":"Status","mon.area":"Bereich","mon.firstMeasurement":"Erste verfügbare Messung","mon.lastAvailMeasurement":"Letzte verfügbare Messung","mon.measurementCount":"Anzahl der Messungen","mon.installation":"Installation","mon.deactivation":"Deaktivierung","mon.statusActive":"Aktiv","mon.statusLost":"Verlorener Punkt","mon.statusHistorical":"Historisch","mon.statusPlanned":"Geplant","mon.legendTitle":"Legende","mon.legendTooltip":"Punktfarben entsprechen dem Grad der kumulativen Setzung seit der Basismessung. Je dunkler/roter die Farbe, desto gröÃer die Absenkung.","mon.legendLost":"Verloren / keine Daten","mon.tooltipPoint":"Punkt: {0}","mon.tooltipStatus":"Status: {0}","mon.tooltipMeasurement":"Messung: {0}","mon.tooltipValue":"Wert: {0}
165 mm","mon.tooltipNoData":"Keine aktuellen Daten","mon.tooltipHistorical":"Historische Daten verfügbar bis Jahr {0}","mon.floorplanTooltip":"Aktuell angezeigte Messung. Klicken Sie auf Punkte im Grundriss für Details. Ãndern Sie die Messung in der Zeitleiste unten.","mon.cumulativeTooltip":"Gesamte Höhenänderung des Punktes seit der ersten (Basis-)Messung im Jahr 2000.","mon.intervalTooltip":"Höhenänderung des Punktes nur für den Zeitraum von der vorherigen Messung zur aktuell gewählten.","mon.viewModeTooltip":"Umschalter für den Anzeigemodus der Werte im Grundriss. Klicken Sie auf eine bestimmte Messung in der Zeitleiste, um das Referenzdatum zu ändern.","mon.chartCumulative":"Kumulativ","mon.chartInterval":"Intervall","mon.campaignLabelMeasurement":"Messung","mon.campaignLabelBaseline":"Ausgangsmessung"},cs:{"nav.home":"Domů","nav.forum":"Fórum","nav.owners":"Sekce majitelů","nav.webcam":"Webkamera","nav.admin":"Administrace","nav.login":"PÅihlásit","nav.logout":"Odhlásit","nav.profile":"Profil","hero.title":"Apartmány Maria Alm","hero.subtitle":"Váš alpský úkryt v srdci rakouských Alp","hero.cta":"Prozkoumat","amenities.title":"VybavenÃ","amenities.subtitle":"VÅ¡e pro pohodlný pobyt","amenities.pool":"VnitÅnà bazén","amenities.pool.desc":"VyhÅÃvaný bazén dostupný celoroÄnÄ","amenities.sauna":"Sauna & Wellness","amenities.sauna.desc":"Relaxujte v našà finské saunÄ","amenities.parking":"ParkovánÃ","amenities.parking.desc":"Bezplatné podzemnà parkovánà pro vÅ¡echny hosty","amenities.ski":"Ãschovna lyžÃ","amenities.ski.desc":"BezpeÄné uloženà lyžaÅského vybavenÃ","directions.title":"Jak nás najdete","directions.subtitle":"Nacházà se v krásné vesnici Maria Alm","directions.address":"Adresa","directions.getDirections":"Navigovat","footer.description":"Apartmánový dům v srdci rakouských Alp. Zažijte krásu Maria Alm a regionu Hochkönig.","footer.contact":"Kontakt","footer.links":"Rychlé odkazy","footer.home":"Domů","footer.rentApartment":"Pronájem apartmánu","footer.webcams":"Webkamery","footer.ownersArea":"Sekce majitelů","footer.privacy":"Ochrana osobnÃch údajů","footer.rights":"VÅ¡echna práva vyhrazena","forum.title":"Fórum","forum.subtitle":"Komunitnà diskuze","forum.categories":"Kategorie","forum.threads":"Vlákna","forum.posts":"PÅÃspÄvky","forum.newThread":"Nové vlákno","forum.newPost":"Nový pÅÃspÄvek","forum.reply":"OdpovÄdÄt","forum.translate":"PÅeložit","forum.translating":"PÅekládám...","forum.translated":"PÅeloženo","forum.original":"Originál","forum.backToCategories":"ZpÄt na kategorie","forum.backToThreads":"ZpÄt na vl
165ákna","forum.noThreads":"V této kategorii zatÃm nejsou žádná vlákna","forum.noPosts":"ZatÃm žádné pÅÃspÄvky","forum.threadTitle":"Název vlákna","forum.content":"Obsah","forum.create":"VytvoÅit","forum.cancel":"ZruÅ¡it","forum.pinned":"PÅipnuté","forum.locked":"UzamÄené","forum.by":"od","forum.replies":"odpovÄdÃ","forum.lastPost":"Poslednà pÅÃspÄvek","forum.writeComment":"NapiÅ¡te komentáÅ...","forum.noComments":"ZatÃm žádné komentáÅe","forum.share":"SdÃlet","forum.linkCopied":"Odkaz zkopÃrován do schránky","forum.shareError":"SdÃlenà se nezdaÅilo","owners.title":"Sekce majitelů","owners.welcome":"VÃtejte zpÄt","owners.goToForum":"PÅejÃt na fórum","owners.announcements":"OznámenÃ","owners.polls":"HlasovánÃ","owners.documents":"Dokumenty","documents.description":"Důležité dokumenty a zprávy pro vlastnÃky","owners.profile":"Profil","owners.newsAndAnnouncements":"Správa domu","owners.noAnnouncements":"MomentálnÄ Å¾Ã¡dná oznámenÃ.","owners.important":"Důležité","owners.noDocuments":"Žádné dostupné dokumenty.","owners.download":"Stáhnout","owners.yourProfile":"Váš profil","owners.personalInfo":"Osobnà údaje","owners.personalInfoDesc":"Aktualizujte kontaktnà údaje pro správu nemovitosti.","owners.fullName":"Celé jméno","owners.fullNamePlaceholder":"VaÅ¡e celé jméno","owners.apartmentNumber":"ÄÃslo apartmánu","owners.phone":"Telefonnà ÄÃslo","owners.saving":"Ukládám...","owners.saveChanges":"Uložit zmÄny","owners.propertyManagement":"Kontakt na správu","owners.urgentMatters":"V naléhavých pÅÃpadech nebo pro požadavky na údržbu kontaktujte:","owners.emergency":"TÃsÅová linka","owners.profileUpdated":"Profil aktualizován","owners.profileUpdatedDesc":"Váš profil byl úspÄÅ¡nÄ aktualizován.","owners.profileError":"NepodaÅilo se aktualizovat profil. Zkuste to prosÃm znovu.","owners.forumSettings":"Nastavenà fóra","owners.preferredLanguage":"Preferovaný jazyk","owners.autoTranslate":"Automaticky pÅekládat pÅÃspÄvky","owners.autoTranslateDesc":"Automaticky pÅeložit pÅÃspÄvky v jiném jazyce do vaÅ¡eho preferovaného jazyka","profile.userInfo":"Uživatel","profile.userInfoDesc":"VaÅ¡e osobnà údaje a kontaktnà informace","profile.apartment":"Apartmán","profile.apartmentInfo":"Informace o apartmánu","profile.apartmentInfoDesc":"Podrobnosti o vaÅ¡em apartmánu a vlastnictvÃ","profile.access":"PÅÃstup","profile.forumTab":"Fórum","profile.firstName":"Jméno","profile.lastName":"PÅÃjmenÃ","profile.assignedApartment":"PÅiÅazený apartmán","profile.noApartment":"Žádný apartmán nepÅiÅazen","profile.apartmentCode":"Kód apartmánu","profile.floor":"Patro","profile.area":"Plocha","profile.status":"Status","profile.currentOwner":"Aktuálnà majitel","profile.formerOwner":"Bývalý majitel","profile.ownershipPeriod":"Obdobà vlastnictvÃ","profile.present":"SouÄasnost","profile.noApartmentAssigned":"K vaÅ¡emu úÄtu nenà pÅiÅazen žádný apartmán.","profile.coOwners":"SpoluvlastnÃci","profile.coOwnersDesc":"Dalšà vlastnÃci vaÅ¡eho apartmánu","profile.loginEmail":"PÅihlaÅ¡ovacà e-mail","profile.loginEmailDesc":"VaÅ¡e e-mailová adresa pro pÅihlášenÃ","profile.emailChangeNote":"Pro zmÄnu pÅihlaÅ¡ovacÃho e-mailu kontaktujte administrátora.","profile.changePassword":"ZmÄnit heslo","profile.changePasswordDesc":"Aktualizujte heslo k úÄtu","profile.newPassword":"Nové heslo","profile.passwordMismatch":"Hesla se neshodujÃ","profile.passwordTooShort":"Heslo musà mÃt alespoÅ 6 znaků","profile.passwordChanged":"Heslo zmÄnÄno","profile.passwordChangedDesc":"VaÅ¡e heslo bylo úspÄÅ¡nÄ aktualizováno.","profile.forumSettingsDesc":"Nastavte si preference fóra a notifikace","profile.emailNotifications":"E-mailové notifikace","profile.emailNotificationsDesc":"Dostávat upozornÄnà na nové pÅÃspÄvky ve fóru e-mailem","profile.emailNotificationsNote":"E-mailové notifikace jsou standardnÄ zapnuty pro vÅ¡echny uživatele.","contacts.title":"Kontakty","contacts.description":"Důležité kontakty pro správu nemovitosti a služby","contacts.propertyManager":"Správce nemovitosti","contacts.propertyManagerDesc":"Hlavnà kontakt pro administrativnà záležitosti","contacts.caretakers":"Správci domu","contacts.caretakersDesc":"Správci na mÃstÄ pro údržbu budovy","contacts.caretaker":"Správce domu","contacts.serviceCompanies":"Servisnà firmy","contacts.serviceCompaniesDesc":"Profesionálnà služby pro údržbu budovy","contacts.electrical":"Elektro","contacts.plumbing":"Instalatér","contacts.heating":"TopenÃ","contacts.elevator":"Výtah","contacts.garden":"Zahrada","contacts.emergency":"TÃsÅová linka","contacts.emergencyDesc":"Pro naléhavé pÅÃpady mimo pracovnà dobu","contacts.emergencyNote":"Tato linka je dostupná 24/7 pouze pro nouzové situace. Pro bÄžné dotazy kontaktujte správce nemovitosti v pracovnà dobÄ.","contacts.managerTab":"Správce","contacts.caretakersTab":"Správci","contacts.servicesTab":"Služby","contacts.emergencyTab":"Nouze","sidebar.ownersSection":"Sekce majitelů","sidebar.overview":"PÅehled","sidebar.news":"Správa domu","sidebar.managementComparison":"Srovnánà správců","sidebar.polls":"HlasovánÃ","sidebar.documents":"Dokumenty","sidebar.forum":"Fórum","sidebar.costs":"Náklady","sidebar.profile":"Profil","sidebar.contacts":"Kontakty","sidebar.monitoring":"Monitoring domu","sidebar.operatingCosts":"Provoznà náklady","sidebar.costs.dashboard":"PÅehled","sidebar.costs.categories":"Kategorie","sidebar.costs.reserve":"Fond oprav","sidebar.costs.vendors":"Dod
165avatelé","sidebar.costs.loans":"ÃvÄry","sidebar.costs.heating":"TopenÃ","sidebar.costs.heating.overview":"PÅehled","sidebar.costs.heating.ranking":"ŽebÅÃÄek","sidebar.costs.heating.structure":"Struktura","sidebar.costs.heating.owners":"Podle majitele","sidebar.costs.heating.apartments":"Podle apartmánu","sidebar.ownerView":"Pohled vlastnÃka","dashboard.welcome":"VÃtejte v sekci majitelů","dashboard.description":"Spravujte svou nemovitost, sledujte náklady a buÄte informováni.","dashboard.quickLinks":"Rychlé odkazy","dashboard.recentNews":"Poslednà novinky","dashboard.activePolls":"Aktivnà hlasovánÃ","dashboard.viewAll":"Zobrazit vÅ¡e","costs.title":"PÅehled nákladů","costs.subtitle":"Transparentnà pÅehled vÅ¡ech provoznÃch nákladů a rezerv","costs.description":"Transparentnà pÅehled vÅ¡ech provoznÃch a tepelných nákladů","costs.heating":"TopenÃ","costs.house":"Náklady domu","costs.overview":"PÅehled","costs.import":"Importovat data","costs.selectYear":"Vybrat rok","costs.allYears":"VÅ¡echny roky","costs.totalHeating":"Celkové náklady na topenÃ","costs.totalHouse":"Celkové náklady domu","costs.oilConsumption":"SpotÅeba oleje","costs.avgCostPerSqm":"Prům. náklady/m²","costs.home":"PÅehled","costs.year":"Rok","auth.login":"PÅihlásit se","auth.loginSubtitle":"PÅihlaste se ke svému úÄtu","auth.register":"Registrovat","auth.email":"Email","auth.password":"Heslo","auth.confirmPassword":"Potvrdit heslo","auth.forgotPassword":"Zapomenuté heslo?","auth.noAccount":"Nemáte úÄet?","auth.hasAccount":"Již máte úÄet?","auth.rememberMe":"Zapamatovat pÅihlášenÃ","auth.loginWithoutPassword":"PÅihlásit se bez hesla","auth.sendMagicLink":"Odeslat pÅihlaÅ¡ovacà odkaz","auth.usePassword":"PÅihlásit se heslem","auth.useMagicLink":"PÅihlásit se pÅes odkaz","auth.magicLinkSent":"Odkaz byl odeslán na váš email","auth.emailHintTitle":"NepÅiÅ¡el vám e-mail?","auth.emailHintSpam":"PodÃvejte se prosÃm i do složky Spam / Hromadné â zpráva tam obÄas spadne.","auth.emailHintSender":"E-mail chodà od Appartementhaus Hintermoos, pÅedmÄt âHintermoosâ. Zkuste si ho ve schránce vyhledat.","auth.emailHintWait":"DoruÄenà může trvat nÄkolik minut. Odkaz platà jen omezenou dobu.","auth.magicLinkDescription":"Zadejte email a poÅ¡leme vám bezpeÄný pÅihlaÅ¡ovacà odkaz","auth.magicLinkError":"Chyba pÅi odesÃlánà odkazu","auth.or":"Nebo","auth.verifying":"OvÄÅuji pÅihlášenÃ...","auth.loginSuccess":"ÃspÄÅ¡nÄ pÅihlášeno!","auth.redirecting":"PÅesmÄrovánÃ...","auth.verificationFailed":"OvÄÅenà selhalo","auth.invalidLink":"Neplatný nebo expirovaný odkaz","auth.redirectingToLogin":"PÅesmÄrovánà na pÅihlášenÃ...","auth.checkEmail":"Zkontrolujte svůj email","auth.backToLogin":"ZpÄt na pÅihlášenÃ","auth.backToHome":"ZpÄt na úvod","auth.forgotPasswordTitle":"Obnovenà hesla","auth.forgotPasswordDescription":"Zadejte svůj email a poÅ¡leme vám odkaz pro obnovenà hesla","auth.sendResetLink":"Odeslat odkaz","auth.resetEmailSent":"Odkaz pro obnovenà hesla byl odeslán na váš email","auth.signupEmailSent":"Na váš email byl odeslán ovÄÅovacà odkaz. PotvrÄte ho pro dokonÄenà registrace.","auth.registerTitle":"VytvoÅit úÄet","auth.registerSubtitle":"Zaregistrujte se pro pÅÃstup do sekce vlastnÃků","auth.fullName":"Celé jméno","auth.fullNamePlaceholder":"Jan Novák","auth.invalidCredentials":"Neplatný email nebo heslo.","auth.invalidEmail":"Zadejte platnou emailovou adresu","auth.resetPasswordTitle":"Nastavit nové heslo","auth.resetPasswordDescription":"Zadejte své nové heslo","auth.newPassword":"Nové heslo","auth.passwordMinLength":"Heslo musà mÃt alespoÅ 6 znaků","auth.passwordsDoNotMatch":"Hesla se neshodujÃ","auth.passwordUpdated":"Heslo bylo úspÄÅ¡nÄ zmÄnÄno!","auth.resetLinkExpired":"Tento odkaz již nenà platný. Mohl vyprÅ¡et nebo byl nahrazen novÄjÅ¡Ãm požadavkem.","auth.resetLinkExpiredTitle":"ProÄ se to stalo?","auth.resetLinkSuperseded":"Pokud jste požádali o vÃce e-mailů pro obnovenà hesla, funguje pouze poslednÃ. Každý nový požadavek zneplatnà vÅ¡echny pÅedchozà odkazy. Použijte nejnovÄjšà e-mail nebo požádejte o nový.","auth.requestNewLink":"Požádat o nový odkaz","auth.clickToContinueReset":"KliknÄte na tlaÄÃtko nÞe pro pokraÄovánà k nastavenà nového hesla.","auth.continueToReset":"PokraÄovat","auth.magicLinkVerifyTitle":"PÅihlášenà pÅes Magic Link","auth.clickToContinueLogin":"KliknÄte na tlaÄÃtko nÞe pro dokonÄenà pÅihlášenÃ.","auth.continueToLogin":"PokraÄovat k pÅihlášenÃ","polls.heading":"HLASOVÃNÃ","polls.subtitle":"Váš názor formuje naÅ¡e spoleÄná rozhodnutÃ!","polls.vote":"HLASOVAT","polls.results":"VÃSLEDKY","polls.selectPoll":"Vyberte hlasovánÃ","polls.selectOption":"Vyberte možnost","polls.selectApartment":"Vyberte apartmán","polls.voterName":"Jméno hlasujÃcÃho","polls.voterNamePlaceholder":"Zadejte jméno hlasujÃcÃho","polls.totalResponses":"Celkový poÄet odpovÄdÃ","polls.option":"Možnost","polls.noActive":"Žádná aktivnà hlasovánÃ.","polls.unknown":"Neznámý","polls.closedMsg":'Hlasovánà je ukonÄeno. Výsledky můžete zobrazit na záložce "VÃSLEDKY".',"polls.alreadyVotedMsg":'Již jste hlasovali v této anketÄ. Výsledky můžete zobrazit na záložce "VÃSLEDKY".',"polls.alreadyVotedTitle":"Již jste hlasovali","polls.alreadyVotedDesc":"Za tento apartmán již bylo hlasováno v této anketÄ.","polls.selectApartmentError":"ProsÃm vyberte váš apartmán.","polls.voterNameError":"ProsÃm zadejte jméno hlasujÃcÃho.","polls.voteError":"NepodaÅilo se odeslat hlas. Zkuste to prosÃm znovu.","polls.voteSent":"Hlas odeslán","polls.voteSentDesc":"Váš hlas byl úspÄÅ¡nÄ zaznamenán. DÄkujeme za úÄast!","polls.thankYou":"DÄkujeme za vaÅ¡i aktivnà úÄast a vyjádÅenà názoru. Pokud nesouhlasÃte s výsledky, kontaktujte prosÃm správce hlasovánà s konkrétnÃmi detaily o tom, s ÄÃm a proÄ nesouhlasÃte. VaÅ¡e pÅipomÃnky budou evidovány pro transparentnost celého hlasovánÃ.","polls.thankYouCooperation":"DÄkujeme za spolupráci!","polls.resultsFor":"Výsledky pro hlasovánÃ","polls.multipleAllowed":"můžete vybrat vÃce možnostÃ","polls.comment":"KomentáÅ","polls.commentPlaceholder":"Můžete struÄnÄ uvést důvod svého hlasu...","polls.attachment":"Stáhnout pÅÃlohu","polls.legalNote":"Toto hlasovánà sloužà ke zjiÅ¡tÄnà vůle spoluvlastnÃků ve vÄcech správy domu. Podle § 24 a § 28 WEG 2002 moh
165ou rozhodnutà vlastnÃků vznikat i mimo shromáždÄnÃ, zejména pÃsemnou nebo elektronickou formou, pokud je vÅ¡em vlastnÃkům dána možnost se vyjádÅit. Hlasovacà váha se urÄuje podle spoluvlastnického podÃlu pÅÃsluÅ¡né jednotky v souladu s § 24 odst. 4 WEG 2002, ve znÄnà novely WEG 2022, BGBl. I Nr. 222/2021. PlatnÄ pÅijaté rozhodnutà v otázkách bÄžné správy je závazným podkladem pro dalšà postup správce. Aktuálnà Verwaltungsvertrag povÄÅuje správce výkonem bÄžné správy a komunikacà s vlastnÃky, avÅ¡ak výslovnÄ nestanovÃ, že pouze správce může organizovat každé hlasovánà vlastnÃků. Podrobnosti jsou uvedeny zde:","polls.legalNoteShort":"Toto hlasovánà probÃhá v rámci správy domu podle § 24 a § 28 WEG 2002. Hlasovacà váha odpovÃdá spoluvlastnickému podÃlu pÅÃsluÅ¡né jednotky. Aktuálnà Verwaltungsvertrag povÄÅuje správce výkonem opatÅenà bÄžné správy a komunikacà s vlastnÃky. Podrobnosti jsou uvedeny zde:","polls.legalLink":"VÃce o pravidlech hlasovánÃ","polls.legalBasis":"","polls.disclaimer":"Toto hlasovánà sloužà ke zjiÅ¡tÄnà vůle spoluvlastnÃků. V pÅÃpadech, kdy to vyžaduje zákon, může být nutné pÅijmout formálnà rozhodnutà na shromáždÄnà vlastnÃků.","polls.legalInfoTitle":"Právnà informace","polls.coOwnerNote":"Hlasovánà probÃhá mezi spoluvlastnÃky domu a váha hlasu odpovÃdá spoluvlastnickému podÃlu jednotlivých jednotek.","polls.archive":"Archiv hlasovánÃ","polls.participation":"ÃÄast","polls.inProgress":"ProbÃhá","polls.accepted":"PÅijato","polls.rejected":"ZamÃtnuto","polls.activePoll":"Aktivnà hlasovánÃ","polls.of":"z","polls.votes":"hlasů","polls.noArchive":"Žádná archivnà hlasovánÃ.","polls.unitsVoted":"bytů hlasovalo","polls.wegShare":"WEG podÃl","polls.wegTotal":"Celkem WEG","polls.votedFor":"Hlasováno za","polls.remainingApartments":"ZbývajÃcà byty","polls.alreadyVotedApartment":"Již hlasováno","polls.selectYourApartment":"Vyberte svůj byt","common.loading":"NaÄÃtám...","common.error":"Chyba","common.save":"Uložit","common.cancel":"ZruÅ¡it","common.delete":"Smazat","common.edit":"Upravit","common.close":"ZavÅÃt","common.search":"Hledat","common.noResults":"Žádné výsledky","common.noData":"Žádná data","common.confirmDelete":"Potvrdit smazánÃ","common.deleteWarning":"Tuto akci nelze vrátit zpÄt. Opravdu chcete tuto položku smazat?","approval.pendingTitle":"Registrace Äeká na schválenÃ","approval.pendingDescription":"VaÅ¡e registrace Äeká na schválenà administrátorem. Budete informováni, jakmile bude váš úÄet aktivován.","approval.rejectedTitle":"Registrace zamÃtnuta","approval.rejectedDescription":"VaÅ¡e registrace nebyla schválena. Pokud se domnÃváte, že jde o chybu, kontaktujte prosÃm správce.","approval.contactAdmin":"Kontakt:","approval.errorTitle":"Chyba úÄtu","approval.errorDescription":"Profil vaÅ¡eho úÄtu se nepodaÅilo naÄÃst. Zkuste se pÅihlásit znovu nebo kontaktujte správce.","approval.slowLoading":"NaÄÃtánà trvá déle než obvykle. Zkuste stránku obnovit.","approval.reload":"Obnovit stránku","approval.retry":"Zkusit znovu naÄÃst profil","auth.signupEmailSentApproval":"Na váš email byl odeslán ovÄÅovacà odkaz. Po potvrzenà bude vaÅ¡e registrace posouzena administrátorem.","mon.title":"Monitoring sedánà budovy","mon.showFloorplan":"Zobrazit půdorys","mon.subtitle":"Geodetická mÄÅenà deformacÃ, pÅehled mÄÅicÃch bodů a jejich historického vývoje","mon.titleTooltip":"Geodetický monitoring sleduje svislé posuny (sedánÃ) budovy pomocà stabilizovaných mÄÅicÃch bodů. MÄÅenà provádà autorizovaný geodet a výsledky ukazujÃ, jak se budova v Äase usazuje.","mon.noData":"ZatÃm nejsou k dispozici žádná data monitoringu","mon.noDataSub":"Data budou zobrazena po importu mÄÅenÃ.","mon.activePoints":"Aktivnà body","mon.activePointsTooltip":"PoÄet mÄÅicÃch bodů, které jsou aktuálnÄ sledovány a majà data z poslednÃho mÄÅenÃ.","mon.lostInactive":"Ztracené / neaktivnÃ","mon.lostInactiveTooltip":"Body, které byly zniÄeny nebo nejsou pÅÃstupné pro novÄjšà mÄÅenÃ. Historická data mohou být stále k dis
165pozici.","mon.maxCumulative":"Max. kumulativnà zmÄna","mon.maxCumulativeTooltip":"NejvÄtšà celkové sednutà ze vÅ¡ech aktivnÃch bodů od výchozÃho mÄÅenà v roce 2000. Záporná hodnota znamená pokles.","mon.lastMeasurement":"Poslednà mÄÅenÃ","mon.lastMeasurementTooltip":"Datum poslednÃho geodetického zamÄÅenà budovy. MÄÅenà provádà autorizovaný geodet zpravidla jednou za nÄkolik let.","mon.ofTotal":"z celkem {0}","mon.noCurrentData":"bez aktuálnÃch dat","mon.allOk":"vÅ¡e v poÅádku","mon.point":"bod {0}","mon.noData2":"žádná data","mon.surveyPoints":"MÄÅicà body","mon.surveyPointsTooltip":"Seznam vÅ¡ech mÄÅicÃch bodů. KliknutÃm zobrazÃte detail bodu s historià mÄÅenÃ.","mon.activeOf":"{0} aktivnÃch z {1} celkem","mon.all":"VÅ¡e","mon.lost":"ztracený","mon.newlySet":"NOVÃ","mon.newlySetTooltip":'Bod byl pÅi této kampani novÄ osazen. Hodnota 0,0 mm neznamená âžádné sedánÃ" â jde o novou výchozà hodnotu (nulovou referenci), od které se bude mÄÅit dalšà sedánÃ.',"mon.pointDetail":"Bod {0}","mon.reference":"ReferenÄnÃ","mon.lostPointExplanation":"Tento mÄÅicà bod již nenà dostupný pro novÄjšà mÄÅenÃ. Historická data jsou vÅ¡ak k dispozici.","mon.historicalData":"Historická data: {0}â{1}","mon.cumulativeChange":"Kumulativnà zmÄna","mon.cumulativeChangeTooltip":"Celková zmÄna výšky bodu od výchozÃho mÄÅenà (rok 2000). Záporná hodnota = pokles (sedánÃ).","mon.intervalChange":"ZmÄna za interval","mon.intervalChangeTooltip":"ZmÄna výšky bodu oproti pÅedchozÃmu mÄÅenÃ. Ukazuje, jak se bod posunul v daném obdobÃ.","mon.noCurrentDataDetail":"Bez aktuálnÃch dat","mon.noCurrentDataDetailSub":"Pro vybrané mÄÅenà nejsou k dispozici žádné hodnoty.","mon.historyTitle":"Vývoj v Äase","mon.historyGreenTooltip":"Zelená kÅivka â kumulativnà zmÄna výšky bodu od výchozÃho mÄÅenà (rok 2000).","mon.historyOrangeTooltip":"Oranžová kÅivka â zmÄna výšky pouze za interval mezi dvÄma po sobÄ jdoucÃmi mÄÅenÃmi.","mon.cumulative":"KumulativnÃ","mon.interval":"Interval","mon.pointInfo":"Informace o bodu","mon.status":"Status","mon.area":"Oblast","mon.firstMeasurement":"Prvnà dostupné mÄÅenÃ","mon.lastAvailMeasurement":"Poslednà dostupné mÄÅenÃ","mon.measurementCount":"PoÄet mÄÅenÃ","mon.installation":"Instalace","mon.deactivation":"Deaktivace","mon.statusActive":"AktivnÃ","mon.statusLost":"Ztracený bod","mon.statusHistorical":"Historický","mon.statusPlanned":"Plánovaný","mon.legendTitle":"Legenda","mon.legendTooltip":"Barvy bodů odpovÃdajà mÃÅe kumulativnÃho sedánà od výchozÃho mÄÅenÃ. ÄÃm tmavÅ¡Ã/ÄervenÄjšà barva, tÃm vÄtšà pokles.","mon.legendLost":"Ztracený / bez dat","mon.tooltipPoint":"Bod: {0}","mon.tooltipStatus":"Status: {0}","mon.tooltipMeasurement":"MÄÅenÃ: {0}","mon.tooltipValue":"Hodnota: {0} mm","mon.tooltipNoData":"Bez aktuálnÃch dat","mon.tooltipHistorical":"Historická data dostupná do roku {0}","mon.floorplanTooltip":"AktuálnÄ zobrazené mÄÅenÃ. KliknÄte na body v půdorysu pro zobrazenà detailu. MÄÅenà můžete zmÄnit v Äasové ose nÞe.","mon.cumulativeTooltip":"Celková zmÄna výšky bodu od prvnÃho (výchozÃho) mÄÅenà v roce 2000.","mon.intervalTooltip":"ZmÄna výšky bodu pouze za obdobà od pÅedchozÃho mÄÅenà k aktuálnÄ zvolenému.","mon.viewModeTooltip":"PÅepÃnaÄ režimu zobrazenà hodnot na půdorysu. KliknutÃm na konkrétnà mÄÅenà v Äasové ose zmÄnÃte referenÄnà datum.","mon.chartCumulative":"KumulativnÃ","mon.chartInterval":"Interval","mon.campaignLabelMeasurement":"MÄÅenÃ","mon.campaignLabelBaseline":"Výchozà mÄÅenÃ"}},qj=({children:e})=>{const[t,n]=m.useState(()=>{const s=localStorage.getItem("language");if(s==="en"||s==="de"||s==="cs")return s;const i=navigator.language.toLowerCase();return i.startsWith("de")?"de":i.startsWith("cs")?"cs":"en"});m.useEffect(()=>{localStorage.setItem("language",t),document.documentElement.lang=t},[t]);const r=s=>{n(s)},o=s=>$g[t][s]||$g.en[s]||s;return g.jsx(Wb.Provider,{value:{language:t,setLanguage:r,t:o},children:e})},Hs=()=>{const e=m.useContext(Wb);
165if(e===void 0)throw new Error("useLanguage must be used within a LanguageProvider");return e};let Ti=null,Mo=null;const Qj=e=>{const t={areas:{},subcategories:{},descriptions:{}};for(const n of e){const r=n.section;t[r]||(t[r]={}),t[r][n.language]||(t[r][n.language]={}),t[r][n.language][n.key]=n.value}return t},Hb=async()=>{const{data:e,error:t}=await $e.from("translations").select("*").order("section").order("key");if(t)throw console.error("Error fetching translations:",t),t;return Qj(e||[])},Yj=()=>pO({queryKey:["database-translations"],queryFn:Hb,staleTime:1e3*60*5,gcTime:1e3*60*30}),Jj=async()=>Ti||Mo||(Mo=Hb().then(e=>(Ti=e,e)).catch(e=>{throw Mo=null,e}),Mo),Zj=e=>{Ti=e},lL=()=>{Ti=null,Mo=null},Xj={areas:{},subcategories:{},descriptions:{}},eN=m.createContext(void 0),tN=({children:e})=>{const t=_b(),{data:n,isLoading:r,error:o,refetch:s}=Yj();m.useEffect(()=>{n&&Zj(n)},[n]),m.useEffect(()=>{Jj().catch(console.error)},[]);const i=n||Xj,a=(h,f)=>f==="cs"?h:(i.areas[f]||i.areas.en||{})[h]||h,l=(h,f)=>{if(!h)return"";const b=i.subcategories[f];if(!b)return h;if(b[h])return b[h];for(const[p,k]of Object.entries(b))if(h.toLowerCase().includes(p.toLowerCase()))return h.replace(new RegExp(p,"i"),k);return h},u=(h,f)=>{if(f==="de"||!h)return h;const b=i.descriptions[f];if(!b)return h;let p=h;for(const[k,v]of Object.entries(b)){const y=new RegExp(k,"gi");p=p.replace(y,v)}return p},c=(h,f)=>{if(!h||f==="de")return h;const b=i.descriptions[f];if(!b)return h;let p=h;const k=Object.keys(b).sort((v,y)=>y.length-v.length);for(const v of k){const y=b[v],w=new RegExp(`\\b${v}\\b`,"gi");p=p.replace(w,y)}return p},d=()=>{t.invalidateQueries({queryKey:["database-translations"]}),s()};return g.jsx(eN.Provider,{value:{translations:i,isLoading:r,error:o,refetch:d,translateArea:a,translateSubcategory:l,translateDescription:u,translateFullDescription:c},children:e})},sp=jf("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"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ee=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?AC:"button";return g.jsx(i,{className:ke(sp({variant:t,size:n,className:e})),ref:s,...o})});
vendor: 5,625 bytes, line 165
165Ee.displayName="Button";const Ks=m.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:ke("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Ks.displayName="Card";const ya=m.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:ke("flex flex-col space-y-1.5 p-6",e),...t}));ya.displayName="CardHeader";const wa=m.forwardRef(({className:e,...t},n)=>g.jsx("h3",{ref:n,className:ke("text-2xl font-semibold leading-none tracking-tight",e),...t}));wa.displayName="CardTitle";const nN=m.forwardRef(({className:e,...t},n)=>g.jsx("p",{ref:n,className:ke("text-sm text-muted-foreground",e),...t}));nN.displayName="CardDescription";const Gs=m.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:ke("p-6 pt-0",e),...t}));Gs.displayName="CardContent";const rN=m.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:ke("flex items-center p-6 pt-0",e),...t}));rN.displayName="CardFooter";const zo=m.forwardRef(({className:e,type:t,...n},r)=>g.jsx("input",{type:t,className:ke("flex h-10 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 md:text-sm",e),ref:r,...n}));zo.displayName="Input";var oN="Label",Kb=m.forwardRef((e,t)=>g.jsx(Oe.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Kb.displayName=oN;var Gb=Kb;const sN=jf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fi=m.forwardRef(({className:e,...t},n)=>g.jsx(Gb,{ref:n,className:ke(sN(),e),...t}));fi.displayName=Gb.displayName;var Mc="focusScope.autoFocusOnMount",zc="focusScope.autoFocusOnUnmount",Fg={bubbles:!1,cancelable:!0},iN="FocusScope",qb=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=m.useState(null),u=bn(o),c=bn(s),d=m.useRef(null),h=Ge(t,p=>l(p)),f=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let p=function(w){if(f.paused||!a)return;const S=w.target;a.contains(S)?d.current=S:Zn(d.current,{select:!0})},k=function(w){if(f.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||Zn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&Zn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",k);const y=new MutationObserver(v);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",k),y.disconnect()}}},[r,a,f.paused]),m.useEffect(()=>{if(a){Ug.add(f);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(Mc,Fg);a.addEventListener(Mc,u),a.dispatchEvent(v),v.defaultPrevented||(aN(hN(Qb(a)),{select:!0}),document.activeElement===p&&Zn(a))}return()=>{a.removeEventListener(Mc,u),setTimeout(()=>{const v=new CustomEvent(zc,Fg);a.addEventListener(zc,c),a.dispatchEvent(v),v.defaultPrevented||Zn(p??document.body,{select:!0}),a.removeEventListener(zc,c),Ug.remove(f)},0)}}},[a,u,c,f]);const b=m.useCallback(p=>{if(!n&&!r||f.paused)return;const k=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(k&&v){const y=p.currentTarget,[w,S]=lN(y);w&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&Zn(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&Zn(S,{select:!0})):v===y&&p.preventDefault()}},[n,r,f.paused]);return g.jsx(Oe.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});qb.displayName=iN;function aN(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Zn(r,{select:t}),document.activeElement!==n)return}function lN(e){const t=Qb(e),n=Bg(t,e),r=Bg(t.reverse(),e);return[n,r]}function Qb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bg(e,t){for(const n of e)if(!uN(n,{upTo:t}))return n}function uN(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cN(e){return e instanceof HTMLInputElement&&"select"in e}function Zn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cN(e)&&t&&e.select()}}var Ug=dN();function dN(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vg(e,t),e.unshift(t)},remove(t){var n;e=Vg(e,t),(n=e[0])==null||n.resume()}}}function Vg(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hN(e){return e.filter(t=>t.tagName!=="A")}var $c=0;function fN(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wg()),document.body.insertAdjacentElement("beforeend",e[1]??Wg()),$c++,()=>{$c===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$c--}},[])}function Wg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,248 bytes, line 165
165style.position="fixed",e.style.pointerEvents="none",e}var Sl="right-scroll-bar-position",_l="width-before-scroll-bar",pN="with-scroll-bars-hidden",mN="--removed-body-scroll-bar-size";function Fc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gN(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var vN=typeof window<"u"?m.useLayoutEffect:m.useEffect,Hg=new WeakMap;function yN(e,t){var n=gN(null,function(r){return e.forEach(function(o){return Fc(o,r)})});return vN(function(){var r=Hg.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Fc(a,null)}),s.forEach(function(a){o.has(a)||Fc(a,i)})}Hg.set(n,e)},[e]),n}function wN(e){return e}function bN(e,t){t===void 0&&(t=wN);var n=[],r=!1,o={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]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var c=i;i=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return o}function kN(e){e===void 0&&(e={});var t=bN(null);return t.options=gn({async:!0,ssr:!1},e),t}var Yb=function(e){var t=e.sideCar,n=Ls(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,gn({},n))};Yb.isSideCarExport=!0;function SN(e,t){return e.useMedium(t),Yb}var Jb=kN(),Bc=function(){},Lu=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Bc,onWheelCapture:Bc,onTouchMoveCapture:Bc}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,b=e.noIsolation,p=e.inert,k=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,S=Ls(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,E=yN([n,t]),x=gn(gn({},S),o);return m.createElement(m.Fragment,null,c&&m.createElement(_,{sideCar:Jb,removeScrollBar:u,shards:d,noRelative:f,noIsolation:b,inert:p,setCallbacks:s,allowPinchZoom:!!k,lockRef:n,gapMode:w}),i?m.cloneElement(m.Children.only(a),gn(gn({},x),{ref:E})):m.createElement(y,gn({},x,{className:l,ref:E}),a))});Lu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lu.classNames={fullWidth:_l,zeroRight:Sl};var _N=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_N();return t&&e.setAttribute("nonce",t),e}function xN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function TN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CN=function(){var e=0,t=null;return{add:function(n){e==0&&(t=EN())&&(xN(t,n),TN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},PN=function(){var e=CN();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Zb=function(){var e=PN(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},RN={left:0,top:0,right:0,gap:0},Uc=function(e){return parseInt(e||"",10)||0},AN=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Uc(n),Uc(r),Uc(o)]},ON=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RN;var t=AN(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}
vendor: 4,393 bytes, lines 165-205
165,jN=Zb(),as="data-scroll-locked",NN=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 166 .`.concat(pN,` { 167 overflow: hidden `).concat(r,`; 168 padding-right: `).concat(a,"px ").concat(r,`; 169 } 170 body[`).concat(as,`] { 171 overflow: hidden `).concat(r,`; 172 overscroll-behavior: contain; 173 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 174 padding-left: `.concat(o,`px; 175 padding-top: `).concat(s,`px; 176 padding-right: `).concat(i,`px; 177 margin-left:0; 178 margin-top:0; 179 margin-right: `).concat(a,"px ").concat(r,`; 180 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 181 } 182 183 .`).concat(Sl,` { 184 right: `).concat(a,"px ").concat(r,`; 185 } 186 187 .`).concat(_l,` { 188 margin-right: `).concat(a,"px ").concat(r,`; 189 } 190 191 .`).concat(Sl," .").concat(Sl,` { 192 right: 0 `).concat(r,`; 193 } 194 195 .`).concat(_l," .").concat(_l,` { 196 margin-right: 0 `).concat(r,`; 197 } 198 199 body[`).concat(as,`] { 200 `).concat(mN,": ").concat(a,`px; 201 } 202`)},Kg=function(){var e=parseInt(document.body.getAttribute(as)||"0",10);return isFinite(e)?e:0},IN=function(){m.useEffect(function(){return document.body.setAttribute(as,(Kg()+1).toString()),function(){var e=Kg()-1;e<=0?document.body.removeAttribute(as):document.body.setAttribute(as,e.toString())}},[])},DN=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;IN();var s=m.useMemo(function(){return ON(o)},[o]);return m.createElement(jN,{styles:NN(s,!t,o,n?"":"!important")})},Eh=!1;if(typeof window<"u")try{var Xa=Object.defineProperty({},"passive",{get:function(){return Eh=!0,!0}});window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{Eh=!1}var Oo=Eh?{passive:!1}:!1,LN=function(e){return e.tagName==="TEXTAREA"},Xb=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!LN(e)&&n[t]==="visible")},MN=function(e){return Xb(e,"overflowY")},zN=function(e){return Xb(e,"overflowX")},Gg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ek(e,r);if(o){var s=tk(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$N=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},FN=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ek=function(e,t){return e==="v"?MN(t):zN(t)},tk=function(e,t){return e==="v"?$N(t):FN(t)},BN=function(e,t){return e==="h"&&t==="rtl"?-1:1},UN=function(e,t,n,r,o){var s=BN(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,c=i>0,d=0,h=0;do{if(!a)break;var f=tk(e,a),b=f[0],p=f[1],k=f[2],v=p-k-s*b;(b||v)&&ek(e,a)&&(d+=v,h+=b);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(h)<1||!o))&&(u=!0),u},el=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qg=function(e){return[e.deltaX,e.deltaY]},Qg=function(e){return e&&"current"in e?e.current:e},VN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},WN=function(e){return` 203 .block-interactivity-`.concat(e,` {pointer-events: none;} 204 .allow-interactivity-`).concat(e,` {pointer-events: all;} 205`)},HN=0,jo=[];function KN(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(HN++)[0],s=m.useState(Zb)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=zE([e.lockRef.current],(e.shards||[]).map(Qg),!0).filter(Boolean);return p.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(p,k){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=el(p),y=n.current,w="deltaX"in p?p.deltaX:y[0]-v[0],S="deltaY"in p?p.deltaY:y[1]-v[1],_,E=p.target,x=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&x==="h"&&E.type==="range")return!1;var P=Gg(x,E);if(!P)return!0;
vendor: 4,540 bytes, line 205
205if(P?_=x:(_=x==="v"?"h":"v",P=Gg(x,E)),!P)return!1;if(!r.current&&"changedTouches"in p&&(w||S)&&(r.current=_),!_)return!0;var R=r.current||_;return UN(R,k,p,R==="h"?w:S,!0)},[]),l=m.useCallback(function(p){var k=p;if(!(!jo.length||jo[jo.length-1]!==s)){var v="deltaY"in k?qg(k):el(k),y=t.current.filter(function(_){return _.name===k.type&&(_.target===k.target||k.target===_.shadowParent)&&VN(_.delta,v)})[0];if(y&&y.should){k.cancelable&&k.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(Qg).filter(Boolean).filter(function(_){return _.contains(k.target)}),S=w.length>0?a(k,w[0]):!i.current.noIsolation;S&&k.cancelable&&k.preventDefault()}}},[]),u=m.useCallback(function(p,k,v,y){var w={name:p,delta:k,target:v,should:y,shadowParent:GN(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),c=m.useCallback(function(p){n.current=el(p),r.current=void 0},[]),d=m.useCallback(function(p){u(p.type,qg(p),p.target,a(p,e.lockRef.current))},[]),h=m.useCallback(function(p){u(p.type,el(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return jo.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Oo),document.addEventListener("touchmove",l,Oo),document.addEventListener("touchstart",c,Oo),function(){jo=jo.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,Oo),document.removeEventListener("touchmove",l,Oo),document.removeEventListener("touchstart",c,Oo)}},[]);var f=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(s,{styles:WN(o)}):null,f?m.createElement(DN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function GN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qN=SN(Jb,KN);var nk=m.forwardRef(function(e,t){return m.createElement(Lu,gn({},e,{ref:t,sideCar:qN}))});nk.classNames=Lu.classNames;var QN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},No=new WeakMap,tl=new WeakMap,nl={},Vc=0,rk=function(e){return e&&(e.host||rk(e.parentNode))},YN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=rk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},JN=function(e,t,n,r){var o=YN(t,Array.isArray(e)?e:[e]);nl[n]||(nl[n]=new WeakMap);var s=nl[n],i=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))c(h);else try{var f=h.getAttribute(r),b=f!==null&&f!=="false",p=(No.get(h)||0)+1,k=(s.get(h)||0)+1;No.set(h,p),s.set(h,k),i.push(h),p===1&&b&&tl.set(h,!0),k===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return c(t),a.clear(),Vc++,function(){i.forEach(function(d){var h=No.get(d)-1,f=s.get(d)-1;No.set(d,h),s.set(d,f),h||(tl.has(d)||d.removeAttribute(r),tl.delete(d)),f||d.removeAttribute(n)}),Vc--,Vc||(No=new WeakMap,No=new WeakMap,tl=new WeakMap,nl={})}},ZN=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=QN(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),JN(r,o,n,"aria-hidden")):function(){return null}},Mu="Dialog",[ok,sk]=zs(Mu),[XN,un]=ok(Mu),ik=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=m.useRef(null),l=m.useRef(null),[u,c]=Pf({prop:r,defaultProp:o??!1,onChange:s,caller:Mu});return g.jsx(XN,{scope:t,triggerRef:a,contentRef:l,contentId:yl(),titleId:yl(),descriptionId:yl(),open:u,onOpenChange:c,onOpenToggle:m.useCallback(()=>c(d=>!d),[c]),modal:i,children:n})};ik.displayName=Mu;var ak="DialogTrigger",lk=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=un(ak,n),s=Ge(t,o.triggerRef);return g.jsx(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lp(o.open),...r,ref:s,onClick:ge(e.onClick,o.onOpenToggle)})});lk.displayName=ak;var ip="DialogPortal",[eI,uk]=ok(ip,{forceMount:void 0}),ck=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=un(ip,t);return g.jsx(eI,{scope:t,forceMount:n,children:m.Children.map(r,i=>g.jsx($s,{present:n||s.open,children:g.jsx(Cf,{asChild:!0,container:o,children:i})}))})};ck.displayName=ip;var ou="DialogOverlay",dk=m.forwardRef((e,t)=>
vendor: 4,191 bytes, lines 205-209
205{const n=uk(ou,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=un(ou,e.__scopeDialog);return s.modal?g.jsx($s,{present:r||s.open,children:g.jsx(nI,{...o,ref:t})}):null});dk.displayName=ou;var tI=Yi("DialogOverlay.RemoveScroll"),nI=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=un(ou,n);return g.jsx(nk,{as:tI,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(Oe.div,{"data-state":lp(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ho="DialogContent",hk=m.forwardRef((e,t)=>{const n=uk(ho,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=un(ho,e.__scopeDialog);return g.jsx($s,{present:r||s.open,children:s.modal?g.jsx(rI,{...o,ref:t}):g.jsx(oI,{...o,ref:t})})});hk.displayName=ho;var rI=m.forwardRef((e,t)=>{const n=un(ho,e.__scopeDialog),r=m.useRef(null),o=Ge(t,n.contentRef,r);return m.useEffect(()=>{const s=r.current;if(s)return ZN(s)},[]),g.jsx(fk,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault())})}),oI=m.forwardRef((e,t)=>{const n=un(ho,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return g.jsx(fk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),fk=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=un(ho,n),l=m.useRef(null),u=Ge(t,l);return fN(),g.jsxs(g.Fragment,{children:[g.jsx(qb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:g.jsx(_u,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":lp(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(iI,{titleId:a.titleId}),g.jsx(lI,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ap="DialogTitle",pk=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=un(ap,n);return g.jsx(Oe.h2,{id:o.titleId,...r,ref:t})});pk.displayName=ap;var mk="DialogDescription",gk=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=un(mk,n);return g.jsx(Oe.p,{id:o.descriptionId,...r,ref:t})});gk.displayName=mk;var vk="DialogClose",yk=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=un(vk,n);return g.jsx(Oe.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,()=>o.onOpenChange(!1))})});yk.displayName=vk;function lp(e){return e?"open":"closed"}var wk="DialogTitleWarning",[sI,bk]=PC(wk,{contentName:ho,titleName:ap,docsSlug:"dialog"}),iI=({titleId:e})=>{const t=bk(wk),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 206 207If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 208 209For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},aI="DialogDescriptionWarning",lI=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bk(aI).contentName}}.`;return m.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},uI=ik,cI=lk,dI=ck,hI=dk,fI=hk,pI=pk,mI=gk,kk=yk,Sk="AlertDialog",[gI,uL]=zs(Sk,[sk]),Bn=sk(),_k=e=>{const{__scopeAlertDialog:t,...n}=e,r=Bn(t);return g.jsx(uI,{...r,...n,modal:!0})};_k.displayName=Sk;var vI="AlertDialogTrigger",Ek=m.forwardRef((e,t)=>
209{const{__scopeAlertDialog:n,...r}=e,o=Bn(n);return g.jsx(cI,{...o,...r,ref:t})});Ek.displayName=vI;var yI="AlertDialogPortal",xk=e=>{const{__scopeAlertDialog:t,...n}=e,r=Bn(t);return g.jsx(dI,{...r,...n})};xk.displayName=yI;var wI="AlertDialogOverlay",Tk=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Bn(n);return g.jsx(hI,{...o,...r,ref:t})});Tk.displayName=wI;var ls="AlertDialogContent",[bI,kI]=gI(ls),SI=Yw("AlertDialogContent"),Ck=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,s=Bn(n),i=m.useRef(null),a=Ge(t,i),l=m.useRef(null);return g.jsx(sI,{contentName:ls,titleName:Pk,docsSlug:"alert-dialog",children:g.jsx(bI,{scope:n,cancelRef:l,children:g.jsxs(fI,{role:"alertdialog",...s,...o,ref:a,onOpenAutoFocus:ge(o.onOpenAutoFocus,u=>{var c;u.preventDefault(),(c=l.current)==null||c.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[g.jsx(SI,{children:r}),g.jsx(EI,{contentRef:i})]})})})});Ck.displayName=ls;var Pk="AlertDialogTitle",Rk=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Bn(n);return g.jsx(pI,{...o,...r,ref:t})});Rk.displayName=Pk;var Ak="AlertDialogDescription",Ok=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Bn(n);return g.jsx(mI,{...o,...r,ref:t})});Ok.displayName=Ak;var _I="AlertDialogAction",jk=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Bn(n);return g.jsx(kk,{...o,...r,ref:t})});jk.displayName=_I;var Nk="AlertDialogCancel",Ik=m.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=kI(Nk,n),s=Bn(n),i=Ge(t,o);return g.jsx(kk,{...s,...r,ref:i})});Ik.displayName=Nk;var EI=({contentRef:e})=>{const t=`\`${ls}\` requires a description for the component to be accessible for screen reader users. 210 211You can add a description to the \`${ls}\` by passing a \`${Ak}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 212 213Alternatively, 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 \`${ls}\`. 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. 214 215For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return m.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},xI=_k,TI=Ek,CI=xk,Dk=Tk,Lk=Ck,Mk=jk,zk=Ik,$k=Rk,Fk=Ok;const PI=xI,cL=TI,RI=CI,Bk=m.forwardRef(({className:e,...t},n)=>g.jsx(Dk,{className:ke("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",e),...t,ref:n}));Bk.displayName=Dk.displayName;const Uk=m.forwardRef(({className:e,...t},n)=>g.jsxs(RI,{children:[g.jsx(Bk,{}),g.jsx(Lk,{ref:n,className:ke("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",e),...t})]}));Uk.displayName=Lk.displayName;const Vk=m.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:ke("flex flex-col space-y-2 text-center sm:text-left",e),...t}));Vk.displayName="AlertDialogHeader";const Wk=m.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:ke("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));Wk.displayName="AlertDialogFooter";const Hk=m.forwardRef(({className:e,...t},n)=>g.jsx($k,{ref:n,className:ke("text-lg font-semibold",e),...t}));Hk.displayName=$k.displayName;const Kk=m.forwardRef(({className:e,...t},n)=>g.jsx(Fk,{ref:n,className:ke("text-sm text-muted-foreground",e),...t}));Kk.displayName=Fk.displayName;const AI=m.forwardRef(({className:e,...t},n)=>g.jsx(Mk,{ref:n,className:ke(sp(),e),...t}));AI.displayName=Mk.displayName;const Gk=m.forwardRef(({className:e,...t},n)=>g.jsx(zk,{ref:n,className:ke(sp({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Gk.displayName=zk.displayName;const Wc="legal-delivery-changed";function ba(e){const{user:t}=mo(),[n,r]=m.useState([]),[o,s]=m.useState(!0),i=m.useCallback(async()=>
215{if(!t){r([]),s(!1);return}const{data:l,error:u}=await $e.rpc("get_my_legal_delivery",{p_language:e});u&&console.error("legal delivery load failed",u),r(l??[]),s(!1)},[t,e]);m.useEffect(()=>{i();const l=()=>{i()};return window.addEventListener(Wc,l),()=>window.removeEventListener(Wc,l)},[i]);const a=m.useCallback(async(l,u,c,d,h)=>{const{data:f,error:b}=await $e.rpc("set_legal_delivery_method",{p_owner_id:l,p_method:u,p_source:c,p_language:e,p_terms_version:d,p_postal_address:h??null});return b||(await i(),window.dispatchEvent(new Event(Wc))),{error:b,result:f}},[e,i]);return{entries:n,loading:o,reload:i,setMethod:a}}function zu(e){return e.method==="electronic"&&e.reconfirmation_required?"reconfirmation_required":e.method}function OI(e,t){if(!t||!e.can_manage)return!1;const n=zu(e);return n==="not_selected"||n==="reconfirmation_required"}function dL(e){const t={total:e.length,electronic:0,postal:0,not_selected:0,reconfirmation_required:0};for(const n of e)t[n]+=1;return t}const xh={de:{electronic:"Elektronisch",postal:"Postalisch",not_selected:"Nicht gewählt",reconfirmation_required:"Neue Bestätigung erforderlich"},en:{electronic:"Electronic",postal:"Postal",not_selected:"Not selected",reconfirmation_required:"Reconfirmation required"},cs:{electronic:"Elektronicky",postal:"PoÅ¡tou",not_selected:"Nezvoleno",reconfirmation_required:"Vyžaduje nové potvrzenÃ"}},Yg={de:"Im Portal ist kein Antrag auf elektronische Zustellung erfasst.",en:"No request for electronic delivery is recorded in the portal.",cs:"V portálu nenà evidována žádost o elektronické doruÄovánÃ."};function ka(e){return e==="cs"||e==="en"?e:"de"}function Hc(e,t){if(!e)return"â";const n=new Date(e),r=t==="cs"?"cs-CZ":t==="en"?"en-GB":"de-AT";return n.toLocaleString(r,{day:"numeric",month:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Vienna"})}function jI(e,t){return e.trim().toLowerCase()===t.trim().toLowerCase()}const go={de:{confirm:"Bestätigen",saved:"Einstellung gespeichert",error:"Speichern fehlgeschlagen",line:"Kommunikation und Zustellung",to:"an",change:"Ãndern",noEmail:"Für diesen Eigentümer ist keine E-Mail-Adresse hinterlegt. Eine elektronische Zustellung kann daher nicht bestätigt werden.",reconfirm:"Ihre E-Mail-Adresse hat sich geändert. Bitte bestätigen Sie die elektronische Zustellung für die neue Adresse.",profileTitle:"Kommunikation, Zustellung und Aktivität",method:"Art der Kommunikation",email:"E-Mail",s245:"Elektronische Zustellung nach § 24 Abs. 5",firstLogin:"Erste Anmeldung im Portal",lastLogin:"Letzte Anmeldung im Portal",active:"Aktiv",inactive:"Nicht aktiv",setOn:"Festgelegt am",via:"Bestätigt über",voting:"Abstimmung",profile:"Profil",changeMethod:"Art der Kommunikation ändern",electronic:"Elektronisch",postal:"Postalisch",cancel:"Abbrechen",postalAddress:"Postanschrift",postalAddressLabel:"Postanschrift für die Zustellung",addrStreet:"StraÃe und Hausnummer",addrZip:"PLZ",addrCity:"Ort",addrCountry:"Land",addressRequired:"Bitte füllen Sie alle Felder der Postanschrift aus, damit klar ist, wohin zugestellt werden soll.",readOnly:"Nur der Eigentümer oder ein Vertreter mit nachgewiesener Berechtigung kann diese Einstellung ändern.",scope:"Die Hausanschlag-Kundmachung bleibt davon unberührt.",postalWarnTitle:"Postalische Kommunikation",postalWarnBody:"Nach der Bestätigung dieser Wahl wird Ihr Portalzugang deaktiviert. Alle künftigen Informationen der Gemeinschaft, Einladungen, Abstimmungsunterlagen, Ergebnisse und Beschlüsse senden wir Ihnen per Post an die von Ihnen gewählte Zustelladresse.",postalPhrase:"ICH WÃHLE POST",postalPhraseHint:"Zur Bestätigung dieser Ãnderung schreiben Sie bitte ICH WÃHLE POST.",postalConfirmAction:"Ich verstehe und bestätige die postalische Zustellung",postalKeepElectronic:"Elektronische Zustellung beibehalten",postalDoneTitle:"Postalische Zustellung aktiviert",postalDoneBody:"Ihr Portalzugang wurde deaktiviert. Alle künftigen Informationen der Gemeinschaft, Einladungen, Abstimmungsunterlagen, Ergebnisse und Beschlüsse senden wir Ihnen per Post an die von Ihnen gewählte Zustelladresse.",postalDoneSignOut:"Abmelden und abschlieÃen",postalWarnBodyPending:"Nach Abgabe Ihrer Stimme wird Ihr Portalzugang deaktiviert. Alle künftigen Informationen der Gemeinschaft, Einladungen, Abstimmungsunterlagen, Ergebnisse und Beschlüsse senden wir Ihnen per Post an die von Ihnen gewählte Zustelladresse.",gateTitle:"Wählen Sie die Art der Kommunikation",gateBody:"Um mit der elektronischen Abstimmung fortzufahren, wählen Sie bitte die Art der weiteren Kommunikation.",addrTitle:"Zustelladresse",addrConfirm:"Adresse bestätigen",addrEdit:"Bearbeiten",pendingSaved:"Postalische Kommunikation gewählt. Sie können jetzt abstimmen;
215 nach Abgabe Ihrer Stimme wird Ihr Portalzugang deaktiviert.",votedTitle:"Ihre Stimme wurde erfasst.",votedBody:"Sie haben die postalische Kommunikation gewählt. Ihr Portalzugang wurde deaktiviert. Alle künftigen Informationen der Gemeinschaft, Einladungen, Abstimmungsunterlagen, Ergebnisse und Beschlüsse senden wir Ihnen per Post an die von Ihnen gewählte Zustelladresse."},en:{confirm:"Confirm",saved:"Setting saved",error:"Saving failed",line:"Communication and delivery",to:"to",change:"Change",noEmail:"No email address is registered for this owner, so electronic delivery cannot be confirmed.",reconfirm:"Your email address has changed. Please confirm electronic delivery for the new address.",profileTitle:"Communication, delivery and activity",method:"Communication method",email:"Email",s245:"Electronic delivery under § 24(5)",firstLogin:"First portal sign-in",lastLogin:"Last portal sign-in",active:"Active",inactive:"Not active",setOn:"Set on",via:"Confirmed via",voting:"Voting",profile:"Profile",changeMethod:"Change communication method",electronic:"Electronic",postal:"Postal",cancel:"Cancel",postalAddress:"Postal address",postalAddressLabel:"Postal address for delivery",addrStreet:"Street and number",addrZip:"Postcode",addrCity:"City",addrCountry:"Country",addressRequired:"Please fill in all address fields so it is clear where to send mail.",readOnly:"Only the owner or a representative with documented authority can change this setting.",scope:"The notice posted in the building is not affected.",postalWarnTitle:"Postal communication",postalWarnBody:"After you confirm this choice, your portal access will be deactivated. We will send all future community information, invitations, voting documents, results and resolutions by post to the delivery address you have chosen.",postalPhrase:"I CHOOSE POSTAL DELIVERY",postalPhraseHint:"To confirm this change, please type I CHOOSE POSTAL DELIVERY.",postalConfirmAction:"I understand and confirm postal delivery",postalKeepElectronic:"Keep electronic delivery",postalDoneTitle:"Postal delivery activated",postalDoneBody:"Your portal access has been deactivated. We will send all future community information, invitations, voting documents, results and resolutions by post to the delivery address you have chosen.",postalDoneSignOut:"Sign out and finish",postalWarnBodyPending:"After you cast your vote, your portal access will be deactivated. We will send all future community information, invitations, voting documents, results and resolutions by post to the delivery address you have chosen.",gateTitle:"Choose how we communicate with you",gateBody:"To continue with electronic voting, please choose how further communication should take place.",addrTitle:"Delivery address",addrConfirm:"Confirm address",addrEdit:"Edit",pendingSaved:"Postal communication chosen. You can vote now; your portal access will be deactivated after you cast your vote.",votedTitle:"Your vote has been recorded.",votedBody:"You have chosen postal communication. Your portal access has been deactivated. We will send all future community information, invitations, voting documents, results and resolutions by post to the delivery address you have chosen."},cs:{confirm:"Potvrdit",saved:"Nastavenà uloženo",error:"Uloženà se nezdaÅilo",line:"Komunikace a doruÄovánÃ",to:"na",change:"ZmÄnit",noEmail:"U tohoto vlastnÃka nenà evidována e-mailová adresa, elektronické doruÄovánà proto nelze potvrdit.",reconfirm:"VaÅ¡e e-mailová adresa se zmÄnila. PotvrÄte prosÃm elektronické doruÄovánà pro novou adresu.",profileTitle:"Komunikace, doruÄovánà a aktivita",method:"Způsob komunikace",email:"E-mail",s245:"Elektronické doruÄovánà podle § 24 odst. 5",firstLogin:"Prvnà pÅihlášenà na portál",lastLogin:"Poslednà pÅihlášenà na portál",active:"AktivnÃ",inactive:"NeaktivnÃ",setOn:"Nastaveno dne",via:"Potvrzeno pÅes",voting:"HlasovánÃ",profile:"Profil",changeMethod:"ZmÄnit způsob komunikace",electronic:"Elektronicky",postal:"PoÅ¡tou",cancel:"ZruÅ¡it",postalAddress:"PoÅ¡tovnà adresa",postalAddressLabel:"PoÅ¡tovnà adresa pro doruÄovánÃ",addrStreet:"Ulice a ÄÃslo popisné",addrZip:"PSÄ",addrCity:"MÄsto",addrCountry:"ZemÄ",addressRequired:"VyplÅte prosÃm vÅ¡echna pole adresy, aby bylo jasné, kam zásilky posÃlat.",readOnly:"Toto nastavenà může zmÄnit jen vlastnÃk nebo zástupce s doloženým oprávnÄnÃm.",scope:"VyvÄÅ¡enà v domÄ tÃm zůstává nedotÄeno.",postalWarnTitle:"PoÅ¡tovnà komunikace",postalWarnBody:"Po potvrzenà této volby bude váš pÅÃstup do portálu deaktivován. VeÅ¡keré budoucà informace z komunity, pozvánky, podklady k hlasovánÃ, výsledky a rozhodnutà vám budeme zasÃlat poÅ¡tou na vámi zvolenou doruÄovacà adresu.",postalPhrase:"VOLÃM POÅ TU",postalPhraseHint:"Pro potvrzenà této zmÄny napiÅ¡te VOLÃM POÅ TU.",postalConfirmAction:"RozumÃm a potvrzuji doruÄovánà poÅ¡tou",postalKeepElectronic:"Ponechat elektronické doruÄovánÃ",postalDoneTitle:"PoÅ¡tovnà doruÄovánà bylo aktivováno",postalDoneBody:"PÅÃstup do portálu byl deaktivován. VeÅ¡keré budoucà informace z komunity, pozvánky, podklady k hlasovánÃ, výsledky a rozhodnutà vám budeme zasÃlat poÅ¡tou na vámi zvolenou doruÄovacà adresu.",postalDoneSignOut:"Odhlásit a dokonÄit",postalWarnBodyPending:"Po odevzdánà hlasu bude váš pÅÃstup do portálu deaktivován. VeÅ¡keré budoucà informace z komunity, pozvánky, podklady k hlasovánÃ, výsledky a rozhodnutà vám budeme zasÃlat poÅ¡tou na vámi zvolenou doruÄovacà adresu.",gateTitle:"Zvolte způsob komunikace",gateBody:"Pro pokraÄovánà v elektronickém hlasovánà je nutné zvolit způsob dalšà komunikace.",addrTitle:"DoruÄovacà adresa",addrConfirm:"Potvrdit adresu",addrEdit:"Uprav
215it",pendingSaved:"PoÅ¡tovnà komunikace zvolena. Nynà můžete hlasovat; po odevzdánà hlasu bude váš pÅÃstup do portálu deaktivován.",votedTitle:"Váš hlas byl zaznamenán.",votedBody:"Zvolili jste poÅ¡tovnà komunikaci. PÅÃstup do portálu byl deaktivován. VeÅ¡keré budoucà informace z komunity, pozvánky, podklady k hlasovánÃ, výsledky a rozhodnutà vám budeme zasÃlat poÅ¡tou na vámi zvolenou doruÄovacà adresu."}};function $u({entry:e,lang:t,source:n,onDone:r,onCancel:o}){const[s,i]=m.useState(!1),{setMethod:a}=ba(t),{toast:l}=Ms(),u=go[t],c=e.terms;if(!c)return null;const d=e.current_email,[h,...f]=c.body.split(` 216 217`),b=async()=>{i(!0);const{error:p}=await a(e.owner_id,"electronic",n,c.version);i(!1),p?l({title:u.error,description:p.message,variant:"destructive"}):(l({title:u.saved}),r())};return g.jsxs("div",{className:"space-y-3 text-sm",children:[zu(e)==="reconfirmation_required"&&g.jsxs("p",{className:"flex gap-2 text-amber-700 dark:text-amber-400",children:[g.jsx(E0,{className:"h-4 w-4 shrink-0 mt-0.5"}),u.reconfirm]}),g.jsx("p",{className:"text-foreground/90",children:h.replace(d??"â","").replace(/:\s*$/,":")}),g.jsx("p",{className:"font-semibold text-foreground break-all",children:d??"â"}),f.map((p,k)=>g.jsx("p",{className:"text-muted-foreground",children:p},k)),d?g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex gap-2 pt-1",children:[g.jsx(Ee,{size:"sm",disabled:s,onClick:b,children:c.checkbox_label}),o&&g.jsx(Ee,{size:"sm",variant:"ghost",onClick:o,children:u.cancel})]})}):g.jsx("p",{className:"text-destructive",children:u.noEmail})]})}function hL({hasActivePoll:e,suppressCard:t=!1}){const{language:n}=Hs(),r=ka(n),{entries:o,loading:s,reload:i}=ba(r),a=go[r];if(!e||s)return null;const l=o.filter(c=>c.can_manage);if(l.length===0)return null;const u=l.length>1;return g.jsx("div",{className:"space-y-2",children:l.map(c=>{var d;return!t&&OI(c,e)?g.jsxs(Ks,{className:"border-dashed",children:[g.jsx(ya,{className:"pb-2",children:g.jsxs(wa,{className:"text-base flex items-center gap-2",children:[g.jsx(Ps,{className:"h-4 w-4 text-primary"}),(d=c.terms)==null?void 0:d.heading,u&&c.owner_name&&g.jsxs("span",{className:"text-xs font-normal text-muted-foreground",children:["· ",c.owner_name]})]})}),g.jsx(Gs,{children:g.jsx($u,{entry:c,lang:r,source:"voting",onDone:i})})]},c.owner_id):g.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[c.method==="electronic"?g.jsx(Ps,{className:"h-3.5 w-3.5"}):g.jsx(Nf,{className:"h-3.5 w-3.5"}),a.line,u&&c.owner_name?` (${c.owner_name})`:"",": ",xh[r][zu(c)],c.method==="electronic"&&c.confirmed_email?` ${a.to} ${c.confirmed_email}`:""," · ",g.jsx(op,{to:"/owners/profile#legal-delivery",className:"underline hover:text-foreground",children:a.change})]},c.owner_id)})})}function qk({entry:e,lang:t,source:n,pendingVote:r,onDone:o,onCancel:s}){var R;const i=go[t],{setMethod:a}=ba(t),{toast:l}=Ms(),u=((R=e.postal_address)==null?void 0:R.trim())||"",[c,d]=m.useState(!u),[h,f]=m.useState({street:"",zip:"",city:"",country:""}),[b,p]=m.useState(null),[k,v]=m.useState(""),[y,w]=m.useState(!1),S=h.street.trim()&&h.zip.trim()&&h.city.trim()&&h.country.trim(),_=[h.street.trim(),`${h.zip.trim()} ${h.city.trim()}`.trim(),h.country.trim()].filter(Boolean).join(` 218`),E=jI(k,i.postalPhrase),x=()=>{p(null),v("")},P=async()=>{if(!e.terms||!b||!E)return;w(!0);const{error:C,result:I}=await a(e.owner_id,"postal",n,e.terms.version,b);if(w(!1),C){l({title:i.error,description:C.message,variant:"destructive"});return}x(),o(I==null?void 0:I.portal_access)};return g.jsxs("div",{className:"rounded-md border p-3 space-y-3 text-sm",children:[g.jsx("p",{className:"font-medium",children:i.addrTitle}),c?g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[g.jsxs("div",{className:"space-y-1.5 sm:col-span-2",children:[g.jsx(fi,{htmlFor:`street-${e.owner_id}`,children:i.addrStreet}),g.jsx(zo,{id:`street-${e.owner_id}`,value:h.street,maxLength:200,onChange:C=>f({...h,street:C.target.value})})]}),g.jsxs("div",{className:"space-y-1.5",children:[g.jsx(fi,{htmlFor:`zip-${e.owner_id}`,children:i.addrZip}),g.jsx(zo,{id:`zip-${e.owner_id}`,value:h.zip,maxLength:20,onChange:C=>f({...h,zip:C.target.value})})]}),g.jsxs("div",{className:"space-y-1.5",children:[g.jsx(fi,{htmlFor:`city-${e.owner_id}`,children:i.addrCity}),g.jsx(zo,{id:`city-${e.owner_id}`,value:h.city,maxLength:100,onChange:C=>f({...h,city:C.target.value})})]}),g.jsxs("div",{className:"space-y-1.5 sm:col-span-2",children:[g.jsx(fi,{htmlFor:`country-${e.owner_id}`,children:i.addrCountry}),g.jsx(zo,{id:`country-${e.owner_id}`,value:h.country,maxLength:100,onChange:C=>f({...h,country:C.target.value})})]})]}),!S&&g.jsx("p",{className:"text-xs text-muted-foreground",children:i.addressRequired}),g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsx(Ee,{size:"sm",disabled:!S,onClick:()=>{v(""),p(_)},children:i.addrConfirm}),g.jsx(Ee,{size:"sm",variant:"ghost",onClick:u?()=>d(!1):s,children:i.cancel})]})]}):g.jsxs(g.Fragment,{children:[g.jsxs("p",{className:"whitespace-pre-line rounded bg-muted/50 p-2",children:[e.owner_name?`${e.owner_name} 219`:"",u]}),g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsx(Ee,{size:"sm",onClick:()=>{v(""),p(u)},children:i.addrConfirm}),g.jsx(Ee,{size:"sm",variant:"outline",onClick:()=>d(!0),children:i.addrEdit}),g.jsx(Ee,{size:"sm",variant:"ghost",onClick:s,children:i.cancel})]})]}),g.jsx(PI,{open:b!==null,onOpenChange:C=>{C||x()},children:g.jsxs(Uk,{className:"w-[calc(100vw-2rem)] max-w-lg",children:[g.jsxs(Vk,{className:"min-w-0",children:[g.jsxs(Hk,{className:"flex items-center gap-2",children:[g.jsx(E0,{className:"h-5 w-5 shrink-0 text-amber-600"}),i.postalWarnTitle]}
219),g.jsx(Kk,{className:"text-foreground/90 leading-relaxed break-words",children:r?i.postalWarnBodyPending:i.postalWarnBody})]}),g.jsxs("div",{className:"min-w-0 space-y-1.5",children:[g.jsx(zo,{className:"w-full",value:k,onChange:C=>v(C.target.value),autoComplete:"off","aria-label":i.postalPhrase}),g.jsx("p",{className:"text-xs text-muted-foreground",children:i.postalPhraseHint})]}),g.jsxs(Wk,{className:"flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:space-x-0",children:[g.jsx(Gk,{className:"mt-0 h-auto whitespace-normal py-2",onClick:x,children:i.postalKeepElectronic}),g.jsx(Ee,{className:"h-auto whitespace-normal py-2",disabled:!E||y,onClick:()=>void P(),children:i.postalConfirmAction})]})]})})]})}function Qk({lang:e,title:t,body:n}){const r=Iu(),o=go[e],s=async()=>{await $e.auth.signOut(),r("/",{replace:!0})};return g.jsxs(Ks,{id:"legal-delivery",children:[g.jsx(ya,{children:g.jsxs(wa,{className:"flex items-center gap-2",children:[g.jsx(Nf,{className:"h-5 w-5"}),t]})}),g.jsxs(Gs,{className:"space-y-4 text-sm",children:[g.jsx("p",{className:"text-foreground/90",children:n}),g.jsx(Ee,{onClick:s,children:o.postalDoneSignOut})]})]})}function fL(){const{language:e}=Hs(),t=ka(e),n=go[t];return g.jsx(Qk,{lang:t,title:n.votedTitle,body:n.votedBody})}function NI(e,t){return e.method==="electronic"||e.method==="postal"&&e.postal_pending_poll_id===t}function pL({pollId:e,pollTitle:t,required:n,children:r}){const{language:o}=Hs(),s=ka(o),{entries:i,loading:a,reload:l}=ba(s),{toast:u}=Ms(),[c,d]=m.useState({}),h=go[s];if(!n)return g.jsx(g.Fragment,{children:r});if(a)return null;const f=i.filter(b=>b.can_manage&&!NI(b,e));return f.length===0?g.jsx(g.Fragment,{children:r}):g.jsxs(Ks,{className:"border-primary/40",children:[g.jsxs(ya,{className:"pb-2",children:[g.jsxs(wa,{className:"text-base flex items-center gap-2",children:[g.jsx(Ps,{className:"h-4 w-4 text-primary"}),h.gateTitle]}),g.jsx("p",{className:"text-sm text-muted-foreground",children:t})]}),g.jsxs(Gs,{className:"space-y-4",children:[g.jsx("p",{className:"text-sm",children:h.gateBody}),f.map(b=>{var k;const p=c[b.owner_id]??null;return g.jsxs("div",{className:"space-y-3",children:[f.length>1&&b.owner_name&&g.jsx("p",{className:"text-sm font-semibold",children:b.owner_name}),p===null&&g.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[g.jsxs(Ee,{size:"lg",className:"h-auto py-4",onClick:()=>d({...c,[b.owner_id]:"electronic"}),children:[g.jsx(Ps,{className:"h-5 w-5 mr-2"}),h.electronic]}),g.jsxs(Ee,{size:"lg",variant:"outline",className:"h-auto py-4",onClick:()=>d({...c,[b.owner_id]:"postal"}),children:[g.jsx(Nf,{className:"h-5 w-5 mr-2"}),h.postal]})]}),p==="electronic"&&g.jsxs("div",{className:"rounded-md border p-3",children:[g.jsx("p",{className:"font-semibold mb-2 text-sm",children:(k=b.terms)==null?void 0:k.heading}),g.jsx($u,{entry:b,lang:s,source:"voting",onDone:()=>void l(),onCancel:()=>d({...c,[b.owner_id]:null})})]}),p==="postal"&&g.jsx(qk,{entry:b,lang:s,source:"voting",pendingVote:!0,onCancel:()=>d({...c,[b.owner_id]:null}),onDone:()=>{u({title:h.saved,description:h.pendingSaved}),l()}})]},b.owner_id)})]})]})}function mL(){const{language:e}=Hs(),t=ka(e),{entries:n,loading:r,reload:o}=ba(t),{toast:s}=Ms(),{user:i}=mo(),[a,l]=m.useState(null),[u,c]=m.useState(null),[d,h]=m.useState({first:null,last:null}),[f,b]=m.useState(!1),p=go[t];if(m.useEffect(()=>{if(!(i!=null&&i.id))return;(async()=>{var _,E;const y=()=>$e.from("login_history").select("logged_in_at").eq("user_id",i.id).eq("status","success"),[{data:w},{data:S}]=await Promise.all([y().order("logged_in_at",{ascending:!0}).limit(1),y().order("logged_in_at",{ascending:!1}).limit(1)]);h({first:((_=w==null?void 0:w[0])==null?void 0:_.logged_in_at)??null,last:((E=S==null?void 0:S[0])==null?void 0:E.logged_in_at)??null})})()},[i==null?void 0:i.id]),f)return g.jsx(Qk,{lang:t,title:p.postalDoneTitle,body:p.postalDoneBody});if(r||n.length===0)return null;const k=async v=>{if(l(null),v==="pending_postal"){s({title:p.saved,description:p.pendingSaved}),o();return}const{data:y}=await $e.from("profiles").select("portal_access_enabled").eq("user_id",(i==null?void 0:i.id)??"").maybeSingle();y&&y.portal_access_enabled===!1?b(!0):(s({title:p.saved}),o())};return g.jsxs(Ks,{id:"legal-delivery",children:[g.jsx(ya,{children:g.jsxs(wa,{className:"flex items-center gap-2",children:[g.jsx(Ps,{className:"h-5 w-5"}),p.profileTitle]})}),g.jsxs(Gs,{className:"space-y-6",children:[n.map(v=>{var w;const y=zu(v);return g.jsxs("div",{className:"space-y-3 text-sm",children:[n.length>1&&v.owner_name&&g.jsx("p",{className:"font-semibold",children:v.owner_name}),g.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5",children:[g.jsx("dt",{className:"text-muted-foreground",children:p.method}),g.jsx("dd",{title:y==="not_selected"?Yg[t]:void 0,children:xh[t][y]}),g.jsx("dt",{className:"text-muted-foreground",children:p.email}),g.jsx("dd",{className:"break-all",children:v.method==="electronic"?v.confirmed_email:"â"}),g.jsx("dt",{className:"text-muted-foreground",children:p.s245}),g.jsx("dd",{children:y==="electronic"?p.active:y==="reconfirmation_required"?xh[t].reconfirmation_required:p.inactive}),g.jsx("dt",{className:"text-muted-foreground",children:p.setOn}),g.jsx("dd",{children:Hc(v.requested_at,t)}),g.jsx("dt",{className:"text-muted-foreground",children:p.via}),g.jsx("dd",{children:v.source?p[v.source]:"â"}),v.method==="postal"&&g.jsxs(g.Fragment,{children:[g.jsx("dt",{className:"text-muted-foreground",children:p.postalAddress}),g.jsx("dd",{className:"whitespace-pre-line",children:v.postal_address??"â"})]})]}),y==="not_selected"&&g.jsx("p",{className:"text-xs text-muted-foreground",children:Yg[t]}),g.jsx("p",{className:"text-xs text-muted-foreground",children:p.scope}),v.can_manage?a!==v.owner_id?g.jsx(Ee,{size:"sm",variant:"outline",onClick:()=>{l(v.owner_id),c(null)},children:p.changeMethod}):u==="electronic"?g.jsxs("div",{className:"rounded-md border p-3",children:[g.jsx("p",{className:"font-semibold mb-2",children:(w=v.terms)==null?void 0:w.heading}),g.jsx($u,{entry:v,lang:t,source:"profile",onDone:()=>{l(null),o()},onCancel:()=>l(null)})]}):u==="postal"?g.jsx(qk,{entry:v,lang:t,source:"profile",pendingVote:!1,onCancel:()=>c(null),onDone:S=>void k(S)}):g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsx(Ee,{size:"sm",onClick:()=>c("electronic"),children:p.electronic}),g.jsx(Ee,{size:"sm",variant:"outline",onClick:()=>c("postal"),children:p.postal}),g.jsx(Ee,{size:"sm",variant:"ghost",onClick:()=>l(null),children:p.cancel})]}):g.jsx("p",{className:"text-xs text-muted-foreground",children:p.readOnly})]},v.owner_id)}),g.jsx("div",{className:"border-t pt-4",children:g.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-sm",children:[g.jsx("dt",{className:"text-muted-foreground",children:p.firstLogin}),g.jsx("dd",{children:Hc(d.first,t)}),g.jsx("dt",{className:"text-muted-foreground",children:p.lastLogin}),g.jsx("dd",{children:Hc(d.last,t)})]})})]})]})}const II={cs:{postalTitle:"Zvolili jste doruÄovánà poÅ¡tou",postalBody:"PÃsemnosti spoleÄenstvà vlastnÃků vám zasÃláme poÅ¡tou, proto je pÅÃstup do portálu pozastaven. VaÅ¡e zákonná práva vlastnÃka zůstávajà beze zmÄny. Pokud chcete znovu komunikovat elektronicky a použÃvat portál, můžete svou volbu zmÄnit nÞe.",adminTitle:"PÅÃstup do portálu je pozastaven",adminBody:"PÅÃstup k vaÅ¡emu úÄtu byl pozastaven správou portálu. Pro vÃce informacà kontaktujte správu.",switch:"PÅejÃt na elektronickou komunikaci",logout:"Odhlásit se"},de:{postalTitle:"Sie haben die Zustellung per Post gewählt",postalBody:"Schriftstücke der Eigentümergemeinschaft erhalten Sie per Post; der Zugang zum Portal ist daher pausiert. Ihre gesetzlichen Rechte als Eigentümer bleiben unverändert. Wenn Sie wieder elektronisch kommunizieren und das Portal nutzen möchten, können Sie Ihre Wahl unten ändern.",adminTitle:"Der Portalzugang ist pausiert",adminBody:"Der Zugang zu Ihrem Konto wurde von der Portalverwaltung pausiert. Bitte wenden Sie sich an die Verwaltung.",switch:"Zur elektronischen
219Kommunikation wechseln",logout:"Abmelden"},en:{postalTitle:"You chose postal delivery",postalBody:"Documents of the ownersâ association are sent to you by post, so portal access is paused. Your statutory rights as an owner remain unchanged. If you want to communicate electronically and use the portal again, you can change your choice below.",adminTitle:"Portal access is paused",adminBody:"Access to your account was paused by the portal administration. Please contact the administration.",switch:"Switch to electronic communication",logout:"Sign out"}};function DI({children:e}){const{user:t,signOut:n}=mo(),{language:r}=Hs(),o=ka(r),s=II[o],[i,a]=m.useState(null),[l,u]=m.useState(null),c=m.useCallback(async()=>{if(!t)return;const{data:h,error:f}=await $e.rpc("get_my_portal_access",{p_language:o});if(f||!h){a({enabled:!0,reason:null,owners:[]});return}a(h)},[t,o]);if(m.useEffect(()=>{c()},[c]),!i)return g.jsx("div",{className:"flex min-h-[40vh] items-center justify-center",children:g.jsx(_0,{className:"h-6 w-6 animate-spin text-muted-foreground"})});if(i.enabled)return g.jsx(g.Fragment,{children:e});const d=i.reason==="postal";return g.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background p-4",children:g.jsx(Ks,{className:"w-full max-w-xl",children:g.jsxs(Gs,{className:"space-y-4 p-6",children:[g.jsxs("div",{className:"flex items-start gap-3",children:[d?g.jsx(Ps,{className:"mt-1 h-6 w-6 shrink-0 text-primary"}):g.jsx(x1,{className:"mt-1 h-6 w-6 shrink-0 text-destructive"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("h1",{className:"font-serif text-xl font-semibold text-foreground",children:d?s.postalTitle:s.adminTitle}),g.jsx("p",{className:"text-sm text-muted-foreground",children:d?s.postalBody:s.adminBody})]})]}),d&&i.owners.map(h=>g.jsxs("div",{className:"rounded-md border border-border p-3",children:[i.owners.length>1&&g.jsx("p",{className:"mb-2 text-sm font-medium",children:h.owner_name}),l===h.owner_id?g.jsx($u,{entry:h,lang:o,source:"profile",onCancel:()=>u(null),onDone:()=>{u(null),window.location.reload()}}):g.jsx(Ee,{onClick:()=>u(h.owner_id),disabled:!h.current_email,children:s.switch})]},h.owner_id)),g.jsxs(Ee,{variant:"outline",onClick:()=>void n(),className:"gap-2",children:[g.jsx(vl,{className:"h-4 w-4"}),s.logout]})]})})})}const te=({children:e})=>{const{user:t,loading:n,approvalStatus:r,isApprovalLoading:o,approvalLoadError:s,signOut:i,retryApprovalStatus:a}=mo(),l=Ct(),{t:u}=Hs(),[c,d]=m.useState(null);m.useEffect(()=>{(r==="pending"||r==="rejected")&&$e.from("system_settings").select("setting_value").eq("setting_key","support_email").maybeSingle().then(({data:b})=>{b!=null&&b.setting_value&&d(b.setting_value)})},[r]);const[h,f]=m.useState(!1);return m.useEffect(()=>{if(!(n||o)){f(!1);return}const b=setTimeout(()=>f(!0),15e3);return()=>clearTimeout(b)},[n,o]),n||o?g.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[g.jsx(_0,{className:"h-8 w-8 animate-spin text-primary"}),h&&g.jsxs("div",{className:"text-center space-y-3 px-4",children:[g.jsx("p",{className:"text-sm text-muted-foreground",children:u("approval.slowLoading")}),g.jsx(Ee,{variant:"outline",onClick:()=>window.location.reload(),children:u("approval.reload")})]})]}):t?r===null&&!o?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:g.jsxs("div",{className:"max-w-md w-full mx-4 text-center space-y-6",children:[g.jsx(sg,{className:"h-16 w-16 mx-auto text-destructive"}),g.jsx("h1",{className:"text-2xl font-bold text-foreground",children:u("approval.errorTitle")}),g.jsx("p",{className:"text-muted-foreground",children:u("approval.errorDescription")}),s&&g.jsxs(Ee,{onClick:a,className:"gap-2",children:[g.jsx(E1,{className:"h-4 w-4"}),u("approval.retry")]}),g.jsxs(Ee,{onClick:i,variant:"outline",className:"gap-2",children:[g.jsx(vl,{className:"h-4 w-4"}),u("nav.logout")]})]})}):r==="pending"?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:g.jsxs("div",{className:"max-w-md w-full mx-4 text-center space-y-6",children:[g.jsx(_1,{className:"h-16 w-16 mx-auto text-amber-500"}),g.jsx("h1",{className:"text-2xl font-bold text-foreground",children:u("approval.pendingTitle")}),g.jsx("p",{className:"text-muted-foreground",children:u("approval.pendingDescription")}),c&&g.jsxs("p",{className:"text-sm text-muted-foreground",children:[u("approval.contactAdmin")," ",g.jsx("a",{href:`mailto:${c}`,className:"text-primary underline",children:c})]}),g.jsxs(Ee,{onClick:i,variant:"outline",className:"gap-2",children:[g.jsx(vl,{className:"h-4 w-4"}),u("nav.logout")]})]})}):r==="rejected"?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:g.jsxs("div",{className:"max-w-md w-full mx-4 text-center space-y-6",children:[g.jsx(sg,{className:"h-16 w-16 mx-auto text-destructive"}),g.jsx("h1",{className:"text-2xl font-bold text-foreground",children:u("approval.rejectedTitle")}),g.jsx("p",{className:"text-muted-foreground",children:u("approval.rejectedDescription")}),c&&g.jsxs("p",{className:"text-sm text-muted-foreground",children:[u("approval.contactAdmin")," ",g.jsx("a",{href:`mailto:${c}`,className:"text-primary underline",children:c})]}),g.jsxs(Ee,{onClick:i,variant:"outline",className:"gap-2",children:[g.jsx(vl,{className:"h-4 w-4"}),u("nav.logout")]})]})}):g.jsx(DI,{children:e}):g.jsx(nr,{to:"/login",state:{from:l},replace:!0})},LI=["bot","crawler","spider","curl","wget","python-requests","python-urllib","go-http-client","postmanruntime","java/","apache-httpclient","httpie","node-fetch","axios/","scrapy"],MI=["headless","puppeteer","selenium","ph
219antomjs","playwright","webdriver","cypress"],zI=e=>{if(!e||e.trim()==="")return{isSuspected:!0,score:60,reason:"missing_ua"};const t=e.toLowerCase();for(const n of MI)if(t.includes(n))return{isSuspected:!0,score:85,reason:`automation:${n}`};for(const n of LI)if(t.includes(n))return{isSuspected:!0,score:90,reason:`known_pattern:${n}`};return e.length<30?{isSuspected:!0,score:40,reason:"short_ua"}:{isSuspected:!1,score:0,reason:null}},$I=e=>{let t="Neznámý",n="Neznámý",r="Desktop";return e.includes("Firefox")?t="Firefox":e.includes("Edg")?t="Edge":e.includes("Chrome")?t="Chrome":e.includes("Safari")?t="Safari":(e.includes("Opera")||e.includes("OPR"))&&(t="Opera"),e.includes("Windows")?n="Windows":e.includes("Mac OS")?n="macOS":e.includes("Linux")?n="Linux":e.includes("Android")?(n="Android",r="Mobil"):(e.includes("iPhone")||e.includes("iPad"))&&(n="iOS",r=e.includes("iPad")?"Tablet":"Mobil"),e.includes("Mobile")?r="Mobil":e.includes("Tablet")&&(r="Tablet"),{browser:t,os:n,deviceType:r}},Jg="login_session_fingerprint",Zg="login_session_user",FI=()=>{const{user:e,session:t,authEvent:n}=mo(),r=m.useRef(null);m.useEffect(()=>{(async()=>{var E;if(!e||!t||!n||n.event!=="SIGNED_IN")return;const s=t.access_token;if(r.current===s)return;r.current=s;let i=sessionStorage.getItem(Jg);const a=sessionStorage.getItem(Zg);(!i||a!==e.id)&&(i=crypto.randomUUID(),sessionStorage.setItem(Jg,i),sessionStorage.setItem(Zg,e.id));const l=sessionStorage.getItem("login_method_override");l&&sessionStorage.removeItem("login_method_override");const u=(E=t==null?void 0:t.user)==null?void 0:E.amr;let c=l||"password",d=!1;if(!l&&u&&Array.isArray(u)){const x=u.map(P=>P.method);x.includes("recovery")&&(d=!0,c="recovery"),(x.includes("otp")||x.includes("magiclink"))&&(c="magiclink"),d&&(c="recovery")}const h=navigator.userAgent,{browser:f,os:b,deviceType:p}=$I(h),k=zI(h);let v;try{const P=new URLSearchParams(window.location.search).get("token_hash");P&&P.length>=16&&c==="magiclink"&&(v=P.substring(0,16))}catch{}const y={user_agent:h,browser:f,os:b,device_type:p,login_method:c,is_suspected_bot:k.isSuspected,bot_detection_reason:k.reason,bot_score:k.score,session_fingerprint:i,...d&&{is_recovery_session:!0},...v&&{magic_link_token_prefix:v}},w=t.access_token;if(!w)return;const S={body:y,headers:{Authorization:`Bearer ${w}`}};(async()=>{try{const{error:x}=await $e.functions.invoke("track-login",S);if(!x)return;await new Promise(P=>setTimeout(P,1500)),await $e.functions.invoke("track-login",S)}catch{}})()})()},[e,t,n])},Xg=25e3,BI=()=>{const{user:e}=mo(),t=Ct(),n=m.useRef(0);m.useEffect(()=>{if(!e)return;const r=async()=>{if(typeof document<"u"&&document.visibilityState==="hidden")return;const i=Date.now();if(i-n.current<Xg)return;n.current=i;const a=t.pathname,l=new Date().toISOString();await $e.from("user_activity").upsert({user_id:e.id,last_active_at:l,last_page:a,session_count:1},{onConflict:"user_id"})};r();const o=setInterval(r,Xg),s=()=>{document.visibilityState==="visible"&&(n.current=0,r())};return document.addEventListener("visibilitychange",s),()=>{clearInterval(o),document.removeEventListener("visibilitychange",s)}},[e,t.pathname])},ev="owner_view_simulation";function UI(){const{user:e,session:t,approvalStatus:n}=mo(),[r,o]=m.useState([]),[s,i]=m.useState([]),[a,l]=m.useState([]),[u,c]=m.useState(!0),[d,h]=m.useState(!1),[f,b]=m.useState(()=>{try{return sessionStorage.getItem(ev)==="true"}catch{return!1}}),p=m.useCallback(R=>{b(R);try{sessionStorage.setItem(ev,String(R))}catch{}},[]),k=m.useMemo(()=>a.includes("admin"),[a]),v=!u;m.useEffect(()=>{if(!e||!t||n!=="approved"){o([]),i([]),l([]),h(!1),c(!!(e&&t));return}let R=!1;const C=new AbortController;return(async()=>{c(!0),h(!1);try{const O="https://wasldznewicttoslpmnx.supabase.co/rest/v1",z={apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Indhc2xkem5ld2ljdHRvc2xwbW54Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njc2MDcyNzgsImV4cCI6MjA4MzE4MzI3OH0.FE0Nk3VJ2ibEoUW3QEL3joKY1pM0TQhXZSygVQyuyvY",Authorization:`Bearer ${t.access_token}`,Accept:"application/json"},j=window.setTimeout(()=>C.abort(),8e3);let M;try{M=await Promise.all([fetch(`${O}/section_visibility?select=section_key,visible_to_owner,visible_to_beirat,visible_to_spravce`,{headers:z,
219signal:C.signal}),fetch(`${O}/user_section_overrides?select=section_key,visible&user_id=eq.${encodeURIComponent(e.id)}`,{headers:z,signal:C.signal}),fetch(`${O}/user_roles?select=role&user_id=eq.${encodeURIComponent(e.id)}`,{headers:z,signal:C.signal})])}finally{window.clearTimeout(j)}if(R)return;const F=M.find($=>!$.ok);if(F)throw new Error(`Visibility request failed (${F.status})`);const[V,A,N]=await Promise.all([M[0].json(),M[1].json(),M[2].json()]);if(R)return;o(V),i(A),l(N.map(({role:$})=>$))}catch(O){if(R)return;console.error("Failed to load owner visibility:",O),o([]),i([]),l([]),h(!0)}finally{R||c(!1)}})(),()=>{R=!0,C.abort()}},[n,t==null?void 0:t.access_token,e==null?void 0:e.id]);const y=m.useMemo(()=>{const R=new Map;for(const C of r)R.set(C.section_key,C);return R},[r]),w=m.useMemo(()=>{const R=new Map;for(const C of s)R.set(C.section_key,C.visible);return R},[s]),S=m.useCallback(R=>{if(k&&!f)return!0;const C=k&&f?a.filter(O=>O!=="admin"):a.filter(O=>O!=="admin");if(w.has(R))return w.get(R)??!1;const I=y.get(R);if(!I)return!1;for(const O of C)if(O==="owner"&&I.visible_to_owner||O==="beirat"&&I.visible_to_beirat||O==="spravce"&&I.visible_to_spravce)return!0;return C.length===0&&k&&f?I.visible_to_owner:!1},[k,f,a,y,w]),_=m.useCallback(R=>S(R),[S]),E=m.useCallback(R=>S(R),[S]),x=m.useCallback(R=>w.get(R)===!0,[w]),P=m.useCallback(R=>{const C=y.get(R);if(!C)return!1;const I=a.filter(O=>O!=="admin");return I.length===0&&k&&f?C.visible_to_owner:I.some(O=>O==="owner"&&C.visible_to_owner||O==="beirat"&&C.visible_to_beirat||O==="spravce"&&C.visible_to_spravce)},[k,y,f,a]);return{isVisible:_,canAccess:E,hasPositiveOverride:x,hasRoleAccess:P,isAdmin:k,userRoles:a,simulateOwner:f,setSimulateOwner:p,isLoading:u,isReady:v,loadError:d}}const Yk=m.createContext(null);function VI({children:e}){const t=UI();return g.jsx(Yk.Provider,{value:t,children:e})}function gL(){const e=m.useContext(Yk);if(!e)throw new Error("useSharedOwnerVisibility must be used within OwnerVisibilityProvider");return e}const WI=()=>{const[e]=Bj(),t=e.get("redirect"),n=t?`/login?redirect=${encodeURIComponent(t)}`:"/login";return g.jsx(nr,{to:n,replace:!0})},HI=J(()=>Y(()=>import("./Index-1DNKGt-1.js"),__vite__mapDeps([0,1,2,3,4]))),KI=J(()=>Y(()=>import("./Privacy-BwAbSgPE.js"),__vite__mapDeps([5,6,1,2,3]))),GI=J(()=>Y(()=>import("./ApartmentsForRent-SzOPOy2v.js"),__vite__mapDeps([7,1,2,3,8]))),qI=J(()=>Y(()=>import("./Webcam-DY6skMXZ.js"),__vite__mapDeps([9,6,1,2,3,10,11,12,13]))),QI=J(()=>Y(()=>import("./Gallery-B7XiNmUD.js"),__vite__mapDeps([14,6,1,2,3,15]))),YI=J(()=>Y(()=>import("./AuthVerify-kFhHI8mY.js"),__vite__mapDeps([16,17]))),JI=J(()=>Y(()=>import("./Auth-CkRy952c.js"),__vite__mapDeps([18,19,2,17,3,20,21,22,23,24,25]))),ZI=J(()=>Y(()=>import("./Forum-BmYJ5Lj-.js"),__vite__mapDeps([26,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,48,49,50,51,52,53,54,15,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,23,70,71,72,73,74,75,76,77,78,79,80,81,82,83,24,84]))),XI=J(()=>Y(()=>import("./ResetPassword-B0iqobwO.js"),__vite__mapDeps([85,19,2,20,17,21,22]))),eD=J(()=>Y(()=>import("./NotFound-CWRUeArS.js"),[])),tD=J(()=>Y(()=>import("./Attachment-BTWnn-5X.js"),__vite__mapDeps([86,24,75]))),nD=J(()=>Y(()=>import("./OwnersDashboard-tQ1Jzozr.js"),__vite__mapDeps([87,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,48,57,79,78,71,88,89,4,90,91]))),rD=J(()=>Y(()=>import("./OwnersNews-KzO5FRfT.js"),__vite__mapDeps([92,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,93,57,94,95,96,97,12,52,53]))),oD=J(()=>Y(()=>import("./OwnersHausverwaltungComparison-BK2fgoaH.js").then(e=>e.O),__vite__mapDeps([98,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,99,52,94,100,20,77,101,23,12,62,102,75,84,25]))),tv=J(()=>Y(()=>import("./OwnersPolls-qWfhiqMT.js"),__vite__mapDeps([103,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,104,57,105,106,89,50,51,52,53,107,108,109,110,67,111,88,99,112,113,114,73,83,84,58,115,91,90,97,116,117,20]))),sD=J(()=>Y(()=>import("./OwnersPollDetail-D9zVwXM8.js"),__vite__mapDeps([118,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,104,57,105,106,89,50,51,52,53,107,108,109,110,67,111,88,99,112,113,114,73,83,84,58,115,91,90,97,116,117,20,24]))),iD=J(()=>Y(()=>import("./OwnersDocuments-Ba6lqgSl.js"),__vite__mapDeps([119,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,80,81,58,60,75,12,10,120,121]))),aD=J(()=>Y(()=>import("./OwnersProfile-CykbXyH1.js"),__vite__mapDeps([122,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,94,50,51,52,53,123,89]))),lD=J(()=>Y(()=>import("./OwnersContacts-DKJtfUyd.js"),__vite__mapDeps([124,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,93,96,23]))),uD=J(()=>Y(()=>import("./OwnersVotingRules-50pryZKT.js"),__vite__mapDeps([125,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,106,52,126,17,121,12,91,116]))),cD=J(()=>Y(()=>import("./OwnersForumFaq-Dg_8s-ME.js"),__vite__mapDeps([127,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,99,52,57,24,83,78,23,61,71,128]))),dD=J(()=>Y(()=>import("./OwnersMonitoring-Cf7wdHO6.js"),__vite__mapDeps([129,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,130,57,131,51,83,132,55,133,134,91,135,97,136])
219)),hD=J(()=>Y(()=>import("./OwnersOperatingCosts-Dat5-_kY.js"),__vite__mapDeps([137,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,94,91,138,130,75,135,96,139,132,55,140,141,142,134,115]))),fD=J(()=>Y(()=>import("./Admin-CfcrnSCj.js"),__vite__mapDeps([143,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,46,67,94,60,76,70,66,32,33,28,57,147,148,149,123,48,49,50,53,54,15,55,45,56,58,59,61,62,63,64,65,68,69,23,71,22,73,74,75,77,78,24,109,91,4,150,151,80,47,10,35,121,107,152,111,88,38,89,153,108,154,155,17,156,116,102,34,157,44,99,95,84,12,11,158,40,42,96,139,138,159,21,160,83,90,161,13,30,162,117,163,164,165,100]))),pD=J(()=>Y(()=>import("./ApartmentEdit-DyGxSBNj.js"),__vite__mapDeps([166,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,47,57,46,50,33,53,94,45,67,32,153,109,108,154,155,66,89,24,4,123]))),mD=J(()=>Y(()=>import("./OwnerEdit-ClffnIMg.js"),__vite__mapDeps([168,57,165,50,51,1,2,3,33,52,53,15,167,6,29,31,144,131,128,120,37,8,36,126,39,145,97,43,135,72,146,115,34,109,46,94,32,123,45,22,17,160,83,89,102,67,60,82,164,70,66,65,150,148,151,156,47,77,24,162,155,20,169,12]))),gD=J(()=>Y(()=>import("./OwnerNew-Csbc3tth.js"),__vite__mapDeps([170,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,47,109,33,50,53,24,155]))),vD=J(()=>Y(()=>import("./UserEdit-BjGKwXii.js"),__vite__mapDeps([171,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,109,33,32,57,46,28,67,45,110,155,58,154,66,17,123,169,21,22,102,90,163,150,148,151]))),yD=J(()=>Y(()=>import("./ForumCategoryEdit-CVPUDILE.js"),__vite__mapDeps([172,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,47,45,76,123]))),wD=J(()=>Y(()=>import("./PollEdit-CpFatXAg.js"),__vite__mapDeps([173,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,47,32,33,50,53,46,110,108,174,57,150,148,149,15,56,94,45,89,112,113,114,74,22,123,109,99,20,73,66,84,60,58,138,21,70,88,38,83,106]))),bD=J(()=>Y(()=>import("./PollResults-CuEP8_6Q.js"),__vite__mapDeps([175,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,67,50,33,53,57,47,107,94,45,108,174,150,148,149,15,56,89,109,32,30,81,123,22,91,77,90,46,111,88,162,152,151,110,105,68,75,12,136,24,58,176,159,20,164,70,38,106,80,66,73,61]))),kD=J(()=>Y(()=>import("./BatchDetail-DJU_uMNt.js"),__vite__mapDeps([177,6,1,2,3,57,107,45,50,51,33,52,53,147,148,149,39,37,17,24,89,66,146,162,74,75,178,151,67,95,159,176,109,94,69,58,59,22,76,83,47,28,71,123,30,108]))),SD=J(()=>Y(()=>import("./ContactPersonEdit-1KDk5XrX.js"),__vite__mapDeps([179,167,6,1,2,3,29,31,144,131,51,128,120,37,8,36,126,39,145,97,43,135,72,146,115,52,34,57,109,33,28,50,53,67,156,45,47,46,22,77,24,123,169,20]))),_D=J(()=>Y(()=>import("./CostsDashboard-D63S6BGc.js"),__vite__mapDeps([180,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,131,51,181,157,91,145,101,182,135,132,55,142,134,95,97,183,63]))),ED=J(()=>Y(()=>import("./CostsCategories-Cld71dli.js"),__vite__mapDeps([184,50,51,1,2,3,33,52,53,27,28,29,30,31,32,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,108,181,97,80,132,55,133,134,135,140,63,59,75,139,96,11,158]))),xD=J(()=>Y(()=>import("./CostsReserve-BHFemqSy.js"),__vite__mapDeps([185,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,186,157,145,135,131,51,132,55,140,53,52,57,154,96,141,12,95,187,108,89,126,91]))),TD=J(()=>Y(()=>import("./CostsVendors-Bmu4cnwk.js"),__vite__mapDeps([188,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,189,57,101,183,132,55,140,133,134,135,63,141,58]))),CD=J(()=>Y(()=>import("./CostsLoans-CgxRp4QC.js"),__vite__mapDeps([190,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,107,157,94,89,182,191,91,53,52,135,132,55,142,134,97]))),PD=J(()=>Y(()=>import("./CostsHeating-PEwH-YCV.js"),__vite__mapDeps([192,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,94,91,135,11,193,132,55,142,134]))),RD=J(()=>Y(()=>import("./CostsHeatingRanking-OrN_9ElW.js"),__vite__mapDeps([194,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,57,50,51,52,53,10,161,132,55,140,4]))),AD=J(()=>Y(()=>import("./CostsHeatingStructure-u9nbZpte.js"),__vite__mapDeps([195,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,189,57,50,51,52,53,94,165,15,126,91,191,132,55,141,140,138,80]))),OD=J(()=>Y(()=>import("./CostsHeatingOwners-eiPmd0wD.js"),__vite__mapDeps([196,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,189,94,57,50,51,52,53,165,15,58,75,83,97,138,80]))),jD=J(()=>Y(()=>import("./CostsHeatingApartments-CXQ3dy2i.js"),__vite__mapDeps([197,27,1,2,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,8,44,22,45,46,47,189,94,57,50,51,52,53,108,165,15,198,91,10,132,55,142,134,193,83,64,97,161,135,63,12]))
219),ND=J(()=>Y(()=>import("./HeatingCostDetail-6sd5O3CB.js"),__vite__mapDeps([199,6,1,2,3,94,57,108,198,24,42,11,43,135,63,38,91]))),ID=J(()=>Y(()=>import("./ExpenditureDetail-wXv213Qf.js"),__vite__mapDeps([200,6,1,2,3,57,28,186,157,24,44,97,37,41,96,36,95]))),DD=J(()=>Y(()=>import("./ExtraIncomeDetail-CRAZNGun.js"),__vite__mapDeps([201,6,1,2,3,57,28,186,157,24,187,44,37,97,34]))),LD=J(()=>Y(()=>import("./VendorDetail-tbecmRAF.js"),__vite__mapDeps([202,6,1,2,3,57,94,31,24,44,35,37,43,135,63,132,55,140,141,97,80,178,148,150,151]))),MD=new ZA({defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:1}}}),zD=()=>g.jsx("div",{className:"min-h-screen flex items-center justify-center",children:g.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}),$D=({children:e})=>{FI(),BI();const{toast:t}=Ms();return m.useEffect(()=>SC(),[]),m.useEffect(()=>{const n=()=>{t({variant:"destructive",title:"Relace vyprÅ¡ela",description:"VaÅ¡e pÅihlášenà vyprÅ¡elo. PÅihlaste se prosÃm znovu."})};return window.addEventListener("session-expired",n),()=>window.removeEventListener("session-expired",n)},[t]),g.jsx(g.Fragment,{children:e})},FD=()=>g.jsx(nO,{client:MD,children:g.jsx(Gj,{children:g.jsx(qj,{children:g.jsx(tN,{children:g.jsxs(NA,{children:[g.jsx(lP,{}),g.jsx(FP,{}),g.jsx(Lj,{children:g.jsx(VI,{children:g.jsx($D,{children:g.jsx(m.Suspense,{fallback:g.jsx(zD,{}),children:g.jsxs(dj,{children:[g.jsx(H,{path:"/",element:g.jsx(HI,{})}),g.jsx(H,{path:"/privacy",element:g.jsx(KI,{})}),g.jsx(H,{path:"/apartments",element:g.jsx(GI,{})}),g.jsx(H,{path:"/webcam",element:g.jsx(qI,{})}),g.jsx(H,{path:"/gallery",element:g.jsx(QI,{})}),g.jsx(H,{path:"/login",element:g.jsx(JI,{})}),g.jsx(H,{path:"/auth",element:g.jsx(WI,{})}),g.jsx(H,{path:"/auth/verify",element:g.jsx(YI,{})}),g.jsx(H,{path:"/reset-password",element:g.jsx(XI,{})}),g.jsx(H,{path:"/owners-area",element:g.jsx(nr,{to:"/owners",replace:!0})}),g.jsx(H,{path:"/forum",element:g.jsx(nr,{to:"/owners/forum",replace:!0})}),g.jsx(H,{path:"/costs",element:g.jsx(nr,{to:"/owners/costs",replace:!0})}),g.jsx(H,{path:"/costs/*",element:g.jsx(nr,{to:"/owners/costs",replace:!0})}),g.jsx(H,{path:"/owners",element:g.jsx(te,{children:g.jsx(nD,{})})}),g.jsx(H,{path:"/owners/news",element:g.jsx(te,{children:g.jsx(rD,{})})}),g.jsx(H,{path:"/hausverwaltungen-2027",element:g.jsx(te,{children:g.jsx(oD,{})})}),g.jsx(H,{path:"/owners/hausverwaltung/vergleich-2027",element:g.jsx(nr,{to:"/hausverwaltungen-2027",replace:!0})}),g.jsx(H,{path:"/angebote-2027",element:g.jsx(te,{children:g.jsx(tv,{})})}),g.jsx(H,{path:"/owners/polls",element:g.jsx(te,{children:g.jsx(tv,{})})}),g.jsx(H,{path:"/owners/polls/:id",element:g.jsx(te,{children:g.jsx(sD,{})})}),g.jsx(H,{path:"/owners/documents",element:g.jsx(te,{children:g.jsx(iD,{})})}),g.jsx(H,{path:"/owners/forum",element:g.jsx(te,{children:g.jsx(ZI,{})})}),g.jsx(H,{path:"/priloha/*",element:g.jsx(te,{children:g.jsx(tD,{})})}),g.jsx(H,{path:"/owners/forum/faq",element:g.jsx(te,{children:g.jsx(cD,{})})}),g.jsx(H,{path:"/owners/contacts",element:g.jsx(te,{children:g.jsx(lD,{})})}),g.jsx(H,{path:"/owners/profile",element:g.jsx(te,{children:g.jsx(aD,{})})}),g.jsx(H,{path:"/owners/voting-rules",element:g.jsx(te,{children:g.jsx(uD,{})})}),g.jsx(H,{path:"/owners/monitoring",element:g.jsx(te,{children:g.jsx(dD,{})})}),g.jsx(H,{path:"/owners/operating-costs",element:g.jsx(te,{children:g.jsx(hD,{})})}),g.jsx(H,{path:"/admin",element:g.jsx(te,{children:g.jsx(fD,{})})}),g.jsx(H,{path:"/admin/apartment/:id",element:g.jsx(te,{children:g.jsx(pD,{})})}),g.jsx(H,{path:"/admin/owner/new",element:g.jsx(te,{children:g.jsx(gD,{})})}),g.jsx(H,{path:"/admin/owner/:id",element:g.jsx(te,{children:g.jsx(mD,{})})}),g.jsx(H,{path:"/admin/user/:id",element:g.jsx(te,{children:g.jsx(vD,{})})}),g.jsx(H,{path:"/property",element:g.jsx(nr,{to:"/admin",replace:!0})}),g.jsx(H,{path:"/owners/costs",element:g.jsx(te,{children:g.jsx(_D,{})})}),g.jsx(H,{path:"/owners/costs/categories",element:g.jsx(te,{children:g.jsx(ED,{})})}),g.jsx(H,{path:"/owners/costs/reserve",element:g.jsx(te,{children:g.jsx(xD,{})})}),g.jsx(H,{path:"/owners/costs/vendors",element:g.jsx(te,{children:g.jsx(TD,{})})}),g.jsx(H,{path:"/owners/costs/loans",element:g.jsx(te,{children:g.jsx(CD,{})})}),g.jsx(H,{path:"/owners/costs/heating",element:g.jsx(te,{children:g.jsx(PD,{})})}),g.jsx(H,{path:"/owners/costs/heating/ranking",element:g.jsx(te,{children:g.jsx(RD,{})})}),g.jsx(H,{path:"/owners/costs/heating/structure",element:g.jsx(te,{children:g.jsx(AD,{})})}),g.jsx(H,{path:"/owners/costs/heating/owners",element:g.jsx(te,{children:g.jsx(OD,{})})}),g.jsx(H,{path:"/owners/costs/heating/apartments",element:g.jsx(te,{children:g.jsx(jD,{})})}),g.jsx(H,{path:"/owners/costs/heating/:id",element:g.jsx(te,{children:g.jsx(ND,{})})}),g.jsx(H,{path:"/owners/costs/expenditure/:year",element:g.jsx(te,{children:g.jsx(ID,{})})}),g.jsx(H,{path:"/owners/costs/extra-income/:year",element:g.jsx(te,{children:g.jsx(DD,{})})}),g.jsx(H,{path:"/owners/costs/vendor/:vendor",element:g.jsx(te,{children:g.jsx(LD,{})})}),g.jsx(H,{path:"/admin/batch/:batchId",element:g.jsx(te,{children:g.jsx(kD,{})})}),g.jsx(H,{path:"/admin/contact-person/:id",element:g.jsx(te,{children:g.jsx(SD,{})})}),g.jsx(H,{path:"/admin/forum-category/:id",element:g.jsx(te,{children:g.jsx(yD,{})})}),g.jsx(H,{path:"/admin/poll/:id",element:g.jsx(te,{children:g.jsx(wD,{})})}),g.jsx(H,{path:"/admin/poll/:id/results",element:g.jsx(te,{children:g.jsx(bD,{})})}),g.jsx(H,{path:"*",element:g.jsx(eD,{})})]})})})})})]})})})})}),Jk=5e3;let nv=Promise.resolve();
219async function BD(e,t,n){const r=nv.then(n,n);return nv=r.catch(()=>{}),await Promise.race([r,new Promise((o,s)=>setTimeout(()=>s(new Error("auth lock timeout")),Jk))])}const Zk=$e.auth;Zk.lock=BD;Zk.lockAcquireTimeout=Jk;const UD={de:{Mzdy:"Löhne",Voda:"Wasser",Cesty:"Wege","Fond Oprav":"Reparaturfonds","VytápÄnà a TV":"Heizung & Warmwasser","Provoznà náklady":"Betriebskosten","Venkovnà prostory":"AuÃenanlagen",Bazén:"Hallenbad",Ãdržba:"Instandhaltung",Výtah:"Aufzug","Správa domu":"Hausverwaltung",Energie:"Energie",Poplatky:"Gebühren",PojiÅ¡tÄnÃ:"Versicherung",OstatnÃ:"Sonstige"},en:{Mzdy:"Wages",Voda:"Water",Cesty:"Roads","Fond Oprav":"Repair Fund","VytápÄnà a TV":"Heating & Hot Water","Provoznà náklady":"Operating Costs","Venkovnà prostory":"Outdoor Areas",Bazén:"Swimming Pool",Ãdržba:"Maintenance",Výtah:"Elevator","Správa domu":"Property Management",Energie:"Energy",Poplatky:"Fees",PojiÅ¡tÄnÃ:"Insurance",OstatnÃ:"Other"}},VD={de:{Löhne:"Löhne",Sozialversicherung:"Sozialversicherung","Sozialvers. Hausbesorger":"Sozialvers. Hausbesorger","Lohnabgaben/Pflichtbeiträge":"Lohnabgaben/Pflichtbeiträge",Lohnabgaben:"Lohnabgaben",Hallenbad:"Hallenbad",Aufzug:"Aufzug",Schneeräumung:"Schneeräumung",AuÃenanlagen:"AuÃenanlagen",Aussenanlagen:"AuÃenanlagen",Strom:"Strom","Strom allgemein":"Strom allgemein","Strom Stiegenhaus":"Strom Stiegenhaus",Telefon:"Telefon",Internet:"Internet",Müllabfuhr:"Müllabfuhr",Kanal:"Kanal",Grundsteuer:"Grundsteuer",Instandhaltung:"Instandhaltung",Instandhaltungen:"Instandhaltungen","Instandhaltungen Versicherungsfälle":"Instandhaltungen Versicherungsfälle",Material:"Material",Reparaturen:"Reparaturen","Reparaturen & Erhaltungsaufwand":"Reparaturen & Erhaltungsaufwand",Versicherung:"Versicherung",Hausversicherungen:"Hausversicherungen",Bankspesen:"Bankspesen","Bankspesen RF":"Bankspesen RF",Hausverwaltung:"Hausverwaltung",Diverses:"Diverses","Diverser Aufwand":"Diverser Aufwand",Postspesen:"Postspesen",Sonstige:"Sonstige",Verbrauchsmaterial:"Verbrauchsmaterial",Trinkwasser:"Trinkwasser","Trinkwassergen. - Wassergebühr":"Trinkwassergen. - Wassergebühr",Trinkwassergenossenschaft:"Trinkwassergenossenschaft",Winterdienst:"Winterdienst",StraÃenerhaltung:"StraÃenerhaltung","Weggen. Obermoos - StraÃenerhaltung":"Weggen. Obermoos - StraÃenerhaltung","Weggenossenschaft Obermoos":"Weggenossenschaft Obermoos"},en:{Löhne:"Wages",Sozialversicherung:"Social Insurance","Sozialvers. Hausbesorger":"Social Insurance Caretaker","Lohnabgaben/Pflichtbeiträge":"Wage Taxes/Contributions",Lohnabgaben:"Wage Taxes",Hallenbad:"Indoor Pool",Aufzug:"Elevator",Schneeräumung:"Snow Removal",AuÃenanlagen:"Outdoor Facilities",Aussenanlagen:"Outdoor Facilities",Strom:"Electricity","Strom allgemein":"General Electricity","Strom Stiegenhaus":"Staircase Electricity",Telefon:"Telephone",Internet:"Internet",Müllabfuhr:"Waste Collection",Kanal:"Sewage",Grundsteuer:"Property Tax",Instandhaltung:"Maintenance",Instandhaltungen:"Maintenance Works","Instandhaltungen Versicherungsfälle":"Insurance Maintenance",Material:"Materials",Reparaturen:"Repairs","Reparaturen & Erhaltungsaufwand":"Repairs & Maintenance",Versicherung:"Insurance",Hausversicherungen:"Building Insurance",Bankspesen:"Bank Fees","Bankspesen RF":"Bank Fees Reserve Fund",Hausverwaltung:"Property Management",Diverses:"Miscellaneous","Diverser Aufwand":"Miscellaneous Expenses",Postspesen:"Postal Fees",Sonstige:"Other",Verbrauchsmaterial:"Consumables",Trinkwasser:"Drinking Water","Trinkwassergen. - Wassergebühr":"Water Association - Fee",Trinkwassergenossenschaft:"Water Association",Winterdienst:"Winter Service",StraÃenerhaltung:"Road Maintenance","Weggen. Obermoos - StraÃenerhaltung":"Road Association Obermoos","Weggenossenschaft Obermoos":"Road Association Obermoos"},cs:{Löhne:"Mzdy",Sozialversicherung:"Sociálnà pojiÅ¡tÄnÃ","Sozialvers. Hausbesorger":"Sociálnà pojiÅ¡tÄnà správce","Lohnabgaben/Pflichtbeiträge":"Odvody ze mzdy",Lohnabgaben:"Odvody ze mzdy",Hallenbad:"Krytý bazén",Aufzug:"Výtah",Schneeräumung:"Ãklid snÄhu",AuÃenanlagen:"Venkovnà prostory",Aussenanlagen:"Venkovnà prostory",Strom:"ElektÅina","Strom allgemein":"ElektÅina spoleÄná","Strom Stiegenhaus":"ElektÅina schodiÅ¡tÄ",Telefon:"Telefon",Internet:"Internet",Müllabfuhr:"Svoz odpadu",Kanal:"Kanalizace",Grundsteuer:"DaÅ z nemovitosti",Instandhaltung:"Ãdržba",Instandhaltungen:"Ãdržbové práce","Instandhaltungen Versicherungsfälle":"Ãdržba - pojistné události",Material:"Materiál",Reparaturen:"Opravy","Reparaturen & Erhaltungsaufwand":"Opravy a údržba",Versicherung:"PojiÅ¡tÄnÃ",Hausversicherungen:"PojiÅ¡tÄnà domu",Bankspesen:"Bankovnà poplatky","Bankspesen RF":"Bankovnà poplatky fond oprav",Hausverwaltung:"Správa domu",Diverses:"Různé","Diverser Aufwand":"Různé náklady",Postspesen:"PoÅ¡tovné",Sonstige:"OstatnÃ",Verbrauchsmaterial:"SpotÅebnà materiál",Trinkwasser:"Pitná voda","Trinkwassergen. - Wassergebühr":"Vodnà spoleÄenstvà - poplatky",Trinkwassergenossenschaft:"Vodnà spoleÄenstvÃ",Winterdienst:"Zimnà služba",StraÃenerhaltung:"Ãdržba cest","Weggen. Obermoos - StraÃenerhaltung":"Cestnà spoleÄenstvà Obermoos","Weggenossenschaft Obermoos":"Cestnà spoleÄenstvà Obermoos"}},WD={en:{"Ablöse für Investitionen HM-Wohnung":"Compensation for Investments HM-Apartment","Austausch def. Heizungspumpe":"Replacement of Defective Heating Pump","Brandschutzelemente Höring":"Fire Protection Elements Höring",Brandschutztüren:"Fire Protection Doors","Darlehen Sbg. Sparkasse 0060514825":"Loan Sbg. Sparkasse 0060514825","Darlehen Sbg. Sparkasse 0060760220":"Loan Sbg. Sparkasse 0060760220",Energieausweis:"Energy Certificate","Nachrüsten Einlauf - Tropfblech":"Retrofit Inlet - Drip Tray","Reparatur Parall-Schiebekipptür":"Repair Parallel Sliding Tilt Door","Rückzahlung Sonderumlage + Strom":"Refund Special Levy + Electricity",Sanierungsarbeiten:"Renovation Works","Sanierungsarbeiten Top 22":"Renovation Works Apt 22","Strom Waschküche + Bankspesen":"Electricity Laundry Room + Bank Fees","SV-Gutachten":"Expert Opinion","Verkleiden und Verspachteln Wände T.14":"Wall Cladding and Plastering Apt 14",Vermessungsarbeiten:"Surveying Works","Verwendung Rücklage Geländer":"Reserve Use Railing","Verwendung Rücklage Top 14 Ware":"Reserve Use Apt 14 Goods","Verwendung Rücklage WEG":"Reserve Use HOA","Wassereintritt über Dach Top 44":"Water Ingress via Roof Apt 44",Lohn:"Wage",Lohnsteuer:"Wage Tax",Gehalt
219:"Salary",ÃGK:"Social Insurance ÃGK",Finanzamt:"Tax Office",Q1:"Q1",Q2:"Q2",Q3:"Q3",Q4:"Q4",Gebäudeversicherung:"Building Insurance",Jahresprämie:"Annual Premium",Haftpflichtversicherung:"Liability Insurance",Rechtsschutzversicherung:"Legal Protection Insurance",Feuerversicherung:"Fire Insurance",Sturmversicherung:"Storm Insurance",Wasserschaden:"Water Damage",Hallenbad:"Indoor Pool",Schwimmbad:"Swimming Pool",Poolreinigung:"Pool Cleaning",Chlor:"Chlorine",Wasseraufbereitung:"Water Treatment",Chlorin:"Chlorine",Superflock:"Super Flocculant",Flockungsmittel:"Flocculant",Reagenzlösung:"Reagent Solution","Phenored Lösung":"Phenored Solution",Filtersand:"Filter Sand",Chemikalien:"Chemicals",Aufzug:"Elevator",Lift:"Lift",Wartung:"Maintenance",Service:"Service",Reparatur:"Repair",Aufzugwartung:"Elevator Maintenance","Aufzug Wartung":"Elevator Maintenance",Schneeräumung:"Snow Removal",Winterdienst:"Winter Service",AuÃenanlagen:"Outdoor Areas",Gartenpflege:"Garden Care",Rasenmähen:"Lawn Mowing",Schneefräse:"Snow Blower",Auftausalz:"De-icing Salt",Dachabschaufeln:"Roof Snow Removal",Böschung:"Slope",Mäharbeiten:"Mowing Works",Baumpflege:"Tree Care","Bäume schneiden":"Tree Trimming","Sträucher schneiden":"Shrub Trimming",Blumen:"Flowers",Blumenerde:"Potting Soil",Pflanzenerde:"Plant Soil",Rindenmulch:"Bark Mulch",Balkonblumen:"Balcony Flowers",Strom:"Electricity",Stromkosten:"Electricity Costs",Telefon:"Telephone",Internet:"Internet",Aktivierung:"Activation",Müllabfuhr:"Waste Collection",Kanal:"Sewage",Grundsteuer:"Property Tax",Bankspesen:"Bank Fees",Postspesen:"Postal Fees",Hausverwaltung:"Property Management",Jahresabrechnung:"Annual Statement",Briefmarken:"Stamps",Instandhaltung:"Maintenance",Material:"Materials",Reparaturen:"Repairs",Diverses:"Miscellaneous",Sonstige:"Other",Trinkwasser:"Drinking Water",Wasser:"Water",StraÃenerhaltung:"Road Maintenance",Wegereinigung:"Path Cleaning",Prämie:"Premium",Beitrag:"Contribution",Jahresbeitrag:"Annual Contribution",Monatsbeitrag:"Monthly Contribution",Nachzahlung:"Additional Payment",Rückzahlung:"Refund",Gutschrift:"Credit",Rechnung:"Invoice",Teilrechnung:"Partial Invoice",Abrechnung:"Settlement",Kosten:"Costs",Gebühr:"Fee",Gebühren:"Fees",Anzahlung:"Down Payment",Aufwand:"Expense",Aufwände:"Expenses",Abwicklung:"Processing",Austausch:"Replacement",Anschlussarbeiten:"Connection Works",Brandschutz:"Fire Protection",Brandmelder:"Fire Detector","BW-Melder":"Smoke Detector",Dacharbeiten:"Roof Works",Dachkontrolle:"Roof Inspection",Dachrinne:"Gutter",Dachrinnen:"Gutters",Dachrinnenheizung:"Gutter Heating",Fliesen:"Tiles",abmontiert:"dismounted",abgedichtet:"sealed",freigemacht:"cleared",ausgefallen:"failed",getauscht:"replaced",überprüft:"inspected",AuÃenbeleuchtung:"Outdoor Lighting","Ausgleich Boden":"Floor Leveling",Benzin:"Gasoline",Batterien:"Batteries",Batterie:"Battery",Handschuhe:"Gloves",Handschuh:"Glove",Kabelbinder:"Cable Ties",Bewegungsmelder:"Motion Sensor",Klebeband:"Adhesive Tape",Gewebeband:"Fabric Tape",Abdeckvlies:"Covering Fleece",Glättekelle:"Smoothing Trowel",Baukleber:"Construction Adhesive","PU-Schaum":"PU Foam",Büromaterial:"Office Supplies",Multifunktionsgerät:"Multifunction Device",Rasenmäher:"Lawn Mower",Motorsense:"Brushcutter",Motorsäge:"Chainsaw",Anhänger:"Trailer",Pickerl:"Inspection Sticker",Pumpe:"Pump",Messwasserschlauch:"Measuring Water Hose",Bodendüse:"Floor Nozzle",Saugrohr:"Suction Tube",Jänner:"January",Februar:"February",März:"March",April:"April",Mai:"May",Juni:"June",Juli:"July",August:"August",September:"September",Oktober:"October",November:"November",Dezember:"December"},cs:{"Ablöse für Investitionen HM-Wohnung":"Náhrada za investice byt HM","Austausch def. Heizungspumpe":"VýmÄna vadného topného Äerpadla","Brandschutzelemente Höring":"Protipožárnà prvky Höring",Brandschutztüren:"Protipožárnà dveÅe","Darlehen Sbg. Sparkasse 0060514825":"ÃvÄr Sbg. Sparkasse 0060514825","Darlehen Sbg. Sparkasse 0060760220":"ÃvÄr Sbg. Sparkasse 0060760220",Energieausweis:"Energetický certifikát","Nachrüsten Einlauf - Tropfblech":"Dod
219ateÄná montáž vtoku - okapnice","Reparatur Parall-Schiebekipptür":"Oprava paralelnÄ posuvných dveÅÃ","Rückzahlung Sonderumlage + Strom":"Vrácenà mimoÅádného pÅÃspÄvku + elektÅina",Sanierungsarbeiten:"SanaÄnà práce","Sanierungsarbeiten Top 22":"SanaÄnà práce byt 22","Strom Waschküche + Bankspesen":"ElektÅina prádelna + bankovnà poplatky","SV-Gutachten":"Znalecký posudek","Verkleiden und Verspachteln Wände T.14":"Obloženà a tmelenà stÄn byt 14",Vermessungsarbeiten:"Geodetické práce","Verwendung Rücklage Geländer":"Použità rezervy zábradlÃ","Verwendung Rücklage Top 14 Ware":"Použità rezervy byt 14 materiál","Verwendung Rücklage WEG":"Použità rezervy SVJ","Wassereintritt über Dach Top 44":"ZateÄenà vody stÅechou byt 44",Lohn:"Mzda",Lohnsteuer:"DaÅ ze mzdy",Gehalt:"Plat",ÃGK:"Soc. pojiÅ¡tÄnà ÃGK",Finanzamt:"FinanÄnà úÅad",Q1:"Q1",Q2:"Q2",Q3:"Q3",Q4:"Q4",Gebäudeversicherung:"PojiÅ¡tÄnà budovy",Jahresprämie:"RoÄnà prémie",Haftpflichtversicherung:"PojiÅ¡tÄnà odpovÄdnosti",Rechtsschutzversicherung:"Právnà ochrana",Feuerversicherung:"Požárnà pojiÅ¡tÄnÃ",Sturmversicherung:"PojiÅ¡tÄnà proti bouÅi",Wasserschaden:"Vodnà škoda",Hallenbad:"Krytý bazén",Schwimmbad:"Bazén",Poolreinigung:"ÄiÅ¡tÄnà bazénu",Chlor:"Chlór",Wasseraufbereitung:"Ãprava vody",Chlorin:"Chlór",Superflock:"Flokulant",Flockungsmittel:"Flokulant",Reagenzlösung:"Äinidlo","Phenored Lösung":"Roztok Phenored",Filtersand:"FiltraÄnà pÃsek",Chemikalien:"Chemikálie",Aufzug:"Výtah",Lift:"Výtah",Wartung:"Ãdržba",Service:"Servis",Reparatur:"Oprava",Aufzugwartung:"Ãdržba výtahu","Aufzug Wartung":"Ãdržba výtahu",Schneeräumung:"Ãklid snÄhu",Winterdienst:"Zimnà služba",AuÃenanlagen:"Venkovnà prostory",Gartenpflege:"PéÄe o zahradu",Rasenmähen:"Sekánà trávy",Schneefräse:"SnÄžná fréza",Auftausalz:"Posypová sůl",Dachabschaufeln:"Shazovánà snÄhu ze stÅechy",Böschung:"Svah",Mäharbeiten:"SekánÃ",Baumpflege:"PéÄe o stromy","Bäume schneiden":"OÅez stromů","Sträucher schneiden":"OÅez keÅů",Blumen:"KvÄtiny",Blumenerde:"Zahradnà zemina",Pflanzenerde:"Zemina pro rostliny",Rindenmulch:"Kůrový mulÄ",Balkonblumen:"Balkonové kvÄtiny",Strom:"ElektÅina",Stromkosten:"Náklady na elektÅinu",Telefon:"Telefon",Internet:"Internet",Aktivierung:"Aktivace",Müllabfuhr:"Svoz odpadu",Kanal:"Kanalizace",Grundsteuer:"DaÅ z nemovitosti",Bankspesen:"Bankovnà poplatky",Postspesen:"PoÅ¡tovné",Hausverwaltung:"Správa domu",Jahresabrechnung:"RoÄnà vyúÄtovánÃ",Briefmarken:"PoÅ¡tovnà známky",Instandhaltung:"Ãdržba",Material:"Materiál",Reparaturen:"Opravy",Diverses:"Různé",Sonstige:"OstatnÃ",Trinkwasser:"Pitná voda",Wasser:"Voda",StraÃenerhaltung:"Ãdržba cest",Wegereinigung:"ÄiÅ¡tÄnà cest",Prämie:"Prémie",Beitrag:"PÅÃspÄvek",Jahresbeitrag:"RoÄnà pÅÃspÄvek",Monatsbeitrag:"MÄsÃÄnà pÅÃspÄvek",Nachzahlung:"Doplatek",Rückzahlung:"Vratka",Gutschrift:"Dobropis",Rechnung:"Faktura",Teilrechnung:"DÃlÄà faktura",Abrechnung:"VyúÄtovánÃ",Kosten:"Náklady",Gebühr:"Poplatek",Gebühren:"Poplatky",Anzahlung:"Záloha",Aufwand:"Náklad",Aufwände:"Náklady",Abwicklung:"ZpracovánÃ",Austausch:"VýmÄna",Anschlussarbeiten:"PÅipojovacà práce",Brandschutz:"Protipožárnà ochrana",Brandmelder:"Požárnà hlásiÄ","BW-Melder":"Detektor kouÅe",Dacharbeiten:"Práce na stÅeÅ¡e",Dachkontrolle:"Kontrola stÅechy",Dachrinne:"Okapový žlab",Dachrinnen:"Okapové žlaby",Dachrinnenheizung:"VytápÄnà okapů",Fliesen:"Dlaždice",abmontiert:"demontováno",abgedichtet:"utÄsnÄno",freigemacht:"vyÄiÅ¡tÄno",ausgefallen:"nefunkÄnÃ",getauscht:"vymÄnÄno",überprüft:"zkontrolováno",AuÃenbeleuchtung:"Venkovnà osvÄtlenÃ","Ausgleich Boden":"Vyrovnánà podlahy",Benzin:"BenzÃn",Batterien:"Baterie",Batterie:"Baterie",Handschuhe:"Rukavice",Handschuh:"Rukavice",Kabelbinder:"Stahovacà pásky",Bewegungsmelder:"Pohybový senzor",Klebeband:"Lepicà páska",Gewebeband:"Textilnà páska",Abdeckvlies:"Krycà netkaná textilie",Glättekelle:"HladÃtko",Baukleber:"Stavebnà lepidlo","PU-Schaum":"PU pÄna",Büromaterial:"KanceláÅské potÅeby",Multifunktionsgerät:"MultifunkÄnà zaÅÃzenÃ",Rasenmäher:"SekaÄka na trávu",Motorsense:"KÅovinoÅez",Motorsäge:"Motorová pila",Anhänger:"PÅÃvÄs",Pickerl:"Technická kontrola",Pumpe
219:"Äerpadlo",Messwasserschlauch:"MÄÅicà hadice",Bodendüse:"Podlahová hubice",Saugrohr:"Sacà trubice",Jänner:"leden",Februar:"únor",März:"bÅezen",April:"duben",Mai:"kvÄten",Juni:"Äerven",Juli:"Äervenec",August:"srpen",September:"záÅÃ",Oktober:"ÅÃjen",November:"listopad",Dezember:"prosinec"}},Kc={areas:UD,subcategories:VD,descriptions:WD},Th=["en","cs"],HD=["de"],KD=[...Th,...HD],Gc=e=>typeof e!="object"||e===null?!1:Object.entries(e).every(([t,n])=>typeof t=="string"&&typeof n=="string"),qc=(e,t,n,r)=>{if(typeof e!="object"||e===null)return n.push({path:t,message:`Missing or invalid "${t}" section`}),{count:0,languages:[]};const o=e,s=Object.keys(o);let i=0;for(const l of Th)l in o?Gc(o[l])?i=Math.max(i,Object.keys(o[l]).length):n.push({path:`${t}.${l}`,message:`Invalid structure for language "${l}" in ${t} - expected Record<string, string>`}):n.push({path:`${t}.${l}`,message:`Missing required language "${l}" in ${t}`});for(const l of s)KD.includes(l)||r.push(`Unknown language "${l}" in ${t}`);const a=new Set;for(const l of s)Gc(o[l])&&Object.keys(o[l]).forEach(u=>a.add(u));for(const l of Th)if(Gc(o[l])){const u=new Set(Object.keys(o[l])),c=[...a].filter(d=>!u.has(d));c.length>0&&c.length<=5?r.push(`Language "${l}" in ${t} is missing translations for: ${c.join(", ")}`):c.length>5&&r.push(`Language "${l}" in ${t} is missing ${c.length} translations`)}return{count:i,languages:s}},GD=()=>{const e=[],t=[],n=new Set;if(typeof Kc!="object"||Kc===null)return{isValid:!1,errors:[{path:"root",message:"Translations data is not a valid object"}],warnings:[],stats:{totalAreas:0,totalSubcategories:0,totalDescriptions:0,languages:[]}};const r=Kc,o=["areas","subcategories","descriptions"];for(const l of o)l in r||e.push({path:l,message:`Missing required section "${l}"`});const s=qc(r.areas,"areas",e,t),i=qc(r.subcategories,"subcategories",e,t),a=qc(r.descriptions,"descriptions",e,t);return[...s.languages,...i.languages,...a.languages].forEach(l=>n.add(l)),{isValid:e.length===0,errors:e,warnings:t,stats:{totalAreas:s.count,totalSubcategories:i.count,totalDescriptions:a.count,languages:[...n]}}},qD=()=>{const e=GD();return e.isValid?(e.warnings.length>0&&(console.warn("â ï¸ Translation validation warnings:"),e.warnings.forEac
219h(t=>{console.warn(` ${t}`)})),console.info(`â
Translations validated: ${e.stats.totalAreas} areas, ${e.stats.totalSubcategories} subcategories, ${e.stats.totalDescriptions} descriptions (languages: ${e.stats.languages.join(", ")})`),!0):(console.error("â Translation validation failed!"),e.errors.forEach(t=>{console.error(` [${t.path}]: ${t.message}`)}),!1)};qD();const rv="chunk-reload-at",Xk=()=>{const e=Number(sessionStorage.getItem(rv)||0);Date.now()-e>15e3&&(sessionStorage.setItem(rv,String(Date.now())),window.location.reload())};window.addEventListener("vite:preloadError",e=>{e.preventDefault(),Xk()});window.addEventListener("unhandledrejection",e=>{var n;const t=String(((n=e.reason)==null?void 0:n.message)||e.reason||"");/Importing a module script failed|Failed to fetch dynamically imported module|error loading dynamically imported module/i.test(t)&&Xk()});Pw(document.getElementById("root")).render(g.jsx(L.StrictMode,{children:g.jsx(FD,{})}));export{NA as $,dA as A,Ee as B,hA as C,_u as D,aL as E,_1 as F,sL as G,iL as H,zo as I,IA as J,ya as K,op as L,Ps as M,wa as N,nN as O,Oe as P,nr as Q,cA as R,fL as S,E0 as T,hL as U,pL as V,mL as W,T1 as X,pO as Y,_b as Z,Y as _,Iu as a,uh as a$,YD as a0,fv as a1,eL as a2,zu as a3,xh as a4,Yg as a5,lL as a6,E1 as a7,PI as a8,Uk as a9,dL as aA,cL as aB,sp as aC,ZN as aD,nk as aE,fN as aF,qb as aG,Cf as aH,Yi as aI,rA as aJ,qw as aK,Jw as aL,vl as aM,AC as aN,jf as aO,Mj as aP,hI as aQ,fI as aR,kk as aS,pI as aT,mI as aU,uI as aV,
219cI as aW,dI as aX,XC as aY,k0 as aZ,ma as a_,Vk as aa,Hk as ab,Kk as ac,Wk as ad,Gk as ae,AI as af,Kc as ag,x1 as ah,Cw as ai,$R as aj,zR as ak,MR as al,kg as am,FR as an,tL as ao,BR as ap,nL as aq,VR as ar,da as as,JD as at,ZD as au,bn as av,Mn as aw,Hc as ax,DC as ay,yl as az,zs as b,Xi as b0,QA as b1,We as b2,ut as b3,$A as b4,CC as b5,Sn as c,Y0 as d,ge as e,$s as f,Ge as g,fA as h,Pf as i,g as j,ke as k,Bj as l,_0 as m,sg as n,mo as o,gL as p,Ct as q,m as r,$e as s,Ms as t,Hs as u,zI as v,Ks as w,Gs as x,fi as y,L 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.